]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - zfs/configure
UBUNTU: Ubuntu-snapdragon-4.4.0-1058.62
[mirror_ubuntu-artful-kernel.git] / zfs / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zfs 0.6.5.6.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='zfs'
589 PACKAGE_TARNAME='zfs'
590 PACKAGE_VERSION='0.6.5.6'
591 PACKAGE_STRING='zfs 0.6.5.6'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 DEBUG_DMU_TX
636 DEBUG_ZFS
637 DEBUG_STACKFLAGS
638 DEBUG_CFLAGS
639 WANT_MMAP_LIBAIO_FALSE
640 WANT_MMAP_LIBAIO_TRUE
641 WANT_DEVNAME2DEVID_FALSE
642 WANT_DEVNAME2DEVID_TRUE
643 CONFIG_KERNEL_FALSE
644 CONFIG_KERNEL_TRUE
645 CONFIG_USER_FALSE
646 CONFIG_USER_TRUE
647 KERNELCPPFLAGS
648 KERNELMAKE_PARAMS
649 SPL_SYMBOLS
650 SPL_VERSION
651 SPL_OBJ
652 SPL
653 LINUX_SYMBOLS
654 LINUX_VERSION
655 LINUX_OBJ
656 LINUX
657 FRAME_LARGER_THAN
658 LIBBLKID
659 LIBUUID
660 ZLIB
661 dracutdir
662 ZFS_INIT_SYSV
663 modulesloaddir
664 systemdpresetdir
665 systemdunitdir
666 ZFS_MODULE_LOAD
667 ZFS_INIT_SYSTEMD
668 LIBAIO
669 udevruledir
670 udevdir
671 mounthelperdir
672 NO_BOOL_COMPARE
673 NO_UNUSED_BUT_SET_VARIABLE
674 ZFS_CONFIG
675 TARGET_ASM_DIR
676 ALIEN_VERSION
677 ALIEN
678 HAVE_ALIEN
679 DPKGBUILD_VERSION
680 DPKGBUILD
681 HAVE_DPKGBUILD
682 DPKG_VERSION
683 DPKG
684 HAVE_DPKG
685 SRPM_DEFINE_COMMON
686 SRPM_DEFINE_DKMS
687 SRPM_DEFINE_KMOD
688 SRPM_DEFINE_UTIL
689 RPM_DEFINE_COMMON
690 RPM_DEFINE_DKMS
691 RPM_DEFINE_KMOD
692 RPM_DEFINE_UTIL
693 RPM_SPEC_DIR
694 RPMBUILD_VERSION
695 RPMBUILD
696 HAVE_RPMBUILD
697 RPM_VERSION
698 RPM
699 HAVE_RPM
700 DEFINE_INITRAMFS
701 DEFAULT_INITCONF_DIR
702 DEFAULT_INIT_SCRIPT
703 DEFAULT_INIT_DIR
704 DEFAULT_PACKAGE
705 VENDOR
706 am__fastdepCCAS_FALSE
707 am__fastdepCCAS_TRUE
708 CCASDEPMODE
709 CCASFLAGS
710 CCAS
711 CPP
712 LT_SYS_LIBRARY_PATH
713 OTOOL64
714 OTOOL
715 LIPO
716 NMEDIT
717 DSYMUTIL
718 MANIFEST_TOOL
719 RANLIB
720 ac_ct_AR
721 AR
722 DLLTOOL
723 OBJDUMP
724 LN_S
725 NM
726 ac_ct_DUMPBIN
727 DUMPBIN
728 LD
729 FGREP
730 EGREP
731 GREP
732 SED
733 LIBTOOL
734 am__fastdepCC_FALSE
735 am__fastdepCC_TRUE
736 CCDEPMODE
737 am__nodep
738 AMDEPBACKSLASH
739 AMDEP_FALSE
740 AMDEP_TRUE
741 am__quote
742 am__include
743 DEPDIR
744 OBJEXT
745 EXEEXT
746 ac_ct_CC
747 CPPFLAGS
748 LDFLAGS
749 CFLAGS
750 CC
751 am__untar
752 am__tar
753 AMTAR
754 am__leading_dot
755 SET_MAKE
756 mkdir_p
757 MKDIR_P
758 INSTALL_STRIP_PROGRAM
759 STRIP
760 install_sh
761 MAKEINFO
762 AUTOHEADER
763 AUTOMAKE
764 AUTOCONF
765 ACLOCAL
766 VERSION
767 PACKAGE
768 CYGPATH_W
769 am__isrc
770 INSTALL_DATA
771 INSTALL_SCRIPT
772 INSTALL_PROGRAM
773 AM_BACKSLASH
774 AM_DEFAULT_VERBOSITY
775 AM_DEFAULT_V
776 AM_V
777 MAINT
778 MAINTAINER_MODE_FALSE
779 MAINTAINER_MODE_TRUE
780 target_os
781 target_vendor
782 target_cpu
783 target
784 host_os
785 host_vendor
786 host_cpu
787 host
788 build_os
789 build_vendor
790 build_cpu
791 build
792 ZFS_META_LT_AGE
793 ZFS_META_LT_REVISION
794 ZFS_META_LT_CURRENT
795 ZFS_META_AUTHOR
796 ZFS_META_DATA
797 ZFS_META_ALIAS
798 ZFS_META_LICENSE
799 RELEASE
800 ZFS_META_RELEASE
801 ZFS_META_VERSION
802 ZFS_META_NAME
803 AWK
804 target_alias
805 host_alias
806 build_alias
807 LIBS
808 ECHO_T
809 ECHO_N
810 ECHO_C
811 DEFS
812 mandir
813 localedir
814 libdir
815 psdir
816 pdfdir
817 dvidir
818 htmldir
819 infodir
820 docdir
821 oldincludedir
822 includedir
823 runstatedir
824 localstatedir
825 sharedstatedir
826 sysconfdir
827 datadir
828 datarootdir
829 libexecdir
830 sbindir
831 bindir
832 program_transform_name
833 prefix
834 exec_prefix
835 PACKAGE_URL
836 PACKAGE_BUGREPORT
837 PACKAGE_STRING
838 PACKAGE_VERSION
839 PACKAGE_TARNAME
840 PACKAGE_NAME
841 PATH_SEPARATOR
842 SHELL'
843 ac_subst_files=''
844 ac_user_opts='
845 enable_option_checking
846 enable_maintainer_mode
847 enable_silent_rules
848 enable_dependency_tracking
849 enable_shared
850 enable_static
851 with_pic
852 enable_fast_install
853 with_aix_soname
854 with_gnu_ld
855 with_sysroot
856 enable_libtool_lock
857 with_spec
858 with_config
859 enable_linux_builtin
860 with_mounthelperdir
861 with_udevdir
862 with_udevruledir
863 enable_systemd
864 with_systemdunitdir
865 with_systemdpresetdir
866 with_systemdmodulesloaddir
867 enable_sysvinit
868 with_dracutdir
869 with_blkid
870 with_linux
871 with_linux_obj
872 with_spl
873 with_spl_obj
874 with_spl_timeout
875 enable_debug
876 enable_debug_dmu_tx
877 '
878 ac_precious_vars='build_alias
879 host_alias
880 target_alias
881 CC
882 CFLAGS
883 LDFLAGS
884 LIBS
885 CPPFLAGS
886 LT_SYS_LIBRARY_PATH
887 CPP
888 CCAS
889 CCASFLAGS'
890
891
892 # Initialize some variables set by options.
893 ac_init_help=
894 ac_init_version=false
895 ac_unrecognized_opts=
896 ac_unrecognized_sep=
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
899 cache_file=/dev/null
900 exec_prefix=NONE
901 no_create=
902 no_recursion=
903 prefix=NONE
904 program_prefix=NONE
905 program_suffix=NONE
906 program_transform_name=s,x,x,
907 silent=
908 site=
909 srcdir=
910 verbose=
911 x_includes=NONE
912 x_libraries=NONE
913
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 runstatedir='${localstatedir}/run'
929 includedir='${prefix}/include'
930 oldincludedir='/usr/include'
931 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
932 infodir='${datarootdir}/info'
933 htmldir='${docdir}'
934 dvidir='${docdir}'
935 pdfdir='${docdir}'
936 psdir='${docdir}'
937 libdir='${exec_prefix}/lib'
938 localedir='${datarootdir}/locale'
939 mandir='${datarootdir}/man'
940
941 ac_prev=
942 ac_dashdash=
943 for ac_option
944 do
945 # If the previous option needs an argument, assign it.
946 if test -n "$ac_prev"; then
947 eval $ac_prev=\$ac_option
948 ac_prev=
949 continue
950 fi
951
952 case $ac_option in
953 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954 *=) ac_optarg= ;;
955 *) ac_optarg=yes ;;
956 esac
957
958 # Accept the important Cygnus configure options, so we can diagnose typos.
959
960 case $ac_dashdash$ac_option in
961 --)
962 ac_dashdash=yes ;;
963
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 ac_prev=bindir ;;
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 bindir=$ac_optarg ;;
968
969 -build | --build | --buil | --bui | --bu)
970 ac_prev=build_alias ;;
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972 build_alias=$ac_optarg ;;
973
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979 cache_file=$ac_optarg ;;
980
981 --config-cache | -C)
982 cache_file=config.cache ;;
983
984 -datadir | --datadir | --datadi | --datad)
985 ac_prev=datadir ;;
986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
987 datadir=$ac_optarg ;;
988
989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
995
996 -disable-* | --disable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error $? "invalid feature name: $ac_useropt"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=no ;;
1011
1012 -docdir | --docdir | --docdi | --doc | --do)
1013 ac_prev=docdir ;;
1014 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1015 docdir=$ac_optarg ;;
1016
1017 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018 ac_prev=dvidir ;;
1019 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1020 dvidir=$ac_optarg ;;
1021
1022 -enable-* | --enable-*)
1023 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026 as_fn_error $? "invalid feature name: $ac_useropt"
1027 ac_useropt_orig=$ac_useropt
1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1030 *"
1031 "enable_$ac_useropt"
1032 "*) ;;
1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1034 ac_unrecognized_sep=', ';;
1035 esac
1036 eval enable_$ac_useropt=\$ac_optarg ;;
1037
1038 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1039 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1040 | --exec | --exe | --ex)
1041 ac_prev=exec_prefix ;;
1042 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1043 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1044 | --exec=* | --exe=* | --ex=*)
1045 exec_prefix=$ac_optarg ;;
1046
1047 -gas | --gas | --ga | --g)
1048 # Obsolete; use --with-gas.
1049 with_gas=yes ;;
1050
1051 -help | --help | --hel | --he | -h)
1052 ac_init_help=long ;;
1053 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1054 ac_init_help=recursive ;;
1055 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1056 ac_init_help=short ;;
1057
1058 -host | --host | --hos | --ho)
1059 ac_prev=host_alias ;;
1060 -host=* | --host=* | --hos=* | --ho=*)
1061 host_alias=$ac_optarg ;;
1062
1063 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1064 ac_prev=htmldir ;;
1065 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1066 | --ht=*)
1067 htmldir=$ac_optarg ;;
1068
1069 -includedir | --includedir | --includedi | --included | --include \
1070 | --includ | --inclu | --incl | --inc)
1071 ac_prev=includedir ;;
1072 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1073 | --includ=* | --inclu=* | --incl=* | --inc=*)
1074 includedir=$ac_optarg ;;
1075
1076 -infodir | --infodir | --infodi | --infod | --info | --inf)
1077 ac_prev=infodir ;;
1078 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1079 infodir=$ac_optarg ;;
1080
1081 -libdir | --libdir | --libdi | --libd)
1082 ac_prev=libdir ;;
1083 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1084 libdir=$ac_optarg ;;
1085
1086 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1087 | --libexe | --libex | --libe)
1088 ac_prev=libexecdir ;;
1089 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1090 | --libexe=* | --libex=* | --libe=*)
1091 libexecdir=$ac_optarg ;;
1092
1093 -localedir | --localedir | --localedi | --localed | --locale)
1094 ac_prev=localedir ;;
1095 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1096 localedir=$ac_optarg ;;
1097
1098 -localstatedir | --localstatedir | --localstatedi | --localstated \
1099 | --localstate | --localstat | --localsta | --localst | --locals)
1100 ac_prev=localstatedir ;;
1101 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1102 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1103 localstatedir=$ac_optarg ;;
1104
1105 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1106 ac_prev=mandir ;;
1107 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1108 mandir=$ac_optarg ;;
1109
1110 -nfp | --nfp | --nf)
1111 # Obsolete; use --without-fp.
1112 with_fp=no ;;
1113
1114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1115 | --no-cr | --no-c | -n)
1116 no_create=yes ;;
1117
1118 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1119 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1120 no_recursion=yes ;;
1121
1122 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1123 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1124 | --oldin | --oldi | --old | --ol | --o)
1125 ac_prev=oldincludedir ;;
1126 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1127 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1128 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1129 oldincludedir=$ac_optarg ;;
1130
1131 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1132 ac_prev=prefix ;;
1133 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1134 prefix=$ac_optarg ;;
1135
1136 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1137 | --program-pre | --program-pr | --program-p)
1138 ac_prev=program_prefix ;;
1139 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1140 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1141 program_prefix=$ac_optarg ;;
1142
1143 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1144 | --program-suf | --program-su | --program-s)
1145 ac_prev=program_suffix ;;
1146 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1147 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1148 program_suffix=$ac_optarg ;;
1149
1150 -program-transform-name | --program-transform-name \
1151 | --program-transform-nam | --program-transform-na \
1152 | --program-transform-n | --program-transform- \
1153 | --program-transform | --program-transfor \
1154 | --program-transfo | --program-transf \
1155 | --program-trans | --program-tran \
1156 | --progr-tra | --program-tr | --program-t)
1157 ac_prev=program_transform_name ;;
1158 -program-transform-name=* | --program-transform-name=* \
1159 | --program-transform-nam=* | --program-transform-na=* \
1160 | --program-transform-n=* | --program-transform-=* \
1161 | --program-transform=* | --program-transfor=* \
1162 | --program-transfo=* | --program-transf=* \
1163 | --program-trans=* | --program-tran=* \
1164 | --progr-tra=* | --program-tr=* | --program-t=*)
1165 program_transform_name=$ac_optarg ;;
1166
1167 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1168 ac_prev=pdfdir ;;
1169 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1170 pdfdir=$ac_optarg ;;
1171
1172 -psdir | --psdir | --psdi | --psd | --ps)
1173 ac_prev=psdir ;;
1174 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1175 psdir=$ac_optarg ;;
1176
1177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178 | -silent | --silent | --silen | --sile | --sil)
1179 silent=yes ;;
1180
1181 -runstatedir | --runstatedir | --runstatedi | --runstated \
1182 | --runstate | --runstat | --runsta | --runst | --runs \
1183 | --run | --ru | --r)
1184 ac_prev=runstatedir ;;
1185 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1186 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1187 | --run=* | --ru=* | --r=*)
1188 runstatedir=$ac_optarg ;;
1189
1190 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191 ac_prev=sbindir ;;
1192 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193 | --sbi=* | --sb=*)
1194 sbindir=$ac_optarg ;;
1195
1196 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198 | --sharedst | --shareds | --shared | --share | --shar \
1199 | --sha | --sh)
1200 ac_prev=sharedstatedir ;;
1201 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204 | --sha=* | --sh=*)
1205 sharedstatedir=$ac_optarg ;;
1206
1207 -site | --site | --sit)
1208 ac_prev=site ;;
1209 -site=* | --site=* | --sit=*)
1210 site=$ac_optarg ;;
1211
1212 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213 ac_prev=srcdir ;;
1214 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215 srcdir=$ac_optarg ;;
1216
1217 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218 | --syscon | --sysco | --sysc | --sys | --sy)
1219 ac_prev=sysconfdir ;;
1220 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222 sysconfdir=$ac_optarg ;;
1223
1224 -target | --target | --targe | --targ | --tar | --ta | --t)
1225 ac_prev=target_alias ;;
1226 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227 target_alias=$ac_optarg ;;
1228
1229 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230 verbose=yes ;;
1231
1232 -version | --version | --versio | --versi | --vers | -V)
1233 ac_init_version=: ;;
1234
1235 -with-* | --with-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=\$ac_optarg ;;
1250
1251 -without-* | --without-*)
1252 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 as_fn_error $? "invalid package name: $ac_useropt"
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1259 *"
1260 "with_$ac_useropt"
1261 "*) ;;
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1264 esac
1265 eval with_$ac_useropt=no ;;
1266
1267 --x)
1268 # Obsolete; use --with-x.
1269 with_x=yes ;;
1270
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276 x_includes=$ac_optarg ;;
1277
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283 x_libraries=$ac_optarg ;;
1284
1285 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1286 Try \`$0 --help' for more information"
1287 ;;
1288
1289 *=*)
1290 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291 # Reject names that are not valid shell variable names.
1292 case $ac_envvar in #(
1293 '' | [0-9]* | *[!_$as_cr_alnum]* )
1294 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1295 esac
1296 eval $ac_envvar=\$ac_optarg
1297 export $ac_envvar ;;
1298
1299 *)
1300 # FIXME: should be removed in autoconf 3.0.
1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1305 ;;
1306
1307 esac
1308 done
1309
1310 if test -n "$ac_prev"; then
1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312 as_fn_error $? "missing argument to $ac_option"
1313 fi
1314
1315 if test -n "$ac_unrecognized_opts"; then
1316 case $enable_option_checking in
1317 no) ;;
1318 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1320 esac
1321 fi
1322
1323 # Check all directory arguments for consistency.
1324 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325 datadir sysconfdir sharedstatedir localstatedir includedir \
1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327 libdir localedir mandir runstatedir
1328 do
1329 eval ac_val=\$$ac_var
1330 # Remove trailing slashes.
1331 case $ac_val in
1332 */ )
1333 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334 eval $ac_var=\$ac_val;;
1335 esac
1336 # Be sure to have absolute directory names.
1337 case $ac_val in
1338 [\\/$]* | ?:[\\/]* ) continue;;
1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340 esac
1341 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1342 done
1343
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1347 build=$build_alias
1348 host=$host_alias
1349 target=$target_alias
1350
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x; then
1353 if test "x$build_alias" = x; then
1354 cross_compiling=maybe
1355 elif test "x$build_alias" != "x$host_alias"; then
1356 cross_compiling=yes
1357 fi
1358 fi
1359
1360 ac_tool_prefix=
1361 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362
1363 test "$silent" = yes && exec 6>/dev/null
1364
1365
1366 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367 ac_ls_di=`ls -di .` &&
1368 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369 as_fn_error $? "working directory cannot be determined"
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371 as_fn_error $? "pwd does not report name of working directory"
1372
1373
1374 # Find the source files, if location was not specified.
1375 if test -z "$srcdir"; then
1376 ac_srcdir_defaulted=yes
1377 # Try the directory containing this script, then the parent directory.
1378 ac_confdir=`$as_dirname -- "$as_myself" ||
1379 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380 X"$as_myself" : 'X\(//\)[^/]' \| \
1381 X"$as_myself" : 'X\(//\)$' \| \
1382 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383 $as_echo X"$as_myself" |
1384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\/\)[^/].*/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\/\)$/{
1393 s//\1/
1394 q
1395 }
1396 /^X\(\/\).*/{
1397 s//\1/
1398 q
1399 }
1400 s/.*/./; q'`
1401 srcdir=$ac_confdir
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403 srcdir=..
1404 fi
1405 else
1406 ac_srcdir_defaulted=no
1407 fi
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1410 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1411 fi
1412 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1413 ac_abs_confdir=`(
1414 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1415 pwd)`
1416 # When building in place, set srcdir=.
1417 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418 srcdir=.
1419 fi
1420 # Remove unnecessary trailing slashes from srcdir.
1421 # Double slashes in file names in object file debugging info
1422 # mess up M-x gdb in Emacs.
1423 case $srcdir in
1424 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1425 esac
1426 for ac_var in $ac_precious_vars; do
1427 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_env_${ac_var}_value=\$${ac_var}
1429 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431 done
1432
1433 #
1434 # Report the --help message.
1435 #
1436 if test "$ac_init_help" = "long"; then
1437 # Omit some internal or obsolete options to make the list less imposing.
1438 # This message is too long to be a string in the A/UX 3.1 sh.
1439 cat <<_ACEOF
1440 \`configure' configures zfs 0.6.5.6 to adapt to many kinds of systems.
1441
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1443
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE. See below for descriptions of some of the useful variables.
1446
1447 Defaults for the options are specified in brackets.
1448
1449 Configuration:
1450 -h, --help display this help and exit
1451 --help=short display options specific to this package
1452 --help=recursive display the short help of all the included packages
1453 -V, --version display version information and exit
1454 -q, --quiet, --silent do not print \`checking ...' messages
1455 --cache-file=FILE cache test results in FILE [disabled]
1456 -C, --config-cache alias for \`--cache-file=config.cache'
1457 -n, --no-create do not create output files
1458 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1459
1460 Installation directories:
1461 --prefix=PREFIX install architecture-independent files in PREFIX
1462 [$ac_default_prefix]
1463 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1464 [PREFIX]
1465
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1470
1471 For better control, use the options below.
1472
1473 Fine tuning of the installation directories:
1474 --bindir=DIR user executables [EPREFIX/bin]
1475 --sbindir=DIR system admin executables [EPREFIX/sbin]
1476 --libexecdir=DIR program executables [EPREFIX/libexec]
1477 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1478 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1479 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1480 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1481 --libdir=DIR object code libraries [EPREFIX/lib]
1482 --includedir=DIR C header files [PREFIX/include]
1483 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1484 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1485 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1486 --infodir=DIR info documentation [DATAROOTDIR/info]
1487 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1488 --mandir=DIR man documentation [DATAROOTDIR/man]
1489 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1490 --htmldir=DIR html documentation [DOCDIR]
1491 --dvidir=DIR dvi documentation [DOCDIR]
1492 --pdfdir=DIR pdf documentation [DOCDIR]
1493 --psdir=DIR ps documentation [DOCDIR]
1494 _ACEOF
1495
1496 cat <<\_ACEOF
1497
1498 Program names:
1499 --program-prefix=PREFIX prepend PREFIX to installed program names
1500 --program-suffix=SUFFIX append SUFFIX to installed program names
1501 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1502
1503 System types:
1504 --build=BUILD configure for building on BUILD [guessed]
1505 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506 --target=TARGET configure for building compilers for TARGET [HOST]
1507 _ACEOF
1508 fi
1509
1510 if test -n "$ac_init_help"; then
1511 case $ac_init_help in
1512 short | recursive ) echo "Configuration of zfs 0.6.5.6:";;
1513 esac
1514 cat <<\_ACEOF
1515
1516 Optional Features:
1517 --disable-option-checking ignore unrecognized --enable/--with options
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1520 --enable-maintainer-mode
1521 enable make rules and dependencies not useful (and
1522 sometimes confusing) to the casual installer
1523 --enable-silent-rules less verbose build output (undo: "make V=1")
1524 --disable-silent-rules verbose build output (undo: "make V=0")
1525 --enable-dependency-tracking
1526 do not reject slow dependency extractors
1527 --disable-dependency-tracking
1528 speeds up one-time build
1529 --enable-shared[=PKGS] build shared libraries [default=yes]
1530 --enable-static[=PKGS] build static libraries [default=yes]
1531 --enable-fast-install[=PKGS]
1532 optimize for fast installation [default=yes]
1533 --disable-libtool-lock avoid locking (might break parallel builds)
1534 --enable-linux-builtin Configure for builtin in-tree kernel modules
1535 [default=no]
1536 --enable-systemd install systemd unit/preset files [[default: yes]]
1537 --enable-sysvinit install SysV init scripts [default: yes]
1538 --enable-debug Enable generic debug support [default=no]
1539 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1540
1541 Optional Packages:
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1545 both]
1546 --with-aix-soname=aix|svr4|both
1547 shared library versioning (aka "SONAME") variant to
1548 provide on AIX, [default=aix].
1549 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1550 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1551 compiler's sysroot if not specified).
1552 --with-spec=SPEC Spec files 'generic|redhat'
1553 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1554 --with-mounthelperdir=DIR
1555 install mount.zfs in dir [[/sbin]]
1556 --with-udevdir=DIR install udev helpers [default=check]
1557 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1558 --with-systemdunitdir=DIR
1559 install systemd unit files in dir
1560 [[/usr/lib/systemd/system]]
1561 --with-systemdpresetdir=DIR
1562 install systemd preset files in dir
1563 [[/usr/lib/systemd/system-preset]]
1564 --with-systemdmodulesloaddir=DIR
1565 install systemd module load files into dir
1566 [[/usr/lib/modules-load.d]]
1567 --with-dracutdir=DIR install dracut helpers [default=check]
1568 --with-blkid support blkid caching [default=check]
1569 --with-linux=PATH Path to kernel source
1570 --with-linux-obj=PATH Path to kernel build objects
1571 --with-spl=PATH Path to spl source
1572 --with-spl-obj=PATH Path to spl build objects
1573 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1574
1575 Some influential environment variables:
1576 CC C compiler command
1577 CFLAGS C compiler flags
1578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1579 nonstandard directory <lib dir>
1580 LIBS libraries to pass to the linker, e.g. -l<library>
1581 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1582 you have headers in a nonstandard directory <include dir>
1583 LT_SYS_LIBRARY_PATH
1584 User-defined run-time library search path.
1585 CPP C preprocessor
1586 CCAS assembler compiler command (defaults to CC)
1587 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1588
1589 Use these variables to override the choices made by `configure' or to help
1590 it to find libraries and programs with nonstandard names/locations.
1591
1592 Report bugs to the package provider.
1593 _ACEOF
1594 ac_status=$?
1595 fi
1596
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
1603 ac_builddir=.
1604
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *)
1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1620
1621 case $srcdir in
1622 .) # We are building in place.
1623 ac_srcdir=.
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1627 ac_srcdir=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 esac
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1645 else
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1649 done
1650 fi
1651
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654 cat <<\_ACEOF
1655 zfs configure 0.6.5.6
1656 generated by GNU Autoconf 2.69
1657
1658 Copyright (C) 2012 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1661 _ACEOF
1662 exit
1663 fi
1664
1665 ## ------------------------ ##
1666 ## Autoconf initialization. ##
1667 ## ------------------------ ##
1668
1669 # ac_fn_c_try_compile LINENO
1670 # --------------------------
1671 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_compile ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext
1676 if { { ac_try="$ac_compile"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_compile") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest.$ac_objext; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701 fi
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_compile
1706
1707 # ac_fn_c_try_link LINENO
1708 # -----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_link ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext conftest$ac_exeext
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest$ac_exeext && {
1733 test "$cross_compiling" = yes ||
1734 test -x conftest$ac_exeext
1735 }; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1
1742 fi
1743 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745 # interfere with the next link command; also delete a directory that is
1746 # left behind by Apple's compiler. We do this before executing the actions.
1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1750
1751 } # ac_fn_c_try_link
1752
1753 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists and can be compiled using the include files in
1756 # INCLUDES, setting the cache variable VAR accordingly.
1757 ac_fn_c_check_header_compile ()
1758 {
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if eval \${$3+:} false; then :
1763 $as_echo_n "(cached) " >&6
1764 else
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 $4
1768 #include <$2>
1769 _ACEOF
1770 if ac_fn_c_try_compile "$LINENO"; then :
1771 eval "$3=yes"
1772 else
1773 eval "$3=no"
1774 fi
1775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776 fi
1777 eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782 } # ac_fn_c_check_header_compile
1783
1784 # ac_fn_c_try_cpp LINENO
1785 # ----------------------
1786 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_cpp ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if { { ac_try="$ac_cpp conftest.$ac_ext"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } > conftest.i && {
1806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 }; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=1
1815 fi
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1818
1819 } # ac_fn_c_try_cpp
1820
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824 # that executables *can* be run.
1825 ac_fn_c_try_run ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_link"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>&5
1836 ac_status=$?
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839 { { case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_try") 2>&5
1846 ac_status=$?
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; }; }; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: program exited with status $ac_status" >&5
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1854
1855 ac_retval=$ac_status
1856 fi
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1860
1861 } # ac_fn_c_try_run
1862
1863 # ac_fn_c_check_func LINENO FUNC VAR
1864 # ----------------------------------
1865 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1866 ac_fn_c_check_func ()
1867 {
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873 else
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1878 #define $2 innocuous_$2
1879
1880 /* System header to define __stub macros and hopefully few prototypes,
1881 which can conflict with char $2 (); below.
1882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1883 <limits.h> exists even on freestanding compilers. */
1884
1885 #ifdef __STDC__
1886 # include <limits.h>
1887 #else
1888 # include <assert.h>
1889 #endif
1890
1891 #undef $2
1892
1893 /* Override any GCC internal prototype to avoid an error.
1894 Use char because int might match the return type of a GCC
1895 builtin and then its argument prototype would still apply. */
1896 #ifdef __cplusplus
1897 extern "C"
1898 #endif
1899 char $2 ();
1900 /* The GNU C library defines this for functions which it implements
1901 to always fail with ENOSYS. Some functions are actually named
1902 something starting with __ and the normal name is an alias. */
1903 #if defined __stub_$2 || defined __stub___$2
1904 choke me
1905 #endif
1906
1907 int
1908 main ()
1909 {
1910 return $2 ();
1911 ;
1912 return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_link "$LINENO"; then :
1916 eval "$3=yes"
1917 else
1918 eval "$3=no"
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext \
1921 conftest$ac_exeext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_func
1929
1930 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1933 # the include files in INCLUDES and setting the cache variable VAR
1934 # accordingly.
1935 ac_fn_c_check_header_mongrel ()
1936 {
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 if eval \${$3+:} false; then :
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1943 fi
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 else
1948 # Is the header compilable?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1950 $as_echo_n "checking $2 usability... " >&6; }
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 $4
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 ac_header_compiler=yes
1958 else
1959 ac_header_compiler=no
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1963 $as_echo "$ac_header_compiler" >&6; }
1964
1965 # Is the header present?
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1967 $as_echo_n "checking $2 presence... " >&6; }
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 #include <$2>
1971 _ACEOF
1972 if ac_fn_c_try_cpp "$LINENO"; then :
1973 ac_header_preproc=yes
1974 else
1975 ac_header_preproc=no
1976 fi
1977 rm -f conftest.err conftest.i conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1979 $as_echo "$ac_header_preproc" >&6; }
1980
1981 # So? What about this header?
1982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1983 yes:no: )
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1985 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1988 ;;
1989 no:yes:* )
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1991 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1993 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1995 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1997 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 ;;
2001 esac
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 eval "$3=\$ac_header_compiler"
2008 fi
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 fi
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015 } # ac_fn_c_check_header_mongrel
2016 cat >config.log <<_ACEOF
2017 This file contains any messages produced by compilers while
2018 running configure, to aid debugging if configure makes a mistake.
2019
2020 It was created by zfs $as_me 0.6.5.6, which was
2021 generated by GNU Autoconf 2.69. Invocation command line was
2022
2023 $ $0 $@
2024
2025 _ACEOF
2026 exec 5>>config.log
2027 {
2028 cat <<_ASUNAME
2029 ## --------- ##
2030 ## Platform. ##
2031 ## --------- ##
2032
2033 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2034 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2035 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2036 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2037 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2038
2039 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2040 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2041
2042 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2043 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2044 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2045 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2046 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2047 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2048 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2049
2050 _ASUNAME
2051
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055 IFS=$as_save_IFS
2056 test -z "$as_dir" && as_dir=.
2057 $as_echo "PATH: $as_dir"
2058 done
2059 IFS=$as_save_IFS
2060
2061 } >&5
2062
2063 cat >&5 <<_ACEOF
2064
2065
2066 ## ----------- ##
2067 ## Core tests. ##
2068 ## ----------- ##
2069
2070 _ACEOF
2071
2072
2073 # Keep a trace of the command line.
2074 # Strip out --no-create and --no-recursion so they do not pile up.
2075 # Strip out --silent because we don't want to record it for future runs.
2076 # Also quote any args containing shell meta-characters.
2077 # Make two passes to allow for proper duplicate-argument suppression.
2078 ac_configure_args=
2079 ac_configure_args0=
2080 ac_configure_args1=
2081 ac_must_keep_next=false
2082 for ac_pass in 1 2
2083 do
2084 for ac_arg
2085 do
2086 case $ac_arg in
2087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2089 | -silent | --silent | --silen | --sile | --sil)
2090 continue ;;
2091 *\'*)
2092 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2093 esac
2094 case $ac_pass in
2095 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2096 2)
2097 as_fn_append ac_configure_args1 " '$ac_arg'"
2098 if test $ac_must_keep_next = true; then
2099 ac_must_keep_next=false # Got value, back to normal.
2100 else
2101 case $ac_arg in
2102 *=* | --config-cache | -C | -disable-* | --disable-* \
2103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2105 | -with-* | --with-* | -without-* | --without-* | --x)
2106 case "$ac_configure_args0 " in
2107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2108 esac
2109 ;;
2110 -* ) ac_must_keep_next=true ;;
2111 esac
2112 fi
2113 as_fn_append ac_configure_args " '$ac_arg'"
2114 ;;
2115 esac
2116 done
2117 done
2118 { ac_configure_args0=; unset ac_configure_args0;}
2119 { ac_configure_args1=; unset ac_configure_args1;}
2120
2121 # When interrupted or exit'd, cleanup temporary files, and complete
2122 # config.log. We remove comments because anyway the quotes in there
2123 # would cause problems or look ugly.
2124 # WARNING: Use '\'' to represent an apostrophe within the trap.
2125 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2126 trap 'exit_status=$?
2127 # Save into config.log some information that might help in debugging.
2128 {
2129 echo
2130
2131 $as_echo "## ---------------- ##
2132 ## Cache variables. ##
2133 ## ---------------- ##"
2134 echo
2135 # The following way of writing the cache mishandles newlines in values,
2136 (
2137 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2138 eval ac_val=\$$ac_var
2139 case $ac_val in #(
2140 *${as_nl}*)
2141 case $ac_var in #(
2142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2144 esac
2145 case $ac_var in #(
2146 _ | IFS | as_nl) ;; #(
2147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2148 *) { eval $ac_var=; unset $ac_var;} ;;
2149 esac ;;
2150 esac
2151 done
2152 (set) 2>&1 |
2153 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2154 *${as_nl}ac_space=\ *)
2155 sed -n \
2156 "s/'\''/'\''\\\\'\'''\''/g;
2157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2158 ;; #(
2159 *)
2160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2161 ;;
2162 esac |
2163 sort
2164 )
2165 echo
2166
2167 $as_echo "## ----------------- ##
2168 ## Output variables. ##
2169 ## ----------------- ##"
2170 echo
2171 for ac_var in $ac_subst_vars
2172 do
2173 eval ac_val=\$$ac_var
2174 case $ac_val in
2175 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176 esac
2177 $as_echo "$ac_var='\''$ac_val'\''"
2178 done | sort
2179 echo
2180
2181 if test -n "$ac_subst_files"; then
2182 $as_echo "## ------------------- ##
2183 ## File substitutions. ##
2184 ## ------------------- ##"
2185 echo
2186 for ac_var in $ac_subst_files
2187 do
2188 eval ac_val=\$$ac_var
2189 case $ac_val in
2190 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191 esac
2192 $as_echo "$ac_var='\''$ac_val'\''"
2193 done | sort
2194 echo
2195 fi
2196
2197 if test -s confdefs.h; then
2198 $as_echo "## ----------- ##
2199 ## confdefs.h. ##
2200 ## ----------- ##"
2201 echo
2202 cat confdefs.h
2203 echo
2204 fi
2205 test "$ac_signal" != 0 &&
2206 $as_echo "$as_me: caught signal $ac_signal"
2207 $as_echo "$as_me: exit $exit_status"
2208 } >&5
2209 rm -f core *.core core.conftest.* &&
2210 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2211 exit $exit_status
2212 ' 0
2213 for ac_signal in 1 2 13 15; do
2214 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2215 done
2216 ac_signal=0
2217
2218 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2219 rm -f -r conftest* confdefs.h
2220
2221 $as_echo "/* confdefs.h */" > confdefs.h
2222
2223 # Predefined preprocessor variables.
2224
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_NAME "$PACKAGE_NAME"
2227 _ACEOF
2228
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2231 _ACEOF
2232
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2235 _ACEOF
2236
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_STRING "$PACKAGE_STRING"
2239 _ACEOF
2240
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2243 _ACEOF
2244
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_URL "$PACKAGE_URL"
2247 _ACEOF
2248
2249
2250 # Let the site file select an alternate cache file if it wants to.
2251 # Prefer an explicitly selected file to automatically selected ones.
2252 ac_site_file1=NONE
2253 ac_site_file2=NONE
2254 if test -n "$CONFIG_SITE"; then
2255 # We do not want a PATH search for config.site.
2256 case $CONFIG_SITE in #((
2257 -*) ac_site_file1=./$CONFIG_SITE;;
2258 */*) ac_site_file1=$CONFIG_SITE;;
2259 *) ac_site_file1=./$CONFIG_SITE;;
2260 esac
2261 elif test "x$prefix" != xNONE; then
2262 ac_site_file1=$prefix/share/config.site
2263 ac_site_file2=$prefix/etc/config.site
2264 else
2265 ac_site_file1=$ac_default_prefix/share/config.site
2266 ac_site_file2=$ac_default_prefix/etc/config.site
2267 fi
2268 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2269 do
2270 test "x$ac_site_file" = xNONE && continue
2271 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2273 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2274 sed 's/^/| /' "$ac_site_file" >&5
2275 . "$ac_site_file" \
2276 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278 as_fn_error $? "failed to load site script $ac_site_file
2279 See \`config.log' for more details" "$LINENO" 5; }
2280 fi
2281 done
2282
2283 if test -r "$cache_file"; then
2284 # Some versions of bash will fail to source /dev/null (special files
2285 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2286 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2288 $as_echo "$as_me: loading cache $cache_file" >&6;}
2289 case $cache_file in
2290 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2291 *) . "./$cache_file";;
2292 esac
2293 fi
2294 else
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2296 $as_echo "$as_me: creating cache $cache_file" >&6;}
2297 >$cache_file
2298 fi
2299
2300 # Check that the precious variables saved in the cache have kept the same
2301 # value.
2302 ac_cache_corrupted=false
2303 for ac_var in $ac_precious_vars; do
2304 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2305 eval ac_new_set=\$ac_env_${ac_var}_set
2306 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2307 eval ac_new_val=\$ac_env_${ac_var}_value
2308 case $ac_old_set,$ac_new_set in
2309 set,)
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2311 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2312 ac_cache_corrupted=: ;;
2313 ,set)
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2315 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2316 ac_cache_corrupted=: ;;
2317 ,);;
2318 *)
2319 if test "x$ac_old_val" != "x$ac_new_val"; then
2320 # differences in whitespace do not lead to failure.
2321 ac_old_val_w=`echo x $ac_old_val`
2322 ac_new_val_w=`echo x $ac_new_val`
2323 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2325 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2326 ac_cache_corrupted=:
2327 else
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2329 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2330 eval $ac_var=\$ac_old_val
2331 fi
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2333 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2335 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2336 fi;;
2337 esac
2338 # Pass precious variables to config.status.
2339 if test "$ac_new_set" = set; then
2340 case $ac_new_val in
2341 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2342 *) ac_arg=$ac_var=$ac_new_val ;;
2343 esac
2344 case " $ac_configure_args " in
2345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2346 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2347 esac
2348 fi
2349 done
2350 if $ac_cache_corrupted; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2354 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2355 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2356 fi
2357 ## -------------------- ##
2358 ## Main body of script. ##
2359 ## -------------------- ##
2360
2361 ac_ext=c
2362 ac_cpp='$CPP $CPPFLAGS'
2363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2366
2367
2368 ac_ext=c
2369 ac_cpp='$CPP $CPPFLAGS'
2370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373
2374
2375
2376
2377
2378 for ac_prog in gawk mawk nawk awk
2379 do
2380 # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2383 $as_echo_n "checking for $ac_word... " >&6; }
2384 if ${ac_cv_prog_AWK+:} false; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 if test -n "$AWK"; then
2388 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2389 else
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2397 ac_cv_prog_AWK="$ac_prog"
2398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2399 break 2
2400 fi
2401 done
2402 done
2403 IFS=$as_save_IFS
2404
2405 fi
2406 fi
2407 AWK=$ac_cv_prog_AWK
2408 if test -n "$AWK"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2410 $as_echo "$AWK" >&6; }
2411 else
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2413 $as_echo "no" >&6; }
2414 fi
2415
2416
2417 test -n "$AWK" && break
2418 done
2419
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2421 $as_echo_n "checking metadata... " >&6; }
2422
2423 META="$srcdir/META"
2424 _zfs_ac_meta_type="none"
2425 if test -f "$META"; then
2426 _zfs_ac_meta_type="META file"
2427 _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null)
2428
2429 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2430 if test -n "$ZFS_META_NAME"; then
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define ZFS_META_NAME "$ZFS_META_NAME"
2434 _ACEOF
2435
2436
2437 fi
2438
2439 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2440 if test -n "$ZFS_META_VERSION"; then
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2444 _ACEOF
2445
2446
2447 fi
2448
2449 if test -n "${_dpkg_parsechangelog}"; then
2450 _dpkg_version=$(echo "${_dpkg_parsechangelog}" \
2451 | $AWK '$1 == "Version:" { print $2; }' \
2452 | cut -d- -f1)
2453 if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then
2454 as_fn_error $? "
2455 *** Version $ZFS_META_VERSION in the META file is different than
2456 *** version $_dpkg_version in the debian/changelog file. DKMS and DEB
2457 *** packaging require that these files have the same version.
2458 " "$LINENO" 5
2459 fi
2460 fi
2461
2462 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2463
2464 if test -n "${_dpkg_parsechangelog}"; then
2465 _dpkg_release=$(echo "${_dpkg_parsechangelog}" \
2466 | $AWK '$1 == "Version:" { print $2; }' \
2467 | cut -d- -f2-)
2468 if test -n "${_dpkg_release}"; then
2469 ZFS_META_RELEASE=${_dpkg_release}
2470 _zfs_ac_meta_type="dpkg-parsechangelog"
2471 fi
2472 elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2473 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2474 _alias=$(git describe --match=${_match} 2>/dev/null)
2475 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2476 if test -n "${_release}"; then
2477 ZFS_META_RELEASE=${_release}
2478 _zfs_ac_meta_type="git describe"
2479 fi
2480 fi
2481
2482 if test -n "$ZFS_META_RELEASE"; then
2483
2484 cat >>confdefs.h <<_ACEOF
2485 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2486 _ACEOF
2487
2488
2489
2490 RELEASE="$ZFS_META_RELEASE"
2491
2492 fi
2493
2494 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2495 if test -n "$ZFS_META_LICENSE"; then
2496
2497 cat >>confdefs.h <<_ACEOF
2498 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2499 _ACEOF
2500
2501
2502 fi
2503
2504 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2505 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2506 test -n "$ZFS_META_RELEASE" &&
2507 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2511 _ACEOF
2512
2513
2514 fi
2515
2516 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2517 if test -n "$ZFS_META_DATA"; then
2518
2519 cat >>confdefs.h <<_ACEOF
2520 #define ZFS_META_DATA "$ZFS_META_DATA"
2521 _ACEOF
2522
2523
2524 fi
2525
2526 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2527 if test -n "$ZFS_META_AUTHOR"; then
2528
2529 cat >>confdefs.h <<_ACEOF
2530 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2531 _ACEOF
2532
2533
2534 fi
2535
2536
2537 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2538 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2539 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2540 if test -n "$ZFS_META_LT_CURRENT" \
2541 -o -n "$ZFS_META_LT_REVISION" \
2542 -o -n "$ZFS_META_LT_AGE"; then
2543 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2544 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2545 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2546
2547 cat >>confdefs.h <<_ACEOF
2548 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2549 _ACEOF
2550
2551
2552 cat >>confdefs.h <<_ACEOF
2553 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2554 _ACEOF
2555
2556
2557 cat >>confdefs.h <<_ACEOF
2558 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2559 _ACEOF
2560
2561
2562
2563
2564 fi
2565 fi
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2568 $as_echo "$_zfs_ac_meta_type" >&6; }
2569
2570
2571 ac_aux_dir=
2572 for ac_dir in config "$srcdir"/config; do
2573 if test -f "$ac_dir/install-sh"; then
2574 ac_aux_dir=$ac_dir
2575 ac_install_sh="$ac_aux_dir/install-sh -c"
2576 break
2577 elif test -f "$ac_dir/install.sh"; then
2578 ac_aux_dir=$ac_dir
2579 ac_install_sh="$ac_aux_dir/install.sh -c"
2580 break
2581 elif test -f "$ac_dir/shtool"; then
2582 ac_aux_dir=$ac_dir
2583 ac_install_sh="$ac_aux_dir/shtool install -c"
2584 break
2585 fi
2586 done
2587 if test -z "$ac_aux_dir"; then
2588 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2589 fi
2590
2591 # These three variables are undocumented and unsupported,
2592 # and are intended to be withdrawn in a future Autoconf release.
2593 # They can cause serious problems if a builder's source tree is in a directory
2594 # whose full name contains unusual characters.
2595 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2596 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2597 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2598
2599
2600
2601 # Make sure we can run config.sub.
2602 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2603 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2604
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2606 $as_echo_n "checking build system type... " >&6; }
2607 if ${ac_cv_build+:} false; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 ac_build_alias=$build_alias
2611 test "x$ac_build_alias" = x &&
2612 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2613 test "x$ac_build_alias" = x &&
2614 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2615 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2616 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2617
2618 fi
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2620 $as_echo "$ac_cv_build" >&6; }
2621 case $ac_cv_build in
2622 *-*-*) ;;
2623 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2624 esac
2625 build=$ac_cv_build
2626 ac_save_IFS=$IFS; IFS='-'
2627 set x $ac_cv_build
2628 shift
2629 build_cpu=$1
2630 build_vendor=$2
2631 shift; shift
2632 # Remember, the first character of IFS is used to create $*,
2633 # except with old shells:
2634 build_os=$*
2635 IFS=$ac_save_IFS
2636 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2637
2638
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2640 $as_echo_n "checking host system type... " >&6; }
2641 if ${ac_cv_host+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if test "x$host_alias" = x; then
2645 ac_cv_host=$ac_cv_build
2646 else
2647 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2648 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2649 fi
2650
2651 fi
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2653 $as_echo "$ac_cv_host" >&6; }
2654 case $ac_cv_host in
2655 *-*-*) ;;
2656 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2657 esac
2658 host=$ac_cv_host
2659 ac_save_IFS=$IFS; IFS='-'
2660 set x $ac_cv_host
2661 shift
2662 host_cpu=$1
2663 host_vendor=$2
2664 shift; shift
2665 # Remember, the first character of IFS is used to create $*,
2666 # except with old shells:
2667 host_os=$*
2668 IFS=$ac_save_IFS
2669 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2670
2671
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2673 $as_echo_n "checking target system type... " >&6; }
2674 if ${ac_cv_target+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 if test "x$target_alias" = x; then
2678 ac_cv_target=$ac_cv_host
2679 else
2680 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2681 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2682 fi
2683
2684 fi
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2686 $as_echo "$ac_cv_target" >&6; }
2687 case $ac_cv_target in
2688 *-*-*) ;;
2689 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2690 esac
2691 target=$ac_cv_target
2692 ac_save_IFS=$IFS; IFS='-'
2693 set x $ac_cv_target
2694 shift
2695 target_cpu=$1
2696 target_vendor=$2
2697 shift; shift
2698 # Remember, the first character of IFS is used to create $*,
2699 # except with old shells:
2700 target_os=$*
2701 IFS=$ac_save_IFS
2702 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2703
2704
2705 # The aliases save the names the user supplied, while $host etc.
2706 # will get canonicalized.
2707 test -n "$target_alias" &&
2708 test "$program_prefix$program_suffix$program_transform_name" = \
2709 NONENONEs,x,x, &&
2710 program_prefix=${target_alias}-
2711
2712
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2714 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2715 # Check whether --enable-maintainer-mode was given.
2716 if test "${enable_maintainer_mode+set}" = set; then :
2717 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2718 else
2719 USE_MAINTAINER_MODE=no
2720 fi
2721
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2723 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2724 if test $USE_MAINTAINER_MODE = yes; then
2725 MAINTAINER_MODE_TRUE=
2726 MAINTAINER_MODE_FALSE='#'
2727 else
2728 MAINTAINER_MODE_TRUE='#'
2729 MAINTAINER_MODE_FALSE=
2730 fi
2731
2732 MAINT=$MAINTAINER_MODE_TRUE
2733
2734
2735 # Check whether --enable-silent-rules was given.
2736 if test "${enable_silent_rules+set}" = set; then :
2737 enableval=$enable_silent_rules;
2738 fi
2739
2740 case $enable_silent_rules in # (((
2741 yes) AM_DEFAULT_VERBOSITY=0;;
2742 no) AM_DEFAULT_VERBOSITY=1;;
2743 *) AM_DEFAULT_VERBOSITY=0;;
2744 esac
2745 am_make=${MAKE-make}
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2747 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2748 if ${am_cv_make_support_nested_variables+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 if $as_echo 'TRUE=$(BAR$(V))
2752 BAR0=false
2753 BAR1=true
2754 V=1
2755 am__doit:
2756 @$(TRUE)
2757 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2758 am_cv_make_support_nested_variables=yes
2759 else
2760 am_cv_make_support_nested_variables=no
2761 fi
2762 fi
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2764 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2765 if test $am_cv_make_support_nested_variables = yes; then
2766 AM_V='$(V)'
2767 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2768 else
2769 AM_V=$AM_DEFAULT_VERBOSITY
2770 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2771 fi
2772 AM_BACKSLASH='\'
2773
2774 am__api_version='1.15'
2775
2776 # Find a good install program. We prefer a C program (faster),
2777 # so one script is as good as another. But avoid the broken or
2778 # incompatible versions:
2779 # SysV /etc/install, /usr/sbin/install
2780 # SunOS /usr/etc/install
2781 # IRIX /sbin/install
2782 # AIX /bin/install
2783 # AmigaOS /C/install, which installs bootblocks on floppy discs
2784 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2785 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2786 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2787 # OS/2's system install, which has a completely different semantic
2788 # ./install, which can be erroneously created by make from ./install.sh.
2789 # Reject install programs that cannot install multiple files.
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2791 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2792 if test -z "$INSTALL"; then
2793 if ${ac_cv_path_install+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 # Account for people who put trailing slashes in PATH elements.
2802 case $as_dir/ in #((
2803 ./ | .// | /[cC]/* | \
2804 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2805 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2806 /usr/ucb/* ) ;;
2807 *)
2808 # OSF1 and SCO ODT 3.0 have their own names for install.
2809 # Don't use installbsd from OSF since it installs stuff as root
2810 # by default.
2811 for ac_prog in ginstall scoinst install; do
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2814 if test $ac_prog = install &&
2815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2816 # AIX install. It has an incompatible calling convention.
2817 :
2818 elif test $ac_prog = install &&
2819 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2820 # program-specific install script used by HP pwplus--don't use.
2821 :
2822 else
2823 rm -rf conftest.one conftest.two conftest.dir
2824 echo one > conftest.one
2825 echo two > conftest.two
2826 mkdir conftest.dir
2827 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2828 test -s conftest.one && test -s conftest.two &&
2829 test -s conftest.dir/conftest.one &&
2830 test -s conftest.dir/conftest.two
2831 then
2832 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2833 break 3
2834 fi
2835 fi
2836 fi
2837 done
2838 done
2839 ;;
2840 esac
2841
2842 done
2843 IFS=$as_save_IFS
2844
2845 rm -rf conftest.one conftest.two conftest.dir
2846
2847 fi
2848 if test "${ac_cv_path_install+set}" = set; then
2849 INSTALL=$ac_cv_path_install
2850 else
2851 # As a last resort, use the slow shell script. Don't cache a
2852 # value for INSTALL within a source directory, because that will
2853 # break other packages using the cache if that directory is
2854 # removed, or if the value is a relative name.
2855 INSTALL=$ac_install_sh
2856 fi
2857 fi
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2859 $as_echo "$INSTALL" >&6; }
2860
2861 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2862 # It thinks the first close brace ends the variable substitution.
2863 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2864
2865 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2866
2867 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2870 $as_echo_n "checking whether build environment is sane... " >&6; }
2871 # Reject unsafe characters in $srcdir or the absolute working directory
2872 # name. Accept space and tab only in the latter.
2873 am_lf='
2874 '
2875 case `pwd` in
2876 *[\\\"\#\$\&\'\`$am_lf]*)
2877 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2878 esac
2879 case $srcdir in
2880 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2881 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2882 esac
2883
2884 # Do 'set' in a subshell so we don't clobber the current shell's
2885 # arguments. Must try -L first in case configure is actually a
2886 # symlink; some systems play weird games with the mod time of symlinks
2887 # (eg FreeBSD returns the mod time of the symlink's containing
2888 # directory).
2889 if (
2890 am_has_slept=no
2891 for am_try in 1 2; do
2892 echo "timestamp, slept: $am_has_slept" > conftest.file
2893 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2894 if test "$*" = "X"; then
2895 # -L didn't work.
2896 set X `ls -t "$srcdir/configure" conftest.file`
2897 fi
2898 if test "$*" != "X $srcdir/configure conftest.file" \
2899 && test "$*" != "X conftest.file $srcdir/configure"; then
2900
2901 # If neither matched, then we have a broken ls. This can happen
2902 # if, for instance, CONFIG_SHELL is bash and it inherits a
2903 # broken ls alias from the environment. This has actually
2904 # happened. Such a system could not be considered "sane".
2905 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2906 alias in your environment" "$LINENO" 5
2907 fi
2908 if test "$2" = conftest.file || test $am_try -eq 2; then
2909 break
2910 fi
2911 # Just in case.
2912 sleep 1
2913 am_has_slept=yes
2914 done
2915 test "$2" = conftest.file
2916 )
2917 then
2918 # Ok.
2919 :
2920 else
2921 as_fn_error $? "newly created file is older than distributed files!
2922 Check your system clock" "$LINENO" 5
2923 fi
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2925 $as_echo "yes" >&6; }
2926 # If we didn't sleep, we still need to ensure time stamps of config.status and
2927 # generated files are strictly newer.
2928 am_sleep_pid=
2929 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2930 ( sleep 1 ) &
2931 am_sleep_pid=$!
2932 fi
2933
2934 rm -f conftest.file
2935
2936 test "$program_prefix" != NONE &&
2937 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2938 # Use a double $ so make ignores it.
2939 test "$program_suffix" != NONE &&
2940 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2941 # Double any \ or $.
2942 # By default was `s,x,x', remove it if useless.
2943 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2944 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2945
2946 # Expand $ac_aux_dir to an absolute path.
2947 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2948
2949 if test x"${MISSING+set}" != xset; then
2950 case $am_aux_dir in
2951 *\ * | *\ *)
2952 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2953 *)
2954 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2955 esac
2956 fi
2957 # Use eval to expand $SHELL
2958 if eval "$MISSING --is-lightweight"; then
2959 am_missing_run="$MISSING "
2960 else
2961 am_missing_run=
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2963 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2964 fi
2965
2966 if test x"${install_sh+set}" != xset; then
2967 case $am_aux_dir in
2968 *\ * | *\ *)
2969 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2970 *)
2971 install_sh="\${SHELL} $am_aux_dir/install-sh"
2972 esac
2973 fi
2974
2975 # Installed binaries are usually stripped using 'strip' when the user
2976 # run "make install-strip". However 'strip' might not be the right
2977 # tool to use in cross-compilation environments, therefore Automake
2978 # will honor the 'STRIP' environment variable to overrule this program.
2979 if test "$cross_compiling" != no; then
2980 if test -n "$ac_tool_prefix"; then
2981 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2982 set dummy ${ac_tool_prefix}strip; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_STRIP+:} false; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 if test -n "$STRIP"; then
2989 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3001 fi
3002 done
3003 done
3004 IFS=$as_save_IFS
3005
3006 fi
3007 fi
3008 STRIP=$ac_cv_prog_STRIP
3009 if test -n "$STRIP"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3011 $as_echo "$STRIP" >&6; }
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3015 fi
3016
3017
3018 fi
3019 if test -z "$ac_cv_prog_STRIP"; then
3020 ac_ct_STRIP=$STRIP
3021 # Extract the first word of "strip", so it can be a program name with args.
3022 set dummy strip; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3026 $as_echo_n "(cached) " >&6
3027 else
3028 if test -n "$ac_ct_STRIP"; then
3029 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_ac_ct_STRIP="strip"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3041 fi
3042 done
3043 done
3044 IFS=$as_save_IFS
3045
3046 fi
3047 fi
3048 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3049 if test -n "$ac_ct_STRIP"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3051 $as_echo "$ac_ct_STRIP" >&6; }
3052 else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 fi
3056
3057 if test "x$ac_ct_STRIP" = x; then
3058 STRIP=":"
3059 else
3060 case $cross_compiling:$ac_tool_warned in
3061 yes:)
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064 ac_tool_warned=yes ;;
3065 esac
3066 STRIP=$ac_ct_STRIP
3067 fi
3068 else
3069 STRIP="$ac_cv_prog_STRIP"
3070 fi
3071
3072 fi
3073 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3074
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3076 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3077 if test -z "$MKDIR_P"; then
3078 if ${ac_cv_path_mkdir+:} false; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3083 do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_prog in mkdir gmkdir; do
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3089 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3090 'mkdir (GNU coreutils) '* | \
3091 'mkdir (coreutils) '* | \
3092 'mkdir (fileutils) '4.1*)
3093 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3094 break 3;;
3095 esac
3096 done
3097 done
3098 done
3099 IFS=$as_save_IFS
3100
3101 fi
3102
3103 test -d ./--version && rmdir ./--version
3104 if test "${ac_cv_path_mkdir+set}" = set; then
3105 MKDIR_P="$ac_cv_path_mkdir -p"
3106 else
3107 # As a last resort, use the slow shell script. Don't cache a
3108 # value for MKDIR_P within a source directory, because that will
3109 # break other packages using the cache if that directory is
3110 # removed, or if the value is a relative name.
3111 MKDIR_P="$ac_install_sh -d"
3112 fi
3113 fi
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3115 $as_echo "$MKDIR_P" >&6; }
3116
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3118 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3119 set x ${MAKE-make}
3120 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3121 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 cat >conftest.make <<\_ACEOF
3125 SHELL = /bin/sh
3126 all:
3127 @echo '@@@%%%=$(MAKE)=@@@%%%'
3128 _ACEOF
3129 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3130 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3131 *@@@%%%=?*=@@@%%%*)
3132 eval ac_cv_prog_make_${ac_make}_set=yes;;
3133 *)
3134 eval ac_cv_prog_make_${ac_make}_set=no;;
3135 esac
3136 rm -f conftest.make
3137 fi
3138 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3140 $as_echo "yes" >&6; }
3141 SET_MAKE=
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 SET_MAKE="MAKE=${MAKE-make}"
3146 fi
3147
3148 rm -rf .tst 2>/dev/null
3149 mkdir .tst 2>/dev/null
3150 if test -d .tst; then
3151 am__leading_dot=.
3152 else
3153 am__leading_dot=_
3154 fi
3155 rmdir .tst 2>/dev/null
3156
3157 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3158 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3159 # is not polluted with repeated "-I."
3160 am__isrc=' -I$(srcdir)'
3161 # test to see if srcdir already configured
3162 if test -f $srcdir/config.status; then
3163 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3164 fi
3165 fi
3166
3167 # test whether we have cygpath
3168 if test -z "$CYGPATH_W"; then
3169 if (cygpath --version) >/dev/null 2>/dev/null; then
3170 CYGPATH_W='cygpath -w'
3171 else
3172 CYGPATH_W=echo
3173 fi
3174 fi
3175
3176
3177 # Define the identity of the package.
3178 PACKAGE='zfs'
3179 VERSION='0.6.5.6'
3180
3181
3182 cat >>confdefs.h <<_ACEOF
3183 #define PACKAGE "$PACKAGE"
3184 _ACEOF
3185
3186
3187 cat >>confdefs.h <<_ACEOF
3188 #define VERSION "$VERSION"
3189 _ACEOF
3190
3191 # Some tools Automake needs.
3192
3193 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3194
3195
3196 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3197
3198
3199 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3200
3201
3202 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3203
3204
3205 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3206
3207 # For better backward compatibility. To be removed once Automake 1.9.x
3208 # dies out for good. For more background, see:
3209 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3210 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3211 mkdir_p='$(MKDIR_P)'
3212
3213 # We need awk for the "check" target (and possibly the TAP driver). The
3214 # system "awk" is bad on some platforms.
3215 # Always define AMTAR for backward compatibility. Yes, it's still used
3216 # in the wild :-( We should find a proper way to deprecate it ...
3217 AMTAR='$${TAR-tar}'
3218
3219
3220 # We'll loop over all known methods to create a tar archive until one works.
3221 _am_tools='gnutar pax cpio none'
3222
3223 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3224
3225
3226
3227
3228
3229
3230 # POSIX will say in a future version that running "rm -f" with no argument
3231 # is OK; and we want to be able to make that assumption in our Makefile
3232 # recipes. So use an aggressive probe to check that the usage we want is
3233 # actually supported "in the wild" to an acceptable degree.
3234 # See automake bug#10828.
3235 # To make any issue more visible, cause the running configure to be aborted
3236 # by default if the 'rm' program in use doesn't match our expectations; the
3237 # user can still override this though.
3238 if rm -f && rm -fr && rm -rf; then : OK; else
3239 cat >&2 <<'END'
3240 Oops!
3241
3242 Your 'rm' program seems unable to run without file operands specified
3243 on the command line, even when the '-f' option is present. This is contrary
3244 to the behaviour of most rm programs out there, and not conforming with
3245 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3246
3247 Please tell bug-automake@gnu.org about your system, including the value
3248 of your $PATH and any error possibly output before this message. This
3249 can help us improve future automake versions.
3250
3251 END
3252 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3253 echo 'Configuration will proceed anyway, since you have set the' >&2
3254 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3255 echo >&2
3256 else
3257 cat >&2 <<'END'
3258 Aborting the configuration process, to ensure you take notice of the issue.
3259
3260 You can download and install GNU coreutils to get an 'rm' implementation
3261 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3262
3263 If you want to complete the configuration process using your problematic
3264 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3265 to "yes", and re-run configure.
3266
3267 END
3268 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3269 fi
3270 fi
3271
3272 ac_config_headers="$ac_config_headers zfs_config.h"
3273
3274
3275
3276 ac_ext=c
3277 ac_cpp='$CPP $CPPFLAGS'
3278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281 if test -n "$ac_tool_prefix"; then
3282 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3283 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if ${ac_cv_prog_CC+:} false; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC="$CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3302 fi
3303 done
3304 done
3305 IFS=$as_save_IFS
3306
3307 fi
3308 fi
3309 CC=$ac_cv_prog_CC
3310 if test -n "$CC"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3312 $as_echo "$CC" >&6; }
3313 else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3316 fi
3317
3318
3319 fi
3320 if test -z "$ac_cv_prog_CC"; then
3321 ac_ct_CC=$CC
3322 # Extract the first word of "gcc", so it can be a program name with args.
3323 set dummy gcc; ac_word=$2
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325 $as_echo_n "checking for $ac_word... " >&6; }
3326 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3327 $as_echo_n "(cached) " >&6
3328 else
3329 if test -n "$ac_ct_CC"; then
3330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3334 do
3335 IFS=$as_save_IFS
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_ac_ct_CC="gcc"
3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 break 2
3342 fi
3343 done
3344 done
3345 IFS=$as_save_IFS
3346
3347 fi
3348 fi
3349 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3350 if test -n "$ac_ct_CC"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3352 $as_echo "$ac_ct_CC" >&6; }
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3356 fi
3357
3358 if test "x$ac_ct_CC" = x; then
3359 CC=""
3360 else
3361 case $cross_compiling:$ac_tool_warned in
3362 yes:)
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3365 ac_tool_warned=yes ;;
3366 esac
3367 CC=$ac_ct_CC
3368 fi
3369 else
3370 CC="$ac_cv_prog_CC"
3371 fi
3372
3373 if test -z "$CC"; then
3374 if test -n "$ac_tool_prefix"; then
3375 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3376 set dummy ${ac_tool_prefix}cc; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_CC+:} false; then :
3380 $as_echo_n "(cached) " >&6
3381 else
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_CC="${ac_tool_prefix}cc"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396 done
3397 done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 CC=$ac_cv_prog_CC
3403 if test -n "$CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 $as_echo "$CC" >&6; }
3406 else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 fi
3410
3411
3412 fi
3413 fi
3414 if test -z "$CC"; then
3415 # Extract the first word of "cc", so it can be a program name with args.
3416 set dummy cc; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if ${ac_cv_prog_CC+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 if test -n "$CC"; then
3423 ac_cv_prog_CC="$CC" # Let the user override the test.
3424 else
3425 ac_prog_rejected=no
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3434 ac_prog_rejected=yes
3435 continue
3436 fi
3437 ac_cv_prog_CC="cc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 if test $ac_prog_rejected = yes; then
3446 # We found a bogon in the path, so make sure we never use it.
3447 set dummy $ac_cv_prog_CC
3448 shift
3449 if test $# != 0; then
3450 # We chose a different compiler from the bogus one.
3451 # However, it has the same basename, so the bogon will be chosen
3452 # first if we set CC to just the basename; use the full file name.
3453 shift
3454 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3455 fi
3456 fi
3457 fi
3458 fi
3459 CC=$ac_cv_prog_CC
3460 if test -n "$CC"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3462 $as_echo "$CC" >&6; }
3463 else
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3466 fi
3467
3468
3469 fi
3470 if test -z "$CC"; then
3471 if test -n "$ac_tool_prefix"; then
3472 for ac_prog in cl.exe
3473 do
3474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477 $as_echo_n "checking for $ac_word... " >&6; }
3478 if ${ac_cv_prog_CC+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 else
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH
3486 do
3487 IFS=$as_save_IFS
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 break 2
3494 fi
3495 done
3496 done
3497 IFS=$as_save_IFS
3498
3499 fi
3500 fi
3501 CC=$ac_cv_prog_CC
3502 if test -n "$CC"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3504 $as_echo "$CC" >&6; }
3505 else
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3508 fi
3509
3510
3511 test -n "$CC" && break
3512 done
3513 fi
3514 if test -z "$CC"; then
3515 ac_ct_CC=$CC
3516 for ac_prog in cl.exe
3517 do
3518 # Extract the first word of "$ac_prog", so it can be a program name with args.
3519 set dummy $ac_prog; ac_word=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 if test -n "$ac_ct_CC"; then
3526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3530 do
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535 ac_cv_prog_ac_ct_CC="$ac_prog"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3538 fi
3539 done
3540 done
3541 IFS=$as_save_IFS
3542
3543 fi
3544 fi
3545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3546 if test -n "$ac_ct_CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3548 $as_echo "$ac_ct_CC" >&6; }
3549 else
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3552 fi
3553
3554
3555 test -n "$ac_ct_CC" && break
3556 done
3557
3558 if test "x$ac_ct_CC" = x; then
3559 CC=""
3560 else
3561 case $cross_compiling:$ac_tool_warned in
3562 yes:)
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3565 ac_tool_warned=yes ;;
3566 esac
3567 CC=$ac_ct_CC
3568 fi
3569 fi
3570
3571 fi
3572
3573
3574 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 as_fn_error $? "no acceptable C compiler found in \$PATH
3577 See \`config.log' for more details" "$LINENO" 5; }
3578
3579 # Provide some information about the compiler.
3580 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3581 set X $ac_compile
3582 ac_compiler=$2
3583 for ac_option in --version -v -V -qversion; do
3584 { { ac_try="$ac_compiler $ac_option >&5"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3592 ac_status=$?
3593 if test -s conftest.err; then
3594 sed '10a\
3595 ... rest of stderr output deleted ...
3596 10q' conftest.err >conftest.er1
3597 cat conftest.er1 >&5
3598 fi
3599 rm -f conftest.er1 conftest.err
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }
3602 done
3603
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606
3607 int
3608 main ()
3609 {
3610
3611 ;
3612 return 0;
3613 }
3614 _ACEOF
3615 ac_clean_files_save=$ac_clean_files
3616 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3617 # Try to create an executable without -o first, disregard a.out.
3618 # It will help us diagnose broken compilers, and finding out an intuition
3619 # of exeext.
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3621 $as_echo_n "checking whether the C compiler works... " >&6; }
3622 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3623
3624 # The possible output files:
3625 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3626
3627 ac_rmfiles=
3628 for ac_file in $ac_files
3629 do
3630 case $ac_file in
3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3632 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3633 esac
3634 done
3635 rm -f $ac_rmfiles
3636
3637 if { { ac_try="$ac_link_default"
3638 case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_link_default") 2>&5
3645 ac_status=$?
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }; then :
3648 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3649 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3650 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3651 # so that the user can short-circuit this test for compilers unknown to
3652 # Autoconf.
3653 for ac_file in $ac_files ''
3654 do
3655 test -f "$ac_file" || continue
3656 case $ac_file in
3657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3658 ;;
3659 [ab].out )
3660 # We found the default executable, but exeext='' is most
3661 # certainly right.
3662 break;;
3663 *.* )
3664 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3665 then :; else
3666 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3667 fi
3668 # We set ac_cv_exeext here because the later test for it is not
3669 # safe: cross compilers may not add the suffix if given an `-o'
3670 # argument, so we may need to know it at that point already.
3671 # Even if this section looks crufty: it has the advantage of
3672 # actually working.
3673 break;;
3674 * )
3675 break;;
3676 esac
3677 done
3678 test "$ac_cv_exeext" = no && ac_cv_exeext=
3679
3680 else
3681 ac_file=''
3682 fi
3683 if test -z "$ac_file"; then :
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3686 $as_echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error 77 "C compiler cannot create executables
3692 See \`config.log' for more details" "$LINENO" 5; }
3693 else
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3695 $as_echo "yes" >&6; }
3696 fi
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3698 $as_echo_n "checking for C compiler default output file name... " >&6; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3700 $as_echo "$ac_file" >&6; }
3701 ac_exeext=$ac_cv_exeext
3702
3703 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3704 ac_clean_files=$ac_clean_files_save
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3706 $as_echo_n "checking for suffix of executables... " >&6; }
3707 if { { ac_try="$ac_link"
3708 case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_link") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; then :
3718 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3719 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3720 # work properly (i.e., refer to `conftest.exe'), while it won't with
3721 # `rm'.
3722 for ac_file in conftest.exe conftest conftest.*; do
3723 test -f "$ac_file" || continue
3724 case $ac_file in
3725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3726 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3727 break;;
3728 * ) break;;
3729 esac
3730 done
3731 else
3732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3735 See \`config.log' for more details" "$LINENO" 5; }
3736 fi
3737 rm -f conftest conftest$ac_cv_exeext
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3739 $as_echo "$ac_cv_exeext" >&6; }
3740
3741 rm -f conftest.$ac_ext
3742 EXEEXT=$ac_cv_exeext
3743 ac_exeext=$EXEEXT
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3746 #include <stdio.h>
3747 int
3748 main ()
3749 {
3750 FILE *f = fopen ("conftest.out", "w");
3751 return ferror (f) || fclose (f) != 0;
3752
3753 ;
3754 return 0;
3755 }
3756 _ACEOF
3757 ac_clean_files="$ac_clean_files conftest.out"
3758 # Check that the compiler produces executables we can run. If not, either
3759 # the compiler is broken, or we cross compile.
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3761 $as_echo_n "checking whether we are cross compiling... " >&6; }
3762 if test "$cross_compiling" != yes; then
3763 { { ac_try="$ac_link"
3764 case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_link") 2>&5
3771 ac_status=$?
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }
3774 if { ac_try='./conftest$ac_cv_exeext'
3775 { { case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778 esac
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_try") 2>&5
3782 ac_status=$?
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; }; then
3785 cross_compiling=no
3786 else
3787 if test "$cross_compiling" = maybe; then
3788 cross_compiling=yes
3789 else
3790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792 as_fn_error $? "cannot run C compiled programs.
3793 If you meant to cross compile, use \`--host'.
3794 See \`config.log' for more details" "$LINENO" 5; }
3795 fi
3796 fi
3797 fi
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3799 $as_echo "$cross_compiling" >&6; }
3800
3801 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3802 ac_clean_files=$ac_clean_files_save
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3804 $as_echo_n "checking for suffix of object files... " >&6; }
3805 if ${ac_cv_objext+:} false; then :
3806 $as_echo_n "(cached) " >&6
3807 else
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3810
3811 int
3812 main ()
3813 {
3814
3815 ;
3816 return 0;
3817 }
3818 _ACEOF
3819 rm -f conftest.o conftest.obj
3820 if { { ac_try="$ac_compile"
3821 case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824 esac
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_compile") 2>&5
3828 ac_status=$?
3829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830 test $ac_status = 0; }; then :
3831 for ac_file in conftest.o conftest.obj conftest.*; do
3832 test -f "$ac_file" || continue;
3833 case $ac_file in
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3835 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3836 break;;
3837 esac
3838 done
3839 else
3840 $as_echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error $? "cannot compute suffix of object files: cannot compile
3846 See \`config.log' for more details" "$LINENO" 5; }
3847 fi
3848 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3851 $as_echo "$ac_cv_objext" >&6; }
3852 OBJEXT=$ac_cv_objext
3853 ac_objext=$OBJEXT
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3855 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3856 if ${ac_cv_c_compiler_gnu+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861
3862 int
3863 main ()
3864 {
3865 #ifndef __GNUC__
3866 choke me
3867 #endif
3868
3869 ;
3870 return 0;
3871 }
3872 _ACEOF
3873 if ac_fn_c_try_compile "$LINENO"; then :
3874 ac_compiler_gnu=yes
3875 else
3876 ac_compiler_gnu=no
3877 fi
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3880
3881 fi
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3883 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3884 if test $ac_compiler_gnu = yes; then
3885 GCC=yes
3886 else
3887 GCC=
3888 fi
3889 ac_test_CFLAGS=${CFLAGS+set}
3890 ac_save_CFLAGS=$CFLAGS
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3892 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3893 if ${ac_cv_prog_cc_g+:} false; then :
3894 $as_echo_n "(cached) " >&6
3895 else
3896 ac_save_c_werror_flag=$ac_c_werror_flag
3897 ac_c_werror_flag=yes
3898 ac_cv_prog_cc_g=no
3899 CFLAGS="-g"
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3902
3903 int
3904 main ()
3905 {
3906
3907 ;
3908 return 0;
3909 }
3910 _ACEOF
3911 if ac_fn_c_try_compile "$LINENO"; then :
3912 ac_cv_prog_cc_g=yes
3913 else
3914 CFLAGS=""
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3917
3918 int
3919 main ()
3920 {
3921
3922 ;
3923 return 0;
3924 }
3925 _ACEOF
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927
3928 else
3929 ac_c_werror_flag=$ac_save_c_werror_flag
3930 CFLAGS="-g"
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933
3934 int
3935 main ()
3936 {
3937
3938 ;
3939 return 0;
3940 }
3941 _ACEOF
3942 if ac_fn_c_try_compile "$LINENO"; then :
3943 ac_cv_prog_cc_g=yes
3944 fi
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 fi
3947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948 fi
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 ac_c_werror_flag=$ac_save_c_werror_flag
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3953 $as_echo "$ac_cv_prog_cc_g" >&6; }
3954 if test "$ac_test_CFLAGS" = set; then
3955 CFLAGS=$ac_save_CFLAGS
3956 elif test $ac_cv_prog_cc_g = yes; then
3957 if test "$GCC" = yes; then
3958 CFLAGS="-g -O2"
3959 else
3960 CFLAGS="-g"
3961 fi
3962 else
3963 if test "$GCC" = yes; then
3964 CFLAGS="-O2"
3965 else
3966 CFLAGS=
3967 fi
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3970 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3971 if ${ac_cv_prog_cc_c89+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 ac_cv_prog_cc_c89=no
3975 ac_save_CC=$CC
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3978 #include <stdarg.h>
3979 #include <stdio.h>
3980 struct stat;
3981 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3982 struct buf { int x; };
3983 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3984 static char *e (p, i)
3985 char **p;
3986 int i;
3987 {
3988 return p[i];
3989 }
3990 static char *f (char * (*g) (char **, int), char **p, ...)
3991 {
3992 char *s;
3993 va_list v;
3994 va_start (v,p);
3995 s = g (p, va_arg (v,int));
3996 va_end (v);
3997 return s;
3998 }
3999
4000 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4001 function prototypes and stuff, but not '\xHH' hex character constants.
4002 These don't provoke an error unfortunately, instead are silently treated
4003 as 'x'. The following induces an error, until -std is added to get
4004 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4005 array size at least. It's necessary to write '\x00'==0 to get something
4006 that's true only with -std. */
4007 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4008
4009 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4010 inside strings and character constants. */
4011 #define FOO(x) 'x'
4012 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4013
4014 int test (int i, double x);
4015 struct s1 {int (*f) (int a);};
4016 struct s2 {int (*f) (double a);};
4017 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4018 int argc;
4019 char **argv;
4020 int
4021 main ()
4022 {
4023 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4024 ;
4025 return 0;
4026 }
4027 _ACEOF
4028 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4029 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4030 do
4031 CC="$ac_save_CC $ac_arg"
4032 if ac_fn_c_try_compile "$LINENO"; then :
4033 ac_cv_prog_cc_c89=$ac_arg
4034 fi
4035 rm -f core conftest.err conftest.$ac_objext
4036 test "x$ac_cv_prog_cc_c89" != "xno" && break
4037 done
4038 rm -f conftest.$ac_ext
4039 CC=$ac_save_CC
4040
4041 fi
4042 # AC_CACHE_VAL
4043 case "x$ac_cv_prog_cc_c89" in
4044 x)
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4046 $as_echo "none needed" >&6; } ;;
4047 xno)
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4049 $as_echo "unsupported" >&6; } ;;
4050 *)
4051 CC="$CC $ac_cv_prog_cc_c89"
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4053 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4054 esac
4055 if test "x$ac_cv_prog_cc_c89" != xno; then :
4056
4057 fi
4058
4059 ac_ext=c
4060 ac_cpp='$CPP $CPPFLAGS'
4061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064
4065 ac_ext=c
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4071 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4072 if ${am_cv_prog_cc_c_o+:} false; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4077
4078 int
4079 main ()
4080 {
4081
4082 ;
4083 return 0;
4084 }
4085 _ACEOF
4086 # Make sure it works both with $CC and with simple cc.
4087 # Following AC_PROG_CC_C_O, we do the test twice because some
4088 # compilers refuse to overwrite an existing .o file with -o,
4089 # though they will create one.
4090 am_cv_prog_cc_c_o=yes
4091 for am_i in 1 2; do
4092 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4093 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } \
4097 && test -f conftest2.$ac_objext; then
4098 : OK
4099 else
4100 am_cv_prog_cc_c_o=no
4101 break
4102 fi
4103 done
4104 rm -f core conftest*
4105 unset am_i
4106 fi
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4108 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4109 if test "$am_cv_prog_cc_c_o" != yes; then
4110 # Losing compiler, so override with the script.
4111 # FIXME: It is wrong to rewrite CC.
4112 # But if we don't then we get into trouble of one sort or another.
4113 # A longer-term fix would be to have automake use am__CC in this case,
4114 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4115 CC="$am_aux_dir/compile $CC"
4116 fi
4117 ac_ext=c
4118 ac_cpp='$CPP $CPPFLAGS'
4119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122
4123 DEPDIR="${am__leading_dot}deps"
4124
4125 ac_config_commands="$ac_config_commands depfiles"
4126
4127
4128 am_make=${MAKE-make}
4129 cat > confinc << 'END'
4130 am__doit:
4131 @echo this is the am__doit target
4132 .PHONY: am__doit
4133 END
4134 # If we don't find an include directive, just comment out the code.
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4136 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4137 am__include="#"
4138 am__quote=
4139 _am_result=none
4140 # First try GNU make style include.
4141 echo "include confinc" > confmf
4142 # Ignore all kinds of additional output from 'make'.
4143 case `$am_make -s -f confmf 2> /dev/null` in #(
4144 *the\ am__doit\ target*)
4145 am__include=include
4146 am__quote=
4147 _am_result=GNU
4148 ;;
4149 esac
4150 # Now try BSD make style include.
4151 if test "$am__include" = "#"; then
4152 echo '.include "confinc"' > confmf
4153 case `$am_make -s -f confmf 2> /dev/null` in #(
4154 *the\ am__doit\ target*)
4155 am__include=.include
4156 am__quote="\""
4157 _am_result=BSD
4158 ;;
4159 esac
4160 fi
4161
4162
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4164 $as_echo "$_am_result" >&6; }
4165 rm -f confinc confmf
4166
4167 # Check whether --enable-dependency-tracking was given.
4168 if test "${enable_dependency_tracking+set}" = set; then :
4169 enableval=$enable_dependency_tracking;
4170 fi
4171
4172 if test "x$enable_dependency_tracking" != xno; then
4173 am_depcomp="$ac_aux_dir/depcomp"
4174 AMDEPBACKSLASH='\'
4175 am__nodep='_no'
4176 fi
4177 if test "x$enable_dependency_tracking" != xno; then
4178 AMDEP_TRUE=
4179 AMDEP_FALSE='#'
4180 else
4181 AMDEP_TRUE='#'
4182 AMDEP_FALSE=
4183 fi
4184
4185
4186
4187 depcc="$CC" am_compiler_list=
4188
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4190 $as_echo_n "checking dependency style of $depcc... " >&6; }
4191 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4195 # We make a subdir and do the tests there. Otherwise we can end up
4196 # making bogus files that we don't know about and never remove. For
4197 # instance it was reported that on HP-UX the gcc test will end up
4198 # making a dummy file named 'D' -- because '-MD' means "put the output
4199 # in D".
4200 rm -rf conftest.dir
4201 mkdir conftest.dir
4202 # Copy depcomp to subdir because otherwise we won't find it if we're
4203 # using a relative directory.
4204 cp "$am_depcomp" conftest.dir
4205 cd conftest.dir
4206 # We will build objects and dependencies in a subdirectory because
4207 # it helps to detect inapplicable dependency modes. For instance
4208 # both Tru64's cc and ICC support -MD to output dependencies as a
4209 # side effect of compilation, but ICC will put the dependencies in
4210 # the current directory while Tru64 will put them in the object
4211 # directory.
4212 mkdir sub
4213
4214 am_cv_CC_dependencies_compiler_type=none
4215 if test "$am_compiler_list" = ""; then
4216 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4217 fi
4218 am__universal=false
4219 case " $depcc " in #(
4220 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4221 esac
4222
4223 for depmode in $am_compiler_list; do
4224 # Setup a source with many dependencies, because some compilers
4225 # like to wrap large dependency lists on column 80 (with \), and
4226 # we should not choose a depcomp mode which is confused by this.
4227 #
4228 # We need to recreate these files for each test, as the compiler may
4229 # overwrite some of them when testing with obscure command lines.
4230 # This happens at least with the AIX C compiler.
4231 : > sub/conftest.c
4232 for i in 1 2 3 4 5 6; do
4233 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4234 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4235 # Solaris 10 /bin/sh.
4236 echo '/* dummy */' > sub/conftst$i.h
4237 done
4238 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4239
4240 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4241 # mode. It turns out that the SunPro C++ compiler does not properly
4242 # handle '-M -o', and we need to detect this. Also, some Intel
4243 # versions had trouble with output in subdirs.
4244 am__obj=sub/conftest.${OBJEXT-o}
4245 am__minus_obj="-o $am__obj"
4246 case $depmode in
4247 gcc)
4248 # This depmode causes a compiler race in universal mode.
4249 test "$am__universal" = false || continue
4250 ;;
4251 nosideeffect)
4252 # After this tag, mechanisms are not by side-effect, so they'll
4253 # only be used when explicitly requested.
4254 if test "x$enable_dependency_tracking" = xyes; then
4255 continue
4256 else
4257 break
4258 fi
4259 ;;
4260 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4261 # This compiler won't grok '-c -o', but also, the minuso test has
4262 # not run yet. These depmodes are late enough in the game, and
4263 # so weak that their functioning should not be impacted.
4264 am__obj=conftest.${OBJEXT-o}
4265 am__minus_obj=
4266 ;;
4267 none) break ;;
4268 esac
4269 if depmode=$depmode \
4270 source=sub/conftest.c object=$am__obj \
4271 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4272 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4273 >/dev/null 2>conftest.err &&
4274 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4275 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4276 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4277 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4278 # icc doesn't choke on unknown options, it will just issue warnings
4279 # or remarks (even with -Werror). So we grep stderr for any message
4280 # that says an option was ignored or not supported.
4281 # When given -MP, icc 7.0 and 7.1 complain thusly:
4282 # icc: Command line warning: ignoring option '-M'; no argument required
4283 # The diagnosis changed in icc 8.0:
4284 # icc: Command line remark: option '-MP' not supported
4285 if (grep 'ignoring option' conftest.err ||
4286 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4287 am_cv_CC_dependencies_compiler_type=$depmode
4288 break
4289 fi
4290 fi
4291 done
4292
4293 cd ..
4294 rm -rf conftest.dir
4295 else
4296 am_cv_CC_dependencies_compiler_type=none
4297 fi
4298
4299 fi
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4301 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4302 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4303
4304 if
4305 test "x$enable_dependency_tracking" != xno \
4306 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4307 am__fastdepCC_TRUE=
4308 am__fastdepCC_FALSE='#'
4309 else
4310 am__fastdepCC_TRUE='#'
4311 am__fastdepCC_FALSE=
4312 fi
4313
4314
4315 case `pwd` in
4316 *\ * | *\ *)
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4318 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4319 esac
4320
4321
4322
4323 macro_version='2.4.6'
4324 macro_revision='2.4.6'
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338 ltmain=$ac_aux_dir/ltmain.sh
4339
4340 # Backslashify metacharacters that are still active within
4341 # double-quoted strings.
4342 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4343
4344 # Same as above, but do not quote variable references.
4345 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4346
4347 # Sed substitution to delay expansion of an escaped shell variable in a
4348 # double_quote_subst'ed string.
4349 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4350
4351 # Sed substitution to delay expansion of an escaped single quote.
4352 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4353
4354 # Sed substitution to avoid accidental globbing in evaled expressions
4355 no_glob_subst='s/\*/\\\*/g'
4356
4357 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4358 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4359 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4360
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4362 $as_echo_n "checking how to print strings... " >&6; }
4363 # Test print first, because it will be a builtin if present.
4364 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4365 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4366 ECHO='print -r --'
4367 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4368 ECHO='printf %s\n'
4369 else
4370 # Use this function as a fallback that always works.
4371 func_fallback_echo ()
4372 {
4373 eval 'cat <<_LTECHO_EOF
4374 $1
4375 _LTECHO_EOF'
4376 }
4377 ECHO='func_fallback_echo'
4378 fi
4379
4380 # func_echo_all arg...
4381 # Invoke $ECHO with all args, space-separated.
4382 func_echo_all ()
4383 {
4384 $ECHO ""
4385 }
4386
4387 case $ECHO in
4388 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4389 $as_echo "printf" >&6; } ;;
4390 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4391 $as_echo "print -r" >&6; } ;;
4392 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4393 $as_echo "cat" >&6; } ;;
4394 esac
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4410 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4411 if ${ac_cv_path_SED+:} false; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4415 for ac_i in 1 2 3 4 5 6 7; do
4416 ac_script="$ac_script$as_nl$ac_script"
4417 done
4418 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4419 { ac_script=; unset ac_script;}
4420 if test -z "$SED"; then
4421 ac_path_SED_found=false
4422 # Loop through the user's path and test for each of PROGNAME-LIST
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_prog in sed gsed; do
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4431 as_fn_executable_p "$ac_path_SED" || continue
4432 # Check for GNU ac_path_SED and select it if it is found.
4433 # Check for GNU $ac_path_SED
4434 case `"$ac_path_SED" --version 2>&1` in
4435 *GNU*)
4436 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4437 *)
4438 ac_count=0
4439 $as_echo_n 0123456789 >"conftest.in"
4440 while :
4441 do
4442 cat "conftest.in" "conftest.in" >"conftest.tmp"
4443 mv "conftest.tmp" "conftest.in"
4444 cp "conftest.in" "conftest.nl"
4445 $as_echo '' >> "conftest.nl"
4446 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4448 as_fn_arith $ac_count + 1 && ac_count=$as_val
4449 if test $ac_count -gt ${ac_path_SED_max-0}; then
4450 # Best one so far, save it but keep looking for a better one
4451 ac_cv_path_SED="$ac_path_SED"
4452 ac_path_SED_max=$ac_count
4453 fi
4454 # 10*(2^10) chars as input seems more than enough
4455 test $ac_count -gt 10 && break
4456 done
4457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4458 esac
4459
4460 $ac_path_SED_found && break 3
4461 done
4462 done
4463 done
4464 IFS=$as_save_IFS
4465 if test -z "$ac_cv_path_SED"; then
4466 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4467 fi
4468 else
4469 ac_cv_path_SED=$SED
4470 fi
4471
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4474 $as_echo "$ac_cv_path_SED" >&6; }
4475 SED="$ac_cv_path_SED"
4476 rm -f conftest.sed
4477
4478 test -z "$SED" && SED=sed
4479 Xsed="$SED -e 1s/^X//"
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4492 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4493 if ${ac_cv_path_GREP+:} false; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 if test -z "$GREP"; then
4497 ac_path_GREP_found=false
4498 # Loop through the user's path and test for each of PROGNAME-LIST
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4501 do
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_prog in grep ggrep; do
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4507 as_fn_executable_p "$ac_path_GREP" || continue
4508 # Check for GNU ac_path_GREP and select it if it is found.
4509 # Check for GNU $ac_path_GREP
4510 case `"$ac_path_GREP" --version 2>&1` in
4511 *GNU*)
4512 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4513 *)
4514 ac_count=0
4515 $as_echo_n 0123456789 >"conftest.in"
4516 while :
4517 do
4518 cat "conftest.in" "conftest.in" >"conftest.tmp"
4519 mv "conftest.tmp" "conftest.in"
4520 cp "conftest.in" "conftest.nl"
4521 $as_echo 'GREP' >> "conftest.nl"
4522 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4524 as_fn_arith $ac_count + 1 && ac_count=$as_val
4525 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4526 # Best one so far, save it but keep looking for a better one
4527 ac_cv_path_GREP="$ac_path_GREP"
4528 ac_path_GREP_max=$ac_count
4529 fi
4530 # 10*(2^10) chars as input seems more than enough
4531 test $ac_count -gt 10 && break
4532 done
4533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4534 esac
4535
4536 $ac_path_GREP_found && break 3
4537 done
4538 done
4539 done
4540 IFS=$as_save_IFS
4541 if test -z "$ac_cv_path_GREP"; then
4542 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4543 fi
4544 else
4545 ac_cv_path_GREP=$GREP
4546 fi
4547
4548 fi
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4550 $as_echo "$ac_cv_path_GREP" >&6; }
4551 GREP="$ac_cv_path_GREP"
4552
4553
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4555 $as_echo_n "checking for egrep... " >&6; }
4556 if ${ac_cv_path_EGREP+:} false; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4560 then ac_cv_path_EGREP="$GREP -E"
4561 else
4562 if test -z "$EGREP"; then
4563 ac_path_EGREP_found=false
4564 # Loop through the user's path and test for each of PROGNAME-LIST
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4567 do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_prog in egrep; do
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4573 as_fn_executable_p "$ac_path_EGREP" || continue
4574 # Check for GNU ac_path_EGREP and select it if it is found.
4575 # Check for GNU $ac_path_EGREP
4576 case `"$ac_path_EGREP" --version 2>&1` in
4577 *GNU*)
4578 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4579 *)
4580 ac_count=0
4581 $as_echo_n 0123456789 >"conftest.in"
4582 while :
4583 do
4584 cat "conftest.in" "conftest.in" >"conftest.tmp"
4585 mv "conftest.tmp" "conftest.in"
4586 cp "conftest.in" "conftest.nl"
4587 $as_echo 'EGREP' >> "conftest.nl"
4588 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4589 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4590 as_fn_arith $ac_count + 1 && ac_count=$as_val
4591 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4592 # Best one so far, save it but keep looking for a better one
4593 ac_cv_path_EGREP="$ac_path_EGREP"
4594 ac_path_EGREP_max=$ac_count
4595 fi
4596 # 10*(2^10) chars as input seems more than enough
4597 test $ac_count -gt 10 && break
4598 done
4599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4600 esac
4601
4602 $ac_path_EGREP_found && break 3
4603 done
4604 done
4605 done
4606 IFS=$as_save_IFS
4607 if test -z "$ac_cv_path_EGREP"; then
4608 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4609 fi
4610 else
4611 ac_cv_path_EGREP=$EGREP
4612 fi
4613
4614 fi
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4617 $as_echo "$ac_cv_path_EGREP" >&6; }
4618 EGREP="$ac_cv_path_EGREP"
4619
4620
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4622 $as_echo_n "checking for fgrep... " >&6; }
4623 if ${ac_cv_path_FGREP+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4627 then ac_cv_path_FGREP="$GREP -F"
4628 else
4629 if test -z "$FGREP"; then
4630 ac_path_FGREP_found=false
4631 # Loop through the user's path and test for each of PROGNAME-LIST
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4634 do
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_prog in fgrep; do
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4640 as_fn_executable_p "$ac_path_FGREP" || continue
4641 # Check for GNU ac_path_FGREP and select it if it is found.
4642 # Check for GNU $ac_path_FGREP
4643 case `"$ac_path_FGREP" --version 2>&1` in
4644 *GNU*)
4645 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4646 *)
4647 ac_count=0
4648 $as_echo_n 0123456789 >"conftest.in"
4649 while :
4650 do
4651 cat "conftest.in" "conftest.in" >"conftest.tmp"
4652 mv "conftest.tmp" "conftest.in"
4653 cp "conftest.in" "conftest.nl"
4654 $as_echo 'FGREP' >> "conftest.nl"
4655 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4657 as_fn_arith $ac_count + 1 && ac_count=$as_val
4658 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4659 # Best one so far, save it but keep looking for a better one
4660 ac_cv_path_FGREP="$ac_path_FGREP"
4661 ac_path_FGREP_max=$ac_count
4662 fi
4663 # 10*(2^10) chars as input seems more than enough
4664 test $ac_count -gt 10 && break
4665 done
4666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4667 esac
4668
4669 $ac_path_FGREP_found && break 3
4670 done
4671 done
4672 done
4673 IFS=$as_save_IFS
4674 if test -z "$ac_cv_path_FGREP"; then
4675 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4676 fi
4677 else
4678 ac_cv_path_FGREP=$FGREP
4679 fi
4680
4681 fi
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4684 $as_echo "$ac_cv_path_FGREP" >&6; }
4685 FGREP="$ac_cv_path_FGREP"
4686
4687
4688 test -z "$GREP" && GREP=grep
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708 # Check whether --with-gnu-ld was given.
4709 if test "${with_gnu_ld+set}" = set; then :
4710 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4711 else
4712 with_gnu_ld=no
4713 fi
4714
4715 ac_prog=ld
4716 if test yes = "$GCC"; then
4717 # Check if gcc -print-prog-name=ld gives a path.
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4719 $as_echo_n "checking for ld used by $CC... " >&6; }
4720 case $host in
4721 *-*-mingw*)
4722 # gcc leaves a trailing carriage return, which upsets mingw
4723 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4724 *)
4725 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4726 esac
4727 case $ac_prog in
4728 # Accept absolute paths.
4729 [\\/]* | ?:[\\/]*)
4730 re_direlt='/[^/][^/]*/\.\./'
4731 # Canonicalize the pathname of ld
4732 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4733 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4734 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4735 done
4736 test -z "$LD" && LD=$ac_prog
4737 ;;
4738 "")
4739 # If it fails, then pretend we aren't using GCC.
4740 ac_prog=ld
4741 ;;
4742 *)
4743 # If it is relative, then search for the first ld in PATH.
4744 with_gnu_ld=unknown
4745 ;;
4746 esac
4747 elif test yes = "$with_gnu_ld"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4749 $as_echo_n "checking for GNU ld... " >&6; }
4750 else
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4752 $as_echo_n "checking for non-GNU ld... " >&6; }
4753 fi
4754 if ${lt_cv_path_LD+:} false; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if test -z "$LD"; then
4758 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4759 for ac_dir in $PATH; do
4760 IFS=$lt_save_ifs
4761 test -z "$ac_dir" && ac_dir=.
4762 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4763 lt_cv_path_LD=$ac_dir/$ac_prog
4764 # Check to see if the program is GNU ld. I'd rather use --version,
4765 # but apparently some variants of GNU ld only accept -v.
4766 # Break only if it was the GNU/non-GNU ld that we prefer.
4767 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4768 *GNU* | *'with BFD'*)
4769 test no != "$with_gnu_ld" && break
4770 ;;
4771 *)
4772 test yes != "$with_gnu_ld" && break
4773 ;;
4774 esac
4775 fi
4776 done
4777 IFS=$lt_save_ifs
4778 else
4779 lt_cv_path_LD=$LD # Let the user override the test with a path.
4780 fi
4781 fi
4782
4783 LD=$lt_cv_path_LD
4784 if test -n "$LD"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4786 $as_echo "$LD" >&6; }
4787 else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4790 fi
4791 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4793 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4794 if ${lt_cv_prog_gnu_ld+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4798 case `$LD -v 2>&1 </dev/null` in
4799 *GNU* | *'with BFD'*)
4800 lt_cv_prog_gnu_ld=yes
4801 ;;
4802 *)
4803 lt_cv_prog_gnu_ld=no
4804 ;;
4805 esac
4806 fi
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4808 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4809 with_gnu_ld=$lt_cv_prog_gnu_ld
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4820 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4821 if ${lt_cv_path_NM+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 if test -n "$NM"; then
4825 # Let the user override the test.
4826 lt_cv_path_NM=$NM
4827 else
4828 lt_nm_to_check=${ac_tool_prefix}nm
4829 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4830 lt_nm_to_check="$lt_nm_to_check nm"
4831 fi
4832 for lt_tmp_nm in $lt_nm_to_check; do
4833 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4834 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4835 IFS=$lt_save_ifs
4836 test -z "$ac_dir" && ac_dir=.
4837 tmp_nm=$ac_dir/$lt_tmp_nm
4838 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4839 # Check to see if the nm accepts a BSD-compat flag.
4840 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4841 # nm: unknown option "B" ignored
4842 # Tru64's nm complains that /dev/null is an invalid object file
4843 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4844 case $build_os in
4845 mingw*) lt_bad_file=conftest.nm/nofile ;;
4846 *) lt_bad_file=/dev/null ;;
4847 esac
4848 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4849 *$lt_bad_file* | *'Invalid file or object type'*)
4850 lt_cv_path_NM="$tmp_nm -B"
4851 break 2
4852 ;;
4853 *)
4854 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4855 */dev/null*)
4856 lt_cv_path_NM="$tmp_nm -p"
4857 break 2
4858 ;;
4859 *)
4860 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4861 continue # so that we can try to find one that supports BSD flags
4862 ;;
4863 esac
4864 ;;
4865 esac
4866 fi
4867 done
4868 IFS=$lt_save_ifs
4869 done
4870 : ${lt_cv_path_NM=no}
4871 fi
4872 fi
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4874 $as_echo "$lt_cv_path_NM" >&6; }
4875 if test no != "$lt_cv_path_NM"; then
4876 NM=$lt_cv_path_NM
4877 else
4878 # Didn't find any BSD compatible name lister, look for dumpbin.
4879 if test -n "$DUMPBIN"; then :
4880 # Let the user override the test.
4881 else
4882 if test -n "$ac_tool_prefix"; then
4883 for ac_prog in dumpbin "link -dump"
4884 do
4885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if ${ac_cv_prog_DUMPBIN+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 if test -n "$DUMPBIN"; then
4893 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4894 else
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4897 do
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 break 2
4905 fi
4906 done
4907 done
4908 IFS=$as_save_IFS
4909
4910 fi
4911 fi
4912 DUMPBIN=$ac_cv_prog_DUMPBIN
4913 if test -n "$DUMPBIN"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4915 $as_echo "$DUMPBIN" >&6; }
4916 else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4919 fi
4920
4921
4922 test -n "$DUMPBIN" && break
4923 done
4924 fi
4925 if test -z "$DUMPBIN"; then
4926 ac_ct_DUMPBIN=$DUMPBIN
4927 for ac_prog in dumpbin "link -dump"
4928 do
4929 # Extract the first word of "$ac_prog", so it can be a program name with args.
4930 set dummy $ac_prog; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if test -n "$ac_ct_DUMPBIN"; then
4937 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4949 fi
4950 done
4951 done
4952 IFS=$as_save_IFS
4953
4954 fi
4955 fi
4956 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4957 if test -n "$ac_ct_DUMPBIN"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4959 $as_echo "$ac_ct_DUMPBIN" >&6; }
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 fi
4964
4965
4966 test -n "$ac_ct_DUMPBIN" && break
4967 done
4968
4969 if test "x$ac_ct_DUMPBIN" = x; then
4970 DUMPBIN=":"
4971 else
4972 case $cross_compiling:$ac_tool_warned in
4973 yes:)
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4976 ac_tool_warned=yes ;;
4977 esac
4978 DUMPBIN=$ac_ct_DUMPBIN
4979 fi
4980 fi
4981
4982 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4983 *COFF*)
4984 DUMPBIN="$DUMPBIN -symbols -headers"
4985 ;;
4986 *)
4987 DUMPBIN=:
4988 ;;
4989 esac
4990 fi
4991
4992 if test : != "$DUMPBIN"; then
4993 NM=$DUMPBIN
4994 fi
4995 fi
4996 test -z "$NM" && NM=nm
4997
4998
4999
5000
5001
5002
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5004 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5005 if ${lt_cv_nm_interface+:} false; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 lt_cv_nm_interface="BSD nm"
5009 echo "int some_variable = 0;" > conftest.$ac_ext
5010 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5011 (eval "$ac_compile" 2>conftest.err)
5012 cat conftest.err >&5
5013 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5014 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5015 cat conftest.err >&5
5016 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5017 cat conftest.out >&5
5018 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5019 lt_cv_nm_interface="MS dumpbin"
5020 fi
5021 rm -f conftest*
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5024 $as_echo "$lt_cv_nm_interface" >&6; }
5025
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5027 $as_echo_n "checking whether ln -s works... " >&6; }
5028 LN_S=$as_ln_s
5029 if test "$LN_S" = "ln -s"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5031 $as_echo "yes" >&6; }
5032 else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5034 $as_echo "no, using $LN_S" >&6; }
5035 fi
5036
5037 # find the maximum length of command line arguments
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5039 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5040 if ${lt_cv_sys_max_cmd_len+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 i=0
5044 teststring=ABCD
5045
5046 case $build_os in
5047 msdosdjgpp*)
5048 # On DJGPP, this test can blow up pretty badly due to problems in libc
5049 # (any single argument exceeding 2000 bytes causes a buffer overrun
5050 # during glob expansion). Even if it were fixed, the result of this
5051 # check would be larger than it should be.
5052 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5053 ;;
5054
5055 gnu*)
5056 # Under GNU Hurd, this test is not required because there is
5057 # no limit to the length of command line arguments.
5058 # Libtool will interpret -1 as no limit whatsoever
5059 lt_cv_sys_max_cmd_len=-1;
5060 ;;
5061
5062 cygwin* | mingw* | cegcc*)
5063 # On Win9x/ME, this test blows up -- it succeeds, but takes
5064 # about 5 minutes as the teststring grows exponentially.
5065 # Worse, since 9x/ME are not pre-emptively multitasking,
5066 # you end up with a "frozen" computer, even though with patience
5067 # the test eventually succeeds (with a max line length of 256k).
5068 # Instead, let's just punt: use the minimum linelength reported by
5069 # all of the supported platforms: 8192 (on NT/2K/XP).
5070 lt_cv_sys_max_cmd_len=8192;
5071 ;;
5072
5073 mint*)
5074 # On MiNT this can take a long time and run out of memory.
5075 lt_cv_sys_max_cmd_len=8192;
5076 ;;
5077
5078 amigaos*)
5079 # On AmigaOS with pdksh, this test takes hours, literally.
5080 # So we just punt and use a minimum line length of 8192.
5081 lt_cv_sys_max_cmd_len=8192;
5082 ;;
5083
5084 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5085 # This has been around since 386BSD, at least. Likely further.
5086 if test -x /sbin/sysctl; then
5087 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5088 elif test -x /usr/sbin/sysctl; then
5089 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5090 else
5091 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5092 fi
5093 # And add a safety zone
5094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5096 ;;
5097
5098 interix*)
5099 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5100 lt_cv_sys_max_cmd_len=196608
5101 ;;
5102
5103 os2*)
5104 # The test takes a long time on OS/2.
5105 lt_cv_sys_max_cmd_len=8192
5106 ;;
5107
5108 osf*)
5109 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5110 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5111 # nice to cause kernel panics so lets avoid the loop below.
5112 # First set a reasonable default.
5113 lt_cv_sys_max_cmd_len=16384
5114 #
5115 if test -x /sbin/sysconfig; then
5116 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5117 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5118 esac
5119 fi
5120 ;;
5121 sco3.2v5*)
5122 lt_cv_sys_max_cmd_len=102400
5123 ;;
5124 sysv5* | sco5v6* | sysv4.2uw2*)
5125 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5126 if test -n "$kargmax"; then
5127 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5128 else
5129 lt_cv_sys_max_cmd_len=32768
5130 fi
5131 ;;
5132 *)
5133 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5134 if test -n "$lt_cv_sys_max_cmd_len" && \
5135 test undefined != "$lt_cv_sys_max_cmd_len"; then
5136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5138 else
5139 # Make teststring a little bigger before we do anything with it.
5140 # a 1K string should be a reasonable start.
5141 for i in 1 2 3 4 5 6 7 8; do
5142 teststring=$teststring$teststring
5143 done
5144 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5145 # If test is not a shell built-in, we'll probably end up computing a
5146 # maximum length that is only half of the actual maximum length, but
5147 # we can't tell.
5148 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5149 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5150 test 17 != "$i" # 1/2 MB should be enough
5151 do
5152 i=`expr $i + 1`
5153 teststring=$teststring$teststring
5154 done
5155 # Only check the string length outside the loop.
5156 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5157 teststring=
5158 # Add a significant safety factor because C++ compilers can tack on
5159 # massive amounts of additional arguments before passing them to the
5160 # linker. It appears as though 1/2 is a usable value.
5161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5162 fi
5163 ;;
5164 esac
5165
5166 fi
5167
5168 if test -n "$lt_cv_sys_max_cmd_len"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5170 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5173 $as_echo "none" >&6; }
5174 fi
5175 max_cmd_len=$lt_cv_sys_max_cmd_len
5176
5177
5178
5179
5180
5181
5182 : ${CP="cp -f"}
5183 : ${MV="mv -f"}
5184 : ${RM="rm -f"}
5185
5186 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5187 lt_unset=unset
5188 else
5189 lt_unset=false
5190 fi
5191
5192
5193
5194
5195
5196 # test EBCDIC or ASCII
5197 case `echo X|tr X '\101'` in
5198 A) # ASCII based system
5199 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5200 lt_SP2NL='tr \040 \012'
5201 lt_NL2SP='tr \015\012 \040\040'
5202 ;;
5203 *) # EBCDIC based system
5204 lt_SP2NL='tr \100 \n'
5205 lt_NL2SP='tr \r\n \100\100'
5206 ;;
5207 esac
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5218 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5219 if ${lt_cv_to_host_file_cmd+:} false; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 case $host in
5223 *-*-mingw* )
5224 case $build in
5225 *-*-mingw* ) # actually msys
5226 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5227 ;;
5228 *-*-cygwin* )
5229 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5230 ;;
5231 * ) # otherwise, assume *nix
5232 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5233 ;;
5234 esac
5235 ;;
5236 *-*-cygwin* )
5237 case $build in
5238 *-*-mingw* ) # actually msys
5239 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5240 ;;
5241 *-*-cygwin* )
5242 lt_cv_to_host_file_cmd=func_convert_file_noop
5243 ;;
5244 * ) # otherwise, assume *nix
5245 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5246 ;;
5247 esac
5248 ;;
5249 * ) # unhandled hosts (and "normal" native builds)
5250 lt_cv_to_host_file_cmd=func_convert_file_noop
5251 ;;
5252 esac
5253
5254 fi
5255
5256 to_host_file_cmd=$lt_cv_to_host_file_cmd
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5258 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5259
5260
5261
5262
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5265 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5266 if ${lt_cv_to_tool_file_cmd+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 #assume ordinary cross tools, or native build.
5270 lt_cv_to_tool_file_cmd=func_convert_file_noop
5271 case $host in
5272 *-*-mingw* )
5273 case $build in
5274 *-*-mingw* ) # actually msys
5275 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5276 ;;
5277 esac
5278 ;;
5279 esac
5280
5281 fi
5282
5283 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5285 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5286
5287
5288
5289
5290
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5292 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5293 if ${lt_cv_ld_reload_flag+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 lt_cv_ld_reload_flag='-r'
5297 fi
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5299 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5300 reload_flag=$lt_cv_ld_reload_flag
5301 case $reload_flag in
5302 "" | " "*) ;;
5303 *) reload_flag=" $reload_flag" ;;
5304 esac
5305 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5306 case $host_os in
5307 cygwin* | mingw* | pw32* | cegcc*)
5308 if test yes != "$GCC"; then
5309 reload_cmds=false
5310 fi
5311 ;;
5312 darwin*)
5313 if test yes = "$GCC"; then
5314 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5315 else
5316 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5317 fi
5318 ;;
5319 esac
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329 if test -n "$ac_tool_prefix"; then
5330 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5331 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if ${ac_cv_prog_OBJDUMP+:} false; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 if test -n "$OBJDUMP"; then
5338 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5339 else
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343 IFS=$as_save_IFS
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5347 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 break 2
5350 fi
5351 done
5352 done
5353 IFS=$as_save_IFS
5354
5355 fi
5356 fi
5357 OBJDUMP=$ac_cv_prog_OBJDUMP
5358 if test -n "$OBJDUMP"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5360 $as_echo "$OBJDUMP" >&6; }
5361 else
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5364 fi
5365
5366
5367 fi
5368 if test -z "$ac_cv_prog_OBJDUMP"; then
5369 ac_ct_OBJDUMP=$OBJDUMP
5370 # Extract the first word of "objdump", so it can be a program name with args.
5371 set dummy objdump; ac_word=$2
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 if test -n "$ac_ct_OBJDUMP"; then
5378 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5379 else
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH
5382 do
5383 IFS=$as_save_IFS
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5387 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 break 2
5390 fi
5391 done
5392 done
5393 IFS=$as_save_IFS
5394
5395 fi
5396 fi
5397 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5398 if test -n "$ac_ct_OBJDUMP"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5400 $as_echo "$ac_ct_OBJDUMP" >&6; }
5401 else
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5404 fi
5405
5406 if test "x$ac_ct_OBJDUMP" = x; then
5407 OBJDUMP="false"
5408 else
5409 case $cross_compiling:$ac_tool_warned in
5410 yes:)
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5413 ac_tool_warned=yes ;;
5414 esac
5415 OBJDUMP=$ac_ct_OBJDUMP
5416 fi
5417 else
5418 OBJDUMP="$ac_cv_prog_OBJDUMP"
5419 fi
5420
5421 test -z "$OBJDUMP" && OBJDUMP=objdump
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5432 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5433 if ${lt_cv_deplibs_check_method+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 lt_cv_file_magic_cmd='$MAGIC_CMD'
5437 lt_cv_file_magic_test_file=
5438 lt_cv_deplibs_check_method='unknown'
5439 # Need to set the preceding variable on all platforms that support
5440 # interlibrary dependencies.
5441 # 'none' -- dependencies not supported.
5442 # 'unknown' -- same as none, but documents that we really don't know.
5443 # 'pass_all' -- all dependencies passed with no checks.
5444 # 'test_compile' -- check by making test program.
5445 # 'file_magic [[regex]]' -- check by looking for files in library path
5446 # that responds to the $file_magic_cmd with a given extended regex.
5447 # If you have 'file' or equivalent on your system and you're not sure
5448 # whether 'pass_all' will *always* work, you probably want this one.
5449
5450 case $host_os in
5451 aix[4-9]*)
5452 lt_cv_deplibs_check_method=pass_all
5453 ;;
5454
5455 beos*)
5456 lt_cv_deplibs_check_method=pass_all
5457 ;;
5458
5459 bsdi[45]*)
5460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5461 lt_cv_file_magic_cmd='/usr/bin/file -L'
5462 lt_cv_file_magic_test_file=/shlib/libc.so
5463 ;;
5464
5465 cygwin*)
5466 # func_win32_libid is a shell function defined in ltmain.sh
5467 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5468 lt_cv_file_magic_cmd='func_win32_libid'
5469 ;;
5470
5471 mingw* | pw32*)
5472 # Base MSYS/MinGW do not provide the 'file' command needed by
5473 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5474 # unless we find 'file', for example because we are cross-compiling.
5475 if ( file / ) >/dev/null 2>&1; then
5476 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5477 lt_cv_file_magic_cmd='func_win32_libid'
5478 else
5479 # Keep this pattern in sync with the one in func_win32_libid.
5480 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5481 lt_cv_file_magic_cmd='$OBJDUMP -f'
5482 fi
5483 ;;
5484
5485 cegcc*)
5486 # use the weaker test based on 'objdump'. See mingw*.
5487 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5488 lt_cv_file_magic_cmd='$OBJDUMP -f'
5489 ;;
5490
5491 darwin* | rhapsody*)
5492 lt_cv_deplibs_check_method=pass_all
5493 ;;
5494
5495 freebsd* | dragonfly*)
5496 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5497 case $host_cpu in
5498 i*86 )
5499 # Not sure whether the presence of OpenBSD here was a mistake.
5500 # Let's accept both of them until this is cleared up.
5501 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5502 lt_cv_file_magic_cmd=/usr/bin/file
5503 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5504 ;;
5505 esac
5506 else
5507 lt_cv_deplibs_check_method=pass_all
5508 fi
5509 ;;
5510
5511 haiku*)
5512 lt_cv_deplibs_check_method=pass_all
5513 ;;
5514
5515 hpux10.20* | hpux11*)
5516 lt_cv_file_magic_cmd=/usr/bin/file
5517 case $host_cpu in
5518 ia64*)
5519 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5520 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5521 ;;
5522 hppa*64*)
5523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5524 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5525 ;;
5526 *)
5527 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5528 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5529 ;;
5530 esac
5531 ;;
5532
5533 interix[3-9]*)
5534 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5535 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5536 ;;
5537
5538 irix5* | irix6* | nonstopux*)
5539 case $LD in
5540 *-32|*"-32 ") libmagic=32-bit;;
5541 *-n32|*"-n32 ") libmagic=N32;;
5542 *-64|*"-64 ") libmagic=64-bit;;
5543 *) libmagic=never-match;;
5544 esac
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5547
5548 # This must be glibc/ELF.
5549 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5550 lt_cv_deplibs_check_method=pass_all
5551 ;;
5552
5553 netbsd* | netbsdelf*-gnu)
5554 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5555 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5556 else
5557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5558 fi
5559 ;;
5560
5561 newos6*)
5562 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5563 lt_cv_file_magic_cmd=/usr/bin/file
5564 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5565 ;;
5566
5567 *nto* | *qnx*)
5568 lt_cv_deplibs_check_method=pass_all
5569 ;;
5570
5571 openbsd* | bitrig*)
5572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5574 else
5575 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5576 fi
5577 ;;
5578
5579 osf3* | osf4* | osf5*)
5580 lt_cv_deplibs_check_method=pass_all
5581 ;;
5582
5583 rdos*)
5584 lt_cv_deplibs_check_method=pass_all
5585 ;;
5586
5587 solaris*)
5588 lt_cv_deplibs_check_method=pass_all
5589 ;;
5590
5591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5592 lt_cv_deplibs_check_method=pass_all
5593 ;;
5594
5595 sysv4 | sysv4.3*)
5596 case $host_vendor in
5597 motorola)
5598 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]'
5599 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5600 ;;
5601 ncr)
5602 lt_cv_deplibs_check_method=pass_all
5603 ;;
5604 sequent)
5605 lt_cv_file_magic_cmd='/bin/file'
5606 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5607 ;;
5608 sni)
5609 lt_cv_file_magic_cmd='/bin/file'
5610 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5611 lt_cv_file_magic_test_file=/lib/libc.so
5612 ;;
5613 siemens)
5614 lt_cv_deplibs_check_method=pass_all
5615 ;;
5616 pc)
5617 lt_cv_deplibs_check_method=pass_all
5618 ;;
5619 esac
5620 ;;
5621
5622 tpf*)
5623 lt_cv_deplibs_check_method=pass_all
5624 ;;
5625 os2*)
5626 lt_cv_deplibs_check_method=pass_all
5627 ;;
5628 esac
5629
5630 fi
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5632 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5633
5634 file_magic_glob=
5635 want_nocaseglob=no
5636 if test "$build" = "$host"; then
5637 case $host_os in
5638 mingw* | pw32*)
5639 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5640 want_nocaseglob=yes
5641 else
5642 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5643 fi
5644 ;;
5645 esac
5646 fi
5647
5648 file_magic_cmd=$lt_cv_file_magic_cmd
5649 deplibs_check_method=$lt_cv_deplibs_check_method
5650 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673 if test -n "$ac_tool_prefix"; then
5674 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5675 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_DLLTOOL+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 if test -n "$DLLTOOL"; then
5682 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5694 fi
5695 done
5696 done
5697 IFS=$as_save_IFS
5698
5699 fi
5700 fi
5701 DLLTOOL=$ac_cv_prog_DLLTOOL
5702 if test -n "$DLLTOOL"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5704 $as_echo "$DLLTOOL" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709
5710
5711 fi
5712 if test -z "$ac_cv_prog_DLLTOOL"; then
5713 ac_ct_DLLTOOL=$DLLTOOL
5714 # Extract the first word of "dlltool", so it can be a program name with args.
5715 set dummy dlltool; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 if test -n "$ac_ct_DLLTOOL"; then
5722 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5734 fi
5735 done
5736 done
5737 IFS=$as_save_IFS
5738
5739 fi
5740 fi
5741 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5742 if test -n "$ac_ct_DLLTOOL"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5744 $as_echo "$ac_ct_DLLTOOL" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5748 fi
5749
5750 if test "x$ac_ct_DLLTOOL" = x; then
5751 DLLTOOL="false"
5752 else
5753 case $cross_compiling:$ac_tool_warned in
5754 yes:)
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5757 ac_tool_warned=yes ;;
5758 esac
5759 DLLTOOL=$ac_ct_DLLTOOL
5760 fi
5761 else
5762 DLLTOOL="$ac_cv_prog_DLLTOOL"
5763 fi
5764
5765 test -z "$DLLTOOL" && DLLTOOL=dlltool
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5777 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5778 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 lt_cv_sharedlib_from_linklib_cmd='unknown'
5782
5783 case $host_os in
5784 cygwin* | mingw* | pw32* | cegcc*)
5785 # two different shell functions defined in ltmain.sh;
5786 # decide which one to use based on capabilities of $DLLTOOL
5787 case `$DLLTOOL --help 2>&1` in
5788 *--identify-strict*)
5789 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5790 ;;
5791 *)
5792 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5793 ;;
5794 esac
5795 ;;
5796 *)
5797 # fallback: assume linklib IS sharedlib
5798 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5799 ;;
5800 esac
5801
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5804 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5805 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5806 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5807
5808
5809
5810
5811
5812
5813
5814
5815 if test -n "$ac_tool_prefix"; then
5816 for ac_prog in ar
5817 do
5818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_AR+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 if test -n "$AR"; then
5826 ac_cv_prog_AR="$AR" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 AR=$ac_cv_prog_AR
5846 if test -n "$AR"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5848 $as_echo "$AR" >&6; }
5849 else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5852 fi
5853
5854
5855 test -n "$AR" && break
5856 done
5857 fi
5858 if test -z "$AR"; then
5859 ac_ct_AR=$AR
5860 for ac_prog in ar
5861 do
5862 # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 if test -n "$ac_ct_AR"; then
5870 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879 ac_cv_prog_ac_ct_AR="$ac_prog"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5882 fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5890 if test -n "$ac_ct_AR"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5892 $as_echo "$ac_ct_AR" >&6; }
5893 else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898
5899 test -n "$ac_ct_AR" && break
5900 done
5901
5902 if test "x$ac_ct_AR" = x; then
5903 AR="false"
5904 else
5905 case $cross_compiling:$ac_tool_warned in
5906 yes:)
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5909 ac_tool_warned=yes ;;
5910 esac
5911 AR=$ac_ct_AR
5912 fi
5913 fi
5914
5915 : ${AR=ar}
5916 : ${AR_FLAGS=cru}
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5929 $as_echo_n "checking for archiver @FILE support... " >&6; }
5930 if ${lt_cv_ar_at_file+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 lt_cv_ar_at_file=no
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5936
5937 int
5938 main ()
5939 {
5940
5941 ;
5942 return 0;
5943 }
5944 _ACEOF
5945 if ac_fn_c_try_compile "$LINENO"; then :
5946 echo conftest.$ac_objext > conftest.lst
5947 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5949 (eval $lt_ar_try) 2>&5
5950 ac_status=$?
5951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5952 test $ac_status = 0; }
5953 if test 0 -eq "$ac_status"; then
5954 # Ensure the archiver fails upon bogus file names.
5955 rm -f conftest.$ac_objext libconftest.a
5956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5957 (eval $lt_ar_try) 2>&5
5958 ac_status=$?
5959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5960 test $ac_status = 0; }
5961 if test 0 -ne "$ac_status"; then
5962 lt_cv_ar_at_file=@
5963 fi
5964 fi
5965 rm -f conftest.* libconftest.a
5966
5967 fi
5968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969
5970 fi
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5972 $as_echo "$lt_cv_ar_at_file" >&6; }
5973
5974 if test no = "$lt_cv_ar_at_file"; then
5975 archiver_list_spec=
5976 else
5977 archiver_list_spec=$lt_cv_ar_at_file
5978 fi
5979
5980
5981
5982
5983
5984
5985
5986 if test -n "$ac_tool_prefix"; then
5987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5988 set dummy ${ac_tool_prefix}strip; ac_word=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 $as_echo_n "checking for $ac_word... " >&6; }
5991 if ${ac_cv_prog_STRIP+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if test -n "$STRIP"; then
5995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5996 else
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
5999 do
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6004 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6007 fi
6008 done
6009 done
6010 IFS=$as_save_IFS
6011
6012 fi
6013 fi
6014 STRIP=$ac_cv_prog_STRIP
6015 if test -n "$STRIP"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6017 $as_echo "$STRIP" >&6; }
6018 else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6021 fi
6022
6023
6024 fi
6025 if test -z "$ac_cv_prog_STRIP"; then
6026 ac_ct_STRIP=$STRIP
6027 # Extract the first word of "strip", so it can be a program name with args.
6028 set dummy strip; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6032 $as_echo_n "(cached) " >&6
6033 else
6034 if test -n "$ac_ct_STRIP"; then
6035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6044 ac_cv_prog_ac_ct_STRIP="strip"
6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 break 2
6047 fi
6048 done
6049 done
6050 IFS=$as_save_IFS
6051
6052 fi
6053 fi
6054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6055 if test -n "$ac_ct_STRIP"; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6057 $as_echo "$ac_ct_STRIP" >&6; }
6058 else
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 $as_echo "no" >&6; }
6061 fi
6062
6063 if test "x$ac_ct_STRIP" = x; then
6064 STRIP=":"
6065 else
6066 case $cross_compiling:$ac_tool_warned in
6067 yes:)
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6070 ac_tool_warned=yes ;;
6071 esac
6072 STRIP=$ac_ct_STRIP
6073 fi
6074 else
6075 STRIP="$ac_cv_prog_STRIP"
6076 fi
6077
6078 test -z "$STRIP" && STRIP=:
6079
6080
6081
6082
6083
6084
6085 if test -n "$ac_tool_prefix"; then
6086 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6087 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if ${ac_cv_prog_RANLIB+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 if test -n "$RANLIB"; then
6094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6106 fi
6107 done
6108 done
6109 IFS=$as_save_IFS
6110
6111 fi
6112 fi
6113 RANLIB=$ac_cv_prog_RANLIB
6114 if test -n "$RANLIB"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6116 $as_echo "$RANLIB" >&6; }
6117 else
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6120 fi
6121
6122
6123 fi
6124 if test -z "$ac_cv_prog_RANLIB"; then
6125 ac_ct_RANLIB=$RANLIB
6126 # Extract the first word of "ranlib", so it can be a program name with args.
6127 set dummy ranlib; ac_word=$2
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129 $as_echo_n "checking for $ac_word... " >&6; }
6130 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6131 $as_echo_n "(cached) " >&6
6132 else
6133 if test -n "$ac_ct_RANLIB"; then
6134 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6135 else
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH
6138 do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6143 ac_cv_prog_ac_ct_RANLIB="ranlib"
6144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 break 2
6146 fi
6147 done
6148 done
6149 IFS=$as_save_IFS
6150
6151 fi
6152 fi
6153 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6154 if test -n "$ac_ct_RANLIB"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6156 $as_echo "$ac_ct_RANLIB" >&6; }
6157 else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159 $as_echo "no" >&6; }
6160 fi
6161
6162 if test "x$ac_ct_RANLIB" = x; then
6163 RANLIB=":"
6164 else
6165 case $cross_compiling:$ac_tool_warned in
6166 yes:)
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169 ac_tool_warned=yes ;;
6170 esac
6171 RANLIB=$ac_ct_RANLIB
6172 fi
6173 else
6174 RANLIB="$ac_cv_prog_RANLIB"
6175 fi
6176
6177 test -z "$RANLIB" && RANLIB=:
6178
6179
6180
6181
6182
6183
6184 # Determine commands to create old-style static archives.
6185 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6186 old_postinstall_cmds='chmod 644 $oldlib'
6187 old_postuninstall_cmds=
6188
6189 if test -n "$RANLIB"; then
6190 case $host_os in
6191 bitrig* | openbsd*)
6192 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6193 ;;
6194 *)
6195 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6196 ;;
6197 esac
6198 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6199 fi
6200
6201 case $host_os in
6202 darwin*)
6203 lock_old_archive_extraction=yes ;;
6204 *)
6205 lock_old_archive_extraction=no ;;
6206 esac
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246 # If no C compiler was specified, use CC.
6247 LTCC=${LTCC-"$CC"}
6248
6249 # If no C compiler flags were specified, use CFLAGS.
6250 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6251
6252 # Allow CC to be a program name with arguments.
6253 compiler=$CC
6254
6255
6256 # Check for command to grab the raw symbol name followed by C symbol from nm.
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6258 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6259 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6260 $as_echo_n "(cached) " >&6
6261 else
6262
6263 # These are sane defaults that work on at least a few old systems.
6264 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6265
6266 # Character class describing NM global symbol codes.
6267 symcode='[BCDEGRST]'
6268
6269 # Regexp to match symbols that can be accessed directly from C.
6270 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6271
6272 # Define system-specific variables.
6273 case $host_os in
6274 aix*)
6275 symcode='[BCDT]'
6276 ;;
6277 cygwin* | mingw* | pw32* | cegcc*)
6278 symcode='[ABCDGISTW]'
6279 ;;
6280 hpux*)
6281 if test ia64 = "$host_cpu"; then
6282 symcode='[ABCDEGRST]'
6283 fi
6284 ;;
6285 irix* | nonstopux*)
6286 symcode='[BCDEGRST]'
6287 ;;
6288 osf*)
6289 symcode='[BCDEGQRST]'
6290 ;;
6291 solaris*)
6292 symcode='[BDRT]'
6293 ;;
6294 sco3.2v5*)
6295 symcode='[DT]'
6296 ;;
6297 sysv4.2uw2*)
6298 symcode='[DT]'
6299 ;;
6300 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6301 symcode='[ABDT]'
6302 ;;
6303 sysv4)
6304 symcode='[DFNSTU]'
6305 ;;
6306 esac
6307
6308 # If we're using GNU nm, then use its standard symbol codes.
6309 case `$NM -V 2>&1` in
6310 *GNU* | *'with BFD'*)
6311 symcode='[ABCDGIRSTW]' ;;
6312 esac
6313
6314 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6315 # Gets list of data symbols to import.
6316 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6317 # Adjust the below global symbol transforms to fixup imported variables.
6318 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6319 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6320 lt_c_name_lib_hook="\
6321 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6322 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6323 else
6324 # Disable hooks by default.
6325 lt_cv_sys_global_symbol_to_import=
6326 lt_cdecl_hook=
6327 lt_c_name_hook=
6328 lt_c_name_lib_hook=
6329 fi
6330
6331 # Transform an extracted symbol line into a proper C declaration.
6332 # Some systems (esp. on ia64) link data and code symbols differently,
6333 # so use this general approach.
6334 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6335 $lt_cdecl_hook\
6336 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6337 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6338
6339 # Transform an extracted symbol line into symbol name and symbol address
6340 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6341 $lt_c_name_hook\
6342 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6343 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6344
6345 # Transform an extracted symbol line into symbol name with lib prefix and
6346 # symbol address.
6347 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6348 $lt_c_name_lib_hook\
6349 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6350 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6351 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6352
6353 # Handle CRLF in mingw tool chain
6354 opt_cr=
6355 case $build_os in
6356 mingw*)
6357 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6358 ;;
6359 esac
6360
6361 # Try without a prefix underscore, then with it.
6362 for ac_symprfx in "" "_"; do
6363
6364 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6365 symxfrm="\\1 $ac_symprfx\\2 \\2"
6366
6367 # Write the raw and C identifiers.
6368 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6369 # Fake it for dumpbin and say T for any non-static function,
6370 # D for any global variable and I for any imported variable.
6371 # Also find C++ and __fastcall symbols from MSVC++,
6372 # which start with @ or ?.
6373 lt_cv_sys_global_symbol_pipe="$AWK '"\
6374 " {last_section=section; section=\$ 3};"\
6375 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6376 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6377 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6378 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6379 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6380 " \$ 0!~/External *\|/{next};"\
6381 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6382 " {if(hide[section]) next};"\
6383 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6384 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6385 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6386 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6387 " ' prfx=^$ac_symprfx"
6388 else
6389 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6390 fi
6391 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6392
6393 # Check to see that the pipe works correctly.
6394 pipe_works=no
6395
6396 rm -f conftest*
6397 cat > conftest.$ac_ext <<_LT_EOF
6398 #ifdef __cplusplus
6399 extern "C" {
6400 #endif
6401 char nm_test_var;
6402 void nm_test_func(void);
6403 void nm_test_func(void){}
6404 #ifdef __cplusplus
6405 }
6406 #endif
6407 int main(){nm_test_var='a';nm_test_func();return(0);}
6408 _LT_EOF
6409
6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6411 (eval $ac_compile) 2>&5
6412 ac_status=$?
6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6414 test $ac_status = 0; }; then
6415 # Now try to grab the symbols.
6416 nlist=conftest.nm
6417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6418 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6419 ac_status=$?
6420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6421 test $ac_status = 0; } && test -s "$nlist"; then
6422 # Try sorting and uniquifying the output.
6423 if sort "$nlist" | uniq > "$nlist"T; then
6424 mv -f "$nlist"T "$nlist"
6425 else
6426 rm -f "$nlist"T
6427 fi
6428
6429 # Make sure that we snagged all the symbols we need.
6430 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6431 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6432 cat <<_LT_EOF > conftest.$ac_ext
6433 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6434 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6435 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6436 relocations are performed -- see ld's documentation on pseudo-relocs. */
6437 # define LT_DLSYM_CONST
6438 #elif defined __osf__
6439 /* This system does not cope well with relocations in const data. */
6440 # define LT_DLSYM_CONST
6441 #else
6442 # define LT_DLSYM_CONST const
6443 #endif
6444
6445 #ifdef __cplusplus
6446 extern "C" {
6447 #endif
6448
6449 _LT_EOF
6450 # Now generate the symbol file.
6451 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6452
6453 cat <<_LT_EOF >> conftest.$ac_ext
6454
6455 /* The mapping between symbol names and symbols. */
6456 LT_DLSYM_CONST struct {
6457 const char *name;
6458 void *address;
6459 }
6460 lt__PROGRAM__LTX_preloaded_symbols[] =
6461 {
6462 { "@PROGRAM@", (void *) 0 },
6463 _LT_EOF
6464 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6465 cat <<\_LT_EOF >> conftest.$ac_ext
6466 {0, (void *) 0}
6467 };
6468
6469 /* This works around a problem in FreeBSD linker */
6470 #ifdef FREEBSD_WORKAROUND
6471 static const void *lt_preloaded_setup() {
6472 return lt__PROGRAM__LTX_preloaded_symbols;
6473 }
6474 #endif
6475
6476 #ifdef __cplusplus
6477 }
6478 #endif
6479 _LT_EOF
6480 # Now try linking the two files.
6481 mv conftest.$ac_objext conftstm.$ac_objext
6482 lt_globsym_save_LIBS=$LIBS
6483 lt_globsym_save_CFLAGS=$CFLAGS
6484 LIBS=conftstm.$ac_objext
6485 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6487 (eval $ac_link) 2>&5
6488 ac_status=$?
6489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6490 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6491 pipe_works=yes
6492 fi
6493 LIBS=$lt_globsym_save_LIBS
6494 CFLAGS=$lt_globsym_save_CFLAGS
6495 else
6496 echo "cannot find nm_test_func in $nlist" >&5
6497 fi
6498 else
6499 echo "cannot find nm_test_var in $nlist" >&5
6500 fi
6501 else
6502 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6503 fi
6504 else
6505 echo "$progname: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6507 fi
6508 rm -rf conftest* conftst*
6509
6510 # Do not use the global_symbol_pipe unless it works.
6511 if test yes = "$pipe_works"; then
6512 break
6513 else
6514 lt_cv_sys_global_symbol_pipe=
6515 fi
6516 done
6517
6518 fi
6519
6520 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6521 lt_cv_sys_global_symbol_to_cdecl=
6522 fi
6523 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6525 $as_echo "failed" >&6; }
6526 else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6528 $as_echo "ok" >&6; }
6529 fi
6530
6531 # Response file support.
6532 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6533 nm_file_list_spec='@'
6534 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6535 nm_file_list_spec='@'
6536 fi
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6575 $as_echo_n "checking for sysroot... " >&6; }
6576
6577 # Check whether --with-sysroot was given.
6578 if test "${with_sysroot+set}" = set; then :
6579 withval=$with_sysroot;
6580 else
6581 with_sysroot=no
6582 fi
6583
6584
6585 lt_sysroot=
6586 case $with_sysroot in #(
6587 yes)
6588 if test yes = "$GCC"; then
6589 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6590 fi
6591 ;; #(
6592 /*)
6593 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6594 ;; #(
6595 no|'')
6596 ;; #(
6597 *)
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6599 $as_echo "$with_sysroot" >&6; }
6600 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6601 ;;
6602 esac
6603
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6605 $as_echo "${lt_sysroot:-no}" >&6; }
6606
6607
6608
6609
6610
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6612 $as_echo_n "checking for a working dd... " >&6; }
6613 if ${ac_cv_path_lt_DD+:} false; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 printf 0123456789abcdef0123456789abcdef >conftest.i
6617 cat conftest.i conftest.i >conftest2.i
6618 : ${lt_DD:=$DD}
6619 if test -z "$lt_DD"; then
6620 ac_path_lt_DD_found=false
6621 # Loop through the user's path and test for each of PROGNAME-LIST
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_prog in dd; do
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6630 as_fn_executable_p "$ac_path_lt_DD" || continue
6631 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6632 cmp -s conftest.i conftest.out \
6633 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6634 fi
6635 $ac_path_lt_DD_found && break 3
6636 done
6637 done
6638 done
6639 IFS=$as_save_IFS
6640 if test -z "$ac_cv_path_lt_DD"; then
6641 :
6642 fi
6643 else
6644 ac_cv_path_lt_DD=$lt_DD
6645 fi
6646
6647 rm -f conftest.i conftest2.i conftest.out
6648 fi
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6650 $as_echo "$ac_cv_path_lt_DD" >&6; }
6651
6652
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6654 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6655 if ${lt_cv_truncate_bin+:} false; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 printf 0123456789abcdef0123456789abcdef >conftest.i
6659 cat conftest.i conftest.i >conftest2.i
6660 lt_cv_truncate_bin=
6661 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6662 cmp -s conftest.i conftest.out \
6663 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6664 fi
6665 rm -f conftest.i conftest2.i conftest.out
6666 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6667 fi
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6669 $as_echo "$lt_cv_truncate_bin" >&6; }
6670
6671
6672
6673
6674
6675
6676
6677 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6678 func_cc_basename ()
6679 {
6680 for cc_temp in $*""; do
6681 case $cc_temp in
6682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6684 \-*) ;;
6685 *) break;;
6686 esac
6687 done
6688 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6689 }
6690
6691 # Check whether --enable-libtool-lock was given.
6692 if test "${enable_libtool_lock+set}" = set; then :
6693 enableval=$enable_libtool_lock;
6694 fi
6695
6696 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6697
6698 # Some flags need to be propagated to the compiler or linker for good
6699 # libtool support.
6700 case $host in
6701 ia64-*-hpux*)
6702 # Find out what ABI is being produced by ac_compile, and set mode
6703 # options accordingly.
6704 echo 'int i;' > conftest.$ac_ext
6705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6706 (eval $ac_compile) 2>&5
6707 ac_status=$?
6708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6709 test $ac_status = 0; }; then
6710 case `/usr/bin/file conftest.$ac_objext` in
6711 *ELF-32*)
6712 HPUX_IA64_MODE=32
6713 ;;
6714 *ELF-64*)
6715 HPUX_IA64_MODE=64
6716 ;;
6717 esac
6718 fi
6719 rm -rf conftest*
6720 ;;
6721 *-*-irix6*)
6722 # Find out what ABI is being produced by ac_compile, and set linker
6723 # options accordingly.
6724 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6726 (eval $ac_compile) 2>&5
6727 ac_status=$?
6728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6729 test $ac_status = 0; }; then
6730 if test yes = "$lt_cv_prog_gnu_ld"; then
6731 case `/usr/bin/file conftest.$ac_objext` in
6732 *32-bit*)
6733 LD="${LD-ld} -melf32bsmip"
6734 ;;
6735 *N32*)
6736 LD="${LD-ld} -melf32bmipn32"
6737 ;;
6738 *64-bit*)
6739 LD="${LD-ld} -melf64bmip"
6740 ;;
6741 esac
6742 else
6743 case `/usr/bin/file conftest.$ac_objext` in
6744 *32-bit*)
6745 LD="${LD-ld} -32"
6746 ;;
6747 *N32*)
6748 LD="${LD-ld} -n32"
6749 ;;
6750 *64-bit*)
6751 LD="${LD-ld} -64"
6752 ;;
6753 esac
6754 fi
6755 fi
6756 rm -rf conftest*
6757 ;;
6758
6759 mips64*-*linux*)
6760 # Find out what ABI is being produced by ac_compile, and set linker
6761 # options accordingly.
6762 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6764 (eval $ac_compile) 2>&5
6765 ac_status=$?
6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6767 test $ac_status = 0; }; then
6768 emul=elf
6769 case `/usr/bin/file conftest.$ac_objext` in
6770 *32-bit*)
6771 emul="${emul}32"
6772 ;;
6773 *64-bit*)
6774 emul="${emul}64"
6775 ;;
6776 esac
6777 case `/usr/bin/file conftest.$ac_objext` in
6778 *MSB*)
6779 emul="${emul}btsmip"
6780 ;;
6781 *LSB*)
6782 emul="${emul}ltsmip"
6783 ;;
6784 esac
6785 case `/usr/bin/file conftest.$ac_objext` in
6786 *N32*)
6787 emul="${emul}n32"
6788 ;;
6789 esac
6790 LD="${LD-ld} -m $emul"
6791 fi
6792 rm -rf conftest*
6793 ;;
6794
6795 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6796 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6797 # Find out what ABI is being produced by ac_compile, and set linker
6798 # options accordingly. Note that the listed cases only cover the
6799 # situations where additional linker options are needed (such as when
6800 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6801 # vice versa); the common cases where no linker options are needed do
6802 # not appear in the list.
6803 echo 'int i;' > conftest.$ac_ext
6804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6805 (eval $ac_compile) 2>&5
6806 ac_status=$?
6807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6808 test $ac_status = 0; }; then
6809 case `/usr/bin/file conftest.o` in
6810 *32-bit*)
6811 case $host in
6812 x86_64-*kfreebsd*-gnu)
6813 LD="${LD-ld} -m elf_i386_fbsd"
6814 ;;
6815 x86_64-*linux*)
6816 case `/usr/bin/file conftest.o` in
6817 *x86-64*)
6818 LD="${LD-ld} -m elf32_x86_64"
6819 ;;
6820 *)
6821 LD="${LD-ld} -m elf_i386"
6822 ;;
6823 esac
6824 ;;
6825 powerpc64le-*linux*)
6826 LD="${LD-ld} -m elf32lppclinux"
6827 ;;
6828 powerpc64-*linux*)
6829 LD="${LD-ld} -m elf32ppclinux"
6830 ;;
6831 s390x-*linux*)
6832 LD="${LD-ld} -m elf_s390"
6833 ;;
6834 sparc64-*linux*)
6835 LD="${LD-ld} -m elf32_sparc"
6836 ;;
6837 esac
6838 ;;
6839 *64-bit*)
6840 case $host in
6841 x86_64-*kfreebsd*-gnu)
6842 LD="${LD-ld} -m elf_x86_64_fbsd"
6843 ;;
6844 x86_64-*linux*)
6845 LD="${LD-ld} -m elf_x86_64"
6846 ;;
6847 powerpcle-*linux*)
6848 LD="${LD-ld} -m elf64lppc"
6849 ;;
6850 powerpc-*linux*)
6851 LD="${LD-ld} -m elf64ppc"
6852 ;;
6853 s390*-*linux*|s390*-*tpf*)
6854 LD="${LD-ld} -m elf64_s390"
6855 ;;
6856 sparc*-*linux*)
6857 LD="${LD-ld} -m elf64_sparc"
6858 ;;
6859 esac
6860 ;;
6861 esac
6862 fi
6863 rm -rf conftest*
6864 ;;
6865
6866 *-*-sco3.2v5*)
6867 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6868 SAVE_CFLAGS=$CFLAGS
6869 CFLAGS="$CFLAGS -belf"
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6871 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6872 if ${lt_cv_cc_needs_belf+:} false; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 ac_ext=c
6876 ac_cpp='$CPP $CPPFLAGS'
6877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6880
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883
6884 int
6885 main ()
6886 {
6887
6888 ;
6889 return 0;
6890 }
6891 _ACEOF
6892 if ac_fn_c_try_link "$LINENO"; then :
6893 lt_cv_cc_needs_belf=yes
6894 else
6895 lt_cv_cc_needs_belf=no
6896 fi
6897 rm -f core conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6899 ac_ext=c
6900 ac_cpp='$CPP $CPPFLAGS'
6901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6904
6905 fi
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6907 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6908 if test yes != "$lt_cv_cc_needs_belf"; then
6909 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6910 CFLAGS=$SAVE_CFLAGS
6911 fi
6912 ;;
6913 *-*solaris*)
6914 # Find out what ABI is being produced by ac_compile, and set linker
6915 # options accordingly.
6916 echo 'int i;' > conftest.$ac_ext
6917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6918 (eval $ac_compile) 2>&5
6919 ac_status=$?
6920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6921 test $ac_status = 0; }; then
6922 case `/usr/bin/file conftest.o` in
6923 *64-bit*)
6924 case $lt_cv_prog_gnu_ld in
6925 yes*)
6926 case $host in
6927 i?86-*-solaris*|x86_64-*-solaris*)
6928 LD="${LD-ld} -m elf_x86_64"
6929 ;;
6930 sparc*-*-solaris*)
6931 LD="${LD-ld} -m elf64_sparc"
6932 ;;
6933 esac
6934 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6935 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6936 LD=${LD-ld}_sol2
6937 fi
6938 ;;
6939 *)
6940 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6941 LD="${LD-ld} -64"
6942 fi
6943 ;;
6944 esac
6945 ;;
6946 esac
6947 fi
6948 rm -rf conftest*
6949 ;;
6950 esac
6951
6952 need_locks=$enable_libtool_lock
6953
6954 if test -n "$ac_tool_prefix"; then
6955 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6956 set dummy ${ac_tool_prefix}mt; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 if test -n "$MANIFEST_TOOL"; then
6963 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6972 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6975 fi
6976 done
6977 done
6978 IFS=$as_save_IFS
6979
6980 fi
6981 fi
6982 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6983 if test -n "$MANIFEST_TOOL"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6985 $as_echo "$MANIFEST_TOOL" >&6; }
6986 else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6989 fi
6990
6991
6992 fi
6993 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6994 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6995 # Extract the first word of "mt", so it can be a program name with args.
6996 set dummy mt; ac_word=$2
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 if test -n "$ac_ct_MANIFEST_TOOL"; then
7003 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7004 else
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7019
7020 fi
7021 fi
7022 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7023 if test -n "$ac_ct_MANIFEST_TOOL"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7025 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7026 else
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028 $as_echo "no" >&6; }
7029 fi
7030
7031 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7032 MANIFEST_TOOL=":"
7033 else
7034 case $cross_compiling:$ac_tool_warned in
7035 yes:)
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7038 ac_tool_warned=yes ;;
7039 esac
7040 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7041 fi
7042 else
7043 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7044 fi
7045
7046 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7048 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7049 if ${lt_cv_path_mainfest_tool+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 lt_cv_path_mainfest_tool=no
7053 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7054 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7055 cat conftest.err >&5
7056 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7057 lt_cv_path_mainfest_tool=yes
7058 fi
7059 rm -f conftest*
7060 fi
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7062 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7063 if test yes != "$lt_cv_path_mainfest_tool"; then
7064 MANIFEST_TOOL=:
7065 fi
7066
7067
7068
7069
7070
7071
7072 case $host_os in
7073 rhapsody* | darwin*)
7074 if test -n "$ac_tool_prefix"; then
7075 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7076 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7080 $as_echo_n "(cached) " >&6
7081 else
7082 if test -n "$DSYMUTIL"; then
7083 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096 done
7097 done
7098 IFS=$as_save_IFS
7099
7100 fi
7101 fi
7102 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7103 if test -n "$DSYMUTIL"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7105 $as_echo "$DSYMUTIL" >&6; }
7106 else
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110
7111
7112 fi
7113 if test -z "$ac_cv_prog_DSYMUTIL"; then
7114 ac_ct_DSYMUTIL=$DSYMUTIL
7115 # Extract the first word of "dsymutil", so it can be a program name with args.
7116 set dummy dsymutil; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7122 if test -n "$ac_ct_DSYMUTIL"; then
7123 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 break 2
7135 fi
7136 done
7137 done
7138 IFS=$as_save_IFS
7139
7140 fi
7141 fi
7142 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7143 if test -n "$ac_ct_DSYMUTIL"; then
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7145 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7146 else
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7149 fi
7150
7151 if test "x$ac_ct_DSYMUTIL" = x; then
7152 DSYMUTIL=":"
7153 else
7154 case $cross_compiling:$ac_tool_warned in
7155 yes:)
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7158 ac_tool_warned=yes ;;
7159 esac
7160 DSYMUTIL=$ac_ct_DSYMUTIL
7161 fi
7162 else
7163 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7164 fi
7165
7166 if test -n "$ac_tool_prefix"; then
7167 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7168 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170 $as_echo_n "checking for $ac_word... " >&6; }
7171 if ${ac_cv_prog_NMEDIT+:} false; then :
7172 $as_echo_n "(cached) " >&6
7173 else
7174 if test -n "$NMEDIT"; then
7175 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7176 else
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7187 fi
7188 done
7189 done
7190 IFS=$as_save_IFS
7191
7192 fi
7193 fi
7194 NMEDIT=$ac_cv_prog_NMEDIT
7195 if test -n "$NMEDIT"; then
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7197 $as_echo "$NMEDIT" >&6; }
7198 else
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 $as_echo "no" >&6; }
7201 fi
7202
7203
7204 fi
7205 if test -z "$ac_cv_prog_NMEDIT"; then
7206 ac_ct_NMEDIT=$NMEDIT
7207 # Extract the first word of "nmedit", so it can be a program name with args.
7208 set dummy nmedit; ac_word=$2
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 if test -n "$ac_ct_NMEDIT"; then
7215 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7216 else
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7219 do
7220 IFS=$as_save_IFS
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 break 2
7227 fi
7228 done
7229 done
7230 IFS=$as_save_IFS
7231
7232 fi
7233 fi
7234 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7235 if test -n "$ac_ct_NMEDIT"; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7237 $as_echo "$ac_ct_NMEDIT" >&6; }
7238 else
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7241 fi
7242
7243 if test "x$ac_ct_NMEDIT" = x; then
7244 NMEDIT=":"
7245 else
7246 case $cross_compiling:$ac_tool_warned in
7247 yes:)
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250 ac_tool_warned=yes ;;
7251 esac
7252 NMEDIT=$ac_ct_NMEDIT
7253 fi
7254 else
7255 NMEDIT="$ac_cv_prog_NMEDIT"
7256 fi
7257
7258 if test -n "$ac_tool_prefix"; then
7259 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7260 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if ${ac_cv_prog_LIPO+:} false; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 if test -n "$LIPO"; then
7267 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 break 2
7279 fi
7280 done
7281 done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 LIPO=$ac_cv_prog_LIPO
7287 if test -n "$LIPO"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7289 $as_echo "$LIPO" >&6; }
7290 else
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294
7295
7296 fi
7297 if test -z "$ac_cv_prog_LIPO"; then
7298 ac_ct_LIPO=$LIPO
7299 # Extract the first word of "lipo", so it can be a program name with args.
7300 set dummy lipo; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 if test -n "$ac_ct_LIPO"; then
7307 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7308 else
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7316 ac_cv_prog_ac_ct_LIPO="lipo"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 break 2
7319 fi
7320 done
7321 done
7322 IFS=$as_save_IFS
7323
7324 fi
7325 fi
7326 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7327 if test -n "$ac_ct_LIPO"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7329 $as_echo "$ac_ct_LIPO" >&6; }
7330 else
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7333 fi
7334
7335 if test "x$ac_ct_LIPO" = x; then
7336 LIPO=":"
7337 else
7338 case $cross_compiling:$ac_tool_warned in
7339 yes:)
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7342 ac_tool_warned=yes ;;
7343 esac
7344 LIPO=$ac_ct_LIPO
7345 fi
7346 else
7347 LIPO="$ac_cv_prog_LIPO"
7348 fi
7349
7350 if test -n "$ac_tool_prefix"; then
7351 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7352 set dummy ${ac_tool_prefix}otool; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if ${ac_cv_prog_OTOOL+:} false; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 if test -n "$OTOOL"; then
7359 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 break 2
7371 fi
7372 done
7373 done
7374 IFS=$as_save_IFS
7375
7376 fi
7377 fi
7378 OTOOL=$ac_cv_prog_OTOOL
7379 if test -n "$OTOOL"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7381 $as_echo "$OTOOL" >&6; }
7382 else
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7385 fi
7386
7387
7388 fi
7389 if test -z "$ac_cv_prog_OTOOL"; then
7390 ac_ct_OTOOL=$OTOOL
7391 # Extract the first word of "otool", so it can be a program name with args.
7392 set dummy otool; ac_word=$2
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 if test -n "$ac_ct_OTOOL"; then
7399 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7400 else
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408 ac_cv_prog_ac_ct_OTOOL="otool"
7409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7411 fi
7412 done
7413 done
7414 IFS=$as_save_IFS
7415
7416 fi
7417 fi
7418 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7419 if test -n "$ac_ct_OTOOL"; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7421 $as_echo "$ac_ct_OTOOL" >&6; }
7422 else
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7425 fi
7426
7427 if test "x$ac_ct_OTOOL" = x; then
7428 OTOOL=":"
7429 else
7430 case $cross_compiling:$ac_tool_warned in
7431 yes:)
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7434 ac_tool_warned=yes ;;
7435 esac
7436 OTOOL=$ac_ct_OTOOL
7437 fi
7438 else
7439 OTOOL="$ac_cv_prog_OTOOL"
7440 fi
7441
7442 if test -n "$ac_tool_prefix"; then
7443 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7444 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if ${ac_cv_prog_OTOOL64+:} false; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 if test -n "$OTOOL64"; then
7451 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7463 fi
7464 done
7465 done
7466 IFS=$as_save_IFS
7467
7468 fi
7469 fi
7470 OTOOL64=$ac_cv_prog_OTOOL64
7471 if test -n "$OTOOL64"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7473 $as_echo "$OTOOL64" >&6; }
7474 else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7477 fi
7478
7479
7480 fi
7481 if test -z "$ac_cv_prog_OTOOL64"; then
7482 ac_ct_OTOOL64=$OTOOL64
7483 # Extract the first word of "otool64", so it can be a program name with args.
7484 set dummy otool64; ac_word=$2
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 if test -n "$ac_ct_OTOOL64"; then
7491 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7495 do
7496 IFS=$as_save_IFS
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500 ac_cv_prog_ac_ct_OTOOL64="otool64"
7501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 break 2
7503 fi
7504 done
7505 done
7506 IFS=$as_save_IFS
7507
7508 fi
7509 fi
7510 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7511 if test -n "$ac_ct_OTOOL64"; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7513 $as_echo "$ac_ct_OTOOL64" >&6; }
7514 else
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516 $as_echo "no" >&6; }
7517 fi
7518
7519 if test "x$ac_ct_OTOOL64" = x; then
7520 OTOOL64=":"
7521 else
7522 case $cross_compiling:$ac_tool_warned in
7523 yes:)
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7526 ac_tool_warned=yes ;;
7527 esac
7528 OTOOL64=$ac_ct_OTOOL64
7529 fi
7530 else
7531 OTOOL64="$ac_cv_prog_OTOOL64"
7532 fi
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7561 $as_echo_n "checking for -single_module linker flag... " >&6; }
7562 if ${lt_cv_apple_cc_single_mod+:} false; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 lt_cv_apple_cc_single_mod=no
7566 if test -z "$LT_MULTI_MODULE"; then
7567 # By default we will add the -single_module flag. You can override
7568 # by either setting the environment variable LT_MULTI_MODULE
7569 # non-empty at configure time, or by adding -multi_module to the
7570 # link flags.
7571 rm -rf libconftest.dylib*
7572 echo "int foo(void){return 1;}" > conftest.c
7573 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7574 -dynamiclib -Wl,-single_module conftest.c" >&5
7575 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7576 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7577 _lt_result=$?
7578 # If there is a non-empty error log, and "single_module"
7579 # appears in it, assume the flag caused a linker warning
7580 if test -s conftest.err && $GREP single_module conftest.err; then
7581 cat conftest.err >&5
7582 # Otherwise, if the output was created with a 0 exit code from
7583 # the compiler, it worked.
7584 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7585 lt_cv_apple_cc_single_mod=yes
7586 else
7587 cat conftest.err >&5
7588 fi
7589 rm -rf libconftest.dylib*
7590 rm -f conftest.*
7591 fi
7592 fi
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7594 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7595
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7597 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7598 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 lt_cv_ld_exported_symbols_list=no
7602 save_LDFLAGS=$LDFLAGS
7603 echo "_main" > conftest.sym
7604 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7607
7608 int
7609 main ()
7610 {
7611
7612 ;
7613 return 0;
7614 }
7615 _ACEOF
7616 if ac_fn_c_try_link "$LINENO"; then :
7617 lt_cv_ld_exported_symbols_list=yes
7618 else
7619 lt_cv_ld_exported_symbols_list=no
7620 fi
7621 rm -f core conftest.err conftest.$ac_objext \
7622 conftest$ac_exeext conftest.$ac_ext
7623 LDFLAGS=$save_LDFLAGS
7624
7625 fi
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7627 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7628
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7630 $as_echo_n "checking for -force_load linker flag... " >&6; }
7631 if ${lt_cv_ld_force_load+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 lt_cv_ld_force_load=no
7635 cat > conftest.c << _LT_EOF
7636 int forced_loaded() { return 2;}
7637 _LT_EOF
7638 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7639 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7640 echo "$AR cru libconftest.a conftest.o" >&5
7641 $AR cru libconftest.a conftest.o 2>&5
7642 echo "$RANLIB libconftest.a" >&5
7643 $RANLIB libconftest.a 2>&5
7644 cat > conftest.c << _LT_EOF
7645 int main() { return 0;}
7646 _LT_EOF
7647 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7648 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7649 _lt_result=$?
7650 if test -s conftest.err && $GREP force_load conftest.err; then
7651 cat conftest.err >&5
7652 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7653 lt_cv_ld_force_load=yes
7654 else
7655 cat conftest.err >&5
7656 fi
7657 rm -f conftest.err libconftest.a conftest conftest.c
7658 rm -rf conftest.dSYM
7659
7660 fi
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7662 $as_echo "$lt_cv_ld_force_load" >&6; }
7663 case $host_os in
7664 rhapsody* | darwin1.[012])
7665 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7666 darwin1.*)
7667 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7668 darwin*) # darwin 5.x on
7669 # if running on 10.5 or later, the deployment target defaults
7670 # to the OS version, if on x86, and 10.4, the deployment
7671 # target defaults to 10.4. Don't you love it?
7672 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7673 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7674 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7675 10.[012][,.]*)
7676 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7677 10.*)
7678 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7679 esac
7680 ;;
7681 esac
7682 if test yes = "$lt_cv_apple_cc_single_mod"; then
7683 _lt_dar_single_mod='$single_module'
7684 fi
7685 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7686 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7687 else
7688 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7689 fi
7690 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7691 _lt_dsymutil='~$DSYMUTIL $lib || :'
7692 else
7693 _lt_dsymutil=
7694 fi
7695 ;;
7696 esac
7697
7698 # func_munge_path_list VARIABLE PATH
7699 # -----------------------------------
7700 # VARIABLE is name of variable containing _space_ separated list of
7701 # directories to be munged by the contents of PATH, which is string
7702 # having a format:
7703 # "DIR[:DIR]:"
7704 # string "DIR[ DIR]" will be prepended to VARIABLE
7705 # ":DIR[:DIR]"
7706 # string "DIR[ DIR]" will be appended to VARIABLE
7707 # "DIRP[:DIRP]::[DIRA:]DIRA"
7708 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7709 # "DIRA[ DIRA]" will be appended to VARIABLE
7710 # "DIR[:DIR]"
7711 # VARIABLE will be replaced by "DIR[ DIR]"
7712 func_munge_path_list ()
7713 {
7714 case x$2 in
7715 x)
7716 ;;
7717 *:)
7718 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7719 ;;
7720 x:*)
7721 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7722 ;;
7723 *::*)
7724 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7725 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7726 ;;
7727 *)
7728 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7729 ;;
7730 esac
7731 }
7732
7733 ac_ext=c
7734 ac_cpp='$CPP $CPPFLAGS'
7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7739 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7740 # On Suns, sometimes $CPP names a directory.
7741 if test -n "$CPP" && test -d "$CPP"; then
7742 CPP=
7743 fi
7744 if test -z "$CPP"; then
7745 if ${ac_cv_prog_CPP+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 # Double quotes because CPP needs to be expanded
7749 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7750 do
7751 ac_preproc_ok=false
7752 for ac_c_preproc_warn_flag in '' yes
7753 do
7754 # Use a header file that comes with gcc, so configuring glibc
7755 # with a fresh cross-compiler works.
7756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7757 # <limits.h> exists even on freestanding compilers.
7758 # On the NeXT, cc -E runs the code through the compiler's parser,
7759 # not just through cpp. "Syntax error" is here to catch this case.
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7762 #ifdef __STDC__
7763 # include <limits.h>
7764 #else
7765 # include <assert.h>
7766 #endif
7767 Syntax error
7768 _ACEOF
7769 if ac_fn_c_try_cpp "$LINENO"; then :
7770
7771 else
7772 # Broken: fails on valid input.
7773 continue
7774 fi
7775 rm -f conftest.err conftest.i conftest.$ac_ext
7776
7777 # OK, works on sane cases. Now check whether nonexistent headers
7778 # can be detected and how.
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 #include <ac_nonexistent.h>
7782 _ACEOF
7783 if ac_fn_c_try_cpp "$LINENO"; then :
7784 # Broken: success on invalid input.
7785 continue
7786 else
7787 # Passes both tests.
7788 ac_preproc_ok=:
7789 break
7790 fi
7791 rm -f conftest.err conftest.i conftest.$ac_ext
7792
7793 done
7794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7795 rm -f conftest.i conftest.err conftest.$ac_ext
7796 if $ac_preproc_ok; then :
7797 break
7798 fi
7799
7800 done
7801 ac_cv_prog_CPP=$CPP
7802
7803 fi
7804 CPP=$ac_cv_prog_CPP
7805 else
7806 ac_cv_prog_CPP=$CPP
7807 fi
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7809 $as_echo "$CPP" >&6; }
7810 ac_preproc_ok=false
7811 for ac_c_preproc_warn_flag in '' yes
7812 do
7813 # Use a header file that comes with gcc, so configuring glibc
7814 # with a fresh cross-compiler works.
7815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7816 # <limits.h> exists even on freestanding compilers.
7817 # On the NeXT, cc -E runs the code through the compiler's parser,
7818 # not just through cpp. "Syntax error" is here to catch this case.
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821 #ifdef __STDC__
7822 # include <limits.h>
7823 #else
7824 # include <assert.h>
7825 #endif
7826 Syntax error
7827 _ACEOF
7828 if ac_fn_c_try_cpp "$LINENO"; then :
7829
7830 else
7831 # Broken: fails on valid input.
7832 continue
7833 fi
7834 rm -f conftest.err conftest.i conftest.$ac_ext
7835
7836 # OK, works on sane cases. Now check whether nonexistent headers
7837 # can be detected and how.
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7840 #include <ac_nonexistent.h>
7841 _ACEOF
7842 if ac_fn_c_try_cpp "$LINENO"; then :
7843 # Broken: success on invalid input.
7844 continue
7845 else
7846 # Passes both tests.
7847 ac_preproc_ok=:
7848 break
7849 fi
7850 rm -f conftest.err conftest.i conftest.$ac_ext
7851
7852 done
7853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7854 rm -f conftest.i conftest.err conftest.$ac_ext
7855 if $ac_preproc_ok; then :
7856
7857 else
7858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7860 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7861 See \`config.log' for more details" "$LINENO" 5; }
7862 fi
7863
7864 ac_ext=c
7865 ac_cpp='$CPP $CPPFLAGS'
7866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7869
7870
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7872 $as_echo_n "checking for ANSI C header files... " >&6; }
7873 if ${ac_cv_header_stdc+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 #include <stdlib.h>
7879 #include <stdarg.h>
7880 #include <string.h>
7881 #include <float.h>
7882
7883 int
7884 main ()
7885 {
7886
7887 ;
7888 return 0;
7889 }
7890 _ACEOF
7891 if ac_fn_c_try_compile "$LINENO"; then :
7892 ac_cv_header_stdc=yes
7893 else
7894 ac_cv_header_stdc=no
7895 fi
7896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897
7898 if test $ac_cv_header_stdc = yes; then
7899 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7902 #include <string.h>
7903
7904 _ACEOF
7905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7906 $EGREP "memchr" >/dev/null 2>&1; then :
7907
7908 else
7909 ac_cv_header_stdc=no
7910 fi
7911 rm -f conftest*
7912
7913 fi
7914
7915 if test $ac_cv_header_stdc = yes; then
7916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7919 #include <stdlib.h>
7920
7921 _ACEOF
7922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7923 $EGREP "free" >/dev/null 2>&1; then :
7924
7925 else
7926 ac_cv_header_stdc=no
7927 fi
7928 rm -f conftest*
7929
7930 fi
7931
7932 if test $ac_cv_header_stdc = yes; then
7933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7934 if test "$cross_compiling" = yes; then :
7935 :
7936 else
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7939 #include <ctype.h>
7940 #include <stdlib.h>
7941 #if ((' ' & 0x0FF) == 0x020)
7942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7944 #else
7945 # define ISLOWER(c) \
7946 (('a' <= (c) && (c) <= 'i') \
7947 || ('j' <= (c) && (c) <= 'r') \
7948 || ('s' <= (c) && (c) <= 'z'))
7949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7950 #endif
7951
7952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7953 int
7954 main ()
7955 {
7956 int i;
7957 for (i = 0; i < 256; i++)
7958 if (XOR (islower (i), ISLOWER (i))
7959 || toupper (i) != TOUPPER (i))
7960 return 2;
7961 return 0;
7962 }
7963 _ACEOF
7964 if ac_fn_c_try_run "$LINENO"; then :
7965
7966 else
7967 ac_cv_header_stdc=no
7968 fi
7969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7970 conftest.$ac_objext conftest.beam conftest.$ac_ext
7971 fi
7972
7973 fi
7974 fi
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7976 $as_echo "$ac_cv_header_stdc" >&6; }
7977 if test $ac_cv_header_stdc = yes; then
7978
7979 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7980
7981 fi
7982
7983 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7985 inttypes.h stdint.h unistd.h
7986 do :
7987 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7988 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7989 "
7990 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7991 cat >>confdefs.h <<_ACEOF
7992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7993 _ACEOF
7994
7995 fi
7996
7997 done
7998
7999
8000 for ac_header in dlfcn.h
8001 do :
8002 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8003 "
8004 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8005 cat >>confdefs.h <<_ACEOF
8006 #define HAVE_DLFCN_H 1
8007 _ACEOF
8008
8009 fi
8010
8011 done
8012
8013
8014
8015
8016
8017 # Set options
8018
8019
8020
8021 enable_dlopen=no
8022
8023
8024 enable_win32_dll=no
8025
8026
8027 # Check whether --enable-shared was given.
8028 if test "${enable_shared+set}" = set; then :
8029 enableval=$enable_shared; p=${PACKAGE-default}
8030 case $enableval in
8031 yes) enable_shared=yes ;;
8032 no) enable_shared=no ;;
8033 *)
8034 enable_shared=no
8035 # Look at the argument we got. We use all the common list separators.
8036 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8037 for pkg in $enableval; do
8038 IFS=$lt_save_ifs
8039 if test "X$pkg" = "X$p"; then
8040 enable_shared=yes
8041 fi
8042 done
8043 IFS=$lt_save_ifs
8044 ;;
8045 esac
8046 else
8047 enable_shared=yes
8048 fi
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058 # Check whether --enable-static was given.
8059 if test "${enable_static+set}" = set; then :
8060 enableval=$enable_static; p=${PACKAGE-default}
8061 case $enableval in
8062 yes) enable_static=yes ;;
8063 no) enable_static=no ;;
8064 *)
8065 enable_static=no
8066 # Look at the argument we got. We use all the common list separators.
8067 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8068 for pkg in $enableval; do
8069 IFS=$lt_save_ifs
8070 if test "X$pkg" = "X$p"; then
8071 enable_static=yes
8072 fi
8073 done
8074 IFS=$lt_save_ifs
8075 ;;
8076 esac
8077 else
8078 enable_static=yes
8079 fi
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090 # Check whether --with-pic was given.
8091 if test "${with_pic+set}" = set; then :
8092 withval=$with_pic; lt_p=${PACKAGE-default}
8093 case $withval in
8094 yes|no) pic_mode=$withval ;;
8095 *)
8096 pic_mode=default
8097 # Look at the argument we got. We use all the common list separators.
8098 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8099 for lt_pkg in $withval; do
8100 IFS=$lt_save_ifs
8101 if test "X$lt_pkg" = "X$lt_p"; then
8102 pic_mode=yes
8103 fi
8104 done
8105 IFS=$lt_save_ifs
8106 ;;
8107 esac
8108 else
8109 pic_mode=default
8110 fi
8111
8112
8113
8114
8115
8116
8117
8118
8119 # Check whether --enable-fast-install was given.
8120 if test "${enable_fast_install+set}" = set; then :
8121 enableval=$enable_fast_install; p=${PACKAGE-default}
8122 case $enableval in
8123 yes) enable_fast_install=yes ;;
8124 no) enable_fast_install=no ;;
8125 *)
8126 enable_fast_install=no
8127 # Look at the argument we got. We use all the common list separators.
8128 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8129 for pkg in $enableval; do
8130 IFS=$lt_save_ifs
8131 if test "X$pkg" = "X$p"; then
8132 enable_fast_install=yes
8133 fi
8134 done
8135 IFS=$lt_save_ifs
8136 ;;
8137 esac
8138 else
8139 enable_fast_install=yes
8140 fi
8141
8142
8143
8144
8145
8146
8147
8148
8149 shared_archive_member_spec=
8150 case $host,$enable_shared in
8151 power*-*-aix[5-9]*,yes)
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8153 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8154
8155 # Check whether --with-aix-soname was given.
8156 if test "${with_aix_soname+set}" = set; then :
8157 withval=$with_aix_soname; case $withval in
8158 aix|svr4|both)
8159 ;;
8160 *)
8161 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8162 ;;
8163 esac
8164 lt_cv_with_aix_soname=$with_aix_soname
8165 else
8166 if ${lt_cv_with_aix_soname+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 lt_cv_with_aix_soname=aix
8170 fi
8171
8172 with_aix_soname=$lt_cv_with_aix_soname
8173 fi
8174
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8176 $as_echo "$with_aix_soname" >&6; }
8177 if test aix != "$with_aix_soname"; then
8178 # For the AIX way of multilib, we name the shared archive member
8179 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8180 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8181 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8182 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8183 if test 64 = "${OBJECT_MODE-32}"; then
8184 shared_archive_member_spec=shr_64
8185 else
8186 shared_archive_member_spec=shr
8187 fi
8188 fi
8189 ;;
8190 *)
8191 with_aix_soname=aix
8192 ;;
8193 esac
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204 # This can be used to rebuild libtool when needed
8205 LIBTOOL_DEPS=$ltmain
8206
8207 # Always use our own libtool.
8208 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239 test -z "$LN_S" && LN_S="ln -s"
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254 if test -n "${ZSH_VERSION+set}"; then
8255 setopt NO_GLOB_SUBST
8256 fi
8257
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8259 $as_echo_n "checking for objdir... " >&6; }
8260 if ${lt_cv_objdir+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 rm -f .libs 2>/dev/null
8264 mkdir .libs 2>/dev/null
8265 if test -d .libs; then
8266 lt_cv_objdir=.libs
8267 else
8268 # MS-DOS does not allow filenames that begin with a dot.
8269 lt_cv_objdir=_libs
8270 fi
8271 rmdir .libs 2>/dev/null
8272 fi
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8274 $as_echo "$lt_cv_objdir" >&6; }
8275 objdir=$lt_cv_objdir
8276
8277
8278
8279
8280
8281 cat >>confdefs.h <<_ACEOF
8282 #define LT_OBJDIR "$lt_cv_objdir/"
8283 _ACEOF
8284
8285
8286
8287
8288 case $host_os in
8289 aix3*)
8290 # AIX sometimes has problems with the GCC collect2 program. For some
8291 # reason, if we set the COLLECT_NAMES environment variable, the problems
8292 # vanish in a puff of smoke.
8293 if test set != "${COLLECT_NAMES+set}"; then
8294 COLLECT_NAMES=
8295 export COLLECT_NAMES
8296 fi
8297 ;;
8298 esac
8299
8300 # Global variables:
8301 ofile=libtool
8302 can_build_shared=yes
8303
8304 # All known linkers require a '.a' archive for static linking (except MSVC,
8305 # which needs '.lib').
8306 libext=a
8307
8308 with_gnu_ld=$lt_cv_prog_gnu_ld
8309
8310 old_CC=$CC
8311 old_CFLAGS=$CFLAGS
8312
8313 # Set sane defaults for various variables
8314 test -z "$CC" && CC=cc
8315 test -z "$LTCC" && LTCC=$CC
8316 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8317 test -z "$LD" && LD=ld
8318 test -z "$ac_objext" && ac_objext=o
8319
8320 func_cc_basename $compiler
8321 cc_basename=$func_cc_basename_result
8322
8323
8324 # Only perform the check for file, if the check method requires it
8325 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8326 case $deplibs_check_method in
8327 file_magic*)
8328 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8330 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8331 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 case $MAGIC_CMD in
8335 [\\/*] | ?:[\\/]*)
8336 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8337 ;;
8338 *)
8339 lt_save_MAGIC_CMD=$MAGIC_CMD
8340 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8341 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8342 for ac_dir in $ac_dummy; do
8343 IFS=$lt_save_ifs
8344 test -z "$ac_dir" && ac_dir=.
8345 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8346 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8347 if test -n "$file_magic_test_file"; then
8348 case $deplibs_check_method in
8349 "file_magic "*)
8350 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8351 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8352 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8353 $EGREP "$file_magic_regex" > /dev/null; then
8354 :
8355 else
8356 cat <<_LT_EOF 1>&2
8357
8358 *** Warning: the command libtool uses to detect shared libraries,
8359 *** $file_magic_cmd, produces output that libtool cannot recognize.
8360 *** The result is that libtool may fail to recognize shared libraries
8361 *** as such. This will affect the creation of libtool libraries that
8362 *** depend on shared libraries, but programs linked with such libtool
8363 *** libraries will work regardless of this problem. Nevertheless, you
8364 *** may want to report the problem to your system manager and/or to
8365 *** bug-libtool@gnu.org
8366
8367 _LT_EOF
8368 fi ;;
8369 esac
8370 fi
8371 break
8372 fi
8373 done
8374 IFS=$lt_save_ifs
8375 MAGIC_CMD=$lt_save_MAGIC_CMD
8376 ;;
8377 esac
8378 fi
8379
8380 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8381 if test -n "$MAGIC_CMD"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8383 $as_echo "$MAGIC_CMD" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8387 fi
8388
8389
8390
8391
8392
8393 if test -z "$lt_cv_path_MAGIC_CMD"; then
8394 if test -n "$ac_tool_prefix"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8396 $as_echo_n "checking for file... " >&6; }
8397 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 case $MAGIC_CMD in
8401 [\\/*] | ?:[\\/]*)
8402 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8403 ;;
8404 *)
8405 lt_save_MAGIC_CMD=$MAGIC_CMD
8406 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8407 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8408 for ac_dir in $ac_dummy; do
8409 IFS=$lt_save_ifs
8410 test -z "$ac_dir" && ac_dir=.
8411 if test -f "$ac_dir/file"; then
8412 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8413 if test -n "$file_magic_test_file"; then
8414 case $deplibs_check_method in
8415 "file_magic "*)
8416 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8417 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8418 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8419 $EGREP "$file_magic_regex" > /dev/null; then
8420 :
8421 else
8422 cat <<_LT_EOF 1>&2
8423
8424 *** Warning: the command libtool uses to detect shared libraries,
8425 *** $file_magic_cmd, produces output that libtool cannot recognize.
8426 *** The result is that libtool may fail to recognize shared libraries
8427 *** as such. This will affect the creation of libtool libraries that
8428 *** depend on shared libraries, but programs linked with such libtool
8429 *** libraries will work regardless of this problem. Nevertheless, you
8430 *** may want to report the problem to your system manager and/or to
8431 *** bug-libtool@gnu.org
8432
8433 _LT_EOF
8434 fi ;;
8435 esac
8436 fi
8437 break
8438 fi
8439 done
8440 IFS=$lt_save_ifs
8441 MAGIC_CMD=$lt_save_MAGIC_CMD
8442 ;;
8443 esac
8444 fi
8445
8446 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8447 if test -n "$MAGIC_CMD"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8449 $as_echo "$MAGIC_CMD" >&6; }
8450 else
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8453 fi
8454
8455
8456 else
8457 MAGIC_CMD=:
8458 fi
8459 fi
8460
8461 fi
8462 ;;
8463 esac
8464
8465 # Use C for the default configuration in the libtool script
8466
8467 lt_save_CC=$CC
8468 ac_ext=c
8469 ac_cpp='$CPP $CPPFLAGS'
8470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8473
8474
8475 # Source file extension for C test sources.
8476 ac_ext=c
8477
8478 # Object file extension for compiled C test sources.
8479 objext=o
8480 objext=$objext
8481
8482 # Code to be used in simple compile tests
8483 lt_simple_compile_test_code="int some_variable = 0;"
8484
8485 # Code to be used in simple link tests
8486 lt_simple_link_test_code='int main(){return(0);}'
8487
8488
8489
8490
8491
8492
8493
8494 # If no C compiler was specified, use CC.
8495 LTCC=${LTCC-"$CC"}
8496
8497 # If no C compiler flags were specified, use CFLAGS.
8498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8499
8500 # Allow CC to be a program name with arguments.
8501 compiler=$CC
8502
8503 # Save the default compiler, since it gets overwritten when the other
8504 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8505 compiler_DEFAULT=$CC
8506
8507 # save warnings/boilerplate of simple test code
8508 ac_outfile=conftest.$ac_objext
8509 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8510 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8511 _lt_compiler_boilerplate=`cat conftest.err`
8512 $RM conftest*
8513
8514 ac_outfile=conftest.$ac_objext
8515 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8516 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8517 _lt_linker_boilerplate=`cat conftest.err`
8518 $RM -r conftest*
8519
8520
8521 ## CAVEAT EMPTOR:
8522 ## There is no encapsulation within the following macros, do not change
8523 ## the running order or otherwise move them around unless you know exactly
8524 ## what you are doing...
8525 if test -n "$compiler"; then
8526
8527 lt_prog_compiler_no_builtin_flag=
8528
8529 if test yes = "$GCC"; then
8530 case $cc_basename in
8531 nvcc*)
8532 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8533 *)
8534 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8535 esac
8536
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8538 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8539 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 lt_cv_prog_compiler_rtti_exceptions=no
8543 ac_outfile=conftest.$ac_objext
8544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8545 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8546 # Insert the option either (1) after the last *FLAGS variable, or
8547 # (2) before a word containing "conftest.", or (3) at the end.
8548 # Note that $ac_compile itself does not contain backslashes and begins
8549 # with a dollar sign (not a hyphen), so the echo should work correctly.
8550 # The option is referenced via a variable to avoid confusing sed.
8551 lt_compile=`echo "$ac_compile" | $SED \
8552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8554 -e 's:$: $lt_compiler_flag:'`
8555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8556 (eval "$lt_compile" 2>conftest.err)
8557 ac_status=$?
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 if (exit $ac_status) && test -s "$ac_outfile"; then
8561 # The compiler can only warn and ignore the option if not recognized
8562 # So say no if there are warnings other than the usual output.
8563 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8565 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8566 lt_cv_prog_compiler_rtti_exceptions=yes
8567 fi
8568 fi
8569 $RM conftest*
8570
8571 fi
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8573 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8574
8575 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8576 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8577 else
8578 :
8579 fi
8580
8581 fi
8582
8583
8584
8585
8586
8587
8588 lt_prog_compiler_wl=
8589 lt_prog_compiler_pic=
8590 lt_prog_compiler_static=
8591
8592
8593 if test yes = "$GCC"; then
8594 lt_prog_compiler_wl='-Wl,'
8595 lt_prog_compiler_static='-static'
8596
8597 case $host_os in
8598 aix*)
8599 # All AIX code is PIC.
8600 if test ia64 = "$host_cpu"; then
8601 # AIX 5 now supports IA64 processor
8602 lt_prog_compiler_static='-Bstatic'
8603 fi
8604 lt_prog_compiler_pic='-fPIC'
8605 ;;
8606
8607 amigaos*)
8608 case $host_cpu in
8609 powerpc)
8610 # see comment about AmigaOS4 .so support
8611 lt_prog_compiler_pic='-fPIC'
8612 ;;
8613 m68k)
8614 # FIXME: we need at least 68020 code to build shared libraries, but
8615 # adding the '-m68020' flag to GCC prevents building anything better,
8616 # like '-m68040'.
8617 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8618 ;;
8619 esac
8620 ;;
8621
8622 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8623 # PIC is the default for these OSes.
8624 ;;
8625
8626 mingw* | cygwin* | pw32* | os2* | cegcc*)
8627 # This hack is so that the source file can tell whether it is being
8628 # built for inclusion in a dll (and should export symbols for example).
8629 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8630 # (--disable-auto-import) libraries
8631 lt_prog_compiler_pic='-DDLL_EXPORT'
8632 case $host_os in
8633 os2*)
8634 lt_prog_compiler_static='$wl-static'
8635 ;;
8636 esac
8637 ;;
8638
8639 darwin* | rhapsody*)
8640 # PIC is the default on this platform
8641 # Common symbols not allowed in MH_DYLIB files
8642 lt_prog_compiler_pic='-fno-common'
8643 ;;
8644
8645 haiku*)
8646 # PIC is the default for Haiku.
8647 # The "-static" flag exists, but is broken.
8648 lt_prog_compiler_static=
8649 ;;
8650
8651 hpux*)
8652 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8653 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8654 # sets the default TLS model and affects inlining.
8655 case $host_cpu in
8656 hppa*64*)
8657 # +Z the default
8658 ;;
8659 *)
8660 lt_prog_compiler_pic='-fPIC'
8661 ;;
8662 esac
8663 ;;
8664
8665 interix[3-9]*)
8666 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8667 # Instead, we relocate shared libraries at runtime.
8668 ;;
8669
8670 msdosdjgpp*)
8671 # Just because we use GCC doesn't mean we suddenly get shared libraries
8672 # on systems that don't support them.
8673 lt_prog_compiler_can_build_shared=no
8674 enable_shared=no
8675 ;;
8676
8677 *nto* | *qnx*)
8678 # QNX uses GNU C++, but need to define -shared option too, otherwise
8679 # it will coredump.
8680 lt_prog_compiler_pic='-fPIC -shared'
8681 ;;
8682
8683 sysv4*MP*)
8684 if test -d /usr/nec; then
8685 lt_prog_compiler_pic=-Kconform_pic
8686 fi
8687 ;;
8688
8689 *)
8690 lt_prog_compiler_pic='-fPIC'
8691 ;;
8692 esac
8693
8694 case $cc_basename in
8695 nvcc*) # Cuda Compiler Driver 2.2
8696 lt_prog_compiler_wl='-Xlinker '
8697 if test -n "$lt_prog_compiler_pic"; then
8698 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8699 fi
8700 ;;
8701 esac
8702 else
8703 # PORTME Check for flag to pass linker flags through the system compiler.
8704 case $host_os in
8705 aix*)
8706 lt_prog_compiler_wl='-Wl,'
8707 if test ia64 = "$host_cpu"; then
8708 # AIX 5 now supports IA64 processor
8709 lt_prog_compiler_static='-Bstatic'
8710 else
8711 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8712 fi
8713 ;;
8714
8715 darwin* | rhapsody*)
8716 # PIC is the default on this platform
8717 # Common symbols not allowed in MH_DYLIB files
8718 lt_prog_compiler_pic='-fno-common'
8719 case $cc_basename in
8720 nagfor*)
8721 # NAG Fortran compiler
8722 lt_prog_compiler_wl='-Wl,-Wl,,'
8723 lt_prog_compiler_pic='-PIC'
8724 lt_prog_compiler_static='-Bstatic'
8725 ;;
8726 esac
8727 ;;
8728
8729 mingw* | cygwin* | pw32* | os2* | cegcc*)
8730 # This hack is so that the source file can tell whether it is being
8731 # built for inclusion in a dll (and should export symbols for example).
8732 lt_prog_compiler_pic='-DDLL_EXPORT'
8733 case $host_os in
8734 os2*)
8735 lt_prog_compiler_static='$wl-static'
8736 ;;
8737 esac
8738 ;;
8739
8740 hpux9* | hpux10* | hpux11*)
8741 lt_prog_compiler_wl='-Wl,'
8742 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8743 # not for PA HP-UX.
8744 case $host_cpu in
8745 hppa*64*|ia64*)
8746 # +Z the default
8747 ;;
8748 *)
8749 lt_prog_compiler_pic='+Z'
8750 ;;
8751 esac
8752 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8753 lt_prog_compiler_static='$wl-a ${wl}archive'
8754 ;;
8755
8756 irix5* | irix6* | nonstopux*)
8757 lt_prog_compiler_wl='-Wl,'
8758 # PIC (with -KPIC) is the default.
8759 lt_prog_compiler_static='-non_shared'
8760 ;;
8761
8762 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8763 case $cc_basename in
8764 # old Intel for x86_64, which still supported -KPIC.
8765 ecc*)
8766 lt_prog_compiler_wl='-Wl,'
8767 lt_prog_compiler_pic='-KPIC'
8768 lt_prog_compiler_static='-static'
8769 ;;
8770 # icc used to be incompatible with GCC.
8771 # ICC 10 doesn't accept -KPIC any more.
8772 icc* | ifort*)
8773 lt_prog_compiler_wl='-Wl,'
8774 lt_prog_compiler_pic='-fPIC'
8775 lt_prog_compiler_static='-static'
8776 ;;
8777 # Lahey Fortran 8.1.
8778 lf95*)
8779 lt_prog_compiler_wl='-Wl,'
8780 lt_prog_compiler_pic='--shared'
8781 lt_prog_compiler_static='--static'
8782 ;;
8783 nagfor*)
8784 # NAG Fortran compiler
8785 lt_prog_compiler_wl='-Wl,-Wl,,'
8786 lt_prog_compiler_pic='-PIC'
8787 lt_prog_compiler_static='-Bstatic'
8788 ;;
8789 tcc*)
8790 # Fabrice Bellard et al's Tiny C Compiler
8791 lt_prog_compiler_wl='-Wl,'
8792 lt_prog_compiler_pic='-fPIC'
8793 lt_prog_compiler_static='-static'
8794 ;;
8795 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8796 # Portland Group compilers (*not* the Pentium gcc compiler,
8797 # which looks to be a dead project)
8798 lt_prog_compiler_wl='-Wl,'
8799 lt_prog_compiler_pic='-fpic'
8800 lt_prog_compiler_static='-Bstatic'
8801 ;;
8802 ccc*)
8803 lt_prog_compiler_wl='-Wl,'
8804 # All Alpha code is PIC.
8805 lt_prog_compiler_static='-non_shared'
8806 ;;
8807 xl* | bgxl* | bgf* | mpixl*)
8808 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8809 lt_prog_compiler_wl='-Wl,'
8810 lt_prog_compiler_pic='-qpic'
8811 lt_prog_compiler_static='-qstaticlink'
8812 ;;
8813 *)
8814 case `$CC -V 2>&1 | sed 5q` in
8815 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8816 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8817 lt_prog_compiler_pic='-KPIC'
8818 lt_prog_compiler_static='-Bstatic'
8819 lt_prog_compiler_wl=''
8820 ;;
8821 *Sun\ F* | *Sun*Fortran*)
8822 lt_prog_compiler_pic='-KPIC'
8823 lt_prog_compiler_static='-Bstatic'
8824 lt_prog_compiler_wl='-Qoption ld '
8825 ;;
8826 *Sun\ C*)
8827 # Sun C 5.9
8828 lt_prog_compiler_pic='-KPIC'
8829 lt_prog_compiler_static='-Bstatic'
8830 lt_prog_compiler_wl='-Wl,'
8831 ;;
8832 *Intel*\ [CF]*Compiler*)
8833 lt_prog_compiler_wl='-Wl,'
8834 lt_prog_compiler_pic='-fPIC'
8835 lt_prog_compiler_static='-static'
8836 ;;
8837 *Portland\ Group*)
8838 lt_prog_compiler_wl='-Wl,'
8839 lt_prog_compiler_pic='-fpic'
8840 lt_prog_compiler_static='-Bstatic'
8841 ;;
8842 esac
8843 ;;
8844 esac
8845 ;;
8846
8847 newsos6)
8848 lt_prog_compiler_pic='-KPIC'
8849 lt_prog_compiler_static='-Bstatic'
8850 ;;
8851
8852 *nto* | *qnx*)
8853 # QNX uses GNU C++, but need to define -shared option too, otherwise
8854 # it will coredump.
8855 lt_prog_compiler_pic='-fPIC -shared'
8856 ;;
8857
8858 osf3* | osf4* | osf5*)
8859 lt_prog_compiler_wl='-Wl,'
8860 # All OSF/1 code is PIC.
8861 lt_prog_compiler_static='-non_shared'
8862 ;;
8863
8864 rdos*)
8865 lt_prog_compiler_static='-non_shared'
8866 ;;
8867
8868 solaris*)
8869 lt_prog_compiler_pic='-KPIC'
8870 lt_prog_compiler_static='-Bstatic'
8871 case $cc_basename in
8872 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8873 lt_prog_compiler_wl='-Qoption ld ';;
8874 *)
8875 lt_prog_compiler_wl='-Wl,';;
8876 esac
8877 ;;
8878
8879 sunos4*)
8880 lt_prog_compiler_wl='-Qoption ld '
8881 lt_prog_compiler_pic='-PIC'
8882 lt_prog_compiler_static='-Bstatic'
8883 ;;
8884
8885 sysv4 | sysv4.2uw2* | sysv4.3*)
8886 lt_prog_compiler_wl='-Wl,'
8887 lt_prog_compiler_pic='-KPIC'
8888 lt_prog_compiler_static='-Bstatic'
8889 ;;
8890
8891 sysv4*MP*)
8892 if test -d /usr/nec; then
8893 lt_prog_compiler_pic='-Kconform_pic'
8894 lt_prog_compiler_static='-Bstatic'
8895 fi
8896 ;;
8897
8898 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8899 lt_prog_compiler_wl='-Wl,'
8900 lt_prog_compiler_pic='-KPIC'
8901 lt_prog_compiler_static='-Bstatic'
8902 ;;
8903
8904 unicos*)
8905 lt_prog_compiler_wl='-Wl,'
8906 lt_prog_compiler_can_build_shared=no
8907 ;;
8908
8909 uts4*)
8910 lt_prog_compiler_pic='-pic'
8911 lt_prog_compiler_static='-Bstatic'
8912 ;;
8913
8914 *)
8915 lt_prog_compiler_can_build_shared=no
8916 ;;
8917 esac
8918 fi
8919
8920 case $host_os in
8921 # For platforms that do not support PIC, -DPIC is meaningless:
8922 *djgpp*)
8923 lt_prog_compiler_pic=
8924 ;;
8925 *)
8926 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8927 ;;
8928 esac
8929
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8931 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8932 if ${lt_cv_prog_compiler_pic+:} false; then :
8933 $as_echo_n "(cached) " >&6
8934 else
8935 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8936 fi
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8938 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8939 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8940
8941 #
8942 # Check to make sure the PIC flag actually works.
8943 #
8944 if test -n "$lt_prog_compiler_pic"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8946 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8947 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 lt_cv_prog_compiler_pic_works=no
8951 ac_outfile=conftest.$ac_objext
8952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8953 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8954 # Insert the option either (1) after the last *FLAGS variable, or
8955 # (2) before a word containing "conftest.", or (3) at the end.
8956 # Note that $ac_compile itself does not contain backslashes and begins
8957 # with a dollar sign (not a hyphen), so the echo should work correctly.
8958 # The option is referenced via a variable to avoid confusing sed.
8959 lt_compile=`echo "$ac_compile" | $SED \
8960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8962 -e 's:$: $lt_compiler_flag:'`
8963 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8964 (eval "$lt_compile" 2>conftest.err)
8965 ac_status=$?
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 if (exit $ac_status) && test -s "$ac_outfile"; then
8969 # The compiler can only warn and ignore the option if not recognized
8970 # So say no if there are warnings other than the usual output.
8971 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8973 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8974 lt_cv_prog_compiler_pic_works=yes
8975 fi
8976 fi
8977 $RM conftest*
8978
8979 fi
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8981 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8982
8983 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8984 case $lt_prog_compiler_pic in
8985 "" | " "*) ;;
8986 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8987 esac
8988 else
8989 lt_prog_compiler_pic=
8990 lt_prog_compiler_can_build_shared=no
8991 fi
8992
8993 fi
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005 #
9006 # Check to make sure the static flag actually works.
9007 #
9008 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9010 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9011 if ${lt_cv_prog_compiler_static_works+:} false; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 lt_cv_prog_compiler_static_works=no
9015 save_LDFLAGS=$LDFLAGS
9016 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9017 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9018 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9019 # The linker can only warn and ignore the option if not recognized
9020 # So say no if there are warnings
9021 if test -s conftest.err; then
9022 # Append any errors to the config.log.
9023 cat conftest.err 1>&5
9024 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9026 if diff conftest.exp conftest.er2 >/dev/null; then
9027 lt_cv_prog_compiler_static_works=yes
9028 fi
9029 else
9030 lt_cv_prog_compiler_static_works=yes
9031 fi
9032 fi
9033 $RM -r conftest*
9034 LDFLAGS=$save_LDFLAGS
9035
9036 fi
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9038 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9039
9040 if test yes = "$lt_cv_prog_compiler_static_works"; then
9041 :
9042 else
9043 lt_prog_compiler_static=
9044 fi
9045
9046
9047
9048
9049
9050
9051
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9053 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9054 if ${lt_cv_prog_compiler_c_o+:} false; then :
9055 $as_echo_n "(cached) " >&6
9056 else
9057 lt_cv_prog_compiler_c_o=no
9058 $RM -r conftest 2>/dev/null
9059 mkdir conftest
9060 cd conftest
9061 mkdir out
9062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9063
9064 lt_compiler_flag="-o out/conftest2.$ac_objext"
9065 # Insert the option either (1) after the last *FLAGS variable, or
9066 # (2) before a word containing "conftest.", or (3) at the end.
9067 # Note that $ac_compile itself does not contain backslashes and begins
9068 # with a dollar sign (not a hyphen), so the echo should work correctly.
9069 lt_compile=`echo "$ac_compile" | $SED \
9070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9072 -e 's:$: $lt_compiler_flag:'`
9073 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9074 (eval "$lt_compile" 2>out/conftest.err)
9075 ac_status=$?
9076 cat out/conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9079 then
9080 # The compiler can only warn and ignore the option if not recognized
9081 # So say no if there are warnings
9082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9083 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9084 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9085 lt_cv_prog_compiler_c_o=yes
9086 fi
9087 fi
9088 chmod u+w . 2>&5
9089 $RM conftest*
9090 # SGI C++ compiler will create directory out/ii_files/ for
9091 # template instantiation
9092 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9093 $RM out/* && rmdir out
9094 cd ..
9095 $RM -r conftest
9096 $RM conftest*
9097
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9100 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9101
9102
9103
9104
9105
9106
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9108 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9109 if ${lt_cv_prog_compiler_c_o+:} false; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 lt_cv_prog_compiler_c_o=no
9113 $RM -r conftest 2>/dev/null
9114 mkdir conftest
9115 cd conftest
9116 mkdir out
9117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9118
9119 lt_compiler_flag="-o out/conftest2.$ac_objext"
9120 # Insert the option either (1) after the last *FLAGS variable, or
9121 # (2) before a word containing "conftest.", or (3) at the end.
9122 # Note that $ac_compile itself does not contain backslashes and begins
9123 # with a dollar sign (not a hyphen), so the echo should work correctly.
9124 lt_compile=`echo "$ac_compile" | $SED \
9125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9127 -e 's:$: $lt_compiler_flag:'`
9128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9129 (eval "$lt_compile" 2>out/conftest.err)
9130 ac_status=$?
9131 cat out/conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9134 then
9135 # The compiler can only warn and ignore the option if not recognized
9136 # So say no if there are warnings
9137 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9138 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9139 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9140 lt_cv_prog_compiler_c_o=yes
9141 fi
9142 fi
9143 chmod u+w . 2>&5
9144 $RM conftest*
9145 # SGI C++ compiler will create directory out/ii_files/ for
9146 # template instantiation
9147 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9148 $RM out/* && rmdir out
9149 cd ..
9150 $RM -r conftest
9151 $RM conftest*
9152
9153 fi
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9155 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9156
9157
9158
9159
9160 hard_links=nottested
9161 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9162 # do not overwrite the value of need_locks provided by the user
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9164 $as_echo_n "checking if we can lock with hard links... " >&6; }
9165 hard_links=yes
9166 $RM conftest*
9167 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9168 touch conftest.a
9169 ln conftest.a conftest.b 2>&5 || hard_links=no
9170 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9172 $as_echo "$hard_links" >&6; }
9173 if test no = "$hard_links"; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9175 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9176 need_locks=warn
9177 fi
9178 else
9179 need_locks=no
9180 fi
9181
9182
9183
9184
9185
9186
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9188 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9189
9190 runpath_var=
9191 allow_undefined_flag=
9192 always_export_symbols=no
9193 archive_cmds=
9194 archive_expsym_cmds=
9195 compiler_needs_object=no
9196 enable_shared_with_static_runtimes=no
9197 export_dynamic_flag_spec=
9198 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9199 hardcode_automatic=no
9200 hardcode_direct=no
9201 hardcode_direct_absolute=no
9202 hardcode_libdir_flag_spec=
9203 hardcode_libdir_separator=
9204 hardcode_minus_L=no
9205 hardcode_shlibpath_var=unsupported
9206 inherit_rpath=no
9207 link_all_deplibs=unknown
9208 module_cmds=
9209 module_expsym_cmds=
9210 old_archive_from_new_cmds=
9211 old_archive_from_expsyms_cmds=
9212 thread_safe_flag_spec=
9213 whole_archive_flag_spec=
9214 # include_expsyms should be a list of space-separated symbols to be *always*
9215 # included in the symbol list
9216 include_expsyms=
9217 # exclude_expsyms can be an extended regexp of symbols to exclude
9218 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9219 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9220 # as well as any symbol that contains 'd'.
9221 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9222 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9223 # platforms (ab)use it in PIC code, but their linkers get confused if
9224 # the symbol is explicitly referenced. Since portable code cannot
9225 # rely on this symbol name, it's probably fine to never include it in
9226 # preloaded symbol tables.
9227 # Exclude shared library initialization/finalization symbols.
9228 extract_expsyms_cmds=
9229
9230 case $host_os in
9231 cygwin* | mingw* | pw32* | cegcc*)
9232 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9233 # When not using gcc, we currently assume that we are using
9234 # Microsoft Visual C++.
9235 if test yes != "$GCC"; then
9236 with_gnu_ld=no
9237 fi
9238 ;;
9239 interix*)
9240 # we just hope/assume this is gcc and not c89 (= MSVC++)
9241 with_gnu_ld=yes
9242 ;;
9243 openbsd* | bitrig*)
9244 with_gnu_ld=no
9245 ;;
9246 linux* | k*bsd*-gnu | gnu*)
9247 link_all_deplibs=no
9248 ;;
9249 esac
9250
9251 ld_shlibs=yes
9252
9253 # On some targets, GNU ld is compatible enough with the native linker
9254 # that we're better off using the native interface for both.
9255 lt_use_gnu_ld_interface=no
9256 if test yes = "$with_gnu_ld"; then
9257 case $host_os in
9258 aix*)
9259 # The AIX port of GNU ld has always aspired to compatibility
9260 # with the native linker. However, as the warning in the GNU ld
9261 # block says, versions before 2.19.5* couldn't really create working
9262 # shared libraries, regardless of the interface used.
9263 case `$LD -v 2>&1` in
9264 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9265 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9266 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9267 *)
9268 lt_use_gnu_ld_interface=yes
9269 ;;
9270 esac
9271 ;;
9272 *)
9273 lt_use_gnu_ld_interface=yes
9274 ;;
9275 esac
9276 fi
9277
9278 if test yes = "$lt_use_gnu_ld_interface"; then
9279 # If archive_cmds runs LD, not CC, wlarc should be empty
9280 wlarc='$wl'
9281
9282 # Set some defaults for GNU ld with shared library support. These
9283 # are reset later if shared libraries are not supported. Putting them
9284 # here allows them to be overridden if necessary.
9285 runpath_var=LD_RUN_PATH
9286 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9287 export_dynamic_flag_spec='$wl--export-dynamic'
9288 # ancient GNU ld didn't support --whole-archive et. al.
9289 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9290 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9291 else
9292 whole_archive_flag_spec=
9293 fi
9294 supports_anon_versioning=no
9295 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9296 *GNU\ gold*) supports_anon_versioning=yes ;;
9297 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9298 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9299 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9300 *\ 2.11.*) ;; # other 2.11 versions
9301 *) supports_anon_versioning=yes ;;
9302 esac
9303
9304 # See if GNU ld supports shared libraries.
9305 case $host_os in
9306 aix[3-9]*)
9307 # On AIX/PPC, the GNU linker is very broken
9308 if test ia64 != "$host_cpu"; then
9309 ld_shlibs=no
9310 cat <<_LT_EOF 1>&2
9311
9312 *** Warning: the GNU linker, at least up to release 2.19, is reported
9313 *** to be unable to reliably create shared libraries on AIX.
9314 *** Therefore, libtool is disabling shared libraries support. If you
9315 *** really care for shared libraries, you may want to install binutils
9316 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9317 *** You will then need to restart the configuration process.
9318
9319 _LT_EOF
9320 fi
9321 ;;
9322
9323 amigaos*)
9324 case $host_cpu in
9325 powerpc)
9326 # see comment about AmigaOS4 .so support
9327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9328 archive_expsym_cmds=''
9329 ;;
9330 m68k)
9331 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)'
9332 hardcode_libdir_flag_spec='-L$libdir'
9333 hardcode_minus_L=yes
9334 ;;
9335 esac
9336 ;;
9337
9338 beos*)
9339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9340 allow_undefined_flag=unsupported
9341 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9342 # support --undefined. This deserves some investigation. FIXME
9343 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9344 else
9345 ld_shlibs=no
9346 fi
9347 ;;
9348
9349 cygwin* | mingw* | pw32* | cegcc*)
9350 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9351 # as there is no search path for DLLs.
9352 hardcode_libdir_flag_spec='-L$libdir'
9353 export_dynamic_flag_spec='$wl--export-all-symbols'
9354 allow_undefined_flag=unsupported
9355 always_export_symbols=no
9356 enable_shared_with_static_runtimes=yes
9357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9358 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9359
9360 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9362 # If the export-symbols file already is a .def file, use it as
9363 # is; otherwise, prepend EXPORTS...
9364 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9365 cp $export_symbols $output_objdir/$soname.def;
9366 else
9367 echo EXPORTS > $output_objdir/$soname.def;
9368 cat $export_symbols >> $output_objdir/$soname.def;
9369 fi~
9370 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9371 else
9372 ld_shlibs=no
9373 fi
9374 ;;
9375
9376 haiku*)
9377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9378 link_all_deplibs=yes
9379 ;;
9380
9381 os2*)
9382 hardcode_libdir_flag_spec='-L$libdir'
9383 hardcode_minus_L=yes
9384 allow_undefined_flag=unsupported
9385 shrext_cmds=.dll
9386 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9387 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9388 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9389 $ECHO EXPORTS >> $output_objdir/$libname.def~
9390 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9391 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9392 emximp -o $lib $output_objdir/$libname.def'
9393 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9394 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9395 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9396 $ECHO EXPORTS >> $output_objdir/$libname.def~
9397 prefix_cmds="$SED"~
9398 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9399 prefix_cmds="$prefix_cmds -e 1d";
9400 fi~
9401 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9402 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9403 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9404 emximp -o $lib $output_objdir/$libname.def'
9405 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9406 enable_shared_with_static_runtimes=yes
9407 ;;
9408
9409 interix[3-9]*)
9410 hardcode_direct=no
9411 hardcode_shlibpath_var=no
9412 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9413 export_dynamic_flag_spec='$wl-E'
9414 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9415 # Instead, shared libraries are loaded at an image base (0x10000000 by
9416 # default) and relocated if they conflict, which is a slow very memory
9417 # consuming and fragmenting process. To avoid this, we pick a random,
9418 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9419 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9420 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9421 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'
9422 ;;
9423
9424 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9425 tmp_diet=no
9426 if test linux-dietlibc = "$host_os"; then
9427 case $cc_basename in
9428 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9429 esac
9430 fi
9431 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9432 && test no = "$tmp_diet"
9433 then
9434 tmp_addflag=' $pic_flag'
9435 tmp_sharedflag='-shared'
9436 case $cc_basename,$host_cpu in
9437 pgcc*) # Portland Group C compiler
9438 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9439 tmp_addflag=' $pic_flag'
9440 ;;
9441 pgf77* | pgf90* | pgf95* | pgfortran*)
9442 # Portland Group f77 and f90 compilers
9443 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9444 tmp_addflag=' $pic_flag -Mnomain' ;;
9445 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9446 tmp_addflag=' -i_dynamic' ;;
9447 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9448 tmp_addflag=' -i_dynamic -nofor_main' ;;
9449 ifc* | ifort*) # Intel Fortran compiler
9450 tmp_addflag=' -nofor_main' ;;
9451 lf95*) # Lahey Fortran 8.1
9452 whole_archive_flag_spec=
9453 tmp_sharedflag='--shared' ;;
9454 nagfor*) # NAGFOR 5.3
9455 tmp_sharedflag='-Wl,-shared' ;;
9456 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9457 tmp_sharedflag='-qmkshrobj'
9458 tmp_addflag= ;;
9459 nvcc*) # Cuda Compiler Driver 2.2
9460 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9461 compiler_needs_object=yes
9462 ;;
9463 esac
9464 case `$CC -V 2>&1 | sed 5q` in
9465 *Sun\ C*) # Sun C 5.9
9466 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9467 compiler_needs_object=yes
9468 tmp_sharedflag='-G' ;;
9469 *Sun\ F*) # Sun Fortran 8.3
9470 tmp_sharedflag='-G' ;;
9471 esac
9472 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9473
9474 if test yes = "$supports_anon_versioning"; then
9475 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9477 echo "local: *; };" >> $output_objdir/$libname.ver~
9478 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9479 fi
9480
9481 case $cc_basename in
9482 tcc*)
9483 export_dynamic_flag_spec='-rdynamic'
9484 ;;
9485 xlf* | bgf* | bgxlf* | mpixlf*)
9486 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9487 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9488 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9489 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9490 if test yes = "$supports_anon_versioning"; then
9491 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9493 echo "local: *; };" >> $output_objdir/$libname.ver~
9494 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9495 fi
9496 ;;
9497 esac
9498 else
9499 ld_shlibs=no
9500 fi
9501 ;;
9502
9503 netbsd* | netbsdelf*-gnu)
9504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9505 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9506 wlarc=
9507 else
9508 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9509 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9510 fi
9511 ;;
9512
9513 solaris*)
9514 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9515 ld_shlibs=no
9516 cat <<_LT_EOF 1>&2
9517
9518 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9519 *** create shared libraries on Solaris systems. Therefore, libtool
9520 *** is disabling shared libraries support. We urge you to upgrade GNU
9521 *** binutils to release 2.9.1 or newer. Another option is to modify
9522 *** your PATH or compiler configuration so that the native linker is
9523 *** used, and then restart.
9524
9525 _LT_EOF
9526 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9528 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9529 else
9530 ld_shlibs=no
9531 fi
9532 ;;
9533
9534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9535 case `$LD -v 2>&1` in
9536 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9537 ld_shlibs=no
9538 cat <<_LT_EOF 1>&2
9539
9540 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9541 *** reliably create shared libraries on SCO systems. Therefore, libtool
9542 *** is disabling shared libraries support. We urge you to upgrade GNU
9543 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9544 *** your PATH or compiler configuration so that the native linker is
9545 *** used, and then restart.
9546
9547 _LT_EOF
9548 ;;
9549 *)
9550 # For security reasons, it is highly recommended that you always
9551 # use absolute paths for naming shared libraries, and exclude the
9552 # DT_RUNPATH tag from executables and libraries. But doing so
9553 # requires that you compile everything twice, which is a pain.
9554 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9555 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9557 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9558 else
9559 ld_shlibs=no
9560 fi
9561 ;;
9562 esac
9563 ;;
9564
9565 sunos4*)
9566 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9567 wlarc=
9568 hardcode_direct=yes
9569 hardcode_shlibpath_var=no
9570 ;;
9571
9572 *)
9573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9574 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9575 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9576 else
9577 ld_shlibs=no
9578 fi
9579 ;;
9580 esac
9581
9582 if test no = "$ld_shlibs"; then
9583 runpath_var=
9584 hardcode_libdir_flag_spec=
9585 export_dynamic_flag_spec=
9586 whole_archive_flag_spec=
9587 fi
9588 else
9589 # PORTME fill in a description of your system's linker (not GNU ld)
9590 case $host_os in
9591 aix3*)
9592 allow_undefined_flag=unsupported
9593 always_export_symbols=yes
9594 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'
9595 # Note: this linker hardcodes the directories in LIBPATH if there
9596 # are no directories specified by -L.
9597 hardcode_minus_L=yes
9598 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9599 # Neither direct hardcoding nor static linking is supported with a
9600 # broken collect2.
9601 hardcode_direct=unsupported
9602 fi
9603 ;;
9604
9605 aix[4-9]*)
9606 if test ia64 = "$host_cpu"; then
9607 # On IA64, the linker does run time linking by default, so we don't
9608 # have to do anything special.
9609 aix_use_runtimelinking=no
9610 exp_sym_flag='-Bexport'
9611 no_entry_flag=
9612 else
9613 # If we're using GNU nm, then we don't want the "-C" option.
9614 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9615 # Without the "-l" option, or with the "-B" option, AIX nm treats
9616 # weak defined symbols like other global defined symbols, whereas
9617 # GNU nm marks them as "W".
9618 # While the 'weak' keyword is ignored in the Export File, we need
9619 # it in the Import File for the 'aix-soname' feature, so we have
9620 # to replace the "-B" option with "-P" for AIX nm.
9621 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9622 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9623 else
9624 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9625 fi
9626 aix_use_runtimelinking=no
9627
9628 # Test if we are trying to use run time linking or normal
9629 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9630 # have runtime linking enabled, and use it for executables.
9631 # For shared libraries, we enable/disable runtime linking
9632 # depending on the kind of the shared library created -
9633 # when "with_aix_soname,aix_use_runtimelinking" is:
9634 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9635 # "aix,yes" lib.so shared, rtl:yes, for executables
9636 # lib.a static archive
9637 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9638 # lib.a(lib.so.V) shared, rtl:no, for executables
9639 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9640 # lib.a(lib.so.V) shared, rtl:no
9641 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9642 # lib.a static archive
9643 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9644 for ld_flag in $LDFLAGS; do
9645 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9646 aix_use_runtimelinking=yes
9647 break
9648 fi
9649 done
9650 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9651 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9652 # so we don't have lib.a shared libs to link our executables.
9653 # We have to force runtime linking in this case.
9654 aix_use_runtimelinking=yes
9655 LDFLAGS="$LDFLAGS -Wl,-brtl"
9656 fi
9657 ;;
9658 esac
9659
9660 exp_sym_flag='-bexport'
9661 no_entry_flag='-bnoentry'
9662 fi
9663
9664 # When large executables or shared objects are built, AIX ld can
9665 # have problems creating the table of contents. If linking a library
9666 # or program results in "error TOC overflow" add -mminimal-toc to
9667 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9668 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9669
9670 archive_cmds=''
9671 hardcode_direct=yes
9672 hardcode_direct_absolute=yes
9673 hardcode_libdir_separator=':'
9674 link_all_deplibs=yes
9675 file_list_spec='$wl-f,'
9676 case $with_aix_soname,$aix_use_runtimelinking in
9677 aix,*) ;; # traditional, no import file
9678 svr4,* | *,yes) # use import file
9679 # The Import File defines what to hardcode.
9680 hardcode_direct=no
9681 hardcode_direct_absolute=no
9682 ;;
9683 esac
9684
9685 if test yes = "$GCC"; then
9686 case $host_os in aix4.[012]|aix4.[012].*)
9687 # We only want to do this on AIX 4.2 and lower, the check
9688 # below for broken collect2 doesn't work under 4.3+
9689 collect2name=`$CC -print-prog-name=collect2`
9690 if test -f "$collect2name" &&
9691 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9692 then
9693 # We have reworked collect2
9694 :
9695 else
9696 # We have old collect2
9697 hardcode_direct=unsupported
9698 # It fails to find uninstalled libraries when the uninstalled
9699 # path is not listed in the libpath. Setting hardcode_minus_L
9700 # to unsupported forces relinking
9701 hardcode_minus_L=yes
9702 hardcode_libdir_flag_spec='-L$libdir'
9703 hardcode_libdir_separator=
9704 fi
9705 ;;
9706 esac
9707 shared_flag='-shared'
9708 if test yes = "$aix_use_runtimelinking"; then
9709 shared_flag="$shared_flag "'$wl-G'
9710 fi
9711 # Need to ensure runtime linking is disabled for the traditional
9712 # shared library, or the linker may eventually find shared libraries
9713 # /with/ Import File - we do not want to mix them.
9714 shared_flag_aix='-shared'
9715 shared_flag_svr4='-shared $wl-G'
9716 else
9717 # not using gcc
9718 if test ia64 = "$host_cpu"; then
9719 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9720 # chokes on -Wl,-G. The following line is correct:
9721 shared_flag='-G'
9722 else
9723 if test yes = "$aix_use_runtimelinking"; then
9724 shared_flag='$wl-G'
9725 else
9726 shared_flag='$wl-bM:SRE'
9727 fi
9728 shared_flag_aix='$wl-bM:SRE'
9729 shared_flag_svr4='$wl-G'
9730 fi
9731 fi
9732
9733 export_dynamic_flag_spec='$wl-bexpall'
9734 # It seems that -bexpall does not export symbols beginning with
9735 # underscore (_), so it is better to generate a list of symbols to export.
9736 always_export_symbols=yes
9737 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9738 # Warning - without using the other runtime loading flags (-brtl),
9739 # -berok will link without error, but may produce a broken library.
9740 allow_undefined_flag='-berok'
9741 # Determine the default libpath from the value encoded in an
9742 # empty executable.
9743 if test set = "${lt_cv_aix_libpath+set}"; then
9744 aix_libpath=$lt_cv_aix_libpath
9745 else
9746 if ${lt_cv_aix_libpath_+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750 /* end confdefs.h. */
9751
9752 int
9753 main ()
9754 {
9755
9756 ;
9757 return 0;
9758 }
9759 _ACEOF
9760 if ac_fn_c_try_link "$LINENO"; then :
9761
9762 lt_aix_libpath_sed='
9763 /Import File Strings/,/^$/ {
9764 /^0/ {
9765 s/^0 *\([^ ]*\) *$/\1/
9766 p
9767 }
9768 }'
9769 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9770 # Check for a 64-bit object if we didn't find anything.
9771 if test -z "$lt_cv_aix_libpath_"; then
9772 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9773 fi
9774 fi
9775 rm -f core conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext conftest.$ac_ext
9777 if test -z "$lt_cv_aix_libpath_"; then
9778 lt_cv_aix_libpath_=/usr/lib:/lib
9779 fi
9780
9781 fi
9782
9783 aix_libpath=$lt_cv_aix_libpath_
9784 fi
9785
9786 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9787 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9788 else
9789 if test ia64 = "$host_cpu"; then
9790 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9791 allow_undefined_flag="-z nodefs"
9792 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"
9793 else
9794 # Determine the default libpath from the value encoded in an
9795 # empty executable.
9796 if test set = "${lt_cv_aix_libpath+set}"; then
9797 aix_libpath=$lt_cv_aix_libpath
9798 else
9799 if ${lt_cv_aix_libpath_+:} false; then :
9800 $as_echo_n "(cached) " >&6
9801 else
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9804
9805 int
9806 main ()
9807 {
9808
9809 ;
9810 return 0;
9811 }
9812 _ACEOF
9813 if ac_fn_c_try_link "$LINENO"; then :
9814
9815 lt_aix_libpath_sed='
9816 /Import File Strings/,/^$/ {
9817 /^0/ {
9818 s/^0 *\([^ ]*\) *$/\1/
9819 p
9820 }
9821 }'
9822 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9823 # Check for a 64-bit object if we didn't find anything.
9824 if test -z "$lt_cv_aix_libpath_"; then
9825 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9826 fi
9827 fi
9828 rm -f core conftest.err conftest.$ac_objext \
9829 conftest$ac_exeext conftest.$ac_ext
9830 if test -z "$lt_cv_aix_libpath_"; then
9831 lt_cv_aix_libpath_=/usr/lib:/lib
9832 fi
9833
9834 fi
9835
9836 aix_libpath=$lt_cv_aix_libpath_
9837 fi
9838
9839 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9840 # Warning - without using the other run time loading flags,
9841 # -berok will link without error, but may produce a broken library.
9842 no_undefined_flag=' $wl-bernotok'
9843 allow_undefined_flag=' $wl-berok'
9844 if test yes = "$with_gnu_ld"; then
9845 # We only use this code for GNU lds that support --whole-archive.
9846 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9847 else
9848 # Exported symbols can be pulled into shared objects from archives
9849 whole_archive_flag_spec='$convenience'
9850 fi
9851 archive_cmds_need_lc=yes
9852 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9853 # -brtl affects multiple linker settings, -berok does not and is overridden later
9854 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9855 if test svr4 != "$with_aix_soname"; then
9856 # This is similar to how AIX traditionally builds its shared libraries.
9857 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9858 fi
9859 if test aix != "$with_aix_soname"; then
9860 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9861 else
9862 # used by -dlpreopen to get the symbols
9863 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9864 fi
9865 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9866 fi
9867 fi
9868 ;;
9869
9870 amigaos*)
9871 case $host_cpu in
9872 powerpc)
9873 # see comment about AmigaOS4 .so support
9874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9875 archive_expsym_cmds=''
9876 ;;
9877 m68k)
9878 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)'
9879 hardcode_libdir_flag_spec='-L$libdir'
9880 hardcode_minus_L=yes
9881 ;;
9882 esac
9883 ;;
9884
9885 bsdi[45]*)
9886 export_dynamic_flag_spec=-rdynamic
9887 ;;
9888
9889 cygwin* | mingw* | pw32* | cegcc*)
9890 # When not using gcc, we currently assume that we are using
9891 # Microsoft Visual C++.
9892 # hardcode_libdir_flag_spec is actually meaningless, as there is
9893 # no search path for DLLs.
9894 case $cc_basename in
9895 cl*)
9896 # Native MSVC
9897 hardcode_libdir_flag_spec=' '
9898 allow_undefined_flag=unsupported
9899 always_export_symbols=yes
9900 file_list_spec='@'
9901 # Tell ltmain to make .lib files, not .a files.
9902 libext=lib
9903 # Tell ltmain to make .dll files, not .so files.
9904 shrext_cmds=.dll
9905 # FIXME: Setting linknames here is a bad hack.
9906 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9907 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9908 cp "$export_symbols" "$output_objdir/$soname.def";
9909 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9910 else
9911 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9912 fi~
9913 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9914 linknames='
9915 # The linker will not automatically build a static lib if we build a DLL.
9916 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9917 enable_shared_with_static_runtimes=yes
9918 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9920 # Don't use ranlib
9921 old_postinstall_cmds='chmod 644 $oldlib'
9922 postlink_cmds='lt_outputfile="@OUTPUT@"~
9923 lt_tool_outputfile="@TOOL_OUTPUT@"~
9924 case $lt_outputfile in
9925 *.exe|*.EXE) ;;
9926 *)
9927 lt_outputfile=$lt_outputfile.exe
9928 lt_tool_outputfile=$lt_tool_outputfile.exe
9929 ;;
9930 esac~
9931 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9932 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9933 $RM "$lt_outputfile.manifest";
9934 fi'
9935 ;;
9936 *)
9937 # Assume MSVC wrapper
9938 hardcode_libdir_flag_spec=' '
9939 allow_undefined_flag=unsupported
9940 # Tell ltmain to make .lib files, not .a files.
9941 libext=lib
9942 # Tell ltmain to make .dll files, not .so files.
9943 shrext_cmds=.dll
9944 # FIXME: Setting linknames here is a bad hack.
9945 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9946 # The linker will automatically build a .lib file if we build a DLL.
9947 old_archive_from_new_cmds='true'
9948 # FIXME: Should let the user specify the lib program.
9949 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9950 enable_shared_with_static_runtimes=yes
9951 ;;
9952 esac
9953 ;;
9954
9955 darwin* | rhapsody*)
9956
9957
9958 archive_cmds_need_lc=no
9959 hardcode_direct=no
9960 hardcode_automatic=yes
9961 hardcode_shlibpath_var=unsupported
9962 if test yes = "$lt_cv_ld_force_load"; then
9963 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9964
9965 else
9966 whole_archive_flag_spec=''
9967 fi
9968 link_all_deplibs=yes
9969 allow_undefined_flag=$_lt_dar_allow_undefined
9970 case $cc_basename in
9971 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9972 *) _lt_dar_can_shared=$GCC ;;
9973 esac
9974 if test yes = "$_lt_dar_can_shared"; then
9975 output_verbose_link_cmd=func_echo_all
9976 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9977 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9978 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"
9979 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"
9980
9981 else
9982 ld_shlibs=no
9983 fi
9984
9985 ;;
9986
9987 dgux*)
9988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 hardcode_libdir_flag_spec='-L$libdir'
9990 hardcode_shlibpath_var=no
9991 ;;
9992
9993 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9994 # support. Future versions do this automatically, but an explicit c++rt0.o
9995 # does not break anything, and helps significantly (at the cost of a little
9996 # extra space).
9997 freebsd2.2*)
9998 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9999 hardcode_libdir_flag_spec='-R$libdir'
10000 hardcode_direct=yes
10001 hardcode_shlibpath_var=no
10002 ;;
10003
10004 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10005 freebsd2.*)
10006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10007 hardcode_direct=yes
10008 hardcode_minus_L=yes
10009 hardcode_shlibpath_var=no
10010 ;;
10011
10012 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10013 freebsd* | dragonfly*)
10014 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10015 hardcode_libdir_flag_spec='-R$libdir'
10016 hardcode_direct=yes
10017 hardcode_shlibpath_var=no
10018 ;;
10019
10020 hpux9*)
10021 if test yes = "$GCC"; then
10022 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10023 else
10024 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10025 fi
10026 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10027 hardcode_libdir_separator=:
10028 hardcode_direct=yes
10029
10030 # hardcode_minus_L: Not really in the search PATH,
10031 # but as the default location of the library.
10032 hardcode_minus_L=yes
10033 export_dynamic_flag_spec='$wl-E'
10034 ;;
10035
10036 hpux10*)
10037 if test yes,no = "$GCC,$with_gnu_ld"; then
10038 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10039 else
10040 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10041 fi
10042 if test no = "$with_gnu_ld"; then
10043 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10044 hardcode_libdir_separator=:
10045 hardcode_direct=yes
10046 hardcode_direct_absolute=yes
10047 export_dynamic_flag_spec='$wl-E'
10048 # hardcode_minus_L: Not really in the search PATH,
10049 # but as the default location of the library.
10050 hardcode_minus_L=yes
10051 fi
10052 ;;
10053
10054 hpux11*)
10055 if test yes,no = "$GCC,$with_gnu_ld"; then
10056 case $host_cpu in
10057 hppa*64*)
10058 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10059 ;;
10060 ia64*)
10061 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10062 ;;
10063 *)
10064 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10065 ;;
10066 esac
10067 else
10068 case $host_cpu in
10069 hppa*64*)
10070 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10071 ;;
10072 ia64*)
10073 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10074 ;;
10075 *)
10076
10077 # Older versions of the 11.00 compiler do not understand -b yet
10078 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10080 $as_echo_n "checking if $CC understands -b... " >&6; }
10081 if ${lt_cv_prog_compiler__b+:} false; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 lt_cv_prog_compiler__b=no
10085 save_LDFLAGS=$LDFLAGS
10086 LDFLAGS="$LDFLAGS -b"
10087 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10088 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10089 # The linker can only warn and ignore the option if not recognized
10090 # So say no if there are warnings
10091 if test -s conftest.err; then
10092 # Append any errors to the config.log.
10093 cat conftest.err 1>&5
10094 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10096 if diff conftest.exp conftest.er2 >/dev/null; then
10097 lt_cv_prog_compiler__b=yes
10098 fi
10099 else
10100 lt_cv_prog_compiler__b=yes
10101 fi
10102 fi
10103 $RM -r conftest*
10104 LDFLAGS=$save_LDFLAGS
10105
10106 fi
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10108 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10109
10110 if test yes = "$lt_cv_prog_compiler__b"; then
10111 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10112 else
10113 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10114 fi
10115
10116 ;;
10117 esac
10118 fi
10119 if test no = "$with_gnu_ld"; then
10120 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10121 hardcode_libdir_separator=:
10122
10123 case $host_cpu in
10124 hppa*64*|ia64*)
10125 hardcode_direct=no
10126 hardcode_shlibpath_var=no
10127 ;;
10128 *)
10129 hardcode_direct=yes
10130 hardcode_direct_absolute=yes
10131 export_dynamic_flag_spec='$wl-E'
10132
10133 # hardcode_minus_L: Not really in the search PATH,
10134 # but as the default location of the library.
10135 hardcode_minus_L=yes
10136 ;;
10137 esac
10138 fi
10139 ;;
10140
10141 irix5* | irix6* | nonstopux*)
10142 if test yes = "$GCC"; then
10143 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10144 # Try to use the -exported_symbol ld option, if it does not
10145 # work, assume that -exports_file does not work either and
10146 # implicitly export all symbols.
10147 # This should be the same for all languages, so no per-tag cache variable.
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10149 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10150 if ${lt_cv_irix_exported_symbol+:} false; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10153 save_LDFLAGS=$LDFLAGS
10154 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156 /* end confdefs.h. */
10157 int foo (void) { return 0; }
10158 _ACEOF
10159 if ac_fn_c_try_link "$LINENO"; then :
10160 lt_cv_irix_exported_symbol=yes
10161 else
10162 lt_cv_irix_exported_symbol=no
10163 fi
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 LDFLAGS=$save_LDFLAGS
10167 fi
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10169 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10170 if test yes = "$lt_cv_irix_exported_symbol"; then
10171 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10172 fi
10173 link_all_deplibs=no
10174 else
10175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10177 fi
10178 archive_cmds_need_lc='no'
10179 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10180 hardcode_libdir_separator=:
10181 inherit_rpath=yes
10182 link_all_deplibs=yes
10183 ;;
10184
10185 linux*)
10186 case $cc_basename in
10187 tcc*)
10188 # Fabrice Bellard et al's Tiny C Compiler
10189 ld_shlibs=yes
10190 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10191 ;;
10192 esac
10193 ;;
10194
10195 netbsd* | netbsdelf*-gnu)
10196 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10198 else
10199 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10200 fi
10201 hardcode_libdir_flag_spec='-R$libdir'
10202 hardcode_direct=yes
10203 hardcode_shlibpath_var=no
10204 ;;
10205
10206 newsos6)
10207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_direct=yes
10209 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10210 hardcode_libdir_separator=:
10211 hardcode_shlibpath_var=no
10212 ;;
10213
10214 *nto* | *qnx*)
10215 ;;
10216
10217 openbsd* | bitrig*)
10218 if test -f /usr/libexec/ld.so; then
10219 hardcode_direct=yes
10220 hardcode_shlibpath_var=no
10221 hardcode_direct_absolute=yes
10222 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10223 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10224 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10225 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10226 export_dynamic_flag_spec='$wl-E'
10227 else
10228 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10229 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10230 fi
10231 else
10232 ld_shlibs=no
10233 fi
10234 ;;
10235
10236 os2*)
10237 hardcode_libdir_flag_spec='-L$libdir'
10238 hardcode_minus_L=yes
10239 allow_undefined_flag=unsupported
10240 shrext_cmds=.dll
10241 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10242 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10243 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10244 $ECHO EXPORTS >> $output_objdir/$libname.def~
10245 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10246 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10247 emximp -o $lib $output_objdir/$libname.def'
10248 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10249 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10250 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10251 $ECHO EXPORTS >> $output_objdir/$libname.def~
10252 prefix_cmds="$SED"~
10253 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10254 prefix_cmds="$prefix_cmds -e 1d";
10255 fi~
10256 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10257 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10258 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10259 emximp -o $lib $output_objdir/$libname.def'
10260 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10261 enable_shared_with_static_runtimes=yes
10262 ;;
10263
10264 osf3*)
10265 if test yes = "$GCC"; then
10266 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10267 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10268 else
10269 allow_undefined_flag=' -expect_unresolved \*'
10270 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10271 fi
10272 archive_cmds_need_lc='no'
10273 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10274 hardcode_libdir_separator=:
10275 ;;
10276
10277 osf4* | osf5*) # as osf3* with the addition of -msym flag
10278 if test yes = "$GCC"; then
10279 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10280 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10281 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10282 else
10283 allow_undefined_flag=' -expect_unresolved \*'
10284 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10285 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~
10286 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10287
10288 # Both c and cxx compiler support -rpath directly
10289 hardcode_libdir_flag_spec='-rpath $libdir'
10290 fi
10291 archive_cmds_need_lc='no'
10292 hardcode_libdir_separator=:
10293 ;;
10294
10295 solaris*)
10296 no_undefined_flag=' -z defs'
10297 if test yes = "$GCC"; then
10298 wlarc='$wl'
10299 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10300 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10301 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10302 else
10303 case `$CC -V 2>&1` in
10304 *"Compilers 5.0"*)
10305 wlarc=''
10306 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10308 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10309 ;;
10310 *)
10311 wlarc='$wl'
10312 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10313 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10314 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10315 ;;
10316 esac
10317 fi
10318 hardcode_libdir_flag_spec='-R$libdir'
10319 hardcode_shlibpath_var=no
10320 case $host_os in
10321 solaris2.[0-5] | solaris2.[0-5].*) ;;
10322 *)
10323 # The compiler driver will combine and reorder linker options,
10324 # but understands '-z linker_flag'. GCC discards it without '$wl',
10325 # but is careful enough not to reorder.
10326 # Supported since Solaris 2.6 (maybe 2.5.1?)
10327 if test yes = "$GCC"; then
10328 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10329 else
10330 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10331 fi
10332 ;;
10333 esac
10334 link_all_deplibs=yes
10335 ;;
10336
10337 sunos4*)
10338 if test sequent = "$host_vendor"; then
10339 # Use $CC to link under sequent, because it throws in some extra .o
10340 # files that make .init and .fini sections work.
10341 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10342 else
10343 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10344 fi
10345 hardcode_libdir_flag_spec='-L$libdir'
10346 hardcode_direct=yes
10347 hardcode_minus_L=yes
10348 hardcode_shlibpath_var=no
10349 ;;
10350
10351 sysv4)
10352 case $host_vendor in
10353 sni)
10354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355 hardcode_direct=yes # is this really true???
10356 ;;
10357 siemens)
10358 ## LD is ld it makes a PLAMLIB
10359 ## CC just makes a GrossModule.
10360 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10361 reload_cmds='$CC -r -o $output$reload_objs'
10362 hardcode_direct=no
10363 ;;
10364 motorola)
10365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10366 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10367 ;;
10368 esac
10369 runpath_var='LD_RUN_PATH'
10370 hardcode_shlibpath_var=no
10371 ;;
10372
10373 sysv4.3*)
10374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10375 hardcode_shlibpath_var=no
10376 export_dynamic_flag_spec='-Bexport'
10377 ;;
10378
10379 sysv4*MP*)
10380 if test -d /usr/nec; then
10381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10382 hardcode_shlibpath_var=no
10383 runpath_var=LD_RUN_PATH
10384 hardcode_runpath_var=yes
10385 ld_shlibs=yes
10386 fi
10387 ;;
10388
10389 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10390 no_undefined_flag='$wl-z,text'
10391 archive_cmds_need_lc=no
10392 hardcode_shlibpath_var=no
10393 runpath_var='LD_RUN_PATH'
10394
10395 if test yes = "$GCC"; then
10396 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10397 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10398 else
10399 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10400 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10401 fi
10402 ;;
10403
10404 sysv5* | sco3.2v5* | sco5v6*)
10405 # Note: We CANNOT use -z defs as we might desire, because we do not
10406 # link with -lc, and that would cause any symbols used from libc to
10407 # always be unresolved, which means just about no library would
10408 # ever link correctly. If we're not using GNU ld we use -z text
10409 # though, which does catch some bad symbols but isn't as heavy-handed
10410 # as -z defs.
10411 no_undefined_flag='$wl-z,text'
10412 allow_undefined_flag='$wl-z,nodefs'
10413 archive_cmds_need_lc=no
10414 hardcode_shlibpath_var=no
10415 hardcode_libdir_flag_spec='$wl-R,$libdir'
10416 hardcode_libdir_separator=':'
10417 link_all_deplibs=yes
10418 export_dynamic_flag_spec='$wl-Bexport'
10419 runpath_var='LD_RUN_PATH'
10420
10421 if test yes = "$GCC"; then
10422 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10423 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 else
10425 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10426 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10427 fi
10428 ;;
10429
10430 uts4*)
10431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10432 hardcode_libdir_flag_spec='-L$libdir'
10433 hardcode_shlibpath_var=no
10434 ;;
10435
10436 *)
10437 ld_shlibs=no
10438 ;;
10439 esac
10440
10441 if test sni = "$host_vendor"; then
10442 case $host in
10443 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10444 export_dynamic_flag_spec='$wl-Blargedynsym'
10445 ;;
10446 esac
10447 fi
10448 fi
10449
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10451 $as_echo "$ld_shlibs" >&6; }
10452 test no = "$ld_shlibs" && can_build_shared=no
10453
10454 with_gnu_ld=$with_gnu_ld
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470 #
10471 # Do we need to explicitly link libc?
10472 #
10473 case "x$archive_cmds_need_lc" in
10474 x|xyes)
10475 # Assume -lc should be added
10476 archive_cmds_need_lc=yes
10477
10478 if test yes,yes = "$GCC,$enable_shared"; then
10479 case $archive_cmds in
10480 *'~'*)
10481 # FIXME: we may have to deal with multi-command sequences.
10482 ;;
10483 '$CC '*)
10484 # Test whether the compiler implicitly links with -lc since on some
10485 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10486 # to ld, don't add -lc before -lgcc.
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10488 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10489 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 $RM conftest*
10493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10494
10495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10496 (eval $ac_compile) 2>&5
10497 ac_status=$?
10498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10499 test $ac_status = 0; } 2>conftest.err; then
10500 soname=conftest
10501 lib=conftest
10502 libobjs=conftest.$ac_objext
10503 deplibs=
10504 wl=$lt_prog_compiler_wl
10505 pic_flag=$lt_prog_compiler_pic
10506 compiler_flags=-v
10507 linker_flags=-v
10508 verstring=
10509 output_objdir=.
10510 libname=conftest
10511 lt_save_allow_undefined_flag=$allow_undefined_flag
10512 allow_undefined_flag=
10513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10514 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10515 ac_status=$?
10516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10517 test $ac_status = 0; }
10518 then
10519 lt_cv_archive_cmds_need_lc=no
10520 else
10521 lt_cv_archive_cmds_need_lc=yes
10522 fi
10523 allow_undefined_flag=$lt_save_allow_undefined_flag
10524 else
10525 cat conftest.err 1>&5
10526 fi
10527 $RM conftest*
10528
10529 fi
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10531 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10532 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10533 ;;
10534 esac
10535 fi
10536 ;;
10537 esac
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10691 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10692
10693 if test yes = "$GCC"; then
10694 case $host_os in
10695 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10696 *) lt_awk_arg='/^libraries:/' ;;
10697 esac
10698 case $host_os in
10699 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10700 *) lt_sed_strip_eq='s|=/|/|g' ;;
10701 esac
10702 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10703 case $lt_search_path_spec in
10704 *\;*)
10705 # if the path contains ";" then we assume it to be the separator
10706 # otherwise default to the standard path separator (i.e. ":") - it is
10707 # assumed that no part of a normal pathname contains ";" but that should
10708 # okay in the real world where ";" in dirpaths is itself problematic.
10709 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10710 ;;
10711 *)
10712 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10713 ;;
10714 esac
10715 # Ok, now we have the path, separated by spaces, we can step through it
10716 # and add multilib dir if necessary...
10717 lt_tmp_lt_search_path_spec=
10718 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10719 # ...but if some path component already ends with the multilib dir we assume
10720 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10721 case "$lt_multi_os_dir; $lt_search_path_spec " in
10722 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10723 lt_multi_os_dir=
10724 ;;
10725 esac
10726 for lt_sys_path in $lt_search_path_spec; do
10727 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10728 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10729 elif test -n "$lt_multi_os_dir"; then
10730 test -d "$lt_sys_path" && \
10731 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10732 fi
10733 done
10734 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10735 BEGIN {RS = " "; FS = "/|\n";} {
10736 lt_foo = "";
10737 lt_count = 0;
10738 for (lt_i = NF; lt_i > 0; lt_i--) {
10739 if ($lt_i != "" && $lt_i != ".") {
10740 if ($lt_i == "..") {
10741 lt_count++;
10742 } else {
10743 if (lt_count == 0) {
10744 lt_foo = "/" $lt_i lt_foo;
10745 } else {
10746 lt_count--;
10747 }
10748 }
10749 }
10750 }
10751 if (lt_foo != "") { lt_freq[lt_foo]++; }
10752 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10753 }'`
10754 # AWK program above erroneously prepends '/' to C:/dos/paths
10755 # for these hosts.
10756 case $host_os in
10757 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10758 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10759 esac
10760 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10761 else
10762 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10763 fi
10764 library_names_spec=
10765 libname_spec='lib$name'
10766 soname_spec=
10767 shrext_cmds=.so
10768 postinstall_cmds=
10769 postuninstall_cmds=
10770 finish_cmds=
10771 finish_eval=
10772 shlibpath_var=
10773 shlibpath_overrides_runpath=unknown
10774 version_type=none
10775 dynamic_linker="$host_os ld.so"
10776 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10777 need_lib_prefix=unknown
10778 hardcode_into_libs=no
10779
10780 # when you set need_version to no, make sure it does not cause -set_version
10781 # flags to be left without arguments
10782 need_version=unknown
10783
10784
10785
10786 case $host_os in
10787 aix3*)
10788 version_type=linux # correct to gnu/linux during the next big refactor
10789 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10790 shlibpath_var=LIBPATH
10791
10792 # AIX 3 has no versioning support, so we append a major version to the name.
10793 soname_spec='$libname$release$shared_ext$major'
10794 ;;
10795
10796 aix[4-9]*)
10797 version_type=linux # correct to gnu/linux during the next big refactor
10798 need_lib_prefix=no
10799 need_version=no
10800 hardcode_into_libs=yes
10801 if test ia64 = "$host_cpu"; then
10802 # AIX 5 supports IA64
10803 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10804 shlibpath_var=LD_LIBRARY_PATH
10805 else
10806 # With GCC up to 2.95.x, collect2 would create an import file
10807 # for dependence libraries. The import file would start with
10808 # the line '#! .'. This would cause the generated library to
10809 # depend on '.', always an invalid library. This was fixed in
10810 # development snapshots of GCC prior to 3.0.
10811 case $host_os in
10812 aix4 | aix4.[01] | aix4.[01].*)
10813 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10814 echo ' yes '
10815 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10816 :
10817 else
10818 can_build_shared=no
10819 fi
10820 ;;
10821 esac
10822 # Using Import Files as archive members, it is possible to support
10823 # filename-based versioning of shared library archives on AIX. While
10824 # this would work for both with and without runtime linking, it will
10825 # prevent static linking of such archives. So we do filename-based
10826 # shared library versioning with .so extension only, which is used
10827 # when both runtime linking and shared linking is enabled.
10828 # Unfortunately, runtime linking may impact performance, so we do
10829 # not want this to be the default eventually. Also, we use the
10830 # versioned .so libs for executables only if there is the -brtl
10831 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10832 # To allow for filename-based versioning support, we need to create
10833 # libNAME.so.V as an archive file, containing:
10834 # *) an Import File, referring to the versioned filename of the
10835 # archive as well as the shared archive member, telling the
10836 # bitwidth (32 or 64) of that shared object, and providing the
10837 # list of exported symbols of that shared object, eventually
10838 # decorated with the 'weak' keyword
10839 # *) the shared object with the F_LOADONLY flag set, to really avoid
10840 # it being seen by the linker.
10841 # At run time we better use the real file rather than another symlink,
10842 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10843
10844 case $with_aix_soname,$aix_use_runtimelinking in
10845 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10846 # soname into executable. Probably we can add versioning support to
10847 # collect2, so additional links can be useful in future.
10848 aix,yes) # traditional libtool
10849 dynamic_linker='AIX unversionable lib.so'
10850 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10851 # instead of lib<name>.a to let people know that these are not
10852 # typical AIX shared libraries.
10853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10854 ;;
10855 aix,no) # traditional AIX only
10856 dynamic_linker='AIX lib.a(lib.so.V)'
10857 # We preserve .a as extension for shared libraries through AIX4.2
10858 # and later when we are not doing run time linking.
10859 library_names_spec='$libname$release.a $libname.a'
10860 soname_spec='$libname$release$shared_ext$major'
10861 ;;
10862 svr4,*) # full svr4 only
10863 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10864 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10865 # We do not specify a path in Import Files, so LIBPATH fires.
10866 shlibpath_overrides_runpath=yes
10867 ;;
10868 *,yes) # both, prefer svr4
10869 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10870 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10871 # unpreferred sharedlib libNAME.a needs extra handling
10872 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10873 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10874 # We do not specify a path in Import Files, so LIBPATH fires.
10875 shlibpath_overrides_runpath=yes
10876 ;;
10877 *,no) # both, prefer aix
10878 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10879 library_names_spec='$libname$release.a $libname.a'
10880 soname_spec='$libname$release$shared_ext$major'
10881 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10882 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10883 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10884 ;;
10885 esac
10886 shlibpath_var=LIBPATH
10887 fi
10888 ;;
10889
10890 amigaos*)
10891 case $host_cpu in
10892 powerpc)
10893 # Since July 2007 AmigaOS4 officially supports .so libraries.
10894 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10896 ;;
10897 m68k)
10898 library_names_spec='$libname.ixlibrary $libname.a'
10899 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10900 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10901 ;;
10902 esac
10903 ;;
10904
10905 beos*)
10906 library_names_spec='$libname$shared_ext'
10907 dynamic_linker="$host_os ld.so"
10908 shlibpath_var=LIBRARY_PATH
10909 ;;
10910
10911 bsdi[45]*)
10912 version_type=linux # correct to gnu/linux during the next big refactor
10913 need_version=no
10914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10915 soname_spec='$libname$release$shared_ext$major'
10916 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10917 shlibpath_var=LD_LIBRARY_PATH
10918 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10919 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10920 # the default ld.so.conf also contains /usr/contrib/lib and
10921 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10922 # libtool to hard-code these into programs
10923 ;;
10924
10925 cygwin* | mingw* | pw32* | cegcc*)
10926 version_type=windows
10927 shrext_cmds=.dll
10928 need_version=no
10929 need_lib_prefix=no
10930
10931 case $GCC,$cc_basename in
10932 yes,*)
10933 # gcc
10934 library_names_spec='$libname.dll.a'
10935 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10936 postinstall_cmds='base_file=`basename \$file`~
10937 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10938 dldir=$destdir/`dirname \$dlpath`~
10939 test -d \$dldir || mkdir -p \$dldir~
10940 $install_prog $dir/$dlname \$dldir/$dlname~
10941 chmod a+x \$dldir/$dlname~
10942 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10943 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10944 fi'
10945 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10946 dlpath=$dir/\$dldll~
10947 $RM \$dlpath'
10948 shlibpath_overrides_runpath=yes
10949
10950 case $host_os in
10951 cygwin*)
10952 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10953 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10954
10955 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10956 ;;
10957 mingw* | cegcc*)
10958 # MinGW DLLs use traditional 'lib' prefix
10959 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10960 ;;
10961 pw32*)
10962 # pw32 DLLs use 'pw' prefix rather than 'lib'
10963 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10964 ;;
10965 esac
10966 dynamic_linker='Win32 ld.exe'
10967 ;;
10968
10969 *,cl*)
10970 # Native MSVC
10971 libname_spec='$name'
10972 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10973 library_names_spec='$libname.dll.lib'
10974
10975 case $build_os in
10976 mingw*)
10977 sys_lib_search_path_spec=
10978 lt_save_ifs=$IFS
10979 IFS=';'
10980 for lt_path in $LIB
10981 do
10982 IFS=$lt_save_ifs
10983 # Let DOS variable expansion print the short 8.3 style file name.
10984 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10985 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10986 done
10987 IFS=$lt_save_ifs
10988 # Convert to MSYS style.
10989 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10990 ;;
10991 cygwin*)
10992 # Convert to unix form, then to dos form, then back to unix form
10993 # but this time dos style (no spaces!) so that the unix form looks
10994 # like /cygdrive/c/PROGRA~1:/cygdr...
10995 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10996 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10997 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10998 ;;
10999 *)
11000 sys_lib_search_path_spec=$LIB
11001 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11002 # It is most probably a Windows format PATH.
11003 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11004 else
11005 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11006 fi
11007 # FIXME: find the short name or the path components, as spaces are
11008 # common. (e.g. "Program Files" -> "PROGRA~1")
11009 ;;
11010 esac
11011
11012 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11013 postinstall_cmds='base_file=`basename \$file`~
11014 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11015 dldir=$destdir/`dirname \$dlpath`~
11016 test -d \$dldir || mkdir -p \$dldir~
11017 $install_prog $dir/$dlname \$dldir/$dlname'
11018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11019 dlpath=$dir/\$dldll~
11020 $RM \$dlpath'
11021 shlibpath_overrides_runpath=yes
11022 dynamic_linker='Win32 link.exe'
11023 ;;
11024
11025 *)
11026 # Assume MSVC wrapper
11027 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11028 dynamic_linker='Win32 ld.exe'
11029 ;;
11030 esac
11031 # FIXME: first we should search . and the directory the executable is in
11032 shlibpath_var=PATH
11033 ;;
11034
11035 darwin* | rhapsody*)
11036 dynamic_linker="$host_os dyld"
11037 version_type=darwin
11038 need_lib_prefix=no
11039 need_version=no
11040 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11041 soname_spec='$libname$release$major$shared_ext'
11042 shlibpath_overrides_runpath=yes
11043 shlibpath_var=DYLD_LIBRARY_PATH
11044 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11045
11046 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11047 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11048 ;;
11049
11050 dgux*)
11051 version_type=linux # correct to gnu/linux during the next big refactor
11052 need_lib_prefix=no
11053 need_version=no
11054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11055 soname_spec='$libname$release$shared_ext$major'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 ;;
11058
11059 freebsd* | dragonfly*)
11060 # DragonFly does not have aout. When/if they implement a new
11061 # versioning mechanism, adjust this.
11062 if test -x /usr/bin/objformat; then
11063 objformat=`/usr/bin/objformat`
11064 else
11065 case $host_os in
11066 freebsd[23].*) objformat=aout ;;
11067 *) objformat=elf ;;
11068 esac
11069 fi
11070 version_type=freebsd-$objformat
11071 case $version_type in
11072 freebsd-elf*)
11073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11074 soname_spec='$libname$release$shared_ext$major'
11075 need_version=no
11076 need_lib_prefix=no
11077 ;;
11078 freebsd-*)
11079 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11080 need_version=yes
11081 ;;
11082 esac
11083 shlibpath_var=LD_LIBRARY_PATH
11084 case $host_os in
11085 freebsd2.*)
11086 shlibpath_overrides_runpath=yes
11087 ;;
11088 freebsd3.[01]* | freebsdelf3.[01]*)
11089 shlibpath_overrides_runpath=yes
11090 hardcode_into_libs=yes
11091 ;;
11092 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11093 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11094 shlibpath_overrides_runpath=no
11095 hardcode_into_libs=yes
11096 ;;
11097 *) # from 4.6 on, and DragonFly
11098 shlibpath_overrides_runpath=yes
11099 hardcode_into_libs=yes
11100 ;;
11101 esac
11102 ;;
11103
11104 haiku*)
11105 version_type=linux # correct to gnu/linux during the next big refactor
11106 need_lib_prefix=no
11107 need_version=no
11108 dynamic_linker="$host_os runtime_loader"
11109 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11110 soname_spec='$libname$release$shared_ext$major'
11111 shlibpath_var=LIBRARY_PATH
11112 shlibpath_overrides_runpath=no
11113 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11114 hardcode_into_libs=yes
11115 ;;
11116
11117 hpux9* | hpux10* | hpux11*)
11118 # Give a soname corresponding to the major version so that dld.sl refuses to
11119 # link against other versions.
11120 version_type=sunos
11121 need_lib_prefix=no
11122 need_version=no
11123 case $host_cpu in
11124 ia64*)
11125 shrext_cmds='.so'
11126 hardcode_into_libs=yes
11127 dynamic_linker="$host_os dld.so"
11128 shlibpath_var=LD_LIBRARY_PATH
11129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11131 soname_spec='$libname$release$shared_ext$major'
11132 if test 32 = "$HPUX_IA64_MODE"; then
11133 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11134 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11135 else
11136 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11137 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11138 fi
11139 ;;
11140 hppa*64*)
11141 shrext_cmds='.sl'
11142 hardcode_into_libs=yes
11143 dynamic_linker="$host_os dld.sl"
11144 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11145 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11147 soname_spec='$libname$release$shared_ext$major'
11148 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11150 ;;
11151 *)
11152 shrext_cmds='.sl'
11153 dynamic_linker="$host_os dld.sl"
11154 shlibpath_var=SHLIB_PATH
11155 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11156 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11157 soname_spec='$libname$release$shared_ext$major'
11158 ;;
11159 esac
11160 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11161 postinstall_cmds='chmod 555 $lib'
11162 # or fails outright, so override atomically:
11163 install_override_mode=555
11164 ;;
11165
11166 interix[3-9]*)
11167 version_type=linux # correct to gnu/linux during the next big refactor
11168 need_lib_prefix=no
11169 need_version=no
11170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11171 soname_spec='$libname$release$shared_ext$major'
11172 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 shlibpath_overrides_runpath=no
11175 hardcode_into_libs=yes
11176 ;;
11177
11178 irix5* | irix6* | nonstopux*)
11179 case $host_os in
11180 nonstopux*) version_type=nonstopux ;;
11181 *)
11182 if test yes = "$lt_cv_prog_gnu_ld"; then
11183 version_type=linux # correct to gnu/linux during the next big refactor
11184 else
11185 version_type=irix
11186 fi ;;
11187 esac
11188 need_lib_prefix=no
11189 need_version=no
11190 soname_spec='$libname$release$shared_ext$major'
11191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11192 case $host_os in
11193 irix5* | nonstopux*)
11194 libsuff= shlibsuff=
11195 ;;
11196 *)
11197 case $LD in # libtool.m4 will add one of these switches to LD
11198 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11199 libsuff= shlibsuff= libmagic=32-bit;;
11200 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11201 libsuff=32 shlibsuff=N32 libmagic=N32;;
11202 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11203 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11204 *) libsuff= shlibsuff= libmagic=never-match;;
11205 esac
11206 ;;
11207 esac
11208 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11209 shlibpath_overrides_runpath=no
11210 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11211 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11212 hardcode_into_libs=yes
11213 ;;
11214
11215 # No shared lib support for Linux oldld, aout, or coff.
11216 linux*oldld* | linux*aout* | linux*coff*)
11217 dynamic_linker=no
11218 ;;
11219
11220 linux*android*)
11221 version_type=none # Android doesn't support versioned libraries.
11222 need_lib_prefix=no
11223 need_version=no
11224 library_names_spec='$libname$release$shared_ext'
11225 soname_spec='$libname$release$shared_ext'
11226 finish_cmds=
11227 shlibpath_var=LD_LIBRARY_PATH
11228 shlibpath_overrides_runpath=yes
11229
11230 # This implies no fast_install, which is unacceptable.
11231 # Some rework will be needed to allow for fast_install
11232 # before this can be enabled.
11233 hardcode_into_libs=yes
11234
11235 dynamic_linker='Android linker'
11236 # Don't embed -rpath directories since the linker doesn't support them.
11237 hardcode_libdir_flag_spec='-L$libdir'
11238 ;;
11239
11240 # This must be glibc/ELF.
11241 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11242 version_type=linux # correct to gnu/linux during the next big refactor
11243 need_lib_prefix=no
11244 need_version=no
11245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11246 soname_spec='$libname$release$shared_ext$major'
11247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 shlibpath_overrides_runpath=no
11250
11251 # Some binutils ld are patched to set DT_RUNPATH
11252 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11253 $as_echo_n "(cached) " >&6
11254 else
11255 lt_cv_shlibpath_overrides_runpath=no
11256 save_LDFLAGS=$LDFLAGS
11257 save_libdir=$libdir
11258 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11259 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11262
11263 int
11264 main ()
11265 {
11266
11267 ;
11268 return 0;
11269 }
11270 _ACEOF
11271 if ac_fn_c_try_link "$LINENO"; then :
11272 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11273 lt_cv_shlibpath_overrides_runpath=yes
11274 fi
11275 fi
11276 rm -f core conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11278 LDFLAGS=$save_LDFLAGS
11279 libdir=$save_libdir
11280
11281 fi
11282
11283 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11284
11285 # This implies no fast_install, which is unacceptable.
11286 # Some rework will be needed to allow for fast_install
11287 # before this can be enabled.
11288 hardcode_into_libs=yes
11289
11290 # Ideally, we could use ldconfig to report *all* directores which are
11291 # searched for libraries, however this is still not possible. Aside from not
11292 # being certain /sbin/ldconfig is available, command
11293 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11294 # even though it is searched at run-time. Try to do the best guess by
11295 # appending ld.so.conf contents (and includes) to the search path.
11296 if test -f /etc/ld.so.conf; then
11297 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11298 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11299 fi
11300
11301 # We used to test for /lib/ld.so.1 and disable shared libraries on
11302 # powerpc, because MkLinux only supported shared libraries with the
11303 # GNU dynamic linker. Since this was broken with cross compilers,
11304 # most powerpc-linux boxes support dynamic linking these days and
11305 # people can always --disable-shared, the test was removed, and we
11306 # assume the GNU/Linux dynamic linker is in use.
11307 dynamic_linker='GNU/Linux ld.so'
11308 ;;
11309
11310 netbsdelf*-gnu)
11311 version_type=linux
11312 need_lib_prefix=no
11313 need_version=no
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 shlibpath_var=LD_LIBRARY_PATH
11317 shlibpath_overrides_runpath=no
11318 hardcode_into_libs=yes
11319 dynamic_linker='NetBSD ld.elf_so'
11320 ;;
11321
11322 netbsd*)
11323 version_type=sunos
11324 need_lib_prefix=no
11325 need_version=no
11326 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11327 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11329 dynamic_linker='NetBSD (a.out) ld.so'
11330 else
11331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11332 soname_spec='$libname$release$shared_ext$major'
11333 dynamic_linker='NetBSD ld.elf_so'
11334 fi
11335 shlibpath_var=LD_LIBRARY_PATH
11336 shlibpath_overrides_runpath=yes
11337 hardcode_into_libs=yes
11338 ;;
11339
11340 newsos6)
11341 version_type=linux # correct to gnu/linux during the next big refactor
11342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11343 shlibpath_var=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath=yes
11345 ;;
11346
11347 *nto* | *qnx*)
11348 version_type=qnx
11349 need_lib_prefix=no
11350 need_version=no
11351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11352 soname_spec='$libname$release$shared_ext$major'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath=no
11355 hardcode_into_libs=yes
11356 dynamic_linker='ldqnx.so'
11357 ;;
11358
11359 openbsd* | bitrig*)
11360 version_type=sunos
11361 sys_lib_dlsearch_path_spec=/usr/lib
11362 need_lib_prefix=no
11363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11364 need_version=no
11365 else
11366 need_version=yes
11367 fi
11368 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11370 shlibpath_var=LD_LIBRARY_PATH
11371 shlibpath_overrides_runpath=yes
11372 ;;
11373
11374 os2*)
11375 libname_spec='$name'
11376 version_type=windows
11377 shrext_cmds=.dll
11378 need_version=no
11379 need_lib_prefix=no
11380 # OS/2 can only load a DLL with a base name of 8 characters or less.
11381 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11382 v=$($ECHO $release$versuffix | tr -d .-);
11383 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11384 $ECHO $n$v`$shared_ext'
11385 library_names_spec='${libname}_dll.$libext'
11386 dynamic_linker='OS/2 ld.exe'
11387 shlibpath_var=BEGINLIBPATH
11388 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11390 postinstall_cmds='base_file=`basename \$file`~
11391 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11392 dldir=$destdir/`dirname \$dlpath`~
11393 test -d \$dldir || mkdir -p \$dldir~
11394 $install_prog $dir/$dlname \$dldir/$dlname~
11395 chmod a+x \$dldir/$dlname~
11396 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11397 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11398 fi'
11399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11400 dlpath=$dir/\$dldll~
11401 $RM \$dlpath'
11402 ;;
11403
11404 osf3* | osf4* | osf5*)
11405 version_type=osf
11406 need_lib_prefix=no
11407 need_version=no
11408 soname_spec='$libname$release$shared_ext$major'
11409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11410 shlibpath_var=LD_LIBRARY_PATH
11411 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11412 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11413 ;;
11414
11415 rdos*)
11416 dynamic_linker=no
11417 ;;
11418
11419 solaris*)
11420 version_type=linux # correct to gnu/linux during the next big refactor
11421 need_lib_prefix=no
11422 need_version=no
11423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11424 soname_spec='$libname$release$shared_ext$major'
11425 shlibpath_var=LD_LIBRARY_PATH
11426 shlibpath_overrides_runpath=yes
11427 hardcode_into_libs=yes
11428 # ldd complains unless libraries are executable
11429 postinstall_cmds='chmod +x $lib'
11430 ;;
11431
11432 sunos4*)
11433 version_type=sunos
11434 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11435 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11436 shlibpath_var=LD_LIBRARY_PATH
11437 shlibpath_overrides_runpath=yes
11438 if test yes = "$with_gnu_ld"; then
11439 need_lib_prefix=no
11440 fi
11441 need_version=yes
11442 ;;
11443
11444 sysv4 | sysv4.3*)
11445 version_type=linux # correct to gnu/linux during the next big refactor
11446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11447 soname_spec='$libname$release$shared_ext$major'
11448 shlibpath_var=LD_LIBRARY_PATH
11449 case $host_vendor in
11450 sni)
11451 shlibpath_overrides_runpath=no
11452 need_lib_prefix=no
11453 runpath_var=LD_RUN_PATH
11454 ;;
11455 siemens)
11456 need_lib_prefix=no
11457 ;;
11458 motorola)
11459 need_lib_prefix=no
11460 need_version=no
11461 shlibpath_overrides_runpath=no
11462 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11463 ;;
11464 esac
11465 ;;
11466
11467 sysv4*MP*)
11468 if test -d /usr/nec; then
11469 version_type=linux # correct to gnu/linux during the next big refactor
11470 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11471 soname_spec='$libname$shared_ext.$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 fi
11474 ;;
11475
11476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11477 version_type=sco
11478 need_lib_prefix=no
11479 need_version=no
11480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11481 soname_spec='$libname$release$shared_ext$major'
11482 shlibpath_var=LD_LIBRARY_PATH
11483 shlibpath_overrides_runpath=yes
11484 hardcode_into_libs=yes
11485 if test yes = "$with_gnu_ld"; then
11486 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11487 else
11488 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11489 case $host_os in
11490 sco3.2v5*)
11491 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11492 ;;
11493 esac
11494 fi
11495 sys_lib_dlsearch_path_spec='/usr/lib'
11496 ;;
11497
11498 tpf*)
11499 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11500 version_type=linux # correct to gnu/linux during the next big refactor
11501 need_lib_prefix=no
11502 need_version=no
11503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11504 shlibpath_var=LD_LIBRARY_PATH
11505 shlibpath_overrides_runpath=no
11506 hardcode_into_libs=yes
11507 ;;
11508
11509 uts4*)
11510 version_type=linux # correct to gnu/linux during the next big refactor
11511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11512 soname_spec='$libname$release$shared_ext$major'
11513 shlibpath_var=LD_LIBRARY_PATH
11514 ;;
11515
11516 *)
11517 dynamic_linker=no
11518 ;;
11519 esac
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11521 $as_echo "$dynamic_linker" >&6; }
11522 test no = "$dynamic_linker" && can_build_shared=no
11523
11524 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11525 if test yes = "$GCC"; then
11526 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11527 fi
11528
11529 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11530 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11531 fi
11532
11533 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11534 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11535 fi
11536
11537 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11538 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11539
11540 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11541 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11542
11543 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11544 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11643 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11644 hardcode_action=
11645 if test -n "$hardcode_libdir_flag_spec" ||
11646 test -n "$runpath_var" ||
11647 test yes = "$hardcode_automatic"; then
11648
11649 # We can hardcode non-existent directories.
11650 if test no != "$hardcode_direct" &&
11651 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11652 # have to relink, otherwise we might link with an installed library
11653 # when we should be linking with a yet-to-be-installed one
11654 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11655 test no != "$hardcode_minus_L"; then
11656 # Linking always hardcodes the temporary library directory.
11657 hardcode_action=relink
11658 else
11659 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11660 hardcode_action=immediate
11661 fi
11662 else
11663 # We cannot hardcode anything, or else we can only hardcode existing
11664 # directories.
11665 hardcode_action=unsupported
11666 fi
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11668 $as_echo "$hardcode_action" >&6; }
11669
11670 if test relink = "$hardcode_action" ||
11671 test yes = "$inherit_rpath"; then
11672 # Fast installation is not supported
11673 enable_fast_install=no
11674 elif test yes = "$shlibpath_overrides_runpath" ||
11675 test no = "$enable_shared"; then
11676 # Fast installation is not necessary
11677 enable_fast_install=needless
11678 fi
11679
11680
11681
11682
11683
11684
11685 if test yes != "$enable_dlopen"; then
11686 enable_dlopen=unknown
11687 enable_dlopen_self=unknown
11688 enable_dlopen_self_static=unknown
11689 else
11690 lt_cv_dlopen=no
11691 lt_cv_dlopen_libs=
11692
11693 case $host_os in
11694 beos*)
11695 lt_cv_dlopen=load_add_on
11696 lt_cv_dlopen_libs=
11697 lt_cv_dlopen_self=yes
11698 ;;
11699
11700 mingw* | pw32* | cegcc*)
11701 lt_cv_dlopen=LoadLibrary
11702 lt_cv_dlopen_libs=
11703 ;;
11704
11705 cygwin*)
11706 lt_cv_dlopen=dlopen
11707 lt_cv_dlopen_libs=
11708 ;;
11709
11710 darwin*)
11711 # if libdl is installed we need to link against it
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11713 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11714 if ${ac_cv_lib_dl_dlopen+:} false; then :
11715 $as_echo_n "(cached) " >&6
11716 else
11717 ac_check_lib_save_LIBS=$LIBS
11718 LIBS="-ldl $LIBS"
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11721
11722 /* Override any GCC internal prototype to avoid an error.
11723 Use char because int might match the return type of a GCC
11724 builtin and then its argument prototype would still apply. */
11725 #ifdef __cplusplus
11726 extern "C"
11727 #endif
11728 char dlopen ();
11729 int
11730 main ()
11731 {
11732 return dlopen ();
11733 ;
11734 return 0;
11735 }
11736 _ACEOF
11737 if ac_fn_c_try_link "$LINENO"; then :
11738 ac_cv_lib_dl_dlopen=yes
11739 else
11740 ac_cv_lib_dl_dlopen=no
11741 fi
11742 rm -f core conftest.err conftest.$ac_objext \
11743 conftest$ac_exeext conftest.$ac_ext
11744 LIBS=$ac_check_lib_save_LIBS
11745 fi
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11747 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11748 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11749 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11750 else
11751
11752 lt_cv_dlopen=dyld
11753 lt_cv_dlopen_libs=
11754 lt_cv_dlopen_self=yes
11755
11756 fi
11757
11758 ;;
11759
11760 tpf*)
11761 # Don't try to run any link tests for TPF. We know it's impossible
11762 # because TPF is a cross-compiler, and we know how we open DSOs.
11763 lt_cv_dlopen=dlopen
11764 lt_cv_dlopen_libs=
11765 lt_cv_dlopen_self=no
11766 ;;
11767
11768 *)
11769 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11770 if test "x$ac_cv_func_shl_load" = xyes; then :
11771 lt_cv_dlopen=shl_load
11772 else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11774 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11775 if ${ac_cv_lib_dld_shl_load+:} false; then :
11776 $as_echo_n "(cached) " >&6
11777 else
11778 ac_check_lib_save_LIBS=$LIBS
11779 LIBS="-ldld $LIBS"
11780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11782
11783 /* Override any GCC internal prototype to avoid an error.
11784 Use char because int might match the return type of a GCC
11785 builtin and then its argument prototype would still apply. */
11786 #ifdef __cplusplus
11787 extern "C"
11788 #endif
11789 char shl_load ();
11790 int
11791 main ()
11792 {
11793 return shl_load ();
11794 ;
11795 return 0;
11796 }
11797 _ACEOF
11798 if ac_fn_c_try_link "$LINENO"; then :
11799 ac_cv_lib_dld_shl_load=yes
11800 else
11801 ac_cv_lib_dld_shl_load=no
11802 fi
11803 rm -f core conftest.err conftest.$ac_objext \
11804 conftest$ac_exeext conftest.$ac_ext
11805 LIBS=$ac_check_lib_save_LIBS
11806 fi
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11808 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11809 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11810 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11811 else
11812 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11813 if test "x$ac_cv_func_dlopen" = xyes; then :
11814 lt_cv_dlopen=dlopen
11815 else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11817 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11818 if ${ac_cv_lib_dl_dlopen+:} false; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 ac_check_lib_save_LIBS=$LIBS
11822 LIBS="-ldl $LIBS"
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11825
11826 /* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
11829 #ifdef __cplusplus
11830 extern "C"
11831 #endif
11832 char dlopen ();
11833 int
11834 main ()
11835 {
11836 return dlopen ();
11837 ;
11838 return 0;
11839 }
11840 _ACEOF
11841 if ac_fn_c_try_link "$LINENO"; then :
11842 ac_cv_lib_dl_dlopen=yes
11843 else
11844 ac_cv_lib_dl_dlopen=no
11845 fi
11846 rm -f core conftest.err conftest.$ac_objext \
11847 conftest$ac_exeext conftest.$ac_ext
11848 LIBS=$ac_check_lib_save_LIBS
11849 fi
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11851 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11852 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11853 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11854 else
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11856 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11857 if ${ac_cv_lib_svld_dlopen+:} false; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 ac_check_lib_save_LIBS=$LIBS
11861 LIBS="-lsvld $LIBS"
11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11864
11865 /* Override any GCC internal prototype to avoid an error.
11866 Use char because int might match the return type of a GCC
11867 builtin and then its argument prototype would still apply. */
11868 #ifdef __cplusplus
11869 extern "C"
11870 #endif
11871 char dlopen ();
11872 int
11873 main ()
11874 {
11875 return dlopen ();
11876 ;
11877 return 0;
11878 }
11879 _ACEOF
11880 if ac_fn_c_try_link "$LINENO"; then :
11881 ac_cv_lib_svld_dlopen=yes
11882 else
11883 ac_cv_lib_svld_dlopen=no
11884 fi
11885 rm -f core conftest.err conftest.$ac_objext \
11886 conftest$ac_exeext conftest.$ac_ext
11887 LIBS=$ac_check_lib_save_LIBS
11888 fi
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11890 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11891 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11892 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11893 else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11895 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11896 if ${ac_cv_lib_dld_dld_link+:} false; then :
11897 $as_echo_n "(cached) " >&6
11898 else
11899 ac_check_lib_save_LIBS=$LIBS
11900 LIBS="-ldld $LIBS"
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11903
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 char dld_link ();
11911 int
11912 main ()
11913 {
11914 return dld_link ();
11915 ;
11916 return 0;
11917 }
11918 _ACEOF
11919 if ac_fn_c_try_link "$LINENO"; then :
11920 ac_cv_lib_dld_dld_link=yes
11921 else
11922 ac_cv_lib_dld_dld_link=no
11923 fi
11924 rm -f core conftest.err conftest.$ac_objext \
11925 conftest$ac_exeext conftest.$ac_ext
11926 LIBS=$ac_check_lib_save_LIBS
11927 fi
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11929 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11930 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11931 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11932 fi
11933
11934
11935 fi
11936
11937
11938 fi
11939
11940
11941 fi
11942
11943
11944 fi
11945
11946
11947 fi
11948
11949 ;;
11950 esac
11951
11952 if test no = "$lt_cv_dlopen"; then
11953 enable_dlopen=no
11954 else
11955 enable_dlopen=yes
11956 fi
11957
11958 case $lt_cv_dlopen in
11959 dlopen)
11960 save_CPPFLAGS=$CPPFLAGS
11961 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11962
11963 save_LDFLAGS=$LDFLAGS
11964 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11965
11966 save_LIBS=$LIBS
11967 LIBS="$lt_cv_dlopen_libs $LIBS"
11968
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11970 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11971 if ${lt_cv_dlopen_self+:} false; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 if test yes = "$cross_compiling"; then :
11975 lt_cv_dlopen_self=cross
11976 else
11977 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11978 lt_status=$lt_dlunknown
11979 cat > conftest.$ac_ext <<_LT_EOF
11980 #line $LINENO "configure"
11981 #include "confdefs.h"
11982
11983 #if HAVE_DLFCN_H
11984 #include <dlfcn.h>
11985 #endif
11986
11987 #include <stdio.h>
11988
11989 #ifdef RTLD_GLOBAL
11990 # define LT_DLGLOBAL RTLD_GLOBAL
11991 #else
11992 # ifdef DL_GLOBAL
11993 # define LT_DLGLOBAL DL_GLOBAL
11994 # else
11995 # define LT_DLGLOBAL 0
11996 # endif
11997 #endif
11998
11999 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12000 find out it does not work in some platform. */
12001 #ifndef LT_DLLAZY_OR_NOW
12002 # ifdef RTLD_LAZY
12003 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12004 # else
12005 # ifdef DL_LAZY
12006 # define LT_DLLAZY_OR_NOW DL_LAZY
12007 # else
12008 # ifdef RTLD_NOW
12009 # define LT_DLLAZY_OR_NOW RTLD_NOW
12010 # else
12011 # ifdef DL_NOW
12012 # define LT_DLLAZY_OR_NOW DL_NOW
12013 # else
12014 # define LT_DLLAZY_OR_NOW 0
12015 # endif
12016 # endif
12017 # endif
12018 # endif
12019 #endif
12020
12021 /* When -fvisibility=hidden is used, assume the code has been annotated
12022 correspondingly for the symbols needed. */
12023 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12024 int fnord () __attribute__((visibility("default")));
12025 #endif
12026
12027 int fnord () { return 42; }
12028 int main ()
12029 {
12030 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12031 int status = $lt_dlunknown;
12032
12033 if (self)
12034 {
12035 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12036 else
12037 {
12038 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12039 else puts (dlerror ());
12040 }
12041 /* dlclose (self); */
12042 }
12043 else
12044 puts (dlerror ());
12045
12046 return status;
12047 }
12048 _LT_EOF
12049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12050 (eval $ac_link) 2>&5
12051 ac_status=$?
12052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12053 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12054 (./conftest; exit; ) >&5 2>/dev/null
12055 lt_status=$?
12056 case x$lt_status in
12057 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12058 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12059 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12060 esac
12061 else :
12062 # compilation failed
12063 lt_cv_dlopen_self=no
12064 fi
12065 fi
12066 rm -fr conftest*
12067
12068
12069 fi
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12071 $as_echo "$lt_cv_dlopen_self" >&6; }
12072
12073 if test yes = "$lt_cv_dlopen_self"; then
12074 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12076 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12077 if ${lt_cv_dlopen_self_static+:} false; then :
12078 $as_echo_n "(cached) " >&6
12079 else
12080 if test yes = "$cross_compiling"; then :
12081 lt_cv_dlopen_self_static=cross
12082 else
12083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12084 lt_status=$lt_dlunknown
12085 cat > conftest.$ac_ext <<_LT_EOF
12086 #line $LINENO "configure"
12087 #include "confdefs.h"
12088
12089 #if HAVE_DLFCN_H
12090 #include <dlfcn.h>
12091 #endif
12092
12093 #include <stdio.h>
12094
12095 #ifdef RTLD_GLOBAL
12096 # define LT_DLGLOBAL RTLD_GLOBAL
12097 #else
12098 # ifdef DL_GLOBAL
12099 # define LT_DLGLOBAL DL_GLOBAL
12100 # else
12101 # define LT_DLGLOBAL 0
12102 # endif
12103 #endif
12104
12105 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12106 find out it does not work in some platform. */
12107 #ifndef LT_DLLAZY_OR_NOW
12108 # ifdef RTLD_LAZY
12109 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12110 # else
12111 # ifdef DL_LAZY
12112 # define LT_DLLAZY_OR_NOW DL_LAZY
12113 # else
12114 # ifdef RTLD_NOW
12115 # define LT_DLLAZY_OR_NOW RTLD_NOW
12116 # else
12117 # ifdef DL_NOW
12118 # define LT_DLLAZY_OR_NOW DL_NOW
12119 # else
12120 # define LT_DLLAZY_OR_NOW 0
12121 # endif
12122 # endif
12123 # endif
12124 # endif
12125 #endif
12126
12127 /* When -fvisibility=hidden is used, assume the code has been annotated
12128 correspondingly for the symbols needed. */
12129 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12130 int fnord () __attribute__((visibility("default")));
12131 #endif
12132
12133 int fnord () { return 42; }
12134 int main ()
12135 {
12136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12137 int status = $lt_dlunknown;
12138
12139 if (self)
12140 {
12141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12142 else
12143 {
12144 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12145 else puts (dlerror ());
12146 }
12147 /* dlclose (self); */
12148 }
12149 else
12150 puts (dlerror ());
12151
12152 return status;
12153 }
12154 _LT_EOF
12155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12156 (eval $ac_link) 2>&5
12157 ac_status=$?
12158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12159 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12160 (./conftest; exit; ) >&5 2>/dev/null
12161 lt_status=$?
12162 case x$lt_status in
12163 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12164 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12165 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12166 esac
12167 else :
12168 # compilation failed
12169 lt_cv_dlopen_self_static=no
12170 fi
12171 fi
12172 rm -fr conftest*
12173
12174
12175 fi
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12177 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12178 fi
12179
12180 CPPFLAGS=$save_CPPFLAGS
12181 LDFLAGS=$save_LDFLAGS
12182 LIBS=$save_LIBS
12183 ;;
12184 esac
12185
12186 case $lt_cv_dlopen_self in
12187 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12188 *) enable_dlopen_self=unknown ;;
12189 esac
12190
12191 case $lt_cv_dlopen_self_static in
12192 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12193 *) enable_dlopen_self_static=unknown ;;
12194 esac
12195 fi
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213 striplib=
12214 old_striplib=
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12216 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12217 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12218 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12219 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12221 $as_echo "yes" >&6; }
12222 else
12223 # FIXME - insert some real tests, host_os isn't really good enough
12224 case $host_os in
12225 darwin*)
12226 if test -n "$STRIP"; then
12227 striplib="$STRIP -x"
12228 old_striplib="$STRIP -S"
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12230 $as_echo "yes" >&6; }
12231 else
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12234 fi
12235 ;;
12236 *)
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; }
12239 ;;
12240 esac
12241 fi
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254 # Report what library types will actually be built
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12256 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12258 $as_echo "$can_build_shared" >&6; }
12259
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12261 $as_echo_n "checking whether to build shared libraries... " >&6; }
12262 test no = "$can_build_shared" && enable_shared=no
12263
12264 # On AIX, shared libraries and static libraries use the same namespace, and
12265 # are all built from PIC.
12266 case $host_os in
12267 aix3*)
12268 test yes = "$enable_shared" && enable_static=no
12269 if test -n "$RANLIB"; then
12270 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12271 postinstall_cmds='$RANLIB $lib'
12272 fi
12273 ;;
12274
12275 aix[4-9]*)
12276 if test ia64 != "$host_cpu"; then
12277 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12278 yes,aix,yes) ;; # shared object as lib.so file only
12279 yes,svr4,*) ;; # shared object as lib.so archive member only
12280 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12281 esac
12282 fi
12283 ;;
12284 esac
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12286 $as_echo "$enable_shared" >&6; }
12287
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12289 $as_echo_n "checking whether to build static libraries... " >&6; }
12290 # Make sure either enable_shared or enable_static is yes.
12291 test yes = "$enable_shared" || enable_static=yes
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12293 $as_echo "$enable_static" >&6; }
12294
12295
12296
12297
12298 fi
12299 ac_ext=c
12300 ac_cpp='$CPP $CPPFLAGS'
12301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12304
12305 CC=$lt_save_CC
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321 ac_config_commands="$ac_config_commands libtool"
12322
12323
12324
12325
12326 # Only expand once:
12327
12328
12329 # By default we simply use the C compiler to build assembly code.
12330
12331 test "${CCAS+set}" = set || CCAS=$CC
12332 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
12333
12334
12335
12336 depcc="$CCAS" am_compiler_list=
12337
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12339 $as_echo_n "checking dependency style of $depcc... " >&6; }
12340 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12344 # We make a subdir and do the tests there. Otherwise we can end up
12345 # making bogus files that we don't know about and never remove. For
12346 # instance it was reported that on HP-UX the gcc test will end up
12347 # making a dummy file named 'D' -- because '-MD' means "put the output
12348 # in D".
12349 rm -rf conftest.dir
12350 mkdir conftest.dir
12351 # Copy depcomp to subdir because otherwise we won't find it if we're
12352 # using a relative directory.
12353 cp "$am_depcomp" conftest.dir
12354 cd conftest.dir
12355 # We will build objects and dependencies in a subdirectory because
12356 # it helps to detect inapplicable dependency modes. For instance
12357 # both Tru64's cc and ICC support -MD to output dependencies as a
12358 # side effect of compilation, but ICC will put the dependencies in
12359 # the current directory while Tru64 will put them in the object
12360 # directory.
12361 mkdir sub
12362
12363 am_cv_CCAS_dependencies_compiler_type=none
12364 if test "$am_compiler_list" = ""; then
12365 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12366 fi
12367 am__universal=false
12368
12369
12370 for depmode in $am_compiler_list; do
12371 # Setup a source with many dependencies, because some compilers
12372 # like to wrap large dependency lists on column 80 (with \), and
12373 # we should not choose a depcomp mode which is confused by this.
12374 #
12375 # We need to recreate these files for each test, as the compiler may
12376 # overwrite some of them when testing with obscure command lines.
12377 # This happens at least with the AIX C compiler.
12378 : > sub/conftest.c
12379 for i in 1 2 3 4 5 6; do
12380 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12381 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12382 # Solaris 10 /bin/sh.
12383 echo '/* dummy */' > sub/conftst$i.h
12384 done
12385 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12386
12387 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12388 # mode. It turns out that the SunPro C++ compiler does not properly
12389 # handle '-M -o', and we need to detect this. Also, some Intel
12390 # versions had trouble with output in subdirs.
12391 am__obj=sub/conftest.${OBJEXT-o}
12392 am__minus_obj="-o $am__obj"
12393 case $depmode in
12394 gcc)
12395 # This depmode causes a compiler race in universal mode.
12396 test "$am__universal" = false || continue
12397 ;;
12398 nosideeffect)
12399 # After this tag, mechanisms are not by side-effect, so they'll
12400 # only be used when explicitly requested.
12401 if test "x$enable_dependency_tracking" = xyes; then
12402 continue
12403 else
12404 break
12405 fi
12406 ;;
12407 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12408 # This compiler won't grok '-c -o', but also, the minuso test has
12409 # not run yet. These depmodes are late enough in the game, and
12410 # so weak that their functioning should not be impacted.
12411 am__obj=conftest.${OBJEXT-o}
12412 am__minus_obj=
12413 ;;
12414 none) break ;;
12415 esac
12416 if depmode=$depmode \
12417 source=sub/conftest.c object=$am__obj \
12418 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12419 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12420 >/dev/null 2>conftest.err &&
12421 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12422 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12423 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12424 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12425 # icc doesn't choke on unknown options, it will just issue warnings
12426 # or remarks (even with -Werror). So we grep stderr for any message
12427 # that says an option was ignored or not supported.
12428 # When given -MP, icc 7.0 and 7.1 complain thusly:
12429 # icc: Command line warning: ignoring option '-M'; no argument required
12430 # The diagnosis changed in icc 8.0:
12431 # icc: Command line remark: option '-MP' not supported
12432 if (grep 'ignoring option' conftest.err ||
12433 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12434 am_cv_CCAS_dependencies_compiler_type=$depmode
12435 break
12436 fi
12437 fi
12438 done
12439
12440 cd ..
12441 rm -rf conftest.dir
12442 else
12443 am_cv_CCAS_dependencies_compiler_type=none
12444 fi
12445
12446 fi
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12448 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12449 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
12450
12451 if
12452 test "x$enable_dependency_tracking" != xno \
12453 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
12454 am__fastdepCCAS_TRUE=
12455 am__fastdepCCAS_FALSE='#'
12456 else
12457 am__fastdepCCAS_TRUE='#'
12458 am__fastdepCCAS_FALSE=
12459 fi
12460
12461
12462
12463
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
12465 $as_echo_n "checking zfs author... " >&6; }
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
12467 $as_echo "$ZFS_META_AUTHOR" >&6; }
12468
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
12470 $as_echo_n "checking zfs license... " >&6; }
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
12472 $as_echo "$ZFS_META_LICENSE" >&6; }
12473
12474
12475
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12477 $as_echo_n "checking linux distribution... " >&6; }
12478 if test -f /etc/toss-release ; then
12479 VENDOR=toss ;
12480 elif test -f /etc/fedora-release ; then
12481 VENDOR=fedora ;
12482 elif test -f /etc/redhat-release ; then
12483 VENDOR=redhat ;
12484 elif test -f /etc/gentoo-release ; then
12485 VENDOR=gentoo ;
12486 elif test -f /etc/arch-release ; then
12487 VENDOR=arch ;
12488 elif test -f /etc/SuSE-release ; then
12489 VENDOR=sles ;
12490 elif test -f /etc/slackware-version ; then
12491 VENDOR=slackware ;
12492 elif test -f /etc/lunar.release ; then
12493 VENDOR=lunar ;
12494 elif test -f /etc/lsb-release ; then
12495 VENDOR=ubuntu ;
12496 elif test -f /etc/debian_version ; then
12497 VENDOR=debian ;
12498 else
12499 VENDOR= ;
12500 fi
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12502 $as_echo "$VENDOR" >&6; }
12503
12504
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12506 $as_echo_n "checking default package type... " >&6; }
12507 case "$VENDOR" in
12508 toss) DEFAULT_PACKAGE=rpm ;;
12509 redhat) DEFAULT_PACKAGE=rpm ;;
12510 fedora) DEFAULT_PACKAGE=rpm ;;
12511 gentoo) DEFAULT_PACKAGE=tgz ;;
12512 arch) DEFAULT_PACKAGE=tgz ;;
12513 sles) DEFAULT_PACKAGE=rpm ;;
12514 slackware) DEFAULT_PACKAGE=tgz ;;
12515 lunar) DEFAULT_PACKAGE=tgz ;;
12516 ubuntu) DEFAULT_PACKAGE=deb ;;
12517 debian) DEFAULT_PACKAGE=deb ;;
12518 *) DEFAULT_PACKAGE=rpm ;;
12519 esac
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12521 $as_echo "$DEFAULT_PACKAGE" >&6; }
12522
12523
12524 DEFAULT_INIT_DIR=$sysconfdir/init.d
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
12526 $as_echo_n "checking default init directory... " >&6; }
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
12528 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12529
12530
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
12532 $as_echo_n "checking default init script type... " >&6; }
12533 case "$VENDOR" in
12534 toss) DEFAULT_INIT_SCRIPT=redhat ;;
12535 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
12536 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
12537 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
12538 arch) DEFAULT_INIT_SCRIPT=lsb ;;
12539 sles) DEFAULT_INIT_SCRIPT=lsb ;;
12540 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
12541 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
12542 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
12543 debian) DEFAULT_INIT_SCRIPT=lsb ;;
12544 *) DEFAULT_INIT_SCRIPT=lsb ;;
12545 esac
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
12547 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12548
12549
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
12551 $as_echo_n "checking default init config direectory... " >&6; }
12552 case "$VENDOR" in
12553 gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
12554 toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12555 redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12556 fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12557 sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12558 ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;;
12559 debian) DEFAULT_INITCONF_DIR=/etc/default ;;
12560 *) DEFAULT_INITCONF_DIR=/etc/default ;;
12561 esac
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
12563 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12564
12565
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
12567 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12568 if test -d /usr/share/initramfs-tools ; then
12569 DEFINE_INITRAMFS='--define "_initramfs 1"'
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12571 $as_echo "yes" >&6; }
12572 else
12573 DEFINE_INITRAMFS=''
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12576 fi
12577
12578
12579
12580 RPM=rpm
12581 RPMBUILD=rpmbuild
12582
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12584 $as_echo_n "checking whether $RPM is available... " >&6; }
12585 if tmp=$($RPM --version 2>/dev/null); then :
12586
12587 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12588 HAVE_RPM=yes
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12590 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12591
12592 else
12593
12594 HAVE_RPM=no
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12596 $as_echo "$HAVE_RPM" >&6; }
12597
12598 fi
12599
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12601 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12602 if tmp=$($RPMBUILD --version 2>/dev/null); then :
12603
12604 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12605 HAVE_RPMBUILD=yes
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12607 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12608
12609 else
12610
12611 HAVE_RPMBUILD=no
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12613 $as_echo "$HAVE_RPMBUILD" >&6; }
12614
12615 fi
12616
12617 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
12618 RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
12619 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12620 RPM_DEFINE_DKMS=
12621
12622 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
12623 SRPM_DEFINE_UTIL=
12624 SRPM_DEFINE_KMOD=
12625 SRPM_DEFINE_DKMS=
12626
12627 RPM_SPEC_DIR="rpm/generic"
12628
12629 # Check whether --with-spec was given.
12630 if test "${with_spec+set}" = set; then :
12631 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
12632 fi
12633
12634
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12636 $as_echo_n "checking whether spec files are available... " >&6; }
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12638 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659 DPKG=dpkg
12660 DPKGBUILD=dpkg-buildpackage
12661
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12663 $as_echo_n "checking whether $DPKG is available... " >&6; }
12664 if tmp=$($DPKG --version 2>/dev/null); then :
12665
12666 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
12667 HAVE_DPKG=yes
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12669 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12670
12671 else
12672
12673 HAVE_DPKG=no
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12675 $as_echo "$HAVE_DPKG" >&6; }
12676
12677 fi
12678
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12680 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12681 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
12682
12683 DPKGBUILD_VERSION=$(echo $tmp | \
12684 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12685 HAVE_DPKGBUILD=yes
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12687 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12688
12689 else
12690
12691 HAVE_DPKGBUILD=no
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12693 $as_echo "$HAVE_DPKGBUILD" >&6; }
12694
12695 fi
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706 ALIEN=alien
12707
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12709 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12710 if tmp=$($ALIEN --version 2>/dev/null); then :
12711
12712 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12713 HAVE_ALIEN=yes
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12715 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12716
12717 else
12718
12719 HAVE_ALIEN=no
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12721 $as_echo "$HAVE_ALIEN" >&6; }
12722
12723 fi
12724
12725
12726
12727
12728
12729
12730
12731 TARGET_ASM_DIR=asm-generic
12732
12733
12734 ZFS_CONFIG=all
12735
12736 # Check whether --with-config was given.
12737 if test "${with_config+set}" = set; then :
12738 withval=$with_config; ZFS_CONFIG="$withval"
12739 fi
12740
12741 # Check whether --enable-linux-builtin was given.
12742 if test "${enable_linux_builtin+set}" = set; then :
12743 enableval=$enable_linux_builtin;
12744 else
12745 enable_linux_builtin=no
12746 fi
12747
12748
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12750 $as_echo_n "checking zfs config... " >&6; }
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12752 $as_echo "$ZFS_CONFIG" >&6; };
12753
12754
12755
12756
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12758 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12759
12760 saved_flags="$CFLAGS"
12761 CFLAGS="$CFLAGS -Wunused-but-set-variable"
12762
12763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12764 /* end confdefs.h. */
12765
12766 int
12767 main ()
12768 {
12769
12770 ;
12771 return 0;
12772 }
12773 _ACEOF
12774 if ac_fn_c_try_compile "$LINENO"; then :
12775
12776 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12778 $as_echo "yes" >&6; }
12779
12780 else
12781
12782 NO_UNUSED_BUT_SET_VARIABLE=
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12785
12786 fi
12787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12788
12789 CFLAGS="$saved_flags"
12790
12791
12792
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12794 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12795
12796 saved_flags="$CFLAGS"
12797 CFLAGS="$CFLAGS -Wbool-compare"
12798
12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12801
12802 int
12803 main ()
12804 {
12805
12806 ;
12807 return 0;
12808 }
12809 _ACEOF
12810 if ac_fn_c_try_compile "$LINENO"; then :
12811
12812 NO_BOOL_COMPARE=-Wno-bool-compare
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12814 $as_echo "yes" >&6; }
12815
12816 else
12817
12818 NO_BOOL_COMPARE=
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 $as_echo "no" >&6; }
12821
12822 fi
12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824
12825 CFLAGS="$saved_flags"
12826
12827
12828
12829
12830 case "$ZFS_CONFIG" in
12831 user)
12832
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
12834 $as_echo_n "checking for dkms.conf file... " >&6; }
12835 if test -e dkms.conf; then :
12836
12837 as_fn_error $? "
12838 *** ZFS should not be manually built in the DKMS source tree.
12839 *** Remove all ZFS packages before compiling the ZoL sources.
12840 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
12841
12842 else
12843
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12845 $as_echo "not found" >&6; }
12846
12847 fi
12848
12849
12850
12851 # Check whether --with-mounthelperdir was given.
12852 if test "${with_mounthelperdir+set}" = set; then :
12853 withval=$with_mounthelperdir; mounthelperdir=$withval
12854 else
12855 mounthelperdir=/sbin
12856 fi
12857
12858
12859
12860
12861
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
12863 $as_echo_n "checking for udev directories... " >&6; }
12864
12865 # Check whether --with-udevdir was given.
12866 if test "${with_udevdir+set}" = set; then :
12867 withval=$with_udevdir; udevdir=$withval
12868 else
12869 udevdir=check
12870 fi
12871
12872
12873 if test "x$udevdir" = xcheck; then :
12874
12875 path1=/lib/udev
12876 path2=/usr/lib/udev
12877 default=$path2
12878
12879 if test -d "$path1"; then :
12880 udevdir="$path1"
12881 else
12882
12883 if test -d "$path2"; then :
12884 udevdir="$path2"
12885 else
12886 udevdir="$default"
12887 fi
12888
12889 fi
12890
12891 fi
12892
12893
12894 # Check whether --with-udevruledir was given.
12895 if test "${with_udevruledir+set}" = set; then :
12896 withval=$with_udevruledir; udevruledir=$withval
12897 else
12898 udevruledir="${udevdir}/rules.d"
12899 fi
12900
12901
12902
12903
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
12905 $as_echo "$udevdir;$udevruledir" >&6; }
12906
12907
12908 LIBAIO=
12909
12910 ac_fn_c_check_header_mongrel "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
12911 if test "x$ac_cv_header_libaio_h" = xyes; then :
12912
12913 user_libaio=yes
12914 LIBAIO="-laio"
12915
12916
12917 $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h
12918
12919
12920 else
12921
12922 user_libaio=no
12923
12924 fi
12925
12926
12927
12928
12929 # Check whether --enable-systemd was given.
12930 if test "${enable_systemd+set}" = set; then :
12931 enableval=$enable_systemd;
12932 else
12933 enable_systemd=yes
12934 fi
12935
12936
12937
12938 # Check whether --with-systemdunitdir was given.
12939 if test "${with_systemdunitdir+set}" = set; then :
12940 withval=$with_systemdunitdir; systemdunitdir=$withval
12941 else
12942 systemdunitdir=/usr/lib/systemd/system
12943 fi
12944
12945
12946
12947 # Check whether --with-systemdpresetdir was given.
12948 if test "${with_systemdpresetdir+set}" = set; then :
12949 withval=$with_systemdpresetdir; systemdpresetdir=$withval
12950 else
12951 systemdpresetdir=/usr/lib/systemd/system-preset
12952 fi
12953
12954
12955
12956 # Check whether --with-systemdmodulesloaddir was given.
12957 if test "${with_systemdmodulesloaddir+set}" = set; then :
12958 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
12959 else
12960 systemdmodulesloaddir=/usr/lib/modules-load.d
12961 fi
12962
12963
12964
12965 if test "x$enable_systemd" = xyes; then :
12966
12967 ZFS_INIT_SYSTEMD=systemd
12968 ZFS_MODULE_LOAD=modules-load.d
12969 modulesloaddir=$systemdmodulesloaddir
12970
12971 fi
12972
12973
12974
12975
12976
12977
12978
12979
12980 # Check whether --enable-sysvinit was given.
12981 if test "${enable_sysvinit+set}" = set; then :
12982 enableval=$enable_sysvinit;
12983 else
12984 enable_sysvinit=yes
12985 fi
12986
12987
12988 if test "x$enable_sysvinit" = xyes; then :
12989 ZFS_INIT_SYSV=init.d
12990 fi
12991
12992
12993
12994
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
12996 $as_echo_n "checking for dracut directory... " >&6; }
12997
12998 # Check whether --with-dracutdir was given.
12999 if test "${with_dracutdir+set}" = set; then :
13000 withval=$with_dracutdir; dracutdir=$withval
13001 else
13002 dracutdir=check
13003 fi
13004
13005
13006 if test "x$dracutdir" = xcheck; then :
13007
13008 path1=/usr/share/dracut
13009 path2=/usr/lib/dracut
13010 default=$path2
13011
13012 if test -d "$path1"; then :
13013 dracutdir="$path1"
13014 else
13015
13016 if test -d "$path2"; then :
13017 dracutdir="$path2"
13018 else
13019 dracutdir="$default"
13020 fi
13021
13022 fi
13023
13024 fi
13025
13026
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
13028 $as_echo "$dracutdir" >&6; }
13029
13030
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
13032 $as_echo_n "checking for target asm dir... " >&6; }
13033 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
13034
13035 case $TARGET_ARCH in
13036 i386|x86_64)
13037 TARGET_ASM_DIR=asm-${TARGET_ARCH}
13038 ;;
13039 *)
13040 TARGET_ASM_DIR=asm-generic
13041 ;;
13042 esac
13043
13044
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
13046 $as_echo "$TARGET_ASM_DIR" >&6; }
13047
13048
13049 ZLIB=
13050
13051 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13052 if test "x$ac_cv_header_zlib_h" = xyes; then :
13053
13054 else
13055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13057 as_fn_error $? "
13058 *** zlib.h missing, zlib-devel package required
13059 See \`config.log' for more details" "$LINENO" 5; }
13060 fi
13061
13062
13063
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
13065 $as_echo_n "checking for compress2 in -lz... " >&6; }
13066 if ${ac_cv_lib_z_compress2+:} false; then :
13067 $as_echo_n "(cached) " >&6
13068 else
13069 ac_check_lib_save_LIBS=$LIBS
13070 LIBS="-lz $LIBS"
13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13073
13074 /* Override any GCC internal prototype to avoid an error.
13075 Use char because int might match the return type of a GCC
13076 builtin and then its argument prototype would still apply. */
13077 #ifdef __cplusplus
13078 extern "C"
13079 #endif
13080 char compress2 ();
13081 int
13082 main ()
13083 {
13084 return compress2 ();
13085 ;
13086 return 0;
13087 }
13088 _ACEOF
13089 if ac_fn_c_try_link "$LINENO"; then :
13090 ac_cv_lib_z_compress2=yes
13091 else
13092 ac_cv_lib_z_compress2=no
13093 fi
13094 rm -f core conftest.err conftest.$ac_objext \
13095 conftest$ac_exeext conftest.$ac_ext
13096 LIBS=$ac_check_lib_save_LIBS
13097 fi
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
13099 $as_echo "$ac_cv_lib_z_compress2" >&6; }
13100 if test "x$ac_cv_lib_z_compress2" = xyes; then :
13101 cat >>confdefs.h <<_ACEOF
13102 #define HAVE_LIBZ 1
13103 _ACEOF
13104
13105 LIBS="-lz $LIBS"
13106
13107 else
13108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13110 as_fn_error $? "
13111 *** compress2() missing, zlib-devel package required
13112 See \`config.log' for more details" "$LINENO" 5; }
13113 fi
13114
13115
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
13117 $as_echo_n "checking for uncompress in -lz... " >&6; }
13118 if ${ac_cv_lib_z_uncompress+:} false; then :
13119 $as_echo_n "(cached) " >&6
13120 else
13121 ac_check_lib_save_LIBS=$LIBS
13122 LIBS="-lz $LIBS"
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13125
13126 /* Override any GCC internal prototype to avoid an error.
13127 Use char because int might match the return type of a GCC
13128 builtin and then its argument prototype would still apply. */
13129 #ifdef __cplusplus
13130 extern "C"
13131 #endif
13132 char uncompress ();
13133 int
13134 main ()
13135 {
13136 return uncompress ();
13137 ;
13138 return 0;
13139 }
13140 _ACEOF
13141 if ac_fn_c_try_link "$LINENO"; then :
13142 ac_cv_lib_z_uncompress=yes
13143 else
13144 ac_cv_lib_z_uncompress=no
13145 fi
13146 rm -f core conftest.err conftest.$ac_objext \
13147 conftest$ac_exeext conftest.$ac_ext
13148 LIBS=$ac_check_lib_save_LIBS
13149 fi
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
13151 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
13152 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
13153 cat >>confdefs.h <<_ACEOF
13154 #define HAVE_LIBZ 1
13155 _ACEOF
13156
13157 LIBS="-lz $LIBS"
13158
13159 else
13160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13162 as_fn_error $? "
13163 *** uncompress() missing, zlib-devel package required
13164 See \`config.log' for more details" "$LINENO" 5; }
13165 fi
13166
13167
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
13169 $as_echo_n "checking for crc32 in -lz... " >&6; }
13170 if ${ac_cv_lib_z_crc32+:} false; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 ac_check_lib_save_LIBS=$LIBS
13174 LIBS="-lz $LIBS"
13175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h. */
13177
13178 /* Override any GCC internal prototype to avoid an error.
13179 Use char because int might match the return type of a GCC
13180 builtin and then its argument prototype would still apply. */
13181 #ifdef __cplusplus
13182 extern "C"
13183 #endif
13184 char crc32 ();
13185 int
13186 main ()
13187 {
13188 return crc32 ();
13189 ;
13190 return 0;
13191 }
13192 _ACEOF
13193 if ac_fn_c_try_link "$LINENO"; then :
13194 ac_cv_lib_z_crc32=yes
13195 else
13196 ac_cv_lib_z_crc32=no
13197 fi
13198 rm -f core conftest.err conftest.$ac_objext \
13199 conftest$ac_exeext conftest.$ac_ext
13200 LIBS=$ac_check_lib_save_LIBS
13201 fi
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
13203 $as_echo "$ac_cv_lib_z_crc32" >&6; }
13204 if test "x$ac_cv_lib_z_crc32" = xyes; then :
13205 cat >>confdefs.h <<_ACEOF
13206 #define HAVE_LIBZ 1
13207 _ACEOF
13208
13209 LIBS="-lz $LIBS"
13210
13211 else
13212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13214 as_fn_error $? "
13215 *** crc32() missing, zlib-devel package required
13216 See \`config.log' for more details" "$LINENO" 5; }
13217 fi
13218
13219
13220 ZLIB="-lz"
13221
13222
13223 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13224
13225
13226
13227 LIBUUID=
13228
13229 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13230 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
13231
13232 else
13233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13235 as_fn_error $? "
13236 *** uuid/uuid.h missing, libuuid-devel package required
13237 See \`config.log' for more details" "$LINENO" 5; }
13238 fi
13239
13240
13241
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
13243 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
13244 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
13245 $as_echo_n "(cached) " >&6
13246 else
13247 ac_check_lib_save_LIBS=$LIBS
13248 LIBS="-luuid $LIBS"
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13251
13252 /* Override any GCC internal prototype to avoid an error.
13253 Use char because int might match the return type of a GCC
13254 builtin and then its argument prototype would still apply. */
13255 #ifdef __cplusplus
13256 extern "C"
13257 #endif
13258 char uuid_generate ();
13259 int
13260 main ()
13261 {
13262 return uuid_generate ();
13263 ;
13264 return 0;
13265 }
13266 _ACEOF
13267 if ac_fn_c_try_link "$LINENO"; then :
13268 ac_cv_lib_uuid_uuid_generate=yes
13269 else
13270 ac_cv_lib_uuid_uuid_generate=no
13271 fi
13272 rm -f core conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
13274 LIBS=$ac_check_lib_save_LIBS
13275 fi
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
13277 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
13278 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
13279 cat >>confdefs.h <<_ACEOF
13280 #define HAVE_LIBUUID 1
13281 _ACEOF
13282
13283 LIBS="-luuid $LIBS"
13284
13285 else
13286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13288 as_fn_error $? "
13289 *** uuid_generate() missing, libuuid-devel package required
13290 See \`config.log' for more details" "$LINENO" 5; }
13291 fi
13292
13293
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
13295 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
13296 if ${ac_cv_lib_uuid_uuid_is_null+:} false; then :
13297 $as_echo_n "(cached) " >&6
13298 else
13299 ac_check_lib_save_LIBS=$LIBS
13300 LIBS="-luuid $LIBS"
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303
13304 /* Override any GCC internal prototype to avoid an error.
13305 Use char because int might match the return type of a GCC
13306 builtin and then its argument prototype would still apply. */
13307 #ifdef __cplusplus
13308 extern "C"
13309 #endif
13310 char uuid_is_null ();
13311 int
13312 main ()
13313 {
13314 return uuid_is_null ();
13315 ;
13316 return 0;
13317 }
13318 _ACEOF
13319 if ac_fn_c_try_link "$LINENO"; then :
13320 ac_cv_lib_uuid_uuid_is_null=yes
13321 else
13322 ac_cv_lib_uuid_uuid_is_null=no
13323 fi
13324 rm -f core conftest.err conftest.$ac_objext \
13325 conftest$ac_exeext conftest.$ac_ext
13326 LIBS=$ac_check_lib_save_LIBS
13327 fi
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
13329 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
13330 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then :
13331 cat >>confdefs.h <<_ACEOF
13332 #define HAVE_LIBUUID 1
13333 _ACEOF
13334
13335 LIBS="-luuid $LIBS"
13336
13337 else
13338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13340 as_fn_error $? "
13341 *** uuid_is_null() missing, libuuid-devel package required
13342 See \`config.log' for more details" "$LINENO" 5; }
13343 fi
13344
13345
13346 LIBUUID="-luuid"
13347
13348
13349 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
13350
13351
13352
13353
13354 # Check whether --with-blkid was given.
13355 if test "${with_blkid+set}" = set; then :
13356 withval=$with_blkid;
13357 else
13358 with_blkid=check
13359 fi
13360
13361
13362 LIBBLKID=
13363 if test "x$with_blkid" = xyes; then :
13364
13365 LIBBLKID="-lblkid"
13366
13367
13368 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
13369
13370
13371 fi
13372
13373 if test "x$with_blkid" = xcheck; then :
13374
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
13376 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
13377 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 ac_check_lib_save_LIBS=$LIBS
13381 LIBS="-lblkid $LIBS"
13382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h. */
13384
13385 /* Override any GCC internal prototype to avoid an error.
13386 Use char because int might match the return type of a GCC
13387 builtin and then its argument prototype would still apply. */
13388 #ifdef __cplusplus
13389 extern "C"
13390 #endif
13391 char blkid_get_cache ();
13392 int
13393 main ()
13394 {
13395 return blkid_get_cache ();
13396 ;
13397 return 0;
13398 }
13399 _ACEOF
13400 if ac_fn_c_try_link "$LINENO"; then :
13401 ac_cv_lib_blkid_blkid_get_cache=yes
13402 else
13403 ac_cv_lib_blkid_blkid_get_cache=no
13404 fi
13405 rm -f core conftest.err conftest.$ac_objext \
13406 conftest$ac_exeext conftest.$ac_ext
13407 LIBS=$ac_check_lib_save_LIBS
13408 fi
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
13410 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
13411 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
13412
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
13414 $as_echo_n "checking for blkid zfs support... " >&6; }
13415
13416 ZFS_DEV=`mktemp`
13417 truncate -s 64M $ZFS_DEV
13418 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13419 dd of=$ZFS_DEV bs=1k count=8 \
13420 seek=128 conv=notrunc &>/dev/null \
13421 >/dev/null 2>/dev/null
13422 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13423 dd of=$ZFS_DEV bs=1k count=8 \
13424 seek=132 conv=notrunc &>/dev/null \
13425 >/dev/null 2>/dev/null
13426 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13427 dd of=$ZFS_DEV bs=1k count=8 \
13428 seek=136 conv=notrunc &>/dev/null \
13429 >/dev/null 2>/dev/null
13430 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13431 dd of=$ZFS_DEV bs=1k count=8 \
13432 seek=140 conv=notrunc &>/dev/null \
13433 >/dev/null 2>/dev/null
13434
13435 saved_LIBS="$LIBS"
13436 LIBS="-lblkid"
13437
13438 if test "$cross_compiling" = yes; then :
13439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13441 as_fn_error $? "cannot run test program while cross compiling
13442 See \`config.log' for more details" "$LINENO" 5; }
13443 else
13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13446
13447 #include <stdio.h>
13448 #include <stdlib.h>
13449 #include <blkid/blkid.h>
13450
13451 int
13452 main ()
13453 {
13454
13455 blkid_cache cache;
13456 char *value;
13457
13458 if (blkid_get_cache(&cache, NULL) < 0)
13459 return 1;
13460
13461 value = blkid_get_tag_value(cache, "TYPE",
13462 "$ZFS_DEV");
13463 if (!value) {
13464 blkid_put_cache(cache);
13465 return 2;
13466 }
13467
13468 if (strcmp(value, "zfs_member")) {
13469 free(value);
13470 blkid_put_cache(cache);
13471 return 0;
13472 }
13473
13474 free(value);
13475 blkid_put_cache(cache);
13476
13477 ;
13478 return 0;
13479 }
13480 _ACEOF
13481 if ac_fn_c_try_run "$LINENO"; then :
13482
13483 rm -f $ZFS_DEV
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13485 $as_echo "yes" >&6; }
13486 LIBBLKID="-lblkid"
13487
13488
13489 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
13490
13491
13492 else
13493
13494 rm -f $ZFS_DEV
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496 $as_echo "no" >&6; }
13497 if test "x$with_blkid" != xcheck; then :
13498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13500 as_fn_error $? "--with-blkid given but unavailable
13501 See \`config.log' for more details" "$LINENO" 5; }
13502 fi
13503
13504 fi
13505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13506 conftest.$ac_objext conftest.beam conftest.$ac_ext
13507 fi
13508
13509
13510 LIBS="$saved_LIBS"
13511
13512 else
13513
13514 if test "x$with_blkid" != xcheck; then :
13515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13517 as_fn_error $? "--with-blkid given but unavailable
13518 See \`config.log' for more details" "$LINENO" 5; }
13519 fi
13520
13521
13522 fi
13523
13524
13525 fi
13526
13527
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
13529 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
13530
13531 saved_flags="$CFLAGS"
13532 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
13533
13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535 /* end confdefs.h. */
13536
13537 int
13538 main ()
13539 {
13540
13541 ;
13542 return 0;
13543 }
13544 _ACEOF
13545 if ac_fn_c_try_compile "$LINENO"; then :
13546
13547 FRAME_LARGER_THAN=-Wframe-larger-than=1024
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13549 $as_echo "yes" >&6; }
13550
13551 else
13552
13553 FRAME_LARGER_THAN=
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555 $as_echo "no" >&6; }
13556
13557 fi
13558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13559
13560 CFLAGS="$saved_flags"
13561
13562
13563
13564 if test "x$runstatedir" = x; then
13565 runstatedir='${localstatedir}/run'
13566
13567 fi
13568
13569 for ac_func in mlockall
13570 do :
13571 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
13572 if test "x$ac_cv_func_mlockall" = xyes; then :
13573 cat >>confdefs.h <<_ACEOF
13574 #define HAVE_MLOCKALL 1
13575 _ACEOF
13576
13577 fi
13578 done
13579
13580 ;;
13581 kernel)
13582
13583
13584 # Check whether --with-linux was given.
13585 if test "${with_linux+set}" = set; then :
13586 withval=$with_linux; kernelsrc="$withval"
13587 fi
13588
13589
13590
13591 # Check whether --with-linux-obj was given.
13592 if test "${with_linux_obj+set}" = set; then :
13593 withval=$with_linux_obj; kernelbuild="$withval"
13594 fi
13595
13596
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
13598 $as_echo_n "checking kernel source directory... " >&6; }
13599 if test -z "$kernelsrc"; then :
13600
13601 if test -e "/lib/modules/$(uname -r)/source"; then :
13602
13603 headersdir="/lib/modules/$(uname -r)/source"
13604 sourcelink=$(readlink -f "$headersdir")
13605
13606 elif test -e "/lib/modules/$(uname -r)/build"; then :
13607
13608 headersdir="/lib/modules/$(uname -r)/build"
13609 sourcelink=$(readlink -f "$headersdir")
13610
13611 else
13612
13613 sourcelink=$(ls -1d /usr/src/kernels/* \
13614 /usr/src/linux-* \
13615 2>/dev/null | grep -v obj | tail -1)
13616
13617 fi
13618
13619 if test -n "$sourcelink" && test -e ${sourcelink}; then :
13620
13621 kernelsrc=`readlink -f ${sourcelink}`
13622
13623 else
13624
13625 kernelsrc="Not found"
13626
13627 fi
13628
13629 else
13630
13631 if test "$kernelsrc" = "NONE"; then :
13632
13633 kernsrcver=NONE
13634
13635 fi
13636
13637 fi
13638
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
13640 $as_echo "$kernelsrc" >&6; }
13641 if test ! -d "$kernelsrc"; then :
13642
13643 as_fn_error $? "
13644 *** Please make sure the kernel devel package for your distribution
13645 *** is installed and then try again. If that fails, you can specify the
13646 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
13647
13648 fi
13649
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
13651 $as_echo_n "checking kernel build directory... " >&6; }
13652 if test -z "$kernelbuild"; then :
13653
13654 if test -e "/lib/modules/$(uname -r)/build"; then :
13655
13656 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
13657
13658 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
13659
13660 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13661
13662 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
13663
13664 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
13665
13666 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
13667
13668 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
13669
13670 else
13671
13672 kernelbuild=${kernelsrc}
13673
13674 fi
13675
13676 fi
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
13678 $as_echo "$kernelbuild" >&6; }
13679
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
13681 $as_echo_n "checking kernel source version... " >&6; }
13682 utsrelease1=$kernelbuild/include/linux/version.h
13683 utsrelease2=$kernelbuild/include/linux/utsrelease.h
13684 utsrelease3=$kernelbuild/include/generated/utsrelease.h
13685 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
13686
13687 utsrelease=linux/version.h
13688
13689 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
13690
13691 utsrelease=linux/utsrelease.h
13692
13693 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
13694
13695 utsrelease=generated/utsrelease.h
13696
13697 fi
13698
13699 if test "$utsrelease"; then :
13700
13701 kernsrcver=`(echo "#include <$utsrelease>";
13702 echo "kernsrcver=UTS_RELEASE") |
13703 cpp -I $kernelbuild/include |
13704 grep "^kernsrcver=" | cut -d \" -f 2`
13705
13706 if test -z "$kernsrcver"; then :
13707
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13709 $as_echo "Not found" >&6; }
13710 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
13711
13712 fi
13713
13714 else
13715
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13717 $as_echo "Not found" >&6; }
13718 if test "x$enable_linux_builtin" != xyes; then
13719 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
13720 else
13721 as_fn_error $? "
13722 *** Cannot find UTS_RELEASE definition.
13723 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
13724 fi
13725
13726 fi
13727
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
13729 $as_echo "$kernsrcver" >&6; }
13730
13731 LINUX=${kernelsrc}
13732 LINUX_OBJ=${kernelbuild}
13733 LINUX_VERSION=${kernsrcver}
13734
13735
13736
13737
13738
13739
13740 modpost=$LINUX/scripts/Makefile.modpost
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
13742 $as_echo_n "checking kernel file name for module symbols... " >&6; }
13743 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
13744
13745 if grep -q Modules.symvers $modpost; then :
13746
13747 LINUX_SYMBOLS=Modules.symvers
13748
13749 else
13750
13751 LINUX_SYMBOLS=Module.symvers
13752
13753 fi
13754
13755 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
13756
13757 as_fn_error $? "
13758 *** Please make sure the kernel devel package for your distribution
13759 *** is installed. If you are building with a custom kernel, make sure the
13760 *** kernel is configured, built, and the '--with-linux=PATH' configure
13761 *** option refers to the location of the kernel source." "$LINENO" 5
13762
13763 fi
13764
13765 else
13766
13767 LINUX_SYMBOLS=NONE
13768
13769 fi
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
13771 $as_echo "$LINUX_SYMBOLS" >&6; }
13772
13773
13774
13775
13776
13777 # Check whether --with-spl was given.
13778 if test "${with_spl+set}" = set; then :
13779 withval=$with_spl; splsrc="$withval"
13780 fi
13781
13782
13783
13784 # Check whether --with-spl-obj was given.
13785 if test "${with_spl_obj+set}" = set; then :
13786 withval=$with_spl_obj; splbuild="$withval"
13787 fi
13788
13789
13790
13791 # Check whether --with-spl-timeout was given.
13792 if test "${with_spl_timeout+set}" = set; then :
13793 withval=$with_spl_timeout; timeout="$withval"
13794 else
13795 timeout=0
13796 fi
13797
13798
13799 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
13800 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13801 splsrc2="/usr/local/src/spl-${VERSION}"
13802 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13803 splsrc4="/usr/src/spl-${VERSION}"
13804 splsrc5="../spl/"
13805 splsrc6="$LINUX"
13806
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
13808 $as_echo_n "checking spl source directory... " >&6; }
13809 if test -z "${splsrc}"; then :
13810
13811 if test -e "${splsrc0}/spl.release.in"; then :
13812
13813 splsrc=${splsrc0}
13814
13815 elif test -e "${splsrc1}/spl.release.in"; then :
13816
13817 splsrc=${splsrc1}
13818
13819 elif test -e "${splsrc2}/spl.release.in"; then :
13820
13821 splsrc=${splsrc2}
13822
13823 elif test -e "${splsrc3}/spl.release.in"; then :
13824
13825 splsrc=$(readlink -f "${splsrc3}")
13826
13827 elif test -e "${splsrc4}/spl.release.in" ; then :
13828
13829 splsrc=${splsrc4}
13830
13831 elif test -e "${splsrc5}/spl.release.in"; then :
13832
13833 splsrc=$(readlink -f "${splsrc5}")
13834
13835 elif test -e "${splsrc6}/spl.release.in" ; then :
13836
13837 splsrc=${splsrc6}
13838
13839 else
13840
13841 splsrc="Not found"
13842
13843 fi
13844
13845 else
13846
13847 if test "$splsrc" = "NONE"; then :
13848
13849 splbuild=NONE
13850 splsrcver=NONE
13851
13852 fi
13853
13854 fi
13855
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
13857 $as_echo "$splsrc" >&6; }
13858 if test ! -e "$splsrc/spl.release.in"; then :
13859
13860 as_fn_error $? "
13861 *** Please make sure the kmod spl devel package for your distribution
13862 *** is installed then try again. If that fails you can specify the
13863 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
13864
13865 fi
13866
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
13868 $as_echo_n "checking spl build directory... " >&6; }
13869 while true; do
13870 if test -z "$splbuild"; then :
13871
13872 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
13873
13874 splbuild="${splsrc}/${LINUX_VERSION}"
13875
13876 elif test -e "${splsrc}/spl_config.h" ; then :
13877
13878 splbuild="${splsrc}"
13879
13880 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
13881
13882 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
13883
13884 else
13885
13886 splbuild="Not found"
13887
13888 fi
13889
13890 fi
13891 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
13892
13893 break;
13894
13895 else
13896
13897 sleep 1
13898 timeout=$((timeout-1))
13899
13900 fi
13901 done
13902
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
13904 $as_echo "$splbuild" >&6; }
13905 if ! test -e "$splbuild/spl_config.h"; then :
13906
13907 as_fn_error $? "
13908 *** Please make sure the kmod spl devel <kernel> package for your
13909 *** distribution is installed then try again. If that fails you
13910 *** can specify the location of the spl objects with the
13911 *** '--with-spl-obj=PATH' option." "$LINENO" 5
13912
13913 fi
13914
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
13916 $as_echo_n "checking spl source version... " >&6; }
13917 if test -r $splbuild/spl_config.h &&
13918 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
13919
13920
13921 splsrcver=`(echo "#include <spl_config.h>";
13922 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
13923 cpp -I $splbuild |
13924 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
13925
13926 fi
13927
13928 if test -z "$splsrcver"; then :
13929
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13931 $as_echo "Not found" >&6; }
13932 as_fn_error $? "
13933 *** Cannot determine the version of the spl source.
13934 *** Please prepare the spl source before running this script" "$LINENO" 5
13935
13936 fi
13937
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
13939 $as_echo "$splsrcver" >&6; }
13940
13941 SPL=${splsrc}
13942 SPL_OBJ=${splbuild}
13943 SPL_VERSION=${splsrcver}
13944
13945
13946
13947
13948
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
13950 $as_echo_n "checking spl file name for module symbols... " >&6; }
13951 SPL_SYMBOLS=NONE
13952
13953 while true; do
13954 if test -r $SPL_OBJ/Module.symvers; then :
13955
13956 SPL_SYMBOLS=Module.symvers
13957
13958 elif test -r $SPL_OBJ/Modules.symvers; then :
13959
13960 SPL_SYMBOLS=Modules.symvers
13961
13962 elif test -r $SPL_OBJ/module/Module.symvers; then :
13963
13964 SPL_SYMBOLS=Module.symvers
13965
13966 elif test -r $SPL_OBJ/module/Modules.symvers; then :
13967
13968 SPL_SYMBOLS=Modules.symvers
13969
13970 fi
13971
13972 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
13973
13974 break;
13975
13976 else
13977
13978 sleep 1
13979 timeout=$((timeout-1))
13980
13981 fi
13982 done
13983
13984 if test "$SPL_SYMBOLS" = NONE; then :
13985
13986 SPL_SYMBOLS=$LINUX_SYMBOLS
13987
13988 fi
13989
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
13991 $as_echo "$SPL_SYMBOLS" >&6; }
13992
13993
13994
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
13996 $as_echo_n "checking whether modules can be built... " >&6; }
13997
13998
13999 cat confdefs.h - <<_ACEOF >conftest.c
14000
14001
14002 int
14003 main (void)
14004 {
14005
14006 ;
14007 return 0;
14008 }
14009
14010 _ACEOF
14011
14012
14013
14014 cat - <<_ACEOF >conftest.h
14015
14016 _ACEOF
14017
14018
14019 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14020 echo "obj-m := conftest.o" >build/Makefile
14021 modpost_flag=''
14022 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14023 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14025 (eval $ac_try) 2>&5
14026 ac_status=$?
14027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14028 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14030 (eval $ac_try) 2>&5
14031 ac_status=$?
14032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14033 test $ac_status = 0; }; }; then :
14034
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14036 $as_echo "yes" >&6; }
14037
14038 else
14039 $as_echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14041
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14044 if test "x$enable_linux_builtin" != xyes; then
14045 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
14046 else
14047 as_fn_error $? "
14048 *** Unable to build an empty module.
14049 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
14050 fi
14051
14052
14053
14054 fi
14055 rm -Rf build
14056
14057
14058
14059
14060 if test "x$cross_compiling" != xyes; then :
14061
14062 if test "$cross_compiling" = yes; then :
14063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14065 as_fn_error $? "cannot run test program while cross compiling
14066 See \`config.log' for more details" "$LINENO" 5; }
14067 else
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070
14071
14072 #include "$LINUX/include/linux/license.h"
14073
14074 int
14075 main ()
14076 {
14077
14078 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14079
14080 ;
14081 return 0;
14082 }
14083
14084 _ACEOF
14085 if ac_fn_c_try_run "$LINENO"; then :
14086
14087
14088 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
14089
14090
14091 fi
14092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14093 conftest.$ac_objext conftest.beam conftest.$ac_ext
14094 fi
14095
14096
14097 fi
14098
14099
14100
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14102 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14103
14104
14105 cat confdefs.h - <<_ACEOF >conftest.c
14106
14107
14108 #include <linux/module.h>
14109
14110 int
14111 main (void)
14112 {
14113
14114 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14115 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14116 #endif
14117
14118 ;
14119 return 0;
14120 }
14121
14122 _ACEOF
14123
14124
14125
14126 cat - <<_ACEOF >conftest.h
14127
14128 _ACEOF
14129
14130
14131 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14132 echo "obj-m := conftest.o" >build/Makefile
14133 modpost_flag=''
14134 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14135 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14137 (eval $ac_try) 2>&5
14138 ac_status=$?
14139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14140 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14142 (eval $ac_try) 2>&5
14143 ac_status=$?
14144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14145 test $ac_status = 0; }; }; then :
14146
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14148 $as_echo "yes" >&6; }
14149
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
14151 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14152 tmp_flags="$EXTRA_KCFLAGS"
14153
14154
14155 cat confdefs.h - <<_ACEOF >conftest.c
14156
14157
14158 #include <linux/module.h>
14159 #include <linux/mutex.h>
14160
14161 MODULE_LICENSE("$ZFS_META_LICENSE");
14162
14163 int
14164 main (void)
14165 {
14166
14167 struct mutex lock;
14168
14169 mutex_init(&lock);
14170 mutex_lock(&lock);
14171 mutex_unlock(&lock);
14172
14173 ;
14174 return 0;
14175 }
14176
14177 _ACEOF
14178
14179
14180
14181 cat - <<_ACEOF >conftest.h
14182
14183 _ACEOF
14184
14185
14186 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14187 echo "obj-m := conftest.o" >build/Makefile
14188 modpost_flag=''
14189 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14190 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14195 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14197 (eval $ac_try) 2>&5
14198 ac_status=$?
14199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14200 test $ac_status = 0; }; }; then :
14201
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203 $as_echo "no" >&6; }
14204
14205 else
14206 $as_echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14208
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14210 $as_echo "yes" >&6; }
14211 as_fn_error $? "
14212 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14213 *** with the CDDL license and will prevent the module linking stage
14214 *** from succeeding. You must rebuild your kernel without this
14215 *** option enabled." "$LINENO" 5
14216
14217
14218
14219 fi
14220 rm -Rf build
14221
14222
14223 EXTRA_KCFLAGS="$tmp_flags"
14224
14225
14226 else
14227 $as_echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14229
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14231 $as_echo "no" >&6; }
14232
14233
14234
14235
14236 fi
14237 rm -Rf build
14238
14239
14240
14241
14242
14243
14244 tmp_flags="$EXTRA_KCFLAGS"
14245 EXTRA_KCFLAGS="-I\$(src)"
14246
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
14248 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14249
14250
14251 cat confdefs.h - <<_ACEOF >conftest.c
14252
14253
14254 #include <linux/module.h>
14255 MODULE_LICENSE(ZFS_META_LICENSE);
14256
14257 #define CREATE_TRACE_POINTS
14258 #include "conftest.h"
14259
14260 int
14261 main (void)
14262 {
14263
14264 trace_zfs_autoconf_event_one(1UL);
14265 trace_zfs_autoconf_event_two(2UL);
14266
14267 ;
14268 return 0;
14269 }
14270
14271 _ACEOF
14272
14273
14274
14275 cat - <<_ACEOF >conftest.h
14276
14277 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14278 #define _CONFTEST_H
14279
14280 #undef TRACE_SYSTEM
14281 #define TRACE_SYSTEM zfs
14282 #include <linux/tracepoint.h>
14283
14284 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14285 TP_PROTO(unsigned long i),
14286 TP_ARGS(i),
14287 TP_STRUCT__entry(
14288 __field(unsigned long, i)
14289 ),
14290 TP_fast_assign(
14291 __entry->i = i;
14292 ),
14293 TP_printk("i = %lu", __entry->i)
14294 );
14295
14296 #define DEFINE_AUTOCONF_EVENT(name) \
14297 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14298 TP_PROTO(unsigned long i), \
14299 TP_ARGS(i))
14300 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14301 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14302
14303 #endif /* _CONFTEST_H */
14304
14305 #undef TRACE_INCLUDE_PATH
14306 #define TRACE_INCLUDE_PATH .
14307 #define TRACE_INCLUDE_FILE conftest
14308 #include <trace/define_trace.h>
14309
14310 _ACEOF
14311
14312
14313 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14314 echo "obj-m := conftest.o" >build/Makefile
14315 modpost_flag=''
14316 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14317 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14322 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14324 (eval $ac_try) 2>&5
14325 ac_status=$?
14326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14327 test $ac_status = 0; }; }; then :
14328
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14330 $as_echo "yes" >&6; }
14331
14332 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
14333
14334
14335 else
14336 $as_echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340 $as_echo "no" >&6; }
14341
14342
14343
14344 fi
14345 rm -Rf build
14346
14347
14348 EXTRA_KCFLAGS="$tmp_flags"
14349
14350
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
14352 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14353
14354
14355 cat confdefs.h - <<_ACEOF >conftest.c
14356
14357
14358 #include <linux/sched.h>
14359
14360 int
14361 main (void)
14362 {
14363
14364 current->bio_tail = (struct bio **) NULL;
14365
14366 ;
14367 return 0;
14368 }
14369
14370 _ACEOF
14371
14372
14373
14374 cat - <<_ACEOF >conftest.h
14375
14376 _ACEOF
14377
14378
14379 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14380 echo "obj-m := conftest.o" >build/Makefile
14381 modpost_flag=''
14382 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14383 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14385 (eval $ac_try) 2>&5
14386 ac_status=$?
14387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14388 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14390 (eval $ac_try) 2>&5
14391 ac_status=$?
14392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14393 test $ac_status = 0; }; }; then :
14394
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14396 $as_echo "yes" >&6; }
14397
14398 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
14399
14400
14401 else
14402 $as_echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14404
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14406 $as_echo "no" >&6; }
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
14408 $as_echo_n "checking whether current->bio_list exists... " >&6; }
14409
14410
14411 cat confdefs.h - <<_ACEOF >conftest.c
14412
14413
14414 #include <linux/sched.h>
14415
14416 int
14417 main (void)
14418 {
14419
14420 current->bio_list = (struct bio_list *) NULL;
14421
14422 ;
14423 return 0;
14424 }
14425
14426 _ACEOF
14427
14428
14429
14430 cat - <<_ACEOF >conftest.h
14431
14432 _ACEOF
14433
14434
14435 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14436 echo "obj-m := conftest.o" >build/Makefile
14437 modpost_flag=''
14438 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14439 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14444 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14446 (eval $ac_try) 2>&5
14447 ac_status=$?
14448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14449 test $ac_status = 0; }; }; then :
14450
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14452 $as_echo "yes" >&6; }
14453
14454 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
14455
14456
14457 else
14458 $as_echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14460
14461 as_fn_error $? "no - Please file a bug report at
14462 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
14463
14464
14465
14466 fi
14467 rm -Rf build
14468
14469
14470
14471
14472
14473 fi
14474 rm -Rf build
14475
14476
14477
14478
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
14480 $as_echo_n "checking block device operation prototypes... " >&6; }
14481 tmp_flags="$EXTRA_KCFLAGS"
14482 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14483
14484
14485 cat confdefs.h - <<_ACEOF >conftest.c
14486
14487
14488 #include <linux/blkdev.h>
14489
14490 int blk_open(struct block_device *bdev, fmode_t mode)
14491 { return 0; }
14492 int blk_ioctl(struct block_device *bdev, fmode_t mode,
14493 unsigned x, unsigned long y) { return 0; }
14494 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
14495 unsigned x, unsigned long y) { return 0; }
14496
14497 static const struct block_device_operations
14498 bops __attribute__ ((unused)) = {
14499 .open = blk_open,
14500 .release = NULL,
14501 .ioctl = blk_ioctl,
14502 .compat_ioctl = blk_compat_ioctl,
14503 };
14504
14505 int
14506 main (void)
14507 {
14508
14509
14510 ;
14511 return 0;
14512 }
14513
14514 _ACEOF
14515
14516
14517
14518 cat - <<_ACEOF >conftest.h
14519
14520 _ACEOF
14521
14522
14523 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14524 echo "obj-m := conftest.o" >build/Makefile
14525 modpost_flag=''
14526 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14527 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14529 (eval $ac_try) 2>&5
14530 ac_status=$?
14531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14532 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14534 (eval $ac_try) 2>&5
14535 ac_status=$?
14536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14537 test $ac_status = 0; }; }; then :
14538
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
14540 $as_echo "struct block_device" >&6; }
14541
14542 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
14543
14544
14545 else
14546 $as_echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
14550 $as_echo "struct inode" >&6; }
14551
14552
14553
14554 fi
14555 rm -Rf build
14556
14557
14558 EXTRA_KCFLAGS="$tmp_flags"
14559
14560
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
14562 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
14563 tmp_flags="$EXTRA_KCFLAGS"
14564 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14565
14566
14567 cat confdefs.h - <<_ACEOF >conftest.c
14568
14569
14570 #include <linux/blkdev.h>
14571
14572 void blk_release(struct gendisk *g, fmode_t mode) { return; }
14573
14574 static const struct block_device_operations
14575 bops __attribute__ ((unused)) = {
14576 .open = NULL,
14577 .release = blk_release,
14578 .ioctl = NULL,
14579 .compat_ioctl = NULL,
14580 };
14581
14582 int
14583 main (void)
14584 {
14585
14586
14587 ;
14588 return 0;
14589 }
14590
14591 _ACEOF
14592
14593
14594
14595 cat - <<_ACEOF >conftest.h
14596
14597 _ACEOF
14598
14599
14600 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14601 echo "obj-m := conftest.o" >build/Makefile
14602 modpost_flag=''
14603 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14604 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14609 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14611 (eval $ac_try) 2>&5
14612 ac_status=$?
14613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14614 test $ac_status = 0; }; }; then :
14615
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
14617 $as_echo "void" >&6; }
14618
14619 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
14620
14621
14622 else
14623 $as_echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14625
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
14627 $as_echo "int" >&6; }
14628
14629
14630
14631 fi
14632 rm -Rf build
14633
14634
14635 EXTRA_KCFLAGS="$tmp_flags"
14636
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
14638 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
14639
14640
14641 cat confdefs.h - <<_ACEOF >conftest.c
14642
14643
14644 #include <linux/types.h>
14645
14646 int
14647 main (void)
14648 {
14649
14650 fmode_t *ptr __attribute__ ((unused));
14651
14652 ;
14653 return 0;
14654 }
14655
14656 _ACEOF
14657
14658
14659
14660 cat - <<_ACEOF >conftest.h
14661
14662 _ACEOF
14663
14664
14665 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14666 echo "obj-m := conftest.o" >build/Makefile
14667 modpost_flag=''
14668 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14669 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14671 (eval $ac_try) 2>&5
14672 ac_status=$?
14673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14674 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14676 (eval $ac_try) 2>&5
14677 ac_status=$?
14678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14679 test $ac_status = 0; }; }; then :
14680
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14682 $as_echo "yes" >&6; }
14683
14684 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
14685
14686
14687 else
14688 $as_echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14690
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692 $as_echo "no" >&6; }
14693
14694
14695
14696 fi
14697 rm -Rf build
14698
14699
14700
14701
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
14703 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
14704
14705
14706 cat confdefs.h - <<_ACEOF >conftest.c
14707
14708
14709 #include <linux/kobject.h>
14710
14711 int
14712 main (void)
14713 {
14714
14715 int val __attribute__ ((unused));
14716 val = KOBJ_NAME_LEN;
14717
14718 ;
14719 return 0;
14720 }
14721
14722 _ACEOF
14723
14724
14725
14726 cat - <<_ACEOF >conftest.h
14727
14728 _ACEOF
14729
14730
14731 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14732 echo "obj-m := conftest.o" >build/Makefile
14733 modpost_flag=''
14734 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14735 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14737 (eval $ac_try) 2>&5
14738 ac_status=$?
14739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14740 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14742 (eval $ac_try) 2>&5
14743 ac_status=$?
14744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14745 test $ac_status = 0; }; }; then :
14746
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14748 $as_echo "yes" >&6; }
14749
14750 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
14751
14752
14753 else
14754 $as_echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 $as_echo "no" >&6; }
14759
14760
14761
14762 fi
14763 rm -Rf build
14764
14765
14766
14767
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
14769 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
14770
14771
14772 cat confdefs.h - <<_ACEOF >conftest.c
14773
14774
14775 #include <linux/fs.h>
14776
14777 int
14778 main (void)
14779 {
14780
14781 struct block_device *bdev = NULL;
14782 (void) blkdev_get(bdev, 0, NULL);
14783
14784 ;
14785 return 0;
14786 }
14787
14788 _ACEOF
14789
14790
14791
14792 cat - <<_ACEOF >conftest.h
14793
14794 _ACEOF
14795
14796
14797 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14798 echo "obj-m := conftest.o" >build/Makefile
14799 modpost_flag=''
14800 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14801 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14806 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14808 (eval $ac_try) 2>&5
14809 ac_status=$?
14810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14811 test $ac_status = 0; }; }; then :
14812
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14814 $as_echo "yes" >&6; }
14815
14816 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
14817
14818
14819 else
14820 $as_echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14822
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14824 $as_echo "no" >&6; }
14825
14826
14827
14828 fi
14829 rm -Rf build
14830
14831
14832
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
14834 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
14835
14836
14837
14838 cat confdefs.h - <<_ACEOF >conftest.c
14839
14840
14841 #include <linux/fs.h>
14842
14843 int
14844 main (void)
14845 {
14846
14847 blkdev_get_by_path(NULL, 0, NULL);
14848
14849 ;
14850 return 0;
14851 }
14852
14853 _ACEOF
14854
14855
14856
14857 cat - <<_ACEOF >conftest.h
14858
14859 _ACEOF
14860
14861
14862 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14863 echo "obj-m := conftest.o" >build/Makefile
14864 modpost_flag=''
14865 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14866 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14871 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
14875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14876 test $ac_status = 0; }; }; then :
14877 rc=0
14878 else
14879 $as_echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14881 rc=1
14882
14883
14884 fi
14885 rm -Rf build
14886
14887
14888 if test $rc -ne 0; then :
14889
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14891 $as_echo "no" >&6; }
14892
14893 else
14894 if test "x$enable_linux_builtin" != xyes; then
14895
14896 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
14897 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14898 rc=$?
14899 if test $rc -ne 0; then
14900 export=0
14901 for file in fs/block_dev.c; do
14902 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
14903 "$LINUX/$file" 2>/dev/null
14904 rc=$?
14905 if test $rc -eq 0; then
14906 export=1
14907 break;
14908 fi
14909 done
14910 if test $export -eq 0; then :
14911 rc=1
14912 else :
14913 rc=0
14914 fi
14915 else :
14916 rc=0
14917 fi
14918
14919 fi
14920 if test $rc -ne 0; then :
14921
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14923 $as_echo "no" >&6; }
14924
14925 else :
14926
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14928 $as_echo "yes" >&6; }
14929
14930 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
14931
14932
14933 fi
14934 fi
14935
14936
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
14938 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
14939
14940
14941
14942 cat confdefs.h - <<_ACEOF >conftest.c
14943
14944
14945 #include <linux/fs.h>
14946
14947 int
14948 main (void)
14949 {
14950
14951 open_bdev_exclusive(NULL, 0, NULL);
14952
14953 ;
14954 return 0;
14955 }
14956
14957 _ACEOF
14958
14959
14960
14961 cat - <<_ACEOF >conftest.h
14962
14963 _ACEOF
14964
14965
14966 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14967 echo "obj-m := conftest.o" >build/Makefile
14968 modpost_flag=''
14969 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14970 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14975 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14977 (eval $ac_try) 2>&5
14978 ac_status=$?
14979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14980 test $ac_status = 0; }; }; then :
14981 rc=0
14982 else
14983 $as_echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14985 rc=1
14986
14987
14988 fi
14989 rm -Rf build
14990
14991
14992 if test $rc -ne 0; then :
14993
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14995 $as_echo "no" >&6; }
14996
14997 else
14998 if test "x$enable_linux_builtin" != xyes; then
14999
15000 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15001 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15002 rc=$?
15003 if test $rc -ne 0; then
15004 export=0
15005 for file in fs/block_dev.c; do
15006 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15007 "$LINUX/$file" 2>/dev/null
15008 rc=$?
15009 if test $rc -eq 0; then
15010 export=1
15011 break;
15012 fi
15013 done
15014 if test $export -eq 0; then :
15015 rc=1
15016 else :
15017 rc=0
15018 fi
15019 else :
15020 rc=0
15021 fi
15022
15023 fi
15024 if test $rc -ne 0; then :
15025
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15027 $as_echo "no" >&6; }
15028
15029 else :
15030
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15032 $as_echo "yes" >&6; }
15033
15034 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
15035
15036
15037 fi
15038 fi
15039
15040
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
15042 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
15043
15044
15045
15046 cat confdefs.h - <<_ACEOF >conftest.c
15047
15048
15049 #include <linux/fs.h>
15050
15051 int
15052 main (void)
15053 {
15054
15055 lookup_bdev(NULL);
15056
15057 ;
15058 return 0;
15059 }
15060
15061 _ACEOF
15062
15063
15064
15065 cat - <<_ACEOF >conftest.h
15066
15067 _ACEOF
15068
15069
15070 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15071 echo "obj-m := conftest.o" >build/Makefile
15072 modpost_flag=''
15073 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15074 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15076 (eval $ac_try) 2>&5
15077 ac_status=$?
15078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15079 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15084 test $ac_status = 0; }; }; then :
15085 rc=0
15086 else
15087 $as_echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15089 rc=1
15090
15091
15092 fi
15093 rm -Rf build
15094
15095
15096 if test $rc -ne 0; then :
15097
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15099 $as_echo "no" >&6; }
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available and wants 2 args" >&5
15101 $as_echo_n "checking whether lookup_bdev() is available and wants 2 args... " >&6; }
15102
15103
15104
15105 cat confdefs.h - <<_ACEOF >conftest.c
15106
15107
15108 #include <linux/fs.h>
15109
15110 int
15111 main (void)
15112 {
15113
15114 lookup_bdev(NULL, 0);
15115
15116 ;
15117 return 0;
15118 }
15119
15120 _ACEOF
15121
15122
15123
15124 cat - <<_ACEOF >conftest.h
15125
15126 _ACEOF
15127
15128
15129 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15130 echo "obj-m := conftest.o" >build/Makefile
15131 modpost_flag=''
15132 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15133 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15135 (eval $ac_try) 2>&5
15136 ac_status=$?
15137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15138 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15140 (eval $ac_try) 2>&5
15141 ac_status=$?
15142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15143 test $ac_status = 0; }; }; then :
15144 rc=0
15145 else
15146 $as_echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15148 rc=1
15149
15150
15151 fi
15152 rm -Rf build
15153
15154
15155 if test $rc -ne 0; then :
15156
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15158 $as_echo "no" >&6; }
15159
15160 else
15161 if test "x$enable_linux_builtin" != xyes; then
15162
15163 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15164 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15165 rc=$?
15166 if test $rc -ne 0; then
15167 export=0
15168 for file in fs/block_dev.c; do
15169 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15170 "$LINUX/$file" 2>/dev/null
15171 rc=$?
15172 if test $rc -eq 0; then
15173 export=1
15174 break;
15175 fi
15176 done
15177 if test $export -eq 0; then :
15178 rc=1
15179 else :
15180 rc=0
15181 fi
15182 else :
15183 rc=0
15184 fi
15185
15186 fi
15187 if test $rc -ne 0; then :
15188
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15190 $as_echo "no" >&6; }
15191
15192 else :
15193
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15195 $as_echo "yes" >&6; }
15196
15197 $as_echo "#define HAVE_LOOKUP_BDEV_2ARGS 1" >>confdefs.h
15198
15199
15200 fi
15201 fi
15202
15203
15204 else
15205 if test "x$enable_linux_builtin" != xyes; then
15206
15207 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15208 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15209 rc=$?
15210 if test $rc -ne 0; then
15211 export=0
15212 for file in fs/block_dev.c; do
15213 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15214 "$LINUX/$file" 2>/dev/null
15215 rc=$?
15216 if test $rc -eq 0; then
15217 export=1
15218 break;
15219 fi
15220 done
15221 if test $export -eq 0; then :
15222 rc=1
15223 else :
15224 rc=0
15225 fi
15226 else :
15227 rc=0
15228 fi
15229
15230 fi
15231 if test $rc -ne 0; then :
15232
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15234 $as_echo "no" >&6; }
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available and wants 2 args" >&5
15236 $as_echo_n "checking whether lookup_bdev() is available and wants 2 args... " >&6; }
15237
15238
15239
15240 cat confdefs.h - <<_ACEOF >conftest.c
15241
15242
15243 #include <linux/fs.h>
15244
15245 int
15246 main (void)
15247 {
15248
15249 lookup_bdev(NULL, 0);
15250
15251 ;
15252 return 0;
15253 }
15254
15255 _ACEOF
15256
15257
15258
15259 cat - <<_ACEOF >conftest.h
15260
15261 _ACEOF
15262
15263
15264 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15265 echo "obj-m := conftest.o" >build/Makefile
15266 modpost_flag=''
15267 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15268 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15270 (eval $ac_try) 2>&5
15271 ac_status=$?
15272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15273 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15275 (eval $ac_try) 2>&5
15276 ac_status=$?
15277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15278 test $ac_status = 0; }; }; then :
15279 rc=0
15280 else
15281 $as_echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15283 rc=1
15284
15285
15286 fi
15287 rm -Rf build
15288
15289
15290 if test $rc -ne 0; then :
15291
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15293 $as_echo "no" >&6; }
15294
15295 else
15296 if test "x$enable_linux_builtin" != xyes; then
15297
15298 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15299 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15300 rc=$?
15301 if test $rc -ne 0; then
15302 export=0
15303 for file in fs/block_dev.c; do
15304 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15305 "$LINUX/$file" 2>/dev/null
15306 rc=$?
15307 if test $rc -eq 0; then
15308 export=1
15309 break;
15310 fi
15311 done
15312 if test $export -eq 0; then :
15313 rc=1
15314 else :
15315 rc=0
15316 fi
15317 else :
15318 rc=0
15319 fi
15320
15321 fi
15322 if test $rc -ne 0; then :
15323
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15325 $as_echo "no" >&6; }
15326
15327 else :
15328
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15330 $as_echo "yes" >&6; }
15331
15332 $as_echo "#define HAVE_LOOKUP_BDEV_2ARGS 1" >>confdefs.h
15333
15334
15335 fi
15336 fi
15337
15338
15339 else :
15340
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15342 $as_echo "yes" >&6; }
15343
15344 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
15345
15346
15347 fi
15348 fi
15349
15350
15351
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
15353 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15354
15355
15356 cat confdefs.h - <<_ACEOF >conftest.c
15357
15358
15359 #include <linux/buffer_head.h>
15360
15361 int
15362 main (void)
15363 {
15364
15365 struct block_device *bdev = NULL;
15366 invalidate_bdev(bdev);
15367
15368 ;
15369 return 0;
15370 }
15371
15372 _ACEOF
15373
15374
15375
15376 cat - <<_ACEOF >conftest.h
15377
15378 _ACEOF
15379
15380
15381 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15382 echo "obj-m := conftest.o" >build/Makefile
15383 modpost_flag=''
15384 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15385 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15390 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15395 test $ac_status = 0; }; }; then :
15396
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15398 $as_echo "yes" >&6; }
15399
15400 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
15401
15402
15403 else
15404 $as_echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15406
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15408 $as_echo "no" >&6; }
15409
15410
15411
15412 fi
15413 rm -Rf build
15414
15415
15416
15417
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
15419 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15420 tmp_flags="$EXTRA_KCFLAGS"
15421 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15422
15423
15424 cat confdefs.h - <<_ACEOF >conftest.c
15425
15426
15427 #include <linux/blkdev.h>
15428
15429 int
15430 main (void)
15431 {
15432
15433 struct block_device *bdev = NULL;
15434 bdev_logical_block_size(bdev);
15435
15436 ;
15437 return 0;
15438 }
15439
15440 _ACEOF
15441
15442
15443
15444 cat - <<_ACEOF >conftest.h
15445
15446 _ACEOF
15447
15448
15449 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15450 echo "obj-m := conftest.o" >build/Makefile
15451 modpost_flag=''
15452 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15453 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15455 (eval $ac_try) 2>&5
15456 ac_status=$?
15457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15458 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15460 (eval $ac_try) 2>&5
15461 ac_status=$?
15462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15463 test $ac_status = 0; }; }; then :
15464
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15466 $as_echo "yes" >&6; }
15467
15468 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
15469
15470
15471 else
15472 $as_echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15474
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15476 $as_echo "no" >&6; }
15477
15478
15479
15480 fi
15481 rm -Rf build
15482
15483
15484 EXTRA_KCFLAGS="$tmp_flags"
15485
15486
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
15488 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
15489 tmp_flags="$EXTRA_KCFLAGS"
15490 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15491
15492
15493 cat confdefs.h - <<_ACEOF >conftest.c
15494
15495
15496 #include <linux/blkdev.h>
15497
15498 int
15499 main (void)
15500 {
15501
15502 struct block_device *bdev = NULL;
15503 bdev_physical_block_size(bdev);
15504
15505 ;
15506 return 0;
15507 }
15508
15509 _ACEOF
15510
15511
15512
15513 cat - <<_ACEOF >conftest.h
15514
15515 _ACEOF
15516
15517
15518 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15519 echo "obj-m := conftest.o" >build/Makefile
15520 modpost_flag=''
15521 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15522 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15524 (eval $ac_try) 2>&5
15525 ac_status=$?
15526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15527 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15529 (eval $ac_try) 2>&5
15530 ac_status=$?
15531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15532 test $ac_status = 0; }; }; then :
15533
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15535 $as_echo "yes" >&6; }
15536
15537 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
15538
15539
15540 else
15541 $as_echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15543
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15545 $as_echo "no" >&6; }
15546
15547
15548
15549 fi
15550 rm -Rf build
15551
15552
15553 EXTRA_KCFLAGS="$tmp_flags"
15554
15555
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
15557 $as_echo_n "checking whether bio has bi_iter... " >&6; }
15558
15559
15560 cat confdefs.h - <<_ACEOF >conftest.c
15561
15562
15563 #include <linux/bio.h>
15564
15565 int
15566 main (void)
15567 {
15568
15569 struct bio bio;
15570 bio.bi_iter.bi_sector = 0;
15571
15572 ;
15573 return 0;
15574 }
15575
15576 _ACEOF
15577
15578
15579
15580 cat - <<_ACEOF >conftest.h
15581
15582 _ACEOF
15583
15584
15585 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15586 echo "obj-m := conftest.o" >build/Makefile
15587 modpost_flag=''
15588 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15589 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15594 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15596 (eval $ac_try) 2>&5
15597 ac_status=$?
15598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15599 test $ac_status = 0; }; }; then :
15600
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15602 $as_echo "yes" >&6; }
15603
15604 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
15605
15606
15607 else
15608 $as_echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15610
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15612 $as_echo "no" >&6; }
15613
15614
15615
15616 fi
15617 rm -Rf build
15618
15619
15620
15621
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
15623 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
15624
15625
15626 cat confdefs.h - <<_ACEOF >conftest.c
15627
15628
15629 #include <linux/bio.h>
15630
15631 int
15632 main (void)
15633 {
15634
15635 int flags __attribute__ ((unused));
15636 flags = ((1 << BIO_RW_FAILFAST_DEV) |
15637 (1 << BIO_RW_FAILFAST_TRANSPORT) |
15638 (1 << BIO_RW_FAILFAST_DRIVER));
15639
15640 ;
15641 return 0;
15642 }
15643
15644 _ACEOF
15645
15646
15647
15648 cat - <<_ACEOF >conftest.h
15649
15650 _ACEOF
15651
15652
15653 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15654 echo "obj-m := conftest.o" >build/Makefile
15655 modpost_flag=''
15656 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15657 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15659 (eval $ac_try) 2>&5
15660 ac_status=$?
15661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15662 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15667 test $ac_status = 0; }; }; then :
15668
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15670 $as_echo "yes" >&6; }
15671
15672 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
15673
15674
15675 else
15676 $as_echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15678
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15680 $as_echo "no" >&6; }
15681
15682
15683
15684 fi
15685 rm -Rf build
15686
15687
15688
15689
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
15691 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
15692
15693
15694 cat confdefs.h - <<_ACEOF >conftest.c
15695
15696
15697 #include <linux/bio.h>
15698
15699 int
15700 main (void)
15701 {
15702
15703 int flags __attribute__ ((unused));
15704 flags = REQ_FAILFAST_MASK;
15705
15706 ;
15707 return 0;
15708 }
15709
15710 _ACEOF
15711
15712
15713
15714 cat - <<_ACEOF >conftest.h
15715
15716 _ACEOF
15717
15718
15719 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15720 echo "obj-m := conftest.o" >build/Makefile
15721 modpost_flag=''
15722 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15723 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15725 (eval $ac_try) 2>&5
15726 ac_status=$?
15727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15728 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15730 (eval $ac_try) 2>&5
15731 ac_status=$?
15732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15733 test $ac_status = 0; }; }; then :
15734
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15736 $as_echo "yes" >&6; }
15737
15738 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
15739
15740
15741 else
15742 $as_echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15744
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15746 $as_echo "no" >&6; }
15747
15748
15749
15750 fi
15751 rm -Rf build
15752
15753
15754
15755
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
15757 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
15758
15759
15760 cat confdefs.h - <<_ACEOF >conftest.c
15761
15762
15763 #include <linux/bio.h>
15764
15765 void wanted_end_io(struct bio *bio) { return; }
15766
15767 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
15768
15769 int
15770 main (void)
15771 {
15772
15773
15774 ;
15775 return 0;
15776 }
15777
15778 _ACEOF
15779
15780
15781
15782 cat - <<_ACEOF >conftest.h
15783
15784 _ACEOF
15785
15786
15787 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15788 echo "obj-m := conftest.o" >build/Makefile
15789 modpost_flag=''
15790 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15791 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15793 (eval $ac_try) 2>&5
15794 ac_status=$?
15795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15796 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15801 test $ac_status = 0; }; }; then :
15802
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15804 $as_echo "yes" >&6; }
15805
15806 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
15807
15808
15809 else
15810 $as_echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15812
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15814 $as_echo "no" >&6; }
15815
15816
15817
15818 fi
15819 rm -Rf build
15820
15821
15822
15823
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
15825 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
15826
15827
15828 cat confdefs.h - <<_ACEOF >conftest.c
15829
15830
15831 #include <linux/bio.h>
15832
15833 int
15834 main (void)
15835 {
15836
15837 int flags __attribute__ ((unused));
15838 flags = BIO_RW_BARRIER;
15839
15840 ;
15841 return 0;
15842 }
15843
15844 _ACEOF
15845
15846
15847
15848 cat - <<_ACEOF >conftest.h
15849
15850 _ACEOF
15851
15852
15853 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15854 echo "obj-m := conftest.o" >build/Makefile
15855 modpost_flag=''
15856 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15857 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15862 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15864 (eval $ac_try) 2>&5
15865 ac_status=$?
15866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15867 test $ac_status = 0; }; }; then :
15868
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15870 $as_echo "yes" >&6; }
15871
15872 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
15873
15874
15875 else
15876 $as_echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15878
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15880 $as_echo "no" >&6; }
15881
15882
15883
15884 fi
15885 rm -Rf build
15886
15887
15888
15889
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
15891 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
15892
15893
15894 cat confdefs.h - <<_ACEOF >conftest.c
15895
15896
15897 #include <linux/bio.h>
15898
15899 int
15900 main (void)
15901 {
15902
15903 int flags __attribute__ ((unused));
15904 flags = BIO_RW_DISCARD;
15905
15906 ;
15907 return 0;
15908 }
15909
15910 _ACEOF
15911
15912
15913
15914 cat - <<_ACEOF >conftest.h
15915
15916 _ACEOF
15917
15918
15919 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15920 echo "obj-m := conftest.o" >build/Makefile
15921 modpost_flag=''
15922 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15923 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15925 (eval $ac_try) 2>&5
15926 ac_status=$?
15927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15928 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15930 (eval $ac_try) 2>&5
15931 ac_status=$?
15932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15933 test $ac_status = 0; }; }; then :
15934
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15936 $as_echo "yes" >&6; }
15937
15938 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
15939
15940
15941 else
15942 $as_echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15944
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15946 $as_echo "no" >&6; }
15947
15948
15949
15950 fi
15951 rm -Rf build
15952
15953
15954
15955
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
15957 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
15958 tmp_flags="$EXTRA_KCFLAGS"
15959 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15960
15961
15962 cat confdefs.h - <<_ACEOF >conftest.c
15963
15964
15965 #include <linux/blkdev.h>
15966
15967 int
15968 main (void)
15969 {
15970
15971 struct request_queue *q = NULL;
15972 (void) blk_queue_flush(q, REQ_FLUSH);
15973
15974 ;
15975 return 0;
15976 }
15977
15978 _ACEOF
15979
15980
15981
15982 cat - <<_ACEOF >conftest.h
15983
15984 _ACEOF
15985
15986
15987 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15988 echo "obj-m := conftest.o" >build/Makefile
15989 modpost_flag=''
15990 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15991 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15993 (eval $ac_try) 2>&5
15994 ac_status=$?
15995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15996 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15998 (eval $ac_try) 2>&5
15999 ac_status=$?
16000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16001 test $ac_status = 0; }; }; then :
16002
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16004 $as_echo "yes" >&6; }
16005
16006 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
16007
16008
16009 else
16010 $as_echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16012
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16014 $as_echo "no" >&6; }
16015
16016
16017
16018 fi
16019 rm -Rf build
16020
16021
16022
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
16024 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
16025
16026
16027 cat confdefs.h - <<_ACEOF >conftest.c
16028
16029
16030 #include <linux/module.h>
16031 #include <linux/blkdev.h>
16032
16033 MODULE_LICENSE("$ZFS_META_LICENSE");
16034
16035 int
16036 main (void)
16037 {
16038
16039 struct request_queue *q = NULL;
16040 (void) blk_queue_flush(q, REQ_FLUSH);
16041
16042 ;
16043 return 0;
16044 }
16045
16046 _ACEOF
16047
16048
16049
16050 cat - <<_ACEOF >conftest.h
16051
16052 _ACEOF
16053
16054
16055 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16056 echo "obj-m := conftest.o" >build/Makefile
16057 modpost_flag=''
16058 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16059 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16061 (eval $ac_try) 2>&5
16062 ac_status=$?
16063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16064 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16066 (eval $ac_try) 2>&5
16067 ac_status=$?
16068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16069 test $ac_status = 0; }; }; then :
16070
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16072 $as_echo "no" >&6; }
16073
16074 else
16075 $as_echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16077
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16079 $as_echo "yes" >&6; }
16080
16081 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
16082
16083
16084
16085
16086 fi
16087 rm -Rf build
16088
16089
16090 EXTRA_KCFLAGS="$tmp_flags"
16091
16092
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
16094 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
16095 tmp_flags="$EXTRA_KCFLAGS"
16096 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16097
16098
16099 cat confdefs.h - <<_ACEOF >conftest.c
16100
16101
16102 #include <linux/blkdev.h>
16103
16104 int
16105 main (void)
16106 {
16107
16108 struct request_queue *q = NULL;
16109 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
16110
16111 ;
16112 return 0;
16113 }
16114
16115 _ACEOF
16116
16117
16118
16119 cat - <<_ACEOF >conftest.h
16120
16121 _ACEOF
16122
16123
16124 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16125 echo "obj-m := conftest.o" >build/Makefile
16126 modpost_flag=''
16127 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16128 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16130 (eval $ac_try) 2>&5
16131 ac_status=$?
16132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16133 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16135 (eval $ac_try) 2>&5
16136 ac_status=$?
16137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16138 test $ac_status = 0; }; }; then :
16139
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16141 $as_echo "yes" >&6; }
16142
16143 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
16144
16145
16146 else
16147 $as_echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16149
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151 $as_echo "no" >&6; }
16152
16153
16154
16155 fi
16156 rm -Rf build
16157
16158
16159 EXTRA_KCFLAGS="$tmp_flags"
16160
16161
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
16163 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
16164 tmp_flags="$EXTRA_KCFLAGS"
16165 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16166
16167
16168 cat confdefs.h - <<_ACEOF >conftest.c
16169
16170
16171 #include <linux/blkdev.h>
16172
16173 int
16174 main (void)
16175 {
16176
16177 struct request_queue *q = NULL;
16178 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
16179
16180 ;
16181 return 0;
16182 }
16183
16184 _ACEOF
16185
16186
16187
16188 cat - <<_ACEOF >conftest.h
16189
16190 _ACEOF
16191
16192
16193 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16194 echo "obj-m := conftest.o" >build/Makefile
16195 modpost_flag=''
16196 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16197 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16202 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16204 (eval $ac_try) 2>&5
16205 ac_status=$?
16206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16207 test $ac_status = 0; }; }; then :
16208
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16210 $as_echo "yes" >&6; }
16211
16212 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
16213
16214
16215 else
16216 $as_echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16220 $as_echo "no" >&6; }
16221
16222
16223
16224 fi
16225 rm -Rf build
16226
16227
16228 EXTRA_KCFLAGS="$tmp_flags"
16229
16230
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
16232 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
16233 tmp_flags="$EXTRA_KCFLAGS"
16234 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16235
16236
16237 cat confdefs.h - <<_ACEOF >conftest.c
16238
16239
16240 #include <linux/blkdev.h>
16241
16242 int
16243 main (void)
16244 {
16245
16246 struct gendisk *disk = NULL;
16247 (void) get_disk_ro(disk);
16248
16249 ;
16250 return 0;
16251 }
16252
16253 _ACEOF
16254
16255
16256
16257 cat - <<_ACEOF >conftest.h
16258
16259 _ACEOF
16260
16261
16262 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16263 echo "obj-m := conftest.o" >build/Makefile
16264 modpost_flag=''
16265 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16266 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16271 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16276 test $ac_status = 0; }; }; then :
16277
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16279 $as_echo "yes" >&6; }
16280
16281 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
16282
16283
16284 else
16285 $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16289 $as_echo "no" >&6; }
16290
16291
16292
16293 fi
16294 rm -Rf build
16295
16296
16297 EXTRA_KCFLAGS="$tmp_flags"
16298
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
16300 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
16301
16302
16303
16304 cat confdefs.h - <<_ACEOF >conftest.c
16305
16306
16307 #include <linux/genhd.h>
16308
16309 int
16310 main (void)
16311 {
16312
16313 get_gendisk(0, NULL);
16314
16315 ;
16316 return 0;
16317 }
16318
16319 _ACEOF
16320
16321
16322
16323 cat - <<_ACEOF >conftest.h
16324
16325 _ACEOF
16326
16327
16328 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16329 echo "obj-m := conftest.o" >build/Makefile
16330 modpost_flag=''
16331 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16332 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16334 (eval $ac_try) 2>&5
16335 ac_status=$?
16336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16337 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16342 test $ac_status = 0; }; }; then :
16343 rc=0
16344 else
16345 $as_echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16347 rc=1
16348
16349
16350 fi
16351 rm -Rf build
16352
16353
16354 if test $rc -ne 0; then :
16355
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16357 $as_echo "no" >&6; }
16358
16359 else
16360 if test "x$enable_linux_builtin" != xyes; then
16361
16362 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
16363 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16364 rc=$?
16365 if test $rc -ne 0; then
16366 export=0
16367 for file in block/genhd.c; do
16368 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
16369 "$LINUX/$file" 2>/dev/null
16370 rc=$?
16371 if test $rc -eq 0; then
16372 export=1
16373 break;
16374 fi
16375 done
16376 if test $export -eq 0; then :
16377 rc=1
16378 else :
16379 rc=0
16380 fi
16381 else :
16382 rc=0
16383 fi
16384
16385 fi
16386 if test $rc -ne 0; then :
16387
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16389 $as_echo "no" >&6; }
16390
16391 else :
16392
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16394 $as_echo "yes" >&6; }
16395
16396 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
16397
16398
16399 fi
16400 fi
16401
16402
16403
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
16405 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
16406
16407
16408 cat confdefs.h - <<_ACEOF >conftest.c
16409
16410
16411 #include <linux/blkdev.h>
16412
16413 int
16414 main (void)
16415 {
16416
16417 struct queue_limits ql __attribute__ ((unused));
16418
16419 ql.discard_granularity = 0;
16420
16421 ;
16422 return 0;
16423 }
16424
16425 _ACEOF
16426
16427
16428
16429 cat - <<_ACEOF >conftest.h
16430
16431 _ACEOF
16432
16433
16434 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16435 echo "obj-m := conftest.o" >build/Makefile
16436 modpost_flag=''
16437 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16438 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16440 (eval $ac_try) 2>&5
16441 ac_status=$?
16442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16443 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16445 (eval $ac_try) 2>&5
16446 ac_status=$?
16447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16448 test $ac_status = 0; }; }; then :
16449
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16451 $as_echo "yes" >&6; }
16452
16453 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
16454
16455
16456 else
16457 $as_echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16459
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16461 $as_echo "no" >&6; }
16462
16463
16464
16465 fi
16466 rm -Rf build
16467
16468
16469
16470
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
16472 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
16473
16474
16475 cat confdefs.h - <<_ACEOF >conftest.c
16476
16477
16478 #include <linux/fs.h>
16479 #include <linux/xattr.h>
16480
16481 const struct xattr_handler xattr_test_handler = {
16482 .prefix = "test",
16483 .get = NULL,
16484 .set = NULL,
16485 };
16486
16487 const struct xattr_handler *xattr_handlers[] = {
16488 &xattr_test_handler,
16489 };
16490
16491 const struct super_block sb __attribute__ ((unused)) = {
16492 .s_xattr = xattr_handlers,
16493 };
16494
16495 int
16496 main (void)
16497 {
16498
16499
16500 ;
16501 return 0;
16502 }
16503
16504 _ACEOF
16505
16506
16507
16508 cat - <<_ACEOF >conftest.h
16509
16510 _ACEOF
16511
16512
16513 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16514 echo "obj-m := conftest.o" >build/Makefile
16515 modpost_flag=''
16516 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16517 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16519 (eval $ac_try) 2>&5
16520 ac_status=$?
16521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16522 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16527 test $ac_status = 0; }; }; then :
16528
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16530 $as_echo "yes" >&6; }
16531
16532 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
16533
16534
16535 else
16536 $as_echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16538
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16540 $as_echo "no" >&6; }
16541
16542
16543
16544 fi
16545 rm -Rf build
16546
16547
16548
16549
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
16551 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
16552
16553
16554 cat confdefs.h - <<_ACEOF >conftest.c
16555
16556
16557 #include <linux/xattr.h>
16558
16559 int get(const struct xattr_handler *handler,
16560 struct dentry *dentry, const char *name,
16561 void *buffer, size_t size) { return 0; }
16562 static const struct xattr_handler
16563 xops __attribute__ ((unused)) = {
16564 .get = get,
16565 };
16566
16567 int
16568 main (void)
16569 {
16570
16571
16572 ;
16573 return 0;
16574 }
16575
16576 _ACEOF
16577
16578
16579
16580 cat - <<_ACEOF >conftest.h
16581
16582 _ACEOF
16583
16584
16585 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16586 echo "obj-m := conftest.o" >build/Makefile
16587 modpost_flag=''
16588 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16589 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16591 (eval $ac_try) 2>&5
16592 ac_status=$?
16593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16594 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16596 (eval $ac_try) 2>&5
16597 ac_status=$?
16598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16599 test $ac_status = 0; }; }; then :
16600
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16602 $as_echo "yes" >&6; }
16603
16604 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
16605
16606
16607 else
16608 $as_echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16610
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
16614 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
16615
16616
16617 cat confdefs.h - <<_ACEOF >conftest.c
16618
16619
16620 #include <linux/xattr.h>
16621
16622 int get(struct dentry *dentry, const char *name,
16623 void *buffer, size_t size, int handler_flags)
16624 { return 0; }
16625 static const struct xattr_handler
16626 xops __attribute__ ((unused)) = {
16627 .get = get,
16628 };
16629
16630 int
16631 main (void)
16632 {
16633
16634
16635 ;
16636 return 0;
16637 }
16638
16639 _ACEOF
16640
16641
16642
16643 cat - <<_ACEOF >conftest.h
16644
16645 _ACEOF
16646
16647
16648 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16649 echo "obj-m := conftest.o" >build/Makefile
16650 modpost_flag=''
16651 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16652 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16657 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16659 (eval $ac_try) 2>&5
16660 ac_status=$?
16661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16662 test $ac_status = 0; }; }; then :
16663
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16665 $as_echo "yes" >&6; }
16666
16667 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
16668
16669
16670 else
16671 $as_echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16673
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16675 $as_echo "no" >&6; }
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
16677 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
16678
16679
16680 cat confdefs.h - <<_ACEOF >conftest.c
16681
16682
16683 #include <linux/xattr.h>
16684
16685 int get(struct inode *ip, const char *name,
16686 void *buffer, size_t size) { return 0; }
16687 static const struct xattr_handler
16688 xops __attribute__ ((unused)) = {
16689 .get = get,
16690 };
16691
16692 int
16693 main (void)
16694 {
16695
16696
16697 ;
16698 return 0;
16699 }
16700
16701 _ACEOF
16702
16703
16704
16705 cat - <<_ACEOF >conftest.h
16706
16707 _ACEOF
16708
16709
16710 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16711 echo "obj-m := conftest.o" >build/Makefile
16712 modpost_flag=''
16713 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16714 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16719 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16721 (eval $ac_try) 2>&5
16722 ac_status=$?
16723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16724 test $ac_status = 0; }; }; then :
16725
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16727 $as_echo "yes" >&6; }
16728
16729 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
16730
16731
16732 else
16733 $as_echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16735
16736 as_fn_error $? "no; please file a bug report" "$LINENO" 5
16737
16738
16739
16740 fi
16741 rm -Rf build
16742
16743
16744
16745
16746
16747 fi
16748 rm -Rf build
16749
16750
16751
16752
16753
16754 fi
16755 rm -Rf build
16756
16757
16758
16759
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
16761 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
16762
16763
16764 cat confdefs.h - <<_ACEOF >conftest.c
16765
16766
16767 #include <linux/xattr.h>
16768
16769 int set(const struct xattr_handler *handler,
16770 struct dentry *dentry, const char *name,
16771 const void *buffer, size_t size, int flags)
16772 { return 0; }
16773 static const struct xattr_handler
16774 xops __attribute__ ((unused)) = {
16775 .set = set,
16776 };
16777
16778 int
16779 main (void)
16780 {
16781
16782
16783 ;
16784 return 0;
16785 }
16786
16787 _ACEOF
16788
16789
16790
16791 cat - <<_ACEOF >conftest.h
16792
16793 _ACEOF
16794
16795
16796 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16797 echo "obj-m := conftest.o" >build/Makefile
16798 modpost_flag=''
16799 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16800 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16802 (eval $ac_try) 2>&5
16803 ac_status=$?
16804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16805 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16807 (eval $ac_try) 2>&5
16808 ac_status=$?
16809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16810 test $ac_status = 0; }; }; then :
16811
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16813 $as_echo "yes" >&6; }
16814
16815 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
16816
16817
16818 else
16819 $as_echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16821
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16823 $as_echo "no" >&6; }
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
16825 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
16826
16827
16828 cat confdefs.h - <<_ACEOF >conftest.c
16829
16830
16831 #include <linux/xattr.h>
16832
16833 int set(struct dentry *dentry, const char *name,
16834 const void *buffer, size_t size, int flags,
16835 int handler_flags) { return 0; }
16836 static const struct xattr_handler
16837 xops __attribute__ ((unused)) = {
16838 .set = set,
16839 };
16840
16841 int
16842 main (void)
16843 {
16844
16845
16846 ;
16847 return 0;
16848 }
16849
16850 _ACEOF
16851
16852
16853
16854 cat - <<_ACEOF >conftest.h
16855
16856 _ACEOF
16857
16858
16859 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16860 echo "obj-m := conftest.o" >build/Makefile
16861 modpost_flag=''
16862 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16863 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16865 (eval $ac_try) 2>&5
16866 ac_status=$?
16867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16868 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16873 test $ac_status = 0; }; }; then :
16874
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16876 $as_echo "yes" >&6; }
16877
16878 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
16879
16880
16881 else
16882 $as_echo "$as_me: failed program was:" >&5
16883 sed 's/^/| /' conftest.$ac_ext >&5
16884
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16886 $as_echo "no" >&6; }
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
16888 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
16889
16890
16891 cat confdefs.h - <<_ACEOF >conftest.c
16892
16893
16894 #include <linux/xattr.h>
16895
16896 int set(struct inode *ip, const char *name,
16897 const void *buffer, size_t size, int flags)
16898 { return 0; }
16899 static const struct xattr_handler
16900 xops __attribute__ ((unused)) = {
16901 .set = set,
16902 };
16903
16904 int
16905 main (void)
16906 {
16907
16908
16909 ;
16910 return 0;
16911 }
16912
16913 _ACEOF
16914
16915
16916
16917 cat - <<_ACEOF >conftest.h
16918
16919 _ACEOF
16920
16921
16922 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16923 echo "obj-m := conftest.o" >build/Makefile
16924 modpost_flag=''
16925 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16926 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16928 (eval $ac_try) 2>&5
16929 ac_status=$?
16930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16931 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16936 test $ac_status = 0; }; }; then :
16937
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16939 $as_echo "yes" >&6; }
16940
16941 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
16942
16943
16944 else
16945 $as_echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16947
16948 as_fn_error $? "no; please file a bug report" "$LINENO" 5
16949
16950
16951
16952 fi
16953 rm -Rf build
16954
16955
16956
16957
16958
16959 fi
16960 rm -Rf build
16961
16962
16963
16964
16965
16966 fi
16967 rm -Rf build
16968
16969
16970
16971
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
16973 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
16974
16975
16976 cat confdefs.h - <<_ACEOF >conftest.c
16977
16978
16979 #include <linux/xattr.h>
16980
16981 bool list(struct dentry *dentry) { return 0; }
16982 static const struct xattr_handler
16983 xops __attribute__ ((unused)) = {
16984 .list = list,
16985 };
16986
16987 int
16988 main (void)
16989 {
16990
16991
16992 ;
16993 return 0;
16994 }
16995
16996 _ACEOF
16997
16998
16999
17000 cat - <<_ACEOF >conftest.h
17001
17002 _ACEOF
17003
17004
17005 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17006 echo "obj-m := conftest.o" >build/Makefile
17007 modpost_flag=''
17008 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17009 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17011 (eval $ac_try) 2>&5
17012 ac_status=$?
17013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17014 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17016 (eval $ac_try) 2>&5
17017 ac_status=$?
17018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17019 test $ac_status = 0; }; }; then :
17020
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17022 $as_echo "yes" >&6; }
17023
17024 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
17025
17026
17027 else
17028 $as_echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17030
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17032 $as_echo "no" >&6; }
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
17034 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
17035
17036
17037 cat confdefs.h - <<_ACEOF >conftest.c
17038
17039
17040 #include <linux/xattr.h>
17041
17042 size_t list(const struct xattr_handler *handler,
17043 struct dentry *dentry, char *list, size_t list_size,
17044 const char *name, size_t name_len) { return 0; }
17045 static const struct xattr_handler
17046 xops __attribute__ ((unused)) = {
17047 .list = list,
17048 };
17049
17050 int
17051 main (void)
17052 {
17053
17054
17055 ;
17056 return 0;
17057 }
17058
17059 _ACEOF
17060
17061
17062
17063 cat - <<_ACEOF >conftest.h
17064
17065 _ACEOF
17066
17067
17068 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17069 echo "obj-m := conftest.o" >build/Makefile
17070 modpost_flag=''
17071 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17072 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17074 (eval $ac_try) 2>&5
17075 ac_status=$?
17076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17077 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17079 (eval $ac_try) 2>&5
17080 ac_status=$?
17081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17082 test $ac_status = 0; }; }; then :
17083
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17085 $as_echo "yes" >&6; }
17086
17087 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
17088
17089
17090 else
17091 $as_echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17093
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17095 $as_echo "no" >&6; }
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
17097 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
17098
17099
17100 cat confdefs.h - <<_ACEOF >conftest.c
17101
17102
17103 #include <linux/xattr.h>
17104
17105 size_t list(struct dentry *dentry,
17106 char *list, size_t list_size,
17107 const char *name, size_t name_len,
17108 int handler_flags) { return 0; }
17109 static const struct xattr_handler
17110 xops __attribute__ ((unused)) = {
17111 .list = list,
17112 };
17113
17114 int
17115 main (void)
17116 {
17117
17118
17119 ;
17120 return 0;
17121 }
17122
17123 _ACEOF
17124
17125
17126
17127 cat - <<_ACEOF >conftest.h
17128
17129 _ACEOF
17130
17131
17132 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17133 echo "obj-m := conftest.o" >build/Makefile
17134 modpost_flag=''
17135 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17136 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17138 (eval $ac_try) 2>&5
17139 ac_status=$?
17140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17141 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17146 test $ac_status = 0; }; }; then :
17147
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17149 $as_echo "yes" >&6; }
17150
17151 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
17152
17153
17154 else
17155 $as_echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17157
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17159 $as_echo "no" >&6; }
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
17161 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
17162
17163
17164 cat confdefs.h - <<_ACEOF >conftest.c
17165
17166
17167 #include <linux/xattr.h>
17168
17169 size_t list(struct inode *ip, char *lst,
17170 size_t list_size, const char *name,
17171 size_t name_len) { return 0; }
17172 static const struct xattr_handler
17173 xops __attribute__ ((unused)) = {
17174 .list = list,
17175 };
17176
17177 int
17178 main (void)
17179 {
17180
17181
17182 ;
17183 return 0;
17184 }
17185
17186 _ACEOF
17187
17188
17189
17190 cat - <<_ACEOF >conftest.h
17191
17192 _ACEOF
17193
17194
17195 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17196 echo "obj-m := conftest.o" >build/Makefile
17197 modpost_flag=''
17198 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17199 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17201 (eval $ac_try) 2>&5
17202 ac_status=$?
17203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17204 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17206 (eval $ac_try) 2>&5
17207 ac_status=$?
17208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17209 test $ac_status = 0; }; }; then :
17210
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17212 $as_echo "yes" >&6; }
17213
17214 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
17215
17216
17217 else
17218 $as_echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17220
17221 as_fn_error $? "no; please file a bug report" "$LINENO" 5
17222
17223
17224
17225 fi
17226 rm -Rf build
17227
17228
17229
17230
17231
17232 fi
17233 rm -Rf build
17234
17235
17236
17237
17238
17239 fi
17240 rm -Rf build
17241
17242
17243
17244
17245
17246 fi
17247 rm -Rf build
17248
17249
17250
17251
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
17253 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
17254
17255
17256 cat confdefs.h - <<_ACEOF >conftest.c
17257
17258
17259 #include <linux/fs.h>
17260
17261 int
17262 main (void)
17263 {
17264
17265 struct inode *ip = NULL;
17266 (void) inode_owner_or_capable(ip);
17267
17268 ;
17269 return 0;
17270 }
17271
17272 _ACEOF
17273
17274
17275
17276 cat - <<_ACEOF >conftest.h
17277
17278 _ACEOF
17279
17280
17281 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17282 echo "obj-m := conftest.o" >build/Makefile
17283 modpost_flag=''
17284 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17285 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17287 (eval $ac_try) 2>&5
17288 ac_status=$?
17289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17290 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17292 (eval $ac_try) 2>&5
17293 ac_status=$?
17294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17295 test $ac_status = 0; }; }; then :
17296
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17298 $as_echo "yes" >&6; }
17299
17300 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
17301
17302
17303 else
17304 $as_echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.$ac_ext >&5
17306
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17308 $as_echo "no" >&6; }
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
17310 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
17311
17312
17313 cat confdefs.h - <<_ACEOF >conftest.c
17314
17315
17316 #include <linux/fs.h>
17317 #include <linux/sched.h>
17318
17319 int
17320 main (void)
17321 {
17322
17323 struct inode *ip = NULL;
17324 (void) is_owner_or_cap(ip);
17325
17326 ;
17327 return 0;
17328 }
17329
17330 _ACEOF
17331
17332
17333
17334 cat - <<_ACEOF >conftest.h
17335
17336 _ACEOF
17337
17338
17339 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17340 echo "obj-m := conftest.o" >build/Makefile
17341 modpost_flag=''
17342 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17343 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17345 (eval $ac_try) 2>&5
17346 ac_status=$?
17347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17348 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17353 test $ac_status = 0; }; }; then :
17354
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17356 $as_echo "yes" >&6; }
17357
17358 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
17359
17360
17361 else
17362 $as_echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17364
17365 as_fn_error $? "no - Please file a bug report at
17366 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
17367
17368
17369
17370 fi
17371 rm -Rf build
17372
17373
17374
17375
17376
17377 fi
17378 rm -Rf build
17379
17380
17381
17382
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
17384 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
17385
17386
17387 cat confdefs.h - <<_ACEOF >conftest.c
17388
17389
17390 #include <linux/cred.h>
17391 #include <linux/fs.h>
17392 #include <linux/posix_acl_xattr.h>
17393
17394 int
17395 main (void)
17396 {
17397
17398 posix_acl_from_xattr(&init_user_ns, NULL, 0);
17399
17400 ;
17401 return 0;
17402 }
17403
17404 _ACEOF
17405
17406
17407
17408 cat - <<_ACEOF >conftest.h
17409
17410 _ACEOF
17411
17412
17413 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17414 echo "obj-m := conftest.o" >build/Makefile
17415 modpost_flag=''
17416 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17417 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17419 (eval $ac_try) 2>&5
17420 ac_status=$?
17421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17422 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
17426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17427 test $ac_status = 0; }; }; then :
17428
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17430 $as_echo "yes" >&6; }
17431
17432 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
17433
17434
17435 else
17436 $as_echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17440 $as_echo "no" >&6; }
17441
17442
17443
17444 fi
17445 rm -Rf build
17446
17447
17448
17449
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
17451 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
17452
17453
17454 cat confdefs.h - <<_ACEOF >conftest.c
17455
17456
17457 #include <linux/cred.h>
17458 #include <linux/fs.h>
17459 #include <linux/posix_acl.h>
17460
17461 int
17462 main (void)
17463 {
17464
17465 struct posix_acl* tmp = posix_acl_alloc(1, 0);
17466 posix_acl_release(tmp);
17467
17468 ;
17469 return 0;
17470 }
17471
17472 _ACEOF
17473
17474
17475
17476 cat - <<_ACEOF >conftest.h
17477
17478 _ACEOF
17479
17480
17481 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17482 echo "obj-m := conftest.o" >build/Makefile
17483 modpost_flag=''
17484 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17485 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17487 (eval $ac_try) 2>&5
17488 ac_status=$?
17489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17490 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17492 (eval $ac_try) 2>&5
17493 ac_status=$?
17494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17495 test $ac_status = 0; }; }; then :
17496
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17498 $as_echo "yes" >&6; }
17499
17500 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
17501
17502
17503 else
17504 $as_echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17506
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17508 $as_echo "no" >&6; }
17509
17510
17511
17512 fi
17513 rm -Rf build
17514
17515
17516
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
17518 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
17519
17520
17521 cat confdefs.h - <<_ACEOF >conftest.c
17522
17523
17524 #include <linux/cred.h>
17525 #include <linux/fs.h>
17526 #include <linux/posix_acl.h>
17527
17528 MODULE_LICENSE("$ZFS_META_LICENSE");
17529
17530 int
17531 main (void)
17532 {
17533
17534 struct posix_acl* tmp = posix_acl_alloc(1, 0);
17535 posix_acl_release(tmp);
17536
17537 ;
17538 return 0;
17539 }
17540
17541 _ACEOF
17542
17543
17544
17545 cat - <<_ACEOF >conftest.h
17546
17547 _ACEOF
17548
17549
17550 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17551 echo "obj-m := conftest.o" >build/Makefile
17552 modpost_flag=''
17553 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17554 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17556 (eval $ac_try) 2>&5
17557 ac_status=$?
17558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17559 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17564 test $ac_status = 0; }; }; then :
17565
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17567 $as_echo "no" >&6; }
17568
17569 else
17570 $as_echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17572
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17574 $as_echo "yes" >&6; }
17575
17576 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
17577
17578
17579
17580
17581 fi
17582 rm -Rf build
17583
17584
17585
17586
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
17588 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
17589
17590
17591 cat confdefs.h - <<_ACEOF >conftest.c
17592
17593
17594 #include <linux/fs.h>
17595 #include <linux/posix_acl.h>
17596
17597 int
17598 main (void)
17599 {
17600
17601 posix_acl_chmod(NULL, 0, 0)
17602
17603 ;
17604 return 0;
17605 }
17606
17607 _ACEOF
17608
17609
17610
17611 cat - <<_ACEOF >conftest.h
17612
17613 _ACEOF
17614
17615
17616 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17617 echo "obj-m := conftest.o" >build/Makefile
17618 modpost_flag=''
17619 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17620 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17622 (eval $ac_try) 2>&5
17623 ac_status=$?
17624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17625 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17627 (eval $ac_try) 2>&5
17628 ac_status=$?
17629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17630 test $ac_status = 0; }; }; then :
17631
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17633 $as_echo "yes" >&6; }
17634
17635 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
17636
17637
17638 else
17639 $as_echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17641
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17643 $as_echo "no" >&6; }
17644
17645
17646
17647 fi
17648 rm -Rf build
17649
17650
17651
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
17653 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
17654
17655
17656 cat confdefs.h - <<_ACEOF >conftest.c
17657
17658
17659 #include <linux/fs.h>
17660 #include <linux/posix_acl.h>
17661
17662 int
17663 main (void)
17664 {
17665
17666 __posix_acl_chmod(NULL, 0, 0)
17667
17668 ;
17669 return 0;
17670 }
17671
17672 _ACEOF
17673
17674
17675
17676 cat - <<_ACEOF >conftest.h
17677
17678 _ACEOF
17679
17680
17681 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17682 echo "obj-m := conftest.o" >build/Makefile
17683 modpost_flag=''
17684 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17685 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17687 (eval $ac_try) 2>&5
17688 ac_status=$?
17689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17690 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17692 (eval $ac_try) 2>&5
17693 ac_status=$?
17694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17695 test $ac_status = 0; }; }; then :
17696
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17698 $as_echo "yes" >&6; }
17699
17700 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
17701
17702
17703 else
17704 $as_echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17706
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17708 $as_echo "no" >&6; }
17709
17710
17711
17712 fi
17713 rm -Rf build
17714
17715
17716
17717
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5
17719 $as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; }
17720
17721
17722 cat confdefs.h - <<_ACEOF >conftest.c
17723
17724
17725 #include <linux/fs.h>
17726
17727 int
17728 main (void)
17729 {
17730
17731 struct inode ino;
17732 ino.i_acl = NULL;
17733 ino.i_default_acl = NULL;
17734
17735 ;
17736 return 0;
17737 }
17738
17739 _ACEOF
17740
17741
17742
17743 cat - <<_ACEOF >conftest.h
17744
17745 _ACEOF
17746
17747
17748 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17749 echo "obj-m := conftest.o" >build/Makefile
17750 modpost_flag=''
17751 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17752 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17754 (eval $ac_try) 2>&5
17755 ac_status=$?
17756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17757 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17759 (eval $ac_try) 2>&5
17760 ac_status=$?
17761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17762 test $ac_status = 0; }; }; then :
17763
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17765 $as_echo "yes" >&6; }
17766
17767 $as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h
17768
17769
17770 else
17771 $as_echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17773
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17775 $as_echo "no" >&6; }
17776
17777
17778
17779 fi
17780 rm -Rf build
17781
17782
17783
17784
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
17786 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
17787
17788
17789 cat confdefs.h - <<_ACEOF >conftest.c
17790
17791
17792 #include <linux/fs.h>
17793 #include <linux/posix_acl.h>
17794
17795 int
17796 main (void)
17797 {
17798
17799 umode_t tmp;
17800 posix_acl_equiv_mode(NULL,&tmp);
17801
17802 ;
17803 return 0;
17804 }
17805
17806 _ACEOF
17807
17808
17809
17810 cat - <<_ACEOF >conftest.h
17811
17812 _ACEOF
17813
17814
17815 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17816 echo "obj-m := conftest.o" >build/Makefile
17817 modpost_flag=''
17818 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17819 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17821 (eval $ac_try) 2>&5
17822 ac_status=$?
17823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17824 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17826 (eval $ac_try) 2>&5
17827 ac_status=$?
17828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17829 test $ac_status = 0; }; }; then :
17830
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17832 $as_echo "yes" >&6; }
17833
17834 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
17835
17836
17837 else
17838 $as_echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17840
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17842 $as_echo "no" >&6; }
17843
17844
17845
17846 fi
17847 rm -Rf build
17848
17849
17850
17851
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
17853 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
17854
17855
17856 cat confdefs.h - <<_ACEOF >conftest.c
17857
17858
17859 #include <linux/fs.h>
17860 #include <linux/posix_acl.h>
17861
17862 int
17863 main (void)
17864 {
17865
17866 struct user_namespace *user_ns = NULL;
17867 const struct posix_acl *acl = NULL;
17868 int error;
17869
17870 error = posix_acl_valid(user_ns, acl);
17871
17872 ;
17873 return 0;
17874 }
17875
17876 _ACEOF
17877
17878
17879
17880 cat - <<_ACEOF >conftest.h
17881
17882 _ACEOF
17883
17884
17885 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17886 echo "obj-m := conftest.o" >build/Makefile
17887 modpost_flag=''
17888 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17889 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17891 (eval $ac_try) 2>&5
17892 ac_status=$?
17893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17894 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17896 (eval $ac_try) 2>&5
17897 ac_status=$?
17898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17899 test $ac_status = 0; }; }; then :
17900
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17902 $as_echo "yes" >&6; }
17903
17904 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
17905
17906
17907 else
17908 $as_echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17910
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17912 $as_echo "no" >&6; }
17913
17914
17915
17916 fi
17917 rm -Rf build
17918
17919
17920
17921
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
17923 $as_echo_n "checking whether iops->permission() exists... " >&6; }
17924
17925
17926 cat confdefs.h - <<_ACEOF >conftest.c
17927
17928
17929 #include <linux/fs.h>
17930
17931 int permission_fn(struct inode *inode, int mask) { return 0; }
17932
17933 static const struct inode_operations
17934 iops __attribute__ ((unused)) = {
17935 .permission = permission_fn,
17936 };
17937
17938 int
17939 main (void)
17940 {
17941
17942
17943 ;
17944 return 0;
17945 }
17946
17947 _ACEOF
17948
17949
17950
17951 cat - <<_ACEOF >conftest.h
17952
17953 _ACEOF
17954
17955
17956 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17957 echo "obj-m := conftest.o" >build/Makefile
17958 modpost_flag=''
17959 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17960 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17962 (eval $ac_try) 2>&5
17963 ac_status=$?
17964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17965 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17967 (eval $ac_try) 2>&5
17968 ac_status=$?
17969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17970 test $ac_status = 0; }; }; then :
17971
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17973 $as_echo "yes" >&6; }
17974
17975 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
17976
17977
17978 else
17979 $as_echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17981
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17983 $as_echo "no" >&6; }
17984
17985
17986
17987 fi
17988 rm -Rf build
17989
17990
17991
17992
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
17994 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
17995
17996
17997 cat confdefs.h - <<_ACEOF >conftest.c
17998
17999
18000 #include <linux/fs.h>
18001
18002 int permission_fn(struct inode *inode, int mask,
18003 struct nameidata *nd) { return 0; }
18004
18005 static const struct inode_operations
18006 iops __attribute__ ((unused)) = {
18007 .permission = permission_fn,
18008 };
18009
18010 int
18011 main (void)
18012 {
18013
18014
18015 ;
18016 return 0;
18017 }
18018
18019 _ACEOF
18020
18021
18022
18023 cat - <<_ACEOF >conftest.h
18024
18025 _ACEOF
18026
18027
18028 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18029 echo "obj-m := conftest.o" >build/Makefile
18030 modpost_flag=''
18031 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18032 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18034 (eval $ac_try) 2>&5
18035 ac_status=$?
18036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18037 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18039 (eval $ac_try) 2>&5
18040 ac_status=$?
18041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18042 test $ac_status = 0; }; }; then :
18043
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18045 $as_echo "yes" >&6; }
18046
18047 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
18048
18049
18050 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
18051
18052
18053 else
18054 $as_echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18056
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18058 $as_echo "no" >&6; }
18059
18060
18061
18062 fi
18063 rm -Rf build
18064
18065
18066
18067
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
18069 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
18070
18071
18072 cat confdefs.h - <<_ACEOF >conftest.c
18073
18074
18075 #include <linux/fs.h>
18076
18077 int check_acl_fn(struct inode *inode, int mask) { return 0; }
18078
18079 static const struct inode_operations
18080 iops __attribute__ ((unused)) = {
18081 .check_acl = check_acl_fn,
18082 };
18083
18084 int
18085 main (void)
18086 {
18087
18088
18089 ;
18090 return 0;
18091 }
18092
18093 _ACEOF
18094
18095
18096
18097 cat - <<_ACEOF >conftest.h
18098
18099 _ACEOF
18100
18101
18102 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18103 echo "obj-m := conftest.o" >build/Makefile
18104 modpost_flag=''
18105 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18106 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18108 (eval $ac_try) 2>&5
18109 ac_status=$?
18110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18111 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18113 (eval $ac_try) 2>&5
18114 ac_status=$?
18115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18116 test $ac_status = 0; }; }; then :
18117
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18119 $as_echo "yes" >&6; }
18120
18121 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
18122
18123
18124 else
18125 $as_echo "$as_me: failed program was:" >&5
18126 sed 's/^/| /' conftest.$ac_ext >&5
18127
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18129 $as_echo "no" >&6; }
18130
18131
18132
18133 fi
18134 rm -Rf build
18135
18136
18137
18138
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
18140 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
18141
18142
18143 cat confdefs.h - <<_ACEOF >conftest.c
18144
18145
18146 #include <linux/fs.h>
18147
18148 int check_acl_fn(struct inode *inode, int mask,
18149 unsigned int flags) { return 0; }
18150
18151 static const struct inode_operations
18152 iops __attribute__ ((unused)) = {
18153 .check_acl = check_acl_fn,
18154 };
18155
18156 int
18157 main (void)
18158 {
18159
18160
18161 ;
18162 return 0;
18163 }
18164
18165 _ACEOF
18166
18167
18168
18169 cat - <<_ACEOF >conftest.h
18170
18171 _ACEOF
18172
18173
18174 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18175 echo "obj-m := conftest.o" >build/Makefile
18176 modpost_flag=''
18177 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18178 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18180 (eval $ac_try) 2>&5
18181 ac_status=$?
18182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18183 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18185 (eval $ac_try) 2>&5
18186 ac_status=$?
18187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18188 test $ac_status = 0; }; }; then :
18189
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18191 $as_echo "yes" >&6; }
18192
18193 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
18194
18195
18196 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
18197
18198
18199 else
18200 $as_echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18202
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18204 $as_echo "no" >&6; }
18205
18206
18207
18208 fi
18209 rm -Rf build
18210
18211
18212
18213
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
18215 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
18216
18217
18218 cat confdefs.h - <<_ACEOF >conftest.c
18219
18220
18221 #include <linux/fs.h>
18222
18223 struct posix_acl *get_acl_fn(struct inode *inode, int type)
18224 { return NULL; }
18225
18226 static const struct inode_operations
18227 iops __attribute__ ((unused)) = {
18228 .get_acl = get_acl_fn,
18229 };
18230
18231 int
18232 main (void)
18233 {
18234
18235
18236 ;
18237 return 0;
18238 }
18239
18240 _ACEOF
18241
18242
18243
18244 cat - <<_ACEOF >conftest.h
18245
18246 _ACEOF
18247
18248
18249 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18250 echo "obj-m := conftest.o" >build/Makefile
18251 modpost_flag=''
18252 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18253 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18255 (eval $ac_try) 2>&5
18256 ac_status=$?
18257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18258 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18263 test $ac_status = 0; }; }; then :
18264
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18266 $as_echo "yes" >&6; }
18267
18268 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
18269
18270
18271 else
18272 $as_echo "$as_me: failed program was:" >&5
18273 sed 's/^/| /' conftest.$ac_ext >&5
18274
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18276 $as_echo "no" >&6; }
18277
18278
18279
18280 fi
18281 rm -Rf build
18282
18283
18284
18285
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5
18287 $as_echo_n "checking whether current_umask exists... " >&6; }
18288
18289
18290 cat confdefs.h - <<_ACEOF >conftest.c
18291
18292
18293 #include <linux/fs.h>
18294
18295 int
18296 main (void)
18297 {
18298
18299 current_umask();
18300
18301 ;
18302 return 0;
18303 }
18304
18305 _ACEOF
18306
18307
18308
18309 cat - <<_ACEOF >conftest.h
18310
18311 _ACEOF
18312
18313
18314 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18315 echo "obj-m := conftest.o" >build/Makefile
18316 modpost_flag=''
18317 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18318 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18320 (eval $ac_try) 2>&5
18321 ac_status=$?
18322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18323 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18325 (eval $ac_try) 2>&5
18326 ac_status=$?
18327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18328 test $ac_status = 0; }; }; then :
18329
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18331 $as_echo "yes" >&6; }
18332
18333 $as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h
18334
18335
18336 else
18337 $as_echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18339
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18341 $as_echo "no" >&6; }
18342
18343
18344
18345 fi
18346 rm -Rf build
18347
18348
18349
18350
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
18352 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
18353
18354
18355
18356 cat confdefs.h - <<_ACEOF >conftest.c
18357
18358
18359 #include <linux/fs.h>
18360
18361 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
18362 static struct super_operations sops __attribute__ ((unused)) = {
18363 .show_options = show_options,
18364 };
18365
18366 int
18367 main (void)
18368 {
18369
18370
18371 ;
18372 return 0;
18373 }
18374
18375 _ACEOF
18376
18377
18378
18379 cat - <<_ACEOF >conftest.h
18380
18381 _ACEOF
18382
18383
18384 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18385 echo "obj-m := conftest.o" >build/Makefile
18386 modpost_flag=''
18387 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18388 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18390 (eval $ac_try) 2>&5
18391 ac_status=$?
18392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18393 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18398 test $ac_status = 0; }; }; then :
18399
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18401 $as_echo "yes" >&6; }
18402
18403 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
18404
18405
18406 else
18407 $as_echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18409
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18411 $as_echo "no" >&6; }
18412
18413
18414
18415 fi
18416 rm -Rf build
18417
18418
18419
18420
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
18422 $as_echo_n "checking whether file_inode() is available... " >&6; }
18423
18424
18425 cat confdefs.h - <<_ACEOF >conftest.c
18426
18427
18428 #include <linux/fs.h>
18429
18430 int
18431 main (void)
18432 {
18433
18434 struct file *f = NULL;
18435 file_inode(f);
18436
18437 ;
18438 return 0;
18439 }
18440
18441 _ACEOF
18442
18443
18444
18445 cat - <<_ACEOF >conftest.h
18446
18447 _ACEOF
18448
18449
18450 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18451 echo "obj-m := conftest.o" >build/Makefile
18452 modpost_flag=''
18453 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18454 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18456 (eval $ac_try) 2>&5
18457 ac_status=$?
18458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18459 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18461 (eval $ac_try) 2>&5
18462 ac_status=$?
18463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18464 test $ac_status = 0; }; }; then :
18465
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18467 $as_echo "yes" >&6; }
18468
18469 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
18470
18471
18472 else
18473 $as_echo "$as_me: failed program was:" >&5
18474 sed 's/^/| /' conftest.$ac_ext >&5
18475
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18477 $as_echo "no" >&6; }
18478
18479
18480
18481 fi
18482 rm -Rf build
18483
18484
18485
18486
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
18488 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
18489
18490
18491
18492 cat confdefs.h - <<_ACEOF >conftest.c
18493
18494
18495 #include <linux/fs.h>
18496
18497 int test_fsync(struct file *f, struct dentry *dentry, int x)
18498 { return 0; }
18499
18500 static const struct file_operations
18501 fops __attribute__ ((unused)) = {
18502 .fsync = test_fsync,
18503 };
18504
18505 int
18506 main (void)
18507 {
18508
18509
18510 ;
18511 return 0;
18512 }
18513
18514 _ACEOF
18515
18516
18517
18518 cat - <<_ACEOF >conftest.h
18519
18520 _ACEOF
18521
18522
18523 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18524 echo "obj-m := conftest.o" >build/Makefile
18525 modpost_flag=''
18526 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18527 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18529 (eval $ac_try) 2>&5
18530 ac_status=$?
18531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18532 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18534 (eval $ac_try) 2>&5
18535 ac_status=$?
18536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18537 test $ac_status = 0; }; }; then :
18538
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
18540 $as_echo "dentry" >&6; }
18541
18542 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
18543
18544
18545 else
18546 $as_echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18548
18549
18550
18551
18552 fi
18553 rm -Rf build
18554
18555
18556
18557
18558
18559
18560 cat confdefs.h - <<_ACEOF >conftest.c
18561
18562
18563 #include <linux/fs.h>
18564
18565 int test_fsync(struct file *f, int x) { return 0; }
18566
18567 static const struct file_operations
18568 fops __attribute__ ((unused)) = {
18569 .fsync = test_fsync,
18570 };
18571
18572 int
18573 main (void)
18574 {
18575
18576
18577 ;
18578 return 0;
18579 }
18580
18581 _ACEOF
18582
18583
18584
18585 cat - <<_ACEOF >conftest.h
18586
18587 _ACEOF
18588
18589
18590 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18591 echo "obj-m := conftest.o" >build/Makefile
18592 modpost_flag=''
18593 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18594 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18596 (eval $ac_try) 2>&5
18597 ac_status=$?
18598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18599 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18601 (eval $ac_try) 2>&5
18602 ac_status=$?
18603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18604 test $ac_status = 0; }; }; then :
18605
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
18607 $as_echo "no dentry" >&6; }
18608
18609 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
18610
18611
18612 else
18613 $as_echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18615
18616
18617
18618
18619 fi
18620 rm -Rf build
18621
18622
18623
18624
18625
18626
18627 cat confdefs.h - <<_ACEOF >conftest.c
18628
18629
18630 #include <linux/fs.h>
18631
18632 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
18633 { return 0; }
18634
18635 static const struct file_operations
18636 fops __attribute__ ((unused)) = {
18637 .fsync = test_fsync,
18638 };
18639
18640 int
18641 main (void)
18642 {
18643
18644
18645 ;
18646 return 0;
18647 }
18648
18649 _ACEOF
18650
18651
18652
18653 cat - <<_ACEOF >conftest.h
18654
18655 _ACEOF
18656
18657
18658 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18659 echo "obj-m := conftest.o" >build/Makefile
18660 modpost_flag=''
18661 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18662 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18667 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18672 test $ac_status = 0; }; }; then :
18673
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
18675 $as_echo "range" >&6; }
18676
18677 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
18678
18679
18680 else
18681 $as_echo "$as_me: failed program was:" >&5
18682 sed 's/^/| /' conftest.$ac_ext >&5
18683
18684
18685
18686
18687 fi
18688 rm -Rf build
18689
18690
18691
18692
18693
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
18695 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
18696
18697
18698 cat confdefs.h - <<_ACEOF >conftest.c
18699
18700
18701 #include <linux/fs.h>
18702 void evict_inode (struct inode * t) { return; }
18703 static struct super_operations sops __attribute__ ((unused)) = {
18704 .evict_inode = evict_inode,
18705 };
18706
18707 int
18708 main (void)
18709 {
18710
18711
18712 ;
18713 return 0;
18714 }
18715
18716 _ACEOF
18717
18718
18719
18720 cat - <<_ACEOF >conftest.h
18721
18722 _ACEOF
18723
18724
18725 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18726 echo "obj-m := conftest.o" >build/Makefile
18727 modpost_flag=''
18728 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18729 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18731 (eval $ac_try) 2>&5
18732 ac_status=$?
18733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18734 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18736 (eval $ac_try) 2>&5
18737 ac_status=$?
18738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18739 test $ac_status = 0; }; }; then :
18740
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18742 $as_echo "yes" >&6; }
18743
18744 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
18745
18746
18747 else
18748 $as_echo "$as_me: failed program was:" >&5
18749 sed 's/^/| /' conftest.$ac_ext >&5
18750
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752 $as_echo "no" >&6; }
18753
18754
18755
18756 fi
18757 rm -Rf build
18758
18759
18760
18761
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
18763 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
18764
18765
18766 cat confdefs.h - <<_ACEOF >conftest.c
18767
18768
18769 #include <linux/fs.h>
18770
18771 void dirty_inode(struct inode *a, int b) { return; }
18772
18773 static const struct super_operations
18774 sops __attribute__ ((unused)) = {
18775 .dirty_inode = dirty_inode,
18776 };
18777
18778 int
18779 main (void)
18780 {
18781
18782
18783 ;
18784 return 0;
18785 }
18786
18787 _ACEOF
18788
18789
18790
18791 cat - <<_ACEOF >conftest.h
18792
18793 _ACEOF
18794
18795
18796 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18797 echo "obj-m := conftest.o" >build/Makefile
18798 modpost_flag=''
18799 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18800 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18802 (eval $ac_try) 2>&5
18803 ac_status=$?
18804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18805 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18807 (eval $ac_try) 2>&5
18808 ac_status=$?
18809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18810 test $ac_status = 0; }; }; then :
18811
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18813 $as_echo "yes" >&6; }
18814
18815 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
18816
18817
18818 else
18819 $as_echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18821
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18823 $as_echo "no" >&6; }
18824
18825
18826
18827 fi
18828 rm -Rf build
18829
18830
18831
18832
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
18834 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
18835
18836
18837 cat confdefs.h - <<_ACEOF >conftest.c
18838
18839
18840 #include <linux/fs.h>
18841
18842 int nr_cached_objects(struct super_block *sb) { return 0; }
18843
18844 static const struct super_operations
18845 sops __attribute__ ((unused)) = {
18846 .nr_cached_objects = nr_cached_objects,
18847 };
18848
18849 int
18850 main (void)
18851 {
18852
18853
18854 ;
18855 return 0;
18856 }
18857
18858 _ACEOF
18859
18860
18861
18862 cat - <<_ACEOF >conftest.h
18863
18864 _ACEOF
18865
18866
18867 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18868 echo "obj-m := conftest.o" >build/Makefile
18869 modpost_flag=''
18870 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18871 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18873 (eval $ac_try) 2>&5
18874 ac_status=$?
18875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18876 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18878 (eval $ac_try) 2>&5
18879 ac_status=$?
18880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18881 test $ac_status = 0; }; }; then :
18882
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18884 $as_echo "yes" >&6; }
18885
18886 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
18887
18888
18889 else
18890 $as_echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18892
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18894 $as_echo "no" >&6; }
18895
18896
18897
18898 fi
18899 rm -Rf build
18900
18901
18902
18903
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
18905 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
18906
18907
18908 cat confdefs.h - <<_ACEOF >conftest.c
18909
18910
18911 #include <linux/fs.h>
18912
18913 void free_cached_objects(struct super_block *sb, int x)
18914 { return; }
18915
18916 static const struct super_operations
18917 sops __attribute__ ((unused)) = {
18918 .free_cached_objects = free_cached_objects,
18919 };
18920
18921 int
18922 main (void)
18923 {
18924
18925
18926 ;
18927 return 0;
18928 }
18929
18930 _ACEOF
18931
18932
18933
18934 cat - <<_ACEOF >conftest.h
18935
18936 _ACEOF
18937
18938
18939 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18940 echo "obj-m := conftest.o" >build/Makefile
18941 modpost_flag=''
18942 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18943 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18945 (eval $ac_try) 2>&5
18946 ac_status=$?
18947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18948 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18953 test $ac_status = 0; }; }; then :
18954
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18956 $as_echo "yes" >&6; }
18957
18958 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
18959
18960
18961 else
18962 $as_echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18964
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18966 $as_echo "no" >&6; }
18967
18968
18969
18970 fi
18971 rm -Rf build
18972
18973
18974
18975
18976
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
18978 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
18979
18980
18981 cat confdefs.h - <<_ACEOF >conftest.c
18982
18983
18984 #include <linux/fs.h>
18985
18986 long test_fallocate(struct file *file, int mode,
18987 loff_t offset, loff_t len) { return 0; }
18988
18989 static const struct file_operations
18990 fops __attribute__ ((unused)) = {
18991 .fallocate = test_fallocate,
18992 };
18993
18994 int
18995 main (void)
18996 {
18997
18998
18999 ;
19000 return 0;
19001 }
19002
19003 _ACEOF
19004
19005
19006
19007 cat - <<_ACEOF >conftest.h
19008
19009 _ACEOF
19010
19011
19012 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19013 echo "obj-m := conftest.o" >build/Makefile
19014 modpost_flag=''
19015 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19016 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19018 (eval $ac_try) 2>&5
19019 ac_status=$?
19020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19021 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19023 (eval $ac_try) 2>&5
19024 ac_status=$?
19025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19026 test $ac_status = 0; }; }; then :
19027
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19029 $as_echo "yes" >&6; }
19030
19031 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
19032
19033
19034 else
19035 $as_echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19037
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19039 $as_echo "no" >&6; }
19040
19041
19042
19043 fi
19044 rm -Rf build
19045
19046
19047
19048
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
19050 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
19051
19052
19053 cat confdefs.h - <<_ACEOF >conftest.c
19054
19055
19056 #include <linux/fs.h>
19057
19058 long test_fallocate(struct inode *inode, int mode,
19059 loff_t offset, loff_t len) { return 0; }
19060
19061 static const struct inode_operations
19062 fops __attribute__ ((unused)) = {
19063 .fallocate = test_fallocate,
19064 };
19065
19066 int
19067 main (void)
19068 {
19069
19070
19071 ;
19072 return 0;
19073 }
19074
19075 _ACEOF
19076
19077
19078
19079 cat - <<_ACEOF >conftest.h
19080
19081 _ACEOF
19082
19083
19084 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19085 echo "obj-m := conftest.o" >build/Makefile
19086 modpost_flag=''
19087 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19088 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19090 (eval $ac_try) 2>&5
19091 ac_status=$?
19092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19093 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19095 (eval $ac_try) 2>&5
19096 ac_status=$?
19097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19098 test $ac_status = 0; }; }; then :
19099
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19101 $as_echo "yes" >&6; }
19102
19103 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
19104
19105
19106 else
19107 $as_echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19109
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19111 $as_echo "no" >&6; }
19112
19113
19114
19115 fi
19116 rm -Rf build
19117
19118
19119
19120
19121
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
19123 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
19124
19125
19126 cat confdefs.h - <<_ACEOF >conftest.c
19127
19128
19129 #include <linux/fs.h>
19130
19131 int mkdir(struct inode *inode, struct dentry *dentry,
19132 umode_t umode) { return 0; }
19133
19134 static const struct inode_operations
19135 iops __attribute__ ((unused)) = {
19136 .mkdir = mkdir,
19137 };
19138
19139 int
19140 main (void)
19141 {
19142
19143
19144 ;
19145 return 0;
19146 }
19147
19148 _ACEOF
19149
19150
19151
19152 cat - <<_ACEOF >conftest.h
19153
19154 _ACEOF
19155
19156
19157 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19158 echo "obj-m := conftest.o" >build/Makefile
19159 modpost_flag=''
19160 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19161 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19163 (eval $ac_try) 2>&5
19164 ac_status=$?
19165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19166 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19168 (eval $ac_try) 2>&5
19169 ac_status=$?
19170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19171 test $ac_status = 0; }; }; then :
19172
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19174 $as_echo "yes" >&6; }
19175
19176 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
19177
19178
19179 else
19180 $as_echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19182
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19184 $as_echo "no" >&6; }
19185
19186
19187
19188 fi
19189 rm -Rf build
19190
19191
19192
19193
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
19195 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
19196
19197
19198 cat confdefs.h - <<_ACEOF >conftest.c
19199
19200
19201 #include <linux/fs.h>
19202
19203 struct dentry *inode_lookup(struct inode *inode,
19204 struct dentry *dentry, struct nameidata *nidata)
19205 { return NULL; }
19206
19207 static const struct inode_operations iops
19208 __attribute__ ((unused)) = {
19209 .lookup = inode_lookup,
19210 };
19211
19212 int
19213 main (void)
19214 {
19215
19216
19217 ;
19218 return 0;
19219 }
19220
19221 _ACEOF
19222
19223
19224
19225 cat - <<_ACEOF >conftest.h
19226
19227 _ACEOF
19228
19229
19230 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19231 echo "obj-m := conftest.o" >build/Makefile
19232 modpost_flag=''
19233 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19234 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19236 (eval $ac_try) 2>&5
19237 ac_status=$?
19238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19239 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19244 test $ac_status = 0; }; }; then :
19245
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19247 $as_echo "yes" >&6; }
19248
19249 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
19250
19251
19252 else
19253 $as_echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19255
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19257 $as_echo "no" >&6; }
19258
19259
19260
19261 fi
19262 rm -Rf build
19263
19264
19265
19266
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
19268 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
19269
19270
19271 cat confdefs.h - <<_ACEOF >conftest.c
19272
19273
19274 #include <linux/fs.h>
19275
19276 #ifdef HAVE_MKDIR_UMODE_T
19277 int inode_create(struct inode *inode ,struct dentry *dentry,
19278 umode_t umode, struct nameidata *nidata) { return 0; }
19279 #else
19280 int inode_create(struct inode *inode,struct dentry *dentry,
19281 int umode, struct nameidata * nidata) { return 0; }
19282 #endif
19283
19284 static const struct inode_operations
19285 iops __attribute__ ((unused)) = {
19286 .create = inode_create,
19287 };
19288
19289 int
19290 main (void)
19291 {
19292
19293
19294 ;
19295 return 0;
19296 }
19297
19298 _ACEOF
19299
19300
19301
19302 cat - <<_ACEOF >conftest.h
19303
19304 _ACEOF
19305
19306
19307 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19308 echo "obj-m := conftest.o" >build/Makefile
19309 modpost_flag=''
19310 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19311 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19313 (eval $ac_try) 2>&5
19314 ac_status=$?
19315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19316 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19318 (eval $ac_try) 2>&5
19319 ac_status=$?
19320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19321 test $ac_status = 0; }; }; then :
19322
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19324 $as_echo "yes" >&6; }
19325
19326 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
19327
19328
19329 else
19330 $as_echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19332
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19334 $as_echo "no" >&6; }
19335
19336
19337
19338 fi
19339 rm -Rf build
19340
19341
19342
19343
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
19345 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
19346
19347
19348 cat confdefs.h - <<_ACEOF >conftest.c
19349
19350
19351 #include <linux/fs.h>
19352 const char *get_link(struct dentry *de, struct inode *ip,
19353 struct delayed_call *done) { return "symlink"; }
19354 static struct inode_operations
19355 iops __attribute__ ((unused)) = {
19356 .get_link = get_link,
19357 };
19358
19359 int
19360 main (void)
19361 {
19362
19363
19364 ;
19365 return 0;
19366 }
19367
19368 _ACEOF
19369
19370
19371
19372 cat - <<_ACEOF >conftest.h
19373
19374 _ACEOF
19375
19376
19377 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19378 echo "obj-m := conftest.o" >build/Makefile
19379 modpost_flag=''
19380 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19381 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19383 (eval $ac_try) 2>&5
19384 ac_status=$?
19385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19386 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19388 (eval $ac_try) 2>&5
19389 ac_status=$?
19390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19391 test $ac_status = 0; }; }; then :
19392
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19394 $as_echo "yes" >&6; }
19395
19396 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
19397
19398
19399 else
19400 $as_echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19402
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19404 $as_echo "no" >&6; }
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
19406 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
19407
19408
19409 cat confdefs.h - <<_ACEOF >conftest.c
19410
19411
19412 #include <linux/fs.h>
19413 const char *get_link(struct dentry *de, struct
19414 inode *ip, void **cookie) { return "symlink"; }
19415 static struct inode_operations
19416 iops __attribute__ ((unused)) = {
19417 .get_link = get_link,
19418 };
19419
19420 int
19421 main (void)
19422 {
19423
19424
19425 ;
19426 return 0;
19427 }
19428
19429 _ACEOF
19430
19431
19432
19433 cat - <<_ACEOF >conftest.h
19434
19435 _ACEOF
19436
19437
19438 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19439 echo "obj-m := conftest.o" >build/Makefile
19440 modpost_flag=''
19441 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19442 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19444 (eval $ac_try) 2>&5
19445 ac_status=$?
19446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19447 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19449 (eval $ac_try) 2>&5
19450 ac_status=$?
19451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19452 test $ac_status = 0; }; }; then :
19453
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19455 $as_echo "yes" >&6; }
19456
19457 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
19458
19459
19460 else
19461 $as_echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19463
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19465 $as_echo "no" >&6; }
19466
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
19468 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
19469
19470
19471 cat confdefs.h - <<_ACEOF >conftest.c
19472
19473
19474 #include <linux/fs.h>
19475 const char *follow_link(struct dentry *de,
19476 void **cookie) { return "symlink"; }
19477 static struct inode_operations
19478 iops __attribute__ ((unused)) = {
19479 .follow_link = follow_link,
19480 };
19481
19482 int
19483 main (void)
19484 {
19485
19486
19487 ;
19488 return 0;
19489 }
19490
19491 _ACEOF
19492
19493
19494
19495 cat - <<_ACEOF >conftest.h
19496
19497 _ACEOF
19498
19499
19500 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19501 echo "obj-m := conftest.o" >build/Makefile
19502 modpost_flag=''
19503 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19504 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19506 (eval $ac_try) 2>&5
19507 ac_status=$?
19508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19509 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19511 (eval $ac_try) 2>&5
19512 ac_status=$?
19513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19514 test $ac_status = 0; }; }; then :
19515
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19517 $as_echo "yes" >&6; }
19518
19519 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
19520
19521
19522 else
19523 $as_echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19527 $as_echo "no" >&6; }
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
19529 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
19530
19531
19532 cat confdefs.h - <<_ACEOF >conftest.c
19533
19534
19535 #include <linux/fs.h>
19536 void *follow_link(struct dentry *de, struct
19537 nameidata *nd) { return (void *)NULL; }
19538 static struct inode_operations
19539 iops __attribute__ ((unused)) = {
19540 .follow_link = follow_link,
19541 };
19542
19543 int
19544 main (void)
19545 {
19546
19547
19548 ;
19549 return 0;
19550 }
19551
19552 _ACEOF
19553
19554
19555
19556 cat - <<_ACEOF >conftest.h
19557
19558 _ACEOF
19559
19560
19561 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19562 echo "obj-m := conftest.o" >build/Makefile
19563 modpost_flag=''
19564 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19565 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19567 (eval $ac_try) 2>&5
19568 ac_status=$?
19569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19570 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19572 (eval $ac_try) 2>&5
19573 ac_status=$?
19574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19575 test $ac_status = 0; }; }; then :
19576
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19578 $as_echo "yes" >&6; }
19579
19580 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
19581
19582
19583 else
19584 $as_echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19586
19587 as_fn_error $? "no; please file a bug report" "$LINENO" 5
19588
19589
19590
19591 fi
19592 rm -Rf build
19593
19594
19595
19596
19597
19598 fi
19599 rm -Rf build
19600
19601
19602
19603
19604
19605
19606 fi
19607 rm -Rf build
19608
19609
19610
19611
19612
19613 fi
19614 rm -Rf build
19615
19616
19617
19618
19619
19620
19621 cat confdefs.h - <<_ACEOF >conftest.c
19622
19623
19624 #if !defined(HAVE_GET_LINK_DELAYED)
19625 #error "Expecting get_link() delayed done"
19626 #endif
19627
19628 int
19629 main (void)
19630 {
19631
19632
19633 ;
19634 return 0;
19635 }
19636
19637 _ACEOF
19638
19639
19640
19641 cat - <<_ACEOF >conftest.h
19642
19643 _ACEOF
19644
19645
19646 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19647 echo "obj-m := conftest.o" >build/Makefile
19648 modpost_flag=''
19649 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19650 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19652 (eval $ac_try) 2>&5
19653 ac_status=$?
19654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19655 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19657 (eval $ac_try) 2>&5
19658 ac_status=$?
19659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19660 test $ac_status = 0; }; }; then :
19661
19662
19663 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
19664
19665
19666 else
19667 $as_echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19669
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
19671 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
19672
19673
19674 cat confdefs.h - <<_ACEOF >conftest.c
19675
19676
19677 #include <linux/fs.h>
19678 void put_link(struct inode *ip, void *cookie)
19679 { return; }
19680 static struct inode_operations
19681 iops __attribute__ ((unused)) = {
19682 .put_link = put_link,
19683 };
19684
19685 int
19686 main (void)
19687 {
19688
19689
19690 ;
19691 return 0;
19692 }
19693
19694 _ACEOF
19695
19696
19697
19698 cat - <<_ACEOF >conftest.h
19699
19700 _ACEOF
19701
19702
19703 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19704 echo "obj-m := conftest.o" >build/Makefile
19705 modpost_flag=''
19706 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19707 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19709 (eval $ac_try) 2>&5
19710 ac_status=$?
19711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19712 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19714 (eval $ac_try) 2>&5
19715 ac_status=$?
19716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19717 test $ac_status = 0; }; }; then :
19718
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19720 $as_echo "yes" >&6; }
19721
19722 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
19723
19724
19725 else
19726 $as_echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19728
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19730 $as_echo "no" >&6; }
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
19732 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
19733
19734
19735 cat confdefs.h - <<_ACEOF >conftest.c
19736
19737
19738 #include <linux/fs.h>
19739 void put_link(struct dentry *de, struct
19740 nameidata *nd, void *ptr) { return; }
19741 static struct inode_operations
19742 iops __attribute__ ((unused)) = {
19743 .put_link = put_link,
19744 };
19745
19746 int
19747 main (void)
19748 {
19749
19750
19751 ;
19752 return 0;
19753 }
19754
19755 _ACEOF
19756
19757
19758
19759 cat - <<_ACEOF >conftest.h
19760
19761 _ACEOF
19762
19763
19764 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19765 echo "obj-m := conftest.o" >build/Makefile
19766 modpost_flag=''
19767 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19768 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19770 (eval $ac_try) 2>&5
19771 ac_status=$?
19772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19773 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19775 (eval $ac_try) 2>&5
19776 ac_status=$?
19777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19778 test $ac_status = 0; }; }; then :
19779
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19781 $as_echo "yes" >&6; }
19782
19783 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
19784
19785
19786 else
19787 $as_echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19789
19790 as_fn_error $? "no; please file a bug report" "$LINENO" 5
19791
19792
19793
19794 fi
19795 rm -Rf build
19796
19797
19798
19799
19800
19801 fi
19802 rm -Rf build
19803
19804
19805
19806
19807
19808 fi
19809 rm -Rf build
19810
19811
19812
19813
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
19815 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
19816
19817
19818 cat confdefs.h - <<_ACEOF >conftest.c
19819
19820
19821 #include <linux/fs.h>
19822 void truncate_range(struct inode *inode, loff_t start,
19823 loff_t end) { return; }
19824 static struct inode_operations iops __attribute__ ((unused)) = {
19825 .truncate_range = truncate_range,
19826 };
19827
19828 int
19829 main (void)
19830 {
19831
19832
19833 ;
19834 return 0;
19835 }
19836
19837 _ACEOF
19838
19839
19840
19841 cat - <<_ACEOF >conftest.h
19842
19843 _ACEOF
19844
19845
19846 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19847 echo "obj-m := conftest.o" >build/Makefile
19848 modpost_flag=''
19849 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19850 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19855 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19857 (eval $ac_try) 2>&5
19858 ac_status=$?
19859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19860 test $ac_status = 0; }; }; then :
19861
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19863 $as_echo "yes" >&6; }
19864
19865 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
19866
19867
19868 else
19869 $as_echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19871
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19873 $as_echo "no" >&6; }
19874
19875
19876
19877 fi
19878 rm -Rf build
19879
19880
19881
19882
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
19884 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
19885
19886
19887 cat confdefs.h - <<_ACEOF >conftest.c
19888
19889
19890 #include <linux/dcache.h>
19891 struct vfsmount *d_automount(struct path *p) { return NULL; }
19892 struct dentry_operations dops __attribute__ ((unused)) = {
19893 .d_automount = d_automount,
19894 };
19895
19896 int
19897 main (void)
19898 {
19899
19900
19901 ;
19902 return 0;
19903 }
19904
19905 _ACEOF
19906
19907
19908
19909 cat - <<_ACEOF >conftest.h
19910
19911 _ACEOF
19912
19913
19914 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19915 echo "obj-m := conftest.o" >build/Makefile
19916 modpost_flag=''
19917 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19918 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19920 (eval $ac_try) 2>&5
19921 ac_status=$?
19922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19923 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19925 (eval $ac_try) 2>&5
19926 ac_status=$?
19927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19928 test $ac_status = 0; }; }; then :
19929
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19931 $as_echo "yes" >&6; }
19932
19933 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
19934
19935
19936 else
19937 $as_echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19939
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19941 $as_echo "no" >&6; }
19942
19943
19944
19945 fi
19946 rm -Rf build
19947
19948
19949
19950
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
19952 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
19953
19954
19955 cat confdefs.h - <<_ACEOF >conftest.c
19956
19957
19958 #include <linux/exportfs.h>
19959 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
19960 struct inode *parent) { return 0; }
19961 static struct export_operations eops __attribute__ ((unused))={
19962 .encode_fh = encode_fh,
19963 };
19964
19965 int
19966 main (void)
19967 {
19968
19969
19970 ;
19971 return 0;
19972 }
19973
19974 _ACEOF
19975
19976
19977
19978 cat - <<_ACEOF >conftest.h
19979
19980 _ACEOF
19981
19982
19983 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19984 echo "obj-m := conftest.o" >build/Makefile
19985 modpost_flag=''
19986 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19987 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19989 (eval $ac_try) 2>&5
19990 ac_status=$?
19991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19992 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19994 (eval $ac_try) 2>&5
19995 ac_status=$?
19996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19997 test $ac_status = 0; }; }; then :
19998
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20000 $as_echo "yes" >&6; }
20001
20002 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
20003
20004
20005 else
20006 $as_echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20008
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20010 $as_echo "no" >&6; }
20011
20012
20013
20014 fi
20015 rm -Rf build
20016
20017
20018
20019
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
20021 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
20022
20023
20024 cat confdefs.h - <<_ACEOF >conftest.c
20025
20026
20027 #include <linux/exportfs.h>
20028 int commit_metadata(struct inode *inode) { return 0; }
20029 static struct export_operations eops __attribute__ ((unused))={
20030 .commit_metadata = commit_metadata,
20031 };
20032
20033 int
20034 main (void)
20035 {
20036
20037
20038 ;
20039 return 0;
20040 }
20041
20042 _ACEOF
20043
20044
20045
20046 cat - <<_ACEOF >conftest.h
20047
20048 _ACEOF
20049
20050
20051 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20052 echo "obj-m := conftest.o" >build/Makefile
20053 modpost_flag=''
20054 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20055 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20057 (eval $ac_try) 2>&5
20058 ac_status=$?
20059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20060 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20062 (eval $ac_try) 2>&5
20063 ac_status=$?
20064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20065 test $ac_status = 0; }; }; then :
20066
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20068 $as_echo "yes" >&6; }
20069
20070 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
20071
20072
20073 else
20074 $as_echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20076
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20078 $as_echo "no" >&6; }
20079
20080
20081
20082 fi
20083 rm -Rf build
20084
20085
20086
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
20088 $as_echo_n "checking whether clear_inode() is available... " >&6; }
20089
20090
20091
20092 cat confdefs.h - <<_ACEOF >conftest.c
20093
20094
20095 #include <linux/fs.h>
20096
20097 int
20098 main (void)
20099 {
20100
20101 clear_inode(NULL);
20102
20103 ;
20104 return 0;
20105 }
20106
20107 _ACEOF
20108
20109
20110
20111 cat - <<_ACEOF >conftest.h
20112
20113 _ACEOF
20114
20115
20116 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20117 echo "obj-m := conftest.o" >build/Makefile
20118 modpost_flag=''
20119 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20120 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20125 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20127 (eval $ac_try) 2>&5
20128 ac_status=$?
20129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20130 test $ac_status = 0; }; }; then :
20131 rc=0
20132 else
20133 $as_echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20135 rc=1
20136
20137
20138 fi
20139 rm -Rf build
20140
20141
20142 if test $rc -ne 0; then :
20143
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20145 $as_echo "no" >&6; }
20146
20147 else
20148 if test "x$enable_linux_builtin" != xyes; then
20149
20150 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
20151 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20152 rc=$?
20153 if test $rc -ne 0; then
20154 export=0
20155 for file in fs/inode.c; do
20156 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
20157 "$LINUX/$file" 2>/dev/null
20158 rc=$?
20159 if test $rc -eq 0; then
20160 export=1
20161 break;
20162 fi
20163 done
20164 if test $export -eq 0; then :
20165 rc=1
20166 else :
20167 rc=0
20168 fi
20169 else :
20170 rc=0
20171 fi
20172
20173 fi
20174 if test $rc -ne 0; then :
20175
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20177 $as_echo "no" >&6; }
20178
20179 else :
20180
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20182 $as_echo "yes" >&6; }
20183
20184 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
20185
20186
20187 fi
20188 fi
20189
20190
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
20192 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
20193
20194
20195
20196 cat confdefs.h - <<_ACEOF >conftest.c
20197
20198
20199 #include <linux/fs.h>
20200
20201 int
20202 main (void)
20203 {
20204
20205 insert_inode_locked(NULL);
20206
20207 ;
20208 return 0;
20209 }
20210
20211 _ACEOF
20212
20213
20214
20215 cat - <<_ACEOF >conftest.h
20216
20217 _ACEOF
20218
20219
20220 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20221 echo "obj-m := conftest.o" >build/Makefile
20222 modpost_flag=''
20223 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20224 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20226 (eval $ac_try) 2>&5
20227 ac_status=$?
20228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20229 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20234 test $ac_status = 0; }; }; then :
20235 rc=0
20236 else
20237 $as_echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.$ac_ext >&5
20239 rc=1
20240
20241
20242 fi
20243 rm -Rf build
20244
20245
20246 if test $rc -ne 0; then :
20247
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20249 $as_echo "no" >&6; }
20250
20251 else
20252 if test "x$enable_linux_builtin" != xyes; then
20253
20254 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
20255 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20256 rc=$?
20257 if test $rc -ne 0; then
20258 export=0
20259 for file in fs/inode.c; do
20260 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
20261 "$LINUX/$file" 2>/dev/null
20262 rc=$?
20263 if test $rc -eq 0; then
20264 export=1
20265 break;
20266 fi
20267 done
20268 if test $export -eq 0; then :
20269 rc=1
20270 else :
20271 rc=0
20272 fi
20273 else :
20274 rc=0
20275 fi
20276
20277 fi
20278 if test $rc -ne 0; then :
20279
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20281 $as_echo "no" >&6; }
20282
20283 else :
20284
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20286 $as_echo "yes" >&6; }
20287
20288 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
20289
20290
20291 fi
20292 fi
20293
20294
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
20296 $as_echo_n "checking whether d_make_root() is available... " >&6; }
20297
20298
20299
20300 cat confdefs.h - <<_ACEOF >conftest.c
20301
20302
20303 #include <linux/dcache.h>
20304
20305 int
20306 main (void)
20307 {
20308
20309 d_make_root(NULL);
20310
20311 ;
20312 return 0;
20313 }
20314
20315 _ACEOF
20316
20317
20318
20319 cat - <<_ACEOF >conftest.h
20320
20321 _ACEOF
20322
20323
20324 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20325 echo "obj-m := conftest.o" >build/Makefile
20326 modpost_flag=''
20327 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20328 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20330 (eval $ac_try) 2>&5
20331 ac_status=$?
20332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20333 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20335 (eval $ac_try) 2>&5
20336 ac_status=$?
20337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20338 test $ac_status = 0; }; }; then :
20339 rc=0
20340 else
20341 $as_echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343 rc=1
20344
20345
20346 fi
20347 rm -Rf build
20348
20349
20350 if test $rc -ne 0; then :
20351
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20353 $as_echo "no" >&6; }
20354
20355 else
20356 if test "x$enable_linux_builtin" != xyes; then
20357
20358 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
20359 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20360 rc=$?
20361 if test $rc -ne 0; then
20362 export=0
20363 for file in fs/dcache.c; do
20364 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
20365 "$LINUX/$file" 2>/dev/null
20366 rc=$?
20367 if test $rc -eq 0; then
20368 export=1
20369 break;
20370 fi
20371 done
20372 if test $export -eq 0; then :
20373 rc=1
20374 else :
20375 rc=0
20376 fi
20377 else :
20378 rc=0
20379 fi
20380
20381 fi
20382 if test $rc -ne 0; then :
20383
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20385 $as_echo "no" >&6; }
20386
20387 else :
20388
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20390 $as_echo "yes" >&6; }
20391
20392 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
20393
20394
20395 fi
20396 fi
20397
20398
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
20400 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
20401
20402
20403
20404 cat confdefs.h - <<_ACEOF >conftest.c
20405
20406
20407 #include <linux/dcache.h>
20408
20409 int
20410 main (void)
20411 {
20412
20413 d_obtain_alias(NULL);
20414
20415 ;
20416 return 0;
20417 }
20418
20419 _ACEOF
20420
20421
20422
20423 cat - <<_ACEOF >conftest.h
20424
20425 _ACEOF
20426
20427
20428 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20429 echo "obj-m := conftest.o" >build/Makefile
20430 modpost_flag=''
20431 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20432 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20434 (eval $ac_try) 2>&5
20435 ac_status=$?
20436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20437 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20439 (eval $ac_try) 2>&5
20440 ac_status=$?
20441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20442 test $ac_status = 0; }; }; then :
20443 rc=0
20444 else
20445 $as_echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20447 rc=1
20448
20449
20450 fi
20451 rm -Rf build
20452
20453
20454 if test $rc -ne 0; then :
20455
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20457 $as_echo "no" >&6; }
20458
20459 else
20460 if test "x$enable_linux_builtin" != xyes; then
20461
20462 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
20463 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20464 rc=$?
20465 if test $rc -ne 0; then
20466 export=0
20467 for file in fs/dcache.c; do
20468 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
20469 "$LINUX/$file" 2>/dev/null
20470 rc=$?
20471 if test $rc -eq 0; then
20472 export=1
20473 break;
20474 fi
20475 done
20476 if test $export -eq 0; then :
20477 rc=1
20478 else :
20479 rc=0
20480 fi
20481 else :
20482 rc=0
20483 fi
20484
20485 fi
20486 if test $rc -ne 0; then :
20487
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20489 $as_echo "no" >&6; }
20490
20491 else :
20492
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20494 $as_echo "yes" >&6; }
20495
20496 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
20497
20498
20499 fi
20500 fi
20501
20502
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
20504 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
20505
20506
20507
20508 cat confdefs.h - <<_ACEOF >conftest.c
20509
20510
20511 #include <linux/dcache.h>
20512
20513 int
20514 main (void)
20515 {
20516
20517 struct inode *ip = NULL;
20518 d_prune_aliases(ip);
20519
20520 ;
20521 return 0;
20522 }
20523
20524 _ACEOF
20525
20526
20527
20528 cat - <<_ACEOF >conftest.h
20529
20530 _ACEOF
20531
20532
20533 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20534 echo "obj-m := conftest.o" >build/Makefile
20535 modpost_flag=''
20536 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20537 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20539 (eval $ac_try) 2>&5
20540 ac_status=$?
20541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20542 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20544 (eval $ac_try) 2>&5
20545 ac_status=$?
20546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20547 test $ac_status = 0; }; }; then :
20548 rc=0
20549 else
20550 $as_echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20552 rc=1
20553
20554
20555 fi
20556 rm -Rf build
20557
20558
20559 if test $rc -ne 0; then :
20560
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20562 $as_echo "no" >&6; }
20563
20564 else
20565 if test "x$enable_linux_builtin" != xyes; then
20566
20567 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
20568 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20569 rc=$?
20570 if test $rc -ne 0; then
20571 export=0
20572 for file in fs/dcache.c; do
20573 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
20574 "$LINUX/$file" 2>/dev/null
20575 rc=$?
20576 if test $rc -eq 0; then
20577 export=1
20578 break;
20579 fi
20580 done
20581 if test $export -eq 0; then :
20582 rc=1
20583 else :
20584 rc=0
20585 fi
20586 else :
20587 rc=0
20588 fi
20589
20590 fi
20591 if test $rc -ne 0; then :
20592
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20594 $as_echo "no" >&6; }
20595
20596 else :
20597
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20599 $as_echo "yes" >&6; }
20600
20601 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
20602
20603
20604 fi
20605 fi
20606
20607
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
20609 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
20610
20611
20612
20613 cat confdefs.h - <<_ACEOF >conftest.c
20614
20615
20616 #include <linux/dcache.h>
20617
20618 int
20619 main (void)
20620 {
20621
20622 d_set_d_op(NULL, NULL);
20623
20624 ;
20625 return 0;
20626 }
20627
20628 _ACEOF
20629
20630
20631
20632 cat - <<_ACEOF >conftest.h
20633
20634 _ACEOF
20635
20636
20637 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20638 echo "obj-m := conftest.o" >build/Makefile
20639 modpost_flag=''
20640 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20641 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20643 (eval $ac_try) 2>&5
20644 ac_status=$?
20645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20646 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20648 (eval $ac_try) 2>&5
20649 ac_status=$?
20650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20651 test $ac_status = 0; }; }; then :
20652 rc=0
20653 else
20654 $as_echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20656 rc=1
20657
20658
20659 fi
20660 rm -Rf build
20661
20662
20663 if test $rc -ne 0; then :
20664
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20666 $as_echo "no" >&6; }
20667
20668 else
20669 if test "x$enable_linux_builtin" != xyes; then
20670
20671 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
20672 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20673 rc=$?
20674 if test $rc -ne 0; then
20675 export=0
20676 for file in fs/dcache.c; do
20677 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
20678 "$LINUX/$file" 2>/dev/null
20679 rc=$?
20680 if test $rc -eq 0; then
20681 export=1
20682 break;
20683 fi
20684 done
20685 if test $export -eq 0; then :
20686 rc=1
20687 else :
20688 rc=0
20689 fi
20690 else :
20691 rc=0
20692 fi
20693
20694 fi
20695 if test $rc -ne 0; then :
20696
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20698 $as_echo "no" >&6; }
20699
20700 else :
20701
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20703 $as_echo "yes" >&6; }
20704
20705 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
20706
20707
20708 fi
20709 fi
20710
20711
20712
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
20714 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
20715
20716
20717 cat confdefs.h - <<_ACEOF >conftest.c
20718
20719
20720 #include <linux/dcache.h>
20721
20722 int revalidate (struct dentry *dentry,
20723 struct nameidata *nidata) { return 0; }
20724
20725 static const struct dentry_operations
20726 dops __attribute__ ((unused)) = {
20727 .d_revalidate = revalidate,
20728 };
20729
20730 int
20731 main (void)
20732 {
20733
20734
20735 ;
20736 return 0;
20737 }
20738
20739 _ACEOF
20740
20741
20742
20743 cat - <<_ACEOF >conftest.h
20744
20745 _ACEOF
20746
20747
20748 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20749 echo "obj-m := conftest.o" >build/Makefile
20750 modpost_flag=''
20751 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20752 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20754 (eval $ac_try) 2>&5
20755 ac_status=$?
20756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20757 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20759 (eval $ac_try) 2>&5
20760 ac_status=$?
20761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20762 test $ac_status = 0; }; }; then :
20763
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20765 $as_echo "yes" >&6; }
20766
20767 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
20768
20769
20770 else
20771 $as_echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20773
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20775 $as_echo "no" >&6; }
20776
20777
20778
20779 fi
20780 rm -Rf build
20781
20782
20783
20784
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
20786 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
20787
20788
20789 cat confdefs.h - <<_ACEOF >conftest.c
20790
20791
20792 #include <linux/dcache.h>
20793
20794 const struct dentry_operations test_d_op = {
20795 .d_revalidate = NULL,
20796 };
20797
20798 int
20799 main (void)
20800 {
20801
20802 struct dentry d __attribute__ ((unused));
20803
20804 d.d_op = &test_d_op;
20805
20806 ;
20807 return 0;
20808 }
20809
20810 _ACEOF
20811
20812
20813
20814 cat - <<_ACEOF >conftest.h
20815
20816 _ACEOF
20817
20818
20819 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20820 echo "obj-m := conftest.o" >build/Makefile
20821 modpost_flag=''
20822 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20823 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20825 (eval $ac_try) 2>&5
20826 ac_status=$?
20827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20828 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20830 (eval $ac_try) 2>&5
20831 ac_status=$?
20832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20833 test $ac_status = 0; }; }; then :
20834
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20836 $as_echo "yes" >&6; }
20837
20838 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
20839
20840
20841 else
20842 $as_echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20844
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20846 $as_echo "no" >&6; }
20847
20848
20849
20850 fi
20851 rm -Rf build
20852
20853
20854
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
20856 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
20857
20858
20859
20860 cat confdefs.h - <<_ACEOF >conftest.c
20861
20862
20863 #include <linux/fs.h>
20864
20865 int
20866 main (void)
20867 {
20868
20869 check_disk_size_change(NULL, NULL);
20870
20871 ;
20872 return 0;
20873 }
20874
20875 _ACEOF
20876
20877
20878
20879 cat - <<_ACEOF >conftest.h
20880
20881 _ACEOF
20882
20883
20884 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20885 echo "obj-m := conftest.o" >build/Makefile
20886 modpost_flag=''
20887 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20888 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20890 (eval $ac_try) 2>&5
20891 ac_status=$?
20892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20893 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20895 (eval $ac_try) 2>&5
20896 ac_status=$?
20897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20898 test $ac_status = 0; }; }; then :
20899 rc=0
20900 else
20901 $as_echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20903 rc=1
20904
20905
20906 fi
20907 rm -Rf build
20908
20909
20910 if test $rc -ne 0; then :
20911
20912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20913 $as_echo "no" >&6; }
20914
20915 else
20916 if test "x$enable_linux_builtin" != xyes; then
20917
20918 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
20919 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20920 rc=$?
20921 if test $rc -ne 0; then
20922 export=0
20923 for file in fs/block_dev.c; do
20924 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
20925 "$LINUX/$file" 2>/dev/null
20926 rc=$?
20927 if test $rc -eq 0; then
20928 export=1
20929 break;
20930 fi
20931 done
20932 if test $export -eq 0; then :
20933 rc=1
20934 else :
20935 rc=0
20936 fi
20937 else :
20938 rc=0
20939 fi
20940
20941 fi
20942 if test $rc -ne 0; then :
20943
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20945 $as_echo "no" >&6; }
20946
20947 else :
20948
20949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20950 $as_echo "yes" >&6; }
20951
20952 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
20953
20954
20955 fi
20956 fi
20957
20958
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
20960 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
20961
20962
20963
20964 cat confdefs.h - <<_ACEOF >conftest.c
20965
20966
20967 #include <linux/mm.h>
20968
20969 int
20970 main (void)
20971 {
20972
20973 truncate_setsize(NULL, 0);
20974
20975 ;
20976 return 0;
20977 }
20978
20979 _ACEOF
20980
20981
20982
20983 cat - <<_ACEOF >conftest.h
20984
20985 _ACEOF
20986
20987
20988 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20989 echo "obj-m := conftest.o" >build/Makefile
20990 modpost_flag=''
20991 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20992 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20994 (eval $ac_try) 2>&5
20995 ac_status=$?
20996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20997 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20999 (eval $ac_try) 2>&5
21000 ac_status=$?
21001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21002 test $ac_status = 0; }; }; then :
21003 rc=0
21004 else
21005 $as_echo "$as_me: failed program was:" >&5
21006 sed 's/^/| /' conftest.$ac_ext >&5
21007 rc=1
21008
21009
21010 fi
21011 rm -Rf build
21012
21013
21014 if test $rc -ne 0; then :
21015
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21017 $as_echo "no" >&6; }
21018
21019 else
21020 if test "x$enable_linux_builtin" != xyes; then
21021
21022 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
21023 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21024 rc=$?
21025 if test $rc -ne 0; then
21026 export=0
21027 for file in mm/truncate.c; do
21028 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
21029 "$LINUX/$file" 2>/dev/null
21030 rc=$?
21031 if test $rc -eq 0; then
21032 export=1
21033 break;
21034 fi
21035 done
21036 if test $export -eq 0; then :
21037 rc=1
21038 else :
21039 rc=0
21040 fi
21041 else :
21042 rc=0
21043 fi
21044
21045 fi
21046 if test $rc -ne 0; then :
21047
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21049 $as_echo "no" >&6; }
21050
21051 else :
21052
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21054 $as_echo "yes" >&6; }
21055
21056 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
21057
21058
21059 fi
21060 fi
21061
21062
21063
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
21065 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
21066
21067
21068 cat confdefs.h - <<_ACEOF >conftest.c
21069
21070
21071 #include <linux/security.h>
21072
21073 int
21074 main (void)
21075 {
21076
21077 struct inode *ip __attribute__ ((unused)) = NULL;
21078 struct inode *dip __attribute__ ((unused)) = NULL;
21079 const struct qstr *str __attribute__ ((unused)) = NULL;
21080 char *name __attribute__ ((unused)) = NULL;
21081 void *value __attribute__ ((unused)) = NULL;
21082 size_t len __attribute__ ((unused)) = 0;
21083
21084 security_inode_init_security(ip, dip, str, &name, &value, &len);
21085
21086 ;
21087 return 0;
21088 }
21089
21090 _ACEOF
21091
21092
21093
21094 cat - <<_ACEOF >conftest.h
21095
21096 _ACEOF
21097
21098
21099 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21100 echo "obj-m := conftest.o" >build/Makefile
21101 modpost_flag=''
21102 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21103 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21105 (eval $ac_try) 2>&5
21106 ac_status=$?
21107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21108 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21110 (eval $ac_try) 2>&5
21111 ac_status=$?
21112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21113 test $ac_status = 0; }; }; then :
21114
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21116 $as_echo "yes" >&6; }
21117
21118 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
21119
21120
21121 else
21122 $as_echo "$as_me: failed program was:" >&5
21123 sed 's/^/| /' conftest.$ac_ext >&5
21124
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21126 $as_echo "no" >&6; }
21127
21128
21129
21130 fi
21131 rm -Rf build
21132
21133
21134
21135
21136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
21137 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
21138
21139
21140 cat confdefs.h - <<_ACEOF >conftest.c
21141
21142
21143 #include <linux/security.h>
21144
21145 int
21146 main (void)
21147 {
21148
21149 struct inode *ip __attribute__ ((unused)) = NULL;
21150 struct inode *dip __attribute__ ((unused)) = NULL;
21151 const struct qstr *str __attribute__ ((unused)) = NULL;
21152 initxattrs func __attribute__ ((unused)) = NULL;
21153
21154 security_inode_init_security(ip, dip, str, func, NULL);
21155
21156 ;
21157 return 0;
21158 }
21159
21160 _ACEOF
21161
21162
21163
21164 cat - <<_ACEOF >conftest.h
21165
21166 _ACEOF
21167
21168
21169 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21170 echo "obj-m := conftest.o" >build/Makefile
21171 modpost_flag=''
21172 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21173 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21178 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21180 (eval $ac_try) 2>&5
21181 ac_status=$?
21182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21183 test $ac_status = 0; }; }; then :
21184
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21186 $as_echo "yes" >&6; }
21187
21188 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
21189
21190
21191 else
21192 $as_echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21194
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21196 $as_echo "no" >&6; }
21197
21198
21199
21200 fi
21201 rm -Rf build
21202
21203
21204
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
21206 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
21207
21208
21209
21210 cat confdefs.h - <<_ACEOF >conftest.c
21211
21212
21213 #include <linux/fs.h>
21214
21215 int
21216 main (void)
21217 {
21218
21219 mount_nodev(NULL, 0, NULL, NULL);
21220
21221 ;
21222 return 0;
21223 }
21224
21225 _ACEOF
21226
21227
21228
21229 cat - <<_ACEOF >conftest.h
21230
21231 _ACEOF
21232
21233
21234 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21235 echo "obj-m := conftest.o" >build/Makefile
21236 modpost_flag=''
21237 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21238 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21240 (eval $ac_try) 2>&5
21241 ac_status=$?
21242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21243 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21245 (eval $ac_try) 2>&5
21246 ac_status=$?
21247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21248 test $ac_status = 0; }; }; then :
21249 rc=0
21250 else
21251 $as_echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21253 rc=1
21254
21255
21256 fi
21257 rm -Rf build
21258
21259
21260 if test $rc -ne 0; then :
21261
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21263 $as_echo "no" >&6; }
21264
21265 else
21266 if test "x$enable_linux_builtin" != xyes; then
21267
21268 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
21269 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21270 rc=$?
21271 if test $rc -ne 0; then
21272 export=0
21273 for file in fs/super.c; do
21274 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
21275 "$LINUX/$file" 2>/dev/null
21276 rc=$?
21277 if test $rc -eq 0; then
21278 export=1
21279 break;
21280 fi
21281 done
21282 if test $export -eq 0; then :
21283 rc=1
21284 else :
21285 rc=0
21286 fi
21287 else :
21288 rc=0
21289 fi
21290
21291 fi
21292 if test $rc -ne 0; then :
21293
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21295 $as_echo "no" >&6; }
21296
21297 else :
21298
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21300 $as_echo "yes" >&6; }
21301
21302 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
21303
21304
21305 fi
21306 fi
21307
21308
21309
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
21311 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
21312
21313
21314 cat confdefs.h - <<_ACEOF >conftest.c
21315
21316
21317 #include <linux/fs.h>
21318
21319 int shrink(struct shrinker *s, struct shrink_control *sc)
21320 { return 0; }
21321
21322 static const struct super_block
21323 sb __attribute__ ((unused)) = {
21324 .s_shrink.shrink = shrink,
21325 .s_shrink.seeks = DEFAULT_SEEKS,
21326 .s_shrink.batch = 0,
21327 };
21328
21329 int
21330 main (void)
21331 {
21332
21333
21334 ;
21335 return 0;
21336 }
21337
21338 _ACEOF
21339
21340
21341
21342 cat - <<_ACEOF >conftest.h
21343
21344 _ACEOF
21345
21346
21347 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21348 echo "obj-m := conftest.o" >build/Makefile
21349 modpost_flag=''
21350 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21351 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21353 (eval $ac_try) 2>&5
21354 ac_status=$?
21355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21356 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21358 (eval $ac_try) 2>&5
21359 ac_status=$?
21360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21361 test $ac_status = 0; }; }; then :
21362
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21364 $as_echo "yes" >&6; }
21365
21366 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
21367
21368
21369
21370 else
21371 $as_echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21375 $as_echo "no" >&6; }
21376
21377
21378
21379 fi
21380 rm -Rf build
21381
21382
21383
21384
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
21386 $as_echo_n "checking whether shrink_control has nid... " >&6; }
21387
21388
21389 cat confdefs.h - <<_ACEOF >conftest.c
21390
21391
21392 #include <linux/fs.h>
21393
21394 int
21395 main (void)
21396 {
21397
21398 struct shrink_control sc __attribute__ ((unused));
21399 unsigned long scnidsize __attribute__ ((unused)) =
21400 sizeof(sc.nid);
21401
21402 ;
21403 return 0;
21404 }
21405
21406 _ACEOF
21407
21408
21409
21410 cat - <<_ACEOF >conftest.h
21411
21412 _ACEOF
21413
21414
21415 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21416 echo "obj-m := conftest.o" >build/Makefile
21417 modpost_flag=''
21418 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21419 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21421 (eval $ac_try) 2>&5
21422 ac_status=$?
21423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21424 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21429 test $ac_status = 0; }; }; then :
21430
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21432 $as_echo "yes" >&6; }
21433
21434 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
21435
21436
21437 else
21438 $as_echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21440
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21442 $as_echo "no" >&6; }
21443
21444
21445
21446 fi
21447 rm -Rf build
21448
21449
21450
21451
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
21453 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
21454
21455
21456 cat confdefs.h - <<_ACEOF >conftest.c
21457
21458
21459 #include <linux/fs.h>
21460
21461 int
21462 main (void)
21463 {
21464
21465 struct super_block sb __attribute__ ((unused));
21466
21467 INIT_LIST_HEAD(&sb.s_instances);
21468
21469 ;
21470 return 0;
21471 }
21472
21473 _ACEOF
21474
21475
21476
21477 cat - <<_ACEOF >conftest.h
21478
21479 _ACEOF
21480
21481
21482 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21483 echo "obj-m := conftest.o" >build/Makefile
21484 modpost_flag=''
21485 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21486 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21488 (eval $ac_try) 2>&5
21489 ac_status=$?
21490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21491 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21493 (eval $ac_try) 2>&5
21494 ac_status=$?
21495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21496 test $ac_status = 0; }; }; then :
21497
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21499 $as_echo "yes" >&6; }
21500
21501 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
21502
21503
21504 else
21505 $as_echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21507
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21509 $as_echo "no" >&6; }
21510
21511
21512
21513 fi
21514 rm -Rf build
21515
21516
21517
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
21519 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
21520
21521
21522 cat confdefs.h - <<_ACEOF >conftest.c
21523
21524
21525 #include <linux/fs.h>
21526
21527 int
21528 main (void)
21529 {
21530
21531 struct super_block sb __attribute__ ((unused));
21532 sb.s_d_op = NULL;
21533
21534 ;
21535 return 0;
21536 }
21537
21538 _ACEOF
21539
21540
21541
21542 cat - <<_ACEOF >conftest.h
21543
21544 _ACEOF
21545
21546
21547 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21548 echo "obj-m := conftest.o" >build/Makefile
21549 modpost_flag=''
21550 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21551 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21553 (eval $ac_try) 2>&5
21554 ac_status=$?
21555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21556 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21558 (eval $ac_try) 2>&5
21559 ac_status=$?
21560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21561 test $ac_status = 0; }; }; then :
21562
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21564 $as_echo "yes" >&6; }
21565
21566 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
21567
21568
21569 else
21570 $as_echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21572
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21574 $as_echo "no" >&6; }
21575
21576
21577
21578 fi
21579 rm -Rf build
21580
21581
21582
21583
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
21585 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
21586
21587
21588
21589 cat confdefs.h - <<_ACEOF >conftest.c
21590
21591
21592 #include <linux/backing-dev.h>
21593 struct backing_dev_info bdi;
21594
21595 int
21596 main (void)
21597 {
21598
21599 char *name = "bdi";
21600 int error __attribute__((unused)) =
21601 bdi_setup_and_register(&bdi, name);
21602
21603 ;
21604 return 0;
21605 }
21606
21607 _ACEOF
21608
21609
21610
21611 cat - <<_ACEOF >conftest.h
21612
21613 _ACEOF
21614
21615
21616 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21617 echo "obj-m := conftest.o" >build/Makefile
21618 modpost_flag=''
21619 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21620 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21622 (eval $ac_try) 2>&5
21623 ac_status=$?
21624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21625 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21627 (eval $ac_try) 2>&5
21628 ac_status=$?
21629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21630 test $ac_status = 0; }; }; then :
21631 rc=0
21632 else
21633 $as_echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.$ac_ext >&5
21635 rc=1
21636
21637
21638 fi
21639 rm -Rf build
21640
21641
21642 if test $rc -ne 0; then :
21643
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21645 $as_echo "no" >&6; }
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
21647 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
21648
21649
21650
21651 cat confdefs.h - <<_ACEOF >conftest.c
21652
21653
21654 #include <linux/backing-dev.h>
21655 struct backing_dev_info bdi;
21656
21657 int
21658 main (void)
21659 {
21660
21661 char *name = "bdi";
21662 unsigned int cap = BDI_CAP_MAP_COPY;
21663 int error __attribute__((unused)) =
21664 bdi_setup_and_register(&bdi, name, cap);
21665
21666 ;
21667 return 0;
21668 }
21669
21670 _ACEOF
21671
21672
21673
21674 cat - <<_ACEOF >conftest.h
21675
21676 _ACEOF
21677
21678
21679 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21680 echo "obj-m := conftest.o" >build/Makefile
21681 modpost_flag=''
21682 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21683 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21685 (eval $ac_try) 2>&5
21686 ac_status=$?
21687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21688 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21690 (eval $ac_try) 2>&5
21691 ac_status=$?
21692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21693 test $ac_status = 0; }; }; then :
21694 rc=0
21695 else
21696 $as_echo "$as_me: failed program was:" >&5
21697 sed 's/^/| /' conftest.$ac_ext >&5
21698 rc=1
21699
21700
21701 fi
21702 rm -Rf build
21703
21704
21705 if test $rc -ne 0; then :
21706
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21708 $as_echo "no" >&6; }
21709
21710 else
21711 if test "x$enable_linux_builtin" != xyes; then
21712
21713 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
21714 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21715 rc=$?
21716 if test $rc -ne 0; then
21717 export=0
21718 for file in mm/backing-dev.c; do
21719 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
21720 "$LINUX/$file" 2>/dev/null
21721 rc=$?
21722 if test $rc -eq 0; then
21723 export=1
21724 break;
21725 fi
21726 done
21727 if test $export -eq 0; then :
21728 rc=1
21729 else :
21730 rc=0
21731 fi
21732 else :
21733 rc=0
21734 fi
21735
21736 fi
21737 if test $rc -ne 0; then :
21738
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21740 $as_echo "no" >&6; }
21741
21742 else :
21743
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21745 $as_echo "yes" >&6; }
21746
21747 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
21748
21749
21750 fi
21751 fi
21752
21753
21754 else
21755 if test "x$enable_linux_builtin" != xyes; then
21756
21757 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
21758 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21759 rc=$?
21760 if test $rc -ne 0; then
21761 export=0
21762 for file in mm/backing-dev.c; do
21763 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
21764 "$LINUX/$file" 2>/dev/null
21765 rc=$?
21766 if test $rc -eq 0; then
21767 export=1
21768 break;
21769 fi
21770 done
21771 if test $export -eq 0; then :
21772 rc=1
21773 else :
21774 rc=0
21775 fi
21776 else :
21777 rc=0
21778 fi
21779
21780 fi
21781 if test $rc -ne 0; then :
21782
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21784 $as_echo "no" >&6; }
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
21786 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
21787
21788
21789
21790 cat confdefs.h - <<_ACEOF >conftest.c
21791
21792
21793 #include <linux/backing-dev.h>
21794 struct backing_dev_info bdi;
21795
21796 int
21797 main (void)
21798 {
21799
21800 char *name = "bdi";
21801 unsigned int cap = BDI_CAP_MAP_COPY;
21802 int error __attribute__((unused)) =
21803 bdi_setup_and_register(&bdi, name, cap);
21804
21805 ;
21806 return 0;
21807 }
21808
21809 _ACEOF
21810
21811
21812
21813 cat - <<_ACEOF >conftest.h
21814
21815 _ACEOF
21816
21817
21818 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21819 echo "obj-m := conftest.o" >build/Makefile
21820 modpost_flag=''
21821 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21822 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21824 (eval $ac_try) 2>&5
21825 ac_status=$?
21826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21827 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21832 test $ac_status = 0; }; }; then :
21833 rc=0
21834 else
21835 $as_echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21837 rc=1
21838
21839
21840 fi
21841 rm -Rf build
21842
21843
21844 if test $rc -ne 0; then :
21845
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21847 $as_echo "no" >&6; }
21848
21849 else
21850 if test "x$enable_linux_builtin" != xyes; then
21851
21852 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
21853 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21854 rc=$?
21855 if test $rc -ne 0; then
21856 export=0
21857 for file in mm/backing-dev.c; do
21858 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
21859 "$LINUX/$file" 2>/dev/null
21860 rc=$?
21861 if test $rc -eq 0; then
21862 export=1
21863 break;
21864 fi
21865 done
21866 if test $export -eq 0; then :
21867 rc=1
21868 else :
21869 rc=0
21870 fi
21871 else :
21872 rc=0
21873 fi
21874
21875 fi
21876 if test $rc -ne 0; then :
21877
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21879 $as_echo "no" >&6; }
21880
21881 else :
21882
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21884 $as_echo "yes" >&6; }
21885
21886 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
21887
21888
21889 fi
21890 fi
21891
21892
21893 else :
21894
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21896 $as_echo "yes" >&6; }
21897
21898 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
21899
21900
21901 fi
21902 fi
21903
21904
21905
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
21907 $as_echo_n "checking whether set_nlink() is available... " >&6; }
21908
21909
21910 cat confdefs.h - <<_ACEOF >conftest.c
21911
21912
21913 #include <linux/fs.h>
21914
21915 int
21916 main (void)
21917 {
21918
21919 struct inode node;
21920 unsigned int link = 0;
21921 (void) set_nlink(&node, link);
21922
21923 ;
21924 return 0;
21925 }
21926
21927 _ACEOF
21928
21929
21930
21931 cat - <<_ACEOF >conftest.h
21932
21933 _ACEOF
21934
21935
21936 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21937 echo "obj-m := conftest.o" >build/Makefile
21938 modpost_flag=''
21939 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21940 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21942 (eval $ac_try) 2>&5
21943 ac_status=$?
21944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21945 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21947 (eval $ac_try) 2>&5
21948 ac_status=$?
21949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21950 test $ac_status = 0; }; }; then :
21951
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21953 $as_echo "yes" >&6; }
21954
21955 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
21956
21957
21958 else
21959 $as_echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21961
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21963 $as_echo "no" >&6; }
21964
21965
21966
21967 fi
21968 rm -Rf build
21969
21970
21971
21972
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
21974 $as_echo_n "checking whether elevator_change() is available... " >&6; }
21975 tmp_flags="$EXTRA_KCFLAGS"
21976 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
21977
21978
21979 cat confdefs.h - <<_ACEOF >conftest.c
21980
21981
21982 #include <linux/blkdev.h>
21983 #include <linux/elevator.h>
21984
21985 int
21986 main (void)
21987 {
21988
21989 int ret;
21990 struct request_queue *q = NULL;
21991 char *elevator = NULL;
21992 ret = elevator_change(q, elevator);
21993
21994 ;
21995 return 0;
21996 }
21997
21998 _ACEOF
21999
22000
22001
22002 cat - <<_ACEOF >conftest.h
22003
22004 _ACEOF
22005
22006
22007 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22008 echo "obj-m := conftest.o" >build/Makefile
22009 modpost_flag=''
22010 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22011 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22013 (eval $ac_try) 2>&5
22014 ac_status=$?
22015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22016 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22018 (eval $ac_try) 2>&5
22019 ac_status=$?
22020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22021 test $ac_status = 0; }; }; then :
22022
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22024 $as_echo "yes" >&6; }
22025
22026 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
22027
22028
22029 else
22030 $as_echo "$as_me: failed program was:" >&5
22031 sed 's/^/| /' conftest.$ac_ext >&5
22032
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22034 $as_echo "no" >&6; }
22035
22036
22037
22038 fi
22039 rm -Rf build
22040
22041
22042 EXTRA_KCFLAGS="$tmp_flags"
22043
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
22045 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
22046
22047
22048 cat confdefs.h - <<_ACEOF >conftest.c
22049
22050
22051 #include <linux/fs.h>
22052
22053 int
22054 main (void)
22055 {
22056
22057 struct file_system_type *type = NULL;
22058 int (*test)(struct super_block *,void *) = NULL;
22059 int (*set)(struct super_block *,void *) = NULL;
22060 int flags = 0;
22061 void *data = NULL;
22062 (void) sget(type, test, set, flags, data);
22063
22064 ;
22065 return 0;
22066 }
22067
22068 _ACEOF
22069
22070
22071
22072 cat - <<_ACEOF >conftest.h
22073
22074 _ACEOF
22075
22076
22077 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22078 echo "obj-m := conftest.o" >build/Makefile
22079 modpost_flag=''
22080 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22081 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22083 (eval $ac_try) 2>&5
22084 ac_status=$?
22085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22086 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22088 (eval $ac_try) 2>&5
22089 ac_status=$?
22090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22091 test $ac_status = 0; }; }; then :
22092
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22094 $as_echo "yes" >&6; }
22095
22096 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
22097
22098
22099 else
22100 $as_echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22102
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22104 $as_echo "no" >&6; }
22105
22106
22107
22108 fi
22109 rm -Rf build
22110
22111
22112
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
22114 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
22115
22116
22117
22118 cat confdefs.h - <<_ACEOF >conftest.c
22119
22120
22121 #include <linux/fs.h>
22122
22123 int
22124 main (void)
22125 {
22126
22127 struct file *fp __attribute__ ((unused)) = NULL;
22128 struct inode *ip __attribute__ ((unused)) = NULL;
22129 loff_t offset __attribute__ ((unused)) = 0;
22130 loff_t maxsize __attribute__ ((unused)) = 0;
22131
22132 lseek_execute(fp, ip, offset, maxsize);
22133
22134 ;
22135 return 0;
22136 }
22137
22138 _ACEOF
22139
22140
22141
22142 cat - <<_ACEOF >conftest.h
22143
22144 _ACEOF
22145
22146
22147 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22148 echo "obj-m := conftest.o" >build/Makefile
22149 modpost_flag=''
22150 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22151 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22153 (eval $ac_try) 2>&5
22154 ac_status=$?
22155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22156 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22158 (eval $ac_try) 2>&5
22159 ac_status=$?
22160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22161 test $ac_status = 0; }; }; then :
22162 rc=0
22163 else
22164 $as_echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22166 rc=1
22167
22168
22169 fi
22170 rm -Rf build
22171
22172
22173 if test $rc -ne 0; then :
22174
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22176 $as_echo "no" >&6; }
22177
22178 else
22179 if test "x$enable_linux_builtin" != xyes; then
22180
22181 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
22182 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22183 rc=$?
22184 if test $rc -ne 0; then
22185 export=0
22186 for file in fs/read_write.c; do
22187 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
22188 "$LINUX/$file" 2>/dev/null
22189 rc=$?
22190 if test $rc -eq 0; then
22191 export=1
22192 break;
22193 fi
22194 done
22195 if test $export -eq 0; then :
22196 rc=1
22197 else :
22198 rc=0
22199 fi
22200 else :
22201 rc=0
22202 fi
22203
22204 fi
22205 if test $rc -ne 0; then :
22206
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22208 $as_echo "no" >&6; }
22209
22210 else :
22211
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22213 $as_echo "yes" >&6; }
22214
22215 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
22216
22217
22218 fi
22219 fi
22220
22221
22222
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
22224 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
22225
22226
22227 cat confdefs.h - <<_ACEOF >conftest.c
22228
22229
22230 #include <linux/fs.h>
22231 int iterate(struct file *filp, struct dir_context * context)
22232 { return 0; }
22233
22234 static const struct file_operations fops
22235 __attribute__ ((unused)) = {
22236 .iterate = iterate,
22237 };
22238
22239 int
22240 main (void)
22241 {
22242
22243
22244 ;
22245 return 0;
22246 }
22247
22248 _ACEOF
22249
22250
22251
22252 cat - <<_ACEOF >conftest.h
22253
22254 _ACEOF
22255
22256
22257 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22258 echo "obj-m := conftest.o" >build/Makefile
22259 modpost_flag=''
22260 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22261 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22263 (eval $ac_try) 2>&5
22264 ac_status=$?
22265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22266 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22268 (eval $ac_try) 2>&5
22269 ac_status=$?
22270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22271 test $ac_status = 0; }; }; then :
22272
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22274 $as_echo "yes" >&6; }
22275
22276 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
22277
22278
22279 else
22280 $as_echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22282
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22284 $as_echo "no" >&6; }
22285
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
22287 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
22288
22289
22290 cat confdefs.h - <<_ACEOF >conftest.c
22291
22292
22293 #include <linux/fs.h>
22294 int readdir(struct file *filp, void *entry, filldir_t func)
22295 { return 0; }
22296
22297 static const struct file_operations fops
22298 __attribute__ ((unused)) = {
22299 .readdir = readdir,
22300 };
22301
22302 int
22303 main (void)
22304 {
22305
22306
22307 ;
22308 return 0;
22309 }
22310
22311 _ACEOF
22312
22313
22314
22315 cat - <<_ACEOF >conftest.h
22316
22317 _ACEOF
22318
22319
22320 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22321 echo "obj-m := conftest.o" >build/Makefile
22322 modpost_flag=''
22323 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22324 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22326 (eval $ac_try) 2>&5
22327 ac_status=$?
22328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22329 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22331 (eval $ac_try) 2>&5
22332 ac_status=$?
22333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22334 test $ac_status = 0; }; }; then :
22335
22336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22337 $as_echo "yes" >&6; }
22338
22339 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
22340
22341
22342 else
22343 $as_echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.$ac_ext >&5
22345
22346 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
22347
22348
22349
22350 fi
22351 rm -Rf build
22352
22353
22354
22355
22356
22357
22358 fi
22359 rm -Rf build
22360
22361
22362
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
22364 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
22365
22366
22367 cat confdefs.h - <<_ACEOF >conftest.c
22368
22369
22370 #include <linux/fs.h>
22371
22372 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
22373 { return 0; }
22374 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
22375 { return 0; }
22376
22377 static const struct file_operations
22378 fops __attribute__ ((unused)) = {
22379 .read_iter = test_read,
22380 .write_iter = test_write,
22381 };
22382
22383 int
22384 main (void)
22385 {
22386
22387
22388 ;
22389 return 0;
22390 }
22391
22392 _ACEOF
22393
22394
22395
22396 cat - <<_ACEOF >conftest.h
22397
22398 _ACEOF
22399
22400
22401 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22402 echo "obj-m := conftest.o" >build/Makefile
22403 modpost_flag=''
22404 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22405 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22407 (eval $ac_try) 2>&5
22408 ac_status=$?
22409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22410 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22412 (eval $ac_try) 2>&5
22413 ac_status=$?
22414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22415 test $ac_status = 0; }; }; then :
22416
22417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22418 $as_echo "yes" >&6; }
22419
22420 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
22421
22422
22423 else
22424 $as_echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22426
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22428 $as_echo "no" >&6; }
22429
22430
22431
22432 fi
22433 rm -Rf build
22434
22435
22436
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
22438 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
22439
22440
22441 cat confdefs.h - <<_ACEOF >conftest.c
22442
22443
22444 #include <linux/fs.h>
22445
22446
22447 int
22448 main (void)
22449 {
22450
22451 struct kiocb *iocb = NULL;
22452 struct iov_iter *iov = NULL;
22453 generic_write_checks(iocb, iov);
22454
22455 ;
22456 return 0;
22457 }
22458
22459 _ACEOF
22460
22461
22462
22463 cat - <<_ACEOF >conftest.h
22464
22465 _ACEOF
22466
22467
22468 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22469 echo "obj-m := conftest.o" >build/Makefile
22470 modpost_flag=''
22471 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22472 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22474 (eval $ac_try) 2>&5
22475 ac_status=$?
22476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22477 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22479 (eval $ac_try) 2>&5
22480 ac_status=$?
22481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22482 test $ac_status = 0; }; }; then :
22483
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22485 $as_echo "yes" >&6; }
22486
22487 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
22488
22489
22490 else
22491 $as_echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22493
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22495 $as_echo "no" >&6; }
22496
22497
22498
22499 fi
22500 rm -Rf build
22501
22502
22503
22504
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
22506 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
22507
22508
22509 cat confdefs.h - <<_ACEOF >conftest.c
22510
22511
22512 #include <linux/pagemap.h>
22513
22514 int
22515 main (void)
22516 {
22517
22518 struct page page;
22519 kmap_atomic(&page);
22520
22521 ;
22522 return 0;
22523 }
22524
22525 _ACEOF
22526
22527
22528
22529 cat - <<_ACEOF >conftest.h
22530
22531 _ACEOF
22532
22533
22534 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22535 echo "obj-m := conftest.o" >build/Makefile
22536 modpost_flag=''
22537 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22538 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22540 (eval $ac_try) 2>&5
22541 ac_status=$?
22542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22543 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22545 (eval $ac_try) 2>&5
22546 ac_status=$?
22547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22548 test $ac_status = 0; }; }; then :
22549
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22551 $as_echo "yes" >&6; }
22552
22553 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
22554
22555
22556 else
22557 $as_echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22559
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22561 $as_echo "no" >&6; }
22562
22563
22564
22565 fi
22566 rm -Rf build
22567
22568
22569
22570
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
22572 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
22573
22574
22575 cat confdefs.h - <<_ACEOF >conftest.c
22576
22577
22578 #include <linux/namei.h>
22579
22580 int
22581 main (void)
22582 {
22583
22584 struct path *p = NULL;
22585 follow_down_one(p);
22586
22587 ;
22588 return 0;
22589 }
22590
22591 _ACEOF
22592
22593
22594
22595 cat - <<_ACEOF >conftest.h
22596
22597 _ACEOF
22598
22599
22600 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22601 echo "obj-m := conftest.o" >build/Makefile
22602 modpost_flag=''
22603 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22604 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22606 (eval $ac_try) 2>&5
22607 ac_status=$?
22608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22609 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22611 (eval $ac_try) 2>&5
22612 ac_status=$?
22613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22614 test $ac_status = 0; }; }; then :
22615
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22617 $as_echo "yes" >&6; }
22618
22619 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
22620
22621
22622 else
22623 $as_echo "$as_me: failed program was:" >&5
22624 sed 's/^/| /' conftest.$ac_ext >&5
22625
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22627 $as_echo "no" >&6; }
22628
22629
22630
22631 fi
22632 rm -Rf build
22633
22634
22635
22636
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
22638 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
22639
22640
22641 cat confdefs.h - <<_ACEOF >conftest.c
22642
22643
22644 #include <linux/blkdev.h>
22645
22646 int make_request(struct request_queue *q, struct bio *bio)
22647 {
22648 return (0);
22649 }
22650
22651 int
22652 main (void)
22653 {
22654
22655 blk_queue_make_request(NULL, &make_request);
22656
22657 ;
22658 return 0;
22659 }
22660
22661 _ACEOF
22662
22663
22664
22665 cat - <<_ACEOF >conftest.h
22666
22667 _ACEOF
22668
22669
22670 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22671 echo "obj-m := conftest.o" >build/Makefile
22672 modpost_flag=''
22673 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22674 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22676 (eval $ac_try) 2>&5
22677 ac_status=$?
22678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22679 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22681 (eval $ac_try) 2>&5
22682 ac_status=$?
22683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22684 test $ac_status = 0; }; }; then :
22685
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22687 $as_echo "yes" >&6; }
22688
22689 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
22690
22691
22692 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
22693
22694
22695 else
22696 $as_echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22698
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22700 $as_echo "no" >&6; }
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
22702 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
22703
22704
22705 cat confdefs.h - <<_ACEOF >conftest.c
22706
22707
22708 #include <linux/blkdev.h>
22709
22710 void make_request(struct request_queue *q, struct bio *bio)
22711 {
22712 return;
22713 }
22714
22715 int
22716 main (void)
22717 {
22718
22719 blk_queue_make_request(NULL, &make_request);
22720
22721 ;
22722 return 0;
22723 }
22724
22725 _ACEOF
22726
22727
22728
22729 cat - <<_ACEOF >conftest.h
22730
22731 _ACEOF
22732
22733
22734 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22735 echo "obj-m := conftest.o" >build/Makefile
22736 modpost_flag=''
22737 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22738 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22740 (eval $ac_try) 2>&5
22741 ac_status=$?
22742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22743 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22745 (eval $ac_try) 2>&5
22746 ac_status=$?
22747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22748 test $ac_status = 0; }; }; then :
22749
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22751 $as_echo "yes" >&6; }
22752
22753 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
22754
22755
22756 else
22757 $as_echo "$as_me: failed program was:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22759
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22761 $as_echo "no" >&6; }
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
22763 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
22764
22765
22766 cat confdefs.h - <<_ACEOF >conftest.c
22767
22768
22769 #include <linux/blkdev.h>
22770
22771 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
22772 {
22773 return (BLK_QC_T_NONE);
22774 }
22775
22776 int
22777 main (void)
22778 {
22779
22780 blk_queue_make_request(NULL, &make_request);
22781
22782 ;
22783 return 0;
22784 }
22785
22786 _ACEOF
22787
22788
22789
22790 cat - <<_ACEOF >conftest.h
22791
22792 _ACEOF
22793
22794
22795 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22796 echo "obj-m := conftest.o" >build/Makefile
22797 modpost_flag=''
22798 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22799 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22801 (eval $ac_try) 2>&5
22802 ac_status=$?
22803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22804 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22806 (eval $ac_try) 2>&5
22807 ac_status=$?
22808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22809 test $ac_status = 0; }; }; then :
22810
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22812 $as_echo "yes" >&6; }
22813
22814 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
22815
22816
22817 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
22818
22819
22820 else
22821 $as_echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22823
22824 as_fn_error $? "no - Please file a bug report at
22825 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
22826
22827
22828
22829 fi
22830 rm -Rf build
22831
22832
22833
22834
22835
22836 fi
22837 rm -Rf build
22838
22839
22840
22841
22842
22843 fi
22844 rm -Rf build
22845
22846
22847
22848
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
22850 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
22851
22852
22853
22854 cat confdefs.h - <<_ACEOF >conftest.c
22855
22856
22857 #include <linux/bio.h>
22858
22859 void (*generic_start_io_acct_f)(int, unsigned long,
22860 struct hd_struct *) = &generic_start_io_acct;
22861 void (*generic_end_io_acct_f)(int, struct hd_struct *,
22862 unsigned long) = &generic_end_io_acct;
22863
22864 int
22865 main (void)
22866 {
22867
22868 generic_start_io_acct(0, 0, NULL);
22869 generic_end_io_acct(0, NULL, 0);
22870
22871 ;
22872 return 0;
22873 }
22874
22875 _ACEOF
22876
22877
22878
22879 cat - <<_ACEOF >conftest.h
22880
22881 _ACEOF
22882
22883
22884 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22885 echo "obj-m := conftest.o" >build/Makefile
22886 modpost_flag=''
22887 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22888 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22890 (eval $ac_try) 2>&5
22891 ac_status=$?
22892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22893 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22895 (eval $ac_try) 2>&5
22896 ac_status=$?
22897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22898 test $ac_status = 0; }; }; then :
22899 rc=0
22900 else
22901 $as_echo "$as_me: failed program was:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22903 rc=1
22904
22905
22906 fi
22907 rm -Rf build
22908
22909
22910 if test $rc -ne 0; then :
22911
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22913 $as_echo "no" >&6; }
22914
22915 else
22916 if test "x$enable_linux_builtin" != xyes; then
22917
22918 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
22919 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22920 rc=$?
22921 if test $rc -ne 0; then
22922 export=0
22923 for file in block/bio.c; do
22924 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
22925 "$LINUX/$file" 2>/dev/null
22926 rc=$?
22927 if test $rc -eq 0; then
22928 export=1
22929 break;
22930 fi
22931 done
22932 if test $export -eq 0; then :
22933 rc=1
22934 else :
22935 rc=0
22936 fi
22937 else :
22938 rc=0
22939 fi
22940
22941 fi
22942 if test $rc -ne 0; then :
22943
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22945 $as_echo "no" >&6; }
22946
22947 else :
22948
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22950 $as_echo "yes" >&6; }
22951
22952 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
22953
22954
22955 fi
22956 fi
22957
22958
22959
22960 if test "$LINUX_OBJ" != "$LINUX"; then :
22961
22962 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
22963
22964 fi
22965
22966
22967
22968 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
22969 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
22970 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
22971 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
22972
22973
22974 ;;
22975 all)
22976
22977
22978 # Check whether --with-linux was given.
22979 if test "${with_linux+set}" = set; then :
22980 withval=$with_linux; kernelsrc="$withval"
22981 fi
22982
22983
22984
22985 # Check whether --with-linux-obj was given.
22986 if test "${with_linux_obj+set}" = set; then :
22987 withval=$with_linux_obj; kernelbuild="$withval"
22988 fi
22989
22990
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
22992 $as_echo_n "checking kernel source directory... " >&6; }
22993 if test -z "$kernelsrc"; then :
22994
22995 if test -e "/lib/modules/$(uname -r)/source"; then :
22996
22997 headersdir="/lib/modules/$(uname -r)/source"
22998 sourcelink=$(readlink -f "$headersdir")
22999
23000 elif test -e "/lib/modules/$(uname -r)/build"; then :
23001
23002 headersdir="/lib/modules/$(uname -r)/build"
23003 sourcelink=$(readlink -f "$headersdir")
23004
23005 else
23006
23007 sourcelink=$(ls -1d /usr/src/kernels/* \
23008 /usr/src/linux-* \
23009 2>/dev/null | grep -v obj | tail -1)
23010
23011 fi
23012
23013 if test -n "$sourcelink" && test -e ${sourcelink}; then :
23014
23015 kernelsrc=`readlink -f ${sourcelink}`
23016
23017 else
23018
23019 kernelsrc="Not found"
23020
23021 fi
23022
23023 else
23024
23025 if test "$kernelsrc" = "NONE"; then :
23026
23027 kernsrcver=NONE
23028
23029 fi
23030
23031 fi
23032
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
23034 $as_echo "$kernelsrc" >&6; }
23035 if test ! -d "$kernelsrc"; then :
23036
23037 as_fn_error $? "
23038 *** Please make sure the kernel devel package for your distribution
23039 *** is installed and then try again. If that fails, you can specify the
23040 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
23041
23042 fi
23043
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
23045 $as_echo_n "checking kernel build directory... " >&6; }
23046 if test -z "$kernelbuild"; then :
23047
23048 if test -e "/lib/modules/$(uname -r)/build"; then :
23049
23050 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
23051
23052 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
23053
23054 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
23055
23056 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
23057
23058 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
23059
23060 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
23061
23062 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
23063
23064 else
23065
23066 kernelbuild=${kernelsrc}
23067
23068 fi
23069
23070 fi
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
23072 $as_echo "$kernelbuild" >&6; }
23073
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
23075 $as_echo_n "checking kernel source version... " >&6; }
23076 utsrelease1=$kernelbuild/include/linux/version.h
23077 utsrelease2=$kernelbuild/include/linux/utsrelease.h
23078 utsrelease3=$kernelbuild/include/generated/utsrelease.h
23079 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
23080
23081 utsrelease=linux/version.h
23082
23083 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
23084
23085 utsrelease=linux/utsrelease.h
23086
23087 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
23088
23089 utsrelease=generated/utsrelease.h
23090
23091 fi
23092
23093 if test "$utsrelease"; then :
23094
23095 kernsrcver=`(echo "#include <$utsrelease>";
23096 echo "kernsrcver=UTS_RELEASE") |
23097 cpp -I $kernelbuild/include |
23098 grep "^kernsrcver=" | cut -d \" -f 2`
23099
23100 if test -z "$kernsrcver"; then :
23101
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
23103 $as_echo "Not found" >&6; }
23104 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
23105
23106 fi
23107
23108 else
23109
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
23111 $as_echo "Not found" >&6; }
23112 if test "x$enable_linux_builtin" != xyes; then
23113 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
23114 else
23115 as_fn_error $? "
23116 *** Cannot find UTS_RELEASE definition.
23117 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
23118 fi
23119
23120 fi
23121
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
23123 $as_echo "$kernsrcver" >&6; }
23124
23125 LINUX=${kernelsrc}
23126 LINUX_OBJ=${kernelbuild}
23127 LINUX_VERSION=${kernsrcver}
23128
23129
23130
23131
23132
23133
23134 modpost=$LINUX/scripts/Makefile.modpost
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
23136 $as_echo_n "checking kernel file name for module symbols... " >&6; }
23137 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
23138
23139 if grep -q Modules.symvers $modpost; then :
23140
23141 LINUX_SYMBOLS=Modules.symvers
23142
23143 else
23144
23145 LINUX_SYMBOLS=Module.symvers
23146
23147 fi
23148
23149 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
23150
23151 as_fn_error $? "
23152 *** Please make sure the kernel devel package for your distribution
23153 *** is installed. If you are building with a custom kernel, make sure the
23154 *** kernel is configured, built, and the '--with-linux=PATH' configure
23155 *** option refers to the location of the kernel source." "$LINENO" 5
23156
23157 fi
23158
23159 else
23160
23161 LINUX_SYMBOLS=NONE
23162
23163 fi
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
23165 $as_echo "$LINUX_SYMBOLS" >&6; }
23166
23167
23168
23169
23170
23171 # Check whether --with-spl was given.
23172 if test "${with_spl+set}" = set; then :
23173 withval=$with_spl; splsrc="$withval"
23174 fi
23175
23176
23177
23178 # Check whether --with-spl-obj was given.
23179 if test "${with_spl_obj+set}" = set; then :
23180 withval=$with_spl_obj; splbuild="$withval"
23181 fi
23182
23183
23184
23185 # Check whether --with-spl-timeout was given.
23186 if test "${with_spl_timeout+set}" = set; then :
23187 withval=$with_spl_timeout; timeout="$withval"
23188 else
23189 timeout=0
23190 fi
23191
23192
23193 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
23194 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
23195 splsrc2="/usr/local/src/spl-${VERSION}"
23196 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
23197 splsrc4="/usr/src/spl-${VERSION}"
23198 splsrc5="../spl/"
23199 splsrc6="$LINUX"
23200
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
23202 $as_echo_n "checking spl source directory... " >&6; }
23203 if test -z "${splsrc}"; then :
23204
23205 if test -e "${splsrc0}/spl.release.in"; then :
23206
23207 splsrc=${splsrc0}
23208
23209 elif test -e "${splsrc1}/spl.release.in"; then :
23210
23211 splsrc=${splsrc1}
23212
23213 elif test -e "${splsrc2}/spl.release.in"; then :
23214
23215 splsrc=${splsrc2}
23216
23217 elif test -e "${splsrc3}/spl.release.in"; then :
23218
23219 splsrc=$(readlink -f "${splsrc3}")
23220
23221 elif test -e "${splsrc4}/spl.release.in" ; then :
23222
23223 splsrc=${splsrc4}
23224
23225 elif test -e "${splsrc5}/spl.release.in"; then :
23226
23227 splsrc=$(readlink -f "${splsrc5}")
23228
23229 elif test -e "${splsrc6}/spl.release.in" ; then :
23230
23231 splsrc=${splsrc6}
23232
23233 else
23234
23235 splsrc="Not found"
23236
23237 fi
23238
23239 else
23240
23241 if test "$splsrc" = "NONE"; then :
23242
23243 splbuild=NONE
23244 splsrcver=NONE
23245
23246 fi
23247
23248 fi
23249
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
23251 $as_echo "$splsrc" >&6; }
23252 if test ! -e "$splsrc/spl.release.in"; then :
23253
23254 as_fn_error $? "
23255 *** Please make sure the kmod spl devel package for your distribution
23256 *** is installed then try again. If that fails you can specify the
23257 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
23258
23259 fi
23260
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
23262 $as_echo_n "checking spl build directory... " >&6; }
23263 while true; do
23264 if test -z "$splbuild"; then :
23265
23266 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
23267
23268 splbuild="${splsrc}/${LINUX_VERSION}"
23269
23270 elif test -e "${splsrc}/spl_config.h" ; then :
23271
23272 splbuild="${splsrc}"
23273
23274 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
23275
23276 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
23277
23278 else
23279
23280 splbuild="Not found"
23281
23282 fi
23283
23284 fi
23285 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
23286
23287 break;
23288
23289 else
23290
23291 sleep 1
23292 timeout=$((timeout-1))
23293
23294 fi
23295 done
23296
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
23298 $as_echo "$splbuild" >&6; }
23299 if ! test -e "$splbuild/spl_config.h"; then :
23300
23301 as_fn_error $? "
23302 *** Please make sure the kmod spl devel <kernel> package for your
23303 *** distribution is installed then try again. If that fails you
23304 *** can specify the location of the spl objects with the
23305 *** '--with-spl-obj=PATH' option." "$LINENO" 5
23306
23307 fi
23308
23309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
23310 $as_echo_n "checking spl source version... " >&6; }
23311 if test -r $splbuild/spl_config.h &&
23312 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
23313
23314
23315 splsrcver=`(echo "#include <spl_config.h>";
23316 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
23317 cpp -I $splbuild |
23318 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
23319
23320 fi
23321
23322 if test -z "$splsrcver"; then :
23323
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
23325 $as_echo "Not found" >&6; }
23326 as_fn_error $? "
23327 *** Cannot determine the version of the spl source.
23328 *** Please prepare the spl source before running this script" "$LINENO" 5
23329
23330 fi
23331
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
23333 $as_echo "$splsrcver" >&6; }
23334
23335 SPL=${splsrc}
23336 SPL_OBJ=${splbuild}
23337 SPL_VERSION=${splsrcver}
23338
23339
23340
23341
23342
23343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
23344 $as_echo_n "checking spl file name for module symbols... " >&6; }
23345 SPL_SYMBOLS=NONE
23346
23347 while true; do
23348 if test -r $SPL_OBJ/Module.symvers; then :
23349
23350 SPL_SYMBOLS=Module.symvers
23351
23352 elif test -r $SPL_OBJ/Modules.symvers; then :
23353
23354 SPL_SYMBOLS=Modules.symvers
23355
23356 elif test -r $SPL_OBJ/module/Module.symvers; then :
23357
23358 SPL_SYMBOLS=Module.symvers
23359
23360 elif test -r $SPL_OBJ/module/Modules.symvers; then :
23361
23362 SPL_SYMBOLS=Modules.symvers
23363
23364 fi
23365
23366 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
23367
23368 break;
23369
23370 else
23371
23372 sleep 1
23373 timeout=$((timeout-1))
23374
23375 fi
23376 done
23377
23378 if test "$SPL_SYMBOLS" = NONE; then :
23379
23380 SPL_SYMBOLS=$LINUX_SYMBOLS
23381
23382 fi
23383
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
23385 $as_echo "$SPL_SYMBOLS" >&6; }
23386
23387
23388
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
23390 $as_echo_n "checking whether modules can be built... " >&6; }
23391
23392
23393 cat confdefs.h - <<_ACEOF >conftest.c
23394
23395
23396 int
23397 main (void)
23398 {
23399
23400 ;
23401 return 0;
23402 }
23403
23404 _ACEOF
23405
23406
23407
23408 cat - <<_ACEOF >conftest.h
23409
23410 _ACEOF
23411
23412
23413 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23414 echo "obj-m := conftest.o" >build/Makefile
23415 modpost_flag=''
23416 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23417 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23419 (eval $ac_try) 2>&5
23420 ac_status=$?
23421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23422 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23424 (eval $ac_try) 2>&5
23425 ac_status=$?
23426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23427 test $ac_status = 0; }; }; then :
23428
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23430 $as_echo "yes" >&6; }
23431
23432 else
23433 $as_echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23435
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23437 $as_echo "no" >&6; }
23438 if test "x$enable_linux_builtin" != xyes; then
23439 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
23440 else
23441 as_fn_error $? "
23442 *** Unable to build an empty module.
23443 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
23444 fi
23445
23446
23447
23448 fi
23449 rm -Rf build
23450
23451
23452
23453
23454 if test "x$cross_compiling" != xyes; then :
23455
23456 if test "$cross_compiling" = yes; then :
23457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23459 as_fn_error $? "cannot run test program while cross compiling
23460 See \`config.log' for more details" "$LINENO" 5; }
23461 else
23462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23463 /* end confdefs.h. */
23464
23465
23466 #include "$LINUX/include/linux/license.h"
23467
23468 int
23469 main ()
23470 {
23471
23472 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
23473
23474 ;
23475 return 0;
23476 }
23477
23478 _ACEOF
23479 if ac_fn_c_try_run "$LINENO"; then :
23480
23481
23482 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
23483
23484
23485 fi
23486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23487 conftest.$ac_objext conftest.beam conftest.$ac_ext
23488 fi
23489
23490
23491 fi
23492
23493
23494
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
23496 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
23497
23498
23499 cat confdefs.h - <<_ACEOF >conftest.c
23500
23501
23502 #include <linux/module.h>
23503
23504 int
23505 main (void)
23506 {
23507
23508 #ifndef CONFIG_DEBUG_LOCK_ALLOC
23509 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
23510 #endif
23511
23512 ;
23513 return 0;
23514 }
23515
23516 _ACEOF
23517
23518
23519
23520 cat - <<_ACEOF >conftest.h
23521
23522 _ACEOF
23523
23524
23525 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23526 echo "obj-m := conftest.o" >build/Makefile
23527 modpost_flag=''
23528 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23529 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23531 (eval $ac_try) 2>&5
23532 ac_status=$?
23533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23534 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23536 (eval $ac_try) 2>&5
23537 ac_status=$?
23538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23539 test $ac_status = 0; }; }; then :
23540
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23542 $as_echo "yes" >&6; }
23543
23544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
23545 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
23546 tmp_flags="$EXTRA_KCFLAGS"
23547
23548
23549 cat confdefs.h - <<_ACEOF >conftest.c
23550
23551
23552 #include <linux/module.h>
23553 #include <linux/mutex.h>
23554
23555 MODULE_LICENSE("$ZFS_META_LICENSE");
23556
23557 int
23558 main (void)
23559 {
23560
23561 struct mutex lock;
23562
23563 mutex_init(&lock);
23564 mutex_lock(&lock);
23565 mutex_unlock(&lock);
23566
23567 ;
23568 return 0;
23569 }
23570
23571 _ACEOF
23572
23573
23574
23575 cat - <<_ACEOF >conftest.h
23576
23577 _ACEOF
23578
23579
23580 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23581 echo "obj-m := conftest.o" >build/Makefile
23582 modpost_flag=''
23583 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23584 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23586 (eval $ac_try) 2>&5
23587 ac_status=$?
23588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23589 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23591 (eval $ac_try) 2>&5
23592 ac_status=$?
23593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23594 test $ac_status = 0; }; }; then :
23595
23596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23597 $as_echo "no" >&6; }
23598
23599 else
23600 $as_echo "$as_me: failed program was:" >&5
23601 sed 's/^/| /' conftest.$ac_ext >&5
23602
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23604 $as_echo "yes" >&6; }
23605 as_fn_error $? "
23606 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
23607 *** with the CDDL license and will prevent the module linking stage
23608 *** from succeeding. You must rebuild your kernel without this
23609 *** option enabled." "$LINENO" 5
23610
23611
23612
23613 fi
23614 rm -Rf build
23615
23616
23617 EXTRA_KCFLAGS="$tmp_flags"
23618
23619
23620 else
23621 $as_echo "$as_me: failed program was:" >&5
23622 sed 's/^/| /' conftest.$ac_ext >&5
23623
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23625 $as_echo "no" >&6; }
23626
23627
23628
23629
23630 fi
23631 rm -Rf build
23632
23633
23634
23635
23636
23637
23638 tmp_flags="$EXTRA_KCFLAGS"
23639 EXTRA_KCFLAGS="-I\$(src)"
23640
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
23642 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
23643
23644
23645 cat confdefs.h - <<_ACEOF >conftest.c
23646
23647
23648 #include <linux/module.h>
23649 MODULE_LICENSE(ZFS_META_LICENSE);
23650
23651 #define CREATE_TRACE_POINTS
23652 #include "conftest.h"
23653
23654 int
23655 main (void)
23656 {
23657
23658 trace_zfs_autoconf_event_one(1UL);
23659 trace_zfs_autoconf_event_two(2UL);
23660
23661 ;
23662 return 0;
23663 }
23664
23665 _ACEOF
23666
23667
23668
23669 cat - <<_ACEOF >conftest.h
23670
23671 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
23672 #define _CONFTEST_H
23673
23674 #undef TRACE_SYSTEM
23675 #define TRACE_SYSTEM zfs
23676 #include <linux/tracepoint.h>
23677
23678 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
23679 TP_PROTO(unsigned long i),
23680 TP_ARGS(i),
23681 TP_STRUCT__entry(
23682 __field(unsigned long, i)
23683 ),
23684 TP_fast_assign(
23685 __entry->i = i;
23686 ),
23687 TP_printk("i = %lu", __entry->i)
23688 );
23689
23690 #define DEFINE_AUTOCONF_EVENT(name) \
23691 DEFINE_EVENT(zfs_autoconf_event_class, name, \
23692 TP_PROTO(unsigned long i), \
23693 TP_ARGS(i))
23694 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
23695 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
23696
23697 #endif /* _CONFTEST_H */
23698
23699 #undef TRACE_INCLUDE_PATH
23700 #define TRACE_INCLUDE_PATH .
23701 #define TRACE_INCLUDE_FILE conftest
23702 #include <trace/define_trace.h>
23703
23704 _ACEOF
23705
23706
23707 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23708 echo "obj-m := conftest.o" >build/Makefile
23709 modpost_flag=''
23710 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23711 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23713 (eval $ac_try) 2>&5
23714 ac_status=$?
23715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23716 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23718 (eval $ac_try) 2>&5
23719 ac_status=$?
23720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23721 test $ac_status = 0; }; }; then :
23722
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23724 $as_echo "yes" >&6; }
23725
23726 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
23727
23728
23729 else
23730 $as_echo "$as_me: failed program was:" >&5
23731 sed 's/^/| /' conftest.$ac_ext >&5
23732
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23734 $as_echo "no" >&6; }
23735
23736
23737
23738 fi
23739 rm -Rf build
23740
23741
23742 EXTRA_KCFLAGS="$tmp_flags"
23743
23744
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
23746 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
23747
23748
23749 cat confdefs.h - <<_ACEOF >conftest.c
23750
23751
23752 #include <linux/sched.h>
23753
23754 int
23755 main (void)
23756 {
23757
23758 current->bio_tail = (struct bio **) NULL;
23759
23760 ;
23761 return 0;
23762 }
23763
23764 _ACEOF
23765
23766
23767
23768 cat - <<_ACEOF >conftest.h
23769
23770 _ACEOF
23771
23772
23773 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23774 echo "obj-m := conftest.o" >build/Makefile
23775 modpost_flag=''
23776 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23777 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23779 (eval $ac_try) 2>&5
23780 ac_status=$?
23781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23782 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23784 (eval $ac_try) 2>&5
23785 ac_status=$?
23786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23787 test $ac_status = 0; }; }; then :
23788
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23790 $as_echo "yes" >&6; }
23791
23792 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
23793
23794
23795 else
23796 $as_echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23798
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23800 $as_echo "no" >&6; }
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
23802 $as_echo_n "checking whether current->bio_list exists... " >&6; }
23803
23804
23805 cat confdefs.h - <<_ACEOF >conftest.c
23806
23807
23808 #include <linux/sched.h>
23809
23810 int
23811 main (void)
23812 {
23813
23814 current->bio_list = (struct bio_list *) NULL;
23815
23816 ;
23817 return 0;
23818 }
23819
23820 _ACEOF
23821
23822
23823
23824 cat - <<_ACEOF >conftest.h
23825
23826 _ACEOF
23827
23828
23829 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23830 echo "obj-m := conftest.o" >build/Makefile
23831 modpost_flag=''
23832 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23833 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23835 (eval $ac_try) 2>&5
23836 ac_status=$?
23837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23838 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23840 (eval $ac_try) 2>&5
23841 ac_status=$?
23842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23843 test $ac_status = 0; }; }; then :
23844
23845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23846 $as_echo "yes" >&6; }
23847
23848 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
23849
23850
23851 else
23852 $as_echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23854
23855 as_fn_error $? "no - Please file a bug report at
23856 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
23857
23858
23859
23860 fi
23861 rm -Rf build
23862
23863
23864
23865
23866
23867 fi
23868 rm -Rf build
23869
23870
23871
23872
23873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
23874 $as_echo_n "checking block device operation prototypes... " >&6; }
23875 tmp_flags="$EXTRA_KCFLAGS"
23876 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
23877
23878
23879 cat confdefs.h - <<_ACEOF >conftest.c
23880
23881
23882 #include <linux/blkdev.h>
23883
23884 int blk_open(struct block_device *bdev, fmode_t mode)
23885 { return 0; }
23886 int blk_ioctl(struct block_device *bdev, fmode_t mode,
23887 unsigned x, unsigned long y) { return 0; }
23888 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
23889 unsigned x, unsigned long y) { return 0; }
23890
23891 static const struct block_device_operations
23892 bops __attribute__ ((unused)) = {
23893 .open = blk_open,
23894 .release = NULL,
23895 .ioctl = blk_ioctl,
23896 .compat_ioctl = blk_compat_ioctl,
23897 };
23898
23899 int
23900 main (void)
23901 {
23902
23903
23904 ;
23905 return 0;
23906 }
23907
23908 _ACEOF
23909
23910
23911
23912 cat - <<_ACEOF >conftest.h
23913
23914 _ACEOF
23915
23916
23917 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23918 echo "obj-m := conftest.o" >build/Makefile
23919 modpost_flag=''
23920 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23921 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23923 (eval $ac_try) 2>&5
23924 ac_status=$?
23925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23926 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23928 (eval $ac_try) 2>&5
23929 ac_status=$?
23930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23931 test $ac_status = 0; }; }; then :
23932
23933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
23934 $as_echo "struct block_device" >&6; }
23935
23936 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
23937
23938
23939 else
23940 $as_echo "$as_me: failed program was:" >&5
23941 sed 's/^/| /' conftest.$ac_ext >&5
23942
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
23944 $as_echo "struct inode" >&6; }
23945
23946
23947
23948 fi
23949 rm -Rf build
23950
23951
23952 EXTRA_KCFLAGS="$tmp_flags"
23953
23954
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
23956 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
23957 tmp_flags="$EXTRA_KCFLAGS"
23958 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
23959
23960
23961 cat confdefs.h - <<_ACEOF >conftest.c
23962
23963
23964 #include <linux/blkdev.h>
23965
23966 void blk_release(struct gendisk *g, fmode_t mode) { return; }
23967
23968 static const struct block_device_operations
23969 bops __attribute__ ((unused)) = {
23970 .open = NULL,
23971 .release = blk_release,
23972 .ioctl = NULL,
23973 .compat_ioctl = NULL,
23974 };
23975
23976 int
23977 main (void)
23978 {
23979
23980
23981 ;
23982 return 0;
23983 }
23984
23985 _ACEOF
23986
23987
23988
23989 cat - <<_ACEOF >conftest.h
23990
23991 _ACEOF
23992
23993
23994 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23995 echo "obj-m := conftest.o" >build/Makefile
23996 modpost_flag=''
23997 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23998 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24000 (eval $ac_try) 2>&5
24001 ac_status=$?
24002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24003 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24005 (eval $ac_try) 2>&5
24006 ac_status=$?
24007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24008 test $ac_status = 0; }; }; then :
24009
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
24011 $as_echo "void" >&6; }
24012
24013 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
24014
24015
24016 else
24017 $as_echo "$as_me: failed program was:" >&5
24018 sed 's/^/| /' conftest.$ac_ext >&5
24019
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
24021 $as_echo "int" >&6; }
24022
24023
24024
24025 fi
24026 rm -Rf build
24027
24028
24029 EXTRA_KCFLAGS="$tmp_flags"
24030
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
24032 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
24033
24034
24035 cat confdefs.h - <<_ACEOF >conftest.c
24036
24037
24038 #include <linux/types.h>
24039
24040 int
24041 main (void)
24042 {
24043
24044 fmode_t *ptr __attribute__ ((unused));
24045
24046 ;
24047 return 0;
24048 }
24049
24050 _ACEOF
24051
24052
24053
24054 cat - <<_ACEOF >conftest.h
24055
24056 _ACEOF
24057
24058
24059 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24060 echo "obj-m := conftest.o" >build/Makefile
24061 modpost_flag=''
24062 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24063 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24065 (eval $ac_try) 2>&5
24066 ac_status=$?
24067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24068 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24070 (eval $ac_try) 2>&5
24071 ac_status=$?
24072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24073 test $ac_status = 0; }; }; then :
24074
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24076 $as_echo "yes" >&6; }
24077
24078 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
24079
24080
24081 else
24082 $as_echo "$as_me: failed program was:" >&5
24083 sed 's/^/| /' conftest.$ac_ext >&5
24084
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24086 $as_echo "no" >&6; }
24087
24088
24089
24090 fi
24091 rm -Rf build
24092
24093
24094
24095
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
24097 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
24098
24099
24100 cat confdefs.h - <<_ACEOF >conftest.c
24101
24102
24103 #include <linux/kobject.h>
24104
24105 int
24106 main (void)
24107 {
24108
24109 int val __attribute__ ((unused));
24110 val = KOBJ_NAME_LEN;
24111
24112 ;
24113 return 0;
24114 }
24115
24116 _ACEOF
24117
24118
24119
24120 cat - <<_ACEOF >conftest.h
24121
24122 _ACEOF
24123
24124
24125 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24126 echo "obj-m := conftest.o" >build/Makefile
24127 modpost_flag=''
24128 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24129 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24131 (eval $ac_try) 2>&5
24132 ac_status=$?
24133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24134 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24136 (eval $ac_try) 2>&5
24137 ac_status=$?
24138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24139 test $ac_status = 0; }; }; then :
24140
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24142 $as_echo "yes" >&6; }
24143
24144 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
24145
24146
24147 else
24148 $as_echo "$as_me: failed program was:" >&5
24149 sed 's/^/| /' conftest.$ac_ext >&5
24150
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24152 $as_echo "no" >&6; }
24153
24154
24155
24156 fi
24157 rm -Rf build
24158
24159
24160
24161
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
24163 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
24164
24165
24166 cat confdefs.h - <<_ACEOF >conftest.c
24167
24168
24169 #include <linux/fs.h>
24170
24171 int
24172 main (void)
24173 {
24174
24175 struct block_device *bdev = NULL;
24176 (void) blkdev_get(bdev, 0, NULL);
24177
24178 ;
24179 return 0;
24180 }
24181
24182 _ACEOF
24183
24184
24185
24186 cat - <<_ACEOF >conftest.h
24187
24188 _ACEOF
24189
24190
24191 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24192 echo "obj-m := conftest.o" >build/Makefile
24193 modpost_flag=''
24194 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24195 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24197 (eval $ac_try) 2>&5
24198 ac_status=$?
24199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24200 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24202 (eval $ac_try) 2>&5
24203 ac_status=$?
24204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24205 test $ac_status = 0; }; }; then :
24206
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24208 $as_echo "yes" >&6; }
24209
24210 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
24211
24212
24213 else
24214 $as_echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24216
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24218 $as_echo "no" >&6; }
24219
24220
24221
24222 fi
24223 rm -Rf build
24224
24225
24226
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
24228 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
24229
24230
24231
24232 cat confdefs.h - <<_ACEOF >conftest.c
24233
24234
24235 #include <linux/fs.h>
24236
24237 int
24238 main (void)
24239 {
24240
24241 blkdev_get_by_path(NULL, 0, NULL);
24242
24243 ;
24244 return 0;
24245 }
24246
24247 _ACEOF
24248
24249
24250
24251 cat - <<_ACEOF >conftest.h
24252
24253 _ACEOF
24254
24255
24256 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24257 echo "obj-m := conftest.o" >build/Makefile
24258 modpost_flag=''
24259 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24260 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24262 (eval $ac_try) 2>&5
24263 ac_status=$?
24264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24265 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267 (eval $ac_try) 2>&5
24268 ac_status=$?
24269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270 test $ac_status = 0; }; }; then :
24271 rc=0
24272 else
24273 $as_echo "$as_me: failed program was:" >&5
24274 sed 's/^/| /' conftest.$ac_ext >&5
24275 rc=1
24276
24277
24278 fi
24279 rm -Rf build
24280
24281
24282 if test $rc -ne 0; then :
24283
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24285 $as_echo "no" >&6; }
24286
24287 else
24288 if test "x$enable_linux_builtin" != xyes; then
24289
24290 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
24291 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24292 rc=$?
24293 if test $rc -ne 0; then
24294 export=0
24295 for file in fs/block_dev.c; do
24296 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
24297 "$LINUX/$file" 2>/dev/null
24298 rc=$?
24299 if test $rc -eq 0; then
24300 export=1
24301 break;
24302 fi
24303 done
24304 if test $export -eq 0; then :
24305 rc=1
24306 else :
24307 rc=0
24308 fi
24309 else :
24310 rc=0
24311 fi
24312
24313 fi
24314 if test $rc -ne 0; then :
24315
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24317 $as_echo "no" >&6; }
24318
24319 else :
24320
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24322 $as_echo "yes" >&6; }
24323
24324 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
24325
24326
24327 fi
24328 fi
24329
24330
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
24332 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
24333
24334
24335
24336 cat confdefs.h - <<_ACEOF >conftest.c
24337
24338
24339 #include <linux/fs.h>
24340
24341 int
24342 main (void)
24343 {
24344
24345 open_bdev_exclusive(NULL, 0, NULL);
24346
24347 ;
24348 return 0;
24349 }
24350
24351 _ACEOF
24352
24353
24354
24355 cat - <<_ACEOF >conftest.h
24356
24357 _ACEOF
24358
24359
24360 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24361 echo "obj-m := conftest.o" >build/Makefile
24362 modpost_flag=''
24363 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24364 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24366 (eval $ac_try) 2>&5
24367 ac_status=$?
24368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24369 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24371 (eval $ac_try) 2>&5
24372 ac_status=$?
24373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24374 test $ac_status = 0; }; }; then :
24375 rc=0
24376 else
24377 $as_echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24379 rc=1
24380
24381
24382 fi
24383 rm -Rf build
24384
24385
24386 if test $rc -ne 0; then :
24387
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24389 $as_echo "no" >&6; }
24390
24391 else
24392 if test "x$enable_linux_builtin" != xyes; then
24393
24394 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
24395 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24396 rc=$?
24397 if test $rc -ne 0; then
24398 export=0
24399 for file in fs/block_dev.c; do
24400 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
24401 "$LINUX/$file" 2>/dev/null
24402 rc=$?
24403 if test $rc -eq 0; then
24404 export=1
24405 break;
24406 fi
24407 done
24408 if test $export -eq 0; then :
24409 rc=1
24410 else :
24411 rc=0
24412 fi
24413 else :
24414 rc=0
24415 fi
24416
24417 fi
24418 if test $rc -ne 0; then :
24419
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24421 $as_echo "no" >&6; }
24422
24423 else :
24424
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24426 $as_echo "yes" >&6; }
24427
24428 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
24429
24430
24431 fi
24432 fi
24433
24434
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
24436 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
24437
24438
24439
24440 cat confdefs.h - <<_ACEOF >conftest.c
24441
24442
24443 #include <linux/fs.h>
24444
24445 int
24446 main (void)
24447 {
24448
24449 lookup_bdev(NULL);
24450
24451 ;
24452 return 0;
24453 }
24454
24455 _ACEOF
24456
24457
24458
24459 cat - <<_ACEOF >conftest.h
24460
24461 _ACEOF
24462
24463
24464 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24465 echo "obj-m := conftest.o" >build/Makefile
24466 modpost_flag=''
24467 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24468 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24470 (eval $ac_try) 2>&5
24471 ac_status=$?
24472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24473 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24475 (eval $ac_try) 2>&5
24476 ac_status=$?
24477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24478 test $ac_status = 0; }; }; then :
24479 rc=0
24480 else
24481 $as_echo "$as_me: failed program was:" >&5
24482 sed 's/^/| /' conftest.$ac_ext >&5
24483 rc=1
24484
24485
24486 fi
24487 rm -Rf build
24488
24489
24490 if test $rc -ne 0; then :
24491
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24493 $as_echo "no" >&6; }
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available and wants 2 args" >&5
24495 $as_echo_n "checking whether lookup_bdev() is available and wants 2 args... " >&6; }
24496
24497
24498
24499 cat confdefs.h - <<_ACEOF >conftest.c
24500
24501
24502 #include <linux/fs.h>
24503
24504 int
24505 main (void)
24506 {
24507
24508 lookup_bdev(NULL, 0);
24509
24510 ;
24511 return 0;
24512 }
24513
24514 _ACEOF
24515
24516
24517
24518 cat - <<_ACEOF >conftest.h
24519
24520 _ACEOF
24521
24522
24523 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24524 echo "obj-m := conftest.o" >build/Makefile
24525 modpost_flag=''
24526 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24527 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24529 (eval $ac_try) 2>&5
24530 ac_status=$?
24531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24532 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24534 (eval $ac_try) 2>&5
24535 ac_status=$?
24536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24537 test $ac_status = 0; }; }; then :
24538 rc=0
24539 else
24540 $as_echo "$as_me: failed program was:" >&5
24541 sed 's/^/| /' conftest.$ac_ext >&5
24542 rc=1
24543
24544
24545 fi
24546 rm -Rf build
24547
24548
24549 if test $rc -ne 0; then :
24550
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24552 $as_echo "no" >&6; }
24553
24554 else
24555 if test "x$enable_linux_builtin" != xyes; then
24556
24557 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
24558 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24559 rc=$?
24560 if test $rc -ne 0; then
24561 export=0
24562 for file in fs/block_dev.c; do
24563 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
24564 "$LINUX/$file" 2>/dev/null
24565 rc=$?
24566 if test $rc -eq 0; then
24567 export=1
24568 break;
24569 fi
24570 done
24571 if test $export -eq 0; then :
24572 rc=1
24573 else :
24574 rc=0
24575 fi
24576 else :
24577 rc=0
24578 fi
24579
24580 fi
24581 if test $rc -ne 0; then :
24582
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24584 $as_echo "no" >&6; }
24585
24586 else :
24587
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24589 $as_echo "yes" >&6; }
24590
24591 $as_echo "#define HAVE_LOOKUP_BDEV_2ARGS 1" >>confdefs.h
24592
24593
24594 fi
24595 fi
24596
24597
24598 else
24599 if test "x$enable_linux_builtin" != xyes; then
24600
24601 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
24602 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24603 rc=$?
24604 if test $rc -ne 0; then
24605 export=0
24606 for file in fs/block_dev.c; do
24607 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
24608 "$LINUX/$file" 2>/dev/null
24609 rc=$?
24610 if test $rc -eq 0; then
24611 export=1
24612 break;
24613 fi
24614 done
24615 if test $export -eq 0; then :
24616 rc=1
24617 else :
24618 rc=0
24619 fi
24620 else :
24621 rc=0
24622 fi
24623
24624 fi
24625 if test $rc -ne 0; then :
24626
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24628 $as_echo "no" >&6; }
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available and wants 2 args" >&5
24630 $as_echo_n "checking whether lookup_bdev() is available and wants 2 args... " >&6; }
24631
24632
24633
24634 cat confdefs.h - <<_ACEOF >conftest.c
24635
24636
24637 #include <linux/fs.h>
24638
24639 int
24640 main (void)
24641 {
24642
24643 lookup_bdev(NULL, 0);
24644
24645 ;
24646 return 0;
24647 }
24648
24649 _ACEOF
24650
24651
24652
24653 cat - <<_ACEOF >conftest.h
24654
24655 _ACEOF
24656
24657
24658 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24659 echo "obj-m := conftest.o" >build/Makefile
24660 modpost_flag=''
24661 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24662 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24664 (eval $ac_try) 2>&5
24665 ac_status=$?
24666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24667 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24669 (eval $ac_try) 2>&5
24670 ac_status=$?
24671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24672 test $ac_status = 0; }; }; then :
24673 rc=0
24674 else
24675 $as_echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24677 rc=1
24678
24679
24680 fi
24681 rm -Rf build
24682
24683
24684 if test $rc -ne 0; then :
24685
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24687 $as_echo "no" >&6; }
24688
24689 else
24690 if test "x$enable_linux_builtin" != xyes; then
24691
24692 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
24693 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24694 rc=$?
24695 if test $rc -ne 0; then
24696 export=0
24697 for file in fs/block_dev.c; do
24698 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
24699 "$LINUX/$file" 2>/dev/null
24700 rc=$?
24701 if test $rc -eq 0; then
24702 export=1
24703 break;
24704 fi
24705 done
24706 if test $export -eq 0; then :
24707 rc=1
24708 else :
24709 rc=0
24710 fi
24711 else :
24712 rc=0
24713 fi
24714
24715 fi
24716 if test $rc -ne 0; then :
24717
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24719 $as_echo "no" >&6; }
24720
24721 else :
24722
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24724 $as_echo "yes" >&6; }
24725
24726 $as_echo "#define HAVE_LOOKUP_BDEV_2ARGS 1" >>confdefs.h
24727
24728
24729 fi
24730 fi
24731
24732
24733 else :
24734
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24736 $as_echo "yes" >&6; }
24737
24738 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
24739
24740
24741 fi
24742 fi
24743
24744
24745
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
24747 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
24748
24749
24750 cat confdefs.h - <<_ACEOF >conftest.c
24751
24752
24753 #include <linux/buffer_head.h>
24754
24755 int
24756 main (void)
24757 {
24758
24759 struct block_device *bdev = NULL;
24760 invalidate_bdev(bdev);
24761
24762 ;
24763 return 0;
24764 }
24765
24766 _ACEOF
24767
24768
24769
24770 cat - <<_ACEOF >conftest.h
24771
24772 _ACEOF
24773
24774
24775 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24776 echo "obj-m := conftest.o" >build/Makefile
24777 modpost_flag=''
24778 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24779 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24786 (eval $ac_try) 2>&5
24787 ac_status=$?
24788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24789 test $ac_status = 0; }; }; then :
24790
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24792 $as_echo "yes" >&6; }
24793
24794 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
24795
24796
24797 else
24798 $as_echo "$as_me: failed program was:" >&5
24799 sed 's/^/| /' conftest.$ac_ext >&5
24800
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24802 $as_echo "no" >&6; }
24803
24804
24805
24806 fi
24807 rm -Rf build
24808
24809
24810
24811
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
24813 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
24814 tmp_flags="$EXTRA_KCFLAGS"
24815 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24816
24817
24818 cat confdefs.h - <<_ACEOF >conftest.c
24819
24820
24821 #include <linux/blkdev.h>
24822
24823 int
24824 main (void)
24825 {
24826
24827 struct block_device *bdev = NULL;
24828 bdev_logical_block_size(bdev);
24829
24830 ;
24831 return 0;
24832 }
24833
24834 _ACEOF
24835
24836
24837
24838 cat - <<_ACEOF >conftest.h
24839
24840 _ACEOF
24841
24842
24843 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24844 echo "obj-m := conftest.o" >build/Makefile
24845 modpost_flag=''
24846 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24847 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24849 (eval $ac_try) 2>&5
24850 ac_status=$?
24851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24852 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24854 (eval $ac_try) 2>&5
24855 ac_status=$?
24856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24857 test $ac_status = 0; }; }; then :
24858
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24860 $as_echo "yes" >&6; }
24861
24862 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
24863
24864
24865 else
24866 $as_echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.$ac_ext >&5
24868
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24870 $as_echo "no" >&6; }
24871
24872
24873
24874 fi
24875 rm -Rf build
24876
24877
24878 EXTRA_KCFLAGS="$tmp_flags"
24879
24880
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
24882 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
24883 tmp_flags="$EXTRA_KCFLAGS"
24884 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24885
24886
24887 cat confdefs.h - <<_ACEOF >conftest.c
24888
24889
24890 #include <linux/blkdev.h>
24891
24892 int
24893 main (void)
24894 {
24895
24896 struct block_device *bdev = NULL;
24897 bdev_physical_block_size(bdev);
24898
24899 ;
24900 return 0;
24901 }
24902
24903 _ACEOF
24904
24905
24906
24907 cat - <<_ACEOF >conftest.h
24908
24909 _ACEOF
24910
24911
24912 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24913 echo "obj-m := conftest.o" >build/Makefile
24914 modpost_flag=''
24915 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24916 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24918 (eval $ac_try) 2>&5
24919 ac_status=$?
24920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24921 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24923 (eval $ac_try) 2>&5
24924 ac_status=$?
24925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24926 test $ac_status = 0; }; }; then :
24927
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24929 $as_echo "yes" >&6; }
24930
24931 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
24932
24933
24934 else
24935 $as_echo "$as_me: failed program was:" >&5
24936 sed 's/^/| /' conftest.$ac_ext >&5
24937
24938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24939 $as_echo "no" >&6; }
24940
24941
24942
24943 fi
24944 rm -Rf build
24945
24946
24947 EXTRA_KCFLAGS="$tmp_flags"
24948
24949
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
24951 $as_echo_n "checking whether bio has bi_iter... " >&6; }
24952
24953
24954 cat confdefs.h - <<_ACEOF >conftest.c
24955
24956
24957 #include <linux/bio.h>
24958
24959 int
24960 main (void)
24961 {
24962
24963 struct bio bio;
24964 bio.bi_iter.bi_sector = 0;
24965
24966 ;
24967 return 0;
24968 }
24969
24970 _ACEOF
24971
24972
24973
24974 cat - <<_ACEOF >conftest.h
24975
24976 _ACEOF
24977
24978
24979 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24980 echo "obj-m := conftest.o" >build/Makefile
24981 modpost_flag=''
24982 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24983 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24985 (eval $ac_try) 2>&5
24986 ac_status=$?
24987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24988 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24990 (eval $ac_try) 2>&5
24991 ac_status=$?
24992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24993 test $ac_status = 0; }; }; then :
24994
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24996 $as_echo "yes" >&6; }
24997
24998 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
24999
25000
25001 else
25002 $as_echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.$ac_ext >&5
25004
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25006 $as_echo "no" >&6; }
25007
25008
25009
25010 fi
25011 rm -Rf build
25012
25013
25014
25015
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
25017 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
25018
25019
25020 cat confdefs.h - <<_ACEOF >conftest.c
25021
25022
25023 #include <linux/bio.h>
25024
25025 int
25026 main (void)
25027 {
25028
25029 int flags __attribute__ ((unused));
25030 flags = ((1 << BIO_RW_FAILFAST_DEV) |
25031 (1 << BIO_RW_FAILFAST_TRANSPORT) |
25032 (1 << BIO_RW_FAILFAST_DRIVER));
25033
25034 ;
25035 return 0;
25036 }
25037
25038 _ACEOF
25039
25040
25041
25042 cat - <<_ACEOF >conftest.h
25043
25044 _ACEOF
25045
25046
25047 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25048 echo "obj-m := conftest.o" >build/Makefile
25049 modpost_flag=''
25050 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25051 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25053 (eval $ac_try) 2>&5
25054 ac_status=$?
25055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25056 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25058 (eval $ac_try) 2>&5
25059 ac_status=$?
25060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25061 test $ac_status = 0; }; }; then :
25062
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25064 $as_echo "yes" >&6; }
25065
25066 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
25067
25068
25069 else
25070 $as_echo "$as_me: failed program was:" >&5
25071 sed 's/^/| /' conftest.$ac_ext >&5
25072
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25074 $as_echo "no" >&6; }
25075
25076
25077
25078 fi
25079 rm -Rf build
25080
25081
25082
25083
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
25085 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
25086
25087
25088 cat confdefs.h - <<_ACEOF >conftest.c
25089
25090
25091 #include <linux/bio.h>
25092
25093 int
25094 main (void)
25095 {
25096
25097 int flags __attribute__ ((unused));
25098 flags = REQ_FAILFAST_MASK;
25099
25100 ;
25101 return 0;
25102 }
25103
25104 _ACEOF
25105
25106
25107
25108 cat - <<_ACEOF >conftest.h
25109
25110 _ACEOF
25111
25112
25113 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25114 echo "obj-m := conftest.o" >build/Makefile
25115 modpost_flag=''
25116 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25117 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25119 (eval $ac_try) 2>&5
25120 ac_status=$?
25121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25122 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25124 (eval $ac_try) 2>&5
25125 ac_status=$?
25126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25127 test $ac_status = 0; }; }; then :
25128
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25130 $as_echo "yes" >&6; }
25131
25132 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
25133
25134
25135 else
25136 $as_echo "$as_me: failed program was:" >&5
25137 sed 's/^/| /' conftest.$ac_ext >&5
25138
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25140 $as_echo "no" >&6; }
25141
25142
25143
25144 fi
25145 rm -Rf build
25146
25147
25148
25149
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
25151 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
25152
25153
25154 cat confdefs.h - <<_ACEOF >conftest.c
25155
25156
25157 #include <linux/bio.h>
25158
25159 void wanted_end_io(struct bio *bio) { return; }
25160
25161 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
25162
25163 int
25164 main (void)
25165 {
25166
25167
25168 ;
25169 return 0;
25170 }
25171
25172 _ACEOF
25173
25174
25175
25176 cat - <<_ACEOF >conftest.h
25177
25178 _ACEOF
25179
25180
25181 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25182 echo "obj-m := conftest.o" >build/Makefile
25183 modpost_flag=''
25184 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25185 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25187 (eval $ac_try) 2>&5
25188 ac_status=$?
25189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25190 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25192 (eval $ac_try) 2>&5
25193 ac_status=$?
25194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25195 test $ac_status = 0; }; }; then :
25196
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25198 $as_echo "yes" >&6; }
25199
25200 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
25201
25202
25203 else
25204 $as_echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25206
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25208 $as_echo "no" >&6; }
25209
25210
25211
25212 fi
25213 rm -Rf build
25214
25215
25216
25217
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
25219 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
25220
25221
25222 cat confdefs.h - <<_ACEOF >conftest.c
25223
25224
25225 #include <linux/bio.h>
25226
25227 int
25228 main (void)
25229 {
25230
25231 int flags __attribute__ ((unused));
25232 flags = BIO_RW_BARRIER;
25233
25234 ;
25235 return 0;
25236 }
25237
25238 _ACEOF
25239
25240
25241
25242 cat - <<_ACEOF >conftest.h
25243
25244 _ACEOF
25245
25246
25247 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25248 echo "obj-m := conftest.o" >build/Makefile
25249 modpost_flag=''
25250 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25251 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25253 (eval $ac_try) 2>&5
25254 ac_status=$?
25255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25256 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25258 (eval $ac_try) 2>&5
25259 ac_status=$?
25260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25261 test $ac_status = 0; }; }; then :
25262
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25264 $as_echo "yes" >&6; }
25265
25266 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
25267
25268
25269 else
25270 $as_echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25272
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25274 $as_echo "no" >&6; }
25275
25276
25277
25278 fi
25279 rm -Rf build
25280
25281
25282
25283
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
25285 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
25286
25287
25288 cat confdefs.h - <<_ACEOF >conftest.c
25289
25290
25291 #include <linux/bio.h>
25292
25293 int
25294 main (void)
25295 {
25296
25297 int flags __attribute__ ((unused));
25298 flags = BIO_RW_DISCARD;
25299
25300 ;
25301 return 0;
25302 }
25303
25304 _ACEOF
25305
25306
25307
25308 cat - <<_ACEOF >conftest.h
25309
25310 _ACEOF
25311
25312
25313 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25314 echo "obj-m := conftest.o" >build/Makefile
25315 modpost_flag=''
25316 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25317 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25319 (eval $ac_try) 2>&5
25320 ac_status=$?
25321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25322 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25324 (eval $ac_try) 2>&5
25325 ac_status=$?
25326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25327 test $ac_status = 0; }; }; then :
25328
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25330 $as_echo "yes" >&6; }
25331
25332 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
25333
25334
25335 else
25336 $as_echo "$as_me: failed program was:" >&5
25337 sed 's/^/| /' conftest.$ac_ext >&5
25338
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25340 $as_echo "no" >&6; }
25341
25342
25343
25344 fi
25345 rm -Rf build
25346
25347
25348
25349
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
25351 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
25352 tmp_flags="$EXTRA_KCFLAGS"
25353 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
25354
25355
25356 cat confdefs.h - <<_ACEOF >conftest.c
25357
25358
25359 #include <linux/blkdev.h>
25360
25361 int
25362 main (void)
25363 {
25364
25365 struct request_queue *q = NULL;
25366 (void) blk_queue_flush(q, REQ_FLUSH);
25367
25368 ;
25369 return 0;
25370 }
25371
25372 _ACEOF
25373
25374
25375
25376 cat - <<_ACEOF >conftest.h
25377
25378 _ACEOF
25379
25380
25381 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25382 echo "obj-m := conftest.o" >build/Makefile
25383 modpost_flag=''
25384 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25385 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25387 (eval $ac_try) 2>&5
25388 ac_status=$?
25389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25390 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25392 (eval $ac_try) 2>&5
25393 ac_status=$?
25394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25395 test $ac_status = 0; }; }; then :
25396
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25398 $as_echo "yes" >&6; }
25399
25400 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
25401
25402
25403 else
25404 $as_echo "$as_me: failed program was:" >&5
25405 sed 's/^/| /' conftest.$ac_ext >&5
25406
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25408 $as_echo "no" >&6; }
25409
25410
25411
25412 fi
25413 rm -Rf build
25414
25415
25416
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
25418 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
25419
25420
25421 cat confdefs.h - <<_ACEOF >conftest.c
25422
25423
25424 #include <linux/module.h>
25425 #include <linux/blkdev.h>
25426
25427 MODULE_LICENSE("$ZFS_META_LICENSE");
25428
25429 int
25430 main (void)
25431 {
25432
25433 struct request_queue *q = NULL;
25434 (void) blk_queue_flush(q, REQ_FLUSH);
25435
25436 ;
25437 return 0;
25438 }
25439
25440 _ACEOF
25441
25442
25443
25444 cat - <<_ACEOF >conftest.h
25445
25446 _ACEOF
25447
25448
25449 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25450 echo "obj-m := conftest.o" >build/Makefile
25451 modpost_flag=''
25452 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25453 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25455 (eval $ac_try) 2>&5
25456 ac_status=$?
25457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25458 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25460 (eval $ac_try) 2>&5
25461 ac_status=$?
25462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25463 test $ac_status = 0; }; }; then :
25464
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25466 $as_echo "no" >&6; }
25467
25468 else
25469 $as_echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25471
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25473 $as_echo "yes" >&6; }
25474
25475 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
25476
25477
25478
25479
25480 fi
25481 rm -Rf build
25482
25483
25484 EXTRA_KCFLAGS="$tmp_flags"
25485
25486
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
25488 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
25489 tmp_flags="$EXTRA_KCFLAGS"
25490 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
25491
25492
25493 cat confdefs.h - <<_ACEOF >conftest.c
25494
25495
25496 #include <linux/blkdev.h>
25497
25498 int
25499 main (void)
25500 {
25501
25502 struct request_queue *q = NULL;
25503 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
25504
25505 ;
25506 return 0;
25507 }
25508
25509 _ACEOF
25510
25511
25512
25513 cat - <<_ACEOF >conftest.h
25514
25515 _ACEOF
25516
25517
25518 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25519 echo "obj-m := conftest.o" >build/Makefile
25520 modpost_flag=''
25521 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25522 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25524 (eval $ac_try) 2>&5
25525 ac_status=$?
25526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25527 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25529 (eval $ac_try) 2>&5
25530 ac_status=$?
25531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25532 test $ac_status = 0; }; }; then :
25533
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25535 $as_echo "yes" >&6; }
25536
25537 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
25538
25539
25540 else
25541 $as_echo "$as_me: failed program was:" >&5
25542 sed 's/^/| /' conftest.$ac_ext >&5
25543
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25545 $as_echo "no" >&6; }
25546
25547
25548
25549 fi
25550 rm -Rf build
25551
25552
25553 EXTRA_KCFLAGS="$tmp_flags"
25554
25555
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
25557 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
25558 tmp_flags="$EXTRA_KCFLAGS"
25559 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
25560
25561
25562 cat confdefs.h - <<_ACEOF >conftest.c
25563
25564
25565 #include <linux/blkdev.h>
25566
25567 int
25568 main (void)
25569 {
25570
25571 struct request_queue *q = NULL;
25572 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
25573
25574 ;
25575 return 0;
25576 }
25577
25578 _ACEOF
25579
25580
25581
25582 cat - <<_ACEOF >conftest.h
25583
25584 _ACEOF
25585
25586
25587 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25588 echo "obj-m := conftest.o" >build/Makefile
25589 modpost_flag=''
25590 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25591 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25593 (eval $ac_try) 2>&5
25594 ac_status=$?
25595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25596 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25598 (eval $ac_try) 2>&5
25599 ac_status=$?
25600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25601 test $ac_status = 0; }; }; then :
25602
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25604 $as_echo "yes" >&6; }
25605
25606 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
25607
25608
25609 else
25610 $as_echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.$ac_ext >&5
25612
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25614 $as_echo "no" >&6; }
25615
25616
25617
25618 fi
25619 rm -Rf build
25620
25621
25622 EXTRA_KCFLAGS="$tmp_flags"
25623
25624
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
25626 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
25627 tmp_flags="$EXTRA_KCFLAGS"
25628 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
25629
25630
25631 cat confdefs.h - <<_ACEOF >conftest.c
25632
25633
25634 #include <linux/blkdev.h>
25635
25636 int
25637 main (void)
25638 {
25639
25640 struct gendisk *disk = NULL;
25641 (void) get_disk_ro(disk);
25642
25643 ;
25644 return 0;
25645 }
25646
25647 _ACEOF
25648
25649
25650
25651 cat - <<_ACEOF >conftest.h
25652
25653 _ACEOF
25654
25655
25656 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25657 echo "obj-m := conftest.o" >build/Makefile
25658 modpost_flag=''
25659 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25660 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25662 (eval $ac_try) 2>&5
25663 ac_status=$?
25664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25665 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25667 (eval $ac_try) 2>&5
25668 ac_status=$?
25669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25670 test $ac_status = 0; }; }; then :
25671
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25673 $as_echo "yes" >&6; }
25674
25675 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
25676
25677
25678 else
25679 $as_echo "$as_me: failed program was:" >&5
25680 sed 's/^/| /' conftest.$ac_ext >&5
25681
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25683 $as_echo "no" >&6; }
25684
25685
25686
25687 fi
25688 rm -Rf build
25689
25690
25691 EXTRA_KCFLAGS="$tmp_flags"
25692
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
25694 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
25695
25696
25697
25698 cat confdefs.h - <<_ACEOF >conftest.c
25699
25700
25701 #include <linux/genhd.h>
25702
25703 int
25704 main (void)
25705 {
25706
25707 get_gendisk(0, NULL);
25708
25709 ;
25710 return 0;
25711 }
25712
25713 _ACEOF
25714
25715
25716
25717 cat - <<_ACEOF >conftest.h
25718
25719 _ACEOF
25720
25721
25722 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25723 echo "obj-m := conftest.o" >build/Makefile
25724 modpost_flag=''
25725 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25726 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25728 (eval $ac_try) 2>&5
25729 ac_status=$?
25730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25731 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25733 (eval $ac_try) 2>&5
25734 ac_status=$?
25735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25736 test $ac_status = 0; }; }; then :
25737 rc=0
25738 else
25739 $as_echo "$as_me: failed program was:" >&5
25740 sed 's/^/| /' conftest.$ac_ext >&5
25741 rc=1
25742
25743
25744 fi
25745 rm -Rf build
25746
25747
25748 if test $rc -ne 0; then :
25749
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25751 $as_echo "no" >&6; }
25752
25753 else
25754 if test "x$enable_linux_builtin" != xyes; then
25755
25756 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
25757 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25758 rc=$?
25759 if test $rc -ne 0; then
25760 export=0
25761 for file in block/genhd.c; do
25762 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
25763 "$LINUX/$file" 2>/dev/null
25764 rc=$?
25765 if test $rc -eq 0; then
25766 export=1
25767 break;
25768 fi
25769 done
25770 if test $export -eq 0; then :
25771 rc=1
25772 else :
25773 rc=0
25774 fi
25775 else :
25776 rc=0
25777 fi
25778
25779 fi
25780 if test $rc -ne 0; then :
25781
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25783 $as_echo "no" >&6; }
25784
25785 else :
25786
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25788 $as_echo "yes" >&6; }
25789
25790 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
25791
25792
25793 fi
25794 fi
25795
25796
25797
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
25799 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
25800
25801
25802 cat confdefs.h - <<_ACEOF >conftest.c
25803
25804
25805 #include <linux/blkdev.h>
25806
25807 int
25808 main (void)
25809 {
25810
25811 struct queue_limits ql __attribute__ ((unused));
25812
25813 ql.discard_granularity = 0;
25814
25815 ;
25816 return 0;
25817 }
25818
25819 _ACEOF
25820
25821
25822
25823 cat - <<_ACEOF >conftest.h
25824
25825 _ACEOF
25826
25827
25828 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25829 echo "obj-m := conftest.o" >build/Makefile
25830 modpost_flag=''
25831 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25832 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25834 (eval $ac_try) 2>&5
25835 ac_status=$?
25836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25837 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25839 (eval $ac_try) 2>&5
25840 ac_status=$?
25841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25842 test $ac_status = 0; }; }; then :
25843
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25845 $as_echo "yes" >&6; }
25846
25847 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
25848
25849
25850 else
25851 $as_echo "$as_me: failed program was:" >&5
25852 sed 's/^/| /' conftest.$ac_ext >&5
25853
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25855 $as_echo "no" >&6; }
25856
25857
25858
25859 fi
25860 rm -Rf build
25861
25862
25863
25864
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
25866 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
25867
25868
25869 cat confdefs.h - <<_ACEOF >conftest.c
25870
25871
25872 #include <linux/fs.h>
25873 #include <linux/xattr.h>
25874
25875 const struct xattr_handler xattr_test_handler = {
25876 .prefix = "test",
25877 .get = NULL,
25878 .set = NULL,
25879 };
25880
25881 const struct xattr_handler *xattr_handlers[] = {
25882 &xattr_test_handler,
25883 };
25884
25885 const struct super_block sb __attribute__ ((unused)) = {
25886 .s_xattr = xattr_handlers,
25887 };
25888
25889 int
25890 main (void)
25891 {
25892
25893
25894 ;
25895 return 0;
25896 }
25897
25898 _ACEOF
25899
25900
25901
25902 cat - <<_ACEOF >conftest.h
25903
25904 _ACEOF
25905
25906
25907 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25908 echo "obj-m := conftest.o" >build/Makefile
25909 modpost_flag=''
25910 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25911 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25913 (eval $ac_try) 2>&5
25914 ac_status=$?
25915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25916 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25918 (eval $ac_try) 2>&5
25919 ac_status=$?
25920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25921 test $ac_status = 0; }; }; then :
25922
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25924 $as_echo "yes" >&6; }
25925
25926 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
25927
25928
25929 else
25930 $as_echo "$as_me: failed program was:" >&5
25931 sed 's/^/| /' conftest.$ac_ext >&5
25932
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25934 $as_echo "no" >&6; }
25935
25936
25937
25938 fi
25939 rm -Rf build
25940
25941
25942
25943
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
25945 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
25946
25947
25948 cat confdefs.h - <<_ACEOF >conftest.c
25949
25950
25951 #include <linux/xattr.h>
25952
25953 int get(const struct xattr_handler *handler,
25954 struct dentry *dentry, const char *name,
25955 void *buffer, size_t size) { return 0; }
25956 static const struct xattr_handler
25957 xops __attribute__ ((unused)) = {
25958 .get = get,
25959 };
25960
25961 int
25962 main (void)
25963 {
25964
25965
25966 ;
25967 return 0;
25968 }
25969
25970 _ACEOF
25971
25972
25973
25974 cat - <<_ACEOF >conftest.h
25975
25976 _ACEOF
25977
25978
25979 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25980 echo "obj-m := conftest.o" >build/Makefile
25981 modpost_flag=''
25982 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25983 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25985 (eval $ac_try) 2>&5
25986 ac_status=$?
25987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25988 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25990 (eval $ac_try) 2>&5
25991 ac_status=$?
25992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25993 test $ac_status = 0; }; }; then :
25994
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25996 $as_echo "yes" >&6; }
25997
25998 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
25999
26000
26001 else
26002 $as_echo "$as_me: failed program was:" >&5
26003 sed 's/^/| /' conftest.$ac_ext >&5
26004
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26006 $as_echo "no" >&6; }
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
26008 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
26009
26010
26011 cat confdefs.h - <<_ACEOF >conftest.c
26012
26013
26014 #include <linux/xattr.h>
26015
26016 int get(struct dentry *dentry, const char *name,
26017 void *buffer, size_t size, int handler_flags)
26018 { return 0; }
26019 static const struct xattr_handler
26020 xops __attribute__ ((unused)) = {
26021 .get = get,
26022 };
26023
26024 int
26025 main (void)
26026 {
26027
26028
26029 ;
26030 return 0;
26031 }
26032
26033 _ACEOF
26034
26035
26036
26037 cat - <<_ACEOF >conftest.h
26038
26039 _ACEOF
26040
26041
26042 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26043 echo "obj-m := conftest.o" >build/Makefile
26044 modpost_flag=''
26045 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26046 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26048 (eval $ac_try) 2>&5
26049 ac_status=$?
26050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26051 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26053 (eval $ac_try) 2>&5
26054 ac_status=$?
26055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26056 test $ac_status = 0; }; }; then :
26057
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26059 $as_echo "yes" >&6; }
26060
26061 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
26062
26063
26064 else
26065 $as_echo "$as_me: failed program was:" >&5
26066 sed 's/^/| /' conftest.$ac_ext >&5
26067
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26069 $as_echo "no" >&6; }
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
26071 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
26072
26073
26074 cat confdefs.h - <<_ACEOF >conftest.c
26075
26076
26077 #include <linux/xattr.h>
26078
26079 int get(struct inode *ip, const char *name,
26080 void *buffer, size_t size) { return 0; }
26081 static const struct xattr_handler
26082 xops __attribute__ ((unused)) = {
26083 .get = get,
26084 };
26085
26086 int
26087 main (void)
26088 {
26089
26090
26091 ;
26092 return 0;
26093 }
26094
26095 _ACEOF
26096
26097
26098
26099 cat - <<_ACEOF >conftest.h
26100
26101 _ACEOF
26102
26103
26104 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26105 echo "obj-m := conftest.o" >build/Makefile
26106 modpost_flag=''
26107 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26108 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26110 (eval $ac_try) 2>&5
26111 ac_status=$?
26112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26113 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26115 (eval $ac_try) 2>&5
26116 ac_status=$?
26117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26118 test $ac_status = 0; }; }; then :
26119
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26121 $as_echo "yes" >&6; }
26122
26123 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
26124
26125
26126 else
26127 $as_echo "$as_me: failed program was:" >&5
26128 sed 's/^/| /' conftest.$ac_ext >&5
26129
26130 as_fn_error $? "no; please file a bug report" "$LINENO" 5
26131
26132
26133
26134 fi
26135 rm -Rf build
26136
26137
26138
26139
26140
26141 fi
26142 rm -Rf build
26143
26144
26145
26146
26147
26148 fi
26149 rm -Rf build
26150
26151
26152
26153
26154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
26155 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
26156
26157
26158 cat confdefs.h - <<_ACEOF >conftest.c
26159
26160
26161 #include <linux/xattr.h>
26162
26163 int set(const struct xattr_handler *handler,
26164 struct dentry *dentry, const char *name,
26165 const void *buffer, size_t size, int flags)
26166 { return 0; }
26167 static const struct xattr_handler
26168 xops __attribute__ ((unused)) = {
26169 .set = set,
26170 };
26171
26172 int
26173 main (void)
26174 {
26175
26176
26177 ;
26178 return 0;
26179 }
26180
26181 _ACEOF
26182
26183
26184
26185 cat - <<_ACEOF >conftest.h
26186
26187 _ACEOF
26188
26189
26190 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26191 echo "obj-m := conftest.o" >build/Makefile
26192 modpost_flag=''
26193 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26194 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26196 (eval $ac_try) 2>&5
26197 ac_status=$?
26198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26199 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26201 (eval $ac_try) 2>&5
26202 ac_status=$?
26203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26204 test $ac_status = 0; }; }; then :
26205
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26207 $as_echo "yes" >&6; }
26208
26209 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
26210
26211
26212 else
26213 $as_echo "$as_me: failed program was:" >&5
26214 sed 's/^/| /' conftest.$ac_ext >&5
26215
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26217 $as_echo "no" >&6; }
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
26219 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
26220
26221
26222 cat confdefs.h - <<_ACEOF >conftest.c
26223
26224
26225 #include <linux/xattr.h>
26226
26227 int set(struct dentry *dentry, const char *name,
26228 const void *buffer, size_t size, int flags,
26229 int handler_flags) { return 0; }
26230 static const struct xattr_handler
26231 xops __attribute__ ((unused)) = {
26232 .set = set,
26233 };
26234
26235 int
26236 main (void)
26237 {
26238
26239
26240 ;
26241 return 0;
26242 }
26243
26244 _ACEOF
26245
26246
26247
26248 cat - <<_ACEOF >conftest.h
26249
26250 _ACEOF
26251
26252
26253 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26254 echo "obj-m := conftest.o" >build/Makefile
26255 modpost_flag=''
26256 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26257 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26259 (eval $ac_try) 2>&5
26260 ac_status=$?
26261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26262 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26264 (eval $ac_try) 2>&5
26265 ac_status=$?
26266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26267 test $ac_status = 0; }; }; then :
26268
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26270 $as_echo "yes" >&6; }
26271
26272 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
26273
26274
26275 else
26276 $as_echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26278
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26280 $as_echo "no" >&6; }
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
26282 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
26283
26284
26285 cat confdefs.h - <<_ACEOF >conftest.c
26286
26287
26288 #include <linux/xattr.h>
26289
26290 int set(struct inode *ip, const char *name,
26291 const void *buffer, size_t size, int flags)
26292 { return 0; }
26293 static const struct xattr_handler
26294 xops __attribute__ ((unused)) = {
26295 .set = set,
26296 };
26297
26298 int
26299 main (void)
26300 {
26301
26302
26303 ;
26304 return 0;
26305 }
26306
26307 _ACEOF
26308
26309
26310
26311 cat - <<_ACEOF >conftest.h
26312
26313 _ACEOF
26314
26315
26316 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26317 echo "obj-m := conftest.o" >build/Makefile
26318 modpost_flag=''
26319 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26320 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26322 (eval $ac_try) 2>&5
26323 ac_status=$?
26324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26325 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26327 (eval $ac_try) 2>&5
26328 ac_status=$?
26329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26330 test $ac_status = 0; }; }; then :
26331
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26333 $as_echo "yes" >&6; }
26334
26335 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
26336
26337
26338 else
26339 $as_echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26341
26342 as_fn_error $? "no; please file a bug report" "$LINENO" 5
26343
26344
26345
26346 fi
26347 rm -Rf build
26348
26349
26350
26351
26352
26353 fi
26354 rm -Rf build
26355
26356
26357
26358
26359
26360 fi
26361 rm -Rf build
26362
26363
26364
26365
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
26367 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
26368
26369
26370 cat confdefs.h - <<_ACEOF >conftest.c
26371
26372
26373 #include <linux/xattr.h>
26374
26375 bool list(struct dentry *dentry) { return 0; }
26376 static const struct xattr_handler
26377 xops __attribute__ ((unused)) = {
26378 .list = list,
26379 };
26380
26381 int
26382 main (void)
26383 {
26384
26385
26386 ;
26387 return 0;
26388 }
26389
26390 _ACEOF
26391
26392
26393
26394 cat - <<_ACEOF >conftest.h
26395
26396 _ACEOF
26397
26398
26399 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26400 echo "obj-m := conftest.o" >build/Makefile
26401 modpost_flag=''
26402 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26403 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26405 (eval $ac_try) 2>&5
26406 ac_status=$?
26407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26408 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26410 (eval $ac_try) 2>&5
26411 ac_status=$?
26412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26413 test $ac_status = 0; }; }; then :
26414
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26416 $as_echo "yes" >&6; }
26417
26418 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
26419
26420
26421 else
26422 $as_echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26424
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26426 $as_echo "no" >&6; }
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
26428 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
26429
26430
26431 cat confdefs.h - <<_ACEOF >conftest.c
26432
26433
26434 #include <linux/xattr.h>
26435
26436 size_t list(const struct xattr_handler *handler,
26437 struct dentry *dentry, char *list, size_t list_size,
26438 const char *name, size_t name_len) { return 0; }
26439 static const struct xattr_handler
26440 xops __attribute__ ((unused)) = {
26441 .list = list,
26442 };
26443
26444 int
26445 main (void)
26446 {
26447
26448
26449 ;
26450 return 0;
26451 }
26452
26453 _ACEOF
26454
26455
26456
26457 cat - <<_ACEOF >conftest.h
26458
26459 _ACEOF
26460
26461
26462 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26463 echo "obj-m := conftest.o" >build/Makefile
26464 modpost_flag=''
26465 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26466 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26468 (eval $ac_try) 2>&5
26469 ac_status=$?
26470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26471 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26473 (eval $ac_try) 2>&5
26474 ac_status=$?
26475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26476 test $ac_status = 0; }; }; then :
26477
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26479 $as_echo "yes" >&6; }
26480
26481 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
26482
26483
26484 else
26485 $as_echo "$as_me: failed program was:" >&5
26486 sed 's/^/| /' conftest.$ac_ext >&5
26487
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26489 $as_echo "no" >&6; }
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
26491 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
26492
26493
26494 cat confdefs.h - <<_ACEOF >conftest.c
26495
26496
26497 #include <linux/xattr.h>
26498
26499 size_t list(struct dentry *dentry,
26500 char *list, size_t list_size,
26501 const char *name, size_t name_len,
26502 int handler_flags) { return 0; }
26503 static const struct xattr_handler
26504 xops __attribute__ ((unused)) = {
26505 .list = list,
26506 };
26507
26508 int
26509 main (void)
26510 {
26511
26512
26513 ;
26514 return 0;
26515 }
26516
26517 _ACEOF
26518
26519
26520
26521 cat - <<_ACEOF >conftest.h
26522
26523 _ACEOF
26524
26525
26526 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26527 echo "obj-m := conftest.o" >build/Makefile
26528 modpost_flag=''
26529 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26530 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26532 (eval $ac_try) 2>&5
26533 ac_status=$?
26534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26535 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26537 (eval $ac_try) 2>&5
26538 ac_status=$?
26539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26540 test $ac_status = 0; }; }; then :
26541
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26543 $as_echo "yes" >&6; }
26544
26545 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
26546
26547
26548 else
26549 $as_echo "$as_me: failed program was:" >&5
26550 sed 's/^/| /' conftest.$ac_ext >&5
26551
26552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26553 $as_echo "no" >&6; }
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
26555 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
26556
26557
26558 cat confdefs.h - <<_ACEOF >conftest.c
26559
26560
26561 #include <linux/xattr.h>
26562
26563 size_t list(struct inode *ip, char *lst,
26564 size_t list_size, const char *name,
26565 size_t name_len) { return 0; }
26566 static const struct xattr_handler
26567 xops __attribute__ ((unused)) = {
26568 .list = list,
26569 };
26570
26571 int
26572 main (void)
26573 {
26574
26575
26576 ;
26577 return 0;
26578 }
26579
26580 _ACEOF
26581
26582
26583
26584 cat - <<_ACEOF >conftest.h
26585
26586 _ACEOF
26587
26588
26589 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26590 echo "obj-m := conftest.o" >build/Makefile
26591 modpost_flag=''
26592 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26593 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26595 (eval $ac_try) 2>&5
26596 ac_status=$?
26597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26598 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26600 (eval $ac_try) 2>&5
26601 ac_status=$?
26602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26603 test $ac_status = 0; }; }; then :
26604
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26606 $as_echo "yes" >&6; }
26607
26608 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
26609
26610
26611 else
26612 $as_echo "$as_me: failed program was:" >&5
26613 sed 's/^/| /' conftest.$ac_ext >&5
26614
26615 as_fn_error $? "no; please file a bug report" "$LINENO" 5
26616
26617
26618
26619 fi
26620 rm -Rf build
26621
26622
26623
26624
26625
26626 fi
26627 rm -Rf build
26628
26629
26630
26631
26632
26633 fi
26634 rm -Rf build
26635
26636
26637
26638
26639
26640 fi
26641 rm -Rf build
26642
26643
26644
26645
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
26647 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
26648
26649
26650 cat confdefs.h - <<_ACEOF >conftest.c
26651
26652
26653 #include <linux/fs.h>
26654
26655 int
26656 main (void)
26657 {
26658
26659 struct inode *ip = NULL;
26660 (void) inode_owner_or_capable(ip);
26661
26662 ;
26663 return 0;
26664 }
26665
26666 _ACEOF
26667
26668
26669
26670 cat - <<_ACEOF >conftest.h
26671
26672 _ACEOF
26673
26674
26675 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26676 echo "obj-m := conftest.o" >build/Makefile
26677 modpost_flag=''
26678 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26679 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26681 (eval $ac_try) 2>&5
26682 ac_status=$?
26683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26684 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26686 (eval $ac_try) 2>&5
26687 ac_status=$?
26688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26689 test $ac_status = 0; }; }; then :
26690
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26692 $as_echo "yes" >&6; }
26693
26694 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
26695
26696
26697 else
26698 $as_echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26700
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26702 $as_echo "no" >&6; }
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
26704 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
26705
26706
26707 cat confdefs.h - <<_ACEOF >conftest.c
26708
26709
26710 #include <linux/fs.h>
26711 #include <linux/sched.h>
26712
26713 int
26714 main (void)
26715 {
26716
26717 struct inode *ip = NULL;
26718 (void) is_owner_or_cap(ip);
26719
26720 ;
26721 return 0;
26722 }
26723
26724 _ACEOF
26725
26726
26727
26728 cat - <<_ACEOF >conftest.h
26729
26730 _ACEOF
26731
26732
26733 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26734 echo "obj-m := conftest.o" >build/Makefile
26735 modpost_flag=''
26736 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26737 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26739 (eval $ac_try) 2>&5
26740 ac_status=$?
26741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26742 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26744 (eval $ac_try) 2>&5
26745 ac_status=$?
26746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26747 test $ac_status = 0; }; }; then :
26748
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26750 $as_echo "yes" >&6; }
26751
26752 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
26753
26754
26755 else
26756 $as_echo "$as_me: failed program was:" >&5
26757 sed 's/^/| /' conftest.$ac_ext >&5
26758
26759 as_fn_error $? "no - Please file a bug report at
26760 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
26761
26762
26763
26764 fi
26765 rm -Rf build
26766
26767
26768
26769
26770
26771 fi
26772 rm -Rf build
26773
26774
26775
26776
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
26778 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
26779
26780
26781 cat confdefs.h - <<_ACEOF >conftest.c
26782
26783
26784 #include <linux/cred.h>
26785 #include <linux/fs.h>
26786 #include <linux/posix_acl_xattr.h>
26787
26788 int
26789 main (void)
26790 {
26791
26792 posix_acl_from_xattr(&init_user_ns, NULL, 0);
26793
26794 ;
26795 return 0;
26796 }
26797
26798 _ACEOF
26799
26800
26801
26802 cat - <<_ACEOF >conftest.h
26803
26804 _ACEOF
26805
26806
26807 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26808 echo "obj-m := conftest.o" >build/Makefile
26809 modpost_flag=''
26810 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26811 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26813 (eval $ac_try) 2>&5
26814 ac_status=$?
26815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26816 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26818 (eval $ac_try) 2>&5
26819 ac_status=$?
26820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26821 test $ac_status = 0; }; }; then :
26822
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26824 $as_echo "yes" >&6; }
26825
26826 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
26827
26828
26829 else
26830 $as_echo "$as_me: failed program was:" >&5
26831 sed 's/^/| /' conftest.$ac_ext >&5
26832
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26834 $as_echo "no" >&6; }
26835
26836
26837
26838 fi
26839 rm -Rf build
26840
26841
26842
26843
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
26845 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
26846
26847
26848 cat confdefs.h - <<_ACEOF >conftest.c
26849
26850
26851 #include <linux/cred.h>
26852 #include <linux/fs.h>
26853 #include <linux/posix_acl.h>
26854
26855 int
26856 main (void)
26857 {
26858
26859 struct posix_acl* tmp = posix_acl_alloc(1, 0);
26860 posix_acl_release(tmp);
26861
26862 ;
26863 return 0;
26864 }
26865
26866 _ACEOF
26867
26868
26869
26870 cat - <<_ACEOF >conftest.h
26871
26872 _ACEOF
26873
26874
26875 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26876 echo "obj-m := conftest.o" >build/Makefile
26877 modpost_flag=''
26878 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26879 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26881 (eval $ac_try) 2>&5
26882 ac_status=$?
26883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26884 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26886 (eval $ac_try) 2>&5
26887 ac_status=$?
26888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26889 test $ac_status = 0; }; }; then :
26890
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26892 $as_echo "yes" >&6; }
26893
26894 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
26895
26896
26897 else
26898 $as_echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26900
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26902 $as_echo "no" >&6; }
26903
26904
26905
26906 fi
26907 rm -Rf build
26908
26909
26910
26911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
26912 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
26913
26914
26915 cat confdefs.h - <<_ACEOF >conftest.c
26916
26917
26918 #include <linux/cred.h>
26919 #include <linux/fs.h>
26920 #include <linux/posix_acl.h>
26921
26922 MODULE_LICENSE("$ZFS_META_LICENSE");
26923
26924 int
26925 main (void)
26926 {
26927
26928 struct posix_acl* tmp = posix_acl_alloc(1, 0);
26929 posix_acl_release(tmp);
26930
26931 ;
26932 return 0;
26933 }
26934
26935 _ACEOF
26936
26937
26938
26939 cat - <<_ACEOF >conftest.h
26940
26941 _ACEOF
26942
26943
26944 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26945 echo "obj-m := conftest.o" >build/Makefile
26946 modpost_flag=''
26947 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26948 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26950 (eval $ac_try) 2>&5
26951 ac_status=$?
26952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26953 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26955 (eval $ac_try) 2>&5
26956 ac_status=$?
26957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26958 test $ac_status = 0; }; }; then :
26959
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26961 $as_echo "no" >&6; }
26962
26963 else
26964 $as_echo "$as_me: failed program was:" >&5
26965 sed 's/^/| /' conftest.$ac_ext >&5
26966
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26968 $as_echo "yes" >&6; }
26969
26970 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
26971
26972
26973
26974
26975 fi
26976 rm -Rf build
26977
26978
26979
26980
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
26982 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
26983
26984
26985 cat confdefs.h - <<_ACEOF >conftest.c
26986
26987
26988 #include <linux/fs.h>
26989 #include <linux/posix_acl.h>
26990
26991 int
26992 main (void)
26993 {
26994
26995 posix_acl_chmod(NULL, 0, 0)
26996
26997 ;
26998 return 0;
26999 }
27000
27001 _ACEOF
27002
27003
27004
27005 cat - <<_ACEOF >conftest.h
27006
27007 _ACEOF
27008
27009
27010 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27011 echo "obj-m := conftest.o" >build/Makefile
27012 modpost_flag=''
27013 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27014 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27016 (eval $ac_try) 2>&5
27017 ac_status=$?
27018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27019 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27021 (eval $ac_try) 2>&5
27022 ac_status=$?
27023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27024 test $ac_status = 0; }; }; then :
27025
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27027 $as_echo "yes" >&6; }
27028
27029 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
27030
27031
27032 else
27033 $as_echo "$as_me: failed program was:" >&5
27034 sed 's/^/| /' conftest.$ac_ext >&5
27035
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27037 $as_echo "no" >&6; }
27038
27039
27040
27041 fi
27042 rm -Rf build
27043
27044
27045
27046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
27047 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
27048
27049
27050 cat confdefs.h - <<_ACEOF >conftest.c
27051
27052
27053 #include <linux/fs.h>
27054 #include <linux/posix_acl.h>
27055
27056 int
27057 main (void)
27058 {
27059
27060 __posix_acl_chmod(NULL, 0, 0)
27061
27062 ;
27063 return 0;
27064 }
27065
27066 _ACEOF
27067
27068
27069
27070 cat - <<_ACEOF >conftest.h
27071
27072 _ACEOF
27073
27074
27075 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27076 echo "obj-m := conftest.o" >build/Makefile
27077 modpost_flag=''
27078 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27079 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27081 (eval $ac_try) 2>&5
27082 ac_status=$?
27083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27084 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27086 (eval $ac_try) 2>&5
27087 ac_status=$?
27088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27089 test $ac_status = 0; }; }; then :
27090
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27092 $as_echo "yes" >&6; }
27093
27094 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
27095
27096
27097 else
27098 $as_echo "$as_me: failed program was:" >&5
27099 sed 's/^/| /' conftest.$ac_ext >&5
27100
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27102 $as_echo "no" >&6; }
27103
27104
27105
27106 fi
27107 rm -Rf build
27108
27109
27110
27111
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5
27113 $as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; }
27114
27115
27116 cat confdefs.h - <<_ACEOF >conftest.c
27117
27118
27119 #include <linux/fs.h>
27120
27121 int
27122 main (void)
27123 {
27124
27125 struct inode ino;
27126 ino.i_acl = NULL;
27127 ino.i_default_acl = NULL;
27128
27129 ;
27130 return 0;
27131 }
27132
27133 _ACEOF
27134
27135
27136
27137 cat - <<_ACEOF >conftest.h
27138
27139 _ACEOF
27140
27141
27142 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27143 echo "obj-m := conftest.o" >build/Makefile
27144 modpost_flag=''
27145 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27146 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27148 (eval $ac_try) 2>&5
27149 ac_status=$?
27150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27151 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27153 (eval $ac_try) 2>&5
27154 ac_status=$?
27155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27156 test $ac_status = 0; }; }; then :
27157
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27159 $as_echo "yes" >&6; }
27160
27161 $as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h
27162
27163
27164 else
27165 $as_echo "$as_me: failed program was:" >&5
27166 sed 's/^/| /' conftest.$ac_ext >&5
27167
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27169 $as_echo "no" >&6; }
27170
27171
27172
27173 fi
27174 rm -Rf build
27175
27176
27177
27178
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
27180 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
27181
27182
27183 cat confdefs.h - <<_ACEOF >conftest.c
27184
27185
27186 #include <linux/fs.h>
27187 #include <linux/posix_acl.h>
27188
27189 int
27190 main (void)
27191 {
27192
27193 umode_t tmp;
27194 posix_acl_equiv_mode(NULL,&tmp);
27195
27196 ;
27197 return 0;
27198 }
27199
27200 _ACEOF
27201
27202
27203
27204 cat - <<_ACEOF >conftest.h
27205
27206 _ACEOF
27207
27208
27209 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27210 echo "obj-m := conftest.o" >build/Makefile
27211 modpost_flag=''
27212 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27213 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27215 (eval $ac_try) 2>&5
27216 ac_status=$?
27217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27218 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27220 (eval $ac_try) 2>&5
27221 ac_status=$?
27222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27223 test $ac_status = 0; }; }; then :
27224
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27226 $as_echo "yes" >&6; }
27227
27228 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
27229
27230
27231 else
27232 $as_echo "$as_me: failed program was:" >&5
27233 sed 's/^/| /' conftest.$ac_ext >&5
27234
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27236 $as_echo "no" >&6; }
27237
27238
27239
27240 fi
27241 rm -Rf build
27242
27243
27244
27245
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
27247 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
27248
27249
27250 cat confdefs.h - <<_ACEOF >conftest.c
27251
27252
27253 #include <linux/fs.h>
27254 #include <linux/posix_acl.h>
27255
27256 int
27257 main (void)
27258 {
27259
27260 struct user_namespace *user_ns = NULL;
27261 const struct posix_acl *acl = NULL;
27262 int error;
27263
27264 error = posix_acl_valid(user_ns, acl);
27265
27266 ;
27267 return 0;
27268 }
27269
27270 _ACEOF
27271
27272
27273
27274 cat - <<_ACEOF >conftest.h
27275
27276 _ACEOF
27277
27278
27279 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27280 echo "obj-m := conftest.o" >build/Makefile
27281 modpost_flag=''
27282 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27283 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27285 (eval $ac_try) 2>&5
27286 ac_status=$?
27287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27288 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27290 (eval $ac_try) 2>&5
27291 ac_status=$?
27292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27293 test $ac_status = 0; }; }; then :
27294
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27296 $as_echo "yes" >&6; }
27297
27298 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
27299
27300
27301 else
27302 $as_echo "$as_me: failed program was:" >&5
27303 sed 's/^/| /' conftest.$ac_ext >&5
27304
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27306 $as_echo "no" >&6; }
27307
27308
27309
27310 fi
27311 rm -Rf build
27312
27313
27314
27315
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
27317 $as_echo_n "checking whether iops->permission() exists... " >&6; }
27318
27319
27320 cat confdefs.h - <<_ACEOF >conftest.c
27321
27322
27323 #include <linux/fs.h>
27324
27325 int permission_fn(struct inode *inode, int mask) { return 0; }
27326
27327 static const struct inode_operations
27328 iops __attribute__ ((unused)) = {
27329 .permission = permission_fn,
27330 };
27331
27332 int
27333 main (void)
27334 {
27335
27336
27337 ;
27338 return 0;
27339 }
27340
27341 _ACEOF
27342
27343
27344
27345 cat - <<_ACEOF >conftest.h
27346
27347 _ACEOF
27348
27349
27350 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27351 echo "obj-m := conftest.o" >build/Makefile
27352 modpost_flag=''
27353 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27354 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27356 (eval $ac_try) 2>&5
27357 ac_status=$?
27358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27359 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27361 (eval $ac_try) 2>&5
27362 ac_status=$?
27363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27364 test $ac_status = 0; }; }; then :
27365
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27367 $as_echo "yes" >&6; }
27368
27369 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
27370
27371
27372 else
27373 $as_echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27375
27376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27377 $as_echo "no" >&6; }
27378
27379
27380
27381 fi
27382 rm -Rf build
27383
27384
27385
27386
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
27388 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
27389
27390
27391 cat confdefs.h - <<_ACEOF >conftest.c
27392
27393
27394 #include <linux/fs.h>
27395
27396 int permission_fn(struct inode *inode, int mask,
27397 struct nameidata *nd) { return 0; }
27398
27399 static const struct inode_operations
27400 iops __attribute__ ((unused)) = {
27401 .permission = permission_fn,
27402 };
27403
27404 int
27405 main (void)
27406 {
27407
27408
27409 ;
27410 return 0;
27411 }
27412
27413 _ACEOF
27414
27415
27416
27417 cat - <<_ACEOF >conftest.h
27418
27419 _ACEOF
27420
27421
27422 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27423 echo "obj-m := conftest.o" >build/Makefile
27424 modpost_flag=''
27425 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27426 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27428 (eval $ac_try) 2>&5
27429 ac_status=$?
27430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27431 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27433 (eval $ac_try) 2>&5
27434 ac_status=$?
27435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27436 test $ac_status = 0; }; }; then :
27437
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27439 $as_echo "yes" >&6; }
27440
27441 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
27442
27443
27444 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
27445
27446
27447 else
27448 $as_echo "$as_me: failed program was:" >&5
27449 sed 's/^/| /' conftest.$ac_ext >&5
27450
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27452 $as_echo "no" >&6; }
27453
27454
27455
27456 fi
27457 rm -Rf build
27458
27459
27460
27461
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
27463 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
27464
27465
27466 cat confdefs.h - <<_ACEOF >conftest.c
27467
27468
27469 #include <linux/fs.h>
27470
27471 int check_acl_fn(struct inode *inode, int mask) { return 0; }
27472
27473 static const struct inode_operations
27474 iops __attribute__ ((unused)) = {
27475 .check_acl = check_acl_fn,
27476 };
27477
27478 int
27479 main (void)
27480 {
27481
27482
27483 ;
27484 return 0;
27485 }
27486
27487 _ACEOF
27488
27489
27490
27491 cat - <<_ACEOF >conftest.h
27492
27493 _ACEOF
27494
27495
27496 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27497 echo "obj-m := conftest.o" >build/Makefile
27498 modpost_flag=''
27499 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27500 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27502 (eval $ac_try) 2>&5
27503 ac_status=$?
27504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27505 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27507 (eval $ac_try) 2>&5
27508 ac_status=$?
27509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27510 test $ac_status = 0; }; }; then :
27511
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27513 $as_echo "yes" >&6; }
27514
27515 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
27516
27517
27518 else
27519 $as_echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27521
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27523 $as_echo "no" >&6; }
27524
27525
27526
27527 fi
27528 rm -Rf build
27529
27530
27531
27532
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
27534 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
27535
27536
27537 cat confdefs.h - <<_ACEOF >conftest.c
27538
27539
27540 #include <linux/fs.h>
27541
27542 int check_acl_fn(struct inode *inode, int mask,
27543 unsigned int flags) { return 0; }
27544
27545 static const struct inode_operations
27546 iops __attribute__ ((unused)) = {
27547 .check_acl = check_acl_fn,
27548 };
27549
27550 int
27551 main (void)
27552 {
27553
27554
27555 ;
27556 return 0;
27557 }
27558
27559 _ACEOF
27560
27561
27562
27563 cat - <<_ACEOF >conftest.h
27564
27565 _ACEOF
27566
27567
27568 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27569 echo "obj-m := conftest.o" >build/Makefile
27570 modpost_flag=''
27571 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27572 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27574 (eval $ac_try) 2>&5
27575 ac_status=$?
27576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27577 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27579 (eval $ac_try) 2>&5
27580 ac_status=$?
27581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27582 test $ac_status = 0; }; }; then :
27583
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27585 $as_echo "yes" >&6; }
27586
27587 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
27588
27589
27590 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
27591
27592
27593 else
27594 $as_echo "$as_me: failed program was:" >&5
27595 sed 's/^/| /' conftest.$ac_ext >&5
27596
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27598 $as_echo "no" >&6; }
27599
27600
27601
27602 fi
27603 rm -Rf build
27604
27605
27606
27607
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
27609 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
27610
27611
27612 cat confdefs.h - <<_ACEOF >conftest.c
27613
27614
27615 #include <linux/fs.h>
27616
27617 struct posix_acl *get_acl_fn(struct inode *inode, int type)
27618 { return NULL; }
27619
27620 static const struct inode_operations
27621 iops __attribute__ ((unused)) = {
27622 .get_acl = get_acl_fn,
27623 };
27624
27625 int
27626 main (void)
27627 {
27628
27629
27630 ;
27631 return 0;
27632 }
27633
27634 _ACEOF
27635
27636
27637
27638 cat - <<_ACEOF >conftest.h
27639
27640 _ACEOF
27641
27642
27643 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27644 echo "obj-m := conftest.o" >build/Makefile
27645 modpost_flag=''
27646 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27647 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27649 (eval $ac_try) 2>&5
27650 ac_status=$?
27651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27652 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27654 (eval $ac_try) 2>&5
27655 ac_status=$?
27656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27657 test $ac_status = 0; }; }; then :
27658
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27660 $as_echo "yes" >&6; }
27661
27662 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
27663
27664
27665 else
27666 $as_echo "$as_me: failed program was:" >&5
27667 sed 's/^/| /' conftest.$ac_ext >&5
27668
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27670 $as_echo "no" >&6; }
27671
27672
27673
27674 fi
27675 rm -Rf build
27676
27677
27678
27679
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5
27681 $as_echo_n "checking whether current_umask exists... " >&6; }
27682
27683
27684 cat confdefs.h - <<_ACEOF >conftest.c
27685
27686
27687 #include <linux/fs.h>
27688
27689 int
27690 main (void)
27691 {
27692
27693 current_umask();
27694
27695 ;
27696 return 0;
27697 }
27698
27699 _ACEOF
27700
27701
27702
27703 cat - <<_ACEOF >conftest.h
27704
27705 _ACEOF
27706
27707
27708 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27709 echo "obj-m := conftest.o" >build/Makefile
27710 modpost_flag=''
27711 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27712 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27714 (eval $ac_try) 2>&5
27715 ac_status=$?
27716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27717 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27719 (eval $ac_try) 2>&5
27720 ac_status=$?
27721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27722 test $ac_status = 0; }; }; then :
27723
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27725 $as_echo "yes" >&6; }
27726
27727 $as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h
27728
27729
27730 else
27731 $as_echo "$as_me: failed program was:" >&5
27732 sed 's/^/| /' conftest.$ac_ext >&5
27733
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27735 $as_echo "no" >&6; }
27736
27737
27738
27739 fi
27740 rm -Rf build
27741
27742
27743
27744
27745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
27746 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
27747
27748
27749
27750 cat confdefs.h - <<_ACEOF >conftest.c
27751
27752
27753 #include <linux/fs.h>
27754
27755 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
27756 static struct super_operations sops __attribute__ ((unused)) = {
27757 .show_options = show_options,
27758 };
27759
27760 int
27761 main (void)
27762 {
27763
27764
27765 ;
27766 return 0;
27767 }
27768
27769 _ACEOF
27770
27771
27772
27773 cat - <<_ACEOF >conftest.h
27774
27775 _ACEOF
27776
27777
27778 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27779 echo "obj-m := conftest.o" >build/Makefile
27780 modpost_flag=''
27781 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27782 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27784 (eval $ac_try) 2>&5
27785 ac_status=$?
27786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27787 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27789 (eval $ac_try) 2>&5
27790 ac_status=$?
27791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27792 test $ac_status = 0; }; }; then :
27793
27794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27795 $as_echo "yes" >&6; }
27796
27797 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
27798
27799
27800 else
27801 $as_echo "$as_me: failed program was:" >&5
27802 sed 's/^/| /' conftest.$ac_ext >&5
27803
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27805 $as_echo "no" >&6; }
27806
27807
27808
27809 fi
27810 rm -Rf build
27811
27812
27813
27814
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
27816 $as_echo_n "checking whether file_inode() is available... " >&6; }
27817
27818
27819 cat confdefs.h - <<_ACEOF >conftest.c
27820
27821
27822 #include <linux/fs.h>
27823
27824 int
27825 main (void)
27826 {
27827
27828 struct file *f = NULL;
27829 file_inode(f);
27830
27831 ;
27832 return 0;
27833 }
27834
27835 _ACEOF
27836
27837
27838
27839 cat - <<_ACEOF >conftest.h
27840
27841 _ACEOF
27842
27843
27844 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27845 echo "obj-m := conftest.o" >build/Makefile
27846 modpost_flag=''
27847 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27848 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27850 (eval $ac_try) 2>&5
27851 ac_status=$?
27852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27853 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27855 (eval $ac_try) 2>&5
27856 ac_status=$?
27857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27858 test $ac_status = 0; }; }; then :
27859
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27861 $as_echo "yes" >&6; }
27862
27863 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
27864
27865
27866 else
27867 $as_echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27869
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27871 $as_echo "no" >&6; }
27872
27873
27874
27875 fi
27876 rm -Rf build
27877
27878
27879
27880
27881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
27882 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
27883
27884
27885
27886 cat confdefs.h - <<_ACEOF >conftest.c
27887
27888
27889 #include <linux/fs.h>
27890
27891 int test_fsync(struct file *f, struct dentry *dentry, int x)
27892 { return 0; }
27893
27894 static const struct file_operations
27895 fops __attribute__ ((unused)) = {
27896 .fsync = test_fsync,
27897 };
27898
27899 int
27900 main (void)
27901 {
27902
27903
27904 ;
27905 return 0;
27906 }
27907
27908 _ACEOF
27909
27910
27911
27912 cat - <<_ACEOF >conftest.h
27913
27914 _ACEOF
27915
27916
27917 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27918 echo "obj-m := conftest.o" >build/Makefile
27919 modpost_flag=''
27920 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27921 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27923 (eval $ac_try) 2>&5
27924 ac_status=$?
27925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27926 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27928 (eval $ac_try) 2>&5
27929 ac_status=$?
27930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27931 test $ac_status = 0; }; }; then :
27932
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
27934 $as_echo "dentry" >&6; }
27935
27936 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
27937
27938
27939 else
27940 $as_echo "$as_me: failed program was:" >&5
27941 sed 's/^/| /' conftest.$ac_ext >&5
27942
27943
27944
27945
27946 fi
27947 rm -Rf build
27948
27949
27950
27951
27952
27953
27954 cat confdefs.h - <<_ACEOF >conftest.c
27955
27956
27957 #include <linux/fs.h>
27958
27959 int test_fsync(struct file *f, int x) { return 0; }
27960
27961 static const struct file_operations
27962 fops __attribute__ ((unused)) = {
27963 .fsync = test_fsync,
27964 };
27965
27966 int
27967 main (void)
27968 {
27969
27970
27971 ;
27972 return 0;
27973 }
27974
27975 _ACEOF
27976
27977
27978
27979 cat - <<_ACEOF >conftest.h
27980
27981 _ACEOF
27982
27983
27984 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27985 echo "obj-m := conftest.o" >build/Makefile
27986 modpost_flag=''
27987 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27988 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27990 (eval $ac_try) 2>&5
27991 ac_status=$?
27992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27993 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27995 (eval $ac_try) 2>&5
27996 ac_status=$?
27997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27998 test $ac_status = 0; }; }; then :
27999
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
28001 $as_echo "no dentry" >&6; }
28002
28003 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
28004
28005
28006 else
28007 $as_echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28009
28010
28011
28012
28013 fi
28014 rm -Rf build
28015
28016
28017
28018
28019
28020
28021 cat confdefs.h - <<_ACEOF >conftest.c
28022
28023
28024 #include <linux/fs.h>
28025
28026 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
28027 { return 0; }
28028
28029 static const struct file_operations
28030 fops __attribute__ ((unused)) = {
28031 .fsync = test_fsync,
28032 };
28033
28034 int
28035 main (void)
28036 {
28037
28038
28039 ;
28040 return 0;
28041 }
28042
28043 _ACEOF
28044
28045
28046
28047 cat - <<_ACEOF >conftest.h
28048
28049 _ACEOF
28050
28051
28052 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28053 echo "obj-m := conftest.o" >build/Makefile
28054 modpost_flag=''
28055 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28056 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28058 (eval $ac_try) 2>&5
28059 ac_status=$?
28060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28061 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28063 (eval $ac_try) 2>&5
28064 ac_status=$?
28065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28066 test $ac_status = 0; }; }; then :
28067
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
28069 $as_echo "range" >&6; }
28070
28071 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
28072
28073
28074 else
28075 $as_echo "$as_me: failed program was:" >&5
28076 sed 's/^/| /' conftest.$ac_ext >&5
28077
28078
28079
28080
28081 fi
28082 rm -Rf build
28083
28084
28085
28086
28087
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
28089 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
28090
28091
28092 cat confdefs.h - <<_ACEOF >conftest.c
28093
28094
28095 #include <linux/fs.h>
28096 void evict_inode (struct inode * t) { return; }
28097 static struct super_operations sops __attribute__ ((unused)) = {
28098 .evict_inode = evict_inode,
28099 };
28100
28101 int
28102 main (void)
28103 {
28104
28105
28106 ;
28107 return 0;
28108 }
28109
28110 _ACEOF
28111
28112
28113
28114 cat - <<_ACEOF >conftest.h
28115
28116 _ACEOF
28117
28118
28119 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28120 echo "obj-m := conftest.o" >build/Makefile
28121 modpost_flag=''
28122 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28123 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28125 (eval $ac_try) 2>&5
28126 ac_status=$?
28127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28128 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28130 (eval $ac_try) 2>&5
28131 ac_status=$?
28132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28133 test $ac_status = 0; }; }; then :
28134
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28136 $as_echo "yes" >&6; }
28137
28138 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
28139
28140
28141 else
28142 $as_echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28144
28145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28146 $as_echo "no" >&6; }
28147
28148
28149
28150 fi
28151 rm -Rf build
28152
28153
28154
28155
28156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
28157 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
28158
28159
28160 cat confdefs.h - <<_ACEOF >conftest.c
28161
28162
28163 #include <linux/fs.h>
28164
28165 void dirty_inode(struct inode *a, int b) { return; }
28166
28167 static const struct super_operations
28168 sops __attribute__ ((unused)) = {
28169 .dirty_inode = dirty_inode,
28170 };
28171
28172 int
28173 main (void)
28174 {
28175
28176
28177 ;
28178 return 0;
28179 }
28180
28181 _ACEOF
28182
28183
28184
28185 cat - <<_ACEOF >conftest.h
28186
28187 _ACEOF
28188
28189
28190 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28191 echo "obj-m := conftest.o" >build/Makefile
28192 modpost_flag=''
28193 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28194 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28196 (eval $ac_try) 2>&5
28197 ac_status=$?
28198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28199 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28201 (eval $ac_try) 2>&5
28202 ac_status=$?
28203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28204 test $ac_status = 0; }; }; then :
28205
28206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28207 $as_echo "yes" >&6; }
28208
28209 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
28210
28211
28212 else
28213 $as_echo "$as_me: failed program was:" >&5
28214 sed 's/^/| /' conftest.$ac_ext >&5
28215
28216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28217 $as_echo "no" >&6; }
28218
28219
28220
28221 fi
28222 rm -Rf build
28223
28224
28225
28226
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
28228 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
28229
28230
28231 cat confdefs.h - <<_ACEOF >conftest.c
28232
28233
28234 #include <linux/fs.h>
28235
28236 int nr_cached_objects(struct super_block *sb) { return 0; }
28237
28238 static const struct super_operations
28239 sops __attribute__ ((unused)) = {
28240 .nr_cached_objects = nr_cached_objects,
28241 };
28242
28243 int
28244 main (void)
28245 {
28246
28247
28248 ;
28249 return 0;
28250 }
28251
28252 _ACEOF
28253
28254
28255
28256 cat - <<_ACEOF >conftest.h
28257
28258 _ACEOF
28259
28260
28261 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28262 echo "obj-m := conftest.o" >build/Makefile
28263 modpost_flag=''
28264 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28265 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28267 (eval $ac_try) 2>&5
28268 ac_status=$?
28269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28270 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28272 (eval $ac_try) 2>&5
28273 ac_status=$?
28274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28275 test $ac_status = 0; }; }; then :
28276
28277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28278 $as_echo "yes" >&6; }
28279
28280 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
28281
28282
28283 else
28284 $as_echo "$as_me: failed program was:" >&5
28285 sed 's/^/| /' conftest.$ac_ext >&5
28286
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28288 $as_echo "no" >&6; }
28289
28290
28291
28292 fi
28293 rm -Rf build
28294
28295
28296
28297
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
28299 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
28300
28301
28302 cat confdefs.h - <<_ACEOF >conftest.c
28303
28304
28305 #include <linux/fs.h>
28306
28307 void free_cached_objects(struct super_block *sb, int x)
28308 { return; }
28309
28310 static const struct super_operations
28311 sops __attribute__ ((unused)) = {
28312 .free_cached_objects = free_cached_objects,
28313 };
28314
28315 int
28316 main (void)
28317 {
28318
28319
28320 ;
28321 return 0;
28322 }
28323
28324 _ACEOF
28325
28326
28327
28328 cat - <<_ACEOF >conftest.h
28329
28330 _ACEOF
28331
28332
28333 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28334 echo "obj-m := conftest.o" >build/Makefile
28335 modpost_flag=''
28336 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28337 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28339 (eval $ac_try) 2>&5
28340 ac_status=$?
28341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28342 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28344 (eval $ac_try) 2>&5
28345 ac_status=$?
28346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28347 test $ac_status = 0; }; }; then :
28348
28349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28350 $as_echo "yes" >&6; }
28351
28352 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
28353
28354
28355 else
28356 $as_echo "$as_me: failed program was:" >&5
28357 sed 's/^/| /' conftest.$ac_ext >&5
28358
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28360 $as_echo "no" >&6; }
28361
28362
28363
28364 fi
28365 rm -Rf build
28366
28367
28368
28369
28370
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
28372 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
28373
28374
28375 cat confdefs.h - <<_ACEOF >conftest.c
28376
28377
28378 #include <linux/fs.h>
28379
28380 long test_fallocate(struct file *file, int mode,
28381 loff_t offset, loff_t len) { return 0; }
28382
28383 static const struct file_operations
28384 fops __attribute__ ((unused)) = {
28385 .fallocate = test_fallocate,
28386 };
28387
28388 int
28389 main (void)
28390 {
28391
28392
28393 ;
28394 return 0;
28395 }
28396
28397 _ACEOF
28398
28399
28400
28401 cat - <<_ACEOF >conftest.h
28402
28403 _ACEOF
28404
28405
28406 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28407 echo "obj-m := conftest.o" >build/Makefile
28408 modpost_flag=''
28409 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28410 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28412 (eval $ac_try) 2>&5
28413 ac_status=$?
28414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28415 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28417 (eval $ac_try) 2>&5
28418 ac_status=$?
28419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28420 test $ac_status = 0; }; }; then :
28421
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28423 $as_echo "yes" >&6; }
28424
28425 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
28426
28427
28428 else
28429 $as_echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28431
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28433 $as_echo "no" >&6; }
28434
28435
28436
28437 fi
28438 rm -Rf build
28439
28440
28441
28442
28443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
28444 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
28445
28446
28447 cat confdefs.h - <<_ACEOF >conftest.c
28448
28449
28450 #include <linux/fs.h>
28451
28452 long test_fallocate(struct inode *inode, int mode,
28453 loff_t offset, loff_t len) { return 0; }
28454
28455 static const struct inode_operations
28456 fops __attribute__ ((unused)) = {
28457 .fallocate = test_fallocate,
28458 };
28459
28460 int
28461 main (void)
28462 {
28463
28464
28465 ;
28466 return 0;
28467 }
28468
28469 _ACEOF
28470
28471
28472
28473 cat - <<_ACEOF >conftest.h
28474
28475 _ACEOF
28476
28477
28478 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28479 echo "obj-m := conftest.o" >build/Makefile
28480 modpost_flag=''
28481 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28482 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28484 (eval $ac_try) 2>&5
28485 ac_status=$?
28486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28487 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28489 (eval $ac_try) 2>&5
28490 ac_status=$?
28491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28492 test $ac_status = 0; }; }; then :
28493
28494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28495 $as_echo "yes" >&6; }
28496
28497 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
28498
28499
28500 else
28501 $as_echo "$as_me: failed program was:" >&5
28502 sed 's/^/| /' conftest.$ac_ext >&5
28503
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28505 $as_echo "no" >&6; }
28506
28507
28508
28509 fi
28510 rm -Rf build
28511
28512
28513
28514
28515
28516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
28517 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
28518
28519
28520 cat confdefs.h - <<_ACEOF >conftest.c
28521
28522
28523 #include <linux/fs.h>
28524
28525 int mkdir(struct inode *inode, struct dentry *dentry,
28526 umode_t umode) { return 0; }
28527
28528 static const struct inode_operations
28529 iops __attribute__ ((unused)) = {
28530 .mkdir = mkdir,
28531 };
28532
28533 int
28534 main (void)
28535 {
28536
28537
28538 ;
28539 return 0;
28540 }
28541
28542 _ACEOF
28543
28544
28545
28546 cat - <<_ACEOF >conftest.h
28547
28548 _ACEOF
28549
28550
28551 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28552 echo "obj-m := conftest.o" >build/Makefile
28553 modpost_flag=''
28554 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28555 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28557 (eval $ac_try) 2>&5
28558 ac_status=$?
28559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28560 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28562 (eval $ac_try) 2>&5
28563 ac_status=$?
28564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28565 test $ac_status = 0; }; }; then :
28566
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28568 $as_echo "yes" >&6; }
28569
28570 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
28571
28572
28573 else
28574 $as_echo "$as_me: failed program was:" >&5
28575 sed 's/^/| /' conftest.$ac_ext >&5
28576
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28578 $as_echo "no" >&6; }
28579
28580
28581
28582 fi
28583 rm -Rf build
28584
28585
28586
28587
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
28589 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
28590
28591
28592 cat confdefs.h - <<_ACEOF >conftest.c
28593
28594
28595 #include <linux/fs.h>
28596
28597 struct dentry *inode_lookup(struct inode *inode,
28598 struct dentry *dentry, struct nameidata *nidata)
28599 { return NULL; }
28600
28601 static const struct inode_operations iops
28602 __attribute__ ((unused)) = {
28603 .lookup = inode_lookup,
28604 };
28605
28606 int
28607 main (void)
28608 {
28609
28610
28611 ;
28612 return 0;
28613 }
28614
28615 _ACEOF
28616
28617
28618
28619 cat - <<_ACEOF >conftest.h
28620
28621 _ACEOF
28622
28623
28624 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28625 echo "obj-m := conftest.o" >build/Makefile
28626 modpost_flag=''
28627 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28628 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28630 (eval $ac_try) 2>&5
28631 ac_status=$?
28632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28633 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28635 (eval $ac_try) 2>&5
28636 ac_status=$?
28637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28638 test $ac_status = 0; }; }; then :
28639
28640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28641 $as_echo "yes" >&6; }
28642
28643 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
28644
28645
28646 else
28647 $as_echo "$as_me: failed program was:" >&5
28648 sed 's/^/| /' conftest.$ac_ext >&5
28649
28650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28651 $as_echo "no" >&6; }
28652
28653
28654
28655 fi
28656 rm -Rf build
28657
28658
28659
28660
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
28662 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
28663
28664
28665 cat confdefs.h - <<_ACEOF >conftest.c
28666
28667
28668 #include <linux/fs.h>
28669
28670 #ifdef HAVE_MKDIR_UMODE_T
28671 int inode_create(struct inode *inode ,struct dentry *dentry,
28672 umode_t umode, struct nameidata *nidata) { return 0; }
28673 #else
28674 int inode_create(struct inode *inode,struct dentry *dentry,
28675 int umode, struct nameidata * nidata) { return 0; }
28676 #endif
28677
28678 static const struct inode_operations
28679 iops __attribute__ ((unused)) = {
28680 .create = inode_create,
28681 };
28682
28683 int
28684 main (void)
28685 {
28686
28687
28688 ;
28689 return 0;
28690 }
28691
28692 _ACEOF
28693
28694
28695
28696 cat - <<_ACEOF >conftest.h
28697
28698 _ACEOF
28699
28700
28701 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28702 echo "obj-m := conftest.o" >build/Makefile
28703 modpost_flag=''
28704 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28705 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28707 (eval $ac_try) 2>&5
28708 ac_status=$?
28709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28710 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28712 (eval $ac_try) 2>&5
28713 ac_status=$?
28714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28715 test $ac_status = 0; }; }; then :
28716
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28718 $as_echo "yes" >&6; }
28719
28720 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
28721
28722
28723 else
28724 $as_echo "$as_me: failed program was:" >&5
28725 sed 's/^/| /' conftest.$ac_ext >&5
28726
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28728 $as_echo "no" >&6; }
28729
28730
28731
28732 fi
28733 rm -Rf build
28734
28735
28736
28737
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
28739 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
28740
28741
28742 cat confdefs.h - <<_ACEOF >conftest.c
28743
28744
28745 #include <linux/fs.h>
28746 const char *get_link(struct dentry *de, struct inode *ip,
28747 struct delayed_call *done) { return "symlink"; }
28748 static struct inode_operations
28749 iops __attribute__ ((unused)) = {
28750 .get_link = get_link,
28751 };
28752
28753 int
28754 main (void)
28755 {
28756
28757
28758 ;
28759 return 0;
28760 }
28761
28762 _ACEOF
28763
28764
28765
28766 cat - <<_ACEOF >conftest.h
28767
28768 _ACEOF
28769
28770
28771 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28772 echo "obj-m := conftest.o" >build/Makefile
28773 modpost_flag=''
28774 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28775 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28777 (eval $ac_try) 2>&5
28778 ac_status=$?
28779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28780 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28782 (eval $ac_try) 2>&5
28783 ac_status=$?
28784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28785 test $ac_status = 0; }; }; then :
28786
28787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28788 $as_echo "yes" >&6; }
28789
28790 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
28791
28792
28793 else
28794 $as_echo "$as_me: failed program was:" >&5
28795 sed 's/^/| /' conftest.$ac_ext >&5
28796
28797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28798 $as_echo "no" >&6; }
28799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
28800 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
28801
28802
28803 cat confdefs.h - <<_ACEOF >conftest.c
28804
28805
28806 #include <linux/fs.h>
28807 const char *get_link(struct dentry *de, struct
28808 inode *ip, void **cookie) { return "symlink"; }
28809 static struct inode_operations
28810 iops __attribute__ ((unused)) = {
28811 .get_link = get_link,
28812 };
28813
28814 int
28815 main (void)
28816 {
28817
28818
28819 ;
28820 return 0;
28821 }
28822
28823 _ACEOF
28824
28825
28826
28827 cat - <<_ACEOF >conftest.h
28828
28829 _ACEOF
28830
28831
28832 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28833 echo "obj-m := conftest.o" >build/Makefile
28834 modpost_flag=''
28835 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28836 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28838 (eval $ac_try) 2>&5
28839 ac_status=$?
28840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28841 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28843 (eval $ac_try) 2>&5
28844 ac_status=$?
28845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28846 test $ac_status = 0; }; }; then :
28847
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28849 $as_echo "yes" >&6; }
28850
28851 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
28852
28853
28854 else
28855 $as_echo "$as_me: failed program was:" >&5
28856 sed 's/^/| /' conftest.$ac_ext >&5
28857
28858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28859 $as_echo "no" >&6; }
28860
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
28862 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
28863
28864
28865 cat confdefs.h - <<_ACEOF >conftest.c
28866
28867
28868 #include <linux/fs.h>
28869 const char *follow_link(struct dentry *de,
28870 void **cookie) { return "symlink"; }
28871 static struct inode_operations
28872 iops __attribute__ ((unused)) = {
28873 .follow_link = follow_link,
28874 };
28875
28876 int
28877 main (void)
28878 {
28879
28880
28881 ;
28882 return 0;
28883 }
28884
28885 _ACEOF
28886
28887
28888
28889 cat - <<_ACEOF >conftest.h
28890
28891 _ACEOF
28892
28893
28894 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28895 echo "obj-m := conftest.o" >build/Makefile
28896 modpost_flag=''
28897 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28898 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28900 (eval $ac_try) 2>&5
28901 ac_status=$?
28902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28903 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28905 (eval $ac_try) 2>&5
28906 ac_status=$?
28907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28908 test $ac_status = 0; }; }; then :
28909
28910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28911 $as_echo "yes" >&6; }
28912
28913 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
28914
28915
28916 else
28917 $as_echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.$ac_ext >&5
28919
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28921 $as_echo "no" >&6; }
28922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
28923 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
28924
28925
28926 cat confdefs.h - <<_ACEOF >conftest.c
28927
28928
28929 #include <linux/fs.h>
28930 void *follow_link(struct dentry *de, struct
28931 nameidata *nd) { return (void *)NULL; }
28932 static struct inode_operations
28933 iops __attribute__ ((unused)) = {
28934 .follow_link = follow_link,
28935 };
28936
28937 int
28938 main (void)
28939 {
28940
28941
28942 ;
28943 return 0;
28944 }
28945
28946 _ACEOF
28947
28948
28949
28950 cat - <<_ACEOF >conftest.h
28951
28952 _ACEOF
28953
28954
28955 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28956 echo "obj-m := conftest.o" >build/Makefile
28957 modpost_flag=''
28958 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28959 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28961 (eval $ac_try) 2>&5
28962 ac_status=$?
28963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28964 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28966 (eval $ac_try) 2>&5
28967 ac_status=$?
28968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28969 test $ac_status = 0; }; }; then :
28970
28971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28972 $as_echo "yes" >&6; }
28973
28974 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
28975
28976
28977 else
28978 $as_echo "$as_me: failed program was:" >&5
28979 sed 's/^/| /' conftest.$ac_ext >&5
28980
28981 as_fn_error $? "no; please file a bug report" "$LINENO" 5
28982
28983
28984
28985 fi
28986 rm -Rf build
28987
28988
28989
28990
28991
28992 fi
28993 rm -Rf build
28994
28995
28996
28997
28998
28999
29000 fi
29001 rm -Rf build
29002
29003
29004
29005
29006
29007 fi
29008 rm -Rf build
29009
29010
29011
29012
29013
29014
29015 cat confdefs.h - <<_ACEOF >conftest.c
29016
29017
29018 #if !defined(HAVE_GET_LINK_DELAYED)
29019 #error "Expecting get_link() delayed done"
29020 #endif
29021
29022 int
29023 main (void)
29024 {
29025
29026
29027 ;
29028 return 0;
29029 }
29030
29031 _ACEOF
29032
29033
29034
29035 cat - <<_ACEOF >conftest.h
29036
29037 _ACEOF
29038
29039
29040 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29041 echo "obj-m := conftest.o" >build/Makefile
29042 modpost_flag=''
29043 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29044 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29046 (eval $ac_try) 2>&5
29047 ac_status=$?
29048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29049 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29051 (eval $ac_try) 2>&5
29052 ac_status=$?
29053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29054 test $ac_status = 0; }; }; then :
29055
29056
29057 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
29058
29059
29060 else
29061 $as_echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.$ac_ext >&5
29063
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
29065 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
29066
29067
29068 cat confdefs.h - <<_ACEOF >conftest.c
29069
29070
29071 #include <linux/fs.h>
29072 void put_link(struct inode *ip, void *cookie)
29073 { return; }
29074 static struct inode_operations
29075 iops __attribute__ ((unused)) = {
29076 .put_link = put_link,
29077 };
29078
29079 int
29080 main (void)
29081 {
29082
29083
29084 ;
29085 return 0;
29086 }
29087
29088 _ACEOF
29089
29090
29091
29092 cat - <<_ACEOF >conftest.h
29093
29094 _ACEOF
29095
29096
29097 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29098 echo "obj-m := conftest.o" >build/Makefile
29099 modpost_flag=''
29100 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29101 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29103 (eval $ac_try) 2>&5
29104 ac_status=$?
29105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29106 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29108 (eval $ac_try) 2>&5
29109 ac_status=$?
29110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29111 test $ac_status = 0; }; }; then :
29112
29113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29114 $as_echo "yes" >&6; }
29115
29116 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
29117
29118
29119 else
29120 $as_echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29122
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29124 $as_echo "no" >&6; }
29125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
29126 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
29127
29128
29129 cat confdefs.h - <<_ACEOF >conftest.c
29130
29131
29132 #include <linux/fs.h>
29133 void put_link(struct dentry *de, struct
29134 nameidata *nd, void *ptr) { return; }
29135 static struct inode_operations
29136 iops __attribute__ ((unused)) = {
29137 .put_link = put_link,
29138 };
29139
29140 int
29141 main (void)
29142 {
29143
29144
29145 ;
29146 return 0;
29147 }
29148
29149 _ACEOF
29150
29151
29152
29153 cat - <<_ACEOF >conftest.h
29154
29155 _ACEOF
29156
29157
29158 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29159 echo "obj-m := conftest.o" >build/Makefile
29160 modpost_flag=''
29161 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29162 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29164 (eval $ac_try) 2>&5
29165 ac_status=$?
29166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29167 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29169 (eval $ac_try) 2>&5
29170 ac_status=$?
29171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29172 test $ac_status = 0; }; }; then :
29173
29174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29175 $as_echo "yes" >&6; }
29176
29177 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
29178
29179
29180 else
29181 $as_echo "$as_me: failed program was:" >&5
29182 sed 's/^/| /' conftest.$ac_ext >&5
29183
29184 as_fn_error $? "no; please file a bug report" "$LINENO" 5
29185
29186
29187
29188 fi
29189 rm -Rf build
29190
29191
29192
29193
29194
29195 fi
29196 rm -Rf build
29197
29198
29199
29200
29201
29202 fi
29203 rm -Rf build
29204
29205
29206
29207
29208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
29209 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
29210
29211
29212 cat confdefs.h - <<_ACEOF >conftest.c
29213
29214
29215 #include <linux/fs.h>
29216 void truncate_range(struct inode *inode, loff_t start,
29217 loff_t end) { return; }
29218 static struct inode_operations iops __attribute__ ((unused)) = {
29219 .truncate_range = truncate_range,
29220 };
29221
29222 int
29223 main (void)
29224 {
29225
29226
29227 ;
29228 return 0;
29229 }
29230
29231 _ACEOF
29232
29233
29234
29235 cat - <<_ACEOF >conftest.h
29236
29237 _ACEOF
29238
29239
29240 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29241 echo "obj-m := conftest.o" >build/Makefile
29242 modpost_flag=''
29243 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29244 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29246 (eval $ac_try) 2>&5
29247 ac_status=$?
29248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29249 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29251 (eval $ac_try) 2>&5
29252 ac_status=$?
29253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29254 test $ac_status = 0; }; }; then :
29255
29256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29257 $as_echo "yes" >&6; }
29258
29259 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
29260
29261
29262 else
29263 $as_echo "$as_me: failed program was:" >&5
29264 sed 's/^/| /' conftest.$ac_ext >&5
29265
29266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29267 $as_echo "no" >&6; }
29268
29269
29270
29271 fi
29272 rm -Rf build
29273
29274
29275
29276
29277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
29278 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
29279
29280
29281 cat confdefs.h - <<_ACEOF >conftest.c
29282
29283
29284 #include <linux/dcache.h>
29285 struct vfsmount *d_automount(struct path *p) { return NULL; }
29286 struct dentry_operations dops __attribute__ ((unused)) = {
29287 .d_automount = d_automount,
29288 };
29289
29290 int
29291 main (void)
29292 {
29293
29294
29295 ;
29296 return 0;
29297 }
29298
29299 _ACEOF
29300
29301
29302
29303 cat - <<_ACEOF >conftest.h
29304
29305 _ACEOF
29306
29307
29308 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29309 echo "obj-m := conftest.o" >build/Makefile
29310 modpost_flag=''
29311 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29312 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29314 (eval $ac_try) 2>&5
29315 ac_status=$?
29316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29317 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29319 (eval $ac_try) 2>&5
29320 ac_status=$?
29321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29322 test $ac_status = 0; }; }; then :
29323
29324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29325 $as_echo "yes" >&6; }
29326
29327 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
29328
29329
29330 else
29331 $as_echo "$as_me: failed program was:" >&5
29332 sed 's/^/| /' conftest.$ac_ext >&5
29333
29334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29335 $as_echo "no" >&6; }
29336
29337
29338
29339 fi
29340 rm -Rf build
29341
29342
29343
29344
29345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
29346 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
29347
29348
29349 cat confdefs.h - <<_ACEOF >conftest.c
29350
29351
29352 #include <linux/exportfs.h>
29353 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
29354 struct inode *parent) { return 0; }
29355 static struct export_operations eops __attribute__ ((unused))={
29356 .encode_fh = encode_fh,
29357 };
29358
29359 int
29360 main (void)
29361 {
29362
29363
29364 ;
29365 return 0;
29366 }
29367
29368 _ACEOF
29369
29370
29371
29372 cat - <<_ACEOF >conftest.h
29373
29374 _ACEOF
29375
29376
29377 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29378 echo "obj-m := conftest.o" >build/Makefile
29379 modpost_flag=''
29380 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29381 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29383 (eval $ac_try) 2>&5
29384 ac_status=$?
29385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29386 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29388 (eval $ac_try) 2>&5
29389 ac_status=$?
29390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29391 test $ac_status = 0; }; }; then :
29392
29393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29394 $as_echo "yes" >&6; }
29395
29396 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
29397
29398
29399 else
29400 $as_echo "$as_me: failed program was:" >&5
29401 sed 's/^/| /' conftest.$ac_ext >&5
29402
29403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29404 $as_echo "no" >&6; }
29405
29406
29407
29408 fi
29409 rm -Rf build
29410
29411
29412
29413
29414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
29415 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
29416
29417
29418 cat confdefs.h - <<_ACEOF >conftest.c
29419
29420
29421 #include <linux/exportfs.h>
29422 int commit_metadata(struct inode *inode) { return 0; }
29423 static struct export_operations eops __attribute__ ((unused))={
29424 .commit_metadata = commit_metadata,
29425 };
29426
29427 int
29428 main (void)
29429 {
29430
29431
29432 ;
29433 return 0;
29434 }
29435
29436 _ACEOF
29437
29438
29439
29440 cat - <<_ACEOF >conftest.h
29441
29442 _ACEOF
29443
29444
29445 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29446 echo "obj-m := conftest.o" >build/Makefile
29447 modpost_flag=''
29448 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29449 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29451 (eval $ac_try) 2>&5
29452 ac_status=$?
29453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29454 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29456 (eval $ac_try) 2>&5
29457 ac_status=$?
29458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29459 test $ac_status = 0; }; }; then :
29460
29461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29462 $as_echo "yes" >&6; }
29463
29464 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
29465
29466
29467 else
29468 $as_echo "$as_me: failed program was:" >&5
29469 sed 's/^/| /' conftest.$ac_ext >&5
29470
29471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29472 $as_echo "no" >&6; }
29473
29474
29475
29476 fi
29477 rm -Rf build
29478
29479
29480
29481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
29482 $as_echo_n "checking whether clear_inode() is available... " >&6; }
29483
29484
29485
29486 cat confdefs.h - <<_ACEOF >conftest.c
29487
29488
29489 #include <linux/fs.h>
29490
29491 int
29492 main (void)
29493 {
29494
29495 clear_inode(NULL);
29496
29497 ;
29498 return 0;
29499 }
29500
29501 _ACEOF
29502
29503
29504
29505 cat - <<_ACEOF >conftest.h
29506
29507 _ACEOF
29508
29509
29510 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29511 echo "obj-m := conftest.o" >build/Makefile
29512 modpost_flag=''
29513 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29514 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29516 (eval $ac_try) 2>&5
29517 ac_status=$?
29518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29519 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29521 (eval $ac_try) 2>&5
29522 ac_status=$?
29523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29524 test $ac_status = 0; }; }; then :
29525 rc=0
29526 else
29527 $as_echo "$as_me: failed program was:" >&5
29528 sed 's/^/| /' conftest.$ac_ext >&5
29529 rc=1
29530
29531
29532 fi
29533 rm -Rf build
29534
29535
29536 if test $rc -ne 0; then :
29537
29538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29539 $as_echo "no" >&6; }
29540
29541 else
29542 if test "x$enable_linux_builtin" != xyes; then
29543
29544 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
29545 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29546 rc=$?
29547 if test $rc -ne 0; then
29548 export=0
29549 for file in fs/inode.c; do
29550 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
29551 "$LINUX/$file" 2>/dev/null
29552 rc=$?
29553 if test $rc -eq 0; then
29554 export=1
29555 break;
29556 fi
29557 done
29558 if test $export -eq 0; then :
29559 rc=1
29560 else :
29561 rc=0
29562 fi
29563 else :
29564 rc=0
29565 fi
29566
29567 fi
29568 if test $rc -ne 0; then :
29569
29570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29571 $as_echo "no" >&6; }
29572
29573 else :
29574
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29576 $as_echo "yes" >&6; }
29577
29578 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
29579
29580
29581 fi
29582 fi
29583
29584
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
29586 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
29587
29588
29589
29590 cat confdefs.h - <<_ACEOF >conftest.c
29591
29592
29593 #include <linux/fs.h>
29594
29595 int
29596 main (void)
29597 {
29598
29599 insert_inode_locked(NULL);
29600
29601 ;
29602 return 0;
29603 }
29604
29605 _ACEOF
29606
29607
29608
29609 cat - <<_ACEOF >conftest.h
29610
29611 _ACEOF
29612
29613
29614 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29615 echo "obj-m := conftest.o" >build/Makefile
29616 modpost_flag=''
29617 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29618 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29620 (eval $ac_try) 2>&5
29621 ac_status=$?
29622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29623 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29625 (eval $ac_try) 2>&5
29626 ac_status=$?
29627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29628 test $ac_status = 0; }; }; then :
29629 rc=0
29630 else
29631 $as_echo "$as_me: failed program was:" >&5
29632 sed 's/^/| /' conftest.$ac_ext >&5
29633 rc=1
29634
29635
29636 fi
29637 rm -Rf build
29638
29639
29640 if test $rc -ne 0; then :
29641
29642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29643 $as_echo "no" >&6; }
29644
29645 else
29646 if test "x$enable_linux_builtin" != xyes; then
29647
29648 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
29649 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29650 rc=$?
29651 if test $rc -ne 0; then
29652 export=0
29653 for file in fs/inode.c; do
29654 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
29655 "$LINUX/$file" 2>/dev/null
29656 rc=$?
29657 if test $rc -eq 0; then
29658 export=1
29659 break;
29660 fi
29661 done
29662 if test $export -eq 0; then :
29663 rc=1
29664 else :
29665 rc=0
29666 fi
29667 else :
29668 rc=0
29669 fi
29670
29671 fi
29672 if test $rc -ne 0; then :
29673
29674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29675 $as_echo "no" >&6; }
29676
29677 else :
29678
29679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29680 $as_echo "yes" >&6; }
29681
29682 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
29683
29684
29685 fi
29686 fi
29687
29688
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
29690 $as_echo_n "checking whether d_make_root() is available... " >&6; }
29691
29692
29693
29694 cat confdefs.h - <<_ACEOF >conftest.c
29695
29696
29697 #include <linux/dcache.h>
29698
29699 int
29700 main (void)
29701 {
29702
29703 d_make_root(NULL);
29704
29705 ;
29706 return 0;
29707 }
29708
29709 _ACEOF
29710
29711
29712
29713 cat - <<_ACEOF >conftest.h
29714
29715 _ACEOF
29716
29717
29718 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29719 echo "obj-m := conftest.o" >build/Makefile
29720 modpost_flag=''
29721 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29722 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29724 (eval $ac_try) 2>&5
29725 ac_status=$?
29726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29727 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29729 (eval $ac_try) 2>&5
29730 ac_status=$?
29731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29732 test $ac_status = 0; }; }; then :
29733 rc=0
29734 else
29735 $as_echo "$as_me: failed program was:" >&5
29736 sed 's/^/| /' conftest.$ac_ext >&5
29737 rc=1
29738
29739
29740 fi
29741 rm -Rf build
29742
29743
29744 if test $rc -ne 0; then :
29745
29746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29747 $as_echo "no" >&6; }
29748
29749 else
29750 if test "x$enable_linux_builtin" != xyes; then
29751
29752 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
29753 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29754 rc=$?
29755 if test $rc -ne 0; then
29756 export=0
29757 for file in fs/dcache.c; do
29758 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
29759 "$LINUX/$file" 2>/dev/null
29760 rc=$?
29761 if test $rc -eq 0; then
29762 export=1
29763 break;
29764 fi
29765 done
29766 if test $export -eq 0; then :
29767 rc=1
29768 else :
29769 rc=0
29770 fi
29771 else :
29772 rc=0
29773 fi
29774
29775 fi
29776 if test $rc -ne 0; then :
29777
29778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29779 $as_echo "no" >&6; }
29780
29781 else :
29782
29783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29784 $as_echo "yes" >&6; }
29785
29786 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
29787
29788
29789 fi
29790 fi
29791
29792
29793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
29794 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
29795
29796
29797
29798 cat confdefs.h - <<_ACEOF >conftest.c
29799
29800
29801 #include <linux/dcache.h>
29802
29803 int
29804 main (void)
29805 {
29806
29807 d_obtain_alias(NULL);
29808
29809 ;
29810 return 0;
29811 }
29812
29813 _ACEOF
29814
29815
29816
29817 cat - <<_ACEOF >conftest.h
29818
29819 _ACEOF
29820
29821
29822 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29823 echo "obj-m := conftest.o" >build/Makefile
29824 modpost_flag=''
29825 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29826 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29828 (eval $ac_try) 2>&5
29829 ac_status=$?
29830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29831 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29833 (eval $ac_try) 2>&5
29834 ac_status=$?
29835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29836 test $ac_status = 0; }; }; then :
29837 rc=0
29838 else
29839 $as_echo "$as_me: failed program was:" >&5
29840 sed 's/^/| /' conftest.$ac_ext >&5
29841 rc=1
29842
29843
29844 fi
29845 rm -Rf build
29846
29847
29848 if test $rc -ne 0; then :
29849
29850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29851 $as_echo "no" >&6; }
29852
29853 else
29854 if test "x$enable_linux_builtin" != xyes; then
29855
29856 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
29857 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29858 rc=$?
29859 if test $rc -ne 0; then
29860 export=0
29861 for file in fs/dcache.c; do
29862 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
29863 "$LINUX/$file" 2>/dev/null
29864 rc=$?
29865 if test $rc -eq 0; then
29866 export=1
29867 break;
29868 fi
29869 done
29870 if test $export -eq 0; then :
29871 rc=1
29872 else :
29873 rc=0
29874 fi
29875 else :
29876 rc=0
29877 fi
29878
29879 fi
29880 if test $rc -ne 0; then :
29881
29882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29883 $as_echo "no" >&6; }
29884
29885 else :
29886
29887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29888 $as_echo "yes" >&6; }
29889
29890 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
29891
29892
29893 fi
29894 fi
29895
29896
29897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
29898 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
29899
29900
29901
29902 cat confdefs.h - <<_ACEOF >conftest.c
29903
29904
29905 #include <linux/dcache.h>
29906
29907 int
29908 main (void)
29909 {
29910
29911 struct inode *ip = NULL;
29912 d_prune_aliases(ip);
29913
29914 ;
29915 return 0;
29916 }
29917
29918 _ACEOF
29919
29920
29921
29922 cat - <<_ACEOF >conftest.h
29923
29924 _ACEOF
29925
29926
29927 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29928 echo "obj-m := conftest.o" >build/Makefile
29929 modpost_flag=''
29930 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29931 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29933 (eval $ac_try) 2>&5
29934 ac_status=$?
29935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29936 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29938 (eval $ac_try) 2>&5
29939 ac_status=$?
29940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29941 test $ac_status = 0; }; }; then :
29942 rc=0
29943 else
29944 $as_echo "$as_me: failed program was:" >&5
29945 sed 's/^/| /' conftest.$ac_ext >&5
29946 rc=1
29947
29948
29949 fi
29950 rm -Rf build
29951
29952
29953 if test $rc -ne 0; then :
29954
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29956 $as_echo "no" >&6; }
29957
29958 else
29959 if test "x$enable_linux_builtin" != xyes; then
29960
29961 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
29962 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29963 rc=$?
29964 if test $rc -ne 0; then
29965 export=0
29966 for file in fs/dcache.c; do
29967 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
29968 "$LINUX/$file" 2>/dev/null
29969 rc=$?
29970 if test $rc -eq 0; then
29971 export=1
29972 break;
29973 fi
29974 done
29975 if test $export -eq 0; then :
29976 rc=1
29977 else :
29978 rc=0
29979 fi
29980 else :
29981 rc=0
29982 fi
29983
29984 fi
29985 if test $rc -ne 0; then :
29986
29987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29988 $as_echo "no" >&6; }
29989
29990 else :
29991
29992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29993 $as_echo "yes" >&6; }
29994
29995 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
29996
29997
29998 fi
29999 fi
30000
30001
30002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
30003 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
30004
30005
30006
30007 cat confdefs.h - <<_ACEOF >conftest.c
30008
30009
30010 #include <linux/dcache.h>
30011
30012 int
30013 main (void)
30014 {
30015
30016 d_set_d_op(NULL, NULL);
30017
30018 ;
30019 return 0;
30020 }
30021
30022 _ACEOF
30023
30024
30025
30026 cat - <<_ACEOF >conftest.h
30027
30028 _ACEOF
30029
30030
30031 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30032 echo "obj-m := conftest.o" >build/Makefile
30033 modpost_flag=''
30034 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30035 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30037 (eval $ac_try) 2>&5
30038 ac_status=$?
30039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30040 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30042 (eval $ac_try) 2>&5
30043 ac_status=$?
30044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30045 test $ac_status = 0; }; }; then :
30046 rc=0
30047 else
30048 $as_echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.$ac_ext >&5
30050 rc=1
30051
30052
30053 fi
30054 rm -Rf build
30055
30056
30057 if test $rc -ne 0; then :
30058
30059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30060 $as_echo "no" >&6; }
30061
30062 else
30063 if test "x$enable_linux_builtin" != xyes; then
30064
30065 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
30066 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30067 rc=$?
30068 if test $rc -ne 0; then
30069 export=0
30070 for file in fs/dcache.c; do
30071 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
30072 "$LINUX/$file" 2>/dev/null
30073 rc=$?
30074 if test $rc -eq 0; then
30075 export=1
30076 break;
30077 fi
30078 done
30079 if test $export -eq 0; then :
30080 rc=1
30081 else :
30082 rc=0
30083 fi
30084 else :
30085 rc=0
30086 fi
30087
30088 fi
30089 if test $rc -ne 0; then :
30090
30091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30092 $as_echo "no" >&6; }
30093
30094 else :
30095
30096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30097 $as_echo "yes" >&6; }
30098
30099 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
30100
30101
30102 fi
30103 fi
30104
30105
30106
30107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
30108 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
30109
30110
30111 cat confdefs.h - <<_ACEOF >conftest.c
30112
30113
30114 #include <linux/dcache.h>
30115
30116 int revalidate (struct dentry *dentry,
30117 struct nameidata *nidata) { return 0; }
30118
30119 static const struct dentry_operations
30120 dops __attribute__ ((unused)) = {
30121 .d_revalidate = revalidate,
30122 };
30123
30124 int
30125 main (void)
30126 {
30127
30128
30129 ;
30130 return 0;
30131 }
30132
30133 _ACEOF
30134
30135
30136
30137 cat - <<_ACEOF >conftest.h
30138
30139 _ACEOF
30140
30141
30142 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30143 echo "obj-m := conftest.o" >build/Makefile
30144 modpost_flag=''
30145 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30146 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30148 (eval $ac_try) 2>&5
30149 ac_status=$?
30150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30151 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30153 (eval $ac_try) 2>&5
30154 ac_status=$?
30155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30156 test $ac_status = 0; }; }; then :
30157
30158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30159 $as_echo "yes" >&6; }
30160
30161 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
30162
30163
30164 else
30165 $as_echo "$as_me: failed program was:" >&5
30166 sed 's/^/| /' conftest.$ac_ext >&5
30167
30168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30169 $as_echo "no" >&6; }
30170
30171
30172
30173 fi
30174 rm -Rf build
30175
30176
30177
30178
30179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
30180 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
30181
30182
30183 cat confdefs.h - <<_ACEOF >conftest.c
30184
30185
30186 #include <linux/dcache.h>
30187
30188 const struct dentry_operations test_d_op = {
30189 .d_revalidate = NULL,
30190 };
30191
30192 int
30193 main (void)
30194 {
30195
30196 struct dentry d __attribute__ ((unused));
30197
30198 d.d_op = &test_d_op;
30199
30200 ;
30201 return 0;
30202 }
30203
30204 _ACEOF
30205
30206
30207
30208 cat - <<_ACEOF >conftest.h
30209
30210 _ACEOF
30211
30212
30213 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30214 echo "obj-m := conftest.o" >build/Makefile
30215 modpost_flag=''
30216 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30217 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30219 (eval $ac_try) 2>&5
30220 ac_status=$?
30221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30222 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30224 (eval $ac_try) 2>&5
30225 ac_status=$?
30226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30227 test $ac_status = 0; }; }; then :
30228
30229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30230 $as_echo "yes" >&6; }
30231
30232 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
30233
30234
30235 else
30236 $as_echo "$as_me: failed program was:" >&5
30237 sed 's/^/| /' conftest.$ac_ext >&5
30238
30239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30240 $as_echo "no" >&6; }
30241
30242
30243
30244 fi
30245 rm -Rf build
30246
30247
30248
30249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
30250 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
30251
30252
30253
30254 cat confdefs.h - <<_ACEOF >conftest.c
30255
30256
30257 #include <linux/fs.h>
30258
30259 int
30260 main (void)
30261 {
30262
30263 check_disk_size_change(NULL, NULL);
30264
30265 ;
30266 return 0;
30267 }
30268
30269 _ACEOF
30270
30271
30272
30273 cat - <<_ACEOF >conftest.h
30274
30275 _ACEOF
30276
30277
30278 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30279 echo "obj-m := conftest.o" >build/Makefile
30280 modpost_flag=''
30281 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30282 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30284 (eval $ac_try) 2>&5
30285 ac_status=$?
30286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30287 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30289 (eval $ac_try) 2>&5
30290 ac_status=$?
30291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30292 test $ac_status = 0; }; }; then :
30293 rc=0
30294 else
30295 $as_echo "$as_me: failed program was:" >&5
30296 sed 's/^/| /' conftest.$ac_ext >&5
30297 rc=1
30298
30299
30300 fi
30301 rm -Rf build
30302
30303
30304 if test $rc -ne 0; then :
30305
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30307 $as_echo "no" >&6; }
30308
30309 else
30310 if test "x$enable_linux_builtin" != xyes; then
30311
30312 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
30313 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30314 rc=$?
30315 if test $rc -ne 0; then
30316 export=0
30317 for file in fs/block_dev.c; do
30318 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
30319 "$LINUX/$file" 2>/dev/null
30320 rc=$?
30321 if test $rc -eq 0; then
30322 export=1
30323 break;
30324 fi
30325 done
30326 if test $export -eq 0; then :
30327 rc=1
30328 else :
30329 rc=0
30330 fi
30331 else :
30332 rc=0
30333 fi
30334
30335 fi
30336 if test $rc -ne 0; then :
30337
30338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30339 $as_echo "no" >&6; }
30340
30341 else :
30342
30343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30344 $as_echo "yes" >&6; }
30345
30346 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
30347
30348
30349 fi
30350 fi
30351
30352
30353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
30354 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
30355
30356
30357
30358 cat confdefs.h - <<_ACEOF >conftest.c
30359
30360
30361 #include <linux/mm.h>
30362
30363 int
30364 main (void)
30365 {
30366
30367 truncate_setsize(NULL, 0);
30368
30369 ;
30370 return 0;
30371 }
30372
30373 _ACEOF
30374
30375
30376
30377 cat - <<_ACEOF >conftest.h
30378
30379 _ACEOF
30380
30381
30382 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30383 echo "obj-m := conftest.o" >build/Makefile
30384 modpost_flag=''
30385 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30386 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30388 (eval $ac_try) 2>&5
30389 ac_status=$?
30390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30391 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30393 (eval $ac_try) 2>&5
30394 ac_status=$?
30395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30396 test $ac_status = 0; }; }; then :
30397 rc=0
30398 else
30399 $as_echo "$as_me: failed program was:" >&5
30400 sed 's/^/| /' conftest.$ac_ext >&5
30401 rc=1
30402
30403
30404 fi
30405 rm -Rf build
30406
30407
30408 if test $rc -ne 0; then :
30409
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30411 $as_echo "no" >&6; }
30412
30413 else
30414 if test "x$enable_linux_builtin" != xyes; then
30415
30416 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
30417 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30418 rc=$?
30419 if test $rc -ne 0; then
30420 export=0
30421 for file in mm/truncate.c; do
30422 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
30423 "$LINUX/$file" 2>/dev/null
30424 rc=$?
30425 if test $rc -eq 0; then
30426 export=1
30427 break;
30428 fi
30429 done
30430 if test $export -eq 0; then :
30431 rc=1
30432 else :
30433 rc=0
30434 fi
30435 else :
30436 rc=0
30437 fi
30438
30439 fi
30440 if test $rc -ne 0; then :
30441
30442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30443 $as_echo "no" >&6; }
30444
30445 else :
30446
30447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30448 $as_echo "yes" >&6; }
30449
30450 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
30451
30452
30453 fi
30454 fi
30455
30456
30457
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
30459 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
30460
30461
30462 cat confdefs.h - <<_ACEOF >conftest.c
30463
30464
30465 #include <linux/security.h>
30466
30467 int
30468 main (void)
30469 {
30470
30471 struct inode *ip __attribute__ ((unused)) = NULL;
30472 struct inode *dip __attribute__ ((unused)) = NULL;
30473 const struct qstr *str __attribute__ ((unused)) = NULL;
30474 char *name __attribute__ ((unused)) = NULL;
30475 void *value __attribute__ ((unused)) = NULL;
30476 size_t len __attribute__ ((unused)) = 0;
30477
30478 security_inode_init_security(ip, dip, str, &name, &value, &len);
30479
30480 ;
30481 return 0;
30482 }
30483
30484 _ACEOF
30485
30486
30487
30488 cat - <<_ACEOF >conftest.h
30489
30490 _ACEOF
30491
30492
30493 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30494 echo "obj-m := conftest.o" >build/Makefile
30495 modpost_flag=''
30496 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30497 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30499 (eval $ac_try) 2>&5
30500 ac_status=$?
30501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30502 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30504 (eval $ac_try) 2>&5
30505 ac_status=$?
30506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30507 test $ac_status = 0; }; }; then :
30508
30509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30510 $as_echo "yes" >&6; }
30511
30512 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
30513
30514
30515 else
30516 $as_echo "$as_me: failed program was:" >&5
30517 sed 's/^/| /' conftest.$ac_ext >&5
30518
30519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30520 $as_echo "no" >&6; }
30521
30522
30523
30524 fi
30525 rm -Rf build
30526
30527
30528
30529
30530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
30531 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
30532
30533
30534 cat confdefs.h - <<_ACEOF >conftest.c
30535
30536
30537 #include <linux/security.h>
30538
30539 int
30540 main (void)
30541 {
30542
30543 struct inode *ip __attribute__ ((unused)) = NULL;
30544 struct inode *dip __attribute__ ((unused)) = NULL;
30545 const struct qstr *str __attribute__ ((unused)) = NULL;
30546 initxattrs func __attribute__ ((unused)) = NULL;
30547
30548 security_inode_init_security(ip, dip, str, func, NULL);
30549
30550 ;
30551 return 0;
30552 }
30553
30554 _ACEOF
30555
30556
30557
30558 cat - <<_ACEOF >conftest.h
30559
30560 _ACEOF
30561
30562
30563 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30564 echo "obj-m := conftest.o" >build/Makefile
30565 modpost_flag=''
30566 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30567 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30569 (eval $ac_try) 2>&5
30570 ac_status=$?
30571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30572 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30574 (eval $ac_try) 2>&5
30575 ac_status=$?
30576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30577 test $ac_status = 0; }; }; then :
30578
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30580 $as_echo "yes" >&6; }
30581
30582 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
30583
30584
30585 else
30586 $as_echo "$as_me: failed program was:" >&5
30587 sed 's/^/| /' conftest.$ac_ext >&5
30588
30589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30590 $as_echo "no" >&6; }
30591
30592
30593
30594 fi
30595 rm -Rf build
30596
30597
30598
30599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
30600 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
30601
30602
30603
30604 cat confdefs.h - <<_ACEOF >conftest.c
30605
30606
30607 #include <linux/fs.h>
30608
30609 int
30610 main (void)
30611 {
30612
30613 mount_nodev(NULL, 0, NULL, NULL);
30614
30615 ;
30616 return 0;
30617 }
30618
30619 _ACEOF
30620
30621
30622
30623 cat - <<_ACEOF >conftest.h
30624
30625 _ACEOF
30626
30627
30628 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30629 echo "obj-m := conftest.o" >build/Makefile
30630 modpost_flag=''
30631 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30632 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30634 (eval $ac_try) 2>&5
30635 ac_status=$?
30636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30637 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30639 (eval $ac_try) 2>&5
30640 ac_status=$?
30641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30642 test $ac_status = 0; }; }; then :
30643 rc=0
30644 else
30645 $as_echo "$as_me: failed program was:" >&5
30646 sed 's/^/| /' conftest.$ac_ext >&5
30647 rc=1
30648
30649
30650 fi
30651 rm -Rf build
30652
30653
30654 if test $rc -ne 0; then :
30655
30656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30657 $as_echo "no" >&6; }
30658
30659 else
30660 if test "x$enable_linux_builtin" != xyes; then
30661
30662 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
30663 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30664 rc=$?
30665 if test $rc -ne 0; then
30666 export=0
30667 for file in fs/super.c; do
30668 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
30669 "$LINUX/$file" 2>/dev/null
30670 rc=$?
30671 if test $rc -eq 0; then
30672 export=1
30673 break;
30674 fi
30675 done
30676 if test $export -eq 0; then :
30677 rc=1
30678 else :
30679 rc=0
30680 fi
30681 else :
30682 rc=0
30683 fi
30684
30685 fi
30686 if test $rc -ne 0; then :
30687
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30689 $as_echo "no" >&6; }
30690
30691 else :
30692
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30694 $as_echo "yes" >&6; }
30695
30696 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
30697
30698
30699 fi
30700 fi
30701
30702
30703
30704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
30705 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
30706
30707
30708 cat confdefs.h - <<_ACEOF >conftest.c
30709
30710
30711 #include <linux/fs.h>
30712
30713 int shrink(struct shrinker *s, struct shrink_control *sc)
30714 { return 0; }
30715
30716 static const struct super_block
30717 sb __attribute__ ((unused)) = {
30718 .s_shrink.shrink = shrink,
30719 .s_shrink.seeks = DEFAULT_SEEKS,
30720 .s_shrink.batch = 0,
30721 };
30722
30723 int
30724 main (void)
30725 {
30726
30727
30728 ;
30729 return 0;
30730 }
30731
30732 _ACEOF
30733
30734
30735
30736 cat - <<_ACEOF >conftest.h
30737
30738 _ACEOF
30739
30740
30741 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30742 echo "obj-m := conftest.o" >build/Makefile
30743 modpost_flag=''
30744 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30745 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30747 (eval $ac_try) 2>&5
30748 ac_status=$?
30749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30750 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30752 (eval $ac_try) 2>&5
30753 ac_status=$?
30754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30755 test $ac_status = 0; }; }; then :
30756
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30758 $as_echo "yes" >&6; }
30759
30760 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
30761
30762
30763
30764 else
30765 $as_echo "$as_me: failed program was:" >&5
30766 sed 's/^/| /' conftest.$ac_ext >&5
30767
30768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30769 $as_echo "no" >&6; }
30770
30771
30772
30773 fi
30774 rm -Rf build
30775
30776
30777
30778
30779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
30780 $as_echo_n "checking whether shrink_control has nid... " >&6; }
30781
30782
30783 cat confdefs.h - <<_ACEOF >conftest.c
30784
30785
30786 #include <linux/fs.h>
30787
30788 int
30789 main (void)
30790 {
30791
30792 struct shrink_control sc __attribute__ ((unused));
30793 unsigned long scnidsize __attribute__ ((unused)) =
30794 sizeof(sc.nid);
30795
30796 ;
30797 return 0;
30798 }
30799
30800 _ACEOF
30801
30802
30803
30804 cat - <<_ACEOF >conftest.h
30805
30806 _ACEOF
30807
30808
30809 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30810 echo "obj-m := conftest.o" >build/Makefile
30811 modpost_flag=''
30812 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30813 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30815 (eval $ac_try) 2>&5
30816 ac_status=$?
30817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30818 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30820 (eval $ac_try) 2>&5
30821 ac_status=$?
30822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30823 test $ac_status = 0; }; }; then :
30824
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30826 $as_echo "yes" >&6; }
30827
30828 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
30829
30830
30831 else
30832 $as_echo "$as_me: failed program was:" >&5
30833 sed 's/^/| /' conftest.$ac_ext >&5
30834
30835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30836 $as_echo "no" >&6; }
30837
30838
30839
30840 fi
30841 rm -Rf build
30842
30843
30844
30845
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
30847 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
30848
30849
30850 cat confdefs.h - <<_ACEOF >conftest.c
30851
30852
30853 #include <linux/fs.h>
30854
30855 int
30856 main (void)
30857 {
30858
30859 struct super_block sb __attribute__ ((unused));
30860
30861 INIT_LIST_HEAD(&sb.s_instances);
30862
30863 ;
30864 return 0;
30865 }
30866
30867 _ACEOF
30868
30869
30870
30871 cat - <<_ACEOF >conftest.h
30872
30873 _ACEOF
30874
30875
30876 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30877 echo "obj-m := conftest.o" >build/Makefile
30878 modpost_flag=''
30879 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30880 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30882 (eval $ac_try) 2>&5
30883 ac_status=$?
30884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30885 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30887 (eval $ac_try) 2>&5
30888 ac_status=$?
30889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30890 test $ac_status = 0; }; }; then :
30891
30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30893 $as_echo "yes" >&6; }
30894
30895 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
30896
30897
30898 else
30899 $as_echo "$as_me: failed program was:" >&5
30900 sed 's/^/| /' conftest.$ac_ext >&5
30901
30902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30903 $as_echo "no" >&6; }
30904
30905
30906
30907 fi
30908 rm -Rf build
30909
30910
30911
30912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
30913 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
30914
30915
30916 cat confdefs.h - <<_ACEOF >conftest.c
30917
30918
30919 #include <linux/fs.h>
30920
30921 int
30922 main (void)
30923 {
30924
30925 struct super_block sb __attribute__ ((unused));
30926 sb.s_d_op = NULL;
30927
30928 ;
30929 return 0;
30930 }
30931
30932 _ACEOF
30933
30934
30935
30936 cat - <<_ACEOF >conftest.h
30937
30938 _ACEOF
30939
30940
30941 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30942 echo "obj-m := conftest.o" >build/Makefile
30943 modpost_flag=''
30944 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30945 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30947 (eval $ac_try) 2>&5
30948 ac_status=$?
30949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30950 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30952 (eval $ac_try) 2>&5
30953 ac_status=$?
30954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30955 test $ac_status = 0; }; }; then :
30956
30957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30958 $as_echo "yes" >&6; }
30959
30960 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
30961
30962
30963 else
30964 $as_echo "$as_me: failed program was:" >&5
30965 sed 's/^/| /' conftest.$ac_ext >&5
30966
30967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30968 $as_echo "no" >&6; }
30969
30970
30971
30972 fi
30973 rm -Rf build
30974
30975
30976
30977
30978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
30979 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
30980
30981
30982
30983 cat confdefs.h - <<_ACEOF >conftest.c
30984
30985
30986 #include <linux/backing-dev.h>
30987 struct backing_dev_info bdi;
30988
30989 int
30990 main (void)
30991 {
30992
30993 char *name = "bdi";
30994 int error __attribute__((unused)) =
30995 bdi_setup_and_register(&bdi, name);
30996
30997 ;
30998 return 0;
30999 }
31000
31001 _ACEOF
31002
31003
31004
31005 cat - <<_ACEOF >conftest.h
31006
31007 _ACEOF
31008
31009
31010 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31011 echo "obj-m := conftest.o" >build/Makefile
31012 modpost_flag=''
31013 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31014 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31016 (eval $ac_try) 2>&5
31017 ac_status=$?
31018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31019 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31021 (eval $ac_try) 2>&5
31022 ac_status=$?
31023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31024 test $ac_status = 0; }; }; then :
31025 rc=0
31026 else
31027 $as_echo "$as_me: failed program was:" >&5
31028 sed 's/^/| /' conftest.$ac_ext >&5
31029 rc=1
31030
31031
31032 fi
31033 rm -Rf build
31034
31035
31036 if test $rc -ne 0; then :
31037
31038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31039 $as_echo "no" >&6; }
31040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
31041 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
31042
31043
31044
31045 cat confdefs.h - <<_ACEOF >conftest.c
31046
31047
31048 #include <linux/backing-dev.h>
31049 struct backing_dev_info bdi;
31050
31051 int
31052 main (void)
31053 {
31054
31055 char *name = "bdi";
31056 unsigned int cap = BDI_CAP_MAP_COPY;
31057 int error __attribute__((unused)) =
31058 bdi_setup_and_register(&bdi, name, cap);
31059
31060 ;
31061 return 0;
31062 }
31063
31064 _ACEOF
31065
31066
31067
31068 cat - <<_ACEOF >conftest.h
31069
31070 _ACEOF
31071
31072
31073 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31074 echo "obj-m := conftest.o" >build/Makefile
31075 modpost_flag=''
31076 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31077 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31079 (eval $ac_try) 2>&5
31080 ac_status=$?
31081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31082 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31084 (eval $ac_try) 2>&5
31085 ac_status=$?
31086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31087 test $ac_status = 0; }; }; then :
31088 rc=0
31089 else
31090 $as_echo "$as_me: failed program was:" >&5
31091 sed 's/^/| /' conftest.$ac_ext >&5
31092 rc=1
31093
31094
31095 fi
31096 rm -Rf build
31097
31098
31099 if test $rc -ne 0; then :
31100
31101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31102 $as_echo "no" >&6; }
31103
31104 else
31105 if test "x$enable_linux_builtin" != xyes; then
31106
31107 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
31108 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
31109 rc=$?
31110 if test $rc -ne 0; then
31111 export=0
31112 for file in mm/backing-dev.c; do
31113 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
31114 "$LINUX/$file" 2>/dev/null
31115 rc=$?
31116 if test $rc -eq 0; then
31117 export=1
31118 break;
31119 fi
31120 done
31121 if test $export -eq 0; then :
31122 rc=1
31123 else :
31124 rc=0
31125 fi
31126 else :
31127 rc=0
31128 fi
31129
31130 fi
31131 if test $rc -ne 0; then :
31132
31133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31134 $as_echo "no" >&6; }
31135
31136 else :
31137
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31139 $as_echo "yes" >&6; }
31140
31141 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
31142
31143
31144 fi
31145 fi
31146
31147
31148 else
31149 if test "x$enable_linux_builtin" != xyes; then
31150
31151 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
31152 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
31153 rc=$?
31154 if test $rc -ne 0; then
31155 export=0
31156 for file in mm/backing-dev.c; do
31157 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
31158 "$LINUX/$file" 2>/dev/null
31159 rc=$?
31160 if test $rc -eq 0; then
31161 export=1
31162 break;
31163 fi
31164 done
31165 if test $export -eq 0; then :
31166 rc=1
31167 else :
31168 rc=0
31169 fi
31170 else :
31171 rc=0
31172 fi
31173
31174 fi
31175 if test $rc -ne 0; then :
31176
31177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31178 $as_echo "no" >&6; }
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
31180 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
31181
31182
31183
31184 cat confdefs.h - <<_ACEOF >conftest.c
31185
31186
31187 #include <linux/backing-dev.h>
31188 struct backing_dev_info bdi;
31189
31190 int
31191 main (void)
31192 {
31193
31194 char *name = "bdi";
31195 unsigned int cap = BDI_CAP_MAP_COPY;
31196 int error __attribute__((unused)) =
31197 bdi_setup_and_register(&bdi, name, cap);
31198
31199 ;
31200 return 0;
31201 }
31202
31203 _ACEOF
31204
31205
31206
31207 cat - <<_ACEOF >conftest.h
31208
31209 _ACEOF
31210
31211
31212 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31213 echo "obj-m := conftest.o" >build/Makefile
31214 modpost_flag=''
31215 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31216 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31218 (eval $ac_try) 2>&5
31219 ac_status=$?
31220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31221 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31223 (eval $ac_try) 2>&5
31224 ac_status=$?
31225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31226 test $ac_status = 0; }; }; then :
31227 rc=0
31228 else
31229 $as_echo "$as_me: failed program was:" >&5
31230 sed 's/^/| /' conftest.$ac_ext >&5
31231 rc=1
31232
31233
31234 fi
31235 rm -Rf build
31236
31237
31238 if test $rc -ne 0; then :
31239
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31241 $as_echo "no" >&6; }
31242
31243 else
31244 if test "x$enable_linux_builtin" != xyes; then
31245
31246 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
31247 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
31248 rc=$?
31249 if test $rc -ne 0; then
31250 export=0
31251 for file in mm/backing-dev.c; do
31252 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
31253 "$LINUX/$file" 2>/dev/null
31254 rc=$?
31255 if test $rc -eq 0; then
31256 export=1
31257 break;
31258 fi
31259 done
31260 if test $export -eq 0; then :
31261 rc=1
31262 else :
31263 rc=0
31264 fi
31265 else :
31266 rc=0
31267 fi
31268
31269 fi
31270 if test $rc -ne 0; then :
31271
31272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31273 $as_echo "no" >&6; }
31274
31275 else :
31276
31277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31278 $as_echo "yes" >&6; }
31279
31280 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
31281
31282
31283 fi
31284 fi
31285
31286
31287 else :
31288
31289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31290 $as_echo "yes" >&6; }
31291
31292 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
31293
31294
31295 fi
31296 fi
31297
31298
31299
31300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
31301 $as_echo_n "checking whether set_nlink() is available... " >&6; }
31302
31303
31304 cat confdefs.h - <<_ACEOF >conftest.c
31305
31306
31307 #include <linux/fs.h>
31308
31309 int
31310 main (void)
31311 {
31312
31313 struct inode node;
31314 unsigned int link = 0;
31315 (void) set_nlink(&node, link);
31316
31317 ;
31318 return 0;
31319 }
31320
31321 _ACEOF
31322
31323
31324
31325 cat - <<_ACEOF >conftest.h
31326
31327 _ACEOF
31328
31329
31330 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31331 echo "obj-m := conftest.o" >build/Makefile
31332 modpost_flag=''
31333 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31334 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31336 (eval $ac_try) 2>&5
31337 ac_status=$?
31338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31339 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31341 (eval $ac_try) 2>&5
31342 ac_status=$?
31343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31344 test $ac_status = 0; }; }; then :
31345
31346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31347 $as_echo "yes" >&6; }
31348
31349 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
31350
31351
31352 else
31353 $as_echo "$as_me: failed program was:" >&5
31354 sed 's/^/| /' conftest.$ac_ext >&5
31355
31356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31357 $as_echo "no" >&6; }
31358
31359
31360
31361 fi
31362 rm -Rf build
31363
31364
31365
31366
31367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
31368 $as_echo_n "checking whether elevator_change() is available... " >&6; }
31369 tmp_flags="$EXTRA_KCFLAGS"
31370 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31371
31372
31373 cat confdefs.h - <<_ACEOF >conftest.c
31374
31375
31376 #include <linux/blkdev.h>
31377 #include <linux/elevator.h>
31378
31379 int
31380 main (void)
31381 {
31382
31383 int ret;
31384 struct request_queue *q = NULL;
31385 char *elevator = NULL;
31386 ret = elevator_change(q, elevator);
31387
31388 ;
31389 return 0;
31390 }
31391
31392 _ACEOF
31393
31394
31395
31396 cat - <<_ACEOF >conftest.h
31397
31398 _ACEOF
31399
31400
31401 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31402 echo "obj-m := conftest.o" >build/Makefile
31403 modpost_flag=''
31404 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31405 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31407 (eval $ac_try) 2>&5
31408 ac_status=$?
31409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31410 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31412 (eval $ac_try) 2>&5
31413 ac_status=$?
31414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31415 test $ac_status = 0; }; }; then :
31416
31417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31418 $as_echo "yes" >&6; }
31419
31420 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
31421
31422
31423 else
31424 $as_echo "$as_me: failed program was:" >&5
31425 sed 's/^/| /' conftest.$ac_ext >&5
31426
31427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31428 $as_echo "no" >&6; }
31429
31430
31431
31432 fi
31433 rm -Rf build
31434
31435
31436 EXTRA_KCFLAGS="$tmp_flags"
31437
31438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
31439 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
31440
31441
31442 cat confdefs.h - <<_ACEOF >conftest.c
31443
31444
31445 #include <linux/fs.h>
31446
31447 int
31448 main (void)
31449 {
31450
31451 struct file_system_type *type = NULL;
31452 int (*test)(struct super_block *,void *) = NULL;
31453 int (*set)(struct super_block *,void *) = NULL;
31454 int flags = 0;
31455 void *data = NULL;
31456 (void) sget(type, test, set, flags, data);
31457
31458 ;
31459 return 0;
31460 }
31461
31462 _ACEOF
31463
31464
31465
31466 cat - <<_ACEOF >conftest.h
31467
31468 _ACEOF
31469
31470
31471 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31472 echo "obj-m := conftest.o" >build/Makefile
31473 modpost_flag=''
31474 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31475 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31477 (eval $ac_try) 2>&5
31478 ac_status=$?
31479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31480 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31482 (eval $ac_try) 2>&5
31483 ac_status=$?
31484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31485 test $ac_status = 0; }; }; then :
31486
31487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31488 $as_echo "yes" >&6; }
31489
31490 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
31491
31492
31493 else
31494 $as_echo "$as_me: failed program was:" >&5
31495 sed 's/^/| /' conftest.$ac_ext >&5
31496
31497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31498 $as_echo "no" >&6; }
31499
31500
31501
31502 fi
31503 rm -Rf build
31504
31505
31506
31507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
31508 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
31509
31510
31511
31512 cat confdefs.h - <<_ACEOF >conftest.c
31513
31514
31515 #include <linux/fs.h>
31516
31517 int
31518 main (void)
31519 {
31520
31521 struct file *fp __attribute__ ((unused)) = NULL;
31522 struct inode *ip __attribute__ ((unused)) = NULL;
31523 loff_t offset __attribute__ ((unused)) = 0;
31524 loff_t maxsize __attribute__ ((unused)) = 0;
31525
31526 lseek_execute(fp, ip, offset, maxsize);
31527
31528 ;
31529 return 0;
31530 }
31531
31532 _ACEOF
31533
31534
31535
31536 cat - <<_ACEOF >conftest.h
31537
31538 _ACEOF
31539
31540
31541 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31542 echo "obj-m := conftest.o" >build/Makefile
31543 modpost_flag=''
31544 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31545 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31547 (eval $ac_try) 2>&5
31548 ac_status=$?
31549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31550 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31552 (eval $ac_try) 2>&5
31553 ac_status=$?
31554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31555 test $ac_status = 0; }; }; then :
31556 rc=0
31557 else
31558 $as_echo "$as_me: failed program was:" >&5
31559 sed 's/^/| /' conftest.$ac_ext >&5
31560 rc=1
31561
31562
31563 fi
31564 rm -Rf build
31565
31566
31567 if test $rc -ne 0; then :
31568
31569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31570 $as_echo "no" >&6; }
31571
31572 else
31573 if test "x$enable_linux_builtin" != xyes; then
31574
31575 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
31576 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
31577 rc=$?
31578 if test $rc -ne 0; then
31579 export=0
31580 for file in fs/read_write.c; do
31581 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
31582 "$LINUX/$file" 2>/dev/null
31583 rc=$?
31584 if test $rc -eq 0; then
31585 export=1
31586 break;
31587 fi
31588 done
31589 if test $export -eq 0; then :
31590 rc=1
31591 else :
31592 rc=0
31593 fi
31594 else :
31595 rc=0
31596 fi
31597
31598 fi
31599 if test $rc -ne 0; then :
31600
31601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31602 $as_echo "no" >&6; }
31603
31604 else :
31605
31606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31607 $as_echo "yes" >&6; }
31608
31609 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
31610
31611
31612 fi
31613 fi
31614
31615
31616
31617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
31618 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
31619
31620
31621 cat confdefs.h - <<_ACEOF >conftest.c
31622
31623
31624 #include <linux/fs.h>
31625 int iterate(struct file *filp, struct dir_context * context)
31626 { return 0; }
31627
31628 static const struct file_operations fops
31629 __attribute__ ((unused)) = {
31630 .iterate = iterate,
31631 };
31632
31633 int
31634 main (void)
31635 {
31636
31637
31638 ;
31639 return 0;
31640 }
31641
31642 _ACEOF
31643
31644
31645
31646 cat - <<_ACEOF >conftest.h
31647
31648 _ACEOF
31649
31650
31651 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31652 echo "obj-m := conftest.o" >build/Makefile
31653 modpost_flag=''
31654 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31655 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31657 (eval $ac_try) 2>&5
31658 ac_status=$?
31659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31660 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31662 (eval $ac_try) 2>&5
31663 ac_status=$?
31664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31665 test $ac_status = 0; }; }; then :
31666
31667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31668 $as_echo "yes" >&6; }
31669
31670 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
31671
31672
31673 else
31674 $as_echo "$as_me: failed program was:" >&5
31675 sed 's/^/| /' conftest.$ac_ext >&5
31676
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31678 $as_echo "no" >&6; }
31679
31680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
31681 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
31682
31683
31684 cat confdefs.h - <<_ACEOF >conftest.c
31685
31686
31687 #include <linux/fs.h>
31688 int readdir(struct file *filp, void *entry, filldir_t func)
31689 { return 0; }
31690
31691 static const struct file_operations fops
31692 __attribute__ ((unused)) = {
31693 .readdir = readdir,
31694 };
31695
31696 int
31697 main (void)
31698 {
31699
31700
31701 ;
31702 return 0;
31703 }
31704
31705 _ACEOF
31706
31707
31708
31709 cat - <<_ACEOF >conftest.h
31710
31711 _ACEOF
31712
31713
31714 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31715 echo "obj-m := conftest.o" >build/Makefile
31716 modpost_flag=''
31717 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31718 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31720 (eval $ac_try) 2>&5
31721 ac_status=$?
31722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31723 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31725 (eval $ac_try) 2>&5
31726 ac_status=$?
31727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31728 test $ac_status = 0; }; }; then :
31729
31730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31731 $as_echo "yes" >&6; }
31732
31733 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
31734
31735
31736 else
31737 $as_echo "$as_me: failed program was:" >&5
31738 sed 's/^/| /' conftest.$ac_ext >&5
31739
31740 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
31741
31742
31743
31744 fi
31745 rm -Rf build
31746
31747
31748
31749
31750
31751
31752 fi
31753 rm -Rf build
31754
31755
31756
31757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
31758 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
31759
31760
31761 cat confdefs.h - <<_ACEOF >conftest.c
31762
31763
31764 #include <linux/fs.h>
31765
31766 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
31767 { return 0; }
31768 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
31769 { return 0; }
31770
31771 static const struct file_operations
31772 fops __attribute__ ((unused)) = {
31773 .read_iter = test_read,
31774 .write_iter = test_write,
31775 };
31776
31777 int
31778 main (void)
31779 {
31780
31781
31782 ;
31783 return 0;
31784 }
31785
31786 _ACEOF
31787
31788
31789
31790 cat - <<_ACEOF >conftest.h
31791
31792 _ACEOF
31793
31794
31795 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31796 echo "obj-m := conftest.o" >build/Makefile
31797 modpost_flag=''
31798 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31799 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31801 (eval $ac_try) 2>&5
31802 ac_status=$?
31803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31804 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31806 (eval $ac_try) 2>&5
31807 ac_status=$?
31808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31809 test $ac_status = 0; }; }; then :
31810
31811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31812 $as_echo "yes" >&6; }
31813
31814 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
31815
31816
31817 else
31818 $as_echo "$as_me: failed program was:" >&5
31819 sed 's/^/| /' conftest.$ac_ext >&5
31820
31821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31822 $as_echo "no" >&6; }
31823
31824
31825
31826 fi
31827 rm -Rf build
31828
31829
31830
31831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
31832 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
31833
31834
31835 cat confdefs.h - <<_ACEOF >conftest.c
31836
31837
31838 #include <linux/fs.h>
31839
31840
31841 int
31842 main (void)
31843 {
31844
31845 struct kiocb *iocb = NULL;
31846 struct iov_iter *iov = NULL;
31847 generic_write_checks(iocb, iov);
31848
31849 ;
31850 return 0;
31851 }
31852
31853 _ACEOF
31854
31855
31856
31857 cat - <<_ACEOF >conftest.h
31858
31859 _ACEOF
31860
31861
31862 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31863 echo "obj-m := conftest.o" >build/Makefile
31864 modpost_flag=''
31865 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31866 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31868 (eval $ac_try) 2>&5
31869 ac_status=$?
31870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31871 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31873 (eval $ac_try) 2>&5
31874 ac_status=$?
31875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31876 test $ac_status = 0; }; }; then :
31877
31878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31879 $as_echo "yes" >&6; }
31880
31881 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
31882
31883
31884 else
31885 $as_echo "$as_me: failed program was:" >&5
31886 sed 's/^/| /' conftest.$ac_ext >&5
31887
31888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31889 $as_echo "no" >&6; }
31890
31891
31892
31893 fi
31894 rm -Rf build
31895
31896
31897
31898
31899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
31900 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
31901
31902
31903 cat confdefs.h - <<_ACEOF >conftest.c
31904
31905
31906 #include <linux/pagemap.h>
31907
31908 int
31909 main (void)
31910 {
31911
31912 struct page page;
31913 kmap_atomic(&page);
31914
31915 ;
31916 return 0;
31917 }
31918
31919 _ACEOF
31920
31921
31922
31923 cat - <<_ACEOF >conftest.h
31924
31925 _ACEOF
31926
31927
31928 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31929 echo "obj-m := conftest.o" >build/Makefile
31930 modpost_flag=''
31931 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31932 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31934 (eval $ac_try) 2>&5
31935 ac_status=$?
31936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31937 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31939 (eval $ac_try) 2>&5
31940 ac_status=$?
31941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31942 test $ac_status = 0; }; }; then :
31943
31944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31945 $as_echo "yes" >&6; }
31946
31947 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
31948
31949
31950 else
31951 $as_echo "$as_me: failed program was:" >&5
31952 sed 's/^/| /' conftest.$ac_ext >&5
31953
31954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31955 $as_echo "no" >&6; }
31956
31957
31958
31959 fi
31960 rm -Rf build
31961
31962
31963
31964
31965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
31966 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
31967
31968
31969 cat confdefs.h - <<_ACEOF >conftest.c
31970
31971
31972 #include <linux/namei.h>
31973
31974 int
31975 main (void)
31976 {
31977
31978 struct path *p = NULL;
31979 follow_down_one(p);
31980
31981 ;
31982 return 0;
31983 }
31984
31985 _ACEOF
31986
31987
31988
31989 cat - <<_ACEOF >conftest.h
31990
31991 _ACEOF
31992
31993
31994 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31995 echo "obj-m := conftest.o" >build/Makefile
31996 modpost_flag=''
31997 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31998 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32000 (eval $ac_try) 2>&5
32001 ac_status=$?
32002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32003 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32005 (eval $ac_try) 2>&5
32006 ac_status=$?
32007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32008 test $ac_status = 0; }; }; then :
32009
32010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32011 $as_echo "yes" >&6; }
32012
32013 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
32014
32015
32016 else
32017 $as_echo "$as_me: failed program was:" >&5
32018 sed 's/^/| /' conftest.$ac_ext >&5
32019
32020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32021 $as_echo "no" >&6; }
32022
32023
32024
32025 fi
32026 rm -Rf build
32027
32028
32029
32030
32031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
32032 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
32033
32034
32035 cat confdefs.h - <<_ACEOF >conftest.c
32036
32037
32038 #include <linux/blkdev.h>
32039
32040 int make_request(struct request_queue *q, struct bio *bio)
32041 {
32042 return (0);
32043 }
32044
32045 int
32046 main (void)
32047 {
32048
32049 blk_queue_make_request(NULL, &make_request);
32050
32051 ;
32052 return 0;
32053 }
32054
32055 _ACEOF
32056
32057
32058
32059 cat - <<_ACEOF >conftest.h
32060
32061 _ACEOF
32062
32063
32064 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32065 echo "obj-m := conftest.o" >build/Makefile
32066 modpost_flag=''
32067 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32068 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32070 (eval $ac_try) 2>&5
32071 ac_status=$?
32072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32073 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32075 (eval $ac_try) 2>&5
32076 ac_status=$?
32077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32078 test $ac_status = 0; }; }; then :
32079
32080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32081 $as_echo "yes" >&6; }
32082
32083 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
32084
32085
32086 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
32087
32088
32089 else
32090 $as_echo "$as_me: failed program was:" >&5
32091 sed 's/^/| /' conftest.$ac_ext >&5
32092
32093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32094 $as_echo "no" >&6; }
32095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
32096 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
32097
32098
32099 cat confdefs.h - <<_ACEOF >conftest.c
32100
32101
32102 #include <linux/blkdev.h>
32103
32104 void make_request(struct request_queue *q, struct bio *bio)
32105 {
32106 return;
32107 }
32108
32109 int
32110 main (void)
32111 {
32112
32113 blk_queue_make_request(NULL, &make_request);
32114
32115 ;
32116 return 0;
32117 }
32118
32119 _ACEOF
32120
32121
32122
32123 cat - <<_ACEOF >conftest.h
32124
32125 _ACEOF
32126
32127
32128 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32129 echo "obj-m := conftest.o" >build/Makefile
32130 modpost_flag=''
32131 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32132 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32134 (eval $ac_try) 2>&5
32135 ac_status=$?
32136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32137 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32139 (eval $ac_try) 2>&5
32140 ac_status=$?
32141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32142 test $ac_status = 0; }; }; then :
32143
32144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32145 $as_echo "yes" >&6; }
32146
32147 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
32148
32149
32150 else
32151 $as_echo "$as_me: failed program was:" >&5
32152 sed 's/^/| /' conftest.$ac_ext >&5
32153
32154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32155 $as_echo "no" >&6; }
32156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
32157 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
32158
32159
32160 cat confdefs.h - <<_ACEOF >conftest.c
32161
32162
32163 #include <linux/blkdev.h>
32164
32165 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
32166 {
32167 return (BLK_QC_T_NONE);
32168 }
32169
32170 int
32171 main (void)
32172 {
32173
32174 blk_queue_make_request(NULL, &make_request);
32175
32176 ;
32177 return 0;
32178 }
32179
32180 _ACEOF
32181
32182
32183
32184 cat - <<_ACEOF >conftest.h
32185
32186 _ACEOF
32187
32188
32189 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32190 echo "obj-m := conftest.o" >build/Makefile
32191 modpost_flag=''
32192 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32193 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32195 (eval $ac_try) 2>&5
32196 ac_status=$?
32197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32198 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32200 (eval $ac_try) 2>&5
32201 ac_status=$?
32202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32203 test $ac_status = 0; }; }; then :
32204
32205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32206 $as_echo "yes" >&6; }
32207
32208 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
32209
32210
32211 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
32212
32213
32214 else
32215 $as_echo "$as_me: failed program was:" >&5
32216 sed 's/^/| /' conftest.$ac_ext >&5
32217
32218 as_fn_error $? "no - Please file a bug report at
32219 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
32220
32221
32222
32223 fi
32224 rm -Rf build
32225
32226
32227
32228
32229
32230 fi
32231 rm -Rf build
32232
32233
32234
32235
32236
32237 fi
32238 rm -Rf build
32239
32240
32241
32242
32243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
32244 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
32245
32246
32247
32248 cat confdefs.h - <<_ACEOF >conftest.c
32249
32250
32251 #include <linux/bio.h>
32252
32253 void (*generic_start_io_acct_f)(int, unsigned long,
32254 struct hd_struct *) = &generic_start_io_acct;
32255 void (*generic_end_io_acct_f)(int, struct hd_struct *,
32256 unsigned long) = &generic_end_io_acct;
32257
32258 int
32259 main (void)
32260 {
32261
32262 generic_start_io_acct(0, 0, NULL);
32263 generic_end_io_acct(0, NULL, 0);
32264
32265 ;
32266 return 0;
32267 }
32268
32269 _ACEOF
32270
32271
32272
32273 cat - <<_ACEOF >conftest.h
32274
32275 _ACEOF
32276
32277
32278 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32279 echo "obj-m := conftest.o" >build/Makefile
32280 modpost_flag=''
32281 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32282 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32284 (eval $ac_try) 2>&5
32285 ac_status=$?
32286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32287 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32289 (eval $ac_try) 2>&5
32290 ac_status=$?
32291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32292 test $ac_status = 0; }; }; then :
32293 rc=0
32294 else
32295 $as_echo "$as_me: failed program was:" >&5
32296 sed 's/^/| /' conftest.$ac_ext >&5
32297 rc=1
32298
32299
32300 fi
32301 rm -Rf build
32302
32303
32304 if test $rc -ne 0; then :
32305
32306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32307 $as_echo "no" >&6; }
32308
32309 else
32310 if test "x$enable_linux_builtin" != xyes; then
32311
32312 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
32313 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
32314 rc=$?
32315 if test $rc -ne 0; then
32316 export=0
32317 for file in block/bio.c; do
32318 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
32319 "$LINUX/$file" 2>/dev/null
32320 rc=$?
32321 if test $rc -eq 0; then
32322 export=1
32323 break;
32324 fi
32325 done
32326 if test $export -eq 0; then :
32327 rc=1
32328 else :
32329 rc=0
32330 fi
32331 else :
32332 rc=0
32333 fi
32334
32335 fi
32336 if test $rc -ne 0; then :
32337
32338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32339 $as_echo "no" >&6; }
32340
32341 else :
32342
32343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32344 $as_echo "yes" >&6; }
32345
32346 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
32347
32348
32349 fi
32350 fi
32351
32352
32353
32354 if test "$LINUX_OBJ" != "$LINUX"; then :
32355
32356 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
32357
32358 fi
32359
32360
32361
32362 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
32363 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
32364 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
32365 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
32366
32367
32368
32369
32370
32371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
32372 $as_echo_n "checking for dkms.conf file... " >&6; }
32373 if test -e dkms.conf; then :
32374
32375 as_fn_error $? "
32376 *** ZFS should not be manually built in the DKMS source tree.
32377 *** Remove all ZFS packages before compiling the ZoL sources.
32378 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
32379
32380 else
32381
32382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
32383 $as_echo "not found" >&6; }
32384
32385 fi
32386
32387
32388
32389 # Check whether --with-mounthelperdir was given.
32390 if test "${with_mounthelperdir+set}" = set; then :
32391 withval=$with_mounthelperdir; mounthelperdir=$withval
32392 else
32393 mounthelperdir=/sbin
32394 fi
32395
32396
32397
32398
32399
32400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
32401 $as_echo_n "checking for udev directories... " >&6; }
32402
32403 # Check whether --with-udevdir was given.
32404 if test "${with_udevdir+set}" = set; then :
32405 withval=$with_udevdir; udevdir=$withval
32406 else
32407 udevdir=check
32408 fi
32409
32410
32411 if test "x$udevdir" = xcheck; then :
32412
32413 path1=/lib/udev
32414 path2=/usr/lib/udev
32415 default=$path2
32416
32417 if test -d "$path1"; then :
32418 udevdir="$path1"
32419 else
32420
32421 if test -d "$path2"; then :
32422 udevdir="$path2"
32423 else
32424 udevdir="$default"
32425 fi
32426
32427 fi
32428
32429 fi
32430
32431
32432 # Check whether --with-udevruledir was given.
32433 if test "${with_udevruledir+set}" = set; then :
32434 withval=$with_udevruledir; udevruledir=$withval
32435 else
32436 udevruledir="${udevdir}/rules.d"
32437 fi
32438
32439
32440
32441
32442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
32443 $as_echo "$udevdir;$udevruledir" >&6; }
32444
32445
32446 LIBAIO=
32447
32448 ac_fn_c_check_header_mongrel "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
32449 if test "x$ac_cv_header_libaio_h" = xyes; then :
32450
32451 user_libaio=yes
32452 LIBAIO="-laio"
32453
32454
32455 $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h
32456
32457
32458 else
32459
32460 user_libaio=no
32461
32462 fi
32463
32464
32465
32466
32467 # Check whether --enable-systemd was given.
32468 if test "${enable_systemd+set}" = set; then :
32469 enableval=$enable_systemd;
32470 else
32471 enable_systemd=yes
32472 fi
32473
32474
32475
32476 # Check whether --with-systemdunitdir was given.
32477 if test "${with_systemdunitdir+set}" = set; then :
32478 withval=$with_systemdunitdir; systemdunitdir=$withval
32479 else
32480 systemdunitdir=/usr/lib/systemd/system
32481 fi
32482
32483
32484
32485 # Check whether --with-systemdpresetdir was given.
32486 if test "${with_systemdpresetdir+set}" = set; then :
32487 withval=$with_systemdpresetdir; systemdpresetdir=$withval
32488 else
32489 systemdpresetdir=/usr/lib/systemd/system-preset
32490 fi
32491
32492
32493
32494 # Check whether --with-systemdmodulesloaddir was given.
32495 if test "${with_systemdmodulesloaddir+set}" = set; then :
32496 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
32497 else
32498 systemdmodulesloaddir=/usr/lib/modules-load.d
32499 fi
32500
32501
32502
32503 if test "x$enable_systemd" = xyes; then :
32504
32505 ZFS_INIT_SYSTEMD=systemd
32506 ZFS_MODULE_LOAD=modules-load.d
32507 modulesloaddir=$systemdmodulesloaddir
32508
32509 fi
32510
32511
32512
32513
32514
32515
32516
32517
32518 # Check whether --enable-sysvinit was given.
32519 if test "${enable_sysvinit+set}" = set; then :
32520 enableval=$enable_sysvinit;
32521 else
32522 enable_sysvinit=yes
32523 fi
32524
32525
32526 if test "x$enable_sysvinit" = xyes; then :
32527 ZFS_INIT_SYSV=init.d
32528 fi
32529
32530
32531
32532
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
32534 $as_echo_n "checking for dracut directory... " >&6; }
32535
32536 # Check whether --with-dracutdir was given.
32537 if test "${with_dracutdir+set}" = set; then :
32538 withval=$with_dracutdir; dracutdir=$withval
32539 else
32540 dracutdir=check
32541 fi
32542
32543
32544 if test "x$dracutdir" = xcheck; then :
32545
32546 path1=/usr/share/dracut
32547 path2=/usr/lib/dracut
32548 default=$path2
32549
32550 if test -d "$path1"; then :
32551 dracutdir="$path1"
32552 else
32553
32554 if test -d "$path2"; then :
32555 dracutdir="$path2"
32556 else
32557 dracutdir="$default"
32558 fi
32559
32560 fi
32561
32562 fi
32563
32564
32565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
32566 $as_echo "$dracutdir" >&6; }
32567
32568
32569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
32570 $as_echo_n "checking for target asm dir... " >&6; }
32571 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
32572
32573 case $TARGET_ARCH in
32574 i386|x86_64)
32575 TARGET_ASM_DIR=asm-${TARGET_ARCH}
32576 ;;
32577 *)
32578 TARGET_ASM_DIR=asm-generic
32579 ;;
32580 esac
32581
32582
32583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
32584 $as_echo "$TARGET_ASM_DIR" >&6; }
32585
32586
32587 ZLIB=
32588
32589 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
32590 if test "x$ac_cv_header_zlib_h" = xyes; then :
32591
32592 else
32593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32595 as_fn_error $? "
32596 *** zlib.h missing, zlib-devel package required
32597 See \`config.log' for more details" "$LINENO" 5; }
32598 fi
32599
32600
32601
32602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
32603 $as_echo_n "checking for compress2 in -lz... " >&6; }
32604 if ${ac_cv_lib_z_compress2+:} false; then :
32605 $as_echo_n "(cached) " >&6
32606 else
32607 ac_check_lib_save_LIBS=$LIBS
32608 LIBS="-lz $LIBS"
32609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32610 /* end confdefs.h. */
32611
32612 /* Override any GCC internal prototype to avoid an error.
32613 Use char because int might match the return type of a GCC
32614 builtin and then its argument prototype would still apply. */
32615 #ifdef __cplusplus
32616 extern "C"
32617 #endif
32618 char compress2 ();
32619 int
32620 main ()
32621 {
32622 return compress2 ();
32623 ;
32624 return 0;
32625 }
32626 _ACEOF
32627 if ac_fn_c_try_link "$LINENO"; then :
32628 ac_cv_lib_z_compress2=yes
32629 else
32630 ac_cv_lib_z_compress2=no
32631 fi
32632 rm -f core conftest.err conftest.$ac_objext \
32633 conftest$ac_exeext conftest.$ac_ext
32634 LIBS=$ac_check_lib_save_LIBS
32635 fi
32636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
32637 $as_echo "$ac_cv_lib_z_compress2" >&6; }
32638 if test "x$ac_cv_lib_z_compress2" = xyes; then :
32639 cat >>confdefs.h <<_ACEOF
32640 #define HAVE_LIBZ 1
32641 _ACEOF
32642
32643 LIBS="-lz $LIBS"
32644
32645 else
32646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32648 as_fn_error $? "
32649 *** compress2() missing, zlib-devel package required
32650 See \`config.log' for more details" "$LINENO" 5; }
32651 fi
32652
32653
32654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
32655 $as_echo_n "checking for uncompress in -lz... " >&6; }
32656 if ${ac_cv_lib_z_uncompress+:} false; then :
32657 $as_echo_n "(cached) " >&6
32658 else
32659 ac_check_lib_save_LIBS=$LIBS
32660 LIBS="-lz $LIBS"
32661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32662 /* end confdefs.h. */
32663
32664 /* Override any GCC internal prototype to avoid an error.
32665 Use char because int might match the return type of a GCC
32666 builtin and then its argument prototype would still apply. */
32667 #ifdef __cplusplus
32668 extern "C"
32669 #endif
32670 char uncompress ();
32671 int
32672 main ()
32673 {
32674 return uncompress ();
32675 ;
32676 return 0;
32677 }
32678 _ACEOF
32679 if ac_fn_c_try_link "$LINENO"; then :
32680 ac_cv_lib_z_uncompress=yes
32681 else
32682 ac_cv_lib_z_uncompress=no
32683 fi
32684 rm -f core conftest.err conftest.$ac_objext \
32685 conftest$ac_exeext conftest.$ac_ext
32686 LIBS=$ac_check_lib_save_LIBS
32687 fi
32688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
32689 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
32690 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
32691 cat >>confdefs.h <<_ACEOF
32692 #define HAVE_LIBZ 1
32693 _ACEOF
32694
32695 LIBS="-lz $LIBS"
32696
32697 else
32698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32700 as_fn_error $? "
32701 *** uncompress() missing, zlib-devel package required
32702 See \`config.log' for more details" "$LINENO" 5; }
32703 fi
32704
32705
32706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
32707 $as_echo_n "checking for crc32 in -lz... " >&6; }
32708 if ${ac_cv_lib_z_crc32+:} false; then :
32709 $as_echo_n "(cached) " >&6
32710 else
32711 ac_check_lib_save_LIBS=$LIBS
32712 LIBS="-lz $LIBS"
32713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32714 /* end confdefs.h. */
32715
32716 /* Override any GCC internal prototype to avoid an error.
32717 Use char because int might match the return type of a GCC
32718 builtin and then its argument prototype would still apply. */
32719 #ifdef __cplusplus
32720 extern "C"
32721 #endif
32722 char crc32 ();
32723 int
32724 main ()
32725 {
32726 return crc32 ();
32727 ;
32728 return 0;
32729 }
32730 _ACEOF
32731 if ac_fn_c_try_link "$LINENO"; then :
32732 ac_cv_lib_z_crc32=yes
32733 else
32734 ac_cv_lib_z_crc32=no
32735 fi
32736 rm -f core conftest.err conftest.$ac_objext \
32737 conftest$ac_exeext conftest.$ac_ext
32738 LIBS=$ac_check_lib_save_LIBS
32739 fi
32740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
32741 $as_echo "$ac_cv_lib_z_crc32" >&6; }
32742 if test "x$ac_cv_lib_z_crc32" = xyes; then :
32743 cat >>confdefs.h <<_ACEOF
32744 #define HAVE_LIBZ 1
32745 _ACEOF
32746
32747 LIBS="-lz $LIBS"
32748
32749 else
32750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32752 as_fn_error $? "
32753 *** crc32() missing, zlib-devel package required
32754 See \`config.log' for more details" "$LINENO" 5; }
32755 fi
32756
32757
32758 ZLIB="-lz"
32759
32760
32761 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
32762
32763
32764
32765 LIBUUID=
32766
32767 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
32768 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
32769
32770 else
32771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32773 as_fn_error $? "
32774 *** uuid/uuid.h missing, libuuid-devel package required
32775 See \`config.log' for more details" "$LINENO" 5; }
32776 fi
32777
32778
32779
32780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
32781 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
32782 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
32783 $as_echo_n "(cached) " >&6
32784 else
32785 ac_check_lib_save_LIBS=$LIBS
32786 LIBS="-luuid $LIBS"
32787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32788 /* end confdefs.h. */
32789
32790 /* Override any GCC internal prototype to avoid an error.
32791 Use char because int might match the return type of a GCC
32792 builtin and then its argument prototype would still apply. */
32793 #ifdef __cplusplus
32794 extern "C"
32795 #endif
32796 char uuid_generate ();
32797 int
32798 main ()
32799 {
32800 return uuid_generate ();
32801 ;
32802 return 0;
32803 }
32804 _ACEOF
32805 if ac_fn_c_try_link "$LINENO"; then :
32806 ac_cv_lib_uuid_uuid_generate=yes
32807 else
32808 ac_cv_lib_uuid_uuid_generate=no
32809 fi
32810 rm -f core conftest.err conftest.$ac_objext \
32811 conftest$ac_exeext conftest.$ac_ext
32812 LIBS=$ac_check_lib_save_LIBS
32813 fi
32814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
32815 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
32816 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
32817 cat >>confdefs.h <<_ACEOF
32818 #define HAVE_LIBUUID 1
32819 _ACEOF
32820
32821 LIBS="-luuid $LIBS"
32822
32823 else
32824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32826 as_fn_error $? "
32827 *** uuid_generate() missing, libuuid-devel package required
32828 See \`config.log' for more details" "$LINENO" 5; }
32829 fi
32830
32831
32832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
32833 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
32834 if ${ac_cv_lib_uuid_uuid_is_null+:} false; then :
32835 $as_echo_n "(cached) " >&6
32836 else
32837 ac_check_lib_save_LIBS=$LIBS
32838 LIBS="-luuid $LIBS"
32839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32840 /* end confdefs.h. */
32841
32842 /* Override any GCC internal prototype to avoid an error.
32843 Use char because int might match the return type of a GCC
32844 builtin and then its argument prototype would still apply. */
32845 #ifdef __cplusplus
32846 extern "C"
32847 #endif
32848 char uuid_is_null ();
32849 int
32850 main ()
32851 {
32852 return uuid_is_null ();
32853 ;
32854 return 0;
32855 }
32856 _ACEOF
32857 if ac_fn_c_try_link "$LINENO"; then :
32858 ac_cv_lib_uuid_uuid_is_null=yes
32859 else
32860 ac_cv_lib_uuid_uuid_is_null=no
32861 fi
32862 rm -f core conftest.err conftest.$ac_objext \
32863 conftest$ac_exeext conftest.$ac_ext
32864 LIBS=$ac_check_lib_save_LIBS
32865 fi
32866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
32867 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
32868 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then :
32869 cat >>confdefs.h <<_ACEOF
32870 #define HAVE_LIBUUID 1
32871 _ACEOF
32872
32873 LIBS="-luuid $LIBS"
32874
32875 else
32876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32878 as_fn_error $? "
32879 *** uuid_is_null() missing, libuuid-devel package required
32880 See \`config.log' for more details" "$LINENO" 5; }
32881 fi
32882
32883
32884 LIBUUID="-luuid"
32885
32886
32887 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
32888
32889
32890
32891
32892 # Check whether --with-blkid was given.
32893 if test "${with_blkid+set}" = set; then :
32894 withval=$with_blkid;
32895 else
32896 with_blkid=check
32897 fi
32898
32899
32900 LIBBLKID=
32901 if test "x$with_blkid" = xyes; then :
32902
32903 LIBBLKID="-lblkid"
32904
32905
32906 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
32907
32908
32909 fi
32910
32911 if test "x$with_blkid" = xcheck; then :
32912
32913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
32914 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
32915 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
32916 $as_echo_n "(cached) " >&6
32917 else
32918 ac_check_lib_save_LIBS=$LIBS
32919 LIBS="-lblkid $LIBS"
32920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32921 /* end confdefs.h. */
32922
32923 /* Override any GCC internal prototype to avoid an error.
32924 Use char because int might match the return type of a GCC
32925 builtin and then its argument prototype would still apply. */
32926 #ifdef __cplusplus
32927 extern "C"
32928 #endif
32929 char blkid_get_cache ();
32930 int
32931 main ()
32932 {
32933 return blkid_get_cache ();
32934 ;
32935 return 0;
32936 }
32937 _ACEOF
32938 if ac_fn_c_try_link "$LINENO"; then :
32939 ac_cv_lib_blkid_blkid_get_cache=yes
32940 else
32941 ac_cv_lib_blkid_blkid_get_cache=no
32942 fi
32943 rm -f core conftest.err conftest.$ac_objext \
32944 conftest$ac_exeext conftest.$ac_ext
32945 LIBS=$ac_check_lib_save_LIBS
32946 fi
32947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
32948 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
32949 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
32950
32951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
32952 $as_echo_n "checking for blkid zfs support... " >&6; }
32953
32954 ZFS_DEV=`mktemp`
32955 truncate -s 64M $ZFS_DEV
32956 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
32957 dd of=$ZFS_DEV bs=1k count=8 \
32958 seek=128 conv=notrunc &>/dev/null \
32959 >/dev/null 2>/dev/null
32960 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
32961 dd of=$ZFS_DEV bs=1k count=8 \
32962 seek=132 conv=notrunc &>/dev/null \
32963 >/dev/null 2>/dev/null
32964 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
32965 dd of=$ZFS_DEV bs=1k count=8 \
32966 seek=136 conv=notrunc &>/dev/null \
32967 >/dev/null 2>/dev/null
32968 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
32969 dd of=$ZFS_DEV bs=1k count=8 \
32970 seek=140 conv=notrunc &>/dev/null \
32971 >/dev/null 2>/dev/null
32972
32973 saved_LIBS="$LIBS"
32974 LIBS="-lblkid"
32975
32976 if test "$cross_compiling" = yes; then :
32977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32979 as_fn_error $? "cannot run test program while cross compiling
32980 See \`config.log' for more details" "$LINENO" 5; }
32981 else
32982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32983 /* end confdefs.h. */
32984
32985 #include <stdio.h>
32986 #include <stdlib.h>
32987 #include <blkid/blkid.h>
32988
32989 int
32990 main ()
32991 {
32992
32993 blkid_cache cache;
32994 char *value;
32995
32996 if (blkid_get_cache(&cache, NULL) < 0)
32997 return 1;
32998
32999 value = blkid_get_tag_value(cache, "TYPE",
33000 "$ZFS_DEV");
33001 if (!value) {
33002 blkid_put_cache(cache);
33003 return 2;
33004 }
33005
33006 if (strcmp(value, "zfs_member")) {
33007 free(value);
33008 blkid_put_cache(cache);
33009 return 0;
33010 }
33011
33012 free(value);
33013 blkid_put_cache(cache);
33014
33015 ;
33016 return 0;
33017 }
33018 _ACEOF
33019 if ac_fn_c_try_run "$LINENO"; then :
33020
33021 rm -f $ZFS_DEV
33022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33023 $as_echo "yes" >&6; }
33024 LIBBLKID="-lblkid"
33025
33026
33027 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
33028
33029
33030 else
33031
33032 rm -f $ZFS_DEV
33033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33034 $as_echo "no" >&6; }
33035 if test "x$with_blkid" != xcheck; then :
33036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33038 as_fn_error $? "--with-blkid given but unavailable
33039 See \`config.log' for more details" "$LINENO" 5; }
33040 fi
33041
33042 fi
33043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33044 conftest.$ac_objext conftest.beam conftest.$ac_ext
33045 fi
33046
33047
33048 LIBS="$saved_LIBS"
33049
33050 else
33051
33052 if test "x$with_blkid" != xcheck; then :
33053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33055 as_fn_error $? "--with-blkid given but unavailable
33056 See \`config.log' for more details" "$LINENO" 5; }
33057 fi
33058
33059
33060 fi
33061
33062
33063 fi
33064
33065
33066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
33067 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
33068
33069 saved_flags="$CFLAGS"
33070 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
33071
33072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33073 /* end confdefs.h. */
33074
33075 int
33076 main ()
33077 {
33078
33079 ;
33080 return 0;
33081 }
33082 _ACEOF
33083 if ac_fn_c_try_compile "$LINENO"; then :
33084
33085 FRAME_LARGER_THAN=-Wframe-larger-than=1024
33086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33087 $as_echo "yes" >&6; }
33088
33089 else
33090
33091 FRAME_LARGER_THAN=
33092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33093 $as_echo "no" >&6; }
33094
33095 fi
33096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33097
33098 CFLAGS="$saved_flags"
33099
33100
33101
33102 if test "x$runstatedir" = x; then
33103 runstatedir='${localstatedir}/run'
33104
33105 fi
33106
33107 for ac_func in mlockall
33108 do :
33109 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
33110 if test "x$ac_cv_func_mlockall" = xyes; then :
33111 cat >>confdefs.h <<_ACEOF
33112 #define HAVE_MLOCKALL 1
33113 _ACEOF
33114
33115 fi
33116 done
33117
33118 ;;
33119 srpm) ;;
33120 *)
33121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
33122 $as_echo "Error!" >&6; }
33123 as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config,
33124 user kernel|user|all|srpm" "$LINENO" 5 ;;
33125 esac
33126
33127 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
33128 CONFIG_USER_TRUE=
33129 CONFIG_USER_FALSE='#'
33130 else
33131 CONFIG_USER_TRUE='#'
33132 CONFIG_USER_FALSE=
33133 fi
33134
33135 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
33136 test "x$enable_linux_builtin" != xyes ; then
33137 CONFIG_KERNEL_TRUE=
33138 CONFIG_KERNEL_FALSE='#'
33139 else
33140 CONFIG_KERNEL_TRUE='#'
33141 CONFIG_KERNEL_FALSE=
33142 fi
33143
33144 if test "x$user_libudev" = xyes ; then
33145 WANT_DEVNAME2DEVID_TRUE=
33146 WANT_DEVNAME2DEVID_FALSE='#'
33147 else
33148 WANT_DEVNAME2DEVID_TRUE='#'
33149 WANT_DEVNAME2DEVID_FALSE=
33150 fi
33151
33152 if test "x$user_libaio" = xyes ; then
33153 WANT_MMAP_LIBAIO_TRUE=
33154 WANT_MMAP_LIBAIO_FALSE='#'
33155 else
33156 WANT_MMAP_LIBAIO_TRUE='#'
33157 WANT_MMAP_LIBAIO_FALSE=
33158 fi
33159
33160
33161
33162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
33163 $as_echo_n "checking whether debugging is enabled... " >&6; }
33164 # Check whether --enable-debug was given.
33165 if test "${enable_debug+set}" = set; then :
33166 enableval=$enable_debug;
33167 else
33168 enable_debug=no
33169 fi
33170
33171
33172 if test "x$enable_debug" = xyes; then :
33173
33174 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
33175 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
33176 DEBUG_CFLAGS="-DDEBUG -Werror"
33177 DEBUG_STACKFLAGS="-fstack-check"
33178 DEBUG_ZFS="_with_debug"
33179
33180 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
33181
33182
33183 else
33184
33185 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
33186 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
33187 DEBUG_CFLAGS="-DNDEBUG"
33188 DEBUG_STACKFLAGS=""
33189 DEBUG_ZFS="_without_debug"
33190
33191 fi
33192
33193
33194
33195
33196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
33197 $as_echo "$enable_debug" >&6; }
33198
33199
33200 # Check whether --enable-debug-dmu-tx was given.
33201 if test "${enable_debug_dmu_tx+set}" = set; then :
33202 enableval=$enable_debug_dmu_tx;
33203 else
33204 enable_debug_dmu_tx=no
33205 fi
33206
33207
33208 if test "x$enable_debug_dmu_tx" = xyes; then :
33209
33210 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
33211 DEBUG_DMU_TX="_with_debug_dmu_tx"
33212
33213 $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
33214
33215
33216 else
33217
33218 DEBUG_DMU_TX="_without_debug_dmu_tx"
33219
33220 fi
33221
33222
33223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
33224 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
33225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
33226 $as_echo "$enable_debug_dmu_tx" >&6; }
33227
33228
33229 ac_config_files="$ac_config_files Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile etc/systemd/Makefile etc/systemd/system/Makefile etc/modules-load.d/Makefile man/Makefile man/man1/Makefile man/man5/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/libzfs.pc lib/libzfs/libzfs_core.pc lib/libzfs/Makefile lib/libzfs_core/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zhack/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/zstreamdump/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/fsck_zfs/Makefile cmd/zvol_id/Makefile cmd/vdev_id/Makefile cmd/arcstat/Makefile cmd/dbufstat/Makefile cmd/arc_summary/Makefile cmd/zed/Makefile contrib/Makefile contrib/bash_completion.d/Makefile contrib/dracut/Makefile contrib/dracut/90zfs/Makefile contrib/initramfs/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/common.sh rpm/Makefile rpm/redhat/Makefile rpm/redhat/zfs.spec rpm/redhat/zfs-kmod.spec rpm/redhat/zfs-dkms.spec rpm/generic/Makefile rpm/generic/zfs.spec rpm/generic/zfs-kmod.spec rpm/generic/zfs-dkms.spec zfs-script-config.sh zfs.release"
33230
33231
33232 cat >confcache <<\_ACEOF
33233 # This file is a shell script that caches the results of configure
33234 # tests run on this system so they can be shared between configure
33235 # scripts and configure runs, see configure's option --config-cache.
33236 # It is not useful on other systems. If it contains results you don't
33237 # want to keep, you may remove or edit it.
33238 #
33239 # config.status only pays attention to the cache file if you give it
33240 # the --recheck option to rerun configure.
33241 #
33242 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33243 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33244 # following values.
33245
33246 _ACEOF
33247
33248 # The following way of writing the cache mishandles newlines in values,
33249 # but we know of no workaround that is simple, portable, and efficient.
33250 # So, we kill variables containing newlines.
33251 # Ultrix sh set writes to stderr and can't be redirected directly,
33252 # and sets the high bit in the cache file unless we assign to the vars.
33253 (
33254 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33255 eval ac_val=\$$ac_var
33256 case $ac_val in #(
33257 *${as_nl}*)
33258 case $ac_var in #(
33259 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33260 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33261 esac
33262 case $ac_var in #(
33263 _ | IFS | as_nl) ;; #(
33264 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33265 *) { eval $ac_var=; unset $ac_var;} ;;
33266 esac ;;
33267 esac
33268 done
33269
33270 (set) 2>&1 |
33271 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33272 *${as_nl}ac_space=\ *)
33273 # `set' does not quote correctly, so add quotes: double-quote
33274 # substitution turns \\\\ into \\, and sed turns \\ into \.
33275 sed -n \
33276 "s/'/'\\\\''/g;
33277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33278 ;; #(
33279 *)
33280 # `set' quotes correctly as required by POSIX, so do not add quotes.
33281 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33282 ;;
33283 esac |
33284 sort
33285 ) |
33286 sed '
33287 /^ac_cv_env_/b end
33288 t clear
33289 :clear
33290 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33291 t end
33292 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33293 :end' >>confcache
33294 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33295 if test -w "$cache_file"; then
33296 if test "x$cache_file" != "x/dev/null"; then
33297 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33298 $as_echo "$as_me: updating cache $cache_file" >&6;}
33299 if test ! -f "$cache_file" || test -h "$cache_file"; then
33300 cat confcache >"$cache_file"
33301 else
33302 case $cache_file in #(
33303 */* | ?:*)
33304 mv -f confcache "$cache_file"$$ &&
33305 mv -f "$cache_file"$$ "$cache_file" ;; #(
33306 *)
33307 mv -f confcache "$cache_file" ;;
33308 esac
33309 fi
33310 fi
33311 else
33312 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33313 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33314 fi
33315 fi
33316 rm -f confcache
33317
33318 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33319 # Let make expand exec_prefix.
33320 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33321
33322 DEFS=-DHAVE_CONFIG_H
33323
33324 ac_libobjs=
33325 ac_ltlibobjs=
33326 U=
33327 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33328 # 1. Remove the extension, and $U if already installed.
33329 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33330 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33331 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33332 # will be set to the directory where LIBOBJS objects are built.
33333 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33334 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33335 done
33336 LIBOBJS=$ac_libobjs
33337
33338 LTLIBOBJS=$ac_ltlibobjs
33339
33340
33341 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33342 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
33343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33344 fi
33345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
33346 $as_echo_n "checking that generated files are newer than configure... " >&6; }
33347 if test -n "$am_sleep_pid"; then
33348 # Hide warnings about reused PIDs.
33349 wait $am_sleep_pid 2>/dev/null
33350 fi
33351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
33352 $as_echo "done" >&6; }
33353 if test -n "$EXEEXT"; then
33354 am__EXEEXT_TRUE=
33355 am__EXEEXT_FALSE='#'
33356 else
33357 am__EXEEXT_TRUE='#'
33358 am__EXEEXT_FALSE=
33359 fi
33360
33361 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33362 as_fn_error $? "conditional \"AMDEP\" was never defined.
33363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33364 fi
33365 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33366 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
33367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33368 fi
33369 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
33370 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
33371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33372 fi
33373 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
33374 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
33375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33376 fi
33377 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
33378 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
33379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33380 fi
33381 if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
33382 as_fn_error $? "conditional \"WANT_DEVNAME2DEVID\" was never defined.
33383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33384 fi
33385 if test -z "${WANT_MMAP_LIBAIO_TRUE}" && test -z "${WANT_MMAP_LIBAIO_FALSE}"; then
33386 as_fn_error $? "conditional \"WANT_MMAP_LIBAIO\" was never defined.
33387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33388 fi
33389
33390 : "${CONFIG_STATUS=./config.status}"
33391 ac_write_fail=0
33392 ac_clean_files_save=$ac_clean_files
33393 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33395 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33396 as_write_fail=0
33397 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33398 #! $SHELL
33399 # Generated by $as_me.
33400 # Run this file to recreate the current configuration.
33401 # Compiler output produced by configure, useful for debugging
33402 # configure, is in config.log if it exists.
33403
33404 debug=false
33405 ac_cs_recheck=false
33406 ac_cs_silent=false
33407
33408 SHELL=\${CONFIG_SHELL-$SHELL}
33409 export SHELL
33410 _ASEOF
33411 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33412 ## -------------------- ##
33413 ## M4sh Initialization. ##
33414 ## -------------------- ##
33415
33416 # Be more Bourne compatible
33417 DUALCASE=1; export DUALCASE # for MKS sh
33418 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33419 emulate sh
33420 NULLCMD=:
33421 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33422 # is contrary to our usage. Disable this feature.
33423 alias -g '${1+"$@"}'='"$@"'
33424 setopt NO_GLOB_SUBST
33425 else
33426 case `(set -o) 2>/dev/null` in #(
33427 *posix*) :
33428 set -o posix ;; #(
33429 *) :
33430 ;;
33431 esac
33432 fi
33433
33434
33435 as_nl='
33436 '
33437 export as_nl
33438 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33439 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33440 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33441 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33442 # Prefer a ksh shell builtin over an external printf program on Solaris,
33443 # but without wasting forks for bash or zsh.
33444 if test -z "$BASH_VERSION$ZSH_VERSION" \
33445 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33446 as_echo='print -r --'
33447 as_echo_n='print -rn --'
33448 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33449 as_echo='printf %s\n'
33450 as_echo_n='printf %s'
33451 else
33452 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33453 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33454 as_echo_n='/usr/ucb/echo -n'
33455 else
33456 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33457 as_echo_n_body='eval
33458 arg=$1;
33459 case $arg in #(
33460 *"$as_nl"*)
33461 expr "X$arg" : "X\\(.*\\)$as_nl";
33462 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33463 esac;
33464 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33465 '
33466 export as_echo_n_body
33467 as_echo_n='sh -c $as_echo_n_body as_echo'
33468 fi
33469 export as_echo_body
33470 as_echo='sh -c $as_echo_body as_echo'
33471 fi
33472
33473 # The user is always right.
33474 if test "${PATH_SEPARATOR+set}" != set; then
33475 PATH_SEPARATOR=:
33476 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33477 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33478 PATH_SEPARATOR=';'
33479 }
33480 fi
33481
33482
33483 # IFS
33484 # We need space, tab and new line, in precisely that order. Quoting is
33485 # there to prevent editors from complaining about space-tab.
33486 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33487 # splitting by setting IFS to empty value.)
33488 IFS=" "" $as_nl"
33489
33490 # Find who we are. Look in the path if we contain no directory separator.
33491 as_myself=
33492 case $0 in #((
33493 *[\\/]* ) as_myself=$0 ;;
33494 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33495 for as_dir in $PATH
33496 do
33497 IFS=$as_save_IFS
33498 test -z "$as_dir" && as_dir=.
33499 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33500 done
33501 IFS=$as_save_IFS
33502
33503 ;;
33504 esac
33505 # We did not find ourselves, most probably we were run as `sh COMMAND'
33506 # in which case we are not to be found in the path.
33507 if test "x$as_myself" = x; then
33508 as_myself=$0
33509 fi
33510 if test ! -f "$as_myself"; then
33511 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33512 exit 1
33513 fi
33514
33515 # Unset variables that we do not need and which cause bugs (e.g. in
33516 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33517 # suppresses any "Segmentation fault" message there. '((' could
33518 # trigger a bug in pdksh 5.2.14.
33519 for as_var in BASH_ENV ENV MAIL MAILPATH
33520 do eval test x\${$as_var+set} = xset \
33521 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33522 done
33523 PS1='$ '
33524 PS2='> '
33525 PS4='+ '
33526
33527 # NLS nuisances.
33528 LC_ALL=C
33529 export LC_ALL
33530 LANGUAGE=C
33531 export LANGUAGE
33532
33533 # CDPATH.
33534 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33535
33536
33537 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33538 # ----------------------------------------
33539 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33540 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33541 # script with STATUS, using 1 if that was 0.
33542 as_fn_error ()
33543 {
33544 as_status=$1; test $as_status -eq 0 && as_status=1
33545 if test "$4"; then
33546 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33547 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33548 fi
33549 $as_echo "$as_me: error: $2" >&2
33550 as_fn_exit $as_status
33551 } # as_fn_error
33552
33553
33554 # as_fn_set_status STATUS
33555 # -----------------------
33556 # Set $? to STATUS, without forking.
33557 as_fn_set_status ()
33558 {
33559 return $1
33560 } # as_fn_set_status
33561
33562 # as_fn_exit STATUS
33563 # -----------------
33564 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33565 as_fn_exit ()
33566 {
33567 set +e
33568 as_fn_set_status $1
33569 exit $1
33570 } # as_fn_exit
33571
33572 # as_fn_unset VAR
33573 # ---------------
33574 # Portably unset VAR.
33575 as_fn_unset ()
33576 {
33577 { eval $1=; unset $1;}
33578 }
33579 as_unset=as_fn_unset
33580 # as_fn_append VAR VALUE
33581 # ----------------------
33582 # Append the text in VALUE to the end of the definition contained in VAR. Take
33583 # advantage of any shell optimizations that allow amortized linear growth over
33584 # repeated appends, instead of the typical quadratic growth present in naive
33585 # implementations.
33586 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33587 eval 'as_fn_append ()
33588 {
33589 eval $1+=\$2
33590 }'
33591 else
33592 as_fn_append ()
33593 {
33594 eval $1=\$$1\$2
33595 }
33596 fi # as_fn_append
33597
33598 # as_fn_arith ARG...
33599 # ------------------
33600 # Perform arithmetic evaluation on the ARGs, and store the result in the
33601 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33602 # must be portable across $(()) and expr.
33603 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33604 eval 'as_fn_arith ()
33605 {
33606 as_val=$(( $* ))
33607 }'
33608 else
33609 as_fn_arith ()
33610 {
33611 as_val=`expr "$@" || test $? -eq 1`
33612 }
33613 fi # as_fn_arith
33614
33615
33616 if expr a : '\(a\)' >/dev/null 2>&1 &&
33617 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33618 as_expr=expr
33619 else
33620 as_expr=false
33621 fi
33622
33623 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33624 as_basename=basename
33625 else
33626 as_basename=false
33627 fi
33628
33629 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33630 as_dirname=dirname
33631 else
33632 as_dirname=false
33633 fi
33634
33635 as_me=`$as_basename -- "$0" ||
33636 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33637 X"$0" : 'X\(//\)$' \| \
33638 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33639 $as_echo X/"$0" |
33640 sed '/^.*\/\([^/][^/]*\)\/*$/{
33641 s//\1/
33642 q
33643 }
33644 /^X\/\(\/\/\)$/{
33645 s//\1/
33646 q
33647 }
33648 /^X\/\(\/\).*/{
33649 s//\1/
33650 q
33651 }
33652 s/.*/./; q'`
33653
33654 # Avoid depending upon Character Ranges.
33655 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33656 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33657 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33658 as_cr_digits='0123456789'
33659 as_cr_alnum=$as_cr_Letters$as_cr_digits
33660
33661 ECHO_C= ECHO_N= ECHO_T=
33662 case `echo -n x` in #(((((
33663 -n*)
33664 case `echo 'xy\c'` in
33665 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33666 xy) ECHO_C='\c';;
33667 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33668 ECHO_T=' ';;
33669 esac;;
33670 *)
33671 ECHO_N='-n';;
33672 esac
33673
33674 rm -f conf$$ conf$$.exe conf$$.file
33675 if test -d conf$$.dir; then
33676 rm -f conf$$.dir/conf$$.file
33677 else
33678 rm -f conf$$.dir
33679 mkdir conf$$.dir 2>/dev/null
33680 fi
33681 if (echo >conf$$.file) 2>/dev/null; then
33682 if ln -s conf$$.file conf$$ 2>/dev/null; then
33683 as_ln_s='ln -s'
33684 # ... but there are two gotchas:
33685 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33686 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33687 # In both cases, we have to default to `cp -pR'.
33688 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33689 as_ln_s='cp -pR'
33690 elif ln conf$$.file conf$$ 2>/dev/null; then
33691 as_ln_s=ln
33692 else
33693 as_ln_s='cp -pR'
33694 fi
33695 else
33696 as_ln_s='cp -pR'
33697 fi
33698 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33699 rmdir conf$$.dir 2>/dev/null
33700
33701
33702 # as_fn_mkdir_p
33703 # -------------
33704 # Create "$as_dir" as a directory, including parents if necessary.
33705 as_fn_mkdir_p ()
33706 {
33707
33708 case $as_dir in #(
33709 -*) as_dir=./$as_dir;;
33710 esac
33711 test -d "$as_dir" || eval $as_mkdir_p || {
33712 as_dirs=
33713 while :; do
33714 case $as_dir in #(
33715 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33716 *) as_qdir=$as_dir;;
33717 esac
33718 as_dirs="'$as_qdir' $as_dirs"
33719 as_dir=`$as_dirname -- "$as_dir" ||
33720 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33721 X"$as_dir" : 'X\(//\)[^/]' \| \
33722 X"$as_dir" : 'X\(//\)$' \| \
33723 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33724 $as_echo X"$as_dir" |
33725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33726 s//\1/
33727 q
33728 }
33729 /^X\(\/\/\)[^/].*/{
33730 s//\1/
33731 q
33732 }
33733 /^X\(\/\/\)$/{
33734 s//\1/
33735 q
33736 }
33737 /^X\(\/\).*/{
33738 s//\1/
33739 q
33740 }
33741 s/.*/./; q'`
33742 test -d "$as_dir" && break
33743 done
33744 test -z "$as_dirs" || eval "mkdir $as_dirs"
33745 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33746
33747
33748 } # as_fn_mkdir_p
33749 if mkdir -p . 2>/dev/null; then
33750 as_mkdir_p='mkdir -p "$as_dir"'
33751 else
33752 test -d ./-p && rmdir ./-p
33753 as_mkdir_p=false
33754 fi
33755
33756
33757 # as_fn_executable_p FILE
33758 # -----------------------
33759 # Test if FILE is an executable regular file.
33760 as_fn_executable_p ()
33761 {
33762 test -f "$1" && test -x "$1"
33763 } # as_fn_executable_p
33764 as_test_x='test -x'
33765 as_executable_p=as_fn_executable_p
33766
33767 # Sed expression to map a string onto a valid CPP name.
33768 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33769
33770 # Sed expression to map a string onto a valid variable name.
33771 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33772
33773
33774 exec 6>&1
33775 ## ----------------------------------- ##
33776 ## Main body of $CONFIG_STATUS script. ##
33777 ## ----------------------------------- ##
33778 _ASEOF
33779 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33780
33781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33782 # Save the log message, to keep $0 and so on meaningful, and to
33783 # report actual input values of CONFIG_FILES etc. instead of their
33784 # values after options handling.
33785 ac_log="
33786 This file was extended by zfs $as_me 0.6.5.6, which was
33787 generated by GNU Autoconf 2.69. Invocation command line was
33788
33789 CONFIG_FILES = $CONFIG_FILES
33790 CONFIG_HEADERS = $CONFIG_HEADERS
33791 CONFIG_LINKS = $CONFIG_LINKS
33792 CONFIG_COMMANDS = $CONFIG_COMMANDS
33793 $ $0 $@
33794
33795 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33796 "
33797
33798 _ACEOF
33799
33800 case $ac_config_files in *"
33801 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33802 esac
33803
33804 case $ac_config_headers in *"
33805 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33806 esac
33807
33808
33809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33810 # Files that config.status was made for.
33811 config_files="$ac_config_files"
33812 config_headers="$ac_config_headers"
33813 config_commands="$ac_config_commands"
33814
33815 _ACEOF
33816
33817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33818 ac_cs_usage="\
33819 \`$as_me' instantiates files and other configuration actions
33820 from templates according to the current configuration. Unless the files
33821 and actions are specified as TAGs, all are instantiated by default.
33822
33823 Usage: $0 [OPTION]... [TAG]...
33824
33825 -h, --help print this help, then exit
33826 -V, --version print version number and configuration settings, then exit
33827 --config print configuration, then exit
33828 -q, --quiet, --silent
33829 do not print progress messages
33830 -d, --debug don't remove temporary files
33831 --recheck update $as_me by reconfiguring in the same conditions
33832 --file=FILE[:TEMPLATE]
33833 instantiate the configuration file FILE
33834 --header=FILE[:TEMPLATE]
33835 instantiate the configuration header FILE
33836
33837 Configuration files:
33838 $config_files
33839
33840 Configuration headers:
33841 $config_headers
33842
33843 Configuration commands:
33844 $config_commands
33845
33846 Report bugs to the package provider."
33847
33848 _ACEOF
33849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33850 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33851 ac_cs_version="\\
33852 zfs config.status 0.6.5.6
33853 configured by $0, generated by GNU Autoconf 2.69,
33854 with options \\"\$ac_cs_config\\"
33855
33856 Copyright (C) 2012 Free Software Foundation, Inc.
33857 This config.status script is free software; the Free Software Foundation
33858 gives unlimited permission to copy, distribute and modify it."
33859
33860 ac_pwd='$ac_pwd'
33861 srcdir='$srcdir'
33862 INSTALL='$INSTALL'
33863 MKDIR_P='$MKDIR_P'
33864 AWK='$AWK'
33865 test -n "\$AWK" || AWK=awk
33866 _ACEOF
33867
33868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33869 # The default lists apply if the user does not specify any file.
33870 ac_need_defaults=:
33871 while test $# != 0
33872 do
33873 case $1 in
33874 --*=?*)
33875 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33876 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33877 ac_shift=:
33878 ;;
33879 --*=)
33880 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33881 ac_optarg=
33882 ac_shift=:
33883 ;;
33884 *)
33885 ac_option=$1
33886 ac_optarg=$2
33887 ac_shift=shift
33888 ;;
33889 esac
33890
33891 case $ac_option in
33892 # Handling of the options.
33893 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33894 ac_cs_recheck=: ;;
33895 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33896 $as_echo "$ac_cs_version"; exit ;;
33897 --config | --confi | --conf | --con | --co | --c )
33898 $as_echo "$ac_cs_config"; exit ;;
33899 --debug | --debu | --deb | --de | --d | -d )
33900 debug=: ;;
33901 --file | --fil | --fi | --f )
33902 $ac_shift
33903 case $ac_optarg in
33904 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33905 '') as_fn_error $? "missing file argument" ;;
33906 esac
33907 as_fn_append CONFIG_FILES " '$ac_optarg'"
33908 ac_need_defaults=false;;
33909 --header | --heade | --head | --hea )
33910 $ac_shift
33911 case $ac_optarg in
33912 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33913 esac
33914 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33915 ac_need_defaults=false;;
33916 --he | --h)
33917 # Conflict between --help and --header
33918 as_fn_error $? "ambiguous option: \`$1'
33919 Try \`$0 --help' for more information.";;
33920 --help | --hel | -h )
33921 $as_echo "$ac_cs_usage"; exit ;;
33922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33923 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33924 ac_cs_silent=: ;;
33925
33926 # This is an error.
33927 -*) as_fn_error $? "unrecognized option: \`$1'
33928 Try \`$0 --help' for more information." ;;
33929
33930 *) as_fn_append ac_config_targets " $1"
33931 ac_need_defaults=false ;;
33932
33933 esac
33934 shift
33935 done
33936
33937 ac_configure_extra_args=
33938
33939 if $ac_cs_silent; then
33940 exec 6>/dev/null
33941 ac_configure_extra_args="$ac_configure_extra_args --silent"
33942 fi
33943
33944 _ACEOF
33945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33946 if \$ac_cs_recheck; then
33947 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33948 shift
33949 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33950 CONFIG_SHELL='$SHELL'
33951 export CONFIG_SHELL
33952 exec "\$@"
33953 fi
33954
33955 _ACEOF
33956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33957 exec 5>>config.log
33958 {
33959 echo
33960 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33961 ## Running $as_me. ##
33962 _ASBOX
33963 $as_echo "$ac_log"
33964 } >&5
33965
33966 _ACEOF
33967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33968 #
33969 # INIT-COMMANDS
33970 #
33971 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33972
33973
33974 # The HP-UX ksh and POSIX shell print the target directory to stdout
33975 # if CDPATH is set.
33976 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33977
33978 sed_quote_subst='$sed_quote_subst'
33979 double_quote_subst='$double_quote_subst'
33980 delay_variable_subst='$delay_variable_subst'
33981 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33982 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33983 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33984 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33985 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33986 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33987 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
33988 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33989 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33990 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
33991 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33992 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33993 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33994 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33995 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33996 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33997 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33998 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33999 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34000 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34001 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34002 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34003 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34004 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34005 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34006 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34007 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34008 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34009 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34010 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34011 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34012 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
34013 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34014 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34015 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34016 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34017 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34018 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34019 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34020 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34021 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
34022 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34023 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34024 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
34025 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34026 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34027 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34028 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34029 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34030 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34031 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34032 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34033 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34034 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34035 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34036 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34037 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
34038 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34039 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
34040 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
34041 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34042 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
34043 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
34044 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34045 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34046 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34047 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34048 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34049 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34050 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34051 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34052 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
34053 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34054 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34055 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34056 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34057 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34058 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34059 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34060 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34061 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34062 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34063 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34064 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34065 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34066 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34067 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34068 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34069 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34070 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34071 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34072 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34073 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34074 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34075 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34076 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34077 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34078 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34079 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34080 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34081 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34082 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34083 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34084 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34085 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34086 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34087 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34088 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34089 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
34090 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34091 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34092 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34093 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34094 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34095 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34096 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34097 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34098 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34099 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34100 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34101 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34102 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34103 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34104 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34105 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34106 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34107 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34108 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
34109 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
34110 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34111 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34112 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34113 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34114 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34115 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34116
34117 LTCC='$LTCC'
34118 LTCFLAGS='$LTCFLAGS'
34119 compiler='$compiler_DEFAULT'
34120
34121 # A function that is used when there is no print builtin or printf.
34122 func_fallback_echo ()
34123 {
34124 eval 'cat <<_LTECHO_EOF
34125 \$1
34126 _LTECHO_EOF'
34127 }
34128
34129 # Quote evaled strings.
34130 for var in SHELL \
34131 ECHO \
34132 PATH_SEPARATOR \
34133 SED \
34134 GREP \
34135 EGREP \
34136 FGREP \
34137 LD \
34138 NM \
34139 LN_S \
34140 lt_SP2NL \
34141 lt_NL2SP \
34142 reload_flag \
34143 OBJDUMP \
34144 deplibs_check_method \
34145 file_magic_cmd \
34146 file_magic_glob \
34147 want_nocaseglob \
34148 DLLTOOL \
34149 sharedlib_from_linklib_cmd \
34150 AR \
34151 AR_FLAGS \
34152 archiver_list_spec \
34153 STRIP \
34154 RANLIB \
34155 CC \
34156 CFLAGS \
34157 compiler \
34158 lt_cv_sys_global_symbol_pipe \
34159 lt_cv_sys_global_symbol_to_cdecl \
34160 lt_cv_sys_global_symbol_to_import \
34161 lt_cv_sys_global_symbol_to_c_name_address \
34162 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34163 lt_cv_nm_interface \
34164 nm_file_list_spec \
34165 lt_cv_truncate_bin \
34166 lt_prog_compiler_no_builtin_flag \
34167 lt_prog_compiler_pic \
34168 lt_prog_compiler_wl \
34169 lt_prog_compiler_static \
34170 lt_cv_prog_compiler_c_o \
34171 need_locks \
34172 MANIFEST_TOOL \
34173 DSYMUTIL \
34174 NMEDIT \
34175 LIPO \
34176 OTOOL \
34177 OTOOL64 \
34178 shrext_cmds \
34179 export_dynamic_flag_spec \
34180 whole_archive_flag_spec \
34181 compiler_needs_object \
34182 with_gnu_ld \
34183 allow_undefined_flag \
34184 no_undefined_flag \
34185 hardcode_libdir_flag_spec \
34186 hardcode_libdir_separator \
34187 exclude_expsyms \
34188 include_expsyms \
34189 file_list_spec \
34190 variables_saved_for_relink \
34191 libname_spec \
34192 library_names_spec \
34193 soname_spec \
34194 install_override_mode \
34195 finish_eval \
34196 old_striplib \
34197 striplib; do
34198 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34199 *[\\\\\\\`\\"\\\$]*)
34200 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34201 ;;
34202 *)
34203 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34204 ;;
34205 esac
34206 done
34207
34208 # Double-quote double-evaled strings.
34209 for var in reload_cmds \
34210 old_postinstall_cmds \
34211 old_postuninstall_cmds \
34212 old_archive_cmds \
34213 extract_expsyms_cmds \
34214 old_archive_from_new_cmds \
34215 old_archive_from_expsyms_cmds \
34216 archive_cmds \
34217 archive_expsym_cmds \
34218 module_cmds \
34219 module_expsym_cmds \
34220 export_symbols_cmds \
34221 prelink_cmds \
34222 postlink_cmds \
34223 postinstall_cmds \
34224 postuninstall_cmds \
34225 finish_cmds \
34226 sys_lib_search_path_spec \
34227 configure_time_dlsearch_path \
34228 configure_time_lt_sys_library_path; do
34229 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34230 *[\\\\\\\`\\"\\\$]*)
34231 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34232 ;;
34233 *)
34234 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34235 ;;
34236 esac
34237 done
34238
34239 ac_aux_dir='$ac_aux_dir'
34240
34241 # See if we are running on zsh, and set the options that allow our
34242 # commands through without removal of \ escapes INIT.
34243 if test -n "\${ZSH_VERSION+set}"; then
34244 setopt NO_GLOB_SUBST
34245 fi
34246
34247
34248 PACKAGE='$PACKAGE'
34249 VERSION='$VERSION'
34250 RM='$RM'
34251 ofile='$ofile'
34252
34253
34254
34255
34256 _ACEOF
34257
34258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34259
34260 # Handling of arguments.
34261 for ac_config_target in $ac_config_targets
34262 do
34263 case $ac_config_target in
34264 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
34265 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34266 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34267 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34268 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
34269 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
34270 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
34271 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
34272 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
34273 "etc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/Makefile" ;;
34274 "etc/systemd/system/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/system/Makefile" ;;
34275 "etc/modules-load.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
34276 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
34277 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
34278 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
34279 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
34280 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
34281 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
34282 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
34283 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
34284 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
34285 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
34286 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
34287 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
34288 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
34289 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
34290 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
34291 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
34292 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
34293 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
34294 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
34295 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
34296 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
34297 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
34298 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
34299 "lib/libzfs/libzfs.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
34300 "lib/libzfs/libzfs_core.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
34301 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
34302 "lib/libzfs_core/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
34303 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
34304 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
34305 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
34306 "cmd/zhack/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zhack/Makefile" ;;
34307 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
34308 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
34309 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
34310 "cmd/zstreamdump/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
34311 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
34312 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
34313 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
34314 "cmd/fsck_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
34315 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
34316 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
34317 "cmd/arcstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arcstat/Makefile" ;;
34318 "cmd/dbufstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
34319 "cmd/arc_summary/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
34320 "cmd/zed/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zed/Makefile" ;;
34321 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
34322 "contrib/bash_completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
34323 "contrib/dracut/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/Makefile" ;;
34324 "contrib/dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
34325 "contrib/initramfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/initramfs/Makefile" ;;
34326 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
34327 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
34328 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
34329 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
34330 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
34331 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
34332 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
34333 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
34334 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
34335 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
34336 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
34337 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
34338 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
34339 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34340 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
34341 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
34342 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
34343 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
34344 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
34345 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
34346 "rpm/redhat/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
34347 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
34348 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
34349 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
34350 "rpm/generic/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs.spec" ;;
34351 "rpm/generic/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
34352 "rpm/generic/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
34353 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
34354 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
34355
34356 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34357 esac
34358 done
34359
34360
34361 # If the user did not use the arguments to specify the items to instantiate,
34362 # then the envvar interface is used. Set only those that are not.
34363 # We use the long form for the default assignment because of an extremely
34364 # bizarre bug on SunOS 4.1.3.
34365 if $ac_need_defaults; then
34366 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34367 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34368 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34369 fi
34370
34371 # Have a temporary directory for convenience. Make it in the build tree
34372 # simply because there is no reason against having it here, and in addition,
34373 # creating and moving files from /tmp can sometimes cause problems.
34374 # Hook for its removal unless debugging.
34375 # Note that there is a small window in which the directory will not be cleaned:
34376 # after its creation but before its name has been assigned to `$tmp'.
34377 $debug ||
34378 {
34379 tmp= ac_tmp=
34380 trap 'exit_status=$?
34381 : "${ac_tmp:=$tmp}"
34382 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34383 ' 0
34384 trap 'as_fn_exit 1' 1 2 13 15
34385 }
34386 # Create a (secure) tmp directory for tmp files.
34387
34388 {
34389 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34390 test -d "$tmp"
34391 } ||
34392 {
34393 tmp=./conf$$-$RANDOM
34394 (umask 077 && mkdir "$tmp")
34395 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34396 ac_tmp=$tmp
34397
34398 # Set up the scripts for CONFIG_FILES section.
34399 # No need to generate them if there are no CONFIG_FILES.
34400 # This happens for instance with `./config.status config.h'.
34401 if test -n "$CONFIG_FILES"; then
34402
34403
34404 ac_cr=`echo X | tr X '\015'`
34405 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34406 # But we know of no other shell where ac_cr would be empty at this
34407 # point, so we can use a bashism as a fallback.
34408 if test "x$ac_cr" = x; then
34409 eval ac_cr=\$\'\\r\'
34410 fi
34411 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34412 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34413 ac_cs_awk_cr='\\r'
34414 else
34415 ac_cs_awk_cr=$ac_cr
34416 fi
34417
34418 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34419 _ACEOF
34420
34421
34422 {
34423 echo "cat >conf$$subs.awk <<_ACEOF" &&
34424 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34425 echo "_ACEOF"
34426 } >conf$$subs.sh ||
34427 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34428 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34429 ac_delim='%!_!# '
34430 for ac_last_try in false false false false false :; do
34431 . ./conf$$subs.sh ||
34432 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34433
34434 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34435 if test $ac_delim_n = $ac_delim_num; then
34436 break
34437 elif $ac_last_try; then
34438 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34439 else
34440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34441 fi
34442 done
34443 rm -f conf$$subs.sh
34444
34445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34446 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34447 _ACEOF
34448 sed -n '
34449 h
34450 s/^/S["/; s/!.*/"]=/
34451 p
34452 g
34453 s/^[^!]*!//
34454 :repl
34455 t repl
34456 s/'"$ac_delim"'$//
34457 t delim
34458 :nl
34459 h
34460 s/\(.\{148\}\)..*/\1/
34461 t more1
34462 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34463 p
34464 n
34465 b repl
34466 :more1
34467 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34468 p
34469 g
34470 s/.\{148\}//
34471 t nl
34472 :delim
34473 h
34474 s/\(.\{148\}\)..*/\1/
34475 t more2
34476 s/["\\]/\\&/g; s/^/"/; s/$/"/
34477 p
34478 b
34479 :more2
34480 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34481 p
34482 g
34483 s/.\{148\}//
34484 t delim
34485 ' <conf$$subs.awk | sed '
34486 /^[^""]/{
34487 N
34488 s/\n//
34489 }
34490 ' >>$CONFIG_STATUS || ac_write_fail=1
34491 rm -f conf$$subs.awk
34492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34493 _ACAWK
34494 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34495 for (key in S) S_is_set[key] = 1
34496 FS = "\a"
34497
34498 }
34499 {
34500 line = $ 0
34501 nfields = split(line, field, "@")
34502 substed = 0
34503 len = length(field[1])
34504 for (i = 2; i < nfields; i++) {
34505 key = field[i]
34506 keylen = length(key)
34507 if (S_is_set[key]) {
34508 value = S[key]
34509 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34510 len += length(value) + length(field[++i])
34511 substed = 1
34512 } else
34513 len += 1 + keylen
34514 }
34515
34516 print line
34517 }
34518
34519 _ACAWK
34520 _ACEOF
34521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34522 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34523 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34524 else
34525 cat
34526 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34527 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34528 _ACEOF
34529
34530 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34531 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34532 # trailing colons and then remove the whole line if VPATH becomes empty
34533 # (actually we leave an empty line to preserve line numbers).
34534 if test "x$srcdir" = x.; then
34535 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34536 h
34537 s///
34538 s/^/:/
34539 s/[ ]*$/:/
34540 s/:\$(srcdir):/:/g
34541 s/:\${srcdir}:/:/g
34542 s/:@srcdir@:/:/g
34543 s/^:*//
34544 s/:*$//
34545 x
34546 s/\(=[ ]*\).*/\1/
34547 G
34548 s/\n//
34549 s/^[^=]*=[ ]*$//
34550 }'
34551 fi
34552
34553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34554 fi # test -n "$CONFIG_FILES"
34555
34556 # Set up the scripts for CONFIG_HEADERS section.
34557 # No need to generate them if there are no CONFIG_HEADERS.
34558 # This happens for instance with `./config.status Makefile'.
34559 if test -n "$CONFIG_HEADERS"; then
34560 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34561 BEGIN {
34562 _ACEOF
34563
34564 # Transform confdefs.h into an awk script `defines.awk', embedded as
34565 # here-document in config.status, that substitutes the proper values into
34566 # config.h.in to produce config.h.
34567
34568 # Create a delimiter string that does not exist in confdefs.h, to ease
34569 # handling of long lines.
34570 ac_delim='%!_!# '
34571 for ac_last_try in false false :; do
34572 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34573 if test -z "$ac_tt"; then
34574 break
34575 elif $ac_last_try; then
34576 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34577 else
34578 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34579 fi
34580 done
34581
34582 # For the awk script, D is an array of macro values keyed by name,
34583 # likewise P contains macro parameters if any. Preserve backslash
34584 # newline sequences.
34585
34586 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34587 sed -n '
34588 s/.\{148\}/&'"$ac_delim"'/g
34589 t rset
34590 :rset
34591 s/^[ ]*#[ ]*define[ ][ ]*/ /
34592 t def
34593 d
34594 :def
34595 s/\\$//
34596 t bsnl
34597 s/["\\]/\\&/g
34598 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34599 D["\1"]=" \3"/p
34600 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34601 d
34602 :bsnl
34603 s/["\\]/\\&/g
34604 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34605 D["\1"]=" \3\\\\\\n"\\/p
34606 t cont
34607 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34608 t cont
34609 d
34610 :cont
34611 n
34612 s/.\{148\}/&'"$ac_delim"'/g
34613 t clear
34614 :clear
34615 s/\\$//
34616 t bsnlc
34617 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34618 d
34619 :bsnlc
34620 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34621 b cont
34622 ' <confdefs.h | sed '
34623 s/'"$ac_delim"'/"\\\
34624 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34625
34626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34627 for (key in D) D_is_set[key] = 1
34628 FS = "\a"
34629 }
34630 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34631 line = \$ 0
34632 split(line, arg, " ")
34633 if (arg[1] == "#") {
34634 defundef = arg[2]
34635 mac1 = arg[3]
34636 } else {
34637 defundef = substr(arg[1], 2)
34638 mac1 = arg[2]
34639 }
34640 split(mac1, mac2, "(") #)
34641 macro = mac2[1]
34642 prefix = substr(line, 1, index(line, defundef) - 1)
34643 if (D_is_set[macro]) {
34644 # Preserve the white space surrounding the "#".
34645 print prefix "define", macro P[macro] D[macro]
34646 next
34647 } else {
34648 # Replace #undef with comments. This is necessary, for example,
34649 # in the case of _POSIX_SOURCE, which is predefined and required
34650 # on some systems where configure will not decide to define it.
34651 if (defundef == "undef") {
34652 print "/*", prefix defundef, macro, "*/"
34653 next
34654 }
34655 }
34656 }
34657 { print }
34658 _ACAWK
34659 _ACEOF
34660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34661 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34662 fi # test -n "$CONFIG_HEADERS"
34663
34664
34665 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34666 shift
34667 for ac_tag
34668 do
34669 case $ac_tag in
34670 :[FHLC]) ac_mode=$ac_tag; continue;;
34671 esac
34672 case $ac_mode$ac_tag in
34673 :[FHL]*:*);;
34674 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34675 :[FH]-) ac_tag=-:-;;
34676 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34677 esac
34678 ac_save_IFS=$IFS
34679 IFS=:
34680 set x $ac_tag
34681 IFS=$ac_save_IFS
34682 shift
34683 ac_file=$1
34684 shift
34685
34686 case $ac_mode in
34687 :L) ac_source=$1;;
34688 :[FH])
34689 ac_file_inputs=
34690 for ac_f
34691 do
34692 case $ac_f in
34693 -) ac_f="$ac_tmp/stdin";;
34694 *) # Look for the file first in the build tree, then in the source tree
34695 # (if the path is not absolute). The absolute path cannot be DOS-style,
34696 # because $ac_f cannot contain `:'.
34697 test -f "$ac_f" ||
34698 case $ac_f in
34699 [\\/$]*) false;;
34700 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34701 esac ||
34702 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34703 esac
34704 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34705 as_fn_append ac_file_inputs " '$ac_f'"
34706 done
34707
34708 # Let's still pretend it is `configure' which instantiates (i.e., don't
34709 # use $as_me), people would be surprised to read:
34710 # /* config.h. Generated by config.status. */
34711 configure_input='Generated from '`
34712 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34713 `' by configure.'
34714 if test x"$ac_file" != x-; then
34715 configure_input="$ac_file. $configure_input"
34716 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34717 $as_echo "$as_me: creating $ac_file" >&6;}
34718 fi
34719 # Neutralize special characters interpreted by sed in replacement strings.
34720 case $configure_input in #(
34721 *\&* | *\|* | *\\* )
34722 ac_sed_conf_input=`$as_echo "$configure_input" |
34723 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34724 *) ac_sed_conf_input=$configure_input;;
34725 esac
34726
34727 case $ac_tag in
34728 *:-:* | *:-) cat >"$ac_tmp/stdin" \
34729 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34730 esac
34731 ;;
34732 esac
34733
34734 ac_dir=`$as_dirname -- "$ac_file" ||
34735 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34736 X"$ac_file" : 'X\(//\)[^/]' \| \
34737 X"$ac_file" : 'X\(//\)$' \| \
34738 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34739 $as_echo X"$ac_file" |
34740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34741 s//\1/
34742 q
34743 }
34744 /^X\(\/\/\)[^/].*/{
34745 s//\1/
34746 q
34747 }
34748 /^X\(\/\/\)$/{
34749 s//\1/
34750 q
34751 }
34752 /^X\(\/\).*/{
34753 s//\1/
34754 q
34755 }
34756 s/.*/./; q'`
34757 as_dir="$ac_dir"; as_fn_mkdir_p
34758 ac_builddir=.
34759
34760 case "$ac_dir" in
34761 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34762 *)
34763 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34764 # A ".." for each directory in $ac_dir_suffix.
34765 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34766 case $ac_top_builddir_sub in
34767 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34768 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34769 esac ;;
34770 esac
34771 ac_abs_top_builddir=$ac_pwd
34772 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34773 # for backward compatibility:
34774 ac_top_builddir=$ac_top_build_prefix
34775
34776 case $srcdir in
34777 .) # We are building in place.
34778 ac_srcdir=.
34779 ac_top_srcdir=$ac_top_builddir_sub
34780 ac_abs_top_srcdir=$ac_pwd ;;
34781 [\\/]* | ?:[\\/]* ) # Absolute name.
34782 ac_srcdir=$srcdir$ac_dir_suffix;
34783 ac_top_srcdir=$srcdir
34784 ac_abs_top_srcdir=$srcdir ;;
34785 *) # Relative name.
34786 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34787 ac_top_srcdir=$ac_top_build_prefix$srcdir
34788 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34789 esac
34790 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34791
34792
34793 case $ac_mode in
34794 :F)
34795 #
34796 # CONFIG_FILE
34797 #
34798
34799 case $INSTALL in
34800 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34801 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34802 esac
34803 ac_MKDIR_P=$MKDIR_P
34804 case $MKDIR_P in
34805 [\\/$]* | ?:[\\/]* ) ;;
34806 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34807 esac
34808 _ACEOF
34809
34810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34811 # If the template does not know about datarootdir, expand it.
34812 # FIXME: This hack should be removed a few years after 2.60.
34813 ac_datarootdir_hack=; ac_datarootdir_seen=
34814 ac_sed_dataroot='
34815 /datarootdir/ {
34816 p
34817 q
34818 }
34819 /@datadir@/p
34820 /@docdir@/p
34821 /@infodir@/p
34822 /@localedir@/p
34823 /@mandir@/p'
34824 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34825 *datarootdir*) ac_datarootdir_seen=yes;;
34826 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34828 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34829 _ACEOF
34830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34831 ac_datarootdir_hack='
34832 s&@datadir@&$datadir&g
34833 s&@docdir@&$docdir&g
34834 s&@infodir@&$infodir&g
34835 s&@localedir@&$localedir&g
34836 s&@mandir@&$mandir&g
34837 s&\\\${datarootdir}&$datarootdir&g' ;;
34838 esac
34839 _ACEOF
34840
34841 # Neutralize VPATH when `$srcdir' = `.'.
34842 # Shell code in configure.ac might set extrasub.
34843 # FIXME: do we really want to maintain this feature?
34844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34845 ac_sed_extra="$ac_vpsub
34846 $extrasub
34847 _ACEOF
34848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34849 :t
34850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34851 s|@configure_input@|$ac_sed_conf_input|;t t
34852 s&@top_builddir@&$ac_top_builddir_sub&;t t
34853 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34854 s&@srcdir@&$ac_srcdir&;t t
34855 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34856 s&@top_srcdir@&$ac_top_srcdir&;t t
34857 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34858 s&@builddir@&$ac_builddir&;t t
34859 s&@abs_builddir@&$ac_abs_builddir&;t t
34860 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34861 s&@INSTALL@&$ac_INSTALL&;t t
34862 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34863 $ac_datarootdir_hack
34864 "
34865 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34866 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34867
34868 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34869 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34870 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34871 "$ac_tmp/out"`; test -z "$ac_out"; } &&
34872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34873 which seems to be undefined. Please make sure it is defined" >&5
34874 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34875 which seems to be undefined. Please make sure it is defined" >&2;}
34876
34877 rm -f "$ac_tmp/stdin"
34878 case $ac_file in
34879 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34880 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34881 esac \
34882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34883 ;;
34884 :H)
34885 #
34886 # CONFIG_HEADER
34887 #
34888 if test x"$ac_file" != x-; then
34889 {
34890 $as_echo "/* $configure_input */" \
34891 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34892 } >"$ac_tmp/config.h" \
34893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34894 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34895 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34896 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34897 else
34898 rm -f "$ac_file"
34899 mv "$ac_tmp/config.h" "$ac_file" \
34900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34901 fi
34902 else
34903 $as_echo "/* $configure_input */" \
34904 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34905 || as_fn_error $? "could not create -" "$LINENO" 5
34906 fi
34907 # Compute "$ac_file"'s index in $config_headers.
34908 _am_arg="$ac_file"
34909 _am_stamp_count=1
34910 for _am_header in $config_headers :; do
34911 case $_am_header in
34912 $_am_arg | $_am_arg:* )
34913 break ;;
34914 * )
34915 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34916 esac
34917 done
34918 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34919 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34920 X"$_am_arg" : 'X\(//\)[^/]' \| \
34921 X"$_am_arg" : 'X\(//\)$' \| \
34922 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34923 $as_echo X"$_am_arg" |
34924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34925 s//\1/
34926 q
34927 }
34928 /^X\(\/\/\)[^/].*/{
34929 s//\1/
34930 q
34931 }
34932 /^X\(\/\/\)$/{
34933 s//\1/
34934 q
34935 }
34936 /^X\(\/\).*/{
34937 s//\1/
34938 q
34939 }
34940 s/.*/./; q'`/stamp-h$_am_stamp_count
34941 ;;
34942
34943 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34944 $as_echo "$as_me: executing $ac_file commands" >&6;}
34945 ;;
34946 esac
34947
34948
34949 case $ac_file$ac_mode in
34950 "zfs_config.h":H)
34951 (mv zfs_config.h zfs_config.h.tmp &&
34952 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
34953 rm zfs_config.h.tmp) || exit 1 ;;
34954 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34955 # Older Autoconf quotes --file arguments for eval, but not when files
34956 # are listed without --file. Let's play safe and only enable the eval
34957 # if we detect the quoting.
34958 case $CONFIG_FILES in
34959 *\'*) eval set x "$CONFIG_FILES" ;;
34960 *) set x $CONFIG_FILES ;;
34961 esac
34962 shift
34963 for mf
34964 do
34965 # Strip MF so we end up with the name of the file.
34966 mf=`echo "$mf" | sed -e 's/:.*$//'`
34967 # Check whether this is an Automake generated Makefile or not.
34968 # We used to match only the files named 'Makefile.in', but
34969 # some people rename them; so instead we look at the file content.
34970 # Grep'ing the first line is not enough: some people post-process
34971 # each Makefile.in and add a new line on top of each file to say so.
34972 # Grep'ing the whole file is not good either: AIX grep has a line
34973 # limit of 2048, but all sed's we know have understand at least 4000.
34974 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34975 dirpart=`$as_dirname -- "$mf" ||
34976 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34977 X"$mf" : 'X\(//\)[^/]' \| \
34978 X"$mf" : 'X\(//\)$' \| \
34979 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34980 $as_echo X"$mf" |
34981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34982 s//\1/
34983 q
34984 }
34985 /^X\(\/\/\)[^/].*/{
34986 s//\1/
34987 q
34988 }
34989 /^X\(\/\/\)$/{
34990 s//\1/
34991 q
34992 }
34993 /^X\(\/\).*/{
34994 s//\1/
34995 q
34996 }
34997 s/.*/./; q'`
34998 else
34999 continue
35000 fi
35001 # Extract the definition of DEPDIR, am__include, and am__quote
35002 # from the Makefile without running 'make'.
35003 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35004 test -z "$DEPDIR" && continue
35005 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35006 test -z "$am__include" && continue
35007 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35008 # Find all dependency output files, they are included files with
35009 # $(DEPDIR) in their names. We invoke sed twice because it is the
35010 # simplest approach to changing $(DEPDIR) to its actual value in the
35011 # expansion.
35012 for file in `sed -n "
35013 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35014 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
35015 # Make sure the directory exists.
35016 test -f "$dirpart/$file" && continue
35017 fdir=`$as_dirname -- "$file" ||
35018 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35019 X"$file" : 'X\(//\)[^/]' \| \
35020 X"$file" : 'X\(//\)$' \| \
35021 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35022 $as_echo X"$file" |
35023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35024 s//\1/
35025 q
35026 }
35027 /^X\(\/\/\)[^/].*/{
35028 s//\1/
35029 q
35030 }
35031 /^X\(\/\/\)$/{
35032 s//\1/
35033 q
35034 }
35035 /^X\(\/\).*/{
35036 s//\1/
35037 q
35038 }
35039 s/.*/./; q'`
35040 as_dir=$dirpart/$fdir; as_fn_mkdir_p
35041 # echo "creating $dirpart/$file"
35042 echo '# dummy' > "$dirpart/$file"
35043 done
35044 done
35045 }
35046 ;;
35047 "libtool":C)
35048
35049 # See if we are running on zsh, and set the options that allow our
35050 # commands through without removal of \ escapes.
35051 if test -n "${ZSH_VERSION+set}"; then
35052 setopt NO_GLOB_SUBST
35053 fi
35054
35055 cfgfile=${ofile}T
35056 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35057 $RM "$cfgfile"
35058
35059 cat <<_LT_EOF >> "$cfgfile"
35060 #! $SHELL
35061 # Generated automatically by $as_me ($PACKAGE) $VERSION
35062 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35063 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35064
35065 # Provide generalized library-building support services.
35066 # Written by Gordon Matzigkeit, 1996
35067
35068 # Copyright (C) 2014 Free Software Foundation, Inc.
35069 # This is free software; see the source for copying conditions. There is NO
35070 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35071
35072 # GNU Libtool is free software; you can redistribute it and/or modify
35073 # it under the terms of the GNU General Public License as published by
35074 # the Free Software Foundation; either version 2 of of the License, or
35075 # (at your option) any later version.
35076 #
35077 # As a special exception to the GNU General Public License, if you
35078 # distribute this file as part of a program or library that is built
35079 # using GNU Libtool, you may include this file under the same
35080 # distribution terms that you use for the rest of that program.
35081 #
35082 # GNU Libtool is distributed in the hope that it will be useful, but
35083 # WITHOUT ANY WARRANTY; without even the implied warranty of
35084 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35085 # GNU General Public License for more details.
35086 #
35087 # You should have received a copy of the GNU General Public License
35088 # along with this program. If not, see <http://www.gnu.org/licenses/>.
35089
35090
35091 # The names of the tagged configurations supported by this script.
35092 available_tags=''
35093
35094 # Configured defaults for sys_lib_dlsearch_path munging.
35095 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35096
35097 # ### BEGIN LIBTOOL CONFIG
35098
35099 # Which release of libtool.m4 was used?
35100 macro_version=$macro_version
35101 macro_revision=$macro_revision
35102
35103 # Whether or not to build shared libraries.
35104 build_libtool_libs=$enable_shared
35105
35106 # Whether or not to build static libraries.
35107 build_old_libs=$enable_static
35108
35109 # What type of objects to build.
35110 pic_mode=$pic_mode
35111
35112 # Whether or not to optimize for fast installation.
35113 fast_install=$enable_fast_install
35114
35115 # Shared archive member basename,for filename based shared library versioning on AIX.
35116 shared_archive_member_spec=$shared_archive_member_spec
35117
35118 # Shell to use when invoking shell scripts.
35119 SHELL=$lt_SHELL
35120
35121 # An echo program that protects backslashes.
35122 ECHO=$lt_ECHO
35123
35124 # The PATH separator for the build system.
35125 PATH_SEPARATOR=$lt_PATH_SEPARATOR
35126
35127 # The host system.
35128 host_alias=$host_alias
35129 host=$host
35130 host_os=$host_os
35131
35132 # The build system.
35133 build_alias=$build_alias
35134 build=$build
35135 build_os=$build_os
35136
35137 # A sed program that does not truncate output.
35138 SED=$lt_SED
35139
35140 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
35141 Xsed="\$SED -e 1s/^X//"
35142
35143 # A grep program that handles long lines.
35144 GREP=$lt_GREP
35145
35146 # An ERE matcher.
35147 EGREP=$lt_EGREP
35148
35149 # A literal string matcher.
35150 FGREP=$lt_FGREP
35151
35152 # A BSD- or MS-compatible name lister.
35153 NM=$lt_NM
35154
35155 # Whether we need soft or hard links.
35156 LN_S=$lt_LN_S
35157
35158 # What is the maximum length of a command?
35159 max_cmd_len=$max_cmd_len
35160
35161 # Object file suffix (normally "o").
35162 objext=$ac_objext
35163
35164 # Executable file suffix (normally "").
35165 exeext=$exeext
35166
35167 # whether the shell understands "unset".
35168 lt_unset=$lt_unset
35169
35170 # turn spaces into newlines.
35171 SP2NL=$lt_lt_SP2NL
35172
35173 # turn newlines into spaces.
35174 NL2SP=$lt_lt_NL2SP
35175
35176 # convert \$build file names to \$host format.
35177 to_host_file_cmd=$lt_cv_to_host_file_cmd
35178
35179 # convert \$build files to toolchain format.
35180 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35181
35182 # An object symbol dumper.
35183 OBJDUMP=$lt_OBJDUMP
35184
35185 # Method to check whether dependent libraries are shared objects.
35186 deplibs_check_method=$lt_deplibs_check_method
35187
35188 # Command to use when deplibs_check_method = "file_magic".
35189 file_magic_cmd=$lt_file_magic_cmd
35190
35191 # How to find potential files when deplibs_check_method = "file_magic".
35192 file_magic_glob=$lt_file_magic_glob
35193
35194 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35195 want_nocaseglob=$lt_want_nocaseglob
35196
35197 # DLL creation program.
35198 DLLTOOL=$lt_DLLTOOL
35199
35200 # Command to associate shared and link libraries.
35201 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35202
35203 # The archiver.
35204 AR=$lt_AR
35205
35206 # Flags to create an archive.
35207 AR_FLAGS=$lt_AR_FLAGS
35208
35209 # How to feed a file listing to the archiver.
35210 archiver_list_spec=$lt_archiver_list_spec
35211
35212 # A symbol stripping program.
35213 STRIP=$lt_STRIP
35214
35215 # Commands used to install an old-style archive.
35216 RANLIB=$lt_RANLIB
35217 old_postinstall_cmds=$lt_old_postinstall_cmds
35218 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35219
35220 # Whether to use a lock for old archive extraction.
35221 lock_old_archive_extraction=$lock_old_archive_extraction
35222
35223 # A C compiler.
35224 LTCC=$lt_CC
35225
35226 # LTCC compiler flags.
35227 LTCFLAGS=$lt_CFLAGS
35228
35229 # Take the output of nm and produce a listing of raw symbols and C names.
35230 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35231
35232 # Transform the output of nm in a proper C declaration.
35233 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35234
35235 # Transform the output of nm into a list of symbols to manually relocate.
35236 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
35237
35238 # Transform the output of nm in a C name address pair.
35239 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35240
35241 # Transform the output of nm in a C name address pair when lib prefix is needed.
35242 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35243
35244 # The name lister interface.
35245 nm_interface=$lt_lt_cv_nm_interface
35246
35247 # Specify filename containing input files for \$NM.
35248 nm_file_list_spec=$lt_nm_file_list_spec
35249
35250 # The root where to search for dependent libraries,and where our libraries should be installed.
35251 lt_sysroot=$lt_sysroot
35252
35253 # Command to truncate a binary pipe.
35254 lt_truncate_bin=$lt_lt_cv_truncate_bin
35255
35256 # The name of the directory that contains temporary libtool files.
35257 objdir=$objdir
35258
35259 # Used to examine libraries when file_magic_cmd begins with "file".
35260 MAGIC_CMD=$MAGIC_CMD
35261
35262 # Must we lock files when doing compilation?
35263 need_locks=$lt_need_locks
35264
35265 # Manifest tool.
35266 MANIFEST_TOOL=$lt_MANIFEST_TOOL
35267
35268 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35269 DSYMUTIL=$lt_DSYMUTIL
35270
35271 # Tool to change global to local symbols on Mac OS X.
35272 NMEDIT=$lt_NMEDIT
35273
35274 # Tool to manipulate fat objects and archives on Mac OS X.
35275 LIPO=$lt_LIPO
35276
35277 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35278 OTOOL=$lt_OTOOL
35279
35280 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35281 OTOOL64=$lt_OTOOL64
35282
35283 # Old archive suffix (normally "a").
35284 libext=$libext
35285
35286 # Shared library suffix (normally ".so").
35287 shrext_cmds=$lt_shrext_cmds
35288
35289 # The commands to extract the exported symbol list from a shared archive.
35290 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35291
35292 # Variables whose values should be saved in libtool wrapper scripts and
35293 # restored at link time.
35294 variables_saved_for_relink=$lt_variables_saved_for_relink
35295
35296 # Do we need the "lib" prefix for modules?
35297 need_lib_prefix=$need_lib_prefix
35298
35299 # Do we need a version for libraries?
35300 need_version=$need_version
35301
35302 # Library versioning type.
35303 version_type=$version_type
35304
35305 # Shared library runtime path variable.
35306 runpath_var=$runpath_var
35307
35308 # Shared library path variable.
35309 shlibpath_var=$shlibpath_var
35310
35311 # Is shlibpath searched before the hard-coded library search path?
35312 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35313
35314 # Format of library name prefix.
35315 libname_spec=$lt_libname_spec
35316
35317 # List of archive names. First name is the real one, the rest are links.
35318 # The last name is the one that the linker finds with -lNAME
35319 library_names_spec=$lt_library_names_spec
35320
35321 # The coded name of the library, if different from the real name.
35322 soname_spec=$lt_soname_spec
35323
35324 # Permission mode override for installation of shared libraries.
35325 install_override_mode=$lt_install_override_mode
35326
35327 # Command to use after installation of a shared archive.
35328 postinstall_cmds=$lt_postinstall_cmds
35329
35330 # Command to use after uninstallation of a shared archive.
35331 postuninstall_cmds=$lt_postuninstall_cmds
35332
35333 # Commands used to finish a libtool library installation in a directory.
35334 finish_cmds=$lt_finish_cmds
35335
35336 # As "finish_cmds", except a single script fragment to be evaled but
35337 # not shown.
35338 finish_eval=$lt_finish_eval
35339
35340 # Whether we should hardcode library paths into libraries.
35341 hardcode_into_libs=$hardcode_into_libs
35342
35343 # Compile-time system search path for libraries.
35344 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35345
35346 # Detected run-time system search path for libraries.
35347 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
35348
35349 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
35350 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
35351
35352 # Whether dlopen is supported.
35353 dlopen_support=$enable_dlopen
35354
35355 # Whether dlopen of programs is supported.
35356 dlopen_self=$enable_dlopen_self
35357
35358 # Whether dlopen of statically linked programs is supported.
35359 dlopen_self_static=$enable_dlopen_self_static
35360
35361 # Commands to strip libraries.
35362 old_striplib=$lt_old_striplib
35363 striplib=$lt_striplib
35364
35365
35366 # The linker used to build libraries.
35367 LD=$lt_LD
35368
35369 # How to create reloadable object files.
35370 reload_flag=$lt_reload_flag
35371 reload_cmds=$lt_reload_cmds
35372
35373 # Commands used to build an old-style archive.
35374 old_archive_cmds=$lt_old_archive_cmds
35375
35376 # A language specific compiler.
35377 CC=$lt_compiler
35378
35379 # Is the compiler the GNU compiler?
35380 with_gcc=$GCC
35381
35382 # Compiler flag to turn off builtin functions.
35383 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35384
35385 # Additional compiler flags for building library objects.
35386 pic_flag=$lt_lt_prog_compiler_pic
35387
35388 # How to pass a linker flag through the compiler.
35389 wl=$lt_lt_prog_compiler_wl
35390
35391 # Compiler flag to prevent dynamic linking.
35392 link_static_flag=$lt_lt_prog_compiler_static
35393
35394 # Does compiler simultaneously support -c and -o options?
35395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35396
35397 # Whether or not to add -lc for building shared libraries.
35398 build_libtool_need_lc=$archive_cmds_need_lc
35399
35400 # Whether or not to disallow shared libs when runtime libs are static.
35401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35402
35403 # Compiler flag to allow reflexive dlopens.
35404 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35405
35406 # Compiler flag to generate shared objects directly from archives.
35407 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35408
35409 # Whether the compiler copes with passing no objects directly.
35410 compiler_needs_object=$lt_compiler_needs_object
35411
35412 # Create an old-style archive from a shared archive.
35413 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35414
35415 # Create a temporary old-style archive to link instead of a shared archive.
35416 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35417
35418 # Commands used to build a shared archive.
35419 archive_cmds=$lt_archive_cmds
35420 archive_expsym_cmds=$lt_archive_expsym_cmds
35421
35422 # Commands used to build a loadable module if different from building
35423 # a shared archive.
35424 module_cmds=$lt_module_cmds
35425 module_expsym_cmds=$lt_module_expsym_cmds
35426
35427 # Whether we are building with GNU ld or not.
35428 with_gnu_ld=$lt_with_gnu_ld
35429
35430 # Flag that allows shared libraries with undefined symbols to be built.
35431 allow_undefined_flag=$lt_allow_undefined_flag
35432
35433 # Flag that enforces no undefined symbols.
35434 no_undefined_flag=$lt_no_undefined_flag
35435
35436 # Flag to hardcode \$libdir into a binary during linking.
35437 # This must work even if \$libdir does not exist
35438 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35439
35440 # Whether we need a single "-rpath" flag with a separated argument.
35441 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35442
35443 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35444 # DIR into the resulting binary.
35445 hardcode_direct=$hardcode_direct
35446
35447 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35448 # DIR into the resulting binary and the resulting library dependency is
35449 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
35450 # library is relocated.
35451 hardcode_direct_absolute=$hardcode_direct_absolute
35452
35453 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35454 # into the resulting binary.
35455 hardcode_minus_L=$hardcode_minus_L
35456
35457 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35458 # into the resulting binary.
35459 hardcode_shlibpath_var=$hardcode_shlibpath_var
35460
35461 # Set to "yes" if building a shared library automatically hardcodes DIR
35462 # into the library and all subsequent libraries and executables linked
35463 # against it.
35464 hardcode_automatic=$hardcode_automatic
35465
35466 # Set to yes if linker adds runtime paths of dependent libraries
35467 # to runtime path list.
35468 inherit_rpath=$inherit_rpath
35469
35470 # Whether libtool must link a program against all its dependency libraries.
35471 link_all_deplibs=$link_all_deplibs
35472
35473 # Set to "yes" if exported symbols are required.
35474 always_export_symbols=$always_export_symbols
35475
35476 # The commands to list exported symbols.
35477 export_symbols_cmds=$lt_export_symbols_cmds
35478
35479 # Symbols that should not be listed in the preloaded symbols.
35480 exclude_expsyms=$lt_exclude_expsyms
35481
35482 # Symbols that must always be exported.
35483 include_expsyms=$lt_include_expsyms
35484
35485 # Commands necessary for linking programs (against libraries) with templates.
35486 prelink_cmds=$lt_prelink_cmds
35487
35488 # Commands necessary for finishing linking programs.
35489 postlink_cmds=$lt_postlink_cmds
35490
35491 # Specify filename containing input files.
35492 file_list_spec=$lt_file_list_spec
35493
35494 # How to hardcode a shared library path into an executable.
35495 hardcode_action=$hardcode_action
35496
35497 # ### END LIBTOOL CONFIG
35498
35499 _LT_EOF
35500
35501 cat <<'_LT_EOF' >> "$cfgfile"
35502
35503 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
35504
35505 # func_munge_path_list VARIABLE PATH
35506 # -----------------------------------
35507 # VARIABLE is name of variable containing _space_ separated list of
35508 # directories to be munged by the contents of PATH, which is string
35509 # having a format:
35510 # "DIR[:DIR]:"
35511 # string "DIR[ DIR]" will be prepended to VARIABLE
35512 # ":DIR[:DIR]"
35513 # string "DIR[ DIR]" will be appended to VARIABLE
35514 # "DIRP[:DIRP]::[DIRA:]DIRA"
35515 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
35516 # "DIRA[ DIRA]" will be appended to VARIABLE
35517 # "DIR[:DIR]"
35518 # VARIABLE will be replaced by "DIR[ DIR]"
35519 func_munge_path_list ()
35520 {
35521 case x$2 in
35522 x)
35523 ;;
35524 *:)
35525 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
35526 ;;
35527 x:*)
35528 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
35529 ;;
35530 *::*)
35531 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
35532 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
35533 ;;
35534 *)
35535 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
35536 ;;
35537 esac
35538 }
35539
35540
35541 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
35542 func_cc_basename ()
35543 {
35544 for cc_temp in $*""; do
35545 case $cc_temp in
35546 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35547 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35548 \-*) ;;
35549 *) break;;
35550 esac
35551 done
35552 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
35553 }
35554
35555
35556 # ### END FUNCTIONS SHARED WITH CONFIGURE
35557
35558 _LT_EOF
35559
35560 case $host_os in
35561 aix3*)
35562 cat <<\_LT_EOF >> "$cfgfile"
35563 # AIX sometimes has problems with the GCC collect2 program. For some
35564 # reason, if we set the COLLECT_NAMES environment variable, the problems
35565 # vanish in a puff of smoke.
35566 if test set != "${COLLECT_NAMES+set}"; then
35567 COLLECT_NAMES=
35568 export COLLECT_NAMES
35569 fi
35570 _LT_EOF
35571 ;;
35572 esac
35573
35574
35575 ltmain=$ac_aux_dir/ltmain.sh
35576
35577
35578 # We use sed instead of cat because bash on DJGPP gets confused if
35579 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35580 # text mode, it properly converts lines to CR/LF. This bash problem
35581 # is reportedly fixed, but why not run on old versions too?
35582 sed '$q' "$ltmain" >> "$cfgfile" \
35583 || (rm -f "$cfgfile"; exit 1)
35584
35585 mv -f "$cfgfile" "$ofile" ||
35586 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35587 chmod +x "$ofile"
35588
35589 ;;
35590
35591 esac
35592 done # for ac_tag
35593
35594
35595 as_fn_exit 0
35596 _ACEOF
35597 ac_clean_files=$ac_clean_files_save
35598
35599 test $ac_write_fail = 0 ||
35600 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35601
35602
35603 # configure is writing to config.log, and then calls config.status.
35604 # config.status does its own redirection, appending to config.log.
35605 # Unfortunately, on DOS this fails, as config.log is still kept open
35606 # by configure, so config.status won't be able to write to it; its
35607 # output is simply discarded. So we exec the FD to /dev/null,
35608 # effectively closing config.log, so it can be properly (re)opened and
35609 # appended to by config.status. When coming back to configure, we
35610 # need to make the FD available again.
35611 if test "$no_create" != yes; then
35612 ac_cs_success=:
35613 ac_config_status_args=
35614 test "$silent" = yes &&
35615 ac_config_status_args="$ac_config_status_args --quiet"
35616 exec 5>/dev/null
35617 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35618 exec 5>>config.log
35619 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35620 # would make configure fail if this is the last instruction.
35621 $ac_cs_success || as_fn_exit 1
35622 fi
35623 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35625 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35626 fi
35627