]>
Commit | Line | Data |
---|---|---|
87d546d8 TG |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
1ec59ff7 | 3 | # Generated by GNU Autoconf 2.69 for zfs 0.6.5.11. |
87d546d8 TG |
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' | |
1ec59ff7 CIK |
590 | PACKAGE_VERSION='0.6.5.11' |
591 | PACKAGE_STRING='zfs 0.6.5.11' | |
87d546d8 TG |
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 | |
3f5d8d55 CIK |
639 | WANT_MMAP_LIBAIO_FALSE |
640 | WANT_MMAP_LIBAIO_TRUE | |
641 | WANT_DEVNAME2DEVID_FALSE | |
642 | WANT_DEVNAME2DEVID_TRUE | |
87d546d8 TG |
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 | |
1ec59ff7 | 657 | NO_FORMAT_TRUNCATION |
87d546d8 TG |
658 | FRAME_LARGER_THAN |
659 | LIBBLKID | |
660 | LIBUUID | |
661 | ZLIB | |
662 | dracutdir | |
663 | ZFS_INIT_SYSV | |
664 | modulesloaddir | |
665 | systemdpresetdir | |
666 | systemdunitdir | |
667 | ZFS_MODULE_LOAD | |
668 | ZFS_INIT_SYSTEMD | |
3f5d8d55 | 669 | LIBAIO |
87d546d8 TG |
670 | udevruledir |
671 | udevdir | |
672 | mounthelperdir | |
673 | NO_BOOL_COMPARE | |
674 | NO_UNUSED_BUT_SET_VARIABLE | |
675 | ZFS_CONFIG | |
676 | TARGET_ASM_DIR | |
677 | ALIEN_VERSION | |
678 | ALIEN | |
679 | HAVE_ALIEN | |
680 | DPKGBUILD_VERSION | |
681 | DPKGBUILD | |
682 | HAVE_DPKGBUILD | |
683 | DPKG_VERSION | |
684 | DPKG | |
685 | HAVE_DPKG | |
686 | SRPM_DEFINE_COMMON | |
687 | SRPM_DEFINE_DKMS | |
688 | SRPM_DEFINE_KMOD | |
689 | SRPM_DEFINE_UTIL | |
690 | RPM_DEFINE_COMMON | |
691 | RPM_DEFINE_DKMS | |
692 | RPM_DEFINE_KMOD | |
693 | RPM_DEFINE_UTIL | |
694 | RPM_SPEC_DIR | |
695 | RPMBUILD_VERSION | |
696 | RPMBUILD | |
697 | HAVE_RPMBUILD | |
698 | RPM_VERSION | |
699 | RPM | |
700 | HAVE_RPM | |
701 | DEFINE_INITRAMFS | |
702 | DEFAULT_INITCONF_DIR | |
703 | DEFAULT_INIT_SCRIPT | |
704 | DEFAULT_INIT_DIR | |
705 | DEFAULT_PACKAGE | |
706 | VENDOR | |
707 | am__fastdepCCAS_FALSE | |
708 | am__fastdepCCAS_TRUE | |
709 | CCASDEPMODE | |
710 | CCASFLAGS | |
711 | CCAS | |
712 | CPP | |
713 | LT_SYS_LIBRARY_PATH | |
714 | OTOOL64 | |
715 | OTOOL | |
716 | LIPO | |
717 | NMEDIT | |
718 | DSYMUTIL | |
719 | MANIFEST_TOOL | |
720 | RANLIB | |
721 | ac_ct_AR | |
722 | AR | |
723 | DLLTOOL | |
724 | OBJDUMP | |
725 | LN_S | |
726 | NM | |
727 | ac_ct_DUMPBIN | |
728 | DUMPBIN | |
729 | LD | |
730 | FGREP | |
731 | EGREP | |
732 | GREP | |
733 | SED | |
734 | LIBTOOL | |
735 | am__fastdepCC_FALSE | |
736 | am__fastdepCC_TRUE | |
737 | CCDEPMODE | |
738 | am__nodep | |
739 | AMDEPBACKSLASH | |
740 | AMDEP_FALSE | |
741 | AMDEP_TRUE | |
742 | am__quote | |
743 | am__include | |
744 | DEPDIR | |
745 | OBJEXT | |
746 | EXEEXT | |
747 | ac_ct_CC | |
748 | CPPFLAGS | |
749 | LDFLAGS | |
750 | CFLAGS | |
751 | CC | |
752 | am__untar | |
753 | am__tar | |
754 | AMTAR | |
755 | am__leading_dot | |
756 | SET_MAKE | |
757 | mkdir_p | |
758 | MKDIR_P | |
759 | INSTALL_STRIP_PROGRAM | |
760 | STRIP | |
761 | install_sh | |
762 | MAKEINFO | |
763 | AUTOHEADER | |
764 | AUTOMAKE | |
765 | AUTOCONF | |
766 | ACLOCAL | |
767 | VERSION | |
768 | PACKAGE | |
769 | CYGPATH_W | |
770 | am__isrc | |
771 | INSTALL_DATA | |
772 | INSTALL_SCRIPT | |
773 | INSTALL_PROGRAM | |
774 | AM_BACKSLASH | |
775 | AM_DEFAULT_VERBOSITY | |
776 | AM_DEFAULT_V | |
777 | AM_V | |
778 | MAINT | |
779 | MAINTAINER_MODE_FALSE | |
780 | MAINTAINER_MODE_TRUE | |
781 | target_os | |
782 | target_vendor | |
783 | target_cpu | |
784 | target | |
785 | host_os | |
786 | host_vendor | |
787 | host_cpu | |
788 | host | |
789 | build_os | |
790 | build_vendor | |
791 | build_cpu | |
792 | build | |
793 | ZFS_META_LT_AGE | |
794 | ZFS_META_LT_REVISION | |
795 | ZFS_META_LT_CURRENT | |
796 | ZFS_META_AUTHOR | |
797 | ZFS_META_DATA | |
798 | ZFS_META_ALIAS | |
799 | ZFS_META_LICENSE | |
800 | RELEASE | |
801 | ZFS_META_RELEASE | |
802 | ZFS_META_VERSION | |
803 | ZFS_META_NAME | |
804 | AWK | |
805 | target_alias | |
806 | host_alias | |
807 | build_alias | |
808 | LIBS | |
809 | ECHO_T | |
810 | ECHO_N | |
811 | ECHO_C | |
812 | DEFS | |
813 | mandir | |
814 | localedir | |
815 | libdir | |
816 | psdir | |
817 | pdfdir | |
818 | dvidir | |
819 | htmldir | |
820 | infodir | |
821 | docdir | |
822 | oldincludedir | |
823 | includedir | |
824 | runstatedir | |
825 | localstatedir | |
826 | sharedstatedir | |
827 | sysconfdir | |
828 | datadir | |
829 | datarootdir | |
830 | libexecdir | |
831 | sbindir | |
832 | bindir | |
833 | program_transform_name | |
834 | prefix | |
835 | exec_prefix | |
836 | PACKAGE_URL | |
837 | PACKAGE_BUGREPORT | |
838 | PACKAGE_STRING | |
839 | PACKAGE_VERSION | |
840 | PACKAGE_TARNAME | |
841 | PACKAGE_NAME | |
842 | PATH_SEPARATOR | |
843 | SHELL' | |
844 | ac_subst_files='' | |
845 | ac_user_opts=' | |
846 | enable_option_checking | |
847 | enable_maintainer_mode | |
848 | enable_silent_rules | |
849 | enable_dependency_tracking | |
850 | enable_shared | |
851 | enable_static | |
852 | with_pic | |
853 | enable_fast_install | |
854 | with_aix_soname | |
855 | with_gnu_ld | |
856 | with_sysroot | |
857 | enable_libtool_lock | |
858 | with_spec | |
859 | with_config | |
860 | enable_linux_builtin | |
861 | with_mounthelperdir | |
862 | with_udevdir | |
863 | with_udevruledir | |
864 | enable_systemd | |
865 | with_systemdunitdir | |
866 | with_systemdpresetdir | |
867 | with_systemdmodulesloaddir | |
868 | enable_sysvinit | |
869 | with_dracutdir | |
870 | with_blkid | |
871 | with_linux | |
872 | with_linux_obj | |
873 | with_spl | |
874 | with_spl_obj | |
875 | with_spl_timeout | |
876 | enable_debug | |
877 | enable_debug_dmu_tx | |
878 | ' | |
879 | ac_precious_vars='build_alias | |
880 | host_alias | |
881 | target_alias | |
882 | CC | |
883 | CFLAGS | |
884 | LDFLAGS | |
885 | LIBS | |
886 | CPPFLAGS | |
887 | LT_SYS_LIBRARY_PATH | |
888 | CPP | |
889 | CCAS | |
890 | CCASFLAGS' | |
891 | ||
892 | ||
893 | # Initialize some variables set by options. | |
894 | ac_init_help= | |
895 | ac_init_version=false | |
896 | ac_unrecognized_opts= | |
897 | ac_unrecognized_sep= | |
898 | # The variables have the same names as the options, with | |
899 | # dashes changed to underlines. | |
900 | cache_file=/dev/null | |
901 | exec_prefix=NONE | |
902 | no_create= | |
903 | no_recursion= | |
904 | prefix=NONE | |
905 | program_prefix=NONE | |
906 | program_suffix=NONE | |
907 | program_transform_name=s,x,x, | |
908 | silent= | |
909 | site= | |
910 | srcdir= | |
911 | verbose= | |
912 | x_includes=NONE | |
913 | x_libraries=NONE | |
914 | ||
915 | # Installation directory options. | |
916 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
917 | # and all the variables that are supposed to be based on exec_prefix | |
918 | # by default will actually change. | |
919 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
920 | # (The list follows the same order as the GNU Coding Standards.) | |
921 | bindir='${exec_prefix}/bin' | |
922 | sbindir='${exec_prefix}/sbin' | |
923 | libexecdir='${exec_prefix}/libexec' | |
924 | datarootdir='${prefix}/share' | |
925 | datadir='${datarootdir}' | |
926 | sysconfdir='${prefix}/etc' | |
927 | sharedstatedir='${prefix}/com' | |
928 | localstatedir='${prefix}/var' | |
929 | runstatedir='${localstatedir}/run' | |
930 | includedir='${prefix}/include' | |
931 | oldincludedir='/usr/include' | |
932 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
933 | infodir='${datarootdir}/info' | |
934 | htmldir='${docdir}' | |
935 | dvidir='${docdir}' | |
936 | pdfdir='${docdir}' | |
937 | psdir='${docdir}' | |
938 | libdir='${exec_prefix}/lib' | |
939 | localedir='${datarootdir}/locale' | |
940 | mandir='${datarootdir}/man' | |
941 | ||
942 | ac_prev= | |
943 | ac_dashdash= | |
944 | for ac_option | |
945 | do | |
946 | # If the previous option needs an argument, assign it. | |
947 | if test -n "$ac_prev"; then | |
948 | eval $ac_prev=\$ac_option | |
949 | ac_prev= | |
950 | continue | |
951 | fi | |
952 | ||
953 | case $ac_option in | |
954 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
955 | *=) ac_optarg= ;; | |
956 | *) ac_optarg=yes ;; | |
957 | esac | |
958 | ||
959 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
960 | ||
961 | case $ac_dashdash$ac_option in | |
962 | --) | |
963 | ac_dashdash=yes ;; | |
964 | ||
965 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
966 | ac_prev=bindir ;; | |
967 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
968 | bindir=$ac_optarg ;; | |
969 | ||
970 | -build | --build | --buil | --bui | --bu) | |
971 | ac_prev=build_alias ;; | |
972 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
973 | build_alias=$ac_optarg ;; | |
974 | ||
975 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
976 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
977 | ac_prev=cache_file ;; | |
978 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
979 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
980 | cache_file=$ac_optarg ;; | |
981 | ||
982 | --config-cache | -C) | |
983 | cache_file=config.cache ;; | |
984 | ||
985 | -datadir | --datadir | --datadi | --datad) | |
986 | ac_prev=datadir ;; | |
987 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
988 | datadir=$ac_optarg ;; | |
989 | ||
990 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
991 | | --dataroo | --dataro | --datar) | |
992 | ac_prev=datarootdir ;; | |
993 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
994 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
995 | datarootdir=$ac_optarg ;; | |
996 | ||
997 | -disable-* | --disable-*) | |
998 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
999 | # Reject names that are not valid shell variable names. | |
1000 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1001 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1002 | ac_useropt_orig=$ac_useropt | |
1003 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1004 | case $ac_user_opts in | |
1005 | *" | |
1006 | "enable_$ac_useropt" | |
1007 | "*) ;; | |
1008 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1009 | ac_unrecognized_sep=', ';; | |
1010 | esac | |
1011 | eval enable_$ac_useropt=no ;; | |
1012 | ||
1013 | -docdir | --docdir | --docdi | --doc | --do) | |
1014 | ac_prev=docdir ;; | |
1015 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1016 | docdir=$ac_optarg ;; | |
1017 | ||
1018 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1019 | ac_prev=dvidir ;; | |
1020 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1021 | dvidir=$ac_optarg ;; | |
1022 | ||
1023 | -enable-* | --enable-*) | |
1024 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1025 | # Reject names that are not valid shell variable names. | |
1026 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1027 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1028 | ac_useropt_orig=$ac_useropt | |
1029 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1030 | case $ac_user_opts in | |
1031 | *" | |
1032 | "enable_$ac_useropt" | |
1033 | "*) ;; | |
1034 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1035 | ac_unrecognized_sep=', ';; | |
1036 | esac | |
1037 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1038 | ||
1039 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1040 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1041 | | --exec | --exe | --ex) | |
1042 | ac_prev=exec_prefix ;; | |
1043 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1044 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1045 | | --exec=* | --exe=* | --ex=*) | |
1046 | exec_prefix=$ac_optarg ;; | |
1047 | ||
1048 | -gas | --gas | --ga | --g) | |
1049 | # Obsolete; use --with-gas. | |
1050 | with_gas=yes ;; | |
1051 | ||
1052 | -help | --help | --hel | --he | -h) | |
1053 | ac_init_help=long ;; | |
1054 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1055 | ac_init_help=recursive ;; | |
1056 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1057 | ac_init_help=short ;; | |
1058 | ||
1059 | -host | --host | --hos | --ho) | |
1060 | ac_prev=host_alias ;; | |
1061 | -host=* | --host=* | --hos=* | --ho=*) | |
1062 | host_alias=$ac_optarg ;; | |
1063 | ||
1064 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1065 | ac_prev=htmldir ;; | |
1066 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1067 | | --ht=*) | |
1068 | htmldir=$ac_optarg ;; | |
1069 | ||
1070 | -includedir | --includedir | --includedi | --included | --include \ | |
1071 | | --includ | --inclu | --incl | --inc) | |
1072 | ac_prev=includedir ;; | |
1073 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1074 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1075 | includedir=$ac_optarg ;; | |
1076 | ||
1077 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1078 | ac_prev=infodir ;; | |
1079 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1080 | infodir=$ac_optarg ;; | |
1081 | ||
1082 | -libdir | --libdir | --libdi | --libd) | |
1083 | ac_prev=libdir ;; | |
1084 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1085 | libdir=$ac_optarg ;; | |
1086 | ||
1087 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1088 | | --libexe | --libex | --libe) | |
1089 | ac_prev=libexecdir ;; | |
1090 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1091 | | --libexe=* | --libex=* | --libe=*) | |
1092 | libexecdir=$ac_optarg ;; | |
1093 | ||
1094 | -localedir | --localedir | --localedi | --localed | --locale) | |
1095 | ac_prev=localedir ;; | |
1096 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1097 | localedir=$ac_optarg ;; | |
1098 | ||
1099 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1100 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1101 | ac_prev=localstatedir ;; | |
1102 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1103 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1104 | localstatedir=$ac_optarg ;; | |
1105 | ||
1106 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1107 | ac_prev=mandir ;; | |
1108 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1109 | mandir=$ac_optarg ;; | |
1110 | ||
1111 | -nfp | --nfp | --nf) | |
1112 | # Obsolete; use --without-fp. | |
1113 | with_fp=no ;; | |
1114 | ||
1115 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1116 | | --no-cr | --no-c | -n) | |
1117 | no_create=yes ;; | |
1118 | ||
1119 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1120 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1121 | no_recursion=yes ;; | |
1122 | ||
1123 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1124 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1125 | | --oldin | --oldi | --old | --ol | --o) | |
1126 | ac_prev=oldincludedir ;; | |
1127 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1128 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1129 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1130 | oldincludedir=$ac_optarg ;; | |
1131 | ||
1132 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1133 | ac_prev=prefix ;; | |
1134 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1135 | prefix=$ac_optarg ;; | |
1136 | ||
1137 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1138 | | --program-pre | --program-pr | --program-p) | |
1139 | ac_prev=program_prefix ;; | |
1140 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1141 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1142 | program_prefix=$ac_optarg ;; | |
1143 | ||
1144 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1145 | | --program-suf | --program-su | --program-s) | |
1146 | ac_prev=program_suffix ;; | |
1147 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1148 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1149 | program_suffix=$ac_optarg ;; | |
1150 | ||
1151 | -program-transform-name | --program-transform-name \ | |
1152 | | --program-transform-nam | --program-transform-na \ | |
1153 | | --program-transform-n | --program-transform- \ | |
1154 | | --program-transform | --program-transfor \ | |
1155 | | --program-transfo | --program-transf \ | |
1156 | | --program-trans | --program-tran \ | |
1157 | | --progr-tra | --program-tr | --program-t) | |
1158 | ac_prev=program_transform_name ;; | |
1159 | -program-transform-name=* | --program-transform-name=* \ | |
1160 | | --program-transform-nam=* | --program-transform-na=* \ | |
1161 | | --program-transform-n=* | --program-transform-=* \ | |
1162 | | --program-transform=* | --program-transfor=* \ | |
1163 | | --program-transfo=* | --program-transf=* \ | |
1164 | | --program-trans=* | --program-tran=* \ | |
1165 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1166 | program_transform_name=$ac_optarg ;; | |
1167 | ||
1168 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1169 | ac_prev=pdfdir ;; | |
1170 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1171 | pdfdir=$ac_optarg ;; | |
1172 | ||
1173 | -psdir | --psdir | --psdi | --psd | --ps) | |
1174 | ac_prev=psdir ;; | |
1175 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1176 | psdir=$ac_optarg ;; | |
1177 | ||
1178 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1179 | | -silent | --silent | --silen | --sile | --sil) | |
1180 | silent=yes ;; | |
1181 | ||
1182 | -runstatedir | --runstatedir | --runstatedi | --runstated \ | |
1183 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1184 | | --run | --ru | --r) | |
1185 | ac_prev=runstatedir ;; | |
1186 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1187 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1188 | | --run=* | --ru=* | --r=*) | |
1189 | runstatedir=$ac_optarg ;; | |
1190 | ||
1191 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1192 | ac_prev=sbindir ;; | |
1193 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1194 | | --sbi=* | --sb=*) | |
1195 | sbindir=$ac_optarg ;; | |
1196 | ||
1197 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1198 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1199 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1200 | | --sha | --sh) | |
1201 | ac_prev=sharedstatedir ;; | |
1202 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1203 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1204 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1205 | | --sha=* | --sh=*) | |
1206 | sharedstatedir=$ac_optarg ;; | |
1207 | ||
1208 | -site | --site | --sit) | |
1209 | ac_prev=site ;; | |
1210 | -site=* | --site=* | --sit=*) | |
1211 | site=$ac_optarg ;; | |
1212 | ||
1213 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1214 | ac_prev=srcdir ;; | |
1215 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1216 | srcdir=$ac_optarg ;; | |
1217 | ||
1218 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1219 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1220 | ac_prev=sysconfdir ;; | |
1221 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1222 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1223 | sysconfdir=$ac_optarg ;; | |
1224 | ||
1225 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1226 | ac_prev=target_alias ;; | |
1227 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1228 | target_alias=$ac_optarg ;; | |
1229 | ||
1230 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1231 | verbose=yes ;; | |
1232 | ||
1233 | -version | --version | --versio | --versi | --vers | -V) | |
1234 | ac_init_version=: ;; | |
1235 | ||
1236 | -with-* | --with-*) | |
1237 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1238 | # Reject names that are not valid shell variable names. | |
1239 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1240 | as_fn_error $? "invalid package name: $ac_useropt" | |
1241 | ac_useropt_orig=$ac_useropt | |
1242 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1243 | case $ac_user_opts in | |
1244 | *" | |
1245 | "with_$ac_useropt" | |
1246 | "*) ;; | |
1247 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1248 | ac_unrecognized_sep=', ';; | |
1249 | esac | |
1250 | eval with_$ac_useropt=\$ac_optarg ;; | |
1251 | ||
1252 | -without-* | --without-*) | |
1253 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1254 | # Reject names that are not valid shell variable names. | |
1255 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1256 | as_fn_error $? "invalid package name: $ac_useropt" | |
1257 | ac_useropt_orig=$ac_useropt | |
1258 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1259 | case $ac_user_opts in | |
1260 | *" | |
1261 | "with_$ac_useropt" | |
1262 | "*) ;; | |
1263 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1264 | ac_unrecognized_sep=', ';; | |
1265 | esac | |
1266 | eval with_$ac_useropt=no ;; | |
1267 | ||
1268 | --x) | |
1269 | # Obsolete; use --with-x. | |
1270 | with_x=yes ;; | |
1271 | ||
1272 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1273 | | --x-incl | --x-inc | --x-in | --x-i) | |
1274 | ac_prev=x_includes ;; | |
1275 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1276 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1277 | x_includes=$ac_optarg ;; | |
1278 | ||
1279 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1280 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1281 | ac_prev=x_libraries ;; | |
1282 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1283 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1284 | x_libraries=$ac_optarg ;; | |
1285 | ||
1286 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1287 | Try \`$0 --help' for more information" | |
1288 | ;; | |
1289 | ||
1290 | *=*) | |
1291 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1292 | # Reject names that are not valid shell variable names. | |
1293 | case $ac_envvar in #( | |
1294 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1295 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1296 | esac | |
1297 | eval $ac_envvar=\$ac_optarg | |
1298 | export $ac_envvar ;; | |
1299 | ||
1300 | *) | |
1301 | # FIXME: should be removed in autoconf 3.0. | |
1302 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1303 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1304 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1305 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1306 | ;; | |
1307 | ||
1308 | esac | |
1309 | done | |
1310 | ||
1311 | if test -n "$ac_prev"; then | |
1312 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1313 | as_fn_error $? "missing argument to $ac_option" | |
1314 | fi | |
1315 | ||
1316 | if test -n "$ac_unrecognized_opts"; then | |
1317 | case $enable_option_checking in | |
1318 | no) ;; | |
1319 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1320 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1321 | esac | |
1322 | fi | |
1323 | ||
1324 | # Check all directory arguments for consistency. | |
1325 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1326 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1327 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1328 | libdir localedir mandir runstatedir | |
1329 | do | |
1330 | eval ac_val=\$$ac_var | |
1331 | # Remove trailing slashes. | |
1332 | case $ac_val in | |
1333 | */ ) | |
1334 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1335 | eval $ac_var=\$ac_val;; | |
1336 | esac | |
1337 | # Be sure to have absolute directory names. | |
1338 | case $ac_val in | |
1339 | [\\/$]* | ?:[\\/]* ) continue;; | |
1340 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1341 | esac | |
1342 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1343 | done | |
1344 | ||
1345 | # There might be people who depend on the old broken behavior: `$host' | |
1346 | # used to hold the argument of --host etc. | |
1347 | # FIXME: To remove some day. | |
1348 | build=$build_alias | |
1349 | host=$host_alias | |
1350 | target=$target_alias | |
1351 | ||
1352 | # FIXME: To remove some day. | |
1353 | if test "x$host_alias" != x; then | |
1354 | if test "x$build_alias" = x; then | |
1355 | cross_compiling=maybe | |
1356 | elif test "x$build_alias" != "x$host_alias"; then | |
1357 | cross_compiling=yes | |
1358 | fi | |
1359 | fi | |
1360 | ||
1361 | ac_tool_prefix= | |
1362 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1363 | ||
1364 | test "$silent" = yes && exec 6>/dev/null | |
1365 | ||
1366 | ||
1367 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1368 | ac_ls_di=`ls -di .` && | |
1369 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1370 | as_fn_error $? "working directory cannot be determined" | |
1371 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1372 | as_fn_error $? "pwd does not report name of working directory" | |
1373 | ||
1374 | ||
1375 | # Find the source files, if location was not specified. | |
1376 | if test -z "$srcdir"; then | |
1377 | ac_srcdir_defaulted=yes | |
1378 | # Try the directory containing this script, then the parent directory. | |
1379 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1380 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1381 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1382 | X"$as_myself" : 'X\(//\)$' \| \ | |
1383 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1384 | $as_echo X"$as_myself" | | |
1385 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1386 | s//\1/ | |
1387 | q | |
1388 | } | |
1389 | /^X\(\/\/\)[^/].*/{ | |
1390 | s//\1/ | |
1391 | q | |
1392 | } | |
1393 | /^X\(\/\/\)$/{ | |
1394 | s//\1/ | |
1395 | q | |
1396 | } | |
1397 | /^X\(\/\).*/{ | |
1398 | s//\1/ | |
1399 | q | |
1400 | } | |
1401 | s/.*/./; q'` | |
1402 | srcdir=$ac_confdir | |
1403 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1404 | srcdir=.. | |
1405 | fi | |
1406 | else | |
1407 | ac_srcdir_defaulted=no | |
1408 | fi | |
1409 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1410 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1411 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1412 | fi | |
1413 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1414 | ac_abs_confdir=`( | |
1415 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1416 | pwd)` | |
1417 | # When building in place, set srcdir=. | |
1418 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1419 | srcdir=. | |
1420 | fi | |
1421 | # Remove unnecessary trailing slashes from srcdir. | |
1422 | # Double slashes in file names in object file debugging info | |
1423 | # mess up M-x gdb in Emacs. | |
1424 | case $srcdir in | |
1425 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1426 | esac | |
1427 | for ac_var in $ac_precious_vars; do | |
1428 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1429 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1430 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1431 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1432 | done | |
1433 | ||
1434 | # | |
1435 | # Report the --help message. | |
1436 | # | |
1437 | if test "$ac_init_help" = "long"; then | |
1438 | # Omit some internal or obsolete options to make the list less imposing. | |
1439 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1440 | cat <<_ACEOF | |
1ec59ff7 | 1441 | \`configure' configures zfs 0.6.5.11 to adapt to many kinds of systems. |
87d546d8 TG |
1442 | |
1443 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1444 | ||
1445 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1446 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1447 | ||
1448 | Defaults for the options are specified in brackets. | |
1449 | ||
1450 | Configuration: | |
1451 | -h, --help display this help and exit | |
1452 | --help=short display options specific to this package | |
1453 | --help=recursive display the short help of all the included packages | |
1454 | -V, --version display version information and exit | |
1455 | -q, --quiet, --silent do not print \`checking ...' messages | |
1456 | --cache-file=FILE cache test results in FILE [disabled] | |
1457 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1458 | -n, --no-create do not create output files | |
1459 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1460 | ||
1461 | Installation directories: | |
1462 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1463 | [$ac_default_prefix] | |
1464 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1465 | [PREFIX] | |
1466 | ||
1467 | By default, \`make install' will install all the files in | |
1468 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1469 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1470 | for instance \`--prefix=\$HOME'. | |
1471 | ||
1472 | For better control, use the options below. | |
1473 | ||
1474 | Fine tuning of the installation directories: | |
1475 | --bindir=DIR user executables [EPREFIX/bin] | |
1476 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1477 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1478 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1479 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1480 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1481 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] | |
1482 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1483 | --includedir=DIR C header files [PREFIX/include] | |
1484 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1485 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1486 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1487 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1488 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1489 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1490 | --docdir=DIR documentation root [DATAROOTDIR/doc/zfs] | |
1491 | --htmldir=DIR html documentation [DOCDIR] | |
1492 | --dvidir=DIR dvi documentation [DOCDIR] | |
1493 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1494 | --psdir=DIR ps documentation [DOCDIR] | |
1495 | _ACEOF | |
1496 | ||
1497 | cat <<\_ACEOF | |
1498 | ||
1499 | Program names: | |
1500 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1501 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1502 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1503 | ||
1504 | System types: | |
1505 | --build=BUILD configure for building on BUILD [guessed] | |
1506 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1507 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1508 | _ACEOF | |
1509 | fi | |
1510 | ||
1511 | if test -n "$ac_init_help"; then | |
1512 | case $ac_init_help in | |
1ec59ff7 | 1513 | short | recursive ) echo "Configuration of zfs 0.6.5.11:";; |
87d546d8 TG |
1514 | esac |
1515 | cat <<\_ACEOF | |
1516 | ||
1517 | Optional Features: | |
1518 | --disable-option-checking ignore unrecognized --enable/--with options | |
1519 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1520 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1521 | --enable-maintainer-mode | |
1522 | enable make rules and dependencies not useful (and | |
1523 | sometimes confusing) to the casual installer | |
1524 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1525 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1526 | --enable-dependency-tracking | |
1527 | do not reject slow dependency extractors | |
1528 | --disable-dependency-tracking | |
1529 | speeds up one-time build | |
1530 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1531 | --enable-static[=PKGS] build static libraries [default=yes] | |
1532 | --enable-fast-install[=PKGS] | |
1533 | optimize for fast installation [default=yes] | |
1534 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1535 | --enable-linux-builtin Configure for builtin in-tree kernel modules | |
1536 | [default=no] | |
1537 | --enable-systemd install systemd unit/preset files [[default: yes]] | |
1538 | --enable-sysvinit install SysV init scripts [default: yes] | |
1539 | --enable-debug Enable generic debug support [default=no] | |
1540 | --enable-debug-dmu-tx Enable dmu tx validation [default=no] | |
1541 | ||
1542 | Optional Packages: | |
1543 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1544 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1545 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
1546 | both] | |
1547 | --with-aix-soname=aix|svr4|both | |
1548 | shared library versioning (aka "SONAME") variant to | |
1549 | provide on AIX, [default=aix]. | |
1550 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1551 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the | |
1552 | compiler's sysroot if not specified). | |
1553 | --with-spec=SPEC Spec files 'generic|redhat' | |
1554 | --with-config=CONFIG Config file 'kernel|user|all|srpm' | |
1555 | --with-mounthelperdir=DIR | |
1556 | install mount.zfs in dir [[/sbin]] | |
1557 | --with-udevdir=DIR install udev helpers [default=check] | |
1558 | --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]] | |
1559 | --with-systemdunitdir=DIR | |
1560 | install systemd unit files in dir | |
1561 | [[/usr/lib/systemd/system]] | |
1562 | --with-systemdpresetdir=DIR | |
1563 | install systemd preset files in dir | |
1564 | [[/usr/lib/systemd/system-preset]] | |
1565 | --with-systemdmodulesloaddir=DIR | |
1566 | install systemd module load files into dir | |
1567 | [[/usr/lib/modules-load.d]] | |
1568 | --with-dracutdir=DIR install dracut helpers [default=check] | |
1569 | --with-blkid support blkid caching [default=check] | |
1570 | --with-linux=PATH Path to kernel source | |
1571 | --with-linux-obj=PATH Path to kernel build objects | |
1572 | --with-spl=PATH Path to spl source | |
1573 | --with-spl-obj=PATH Path to spl build objects | |
1574 | --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0] | |
1575 | ||
1576 | Some influential environment variables: | |
1577 | CC C compiler command | |
1578 | CFLAGS C compiler flags | |
1579 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1580 | nonstandard directory <lib dir> | |
1581 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1582 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1583 | you have headers in a nonstandard directory <include dir> | |
1584 | LT_SYS_LIBRARY_PATH | |
1585 | User-defined run-time library search path. | |
1586 | CPP C preprocessor | |
1587 | CCAS assembler compiler command (defaults to CC) | |
1588 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
1589 | ||
1590 | Use these variables to override the choices made by `configure' or to help | |
1591 | it to find libraries and programs with nonstandard names/locations. | |
1592 | ||
1593 | Report bugs to the package provider. | |
1594 | _ACEOF | |
1595 | ac_status=$? | |
1596 | fi | |
1597 | ||
1598 | if test "$ac_init_help" = "recursive"; then | |
1599 | # If there are subdirs, report their specific --help. | |
1600 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1601 | test -d "$ac_dir" || | |
1602 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1603 | continue | |
1604 | ac_builddir=. | |
1605 | ||
1606 | case "$ac_dir" in | |
1607 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1608 | *) | |
1609 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1610 | # A ".." for each directory in $ac_dir_suffix. | |
1611 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1612 | case $ac_top_builddir_sub in | |
1613 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1614 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1615 | esac ;; | |
1616 | esac | |
1617 | ac_abs_top_builddir=$ac_pwd | |
1618 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1619 | # for backward compatibility: | |
1620 | ac_top_builddir=$ac_top_build_prefix | |
1621 | ||
1622 | case $srcdir in | |
1623 | .) # We are building in place. | |
1624 | ac_srcdir=. | |
1625 | ac_top_srcdir=$ac_top_builddir_sub | |
1626 | ac_abs_top_srcdir=$ac_pwd ;; | |
1627 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1628 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1629 | ac_top_srcdir=$srcdir | |
1630 | ac_abs_top_srcdir=$srcdir ;; | |
1631 | *) # Relative name. | |
1632 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1633 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1634 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1635 | esac | |
1636 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1637 | ||
1638 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1639 | # Check for guested configure. | |
1640 | if test -f "$ac_srcdir/configure.gnu"; then | |
1641 | echo && | |
1642 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1643 | elif test -f "$ac_srcdir/configure"; then | |
1644 | echo && | |
1645 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1646 | else | |
1647 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1648 | fi || ac_status=$? | |
1649 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1650 | done | |
1651 | fi | |
1652 | ||
1653 | test -n "$ac_init_help" && exit $ac_status | |
1654 | if $ac_init_version; then | |
1655 | cat <<\_ACEOF | |
1ec59ff7 | 1656 | zfs configure 0.6.5.11 |
87d546d8 TG |
1657 | generated by GNU Autoconf 2.69 |
1658 | ||
1659 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1660 | This configure script is free software; the Free Software Foundation | |
1661 | gives unlimited permission to copy, distribute and modify it. | |
1662 | _ACEOF | |
1663 | exit | |
1664 | fi | |
1665 | ||
1666 | ## ------------------------ ## | |
1667 | ## Autoconf initialization. ## | |
1668 | ## ------------------------ ## | |
1669 | ||
1670 | # ac_fn_c_try_compile LINENO | |
1671 | # -------------------------- | |
1672 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1673 | ac_fn_c_try_compile () | |
1674 | { | |
1675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1676 | rm -f conftest.$ac_objext | |
1677 | if { { ac_try="$ac_compile" | |
1678 | case "(($ac_try" in | |
1679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1680 | *) ac_try_echo=$ac_try;; | |
1681 | esac | |
1682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1683 | $as_echo "$ac_try_echo"; } >&5 | |
1684 | (eval "$ac_compile") 2>conftest.err | |
1685 | ac_status=$? | |
1686 | if test -s conftest.err; then | |
1687 | grep -v '^ *+' conftest.err >conftest.er1 | |
1688 | cat conftest.er1 >&5 | |
1689 | mv -f conftest.er1 conftest.err | |
1690 | fi | |
1691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1692 | test $ac_status = 0; } && { | |
1693 | test -z "$ac_c_werror_flag" || | |
1694 | test ! -s conftest.err | |
1695 | } && test -s conftest.$ac_objext; then : | |
1696 | ac_retval=0 | |
1697 | else | |
1698 | $as_echo "$as_me: failed program was:" >&5 | |
1699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1700 | ||
1701 | ac_retval=1 | |
1702 | fi | |
1703 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1704 | as_fn_set_status $ac_retval | |
1705 | ||
1706 | } # ac_fn_c_try_compile | |
1707 | ||
1708 | # ac_fn_c_try_link LINENO | |
1709 | # ----------------------- | |
1710 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1711 | ac_fn_c_try_link () | |
1712 | { | |
1713 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1714 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1715 | if { { ac_try="$ac_link" | |
1716 | case "(($ac_try" in | |
1717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1718 | *) ac_try_echo=$ac_try;; | |
1719 | esac | |
1720 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1721 | $as_echo "$ac_try_echo"; } >&5 | |
1722 | (eval "$ac_link") 2>conftest.err | |
1723 | ac_status=$? | |
1724 | if test -s conftest.err; then | |
1725 | grep -v '^ *+' conftest.err >conftest.er1 | |
1726 | cat conftest.er1 >&5 | |
1727 | mv -f conftest.er1 conftest.err | |
1728 | fi | |
1729 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1730 | test $ac_status = 0; } && { | |
1731 | test -z "$ac_c_werror_flag" || | |
1732 | test ! -s conftest.err | |
1733 | } && test -s conftest$ac_exeext && { | |
1734 | test "$cross_compiling" = yes || | |
1735 | test -x conftest$ac_exeext | |
1736 | }; then : | |
1737 | ac_retval=0 | |
1738 | else | |
1739 | $as_echo "$as_me: failed program was:" >&5 | |
1740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1741 | ||
1742 | ac_retval=1 | |
1743 | fi | |
1744 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1745 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1746 | # interfere with the next link command; also delete a directory that is | |
1747 | # left behind by Apple's compiler. We do this before executing the actions. | |
1748 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1749 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1750 | as_fn_set_status $ac_retval | |
1751 | ||
1752 | } # ac_fn_c_try_link | |
1753 | ||
1754 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1755 | # ------------------------------------------------------- | |
1756 | # Tests whether HEADER exists and can be compiled using the include files in | |
1757 | # INCLUDES, setting the cache variable VAR accordingly. | |
1758 | ac_fn_c_check_header_compile () | |
1759 | { | |
1760 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1762 | $as_echo_n "checking for $2... " >&6; } | |
1763 | if eval \${$3+:} false; then : | |
1764 | $as_echo_n "(cached) " >&6 | |
1765 | else | |
1766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1767 | /* end confdefs.h. */ | |
1768 | $4 | |
1769 | #include <$2> | |
1770 | _ACEOF | |
1771 | if ac_fn_c_try_compile "$LINENO"; then : | |
1772 | eval "$3=yes" | |
1773 | else | |
1774 | eval "$3=no" | |
1775 | fi | |
1776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1777 | fi | |
1778 | eval ac_res=\$$3 | |
1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1780 | $as_echo "$ac_res" >&6; } | |
1781 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1782 | ||
1783 | } # ac_fn_c_check_header_compile | |
1784 | ||
1785 | # ac_fn_c_try_cpp LINENO | |
1786 | # ---------------------- | |
1787 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1788 | ac_fn_c_try_cpp () | |
1789 | { | |
1790 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1791 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1792 | case "(($ac_try" in | |
1793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1794 | *) ac_try_echo=$ac_try;; | |
1795 | esac | |
1796 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1797 | $as_echo "$ac_try_echo"; } >&5 | |
1798 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1799 | ac_status=$? | |
1800 | if test -s conftest.err; then | |
1801 | grep -v '^ *+' conftest.err >conftest.er1 | |
1802 | cat conftest.er1 >&5 | |
1803 | mv -f conftest.er1 conftest.err | |
1804 | fi | |
1805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1806 | test $ac_status = 0; } > conftest.i && { | |
1807 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1808 | test ! -s conftest.err | |
1809 | }; then : | |
1810 | ac_retval=0 | |
1811 | else | |
1812 | $as_echo "$as_me: failed program was:" >&5 | |
1813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1814 | ||
1815 | ac_retval=1 | |
1816 | fi | |
1817 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1818 | as_fn_set_status $ac_retval | |
1819 | ||
1820 | } # ac_fn_c_try_cpp | |
1821 | ||
1822 | # ac_fn_c_try_run LINENO | |
1823 | # ---------------------- | |
1824 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1825 | # that executables *can* be run. | |
1826 | ac_fn_c_try_run () | |
1827 | { | |
1828 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1829 | if { { ac_try="$ac_link" | |
1830 | case "(($ac_try" in | |
1831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1832 | *) ac_try_echo=$ac_try;; | |
1833 | esac | |
1834 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1835 | $as_echo "$ac_try_echo"; } >&5 | |
1836 | (eval "$ac_link") 2>&5 | |
1837 | ac_status=$? | |
1838 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1839 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1840 | { { case "(($ac_try" in | |
1841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1842 | *) ac_try_echo=$ac_try;; | |
1843 | esac | |
1844 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1845 | $as_echo "$ac_try_echo"; } >&5 | |
1846 | (eval "$ac_try") 2>&5 | |
1847 | ac_status=$? | |
1848 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1849 | test $ac_status = 0; }; }; then : | |
1850 | ac_retval=0 | |
1851 | else | |
1852 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1853 | $as_echo "$as_me: failed program was:" >&5 | |
1854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1855 | ||
1856 | ac_retval=$ac_status | |
1857 | fi | |
1858 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1859 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1860 | as_fn_set_status $ac_retval | |
1861 | ||
1862 | } # ac_fn_c_try_run | |
1863 | ||
1864 | # ac_fn_c_check_func LINENO FUNC VAR | |
1865 | # ---------------------------------- | |
1866 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1867 | ac_fn_c_check_func () | |
1868 | { | |
1869 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1871 | $as_echo_n "checking for $2... " >&6; } | |
1872 | if eval \${$3+:} false; then : | |
1873 | $as_echo_n "(cached) " >&6 | |
1874 | else | |
1875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1876 | /* end confdefs.h. */ | |
1877 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1878 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1879 | #define $2 innocuous_$2 | |
1880 | ||
1881 | /* System header to define __stub macros and hopefully few prototypes, | |
1882 | which can conflict with char $2 (); below. | |
1883 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1884 | <limits.h> exists even on freestanding compilers. */ | |
1885 | ||
1886 | #ifdef __STDC__ | |
1887 | # include <limits.h> | |
1888 | #else | |
1889 | # include <assert.h> | |
1890 | #endif | |
1891 | ||
1892 | #undef $2 | |
1893 | ||
1894 | /* Override any GCC internal prototype to avoid an error. | |
1895 | Use char because int might match the return type of a GCC | |
1896 | builtin and then its argument prototype would still apply. */ | |
1897 | #ifdef __cplusplus | |
1898 | extern "C" | |
1899 | #endif | |
1900 | char $2 (); | |
1901 | /* The GNU C library defines this for functions which it implements | |
1902 | to always fail with ENOSYS. Some functions are actually named | |
1903 | something starting with __ and the normal name is an alias. */ | |
1904 | #if defined __stub_$2 || defined __stub___$2 | |
1905 | choke me | |
1906 | #endif | |
1907 | ||
1908 | int | |
1909 | main () | |
1910 | { | |
1911 | return $2 (); | |
1912 | ; | |
1913 | return 0; | |
1914 | } | |
1915 | _ACEOF | |
1916 | if ac_fn_c_try_link "$LINENO"; then : | |
1917 | eval "$3=yes" | |
1918 | else | |
1919 | eval "$3=no" | |
1920 | fi | |
1921 | rm -f core conftest.err conftest.$ac_objext \ | |
1922 | conftest$ac_exeext conftest.$ac_ext | |
1923 | fi | |
1924 | eval ac_res=\$$3 | |
1925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1926 | $as_echo "$ac_res" >&6; } | |
1927 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1928 | ||
1929 | } # ac_fn_c_check_func | |
1930 | ||
1931 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1932 | # ------------------------------------------------------- | |
1933 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1934 | # the include files in INCLUDES and setting the cache variable VAR | |
1935 | # accordingly. | |
1936 | ac_fn_c_check_header_mongrel () | |
1937 | { | |
1938 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1939 | if eval \${$3+:} false; then : | |
1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1941 | $as_echo_n "checking for $2... " >&6; } | |
1942 | if eval \${$3+:} false; then : | |
1943 | $as_echo_n "(cached) " >&6 | |
1944 | fi | |
1945 | eval ac_res=\$$3 | |
1946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1947 | $as_echo "$ac_res" >&6; } | |
1948 | else | |
1949 | # Is the header compilable? | |
1950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1951 | $as_echo_n "checking $2 usability... " >&6; } | |
1952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1953 | /* end confdefs.h. */ | |
1954 | $4 | |
1955 | #include <$2> | |
1956 | _ACEOF | |
1957 | if ac_fn_c_try_compile "$LINENO"; then : | |
1958 | ac_header_compiler=yes | |
1959 | else | |
1960 | ac_header_compiler=no | |
1961 | fi | |
1962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1964 | $as_echo "$ac_header_compiler" >&6; } | |
1965 | ||
1966 | # Is the header present? | |
1967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1968 | $as_echo_n "checking $2 presence... " >&6; } | |
1969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1970 | /* end confdefs.h. */ | |
1971 | #include <$2> | |
1972 | _ACEOF | |
1973 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1974 | ac_header_preproc=yes | |
1975 | else | |
1976 | ac_header_preproc=no | |
1977 | fi | |
1978 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1980 | $as_echo "$ac_header_preproc" >&6; } | |
1981 | ||
1982 | # So? What about this header? | |
1983 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1984 | yes:no: ) | |
1985 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1986 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1987 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1988 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1989 | ;; | |
1990 | no:yes:* ) | |
1991 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1992 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1993 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1994 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1995 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1996 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1997 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1998 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2000 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2001 | ;; | |
2002 | esac | |
2003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2004 | $as_echo_n "checking for $2... " >&6; } | |
2005 | if eval \${$3+:} false; then : | |
2006 | $as_echo_n "(cached) " >&6 | |
2007 | else | |
2008 | eval "$3=\$ac_header_compiler" | |
2009 | fi | |
2010 | eval ac_res=\$$3 | |
2011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2012 | $as_echo "$ac_res" >&6; } | |
2013 | fi | |
2014 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2015 | ||
2016 | } # ac_fn_c_check_header_mongrel | |
2017 | cat >config.log <<_ACEOF | |
2018 | This file contains any messages produced by compilers while | |
2019 | running configure, to aid debugging if configure makes a mistake. | |
2020 | ||
1ec59ff7 | 2021 | It was created by zfs $as_me 0.6.5.11, which was |
87d546d8 TG |
2022 | generated by GNU Autoconf 2.69. Invocation command line was |
2023 | ||
2024 | $ $0 $@ | |
2025 | ||
2026 | _ACEOF | |
2027 | exec 5>>config.log | |
2028 | { | |
2029 | cat <<_ASUNAME | |
2030 | ## --------- ## | |
2031 | ## Platform. ## | |
2032 | ## --------- ## | |
2033 | ||
2034 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2035 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2036 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2037 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2038 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2039 | ||
2040 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2041 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2042 | ||
2043 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2044 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2045 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2046 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2047 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2048 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2049 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2050 | ||
2051 | _ASUNAME | |
2052 | ||
2053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2054 | for as_dir in $PATH | |
2055 | do | |
2056 | IFS=$as_save_IFS | |
2057 | test -z "$as_dir" && as_dir=. | |
2058 | $as_echo "PATH: $as_dir" | |
2059 | done | |
2060 | IFS=$as_save_IFS | |
2061 | ||
2062 | } >&5 | |
2063 | ||
2064 | cat >&5 <<_ACEOF | |
2065 | ||
2066 | ||
2067 | ## ----------- ## | |
2068 | ## Core tests. ## | |
2069 | ## ----------- ## | |
2070 | ||
2071 | _ACEOF | |
2072 | ||
2073 | ||
2074 | # Keep a trace of the command line. | |
2075 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2076 | # Strip out --silent because we don't want to record it for future runs. | |
2077 | # Also quote any args containing shell meta-characters. | |
2078 | # Make two passes to allow for proper duplicate-argument suppression. | |
2079 | ac_configure_args= | |
2080 | ac_configure_args0= | |
2081 | ac_configure_args1= | |
2082 | ac_must_keep_next=false | |
2083 | for ac_pass in 1 2 | |
2084 | do | |
2085 | for ac_arg | |
2086 | do | |
2087 | case $ac_arg in | |
2088 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2089 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2090 | | -silent | --silent | --silen | --sile | --sil) | |
2091 | continue ;; | |
2092 | *\'*) | |
2093 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2094 | esac | |
2095 | case $ac_pass in | |
2096 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2097 | 2) | |
2098 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2099 | if test $ac_must_keep_next = true; then | |
2100 | ac_must_keep_next=false # Got value, back to normal. | |
2101 | else | |
2102 | case $ac_arg in | |
2103 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2104 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2105 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2106 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2107 | case "$ac_configure_args0 " in | |
2108 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2109 | esac | |
2110 | ;; | |
2111 | -* ) ac_must_keep_next=true ;; | |
2112 | esac | |
2113 | fi | |
2114 | as_fn_append ac_configure_args " '$ac_arg'" | |
2115 | ;; | |
2116 | esac | |
2117 | done | |
2118 | done | |
2119 | { ac_configure_args0=; unset ac_configure_args0;} | |
2120 | { ac_configure_args1=; unset ac_configure_args1;} | |
2121 | ||
2122 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2123 | # config.log. We remove comments because anyway the quotes in there | |
2124 | # would cause problems or look ugly. | |
2125 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2126 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2127 | trap 'exit_status=$? | |
2128 | # Save into config.log some information that might help in debugging. | |
2129 | { | |
2130 | echo | |
2131 | ||
2132 | $as_echo "## ---------------- ## | |
2133 | ## Cache variables. ## | |
2134 | ## ---------------- ##" | |
2135 | echo | |
2136 | # The following way of writing the cache mishandles newlines in values, | |
2137 | ( | |
2138 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2139 | eval ac_val=\$$ac_var | |
2140 | case $ac_val in #( | |
2141 | *${as_nl}*) | |
2142 | case $ac_var in #( | |
2143 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2144 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2145 | esac | |
2146 | case $ac_var in #( | |
2147 | _ | IFS | as_nl) ;; #( | |
2148 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2149 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2150 | esac ;; | |
2151 | esac | |
2152 | done | |
2153 | (set) 2>&1 | | |
2154 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2155 | *${as_nl}ac_space=\ *) | |
2156 | sed -n \ | |
2157 | "s/'\''/'\''\\\\'\'''\''/g; | |
2158 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2159 | ;; #( | |
2160 | *) | |
2161 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2162 | ;; | |
2163 | esac | | |
2164 | sort | |
2165 | ) | |
2166 | echo | |
2167 | ||
2168 | $as_echo "## ----------------- ## | |
2169 | ## Output variables. ## | |
2170 | ## ----------------- ##" | |
2171 | echo | |
2172 | for ac_var in $ac_subst_vars | |
2173 | do | |
2174 | eval ac_val=\$$ac_var | |
2175 | case $ac_val in | |
2176 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2177 | esac | |
2178 | $as_echo "$ac_var='\''$ac_val'\''" | |
2179 | done | sort | |
2180 | echo | |
2181 | ||
2182 | if test -n "$ac_subst_files"; then | |
2183 | $as_echo "## ------------------- ## | |
2184 | ## File substitutions. ## | |
2185 | ## ------------------- ##" | |
2186 | echo | |
2187 | for ac_var in $ac_subst_files | |
2188 | do | |
2189 | eval ac_val=\$$ac_var | |
2190 | case $ac_val in | |
2191 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2192 | esac | |
2193 | $as_echo "$ac_var='\''$ac_val'\''" | |
2194 | done | sort | |
2195 | echo | |
2196 | fi | |
2197 | ||
2198 | if test -s confdefs.h; then | |
2199 | $as_echo "## ----------- ## | |
2200 | ## confdefs.h. ## | |
2201 | ## ----------- ##" | |
2202 | echo | |
2203 | cat confdefs.h | |
2204 | echo | |
2205 | fi | |
2206 | test "$ac_signal" != 0 && | |
2207 | $as_echo "$as_me: caught signal $ac_signal" | |
2208 | $as_echo "$as_me: exit $exit_status" | |
2209 | } >&5 | |
2210 | rm -f core *.core core.conftest.* && | |
2211 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2212 | exit $exit_status | |
2213 | ' 0 | |
2214 | for ac_signal in 1 2 13 15; do | |
2215 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2216 | done | |
2217 | ac_signal=0 | |
2218 | ||
2219 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2220 | rm -f -r conftest* confdefs.h | |
2221 | ||
2222 | $as_echo "/* confdefs.h */" > confdefs.h | |
2223 | ||
2224 | # Predefined preprocessor variables. | |
2225 | ||
2226 | cat >>confdefs.h <<_ACEOF | |
2227 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2228 | _ACEOF | |
2229 | ||
2230 | cat >>confdefs.h <<_ACEOF | |
2231 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2232 | _ACEOF | |
2233 | ||
2234 | cat >>confdefs.h <<_ACEOF | |
2235 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2236 | _ACEOF | |
2237 | ||
2238 | cat >>confdefs.h <<_ACEOF | |
2239 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2240 | _ACEOF | |
2241 | ||
2242 | cat >>confdefs.h <<_ACEOF | |
2243 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2244 | _ACEOF | |
2245 | ||
2246 | cat >>confdefs.h <<_ACEOF | |
2247 | #define PACKAGE_URL "$PACKAGE_URL" | |
2248 | _ACEOF | |
2249 | ||
2250 | ||
2251 | # Let the site file select an alternate cache file if it wants to. | |
2252 | # Prefer an explicitly selected file to automatically selected ones. | |
2253 | ac_site_file1=NONE | |
2254 | ac_site_file2=NONE | |
2255 | if test -n "$CONFIG_SITE"; then | |
2256 | # We do not want a PATH search for config.site. | |
2257 | case $CONFIG_SITE in #(( | |
2258 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2259 | */*) ac_site_file1=$CONFIG_SITE;; | |
2260 | *) ac_site_file1=./$CONFIG_SITE;; | |
2261 | esac | |
2262 | elif test "x$prefix" != xNONE; then | |
2263 | ac_site_file1=$prefix/share/config.site | |
2264 | ac_site_file2=$prefix/etc/config.site | |
2265 | else | |
2266 | ac_site_file1=$ac_default_prefix/share/config.site | |
2267 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2268 | fi | |
2269 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2270 | do | |
2271 | test "x$ac_site_file" = xNONE && continue | |
2272 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2273 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2274 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2275 | sed 's/^/| /' "$ac_site_file" >&5 | |
2276 | . "$ac_site_file" \ | |
2277 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2278 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2279 | as_fn_error $? "failed to load site script $ac_site_file | |
2280 | See \`config.log' for more details" "$LINENO" 5; } | |
2281 | fi | |
2282 | done | |
2283 | ||
2284 | if test -r "$cache_file"; then | |
2285 | # Some versions of bash will fail to source /dev/null (special files | |
2286 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2287 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2289 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2290 | case $cache_file in | |
2291 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2292 | *) . "./$cache_file";; | |
2293 | esac | |
2294 | fi | |
2295 | else | |
2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2297 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2298 | >$cache_file | |
2299 | fi | |
2300 | ||
2301 | # Check that the precious variables saved in the cache have kept the same | |
2302 | # value. | |
2303 | ac_cache_corrupted=false | |
2304 | for ac_var in $ac_precious_vars; do | |
2305 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2306 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2307 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2308 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2309 | case $ac_old_set,$ac_new_set in | |
2310 | set,) | |
2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2312 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2313 | ac_cache_corrupted=: ;; | |
2314 | ,set) | |
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2316 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2317 | ac_cache_corrupted=: ;; | |
2318 | ,);; | |
2319 | *) | |
2320 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2321 | # differences in whitespace do not lead to failure. | |
2322 | ac_old_val_w=`echo x $ac_old_val` | |
2323 | ac_new_val_w=`echo x $ac_new_val` | |
2324 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2325 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2326 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2327 | ac_cache_corrupted=: | |
2328 | else | |
2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2330 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2331 | eval $ac_var=\$ac_old_val | |
2332 | fi | |
2333 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2334 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2335 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2336 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2337 | fi;; | |
2338 | esac | |
2339 | # Pass precious variables to config.status. | |
2340 | if test "$ac_new_set" = set; then | |
2341 | case $ac_new_val in | |
2342 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2343 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2344 | esac | |
2345 | case " $ac_configure_args " in | |
2346 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2347 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2348 | esac | |
2349 | fi | |
2350 | done | |
2351 | if $ac_cache_corrupted; then | |
2352 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2353 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2355 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2356 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2357 | fi | |
2358 | ## -------------------- ## | |
2359 | ## Main body of script. ## | |
2360 | ## -------------------- ## | |
2361 | ||
2362 | ac_ext=c | |
2363 | ac_cpp='$CPP $CPPFLAGS' | |
2364 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2365 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2366 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2367 | ||
2368 | ||
2369 | ac_ext=c | |
2370 | ac_cpp='$CPP $CPPFLAGS' | |
2371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2374 | ||
2375 | ||
2376 | ||
2377 | ||
2378 | ||
2379 | for ac_prog in gawk mawk nawk awk | |
2380 | do | |
2381 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2382 | set dummy $ac_prog; ac_word=$2 | |
2383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2384 | $as_echo_n "checking for $ac_word... " >&6; } | |
2385 | if ${ac_cv_prog_AWK+:} false; then : | |
2386 | $as_echo_n "(cached) " >&6 | |
2387 | else | |
2388 | if test -n "$AWK"; then | |
2389 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2390 | else | |
2391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2392 | for as_dir in $PATH | |
2393 | do | |
2394 | IFS=$as_save_IFS | |
2395 | test -z "$as_dir" && as_dir=. | |
2396 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2397 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2398 | ac_cv_prog_AWK="$ac_prog" | |
2399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2400 | break 2 | |
2401 | fi | |
2402 | done | |
2403 | done | |
2404 | IFS=$as_save_IFS | |
2405 | ||
2406 | fi | |
2407 | fi | |
2408 | AWK=$ac_cv_prog_AWK | |
2409 | if test -n "$AWK"; then | |
2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2411 | $as_echo "$AWK" >&6; } | |
2412 | else | |
2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2414 | $as_echo "no" >&6; } | |
2415 | fi | |
2416 | ||
2417 | ||
2418 | test -n "$AWK" && break | |
2419 | done | |
2420 | ||
2421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5 | |
2422 | $as_echo_n "checking metadata... " >&6; } | |
2423 | ||
2424 | META="$srcdir/META" | |
2425 | _zfs_ac_meta_type="none" | |
2426 | if test -f "$META"; then | |
2427 | _zfs_ac_meta_type="META file" | |
2428 | _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null) | |
2429 | ||
2430 | ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`; | |
2431 | if test -n "$ZFS_META_NAME"; then | |
2432 | ||
2433 | cat >>confdefs.h <<_ACEOF | |
2434 | #define ZFS_META_NAME "$ZFS_META_NAME" | |
2435 | _ACEOF | |
2436 | ||
2437 | ||
2438 | fi | |
2439 | ||
2440 | ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`; | |
2441 | if test -n "$ZFS_META_VERSION"; then | |
2442 | ||
2443 | cat >>confdefs.h <<_ACEOF | |
2444 | #define ZFS_META_VERSION "$ZFS_META_VERSION" | |
2445 | _ACEOF | |
2446 | ||
2447 | ||
2448 | fi | |
2449 | ||
2450 | if test -n "${_dpkg_parsechangelog}"; then | |
2451 | _dpkg_version=$(echo "${_dpkg_parsechangelog}" \ | |
2452 | | $AWK '$1 == "Version:" { print $2; }' \ | |
2453 | | cut -d- -f1) | |
2454 | if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then | |
2455 | as_fn_error $? " | |
2456 | *** Version $ZFS_META_VERSION in the META file is different than | |
2457 | *** version $_dpkg_version in the debian/changelog file. DKMS and DEB | |
2458 | *** packaging require that these files have the same version. | |
2459 | " "$LINENO" 5 | |
2460 | fi | |
2461 | fi | |
2462 | ||
2463 | ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`; | |
2464 | ||
2465 | if test -n "${_dpkg_parsechangelog}"; then | |
2466 | _dpkg_release=$(echo "${_dpkg_parsechangelog}" \ | |
2467 | | $AWK '$1 == "Version:" { print $2; }' \ | |
2468 | | cut -d- -f2-) | |
2469 | if test -n "${_dpkg_release}"; then | |
2470 | ZFS_META_RELEASE=${_dpkg_release} | |
2471 | _zfs_ac_meta_type="dpkg-parsechangelog" | |
2472 | fi | |
2473 | elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then | |
2474 | _match="${ZFS_META_NAME}-${ZFS_META_VERSION}" | |
2475 | _alias=$(git describe --match=${_match} 2>/dev/null) | |
2476 | _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g') | |
2477 | if test -n "${_release}"; then | |
2478 | ZFS_META_RELEASE=${_release} | |
2479 | _zfs_ac_meta_type="git describe" | |
2480 | fi | |
2481 | fi | |
2482 | ||
2483 | if test -n "$ZFS_META_RELEASE"; then | |
2484 | ||
2485 | cat >>confdefs.h <<_ACEOF | |
2486 | #define ZFS_META_RELEASE "$ZFS_META_RELEASE" | |
2487 | _ACEOF | |
2488 | ||
2489 | ||
2490 | ||
2491 | RELEASE="$ZFS_META_RELEASE" | |
2492 | ||
2493 | fi | |
2494 | ||
2495 | ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`; | |
2496 | if test -n "$ZFS_META_LICENSE"; then | |
2497 | ||
2498 | cat >>confdefs.h <<_ACEOF | |
2499 | #define ZFS_META_LICENSE "$ZFS_META_LICENSE" | |
2500 | _ACEOF | |
2501 | ||
2502 | ||
2503 | fi | |
2504 | ||
2505 | if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then | |
2506 | ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION" | |
2507 | test -n "$ZFS_META_RELEASE" && | |
2508 | ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE" | |
2509 | ||
2510 | cat >>confdefs.h <<_ACEOF | |
2511 | #define ZFS_META_ALIAS "$ZFS_META_ALIAS" | |
2512 | _ACEOF | |
2513 | ||
2514 | ||
2515 | fi | |
2516 | ||
2517 | ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`; | |
2518 | if test -n "$ZFS_META_DATA"; then | |
2519 | ||
2520 | cat >>confdefs.h <<_ACEOF | |
2521 | #define ZFS_META_DATA "$ZFS_META_DATA" | |
2522 | _ACEOF | |
2523 | ||
2524 | ||
2525 | fi | |
2526 | ||
2527 | ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`; | |
2528 | if test -n "$ZFS_META_AUTHOR"; then | |
2529 | ||
2530 | cat >>confdefs.h <<_ACEOF | |
2531 | #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR" | |
2532 | _ACEOF | |
2533 | ||
2534 | ||
2535 | fi | |
2536 | ||
2537 | ||
2538 | ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`; | |
2539 | ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`; | |
2540 | ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`; | |
2541 | if test -n "$ZFS_META_LT_CURRENT" \ | |
2542 | -o -n "$ZFS_META_LT_REVISION" \ | |
2543 | -o -n "$ZFS_META_LT_AGE"; then | |
2544 | test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0" | |
2545 | test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0" | |
2546 | test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0" | |
2547 | ||
2548 | cat >>confdefs.h <<_ACEOF | |
2549 | #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT" | |
2550 | _ACEOF | |
2551 | ||
2552 | ||
2553 | cat >>confdefs.h <<_ACEOF | |
2554 | #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION" | |
2555 | _ACEOF | |
2556 | ||
2557 | ||
2558 | cat >>confdefs.h <<_ACEOF | |
2559 | #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE" | |
2560 | _ACEOF | |
2561 | ||
2562 | ||
2563 | ||
2564 | ||
2565 | fi | |
2566 | fi | |
2567 | ||
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5 | |
2569 | $as_echo "$_zfs_ac_meta_type" >&6; } | |
2570 | ||
2571 | ||
2572 | ac_aux_dir= | |
2573 | for ac_dir in config "$srcdir"/config; do | |
2574 | if test -f "$ac_dir/install-sh"; then | |
2575 | ac_aux_dir=$ac_dir | |
2576 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2577 | break | |
2578 | elif test -f "$ac_dir/install.sh"; then | |
2579 | ac_aux_dir=$ac_dir | |
2580 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2581 | break | |
2582 | elif test -f "$ac_dir/shtool"; then | |
2583 | ac_aux_dir=$ac_dir | |
2584 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2585 | break | |
2586 | fi | |
2587 | done | |
2588 | if test -z "$ac_aux_dir"; then | |
2589 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 | |
2590 | fi | |
2591 | ||
2592 | # These three variables are undocumented and unsupported, | |
2593 | # and are intended to be withdrawn in a future Autoconf release. | |
2594 | # They can cause serious problems if a builder's source tree is in a directory | |
2595 | # whose full name contains unusual characters. | |
2596 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2597 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2598 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2599 | ||
2600 | ||
2601 | ||
2602 | # Make sure we can run config.sub. | |
2603 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2604 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2605 | ||
2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2607 | $as_echo_n "checking build system type... " >&6; } | |
2608 | if ${ac_cv_build+:} false; then : | |
2609 | $as_echo_n "(cached) " >&6 | |
2610 | else | |
2611 | ac_build_alias=$build_alias | |
2612 | test "x$ac_build_alias" = x && | |
2613 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2614 | test "x$ac_build_alias" = x && | |
2615 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2616 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2617 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2618 | ||
2619 | fi | |
2620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2621 | $as_echo "$ac_cv_build" >&6; } | |
2622 | case $ac_cv_build in | |
2623 | *-*-*) ;; | |
2624 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2625 | esac | |
2626 | build=$ac_cv_build | |
2627 | ac_save_IFS=$IFS; IFS='-' | |
2628 | set x $ac_cv_build | |
2629 | shift | |
2630 | build_cpu=$1 | |
2631 | build_vendor=$2 | |
2632 | shift; shift | |
2633 | # Remember, the first character of IFS is used to create $*, | |
2634 | # except with old shells: | |
2635 | build_os=$* | |
2636 | IFS=$ac_save_IFS | |
2637 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2638 | ||
2639 | ||
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2641 | $as_echo_n "checking host system type... " >&6; } | |
2642 | if ${ac_cv_host+:} false; then : | |
2643 | $as_echo_n "(cached) " >&6 | |
2644 | else | |
2645 | if test "x$host_alias" = x; then | |
2646 | ac_cv_host=$ac_cv_build | |
2647 | else | |
2648 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2649 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2650 | fi | |
2651 | ||
2652 | fi | |
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2654 | $as_echo "$ac_cv_host" >&6; } | |
2655 | case $ac_cv_host in | |
2656 | *-*-*) ;; | |
2657 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2658 | esac | |
2659 | host=$ac_cv_host | |
2660 | ac_save_IFS=$IFS; IFS='-' | |
2661 | set x $ac_cv_host | |
2662 | shift | |
2663 | host_cpu=$1 | |
2664 | host_vendor=$2 | |
2665 | shift; shift | |
2666 | # Remember, the first character of IFS is used to create $*, | |
2667 | # except with old shells: | |
2668 | host_os=$* | |
2669 | IFS=$ac_save_IFS | |
2670 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2671 | ||
2672 | ||
2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2674 | $as_echo_n "checking target system type... " >&6; } | |
2675 | if ${ac_cv_target+:} false; then : | |
2676 | $as_echo_n "(cached) " >&6 | |
2677 | else | |
2678 | if test "x$target_alias" = x; then | |
2679 | ac_cv_target=$ac_cv_host | |
2680 | else | |
2681 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2682 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2683 | fi | |
2684 | ||
2685 | fi | |
2686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2687 | $as_echo "$ac_cv_target" >&6; } | |
2688 | case $ac_cv_target in | |
2689 | *-*-*) ;; | |
2690 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2691 | esac | |
2692 | target=$ac_cv_target | |
2693 | ac_save_IFS=$IFS; IFS='-' | |
2694 | set x $ac_cv_target | |
2695 | shift | |
2696 | target_cpu=$1 | |
2697 | target_vendor=$2 | |
2698 | shift; shift | |
2699 | # Remember, the first character of IFS is used to create $*, | |
2700 | # except with old shells: | |
2701 | target_os=$* | |
2702 | IFS=$ac_save_IFS | |
2703 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2704 | ||
2705 | ||
2706 | # The aliases save the names the user supplied, while $host etc. | |
2707 | # will get canonicalized. | |
2708 | test -n "$target_alias" && | |
2709 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2710 | NONENONEs,x,x, && | |
2711 | program_prefix=${target_alias}- | |
2712 | ||
2713 | ||
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2715 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2716 | # Check whether --enable-maintainer-mode was given. | |
2717 | if test "${enable_maintainer_mode+set}" = set; then : | |
2718 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2719 | else | |
2720 | USE_MAINTAINER_MODE=no | |
2721 | fi | |
2722 | ||
2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
2724 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2725 | if test $USE_MAINTAINER_MODE = yes; then | |
2726 | MAINTAINER_MODE_TRUE= | |
2727 | MAINTAINER_MODE_FALSE='#' | |
2728 | else | |
2729 | MAINTAINER_MODE_TRUE='#' | |
2730 | MAINTAINER_MODE_FALSE= | |
2731 | fi | |
2732 | ||
2733 | MAINT=$MAINTAINER_MODE_TRUE | |
2734 | ||
2735 | ||
2736 | # Check whether --enable-silent-rules was given. | |
2737 | if test "${enable_silent_rules+set}" = set; then : | |
2738 | enableval=$enable_silent_rules; | |
2739 | fi | |
2740 | ||
2741 | case $enable_silent_rules in # ((( | |
2742 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2743 | no) AM_DEFAULT_VERBOSITY=1;; | |
2744 | *) AM_DEFAULT_VERBOSITY=0;; | |
2745 | esac | |
2746 | am_make=${MAKE-make} | |
2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2748 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2749 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2750 | $as_echo_n "(cached) " >&6 | |
2751 | else | |
2752 | if $as_echo 'TRUE=$(BAR$(V)) | |
2753 | BAR0=false | |
2754 | BAR1=true | |
2755 | V=1 | |
2756 | am__doit: | |
2757 | @$(TRUE) | |
2758 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2759 | am_cv_make_support_nested_variables=yes | |
2760 | else | |
2761 | am_cv_make_support_nested_variables=no | |
2762 | fi | |
2763 | fi | |
2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2765 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2766 | if test $am_cv_make_support_nested_variables = yes; then | |
2767 | AM_V='$(V)' | |
2768 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2769 | else | |
2770 | AM_V=$AM_DEFAULT_VERBOSITY | |
2771 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2772 | fi | |
2773 | AM_BACKSLASH='\' | |
2774 | ||
2775 | am__api_version='1.15' | |
2776 | ||
2777 | # Find a good install program. We prefer a C program (faster), | |
2778 | # so one script is as good as another. But avoid the broken or | |
2779 | # incompatible versions: | |
2780 | # SysV /etc/install, /usr/sbin/install | |
2781 | # SunOS /usr/etc/install | |
2782 | # IRIX /sbin/install | |
2783 | # AIX /bin/install | |
2784 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2785 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2786 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2787 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2788 | # OS/2's system install, which has a completely different semantic | |
2789 | # ./install, which can be erroneously created by make from ./install.sh. | |
2790 | # Reject install programs that cannot install multiple files. | |
2791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2792 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2793 | if test -z "$INSTALL"; then | |
2794 | if ${ac_cv_path_install+:} false; then : | |
2795 | $as_echo_n "(cached) " >&6 | |
2796 | else | |
2797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2798 | for as_dir in $PATH | |
2799 | do | |
2800 | IFS=$as_save_IFS | |
2801 | test -z "$as_dir" && as_dir=. | |
2802 | # Account for people who put trailing slashes in PATH elements. | |
2803 | case $as_dir/ in #(( | |
2804 | ./ | .// | /[cC]/* | \ | |
2805 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2806 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2807 | /usr/ucb/* ) ;; | |
2808 | *) | |
2809 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2810 | # Don't use installbsd from OSF since it installs stuff as root | |
2811 | # by default. | |
2812 | for ac_prog in ginstall scoinst install; do | |
2813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2814 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2815 | if test $ac_prog = install && | |
2816 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2817 | # AIX install. It has an incompatible calling convention. | |
2818 | : | |
2819 | elif test $ac_prog = install && | |
2820 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2821 | # program-specific install script used by HP pwplus--don't use. | |
2822 | : | |
2823 | else | |
2824 | rm -rf conftest.one conftest.two conftest.dir | |
2825 | echo one > conftest.one | |
2826 | echo two > conftest.two | |
2827 | mkdir conftest.dir | |
2828 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2829 | test -s conftest.one && test -s conftest.two && | |
2830 | test -s conftest.dir/conftest.one && | |
2831 | test -s conftest.dir/conftest.two | |
2832 | then | |
2833 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2834 | break 3 | |
2835 | fi | |
2836 | fi | |
2837 | fi | |
2838 | done | |
2839 | done | |
2840 | ;; | |
2841 | esac | |
2842 | ||
2843 | done | |
2844 | IFS=$as_save_IFS | |
2845 | ||
2846 | rm -rf conftest.one conftest.two conftest.dir | |
2847 | ||
2848 | fi | |
2849 | if test "${ac_cv_path_install+set}" = set; then | |
2850 | INSTALL=$ac_cv_path_install | |
2851 | else | |
2852 | # As a last resort, use the slow shell script. Don't cache a | |
2853 | # value for INSTALL within a source directory, because that will | |
2854 | # break other packages using the cache if that directory is | |
2855 | # removed, or if the value is a relative name. | |
2856 | INSTALL=$ac_install_sh | |
2857 | fi | |
2858 | fi | |
2859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2860 | $as_echo "$INSTALL" >&6; } | |
2861 | ||
2862 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2863 | # It thinks the first close brace ends the variable substitution. | |
2864 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2865 | ||
2866 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2867 | ||
2868 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2869 | ||
2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2871 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2872 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2873 | # name. Accept space and tab only in the latter. | |
2874 | am_lf=' | |
2875 | ' | |
2876 | case `pwd` in | |
2877 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2878 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2879 | esac | |
2880 | case $srcdir in | |
2881 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2882 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2883 | esac | |
2884 | ||
2885 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2886 | # arguments. Must try -L first in case configure is actually a | |
2887 | # symlink; some systems play weird games with the mod time of symlinks | |
2888 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2889 | # directory). | |
2890 | if ( | |
2891 | am_has_slept=no | |
2892 | for am_try in 1 2; do | |
2893 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2894 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2895 | if test "$*" = "X"; then | |
2896 | # -L didn't work. | |
2897 | set X `ls -t "$srcdir/configure" conftest.file` | |
2898 | fi | |
2899 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2900 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2901 | ||
2902 | # If neither matched, then we have a broken ls. This can happen | |
2903 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2904 | # broken ls alias from the environment. This has actually | |
2905 | # happened. Such a system could not be considered "sane". | |
2906 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2907 | alias in your environment" "$LINENO" 5 | |
2908 | fi | |
2909 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2910 | break | |
2911 | fi | |
2912 | # Just in case. | |
2913 | sleep 1 | |
2914 | am_has_slept=yes | |
2915 | done | |
2916 | test "$2" = conftest.file | |
2917 | ) | |
2918 | then | |
2919 | # Ok. | |
2920 | : | |
2921 | else | |
2922 | as_fn_error $? "newly created file is older than distributed files! | |
2923 | Check your system clock" "$LINENO" 5 | |
2924 | fi | |
2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2926 | $as_echo "yes" >&6; } | |
2927 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2928 | # generated files are strictly newer. | |
2929 | am_sleep_pid= | |
2930 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2931 | ( sleep 1 ) & | |
2932 | am_sleep_pid=$! | |
2933 | fi | |
2934 | ||
2935 | rm -f conftest.file | |
2936 | ||
2937 | test "$program_prefix" != NONE && | |
2938 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2939 | # Use a double $ so make ignores it. | |
2940 | test "$program_suffix" != NONE && | |
2941 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2942 | # Double any \ or $. | |
2943 | # By default was `s,x,x', remove it if useless. | |
2944 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2945 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2946 | ||
2947 | # Expand $ac_aux_dir to an absolute path. | |
2948 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2949 | ||
2950 | if test x"${MISSING+set}" != xset; then | |
2951 | case $am_aux_dir in | |
2952 | *\ * | *\ *) | |
2953 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2954 | *) | |
2955 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2956 | esac | |
2957 | fi | |
2958 | # Use eval to expand $SHELL | |
2959 | if eval "$MISSING --is-lightweight"; then | |
2960 | am_missing_run="$MISSING " | |
2961 | else | |
2962 | am_missing_run= | |
2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2964 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2965 | fi | |
2966 | ||
2967 | if test x"${install_sh+set}" != xset; then | |
2968 | case $am_aux_dir in | |
2969 | *\ * | *\ *) | |
2970 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2971 | *) | |
2972 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2973 | esac | |
2974 | fi | |
2975 | ||
2976 | # Installed binaries are usually stripped using 'strip' when the user | |
2977 | # run "make install-strip". However 'strip' might not be the right | |
2978 | # tool to use in cross-compilation environments, therefore Automake | |
2979 | # will honor the 'STRIP' environment variable to overrule this program. | |
2980 | if test "$cross_compiling" != no; then | |
2981 | if test -n "$ac_tool_prefix"; then | |
2982 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2983 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2985 | $as_echo_n "checking for $ac_word... " >&6; } | |
2986 | if ${ac_cv_prog_STRIP+:} false; then : | |
2987 | $as_echo_n "(cached) " >&6 | |
2988 | else | |
2989 | if test -n "$STRIP"; then | |
2990 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2991 | else | |
2992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2993 | for as_dir in $PATH | |
2994 | do | |
2995 | IFS=$as_save_IFS | |
2996 | test -z "$as_dir" && as_dir=. | |
2997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2998 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2999 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3001 | break 2 | |
3002 | fi | |
3003 | done | |
3004 | done | |
3005 | IFS=$as_save_IFS | |
3006 | ||
3007 | fi | |
3008 | fi | |
3009 | STRIP=$ac_cv_prog_STRIP | |
3010 | if test -n "$STRIP"; then | |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3012 | $as_echo "$STRIP" >&6; } | |
3013 | else | |
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3015 | $as_echo "no" >&6; } | |
3016 | fi | |
3017 | ||
3018 | ||
3019 | fi | |
3020 | if test -z "$ac_cv_prog_STRIP"; then | |
3021 | ac_ct_STRIP=$STRIP | |
3022 | # Extract the first word of "strip", so it can be a program name with args. | |
3023 | set dummy strip; ac_word=$2 | |
3024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3025 | $as_echo_n "checking for $ac_word... " >&6; } | |
3026 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
3027 | $as_echo_n "(cached) " >&6 | |
3028 | else | |
3029 | if test -n "$ac_ct_STRIP"; then | |
3030 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3031 | else | |
3032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3033 | for as_dir in $PATH | |
3034 | do | |
3035 | IFS=$as_save_IFS | |
3036 | test -z "$as_dir" && as_dir=. | |
3037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3038 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3039 | ac_cv_prog_ac_ct_STRIP="strip" | |
3040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3041 | break 2 | |
3042 | fi | |
3043 | done | |
3044 | done | |
3045 | IFS=$as_save_IFS | |
3046 | ||
3047 | fi | |
3048 | fi | |
3049 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3050 | if test -n "$ac_ct_STRIP"; then | |
3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3052 | $as_echo "$ac_ct_STRIP" >&6; } | |
3053 | else | |
3054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3055 | $as_echo "no" >&6; } | |
3056 | fi | |
3057 | ||
3058 | if test "x$ac_ct_STRIP" = x; then | |
3059 | STRIP=":" | |
3060 | else | |
3061 | case $cross_compiling:$ac_tool_warned in | |
3062 | yes:) | |
3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3064 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3065 | ac_tool_warned=yes ;; | |
3066 | esac | |
3067 | STRIP=$ac_ct_STRIP | |
3068 | fi | |
3069 | else | |
3070 | STRIP="$ac_cv_prog_STRIP" | |
3071 | fi | |
3072 | ||
3073 | fi | |
3074 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3075 | ||
3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3077 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3078 | if test -z "$MKDIR_P"; then | |
3079 | if ${ac_cv_path_mkdir+:} false; then : | |
3080 | $as_echo_n "(cached) " >&6 | |
3081 | else | |
3082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3083 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3084 | do | |
3085 | IFS=$as_save_IFS | |
3086 | test -z "$as_dir" && as_dir=. | |
3087 | for ac_prog in mkdir gmkdir; do | |
3088 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3089 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
3090 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3091 | 'mkdir (GNU coreutils) '* | \ | |
3092 | 'mkdir (coreutils) '* | \ | |
3093 | 'mkdir (fileutils) '4.1*) | |
3094 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3095 | break 3;; | |
3096 | esac | |
3097 | done | |
3098 | done | |
3099 | done | |
3100 | IFS=$as_save_IFS | |
3101 | ||
3102 | fi | |
3103 | ||
3104 | test -d ./--version && rmdir ./--version | |
3105 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3106 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3107 | else | |
3108 | # As a last resort, use the slow shell script. Don't cache a | |
3109 | # value for MKDIR_P within a source directory, because that will | |
3110 | # break other packages using the cache if that directory is | |
3111 | # removed, or if the value is a relative name. | |
3112 | MKDIR_P="$ac_install_sh -d" | |
3113 | fi | |
3114 | fi | |
3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3116 | $as_echo "$MKDIR_P" >&6; } | |
3117 | ||
3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3119 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3120 | set x ${MAKE-make} | |
3121 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3122 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
3123 | $as_echo_n "(cached) " >&6 | |
3124 | else | |
3125 | cat >conftest.make <<\_ACEOF | |
3126 | SHELL = /bin/sh | |
3127 | all: | |
3128 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3129 | _ACEOF | |
3130 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3131 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3132 | *@@@%%%=?*=@@@%%%*) | |
3133 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3134 | *) | |
3135 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3136 | esac | |
3137 | rm -f conftest.make | |
3138 | fi | |
3139 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3141 | $as_echo "yes" >&6; } | |
3142 | SET_MAKE= | |
3143 | else | |
3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3145 | $as_echo "no" >&6; } | |
3146 | SET_MAKE="MAKE=${MAKE-make}" | |
3147 | fi | |
3148 | ||
3149 | rm -rf .tst 2>/dev/null | |
3150 | mkdir .tst 2>/dev/null | |
3151 | if test -d .tst; then | |
3152 | am__leading_dot=. | |
3153 | else | |
3154 | am__leading_dot=_ | |
3155 | fi | |
3156 | rmdir .tst 2>/dev/null | |
3157 | ||
3158 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3159 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3160 | # is not polluted with repeated "-I." | |
3161 | am__isrc=' -I$(srcdir)' | |
3162 | # test to see if srcdir already configured | |
3163 | if test -f $srcdir/config.status; then | |
3164 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3165 | fi | |
3166 | fi | |
3167 | ||
3168 | # test whether we have cygpath | |
3169 | if test -z "$CYGPATH_W"; then | |
3170 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3171 | CYGPATH_W='cygpath -w' | |
3172 | else | |
3173 | CYGPATH_W=echo | |
3174 | fi | |
3175 | fi | |
3176 | ||
3177 | ||
3178 | # Define the identity of the package. | |
3179 | PACKAGE='zfs' | |
1ec59ff7 | 3180 | VERSION='0.6.5.11' |
87d546d8 TG |
3181 | |
3182 | ||
3183 | cat >>confdefs.h <<_ACEOF | |
3184 | #define PACKAGE "$PACKAGE" | |
3185 | _ACEOF | |
3186 | ||
3187 | ||
3188 | cat >>confdefs.h <<_ACEOF | |
3189 | #define VERSION "$VERSION" | |
3190 | _ACEOF | |
3191 | ||
3192 | # Some tools Automake needs. | |
3193 | ||
3194 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3195 | ||
3196 | ||
3197 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3198 | ||
3199 | ||
3200 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3201 | ||
3202 | ||
3203 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3204 | ||
3205 | ||
3206 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3207 | ||
3208 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3209 | # dies out for good. For more background, see: | |
3210 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3211 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3212 | mkdir_p='$(MKDIR_P)' | |
3213 | ||
3214 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3215 | # system "awk" is bad on some platforms. | |
3216 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3217 | # in the wild :-( We should find a proper way to deprecate it ... | |
3218 | AMTAR='$${TAR-tar}' | |
3219 | ||
3220 | ||
3221 | # We'll loop over all known methods to create a tar archive until one works. | |
3222 | _am_tools='gnutar pax cpio none' | |
3223 | ||
3224 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3225 | ||
3226 | ||
3227 | ||
3228 | ||
3229 | ||
3230 | ||
3231 | # POSIX will say in a future version that running "rm -f" with no argument | |
3232 | # is OK; and we want to be able to make that assumption in our Makefile | |
3233 | # recipes. So use an aggressive probe to check that the usage we want is | |
3234 | # actually supported "in the wild" to an acceptable degree. | |
3235 | # See automake bug#10828. | |
3236 | # To make any issue more visible, cause the running configure to be aborted | |
3237 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3238 | # user can still override this though. | |
3239 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3240 | cat >&2 <<'END' | |
3241 | Oops! | |
3242 | ||
3243 | Your 'rm' program seems unable to run without file operands specified | |
3244 | on the command line, even when the '-f' option is present. This is contrary | |
3245 | to the behaviour of most rm programs out there, and not conforming with | |
3246 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3247 | ||
3248 | Please tell bug-automake@gnu.org about your system, including the value | |
3249 | of your $PATH and any error possibly output before this message. This | |
3250 | can help us improve future automake versions. | |
3251 | ||
3252 | END | |
3253 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3254 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3255 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3256 | echo >&2 | |
3257 | else | |
3258 | cat >&2 <<'END' | |
3259 | Aborting the configuration process, to ensure you take notice of the issue. | |
3260 | ||
3261 | You can download and install GNU coreutils to get an 'rm' implementation | |
3262 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3263 | ||
3264 | If you want to complete the configuration process using your problematic | |
3265 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3266 | to "yes", and re-run configure. | |
3267 | ||
3268 | END | |
3269 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3270 | fi | |
3271 | fi | |
3272 | ||
3273 | ac_config_headers="$ac_config_headers zfs_config.h" | |
3274 | ||
3275 | ||
3276 | ||
3277 | ac_ext=c | |
3278 | ac_cpp='$CPP $CPPFLAGS' | |
3279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3282 | if test -n "$ac_tool_prefix"; then | |
3283 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3284 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3286 | $as_echo_n "checking for $ac_word... " >&6; } | |
3287 | if ${ac_cv_prog_CC+:} false; then : | |
3288 | $as_echo_n "(cached) " >&6 | |
3289 | else | |
3290 | if test -n "$CC"; then | |
3291 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3292 | else | |
3293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3294 | for as_dir in $PATH | |
3295 | do | |
3296 | IFS=$as_save_IFS | |
3297 | test -z "$as_dir" && as_dir=. | |
3298 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3299 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3300 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3302 | break 2 | |
3303 | fi | |
3304 | done | |
3305 | done | |
3306 | IFS=$as_save_IFS | |
3307 | ||
3308 | fi | |
3309 | fi | |
3310 | CC=$ac_cv_prog_CC | |
3311 | if test -n "$CC"; then | |
3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3313 | $as_echo "$CC" >&6; } | |
3314 | else | |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3316 | $as_echo "no" >&6; } | |
3317 | fi | |
3318 | ||
3319 | ||
3320 | fi | |
3321 | if test -z "$ac_cv_prog_CC"; then | |
3322 | ac_ct_CC=$CC | |
3323 | # Extract the first word of "gcc", so it can be a program name with args. | |
3324 | set dummy gcc; ac_word=$2 | |
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3326 | $as_echo_n "checking for $ac_word... " >&6; } | |
3327 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3328 | $as_echo_n "(cached) " >&6 | |
3329 | else | |
3330 | if test -n "$ac_ct_CC"; then | |
3331 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3332 | else | |
3333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3334 | for as_dir in $PATH | |
3335 | do | |
3336 | IFS=$as_save_IFS | |
3337 | test -z "$as_dir" && as_dir=. | |
3338 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3339 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3340 | ac_cv_prog_ac_ct_CC="gcc" | |
3341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3342 | break 2 | |
3343 | fi | |
3344 | done | |
3345 | done | |
3346 | IFS=$as_save_IFS | |
3347 | ||
3348 | fi | |
3349 | fi | |
3350 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3351 | if test -n "$ac_ct_CC"; then | |
3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3353 | $as_echo "$ac_ct_CC" >&6; } | |
3354 | else | |
3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3356 | $as_echo "no" >&6; } | |
3357 | fi | |
3358 | ||
3359 | if test "x$ac_ct_CC" = x; then | |
3360 | CC="" | |
3361 | else | |
3362 | case $cross_compiling:$ac_tool_warned in | |
3363 | yes:) | |
3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3365 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3366 | ac_tool_warned=yes ;; | |
3367 | esac | |
3368 | CC=$ac_ct_CC | |
3369 | fi | |
3370 | else | |
3371 | CC="$ac_cv_prog_CC" | |
3372 | fi | |
3373 | ||
3374 | if test -z "$CC"; then | |
3375 | if test -n "$ac_tool_prefix"; then | |
3376 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3377 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3379 | $as_echo_n "checking for $ac_word... " >&6; } | |
3380 | if ${ac_cv_prog_CC+:} false; then : | |
3381 | $as_echo_n "(cached) " >&6 | |
3382 | else | |
3383 | if test -n "$CC"; then | |
3384 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3385 | else | |
3386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3387 | for as_dir in $PATH | |
3388 | do | |
3389 | IFS=$as_save_IFS | |
3390 | test -z "$as_dir" && as_dir=. | |
3391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3392 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3393 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3395 | break 2 | |
3396 | fi | |
3397 | done | |
3398 | done | |
3399 | IFS=$as_save_IFS | |
3400 | ||
3401 | fi | |
3402 | fi | |
3403 | CC=$ac_cv_prog_CC | |
3404 | if test -n "$CC"; then | |
3405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3406 | $as_echo "$CC" >&6; } | |
3407 | else | |
3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3409 | $as_echo "no" >&6; } | |
3410 | fi | |
3411 | ||
3412 | ||
3413 | fi | |
3414 | fi | |
3415 | if test -z "$CC"; then | |
3416 | # Extract the first word of "cc", so it can be a program name with args. | |
3417 | set dummy cc; ac_word=$2 | |
3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3419 | $as_echo_n "checking for $ac_word... " >&6; } | |
3420 | if ${ac_cv_prog_CC+:} false; then : | |
3421 | $as_echo_n "(cached) " >&6 | |
3422 | else | |
3423 | if test -n "$CC"; then | |
3424 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3425 | else | |
3426 | ac_prog_rejected=no | |
3427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3428 | for as_dir in $PATH | |
3429 | do | |
3430 | IFS=$as_save_IFS | |
3431 | test -z "$as_dir" && as_dir=. | |
3432 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3433 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3434 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3435 | ac_prog_rejected=yes | |
3436 | continue | |
3437 | fi | |
3438 | ac_cv_prog_CC="cc" | |
3439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3440 | break 2 | |
3441 | fi | |
3442 | done | |
3443 | done | |
3444 | IFS=$as_save_IFS | |
3445 | ||
3446 | if test $ac_prog_rejected = yes; then | |
3447 | # We found a bogon in the path, so make sure we never use it. | |
3448 | set dummy $ac_cv_prog_CC | |
3449 | shift | |
3450 | if test $# != 0; then | |
3451 | # We chose a different compiler from the bogus one. | |
3452 | # However, it has the same basename, so the bogon will be chosen | |
3453 | # first if we set CC to just the basename; use the full file name. | |
3454 | shift | |
3455 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3456 | fi | |
3457 | fi | |
3458 | fi | |
3459 | fi | |
3460 | CC=$ac_cv_prog_CC | |
3461 | if test -n "$CC"; then | |
3462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3463 | $as_echo "$CC" >&6; } | |
3464 | else | |
3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3466 | $as_echo "no" >&6; } | |
3467 | fi | |
3468 | ||
3469 | ||
3470 | fi | |
3471 | if test -z "$CC"; then | |
3472 | if test -n "$ac_tool_prefix"; then | |
3473 | for ac_prog in cl.exe | |
3474 | do | |
3475 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3476 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3478 | $as_echo_n "checking for $ac_word... " >&6; } | |
3479 | if ${ac_cv_prog_CC+:} false; then : | |
3480 | $as_echo_n "(cached) " >&6 | |
3481 | else | |
3482 | if test -n "$CC"; then | |
3483 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3484 | else | |
3485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3486 | for as_dir in $PATH | |
3487 | do | |
3488 | IFS=$as_save_IFS | |
3489 | test -z "$as_dir" && as_dir=. | |
3490 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3491 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3492 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3494 | break 2 | |
3495 | fi | |
3496 | done | |
3497 | done | |
3498 | IFS=$as_save_IFS | |
3499 | ||
3500 | fi | |
3501 | fi | |
3502 | CC=$ac_cv_prog_CC | |
3503 | if test -n "$CC"; then | |
3504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3505 | $as_echo "$CC" >&6; } | |
3506 | else | |
3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3508 | $as_echo "no" >&6; } | |
3509 | fi | |
3510 | ||
3511 | ||
3512 | test -n "$CC" && break | |
3513 | done | |
3514 | fi | |
3515 | if test -z "$CC"; then | |
3516 | ac_ct_CC=$CC | |
3517 | for ac_prog in cl.exe | |
3518 | do | |
3519 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3520 | set dummy $ac_prog; ac_word=$2 | |
3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3522 | $as_echo_n "checking for $ac_word... " >&6; } | |
3523 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3524 | $as_echo_n "(cached) " >&6 | |
3525 | else | |
3526 | if test -n "$ac_ct_CC"; then | |
3527 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3528 | else | |
3529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3530 | for as_dir in $PATH | |
3531 | do | |
3532 | IFS=$as_save_IFS | |
3533 | test -z "$as_dir" && as_dir=. | |
3534 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3535 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3536 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3537 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3538 | break 2 | |
3539 | fi | |
3540 | done | |
3541 | done | |
3542 | IFS=$as_save_IFS | |
3543 | ||
3544 | fi | |
3545 | fi | |
3546 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3547 | if test -n "$ac_ct_CC"; then | |
3548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3549 | $as_echo "$ac_ct_CC" >&6; } | |
3550 | else | |
3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3552 | $as_echo "no" >&6; } | |
3553 | fi | |
3554 | ||
3555 | ||
3556 | test -n "$ac_ct_CC" && break | |
3557 | done | |
3558 | ||
3559 | if test "x$ac_ct_CC" = x; then | |
3560 | CC="" | |
3561 | else | |
3562 | case $cross_compiling:$ac_tool_warned in | |
3563 | yes:) | |
3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3565 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3566 | ac_tool_warned=yes ;; | |
3567 | esac | |
3568 | CC=$ac_ct_CC | |
3569 | fi | |
3570 | fi | |
3571 | ||
3572 | fi | |
3573 | ||
3574 | ||
3575 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3576 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3577 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3578 | See \`config.log' for more details" "$LINENO" 5; } | |
3579 | ||
3580 | # Provide some information about the compiler. | |
3581 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3582 | set X $ac_compile | |
3583 | ac_compiler=$2 | |
3584 | for ac_option in --version -v -V -qversion; do | |
3585 | { { ac_try="$ac_compiler $ac_option >&5" | |
3586 | case "(($ac_try" in | |
3587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3588 | *) ac_try_echo=$ac_try;; | |
3589 | esac | |
3590 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3591 | $as_echo "$ac_try_echo"; } >&5 | |
3592 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3593 | ac_status=$? | |
3594 | if test -s conftest.err; then | |
3595 | sed '10a\ | |
3596 | ... rest of stderr output deleted ... | |
3597 | 10q' conftest.err >conftest.er1 | |
3598 | cat conftest.er1 >&5 | |
3599 | fi | |
3600 | rm -f conftest.er1 conftest.err | |
3601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3602 | test $ac_status = 0; } | |
3603 | done | |
3604 | ||
3605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3606 | /* end confdefs.h. */ | |
3607 | ||
3608 | int | |
3609 | main () | |
3610 | { | |
3611 | ||
3612 | ; | |
3613 | return 0; | |
3614 | } | |
3615 | _ACEOF | |
3616 | ac_clean_files_save=$ac_clean_files | |
3617 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3618 | # Try to create an executable without -o first, disregard a.out. | |
3619 | # It will help us diagnose broken compilers, and finding out an intuition | |
3620 | # of exeext. | |
3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3622 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3623 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3624 | ||
3625 | # The possible output files: | |
3626 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3627 | ||
3628 | ac_rmfiles= | |
3629 | for ac_file in $ac_files | |
3630 | do | |
3631 | case $ac_file in | |
3632 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3633 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3634 | esac | |
3635 | done | |
3636 | rm -f $ac_rmfiles | |
3637 | ||
3638 | if { { ac_try="$ac_link_default" | |
3639 | case "(($ac_try" in | |
3640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3641 | *) ac_try_echo=$ac_try;; | |
3642 | esac | |
3643 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3644 | $as_echo "$ac_try_echo"; } >&5 | |
3645 | (eval "$ac_link_default") 2>&5 | |
3646 | ac_status=$? | |
3647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3648 | test $ac_status = 0; }; then : | |
3649 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3650 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3651 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3652 | # so that the user can short-circuit this test for compilers unknown to | |
3653 | # Autoconf. | |
3654 | for ac_file in $ac_files '' | |
3655 | do | |
3656 | test -f "$ac_file" || continue | |
3657 | case $ac_file in | |
3658 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3659 | ;; | |
3660 | [ab].out ) | |
3661 | # We found the default executable, but exeext='' is most | |
3662 | # certainly right. | |
3663 | break;; | |
3664 | *.* ) | |
3665 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3666 | then :; else | |
3667 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3668 | fi | |
3669 | # We set ac_cv_exeext here because the later test for it is not | |
3670 | # safe: cross compilers may not add the suffix if given an `-o' | |
3671 | # argument, so we may need to know it at that point already. | |
3672 | # Even if this section looks crufty: it has the advantage of | |
3673 | # actually working. | |
3674 | break;; | |
3675 | * ) | |
3676 | break;; | |
3677 | esac | |
3678 | done | |
3679 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3680 | ||
3681 | else | |
3682 | ac_file='' | |
3683 | fi | |
3684 | if test -z "$ac_file"; then : | |
3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3686 | $as_echo "no" >&6; } | |
3687 | $as_echo "$as_me: failed program was:" >&5 | |
3688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3689 | ||
3690 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3691 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3692 | as_fn_error 77 "C compiler cannot create executables | |
3693 | See \`config.log' for more details" "$LINENO" 5; } | |
3694 | else | |
3695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3696 | $as_echo "yes" >&6; } | |
3697 | fi | |
3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3699 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3701 | $as_echo "$ac_file" >&6; } | |
3702 | ac_exeext=$ac_cv_exeext | |
3703 | ||
3704 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3705 | ac_clean_files=$ac_clean_files_save | |
3706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3707 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3708 | if { { ac_try="$ac_link" | |
3709 | case "(($ac_try" in | |
3710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3711 | *) ac_try_echo=$ac_try;; | |
3712 | esac | |
3713 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3714 | $as_echo "$ac_try_echo"; } >&5 | |
3715 | (eval "$ac_link") 2>&5 | |
3716 | ac_status=$? | |
3717 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3718 | test $ac_status = 0; }; then : | |
3719 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3720 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3721 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3722 | # `rm'. | |
3723 | for ac_file in conftest.exe conftest conftest.*; do | |
3724 | test -f "$ac_file" || continue | |
3725 | case $ac_file in | |
3726 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3727 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3728 | break;; | |
3729 | * ) break;; | |
3730 | esac | |
3731 | done | |
3732 | else | |
3733 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3734 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3735 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3736 | See \`config.log' for more details" "$LINENO" 5; } | |
3737 | fi | |
3738 | rm -f conftest conftest$ac_cv_exeext | |
3739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3740 | $as_echo "$ac_cv_exeext" >&6; } | |
3741 | ||
3742 | rm -f conftest.$ac_ext | |
3743 | EXEEXT=$ac_cv_exeext | |
3744 | ac_exeext=$EXEEXT | |
3745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3746 | /* end confdefs.h. */ | |
3747 | #include <stdio.h> | |
3748 | int | |
3749 | main () | |
3750 | { | |
3751 | FILE *f = fopen ("conftest.out", "w"); | |
3752 | return ferror (f) || fclose (f) != 0; | |
3753 | ||
3754 | ; | |
3755 | return 0; | |
3756 | } | |
3757 | _ACEOF | |
3758 | ac_clean_files="$ac_clean_files conftest.out" | |
3759 | # Check that the compiler produces executables we can run. If not, either | |
3760 | # the compiler is broken, or we cross compile. | |
3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3762 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3763 | if test "$cross_compiling" != yes; then | |
3764 | { { ac_try="$ac_link" | |
3765 | case "(($ac_try" in | |
3766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3767 | *) ac_try_echo=$ac_try;; | |
3768 | esac | |
3769 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3770 | $as_echo "$ac_try_echo"; } >&5 | |
3771 | (eval "$ac_link") 2>&5 | |
3772 | ac_status=$? | |
3773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3774 | test $ac_status = 0; } | |
3775 | if { ac_try='./conftest$ac_cv_exeext' | |
3776 | { { case "(($ac_try" in | |
3777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3778 | *) ac_try_echo=$ac_try;; | |
3779 | esac | |
3780 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3781 | $as_echo "$ac_try_echo"; } >&5 | |
3782 | (eval "$ac_try") 2>&5 | |
3783 | ac_status=$? | |
3784 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3785 | test $ac_status = 0; }; }; then | |
3786 | cross_compiling=no | |
3787 | else | |
3788 | if test "$cross_compiling" = maybe; then | |
3789 | cross_compiling=yes | |
3790 | else | |
3791 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3792 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3793 | as_fn_error $? "cannot run C compiled programs. | |
3794 | If you meant to cross compile, use \`--host'. | |
3795 | See \`config.log' for more details" "$LINENO" 5; } | |
3796 | fi | |
3797 | fi | |
3798 | fi | |
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3800 | $as_echo "$cross_compiling" >&6; } | |
3801 | ||
3802 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3803 | ac_clean_files=$ac_clean_files_save | |
3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3805 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3806 | if ${ac_cv_objext+:} false; then : | |
3807 | $as_echo_n "(cached) " >&6 | |
3808 | else | |
3809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3810 | /* end confdefs.h. */ | |
3811 | ||
3812 | int | |
3813 | main () | |
3814 | { | |
3815 | ||
3816 | ; | |
3817 | return 0; | |
3818 | } | |
3819 | _ACEOF | |
3820 | rm -f conftest.o conftest.obj | |
3821 | if { { ac_try="$ac_compile" | |
3822 | case "(($ac_try" in | |
3823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3824 | *) ac_try_echo=$ac_try;; | |
3825 | esac | |
3826 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3827 | $as_echo "$ac_try_echo"; } >&5 | |
3828 | (eval "$ac_compile") 2>&5 | |
3829 | ac_status=$? | |
3830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3831 | test $ac_status = 0; }; then : | |
3832 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3833 | test -f "$ac_file" || continue; | |
3834 | case $ac_file in | |
3835 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3836 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3837 | break;; | |
3838 | esac | |
3839 | done | |
3840 | else | |
3841 | $as_echo "$as_me: failed program was:" >&5 | |
3842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3843 | ||
3844 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3845 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3846 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3847 | See \`config.log' for more details" "$LINENO" 5; } | |
3848 | fi | |
3849 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3850 | fi | |
3851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3852 | $as_echo "$ac_cv_objext" >&6; } | |
3853 | OBJEXT=$ac_cv_objext | |
3854 | ac_objext=$OBJEXT | |
3855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3856 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3857 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3858 | $as_echo_n "(cached) " >&6 | |
3859 | else | |
3860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3861 | /* end confdefs.h. */ | |
3862 | ||
3863 | int | |
3864 | main () | |
3865 | { | |
3866 | #ifndef __GNUC__ | |
3867 | choke me | |
3868 | #endif | |
3869 | ||
3870 | ; | |
3871 | return 0; | |
3872 | } | |
3873 | _ACEOF | |
3874 | if ac_fn_c_try_compile "$LINENO"; then : | |
3875 | ac_compiler_gnu=yes | |
3876 | else | |
3877 | ac_compiler_gnu=no | |
3878 | fi | |
3879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3880 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3881 | ||
3882 | fi | |
3883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3884 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3885 | if test $ac_compiler_gnu = yes; then | |
3886 | GCC=yes | |
3887 | else | |
3888 | GCC= | |
3889 | fi | |
3890 | ac_test_CFLAGS=${CFLAGS+set} | |
3891 | ac_save_CFLAGS=$CFLAGS | |
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3893 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3894 | if ${ac_cv_prog_cc_g+:} false; then : | |
3895 | $as_echo_n "(cached) " >&6 | |
3896 | else | |
3897 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3898 | ac_c_werror_flag=yes | |
3899 | ac_cv_prog_cc_g=no | |
3900 | CFLAGS="-g" | |
3901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3902 | /* end confdefs.h. */ | |
3903 | ||
3904 | int | |
3905 | main () | |
3906 | { | |
3907 | ||
3908 | ; | |
3909 | return 0; | |
3910 | } | |
3911 | _ACEOF | |
3912 | if ac_fn_c_try_compile "$LINENO"; then : | |
3913 | ac_cv_prog_cc_g=yes | |
3914 | else | |
3915 | CFLAGS="" | |
3916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3917 | /* end confdefs.h. */ | |
3918 | ||
3919 | int | |
3920 | main () | |
3921 | { | |
3922 | ||
3923 | ; | |
3924 | return 0; | |
3925 | } | |
3926 | _ACEOF | |
3927 | if ac_fn_c_try_compile "$LINENO"; then : | |
3928 | ||
3929 | else | |
3930 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3931 | CFLAGS="-g" | |
3932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3933 | /* end confdefs.h. */ | |
3934 | ||
3935 | int | |
3936 | main () | |
3937 | { | |
3938 | ||
3939 | ; | |
3940 | return 0; | |
3941 | } | |
3942 | _ACEOF | |
3943 | if ac_fn_c_try_compile "$LINENO"; then : | |
3944 | ac_cv_prog_cc_g=yes | |
3945 | fi | |
3946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3947 | fi | |
3948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3949 | fi | |
3950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3951 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3952 | fi | |
3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3954 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3955 | if test "$ac_test_CFLAGS" = set; then | |
3956 | CFLAGS=$ac_save_CFLAGS | |
3957 | elif test $ac_cv_prog_cc_g = yes; then | |
3958 | if test "$GCC" = yes; then | |
3959 | CFLAGS="-g -O2" | |
3960 | else | |
3961 | CFLAGS="-g" | |
3962 | fi | |
3963 | else | |
3964 | if test "$GCC" = yes; then | |
3965 | CFLAGS="-O2" | |
3966 | else | |
3967 | CFLAGS= | |
3968 | fi | |
3969 | fi | |
3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3971 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3972 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3973 | $as_echo_n "(cached) " >&6 | |
3974 | else | |
3975 | ac_cv_prog_cc_c89=no | |
3976 | ac_save_CC=$CC | |
3977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3978 | /* end confdefs.h. */ | |
3979 | #include <stdarg.h> | |
3980 | #include <stdio.h> | |
3981 | struct stat; | |
3982 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3983 | struct buf { int x; }; | |
3984 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3985 | static char *e (p, i) | |
3986 | char **p; | |
3987 | int i; | |
3988 | { | |
3989 | return p[i]; | |
3990 | } | |
3991 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3992 | { | |
3993 | char *s; | |
3994 | va_list v; | |
3995 | va_start (v,p); | |
3996 | s = g (p, va_arg (v,int)); | |
3997 | va_end (v); | |
3998 | return s; | |
3999 | } | |
4000 | ||
4001 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4002 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4003 | These don't provoke an error unfortunately, instead are silently treated | |
4004 | as 'x'. The following induces an error, until -std is added to get | |
4005 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4006 | array size at least. It's necessary to write '\x00'==0 to get something | |
4007 | that's true only with -std. */ | |
4008 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4009 | ||
4010 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4011 | inside strings and character constants. */ | |
4012 | #define FOO(x) 'x' | |
4013 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4014 | ||
4015 | int test (int i, double x); | |
4016 | struct s1 {int (*f) (int a);}; | |
4017 | struct s2 {int (*f) (double a);}; | |
4018 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4019 | int argc; | |
4020 | char **argv; | |
4021 | int | |
4022 | main () | |
4023 | { | |
4024 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4025 | ; | |
4026 | return 0; | |
4027 | } | |
4028 | _ACEOF | |
4029 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4030 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4031 | do | |
4032 | CC="$ac_save_CC $ac_arg" | |
4033 | if ac_fn_c_try_compile "$LINENO"; then : | |
4034 | ac_cv_prog_cc_c89=$ac_arg | |
4035 | fi | |
4036 | rm -f core conftest.err conftest.$ac_objext | |
4037 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4038 | done | |
4039 | rm -f conftest.$ac_ext | |
4040 | CC=$ac_save_CC | |
4041 | ||
4042 | fi | |
4043 | # AC_CACHE_VAL | |
4044 | case "x$ac_cv_prog_cc_c89" in | |
4045 | x) | |
4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4047 | $as_echo "none needed" >&6; } ;; | |
4048 | xno) | |
4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4050 | $as_echo "unsupported" >&6; } ;; | |
4051 | *) | |
4052 | CC="$CC $ac_cv_prog_cc_c89" | |
4053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4054 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4055 | esac | |
4056 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4057 | ||
4058 | fi | |
4059 | ||
4060 | ac_ext=c | |
4061 | ac_cpp='$CPP $CPPFLAGS' | |
4062 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4063 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4064 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4065 | ||
4066 | ac_ext=c | |
4067 | ac_cpp='$CPP $CPPFLAGS' | |
4068 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4069 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4070 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4072 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4073 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4074 | $as_echo_n "(cached) " >&6 | |
4075 | else | |
4076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4077 | /* end confdefs.h. */ | |
4078 | ||
4079 | int | |
4080 | main () | |
4081 | { | |
4082 | ||
4083 | ; | |
4084 | return 0; | |
4085 | } | |
4086 | _ACEOF | |
4087 | # Make sure it works both with $CC and with simple cc. | |
4088 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4089 | # compilers refuse to overwrite an existing .o file with -o, | |
4090 | # though they will create one. | |
4091 | am_cv_prog_cc_c_o=yes | |
4092 | for am_i in 1 2; do | |
4093 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4094 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4095 | ac_status=$? | |
4096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4097 | (exit $ac_status); } \ | |
4098 | && test -f conftest2.$ac_objext; then | |
4099 | : OK | |
4100 | else | |
4101 | am_cv_prog_cc_c_o=no | |
4102 | break | |
4103 | fi | |
4104 | done | |
4105 | rm -f core conftest* | |
4106 | unset am_i | |
4107 | fi | |
4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4109 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4110 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4111 | # Losing compiler, so override with the script. | |
4112 | # FIXME: It is wrong to rewrite CC. | |
4113 | # But if we don't then we get into trouble of one sort or another. | |
4114 | # A longer-term fix would be to have automake use am__CC in this case, | |
4115 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4116 | CC="$am_aux_dir/compile $CC" | |
4117 | fi | |
4118 | ac_ext=c | |
4119 | ac_cpp='$CPP $CPPFLAGS' | |
4120 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4121 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4122 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4123 | ||
4124 | DEPDIR="${am__leading_dot}deps" | |
4125 | ||
4126 | ac_config_commands="$ac_config_commands depfiles" | |
4127 | ||
4128 | ||
4129 | am_make=${MAKE-make} | |
4130 | cat > confinc << 'END' | |
4131 | am__doit: | |
4132 | @echo this is the am__doit target | |
4133 | .PHONY: am__doit | |
4134 | END | |
4135 | # If we don't find an include directive, just comment out the code. | |
4136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4137 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4138 | am__include="#" | |
4139 | am__quote= | |
4140 | _am_result=none | |
4141 | # First try GNU make style include. | |
4142 | echo "include confinc" > confmf | |
4143 | # Ignore all kinds of additional output from 'make'. | |
4144 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4145 | *the\ am__doit\ target*) | |
4146 | am__include=include | |
4147 | am__quote= | |
4148 | _am_result=GNU | |
4149 | ;; | |
4150 | esac | |
4151 | # Now try BSD make style include. | |
4152 | if test "$am__include" = "#"; then | |
4153 | echo '.include "confinc"' > confmf | |
4154 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4155 | *the\ am__doit\ target*) | |
4156 | am__include=.include | |
4157 | am__quote="\"" | |
4158 | _am_result=BSD | |
4159 | ;; | |
4160 | esac | |
4161 | fi | |
4162 | ||
4163 | ||
4164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4165 | $as_echo "$_am_result" >&6; } | |
4166 | rm -f confinc confmf | |
4167 | ||
4168 | # Check whether --enable-dependency-tracking was given. | |
4169 | if test "${enable_dependency_tracking+set}" = set; then : | |
4170 | enableval=$enable_dependency_tracking; | |
4171 | fi | |
4172 | ||
4173 | if test "x$enable_dependency_tracking" != xno; then | |
4174 | am_depcomp="$ac_aux_dir/depcomp" | |
4175 | AMDEPBACKSLASH='\' | |
4176 | am__nodep='_no' | |
4177 | fi | |
4178 | if test "x$enable_dependency_tracking" != xno; then | |
4179 | AMDEP_TRUE= | |
4180 | AMDEP_FALSE='#' | |
4181 | else | |
4182 | AMDEP_TRUE='#' | |
4183 | AMDEP_FALSE= | |
4184 | fi | |
4185 | ||
4186 | ||
4187 | ||
4188 | depcc="$CC" am_compiler_list= | |
4189 | ||
4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4191 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4192 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4193 | $as_echo_n "(cached) " >&6 | |
4194 | else | |
4195 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4196 | # We make a subdir and do the tests there. Otherwise we can end up | |
4197 | # making bogus files that we don't know about and never remove. For | |
4198 | # instance it was reported that on HP-UX the gcc test will end up | |
4199 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4200 | # in D". | |
4201 | rm -rf conftest.dir | |
4202 | mkdir conftest.dir | |
4203 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4204 | # using a relative directory. | |
4205 | cp "$am_depcomp" conftest.dir | |
4206 | cd conftest.dir | |
4207 | # We will build objects and dependencies in a subdirectory because | |
4208 | # it helps to detect inapplicable dependency modes. For instance | |
4209 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4210 | # side effect of compilation, but ICC will put the dependencies in | |
4211 | # the current directory while Tru64 will put them in the object | |
4212 | # directory. | |
4213 | mkdir sub | |
4214 | ||
4215 | am_cv_CC_dependencies_compiler_type=none | |
4216 | if test "$am_compiler_list" = ""; then | |
4217 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4218 | fi | |
4219 | am__universal=false | |
4220 | case " $depcc " in #( | |
4221 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4222 | esac | |
4223 | ||
4224 | for depmode in $am_compiler_list; do | |
4225 | # Setup a source with many dependencies, because some compilers | |
4226 | # like to wrap large dependency lists on column 80 (with \), and | |
4227 | # we should not choose a depcomp mode which is confused by this. | |
4228 | # | |
4229 | # We need to recreate these files for each test, as the compiler may | |
4230 | # overwrite some of them when testing with obscure command lines. | |
4231 | # This happens at least with the AIX C compiler. | |
4232 | : > sub/conftest.c | |
4233 | for i in 1 2 3 4 5 6; do | |
4234 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4235 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4236 | # Solaris 10 /bin/sh. | |
4237 | echo '/* dummy */' > sub/conftst$i.h | |
4238 | done | |
4239 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4240 | ||
4241 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4242 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4243 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4244 | # versions had trouble with output in subdirs. | |
4245 | am__obj=sub/conftest.${OBJEXT-o} | |
4246 | am__minus_obj="-o $am__obj" | |
4247 | case $depmode in | |
4248 | gcc) | |
4249 | # This depmode causes a compiler race in universal mode. | |
4250 | test "$am__universal" = false || continue | |
4251 | ;; | |
4252 | nosideeffect) | |
4253 | # After this tag, mechanisms are not by side-effect, so they'll | |
4254 | # only be used when explicitly requested. | |
4255 | if test "x$enable_dependency_tracking" = xyes; then | |
4256 | continue | |
4257 | else | |
4258 | break | |
4259 | fi | |
4260 | ;; | |
4261 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4262 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4263 | # not run yet. These depmodes are late enough in the game, and | |
4264 | # so weak that their functioning should not be impacted. | |
4265 | am__obj=conftest.${OBJEXT-o} | |
4266 | am__minus_obj= | |
4267 | ;; | |
4268 | none) break ;; | |
4269 | esac | |
4270 | if depmode=$depmode \ | |
4271 | source=sub/conftest.c object=$am__obj \ | |
4272 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4273 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4274 | >/dev/null 2>conftest.err && | |
4275 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4276 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4277 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4278 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4279 | # icc doesn't choke on unknown options, it will just issue warnings | |
4280 | # or remarks (even with -Werror). So we grep stderr for any message | |
4281 | # that says an option was ignored or not supported. | |
4282 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4283 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4284 | # The diagnosis changed in icc 8.0: | |
4285 | # icc: Command line remark: option '-MP' not supported | |
4286 | if (grep 'ignoring option' conftest.err || | |
4287 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4288 | am_cv_CC_dependencies_compiler_type=$depmode | |
4289 | break | |
4290 | fi | |
4291 | fi | |
4292 | done | |
4293 | ||
4294 | cd .. | |
4295 | rm -rf conftest.dir | |
4296 | else | |
4297 | am_cv_CC_dependencies_compiler_type=none | |
4298 | fi | |
4299 | ||
4300 | fi | |
4301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4302 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4303 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4304 | ||
4305 | if | |
4306 | test "x$enable_dependency_tracking" != xno \ | |
4307 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4308 | am__fastdepCC_TRUE= | |
4309 | am__fastdepCC_FALSE='#' | |
4310 | else | |
4311 | am__fastdepCC_TRUE='#' | |
4312 | am__fastdepCC_FALSE= | |
4313 | fi | |
4314 | ||
4315 | ||
4316 | case `pwd` in | |
4317 | *\ * | *\ *) | |
4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4319 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4320 | esac | |
4321 | ||
4322 | ||
4323 | ||
4324 | macro_version='2.4.6' | |
4325 | macro_revision='2.4.6' | |
4326 | ||
4327 | ||
4328 | ||
4329 | ||
4330 | ||
4331 | ||
4332 | ||
4333 | ||
4334 | ||
4335 | ||
4336 | ||
4337 | ||
4338 | ||
4339 | ltmain=$ac_aux_dir/ltmain.sh | |
4340 | ||
4341 | # Backslashify metacharacters that are still active within | |
4342 | # double-quoted strings. | |
4343 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4344 | ||
4345 | # Same as above, but do not quote variable references. | |
4346 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4347 | ||
4348 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4349 | # double_quote_subst'ed string. | |
4350 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4351 | ||
4352 | # Sed substitution to delay expansion of an escaped single quote. | |
4353 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4354 | ||
4355 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4356 | no_glob_subst='s/\*/\\\*/g' | |
4357 | ||
4358 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4359 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4360 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4361 | ||
4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4363 | $as_echo_n "checking how to print strings... " >&6; } | |
4364 | # Test print first, because it will be a builtin if present. | |
4365 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4366 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4367 | ECHO='print -r --' | |
4368 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4369 | ECHO='printf %s\n' | |
4370 | else | |
4371 | # Use this function as a fallback that always works. | |
4372 | func_fallback_echo () | |
4373 | { | |
4374 | eval 'cat <<_LTECHO_EOF | |
4375 | $1 | |
4376 | _LTECHO_EOF' | |
4377 | } | |
4378 | ECHO='func_fallback_echo' | |
4379 | fi | |
4380 | ||
4381 | # func_echo_all arg... | |
4382 | # Invoke $ECHO with all args, space-separated. | |
4383 | func_echo_all () | |
4384 | { | |
4385 | $ECHO "" | |
4386 | } | |
4387 | ||
4388 | case $ECHO in | |
4389 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4390 | $as_echo "printf" >&6; } ;; | |
4391 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4392 | $as_echo "print -r" >&6; } ;; | |
4393 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4394 | $as_echo "cat" >&6; } ;; | |
4395 | esac | |
4396 | ||
4397 | ||
4398 | ||
4399 | ||
4400 | ||
4401 | ||
4402 | ||
4403 | ||
4404 | ||
4405 | ||
4406 | ||
4407 | ||
4408 | ||
4409 | ||
4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4411 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4412 | if ${ac_cv_path_SED+:} false; then : | |
4413 | $as_echo_n "(cached) " >&6 | |
4414 | else | |
4415 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4416 | for ac_i in 1 2 3 4 5 6 7; do | |
4417 | ac_script="$ac_script$as_nl$ac_script" | |
4418 | done | |
4419 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4420 | { ac_script=; unset ac_script;} | |
4421 | if test -z "$SED"; then | |
4422 | ac_path_SED_found=false | |
4423 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4425 | for as_dir in $PATH | |
4426 | do | |
4427 | IFS=$as_save_IFS | |
4428 | test -z "$as_dir" && as_dir=. | |
4429 | for ac_prog in sed gsed; do | |
4430 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4431 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4432 | as_fn_executable_p "$ac_path_SED" || continue | |
4433 | # Check for GNU ac_path_SED and select it if it is found. | |
4434 | # Check for GNU $ac_path_SED | |
4435 | case `"$ac_path_SED" --version 2>&1` in | |
4436 | *GNU*) | |
4437 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4438 | *) | |
4439 | ac_count=0 | |
4440 | $as_echo_n 0123456789 >"conftest.in" | |
4441 | while : | |
4442 | do | |
4443 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4444 | mv "conftest.tmp" "conftest.in" | |
4445 | cp "conftest.in" "conftest.nl" | |
4446 | $as_echo '' >> "conftest.nl" | |
4447 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4448 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4449 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4450 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4451 | # Best one so far, save it but keep looking for a better one | |
4452 | ac_cv_path_SED="$ac_path_SED" | |
4453 | ac_path_SED_max=$ac_count | |
4454 | fi | |
4455 | # 10*(2^10) chars as input seems more than enough | |
4456 | test $ac_count -gt 10 && break | |
4457 | done | |
4458 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4459 | esac | |
4460 | ||
4461 | $ac_path_SED_found && break 3 | |
4462 | done | |
4463 | done | |
4464 | done | |
4465 | IFS=$as_save_IFS | |
4466 | if test -z "$ac_cv_path_SED"; then | |
4467 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
4468 | fi | |
4469 | else | |
4470 | ac_cv_path_SED=$SED | |
4471 | fi | |
4472 | ||
4473 | fi | |
4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4475 | $as_echo "$ac_cv_path_SED" >&6; } | |
4476 | SED="$ac_cv_path_SED" | |
4477 | rm -f conftest.sed | |
4478 | ||
4479 | test -z "$SED" && SED=sed | |
4480 | Xsed="$SED -e 1s/^X//" | |
4481 | ||
4482 | ||
4483 | ||
4484 | ||
4485 | ||
4486 | ||
4487 | ||
4488 | ||
4489 | ||
4490 | ||
4491 | ||
4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4493 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4494 | if ${ac_cv_path_GREP+:} false; then : | |
4495 | $as_echo_n "(cached) " >&6 | |
4496 | else | |
4497 | if test -z "$GREP"; then | |
4498 | ac_path_GREP_found=false | |
4499 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4501 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4502 | do | |
4503 | IFS=$as_save_IFS | |
4504 | test -z "$as_dir" && as_dir=. | |
4505 | for ac_prog in grep ggrep; do | |
4506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4507 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4508 | as_fn_executable_p "$ac_path_GREP" || continue | |
4509 | # Check for GNU ac_path_GREP and select it if it is found. | |
4510 | # Check for GNU $ac_path_GREP | |
4511 | case `"$ac_path_GREP" --version 2>&1` in | |
4512 | *GNU*) | |
4513 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4514 | *) | |
4515 | ac_count=0 | |
4516 | $as_echo_n 0123456789 >"conftest.in" | |
4517 | while : | |
4518 | do | |
4519 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4520 | mv "conftest.tmp" "conftest.in" | |
4521 | cp "conftest.in" "conftest.nl" | |
4522 | $as_echo 'GREP' >> "conftest.nl" | |
4523 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4524 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4525 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4526 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4527 | # Best one so far, save it but keep looking for a better one | |
4528 | ac_cv_path_GREP="$ac_path_GREP" | |
4529 | ac_path_GREP_max=$ac_count | |
4530 | fi | |
4531 | # 10*(2^10) chars as input seems more than enough | |
4532 | test $ac_count -gt 10 && break | |
4533 | done | |
4534 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4535 | esac | |
4536 | ||
4537 | $ac_path_GREP_found && break 3 | |
4538 | done | |
4539 | done | |
4540 | done | |
4541 | IFS=$as_save_IFS | |
4542 | if test -z "$ac_cv_path_GREP"; then | |
4543 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4544 | fi | |
4545 | else | |
4546 | ac_cv_path_GREP=$GREP | |
4547 | fi | |
4548 | ||
4549 | fi | |
4550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4551 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4552 | GREP="$ac_cv_path_GREP" | |
4553 | ||
4554 | ||
4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4556 | $as_echo_n "checking for egrep... " >&6; } | |
4557 | if ${ac_cv_path_EGREP+:} false; then : | |
4558 | $as_echo_n "(cached) " >&6 | |
4559 | else | |
4560 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4561 | then ac_cv_path_EGREP="$GREP -E" | |
4562 | else | |
4563 | if test -z "$EGREP"; then | |
4564 | ac_path_EGREP_found=false | |
4565 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4567 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4568 | do | |
4569 | IFS=$as_save_IFS | |
4570 | test -z "$as_dir" && as_dir=. | |
4571 | for ac_prog in egrep; do | |
4572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4573 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4574 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4575 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4576 | # Check for GNU $ac_path_EGREP | |
4577 | case `"$ac_path_EGREP" --version 2>&1` in | |
4578 | *GNU*) | |
4579 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4580 | *) | |
4581 | ac_count=0 | |
4582 | $as_echo_n 0123456789 >"conftest.in" | |
4583 | while : | |
4584 | do | |
4585 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4586 | mv "conftest.tmp" "conftest.in" | |
4587 | cp "conftest.in" "conftest.nl" | |
4588 | $as_echo 'EGREP' >> "conftest.nl" | |
4589 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4590 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4591 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4592 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4593 | # Best one so far, save it but keep looking for a better one | |
4594 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4595 | ac_path_EGREP_max=$ac_count | |
4596 | fi | |
4597 | # 10*(2^10) chars as input seems more than enough | |
4598 | test $ac_count -gt 10 && break | |
4599 | done | |
4600 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4601 | esac | |
4602 | ||
4603 | $ac_path_EGREP_found && break 3 | |
4604 | done | |
4605 | done | |
4606 | done | |
4607 | IFS=$as_save_IFS | |
4608 | if test -z "$ac_cv_path_EGREP"; then | |
4609 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4610 | fi | |
4611 | else | |
4612 | ac_cv_path_EGREP=$EGREP | |
4613 | fi | |
4614 | ||
4615 | fi | |
4616 | fi | |
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4618 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4619 | EGREP="$ac_cv_path_EGREP" | |
4620 | ||
4621 | ||
4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
4623 | $as_echo_n "checking for fgrep... " >&6; } | |
4624 | if ${ac_cv_path_FGREP+:} false; then : | |
4625 | $as_echo_n "(cached) " >&6 | |
4626 | else | |
4627 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4628 | then ac_cv_path_FGREP="$GREP -F" | |
4629 | else | |
4630 | if test -z "$FGREP"; then | |
4631 | ac_path_FGREP_found=false | |
4632 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4634 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4635 | do | |
4636 | IFS=$as_save_IFS | |
4637 | test -z "$as_dir" && as_dir=. | |
4638 | for ac_prog in fgrep; do | |
4639 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4640 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4641 | as_fn_executable_p "$ac_path_FGREP" || continue | |
4642 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4643 | # Check for GNU $ac_path_FGREP | |
4644 | case `"$ac_path_FGREP" --version 2>&1` in | |
4645 | *GNU*) | |
4646 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4647 | *) | |
4648 | ac_count=0 | |
4649 | $as_echo_n 0123456789 >"conftest.in" | |
4650 | while : | |
4651 | do | |
4652 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4653 | mv "conftest.tmp" "conftest.in" | |
4654 | cp "conftest.in" "conftest.nl" | |
4655 | $as_echo 'FGREP' >> "conftest.nl" | |
4656 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4657 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4658 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4659 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4660 | # Best one so far, save it but keep looking for a better one | |
4661 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4662 | ac_path_FGREP_max=$ac_count | |
4663 | fi | |
4664 | # 10*(2^10) chars as input seems more than enough | |
4665 | test $ac_count -gt 10 && break | |
4666 | done | |
4667 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4668 | esac | |
4669 | ||
4670 | $ac_path_FGREP_found && break 3 | |
4671 | done | |
4672 | done | |
4673 | done | |
4674 | IFS=$as_save_IFS | |
4675 | if test -z "$ac_cv_path_FGREP"; then | |
4676 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4677 | fi | |
4678 | else | |
4679 | ac_cv_path_FGREP=$FGREP | |
4680 | fi | |
4681 | ||
4682 | fi | |
4683 | fi | |
4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4685 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4686 | FGREP="$ac_cv_path_FGREP" | |
4687 | ||
4688 | ||
4689 | test -z "$GREP" && GREP=grep | |
4690 | ||
4691 | ||
4692 | ||
4693 | ||
4694 | ||
4695 | ||
4696 | ||
4697 | ||
4698 | ||
4699 | ||
4700 | ||
4701 | ||
4702 | ||
4703 | ||
4704 | ||
4705 | ||
4706 | ||
4707 | ||
4708 | ||
4709 | # Check whether --with-gnu-ld was given. | |
4710 | if test "${with_gnu_ld+set}" = set; then : | |
4711 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes | |
4712 | else | |
4713 | with_gnu_ld=no | |
4714 | fi | |
4715 | ||
4716 | ac_prog=ld | |
4717 | if test yes = "$GCC"; then | |
4718 | # Check if gcc -print-prog-name=ld gives a path. | |
4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
4720 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
4721 | case $host in | |
4722 | *-*-mingw*) | |
4723 | # gcc leaves a trailing carriage return, which upsets mingw | |
4724 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4725 | *) | |
4726 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4727 | esac | |
4728 | case $ac_prog in | |
4729 | # Accept absolute paths. | |
4730 | [\\/]* | ?:[\\/]*) | |
4731 | re_direlt='/[^/][^/]*/\.\./' | |
4732 | # Canonicalize the pathname of ld | |
4733 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4734 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4735 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4736 | done | |
4737 | test -z "$LD" && LD=$ac_prog | |
4738 | ;; | |
4739 | "") | |
4740 | # If it fails, then pretend we aren't using GCC. | |
4741 | ac_prog=ld | |
4742 | ;; | |
4743 | *) | |
4744 | # If it is relative, then search for the first ld in PATH. | |
4745 | with_gnu_ld=unknown | |
4746 | ;; | |
4747 | esac | |
4748 | elif test yes = "$with_gnu_ld"; then | |
4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
4750 | $as_echo_n "checking for GNU ld... " >&6; } | |
4751 | else | |
4752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
4753 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
4754 | fi | |
4755 | if ${lt_cv_path_LD+:} false; then : | |
4756 | $as_echo_n "(cached) " >&6 | |
4757 | else | |
4758 | if test -z "$LD"; then | |
4759 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
4760 | for ac_dir in $PATH; do | |
4761 | IFS=$lt_save_ifs | |
4762 | test -z "$ac_dir" && ac_dir=. | |
4763 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4764 | lt_cv_path_LD=$ac_dir/$ac_prog | |
4765 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4766 | # but apparently some variants of GNU ld only accept -v. | |
4767 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4768 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4769 | *GNU* | *'with BFD'*) | |
4770 | test no != "$with_gnu_ld" && break | |
4771 | ;; | |
4772 | *) | |
4773 | test yes != "$with_gnu_ld" && break | |
4774 | ;; | |
4775 | esac | |
4776 | fi | |
4777 | done | |
4778 | IFS=$lt_save_ifs | |
4779 | else | |
4780 | lt_cv_path_LD=$LD # Let the user override the test with a path. | |
4781 | fi | |
4782 | fi | |
4783 | ||
4784 | LD=$lt_cv_path_LD | |
4785 | if test -n "$LD"; then | |
4786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4787 | $as_echo "$LD" >&6; } | |
4788 | else | |
4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4790 | $as_echo "no" >&6; } | |
4791 | fi | |
4792 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
4793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
4794 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4795 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
4796 | $as_echo_n "(cached) " >&6 | |
4797 | else | |
4798 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4799 | case `$LD -v 2>&1 </dev/null` in | |
4800 | *GNU* | *'with BFD'*) | |
4801 | lt_cv_prog_gnu_ld=yes | |
4802 | ;; | |
4803 | *) | |
4804 | lt_cv_prog_gnu_ld=no | |
4805 | ;; | |
4806 | esac | |
4807 | fi | |
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
4809 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
4810 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
4811 | ||
4812 | ||
4813 | ||
4814 | ||
4815 | ||
4816 | ||
4817 | ||
4818 | ||
4819 | ||
4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4821 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
4822 | if ${lt_cv_path_NM+:} false; then : | |
4823 | $as_echo_n "(cached) " >&6 | |
4824 | else | |
4825 | if test -n "$NM"; then | |
4826 | # Let the user override the test. | |
4827 | lt_cv_path_NM=$NM | |
4828 | else | |
4829 | lt_nm_to_check=${ac_tool_prefix}nm | |
4830 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4831 | lt_nm_to_check="$lt_nm_to_check nm" | |
4832 | fi | |
4833 | for lt_tmp_nm in $lt_nm_to_check; do | |
4834 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
4835 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4836 | IFS=$lt_save_ifs | |
4837 | test -z "$ac_dir" && ac_dir=. | |
4838 | tmp_nm=$ac_dir/$lt_tmp_nm | |
4839 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
4840 | # Check to see if the nm accepts a BSD-compat flag. | |
4841 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: | |
4842 | # nm: unknown option "B" ignored | |
4843 | # Tru64's nm complains that /dev/null is an invalid object file | |
4844 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty | |
4845 | case $build_os in | |
4846 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
4847 | *) lt_bad_file=/dev/null ;; | |
4848 | esac | |
4849 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
4850 | *$lt_bad_file* | *'Invalid file or object type'*) | |
4851 | lt_cv_path_NM="$tmp_nm -B" | |
4852 | break 2 | |
4853 | ;; | |
4854 | *) | |
4855 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4856 | */dev/null*) | |
4857 | lt_cv_path_NM="$tmp_nm -p" | |
4858 | break 2 | |
4859 | ;; | |
4860 | *) | |
4861 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4862 | continue # so that we can try to find one that supports BSD flags | |
4863 | ;; | |
4864 | esac | |
4865 | ;; | |
4866 | esac | |
4867 | fi | |
4868 | done | |
4869 | IFS=$lt_save_ifs | |
4870 | done | |
4871 | : ${lt_cv_path_NM=no} | |
4872 | fi | |
4873 | fi | |
4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
4875 | $as_echo "$lt_cv_path_NM" >&6; } | |
4876 | if test no != "$lt_cv_path_NM"; then | |
4877 | NM=$lt_cv_path_NM | |
4878 | else | |
4879 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4880 | if test -n "$DUMPBIN"; then : | |
4881 | # Let the user override the test. | |
4882 | else | |
4883 | if test -n "$ac_tool_prefix"; then | |
4884 | for ac_prog in dumpbin "link -dump" | |
4885 | do | |
4886 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4887 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4889 | $as_echo_n "checking for $ac_word... " >&6; } | |
4890 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
4891 | $as_echo_n "(cached) " >&6 | |
4892 | else | |
4893 | if test -n "$DUMPBIN"; then | |
4894 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4895 | else | |
4896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4897 | for as_dir in $PATH | |
4898 | do | |
4899 | IFS=$as_save_IFS | |
4900 | test -z "$as_dir" && as_dir=. | |
4901 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4902 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4903 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4905 | break 2 | |
4906 | fi | |
4907 | done | |
4908 | done | |
4909 | IFS=$as_save_IFS | |
4910 | ||
4911 | fi | |
4912 | fi | |
4913 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4914 | if test -n "$DUMPBIN"; then | |
4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
4916 | $as_echo "$DUMPBIN" >&6; } | |
4917 | else | |
4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4919 | $as_echo "no" >&6; } | |
4920 | fi | |
4921 | ||
4922 | ||
4923 | test -n "$DUMPBIN" && break | |
4924 | done | |
4925 | fi | |
4926 | if test -z "$DUMPBIN"; then | |
4927 | ac_ct_DUMPBIN=$DUMPBIN | |
4928 | for ac_prog in dumpbin "link -dump" | |
4929 | do | |
4930 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4931 | set dummy $ac_prog; ac_word=$2 | |
4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4933 | $as_echo_n "checking for $ac_word... " >&6; } | |
4934 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
4935 | $as_echo_n "(cached) " >&6 | |
4936 | else | |
4937 | if test -n "$ac_ct_DUMPBIN"; then | |
4938 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4939 | else | |
4940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4941 | for as_dir in $PATH | |
4942 | do | |
4943 | IFS=$as_save_IFS | |
4944 | test -z "$as_dir" && as_dir=. | |
4945 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4946 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4947 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4948 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4949 | break 2 | |
4950 | fi | |
4951 | done | |
4952 | done | |
4953 | IFS=$as_save_IFS | |
4954 | ||
4955 | fi | |
4956 | fi | |
4957 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4958 | if test -n "$ac_ct_DUMPBIN"; then | |
4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4960 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4961 | else | |
4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4963 | $as_echo "no" >&6; } | |
4964 | fi | |
4965 | ||
4966 | ||
4967 | test -n "$ac_ct_DUMPBIN" && break | |
4968 | done | |
4969 | ||
4970 | if test "x$ac_ct_DUMPBIN" = x; then | |
4971 | DUMPBIN=":" | |
4972 | else | |
4973 | case $cross_compiling:$ac_tool_warned in | |
4974 | yes:) | |
4975 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4976 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4977 | ac_tool_warned=yes ;; | |
4978 | esac | |
4979 | DUMPBIN=$ac_ct_DUMPBIN | |
4980 | fi | |
4981 | fi | |
4982 | ||
4983 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in | |
4984 | *COFF*) | |
4985 | DUMPBIN="$DUMPBIN -symbols -headers" | |
4986 | ;; | |
4987 | *) | |
4988 | DUMPBIN=: | |
4989 | ;; | |
4990 | esac | |
4991 | fi | |
4992 | ||
4993 | if test : != "$DUMPBIN"; then | |
4994 | NM=$DUMPBIN | |
4995 | fi | |
4996 | fi | |
4997 | test -z "$NM" && NM=nm | |
4998 | ||
4999 | ||
5000 | ||
5001 | ||
5002 | ||
5003 | ||
5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5005 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5006 | if ${lt_cv_nm_interface+:} false; then : | |
5007 | $as_echo_n "(cached) " >&6 | |
5008 | else | |
5009 | lt_cv_nm_interface="BSD nm" | |
5010 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5011 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5012 | (eval "$ac_compile" 2>conftest.err) | |
5013 | cat conftest.err >&5 | |
5014 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5015 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5016 | cat conftest.err >&5 | |
5017 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5018 | cat conftest.out >&5 | |
5019 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5020 | lt_cv_nm_interface="MS dumpbin" | |
5021 | fi | |
5022 | rm -f conftest* | |
5023 | fi | |
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5025 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5026 | ||
5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5028 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5029 | LN_S=$as_ln_s | |
5030 | if test "$LN_S" = "ln -s"; then | |
5031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5032 | $as_echo "yes" >&6; } | |
5033 | else | |
5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5035 | $as_echo "no, using $LN_S" >&6; } | |
5036 | fi | |
5037 | ||
5038 | # find the maximum length of command line arguments | |
5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5040 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5041 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5042 | $as_echo_n "(cached) " >&6 | |
5043 | else | |
5044 | i=0 | |
5045 | teststring=ABCD | |
5046 | ||
5047 | case $build_os in | |
5048 | msdosdjgpp*) | |
5049 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5050 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5051 | # during glob expansion). Even if it were fixed, the result of this | |
5052 | # check would be larger than it should be. | |
5053 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5054 | ;; | |
5055 | ||
5056 | gnu*) | |
5057 | # Under GNU Hurd, this test is not required because there is | |
5058 | # no limit to the length of command line arguments. | |
5059 | # Libtool will interpret -1 as no limit whatsoever | |
5060 | lt_cv_sys_max_cmd_len=-1; | |
5061 | ;; | |
5062 | ||
5063 | cygwin* | mingw* | cegcc*) | |
5064 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5065 | # about 5 minutes as the teststring grows exponentially. | |
5066 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5067 | # you end up with a "frozen" computer, even though with patience | |
5068 | # the test eventually succeeds (with a max line length of 256k). | |
5069 | # Instead, let's just punt: use the minimum linelength reported by | |
5070 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5071 | lt_cv_sys_max_cmd_len=8192; | |
5072 | ;; | |
5073 | ||
5074 | mint*) | |
5075 | # On MiNT this can take a long time and run out of memory. | |
5076 | lt_cv_sys_max_cmd_len=8192; | |
5077 | ;; | |
5078 | ||
5079 | amigaos*) | |
5080 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5081 | # So we just punt and use a minimum line length of 8192. | |
5082 | lt_cv_sys_max_cmd_len=8192; | |
5083 | ;; | |
5084 | ||
5085 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) | |
5086 | # This has been around since 386BSD, at least. Likely further. | |
5087 | if test -x /sbin/sysctl; then | |
5088 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5089 | elif test -x /usr/sbin/sysctl; then | |
5090 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5091 | else | |
5092 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5093 | fi | |
5094 | # And add a safety zone | |
5095 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5096 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5097 | ;; | |
5098 | ||
5099 | interix*) | |
5100 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5101 | lt_cv_sys_max_cmd_len=196608 | |
5102 | ;; | |
5103 | ||
5104 | os2*) | |
5105 | # The test takes a long time on OS/2. | |
5106 | lt_cv_sys_max_cmd_len=8192 | |
5107 | ;; | |
5108 | ||
5109 | osf*) | |
5110 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5111 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5112 | # nice to cause kernel panics so lets avoid the loop below. | |
5113 | # First set a reasonable default. | |
5114 | lt_cv_sys_max_cmd_len=16384 | |
5115 | # | |
5116 | if test -x /sbin/sysconfig; then | |
5117 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5118 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5119 | esac | |
5120 | fi | |
5121 | ;; | |
5122 | sco3.2v5*) | |
5123 | lt_cv_sys_max_cmd_len=102400 | |
5124 | ;; | |
5125 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5126 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5127 | if test -n "$kargmax"; then | |
5128 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5129 | else | |
5130 | lt_cv_sys_max_cmd_len=32768 | |
5131 | fi | |
5132 | ;; | |
5133 | *) | |
5134 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5135 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
5136 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
5137 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5138 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5139 | else | |
5140 | # Make teststring a little bigger before we do anything with it. | |
5141 | # a 1K string should be a reasonable start. | |
5142 | for i in 1 2 3 4 5 6 7 8; do | |
5143 | teststring=$teststring$teststring | |
5144 | done | |
5145 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5146 | # If test is not a shell built-in, we'll probably end up computing a | |
5147 | # maximum length that is only half of the actual maximum length, but | |
5148 | # we can't tell. | |
5149 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ | |
5150 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5151 | test 17 != "$i" # 1/2 MB should be enough | |
5152 | do | |
5153 | i=`expr $i + 1` | |
5154 | teststring=$teststring$teststring | |
5155 | done | |
5156 | # Only check the string length outside the loop. | |
5157 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5158 | teststring= | |
5159 | # Add a significant safety factor because C++ compilers can tack on | |
5160 | # massive amounts of additional arguments before passing them to the | |
5161 | # linker. It appears as though 1/2 is a usable value. | |
5162 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5163 | fi | |
5164 | ;; | |
5165 | esac | |
5166 | ||
5167 | fi | |
5168 | ||
5169 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5171 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5172 | else | |
5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5174 | $as_echo "none" >&6; } | |
5175 | fi | |
5176 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5177 | ||
5178 | ||
5179 | ||
5180 | ||
5181 | ||
5182 | ||
5183 | : ${CP="cp -f"} | |
5184 | : ${MV="mv -f"} | |
5185 | : ${RM="rm -f"} | |
5186 | ||
5187 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5188 | lt_unset=unset | |
5189 | else | |
5190 | lt_unset=false | |
5191 | fi | |
5192 | ||
5193 | ||
5194 | ||
5195 | ||
5196 | ||
5197 | # test EBCDIC or ASCII | |
5198 | case `echo X|tr X '\101'` in | |
5199 | A) # ASCII based system | |
5200 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5201 | lt_SP2NL='tr \040 \012' | |
5202 | lt_NL2SP='tr \015\012 \040\040' | |
5203 | ;; | |
5204 | *) # EBCDIC based system | |
5205 | lt_SP2NL='tr \100 \n' | |
5206 | lt_NL2SP='tr \r\n \100\100' | |
5207 | ;; | |
5208 | esac | |
5209 | ||
5210 | ||
5211 | ||
5212 | ||
5213 | ||
5214 | ||
5215 | ||
5216 | ||
5217 | ||
5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
5219 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5220 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5221 | $as_echo_n "(cached) " >&6 | |
5222 | else | |
5223 | case $host in | |
5224 | *-*-mingw* ) | |
5225 | case $build in | |
5226 | *-*-mingw* ) # actually msys | |
5227 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5228 | ;; | |
5229 | *-*-cygwin* ) | |
5230 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5231 | ;; | |
5232 | * ) # otherwise, assume *nix | |
5233 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5234 | ;; | |
5235 | esac | |
5236 | ;; | |
5237 | *-*-cygwin* ) | |
5238 | case $build in | |
5239 | *-*-mingw* ) # actually msys | |
5240 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5241 | ;; | |
5242 | *-*-cygwin* ) | |
5243 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5244 | ;; | |
5245 | * ) # otherwise, assume *nix | |
5246 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5247 | ;; | |
5248 | esac | |
5249 | ;; | |
5250 | * ) # unhandled hosts (and "normal" native builds) | |
5251 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5252 | ;; | |
5253 | esac | |
5254 | ||
5255 | fi | |
5256 | ||
5257 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5259 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5260 | ||
5261 | ||
5262 | ||
5263 | ||
5264 | ||
5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5266 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5267 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5268 | $as_echo_n "(cached) " >&6 | |
5269 | else | |
5270 | #assume ordinary cross tools, or native build. | |
5271 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5272 | case $host in | |
5273 | *-*-mingw* ) | |
5274 | case $build in | |
5275 | *-*-mingw* ) # actually msys | |
5276 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5277 | ;; | |
5278 | esac | |
5279 | ;; | |
5280 | esac | |
5281 | ||
5282 | fi | |
5283 | ||
5284 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5286 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5287 | ||
5288 | ||
5289 | ||
5290 | ||
5291 | ||
5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5293 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5294 | if ${lt_cv_ld_reload_flag+:} false; then : | |
5295 | $as_echo_n "(cached) " >&6 | |
5296 | else | |
5297 | lt_cv_ld_reload_flag='-r' | |
5298 | fi | |
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5300 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5301 | reload_flag=$lt_cv_ld_reload_flag | |
5302 | case $reload_flag in | |
5303 | "" | " "*) ;; | |
5304 | *) reload_flag=" $reload_flag" ;; | |
5305 | esac | |
5306 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5307 | case $host_os in | |
5308 | cygwin* | mingw* | pw32* | cegcc*) | |
5309 | if test yes != "$GCC"; then | |
5310 | reload_cmds=false | |
5311 | fi | |
5312 | ;; | |
5313 | darwin*) | |
5314 | if test yes = "$GCC"; then | |
5315 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
5316 | else | |
5317 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5318 | fi | |
5319 | ;; | |
5320 | esac | |
5321 | ||
5322 | ||
5323 | ||
5324 | ||
5325 | ||
5326 | ||
5327 | ||
5328 | ||
5329 | ||
5330 | if test -n "$ac_tool_prefix"; then | |
5331 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5332 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5334 | $as_echo_n "checking for $ac_word... " >&6; } | |
5335 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5336 | $as_echo_n "(cached) " >&6 | |
5337 | else | |
5338 | if test -n "$OBJDUMP"; then | |
5339 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5340 | else | |
5341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5342 | for as_dir in $PATH | |
5343 | do | |
5344 | IFS=$as_save_IFS | |
5345 | test -z "$as_dir" && as_dir=. | |
5346 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5347 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5348 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5349 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5350 | break 2 | |
5351 | fi | |
5352 | done | |
5353 | done | |
5354 | IFS=$as_save_IFS | |
5355 | ||
5356 | fi | |
5357 | fi | |
5358 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5359 | if test -n "$OBJDUMP"; then | |
5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5361 | $as_echo "$OBJDUMP" >&6; } | |
5362 | else | |
5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5364 | $as_echo "no" >&6; } | |
5365 | fi | |
5366 | ||
5367 | ||
5368 | fi | |
5369 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5370 | ac_ct_OBJDUMP=$OBJDUMP | |
5371 | # Extract the first word of "objdump", so it can be a program name with args. | |
5372 | set dummy objdump; ac_word=$2 | |
5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5374 | $as_echo_n "checking for $ac_word... " >&6; } | |
5375 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5376 | $as_echo_n "(cached) " >&6 | |
5377 | else | |
5378 | if test -n "$ac_ct_OBJDUMP"; then | |
5379 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5380 | else | |
5381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5382 | for as_dir in $PATH | |
5383 | do | |
5384 | IFS=$as_save_IFS | |
5385 | test -z "$as_dir" && as_dir=. | |
5386 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5387 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5388 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5389 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5390 | break 2 | |
5391 | fi | |
5392 | done | |
5393 | done | |
5394 | IFS=$as_save_IFS | |
5395 | ||
5396 | fi | |
5397 | fi | |
5398 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5399 | if test -n "$ac_ct_OBJDUMP"; then | |
5400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5401 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5402 | else | |
5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5404 | $as_echo "no" >&6; } | |
5405 | fi | |
5406 | ||
5407 | if test "x$ac_ct_OBJDUMP" = x; then | |
5408 | OBJDUMP="false" | |
5409 | else | |
5410 | case $cross_compiling:$ac_tool_warned in | |
5411 | yes:) | |
5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5413 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5414 | ac_tool_warned=yes ;; | |
5415 | esac | |
5416 | OBJDUMP=$ac_ct_OBJDUMP | |
5417 | fi | |
5418 | else | |
5419 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5420 | fi | |
5421 | ||
5422 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5423 | ||
5424 | ||
5425 | ||
5426 | ||
5427 | ||
5428 | ||
5429 | ||
5430 | ||
5431 | ||
5432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5433 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5434 | if ${lt_cv_deplibs_check_method+:} false; then : | |
5435 | $as_echo_n "(cached) " >&6 | |
5436 | else | |
5437 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5438 | lt_cv_file_magic_test_file= | |
5439 | lt_cv_deplibs_check_method='unknown' | |
5440 | # Need to set the preceding variable on all platforms that support | |
5441 | # interlibrary dependencies. | |
5442 | # 'none' -- dependencies not supported. | |
5443 | # 'unknown' -- same as none, but documents that we really don't know. | |
5444 | # 'pass_all' -- all dependencies passed with no checks. | |
5445 | # 'test_compile' -- check by making test program. | |
5446 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5447 | # that responds to the $file_magic_cmd with a given extended regex. | |
5448 | # If you have 'file' or equivalent on your system and you're not sure | |
5449 | # whether 'pass_all' will *always* work, you probably want this one. | |
5450 | ||
5451 | case $host_os in | |
5452 | aix[4-9]*) | |
5453 | lt_cv_deplibs_check_method=pass_all | |
5454 | ;; | |
5455 | ||
5456 | beos*) | |
5457 | lt_cv_deplibs_check_method=pass_all | |
5458 | ;; | |
5459 | ||
5460 | bsdi[45]*) | |
5461 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5462 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5463 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5464 | ;; | |
5465 | ||
5466 | cygwin*) | |
5467 | # func_win32_libid is a shell function defined in ltmain.sh | |
5468 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5469 | lt_cv_file_magic_cmd='func_win32_libid' | |
5470 | ;; | |
5471 | ||
5472 | mingw* | pw32*) | |
5473 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5474 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5475 | # unless we find 'file', for example because we are cross-compiling. | |
5476 | if ( file / ) >/dev/null 2>&1; then | |
5477 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5478 | lt_cv_file_magic_cmd='func_win32_libid' | |
5479 | else | |
5480 | # Keep this pattern in sync with the one in func_win32_libid. | |
5481 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
5482 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5483 | fi | |
5484 | ;; | |
5485 | ||
5486 | cegcc*) | |
5487 | # use the weaker test based on 'objdump'. See mingw*. | |
5488 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5489 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5490 | ;; | |
5491 | ||
5492 | darwin* | rhapsody*) | |
5493 | lt_cv_deplibs_check_method=pass_all | |
5494 | ;; | |
5495 | ||
5496 | freebsd* | dragonfly*) | |
5497 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5498 | case $host_cpu in | |
5499 | i*86 ) | |
5500 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5501 | # Let's accept both of them until this is cleared up. | |
5502 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5503 | lt_cv_file_magic_cmd=/usr/bin/file | |
5504 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5505 | ;; | |
5506 | esac | |
5507 | else | |
5508 | lt_cv_deplibs_check_method=pass_all | |
5509 | fi | |
5510 | ;; | |
5511 | ||
5512 | haiku*) | |
5513 | lt_cv_deplibs_check_method=pass_all | |
5514 | ;; | |
5515 | ||
5516 | hpux10.20* | hpux11*) | |
5517 | lt_cv_file_magic_cmd=/usr/bin/file | |
5518 | case $host_cpu in | |
5519 | ia64*) | |
5520 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5521 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5522 | ;; | |
5523 | hppa*64*) | |
5524 | 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]' | |
5525 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5526 | ;; | |
5527 | *) | |
5528 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
5529 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5530 | ;; | |
5531 | esac | |
5532 | ;; | |
5533 | ||
5534 | interix[3-9]*) | |
5535 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5536 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5537 | ;; | |
5538 | ||
5539 | irix5* | irix6* | nonstopux*) | |
5540 | case $LD in | |
5541 | *-32|*"-32 ") libmagic=32-bit;; | |
5542 | *-n32|*"-n32 ") libmagic=N32;; | |
5543 | *-64|*"-64 ") libmagic=64-bit;; | |
5544 | *) libmagic=never-match;; | |
5545 | esac | |
5546 | lt_cv_deplibs_check_method=pass_all | |
5547 | ;; | |
5548 | ||
5549 | # This must be glibc/ELF. | |
5550 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
5551 | lt_cv_deplibs_check_method=pass_all | |
5552 | ;; | |
5553 | ||
5554 | netbsd* | netbsdelf*-gnu) | |
5555 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5556 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5557 | else | |
5558 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5559 | fi | |
5560 | ;; | |
5561 | ||
5562 | newos6*) | |
5563 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5564 | lt_cv_file_magic_cmd=/usr/bin/file | |
5565 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5566 | ;; | |
5567 | ||
5568 | *nto* | *qnx*) | |
5569 | lt_cv_deplibs_check_method=pass_all | |
5570 | ;; | |
5571 | ||
5572 | openbsd* | bitrig*) | |
5573 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
5574 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5575 | else | |
5576 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5577 | fi | |
5578 | ;; | |
5579 | ||
5580 | osf3* | osf4* | osf5*) | |
5581 | lt_cv_deplibs_check_method=pass_all | |
5582 | ;; | |
5583 | ||
5584 | rdos*) | |
5585 | lt_cv_deplibs_check_method=pass_all | |
5586 | ;; | |
5587 | ||
5588 | solaris*) | |
5589 | lt_cv_deplibs_check_method=pass_all | |
5590 | ;; | |
5591 | ||
5592 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5593 | lt_cv_deplibs_check_method=pass_all | |
5594 | ;; | |
5595 | ||
5596 | sysv4 | sysv4.3*) | |
5597 | case $host_vendor in | |
5598 | motorola) | |
5599 | 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]' | |
5600 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5601 | ;; | |
5602 | ncr) | |
5603 | lt_cv_deplibs_check_method=pass_all | |
5604 | ;; | |
5605 | sequent) | |
5606 | lt_cv_file_magic_cmd='/bin/file' | |
5607 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5608 | ;; | |
5609 | sni) | |
5610 | lt_cv_file_magic_cmd='/bin/file' | |
5611 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5612 | lt_cv_file_magic_test_file=/lib/libc.so | |
5613 | ;; | |
5614 | siemens) | |
5615 | lt_cv_deplibs_check_method=pass_all | |
5616 | ;; | |
5617 | pc) | |
5618 | lt_cv_deplibs_check_method=pass_all | |
5619 | ;; | |
5620 | esac | |
5621 | ;; | |
5622 | ||
5623 | tpf*) | |
5624 | lt_cv_deplibs_check_method=pass_all | |
5625 | ;; | |
5626 | os2*) | |
5627 | lt_cv_deplibs_check_method=pass_all | |
5628 | ;; | |
5629 | esac | |
5630 | ||
5631 | fi | |
5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5633 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5634 | ||
5635 | file_magic_glob= | |
5636 | want_nocaseglob=no | |
5637 | if test "$build" = "$host"; then | |
5638 | case $host_os in | |
5639 | mingw* | pw32*) | |
5640 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5641 | want_nocaseglob=yes | |
5642 | else | |
5643 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5644 | fi | |
5645 | ;; | |
5646 | esac | |
5647 | fi | |
5648 | ||
5649 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5650 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5651 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5652 | ||
5653 | ||
5654 | ||
5655 | ||
5656 | ||
5657 | ||
5658 | ||
5659 | ||
5660 | ||
5661 | ||
5662 | ||
5663 | ||
5664 | ||
5665 | ||
5666 | ||
5667 | ||
5668 | ||
5669 | ||
5670 | ||
5671 | ||
5672 | ||
5673 | ||
5674 | if test -n "$ac_tool_prefix"; then | |
5675 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5676 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5678 | $as_echo_n "checking for $ac_word... " >&6; } | |
5679 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5680 | $as_echo_n "(cached) " >&6 | |
5681 | else | |
5682 | if test -n "$DLLTOOL"; then | |
5683 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5684 | else | |
5685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5686 | for as_dir in $PATH | |
5687 | do | |
5688 | IFS=$as_save_IFS | |
5689 | test -z "$as_dir" && as_dir=. | |
5690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5692 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5694 | break 2 | |
5695 | fi | |
5696 | done | |
5697 | done | |
5698 | IFS=$as_save_IFS | |
5699 | ||
5700 | fi | |
5701 | fi | |
5702 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5703 | if test -n "$DLLTOOL"; then | |
5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5705 | $as_echo "$DLLTOOL" >&6; } | |
5706 | else | |
5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5708 | $as_echo "no" >&6; } | |
5709 | fi | |
5710 | ||
5711 | ||
5712 | fi | |
5713 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5714 | ac_ct_DLLTOOL=$DLLTOOL | |
5715 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5716 | set dummy dlltool; ac_word=$2 | |
5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5718 | $as_echo_n "checking for $ac_word... " >&6; } | |
5719 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5720 | $as_echo_n "(cached) " >&6 | |
5721 | else | |
5722 | if test -n "$ac_ct_DLLTOOL"; then | |
5723 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5724 | else | |
5725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5726 | for as_dir in $PATH | |
5727 | do | |
5728 | IFS=$as_save_IFS | |
5729 | test -z "$as_dir" && as_dir=. | |
5730 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5731 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5732 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5734 | break 2 | |
5735 | fi | |
5736 | done | |
5737 | done | |
5738 | IFS=$as_save_IFS | |
5739 | ||
5740 | fi | |
5741 | fi | |
5742 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5743 | if test -n "$ac_ct_DLLTOOL"; then | |
5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5745 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5746 | else | |
5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5748 | $as_echo "no" >&6; } | |
5749 | fi | |
5750 | ||
5751 | if test "x$ac_ct_DLLTOOL" = x; then | |
5752 | DLLTOOL="false" | |
5753 | else | |
5754 | case $cross_compiling:$ac_tool_warned in | |
5755 | yes:) | |
5756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5757 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5758 | ac_tool_warned=yes ;; | |
5759 | esac | |
5760 | DLLTOOL=$ac_ct_DLLTOOL | |
5761 | fi | |
5762 | else | |
5763 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5764 | fi | |
5765 | ||
5766 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5767 | ||
5768 | ||
5769 | ||
5770 | ||
5771 | ||
5772 | ||
5773 | ||
5774 | ||
5775 | ||
5776 | ||
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5778 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5779 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5780 | $as_echo_n "(cached) " >&6 | |
5781 | else | |
5782 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5783 | ||
5784 | case $host_os in | |
5785 | cygwin* | mingw* | pw32* | cegcc*) | |
5786 | # two different shell functions defined in ltmain.sh; | |
5787 | # decide which one to use based on capabilities of $DLLTOOL | |
5788 | case `$DLLTOOL --help 2>&1` in | |
5789 | *--identify-strict*) | |
5790 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5791 | ;; | |
5792 | *) | |
5793 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5794 | ;; | |
5795 | esac | |
5796 | ;; | |
5797 | *) | |
5798 | # fallback: assume linklib IS sharedlib | |
5799 | lt_cv_sharedlib_from_linklib_cmd=$ECHO | |
5800 | ;; | |
5801 | esac | |
5802 | ||
5803 | fi | |
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5805 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5806 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5807 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5808 | ||
5809 | ||
5810 | ||
5811 | ||
5812 | ||
5813 | ||
5814 | ||
5815 | ||
5816 | if test -n "$ac_tool_prefix"; then | |
5817 | for ac_prog in ar | |
5818 | do | |
5819 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5820 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5822 | $as_echo_n "checking for $ac_word... " >&6; } | |
5823 | if ${ac_cv_prog_AR+:} false; then : | |
5824 | $as_echo_n "(cached) " >&6 | |
5825 | else | |
5826 | if test -n "$AR"; then | |
5827 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5828 | else | |
5829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5830 | for as_dir in $PATH | |
5831 | do | |
5832 | IFS=$as_save_IFS | |
5833 | test -z "$as_dir" && as_dir=. | |
5834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5836 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5838 | break 2 | |
5839 | fi | |
5840 | done | |
5841 | done | |
5842 | IFS=$as_save_IFS | |
5843 | ||
5844 | fi | |
5845 | fi | |
5846 | AR=$ac_cv_prog_AR | |
5847 | if test -n "$AR"; then | |
5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5849 | $as_echo "$AR" >&6; } | |
5850 | else | |
5851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5852 | $as_echo "no" >&6; } | |
5853 | fi | |
5854 | ||
5855 | ||
5856 | test -n "$AR" && break | |
5857 | done | |
5858 | fi | |
5859 | if test -z "$AR"; then | |
5860 | ac_ct_AR=$AR | |
5861 | for ac_prog in ar | |
5862 | do | |
5863 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5864 | set dummy $ac_prog; ac_word=$2 | |
5865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5866 | $as_echo_n "checking for $ac_word... " >&6; } | |
5867 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5868 | $as_echo_n "(cached) " >&6 | |
5869 | else | |
5870 | if test -n "$ac_ct_AR"; then | |
5871 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5872 | else | |
5873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5874 | for as_dir in $PATH | |
5875 | do | |
5876 | IFS=$as_save_IFS | |
5877 | test -z "$as_dir" && as_dir=. | |
5878 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5879 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5880 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5882 | break 2 | |
5883 | fi | |
5884 | done | |
5885 | done | |
5886 | IFS=$as_save_IFS | |
5887 | ||
5888 | fi | |
5889 | fi | |
5890 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5891 | if test -n "$ac_ct_AR"; then | |
5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5893 | $as_echo "$ac_ct_AR" >&6; } | |
5894 | else | |
5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5896 | $as_echo "no" >&6; } | |
5897 | fi | |
5898 | ||
5899 | ||
5900 | test -n "$ac_ct_AR" && break | |
5901 | done | |
5902 | ||
5903 | if test "x$ac_ct_AR" = x; then | |
5904 | AR="false" | |
5905 | else | |
5906 | case $cross_compiling:$ac_tool_warned in | |
5907 | yes:) | |
5908 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5909 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5910 | ac_tool_warned=yes ;; | |
5911 | esac | |
5912 | AR=$ac_ct_AR | |
5913 | fi | |
5914 | fi | |
5915 | ||
5916 | : ${AR=ar} | |
5917 | : ${AR_FLAGS=cru} | |
5918 | ||
5919 | ||
5920 | ||
5921 | ||
5922 | ||
5923 | ||
5924 | ||
5925 | ||
5926 | ||
5927 | ||
5928 | ||
5929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
5930 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5931 | if ${lt_cv_ar_at_file+:} false; then : | |
5932 | $as_echo_n "(cached) " >&6 | |
5933 | else | |
5934 | lt_cv_ar_at_file=no | |
5935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5936 | /* end confdefs.h. */ | |
5937 | ||
5938 | int | |
5939 | main () | |
5940 | { | |
5941 | ||
5942 | ; | |
5943 | return 0; | |
5944 | } | |
5945 | _ACEOF | |
5946 | if ac_fn_c_try_compile "$LINENO"; then : | |
5947 | echo conftest.$ac_objext > conftest.lst | |
5948 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5949 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5950 | (eval $lt_ar_try) 2>&5 | |
5951 | ac_status=$? | |
5952 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5953 | test $ac_status = 0; } | |
5954 | if test 0 -eq "$ac_status"; then | |
5955 | # Ensure the archiver fails upon bogus file names. | |
5956 | rm -f conftest.$ac_objext libconftest.a | |
5957 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5958 | (eval $lt_ar_try) 2>&5 | |
5959 | ac_status=$? | |
5960 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5961 | test $ac_status = 0; } | |
5962 | if test 0 -ne "$ac_status"; then | |
5963 | lt_cv_ar_at_file=@ | |
5964 | fi | |
5965 | fi | |
5966 | rm -f conftest.* libconftest.a | |
5967 | ||
5968 | fi | |
5969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5970 | ||
5971 | fi | |
5972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5973 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
5974 | ||
5975 | if test no = "$lt_cv_ar_at_file"; then | |
5976 | archiver_list_spec= | |
5977 | else | |
5978 | archiver_list_spec=$lt_cv_ar_at_file | |
5979 | fi | |
5980 | ||
5981 | ||
5982 | ||
5983 | ||
5984 | ||
5985 | ||
5986 | ||
5987 | if test -n "$ac_tool_prefix"; then | |
5988 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5989 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5991 | $as_echo_n "checking for $ac_word... " >&6; } | |
5992 | if ${ac_cv_prog_STRIP+:} false; then : | |
5993 | $as_echo_n "(cached) " >&6 | |
5994 | else | |
5995 | if test -n "$STRIP"; then | |
5996 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5997 | else | |
5998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5999 | for as_dir in $PATH | |
6000 | do | |
6001 | IFS=$as_save_IFS | |
6002 | test -z "$as_dir" && as_dir=. | |
6003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6004 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6005 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6007 | break 2 | |
6008 | fi | |
6009 | done | |
6010 | done | |
6011 | IFS=$as_save_IFS | |
6012 | ||
6013 | fi | |
6014 | fi | |
6015 | STRIP=$ac_cv_prog_STRIP | |
6016 | if test -n "$STRIP"; then | |
6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6018 | $as_echo "$STRIP" >&6; } | |
6019 | else | |
6020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6021 | $as_echo "no" >&6; } | |
6022 | fi | |
6023 | ||
6024 | ||
6025 | fi | |
6026 | if test -z "$ac_cv_prog_STRIP"; then | |
6027 | ac_ct_STRIP=$STRIP | |
6028 | # Extract the first word of "strip", so it can be a program name with args. | |
6029 | set dummy strip; ac_word=$2 | |
6030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6031 | $as_echo_n "checking for $ac_word... " >&6; } | |
6032 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
6033 | $as_echo_n "(cached) " >&6 | |
6034 | else | |
6035 | if test -n "$ac_ct_STRIP"; then | |
6036 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6037 | else | |
6038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6039 | for as_dir in $PATH | |
6040 | do | |
6041 | IFS=$as_save_IFS | |
6042 | test -z "$as_dir" && as_dir=. | |
6043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6044 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6045 | ac_cv_prog_ac_ct_STRIP="strip" | |
6046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6047 | break 2 | |
6048 | fi | |
6049 | done | |
6050 | done | |
6051 | IFS=$as_save_IFS | |
6052 | ||
6053 | fi | |
6054 | fi | |
6055 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6056 | if test -n "$ac_ct_STRIP"; then | |
6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6058 | $as_echo "$ac_ct_STRIP" >&6; } | |
6059 | else | |
6060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6061 | $as_echo "no" >&6; } | |
6062 | fi | |
6063 | ||
6064 | if test "x$ac_ct_STRIP" = x; then | |
6065 | STRIP=":" | |
6066 | else | |
6067 | case $cross_compiling:$ac_tool_warned in | |
6068 | yes:) | |
6069 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6070 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6071 | ac_tool_warned=yes ;; | |
6072 | esac | |
6073 | STRIP=$ac_ct_STRIP | |
6074 | fi | |
6075 | else | |
6076 | STRIP="$ac_cv_prog_STRIP" | |
6077 | fi | |
6078 | ||
6079 | test -z "$STRIP" && STRIP=: | |
6080 | ||
6081 | ||
6082 | ||
6083 | ||
6084 | ||
6085 | ||
6086 | if test -n "$ac_tool_prefix"; then | |
6087 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6088 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6090 | $as_echo_n "checking for $ac_word... " >&6; } | |
6091 | if ${ac_cv_prog_RANLIB+:} false; then : | |
6092 | $as_echo_n "(cached) " >&6 | |
6093 | else | |
6094 | if test -n "$RANLIB"; then | |
6095 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6096 | else | |
6097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6098 | for as_dir in $PATH | |
6099 | do | |
6100 | IFS=$as_save_IFS | |
6101 | test -z "$as_dir" && as_dir=. | |
6102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6104 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6106 | break 2 | |
6107 | fi | |
6108 | done | |
6109 | done | |
6110 | IFS=$as_save_IFS | |
6111 | ||
6112 | fi | |
6113 | fi | |
6114 | RANLIB=$ac_cv_prog_RANLIB | |
6115 | if test -n "$RANLIB"; then | |
6116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6117 | $as_echo "$RANLIB" >&6; } | |
6118 | else | |
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6120 | $as_echo "no" >&6; } | |
6121 | fi | |
6122 | ||
6123 | ||
6124 | fi | |
6125 | if test -z "$ac_cv_prog_RANLIB"; then | |
6126 | ac_ct_RANLIB=$RANLIB | |
6127 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6128 | set dummy ranlib; ac_word=$2 | |
6129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6130 | $as_echo_n "checking for $ac_word... " >&6; } | |
6131 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
6132 | $as_echo_n "(cached) " >&6 | |
6133 | else | |
6134 | if test -n "$ac_ct_RANLIB"; then | |
6135 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6136 | else | |
6137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6138 | for as_dir in $PATH | |
6139 | do | |
6140 | IFS=$as_save_IFS | |
6141 | test -z "$as_dir" && as_dir=. | |
6142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6143 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6144 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6146 | break 2 | |
6147 | fi | |
6148 | done | |
6149 | done | |
6150 | IFS=$as_save_IFS | |
6151 | ||
6152 | fi | |
6153 | fi | |
6154 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6155 | if test -n "$ac_ct_RANLIB"; then | |
6156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6157 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6158 | else | |
6159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6160 | $as_echo "no" >&6; } | |
6161 | fi | |
6162 | ||
6163 | if test "x$ac_ct_RANLIB" = x; then | |
6164 | RANLIB=":" | |
6165 | else | |
6166 | case $cross_compiling:$ac_tool_warned in | |
6167 | yes:) | |
6168 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6169 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6170 | ac_tool_warned=yes ;; | |
6171 | esac | |
6172 | RANLIB=$ac_ct_RANLIB | |
6173 | fi | |
6174 | else | |
6175 | RANLIB="$ac_cv_prog_RANLIB" | |
6176 | fi | |
6177 | ||
6178 | test -z "$RANLIB" && RANLIB=: | |
6179 | ||
6180 | ||
6181 | ||
6182 | ||
6183 | ||
6184 | ||
6185 | # Determine commands to create old-style static archives. | |
6186 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6187 | old_postinstall_cmds='chmod 644 $oldlib' | |
6188 | old_postuninstall_cmds= | |
6189 | ||
6190 | if test -n "$RANLIB"; then | |
6191 | case $host_os in | |
6192 | bitrig* | openbsd*) | |
6193 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
6194 | ;; | |
6195 | *) | |
6196 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
6197 | ;; | |
6198 | esac | |
6199 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
6200 | fi | |
6201 | ||
6202 | case $host_os in | |
6203 | darwin*) | |
6204 | lock_old_archive_extraction=yes ;; | |
6205 | *) | |
6206 | lock_old_archive_extraction=no ;; | |
6207 | esac | |
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 | ||
6247 | # If no C compiler was specified, use CC. | |
6248 | LTCC=${LTCC-"$CC"} | |
6249 | ||
6250 | # If no C compiler flags were specified, use CFLAGS. | |
6251 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6252 | ||
6253 | # Allow CC to be a program name with arguments. | |
6254 | compiler=$CC | |
6255 | ||
6256 | ||
6257 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6259 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6260 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
6261 | $as_echo_n "(cached) " >&6 | |
6262 | else | |
6263 | ||
6264 | # These are sane defaults that work on at least a few old systems. | |
6265 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6266 | ||
6267 | # Character class describing NM global symbol codes. | |
6268 | symcode='[BCDEGRST]' | |
6269 | ||
6270 | # Regexp to match symbols that can be accessed directly from C. | |
6271 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6272 | ||
6273 | # Define system-specific variables. | |
6274 | case $host_os in | |
6275 | aix*) | |
6276 | symcode='[BCDT]' | |
6277 | ;; | |
6278 | cygwin* | mingw* | pw32* | cegcc*) | |
6279 | symcode='[ABCDGISTW]' | |
6280 | ;; | |
6281 | hpux*) | |
6282 | if test ia64 = "$host_cpu"; then | |
6283 | symcode='[ABCDEGRST]' | |
6284 | fi | |
6285 | ;; | |
6286 | irix* | nonstopux*) | |
6287 | symcode='[BCDEGRST]' | |
6288 | ;; | |
6289 | osf*) | |
6290 | symcode='[BCDEGQRST]' | |
6291 | ;; | |
6292 | solaris*) | |
6293 | symcode='[BDRT]' | |
6294 | ;; | |
6295 | sco3.2v5*) | |
6296 | symcode='[DT]' | |
6297 | ;; | |
6298 | sysv4.2uw2*) | |
6299 | symcode='[DT]' | |
6300 | ;; | |
6301 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6302 | symcode='[ABDT]' | |
6303 | ;; | |
6304 | sysv4) | |
6305 | symcode='[DFNSTU]' | |
6306 | ;; | |
6307 | esac | |
6308 | ||
6309 | # If we're using GNU nm, then use its standard symbol codes. | |
6310 | case `$NM -V 2>&1` in | |
6311 | *GNU* | *'with BFD'*) | |
6312 | symcode='[ABCDGIRSTW]' ;; | |
6313 | esac | |
6314 | ||
6315 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6316 | # Gets list of data symbols to import. | |
6317 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
6318 | # Adjust the below global symbol transforms to fixup imported variables. | |
6319 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
6320 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
6321 | lt_c_name_lib_hook="\ | |
6322 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
6323 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
6324 | else | |
6325 | # Disable hooks by default. | |
6326 | lt_cv_sys_global_symbol_to_import= | |
6327 | lt_cdecl_hook= | |
6328 | lt_c_name_hook= | |
6329 | lt_c_name_lib_hook= | |
6330 | fi | |
6331 | ||
6332 | # Transform an extracted symbol line into a proper C declaration. | |
6333 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6334 | # so use this general approach. | |
6335 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ | |
6336 | $lt_cdecl_hook\ | |
6337 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
6338 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
6339 | ||
6340 | # Transform an extracted symbol line into symbol name and symbol address | |
6341 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ | |
6342 | $lt_c_name_hook\ | |
6343 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6344 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
6345 | ||
6346 | # Transform an extracted symbol line into symbol name with lib prefix and | |
6347 | # symbol address. | |
6348 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
6349 | $lt_c_name_lib_hook\ | |
6350 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6351 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
6352 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
6353 | ||
6354 | # Handle CRLF in mingw tool chain | |
6355 | opt_cr= | |
6356 | case $build_os in | |
6357 | mingw*) | |
6358 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6359 | ;; | |
6360 | esac | |
6361 | ||
6362 | # Try without a prefix underscore, then with it. | |
6363 | for ac_symprfx in "" "_"; do | |
6364 | ||
6365 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6366 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6367 | ||
6368 | # Write the raw and C identifiers. | |
6369 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6370 | # Fake it for dumpbin and say T for any non-static function, | |
6371 | # D for any global variable and I for any imported variable. | |
6372 | # Also find C++ and __fastcall symbols from MSVC++, | |
6373 | # which start with @ or ?. | |
6374 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6375 | " {last_section=section; section=\$ 3};"\ | |
6376 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
6377 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6378 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ | |
6379 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
6380 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
6381 | " \$ 0!~/External *\|/{next};"\ | |
6382 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6383 | " {if(hide[section]) next};"\ | |
6384 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ | |
6385 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
6386 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
6387 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
6388 | " ' prfx=^$ac_symprfx" | |
6389 | else | |
6390 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6391 | fi | |
6392 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
6393 | ||
6394 | # Check to see that the pipe works correctly. | |
6395 | pipe_works=no | |
6396 | ||
6397 | rm -f conftest* | |
6398 | cat > conftest.$ac_ext <<_LT_EOF | |
6399 | #ifdef __cplusplus | |
6400 | extern "C" { | |
6401 | #endif | |
6402 | char nm_test_var; | |
6403 | void nm_test_func(void); | |
6404 | void nm_test_func(void){} | |
6405 | #ifdef __cplusplus | |
6406 | } | |
6407 | #endif | |
6408 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6409 | _LT_EOF | |
6410 | ||
6411 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6412 | (eval $ac_compile) 2>&5 | |
6413 | ac_status=$? | |
6414 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6415 | test $ac_status = 0; }; then | |
6416 | # Now try to grab the symbols. | |
6417 | nlist=conftest.nm | |
6418 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6419 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6420 | ac_status=$? | |
6421 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6422 | test $ac_status = 0; } && test -s "$nlist"; then | |
6423 | # Try sorting and uniquifying the output. | |
6424 | if sort "$nlist" | uniq > "$nlist"T; then | |
6425 | mv -f "$nlist"T "$nlist" | |
6426 | else | |
6427 | rm -f "$nlist"T | |
6428 | fi | |
6429 | ||
6430 | # Make sure that we snagged all the symbols we need. | |
6431 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6432 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6433 | cat <<_LT_EOF > conftest.$ac_ext | |
6434 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
6435 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE | |
6436 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
6437 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
6438 | # define LT_DLSYM_CONST | |
6439 | #elif defined __osf__ | |
6440 | /* This system does not cope well with relocations in const data. */ | |
6441 | # define LT_DLSYM_CONST | |
6442 | #else | |
6443 | # define LT_DLSYM_CONST const | |
6444 | #endif | |
6445 | ||
6446 | #ifdef __cplusplus | |
6447 | extern "C" { | |
6448 | #endif | |
6449 | ||
6450 | _LT_EOF | |
6451 | # Now generate the symbol file. | |
6452 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6453 | ||
6454 | cat <<_LT_EOF >> conftest.$ac_ext | |
6455 | ||
6456 | /* The mapping between symbol names and symbols. */ | |
6457 | LT_DLSYM_CONST struct { | |
6458 | const char *name; | |
6459 | void *address; | |
6460 | } | |
6461 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6462 | { | |
6463 | { "@PROGRAM@", (void *) 0 }, | |
6464 | _LT_EOF | |
6465 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6466 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6467 | {0, (void *) 0} | |
6468 | }; | |
6469 | ||
6470 | /* This works around a problem in FreeBSD linker */ | |
6471 | #ifdef FREEBSD_WORKAROUND | |
6472 | static const void *lt_preloaded_setup() { | |
6473 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6474 | } | |
6475 | #endif | |
6476 | ||
6477 | #ifdef __cplusplus | |
6478 | } | |
6479 | #endif | |
6480 | _LT_EOF | |
6481 | # Now try linking the two files. | |
6482 | mv conftest.$ac_objext conftstm.$ac_objext | |
6483 | lt_globsym_save_LIBS=$LIBS | |
6484 | lt_globsym_save_CFLAGS=$CFLAGS | |
6485 | LIBS=conftstm.$ac_objext | |
6486 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6487 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6488 | (eval $ac_link) 2>&5 | |
6489 | ac_status=$? | |
6490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6491 | test $ac_status = 0; } && test -s conftest$ac_exeext; then | |
6492 | pipe_works=yes | |
6493 | fi | |
6494 | LIBS=$lt_globsym_save_LIBS | |
6495 | CFLAGS=$lt_globsym_save_CFLAGS | |
6496 | else | |
6497 | echo "cannot find nm_test_func in $nlist" >&5 | |
6498 | fi | |
6499 | else | |
6500 | echo "cannot find nm_test_var in $nlist" >&5 | |
6501 | fi | |
6502 | else | |
6503 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6504 | fi | |
6505 | else | |
6506 | echo "$progname: failed program was:" >&5 | |
6507 | cat conftest.$ac_ext >&5 | |
6508 | fi | |
6509 | rm -rf conftest* conftst* | |
6510 | ||
6511 | # Do not use the global_symbol_pipe unless it works. | |
6512 | if test yes = "$pipe_works"; then | |
6513 | break | |
6514 | else | |
6515 | lt_cv_sys_global_symbol_pipe= | |
6516 | fi | |
6517 | done | |
6518 | ||
6519 | fi | |
6520 | ||
6521 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6522 | lt_cv_sys_global_symbol_to_cdecl= | |
6523 | fi | |
6524 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6526 | $as_echo "failed" >&6; } | |
6527 | else | |
6528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6529 | $as_echo "ok" >&6; } | |
6530 | fi | |
6531 | ||
6532 | # Response file support. | |
6533 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6534 | nm_file_list_spec='@' | |
6535 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6536 | nm_file_list_spec='@' | |
6537 | fi | |
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 | ||
6575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6576 | $as_echo_n "checking for sysroot... " >&6; } | |
6577 | ||
6578 | # Check whether --with-sysroot was given. | |
6579 | if test "${with_sysroot+set}" = set; then : | |
6580 | withval=$with_sysroot; | |
6581 | else | |
6582 | with_sysroot=no | |
6583 | fi | |
6584 | ||
6585 | ||
6586 | lt_sysroot= | |
6587 | case $with_sysroot in #( | |
6588 | yes) | |
6589 | if test yes = "$GCC"; then | |
6590 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
6591 | fi | |
6592 | ;; #( | |
6593 | /*) | |
6594 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6595 | ;; #( | |
6596 | no|'') | |
6597 | ;; #( | |
6598 | *) | |
6599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 | |
6600 | $as_echo "$with_sysroot" >&6; } | |
6601 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
6602 | ;; | |
6603 | esac | |
6604 | ||
6605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6606 | $as_echo "${lt_sysroot:-no}" >&6; } | |
6607 | ||
6608 | ||
6609 | ||
6610 | ||
6611 | ||
6612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 | |
6613 | $as_echo_n "checking for a working dd... " >&6; } | |
6614 | if ${ac_cv_path_lt_DD+:} false; then : | |
6615 | $as_echo_n "(cached) " >&6 | |
6616 | else | |
6617 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6618 | cat conftest.i conftest.i >conftest2.i | |
6619 | : ${lt_DD:=$DD} | |
6620 | if test -z "$lt_DD"; then | |
6621 | ac_path_lt_DD_found=false | |
6622 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6624 | for as_dir in $PATH | |
6625 | do | |
6626 | IFS=$as_save_IFS | |
6627 | test -z "$as_dir" && as_dir=. | |
6628 | for ac_prog in dd; do | |
6629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6630 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
6631 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
6632 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6633 | cmp -s conftest.i conftest.out \ | |
6634 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
6635 | fi | |
6636 | $ac_path_lt_DD_found && break 3 | |
6637 | done | |
6638 | done | |
6639 | done | |
6640 | IFS=$as_save_IFS | |
6641 | if test -z "$ac_cv_path_lt_DD"; then | |
6642 | : | |
6643 | fi | |
6644 | else | |
6645 | ac_cv_path_lt_DD=$lt_DD | |
6646 | fi | |
6647 | ||
6648 | rm -f conftest.i conftest2.i conftest.out | |
6649 | fi | |
6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
6651 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
6652 | ||
6653 | ||
6654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
6655 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
6656 | if ${lt_cv_truncate_bin+:} false; then : | |
6657 | $as_echo_n "(cached) " >&6 | |
6658 | else | |
6659 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6660 | cat conftest.i conftest.i >conftest2.i | |
6661 | lt_cv_truncate_bin= | |
6662 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6663 | cmp -s conftest.i conftest.out \ | |
6664 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
6665 | fi | |
6666 | rm -f conftest.i conftest2.i conftest.out | |
6667 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
6668 | fi | |
6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
6670 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
6671 | ||
6672 | ||
6673 | ||
6674 | ||
6675 | ||
6676 | ||
6677 | ||
6678 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
6679 | func_cc_basename () | |
6680 | { | |
6681 | for cc_temp in $*""; do | |
6682 | case $cc_temp in | |
6683 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6684 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6685 | \-*) ;; | |
6686 | *) break;; | |
6687 | esac | |
6688 | done | |
6689 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
6690 | } | |
6691 | ||
6692 | # Check whether --enable-libtool-lock was given. | |
6693 | if test "${enable_libtool_lock+set}" = set; then : | |
6694 | enableval=$enable_libtool_lock; | |
6695 | fi | |
6696 | ||
6697 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes | |
6698 | ||
6699 | # Some flags need to be propagated to the compiler or linker for good | |
6700 | # libtool support. | |
6701 | case $host in | |
6702 | ia64-*-hpux*) | |
6703 | # Find out what ABI is being produced by ac_compile, and set mode | |
6704 | # options accordingly. | |
6705 | echo 'int i;' > conftest.$ac_ext | |
6706 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6707 | (eval $ac_compile) 2>&5 | |
6708 | ac_status=$? | |
6709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6710 | test $ac_status = 0; }; then | |
6711 | case `/usr/bin/file conftest.$ac_objext` in | |
6712 | *ELF-32*) | |
6713 | HPUX_IA64_MODE=32 | |
6714 | ;; | |
6715 | *ELF-64*) | |
6716 | HPUX_IA64_MODE=64 | |
6717 | ;; | |
6718 | esac | |
6719 | fi | |
6720 | rm -rf conftest* | |
6721 | ;; | |
6722 | *-*-irix6*) | |
6723 | # Find out what ABI is being produced by ac_compile, and set linker | |
6724 | # options accordingly. | |
6725 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6726 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6727 | (eval $ac_compile) 2>&5 | |
6728 | ac_status=$? | |
6729 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6730 | test $ac_status = 0; }; then | |
6731 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
6732 | case `/usr/bin/file conftest.$ac_objext` in | |
6733 | *32-bit*) | |
6734 | LD="${LD-ld} -melf32bsmip" | |
6735 | ;; | |
6736 | *N32*) | |
6737 | LD="${LD-ld} -melf32bmipn32" | |
6738 | ;; | |
6739 | *64-bit*) | |
6740 | LD="${LD-ld} -melf64bmip" | |
6741 | ;; | |
6742 | esac | |
6743 | else | |
6744 | case `/usr/bin/file conftest.$ac_objext` in | |
6745 | *32-bit*) | |
6746 | LD="${LD-ld} -32" | |
6747 | ;; | |
6748 | *N32*) | |
6749 | LD="${LD-ld} -n32" | |
6750 | ;; | |
6751 | *64-bit*) | |
6752 | LD="${LD-ld} -64" | |
6753 | ;; | |
6754 | esac | |
6755 | fi | |
6756 | fi | |
6757 | rm -rf conftest* | |
6758 | ;; | |
6759 | ||
6760 | mips64*-*linux*) | |
6761 | # Find out what ABI is being produced by ac_compile, and set linker | |
6762 | # options accordingly. | |
6763 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6764 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6765 | (eval $ac_compile) 2>&5 | |
6766 | ac_status=$? | |
6767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6768 | test $ac_status = 0; }; then | |
6769 | emul=elf | |
6770 | case `/usr/bin/file conftest.$ac_objext` in | |
6771 | *32-bit*) | |
6772 | emul="${emul}32" | |
6773 | ;; | |
6774 | *64-bit*) | |
6775 | emul="${emul}64" | |
6776 | ;; | |
6777 | esac | |
6778 | case `/usr/bin/file conftest.$ac_objext` in | |
6779 | *MSB*) | |
6780 | emul="${emul}btsmip" | |
6781 | ;; | |
6782 | *LSB*) | |
6783 | emul="${emul}ltsmip" | |
6784 | ;; | |
6785 | esac | |
6786 | case `/usr/bin/file conftest.$ac_objext` in | |
6787 | *N32*) | |
6788 | emul="${emul}n32" | |
6789 | ;; | |
6790 | esac | |
6791 | LD="${LD-ld} -m $emul" | |
6792 | fi | |
6793 | rm -rf conftest* | |
6794 | ;; | |
6795 | ||
6796 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
6797 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6798 | # Find out what ABI is being produced by ac_compile, and set linker | |
6799 | # options accordingly. Note that the listed cases only cover the | |
6800 | # situations where additional linker options are needed (such as when | |
6801 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
6802 | # vice versa); the common cases where no linker options are needed do | |
6803 | # not appear in the list. | |
6804 | echo 'int i;' > conftest.$ac_ext | |
6805 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6806 | (eval $ac_compile) 2>&5 | |
6807 | ac_status=$? | |
6808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6809 | test $ac_status = 0; }; then | |
6810 | case `/usr/bin/file conftest.o` in | |
6811 | *32-bit*) | |
6812 | case $host in | |
6813 | x86_64-*kfreebsd*-gnu) | |
6814 | LD="${LD-ld} -m elf_i386_fbsd" | |
6815 | ;; | |
6816 | x86_64-*linux*) | |
6817 | case `/usr/bin/file conftest.o` in | |
6818 | *x86-64*) | |
6819 | LD="${LD-ld} -m elf32_x86_64" | |
6820 | ;; | |
6821 | *) | |
6822 | LD="${LD-ld} -m elf_i386" | |
6823 | ;; | |
6824 | esac | |
6825 | ;; | |
6826 | powerpc64le-*linux*) | |
6827 | LD="${LD-ld} -m elf32lppclinux" | |
6828 | ;; | |
6829 | powerpc64-*linux*) | |
6830 | LD="${LD-ld} -m elf32ppclinux" | |
6831 | ;; | |
6832 | s390x-*linux*) | |
6833 | LD="${LD-ld} -m elf_s390" | |
6834 | ;; | |
6835 | sparc64-*linux*) | |
6836 | LD="${LD-ld} -m elf32_sparc" | |
6837 | ;; | |
6838 | esac | |
6839 | ;; | |
6840 | *64-bit*) | |
6841 | case $host in | |
6842 | x86_64-*kfreebsd*-gnu) | |
6843 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6844 | ;; | |
6845 | x86_64-*linux*) | |
6846 | LD="${LD-ld} -m elf_x86_64" | |
6847 | ;; | |
6848 | powerpcle-*linux*) | |
6849 | LD="${LD-ld} -m elf64lppc" | |
6850 | ;; | |
6851 | powerpc-*linux*) | |
6852 | LD="${LD-ld} -m elf64ppc" | |
6853 | ;; | |
6854 | s390*-*linux*|s390*-*tpf*) | |
6855 | LD="${LD-ld} -m elf64_s390" | |
6856 | ;; | |
6857 | sparc*-*linux*) | |
6858 | LD="${LD-ld} -m elf64_sparc" | |
6859 | ;; | |
6860 | esac | |
6861 | ;; | |
6862 | esac | |
6863 | fi | |
6864 | rm -rf conftest* | |
6865 | ;; | |
6866 | ||
6867 | *-*-sco3.2v5*) | |
6868 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6869 | SAVE_CFLAGS=$CFLAGS | |
6870 | CFLAGS="$CFLAGS -belf" | |
6871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6872 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6873 | if ${lt_cv_cc_needs_belf+:} false; then : | |
6874 | $as_echo_n "(cached) " >&6 | |
6875 | else | |
6876 | ac_ext=c | |
6877 | ac_cpp='$CPP $CPPFLAGS' | |
6878 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6879 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6880 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6881 | ||
6882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6883 | /* end confdefs.h. */ | |
6884 | ||
6885 | int | |
6886 | main () | |
6887 | { | |
6888 | ||
6889 | ; | |
6890 | return 0; | |
6891 | } | |
6892 | _ACEOF | |
6893 | if ac_fn_c_try_link "$LINENO"; then : | |
6894 | lt_cv_cc_needs_belf=yes | |
6895 | else | |
6896 | lt_cv_cc_needs_belf=no | |
6897 | fi | |
6898 | rm -f core conftest.err conftest.$ac_objext \ | |
6899 | conftest$ac_exeext conftest.$ac_ext | |
6900 | ac_ext=c | |
6901 | ac_cpp='$CPP $CPPFLAGS' | |
6902 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6903 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6904 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6905 | ||
6906 | fi | |
6907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6908 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6909 | if test yes != "$lt_cv_cc_needs_belf"; then | |
6910 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6911 | CFLAGS=$SAVE_CFLAGS | |
6912 | fi | |
6913 | ;; | |
6914 | *-*solaris*) | |
6915 | # Find out what ABI is being produced by ac_compile, and set linker | |
6916 | # options accordingly. | |
6917 | echo 'int i;' > conftest.$ac_ext | |
6918 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6919 | (eval $ac_compile) 2>&5 | |
6920 | ac_status=$? | |
6921 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6922 | test $ac_status = 0; }; then | |
6923 | case `/usr/bin/file conftest.o` in | |
6924 | *64-bit*) | |
6925 | case $lt_cv_prog_gnu_ld in | |
6926 | yes*) | |
6927 | case $host in | |
6928 | i?86-*-solaris*|x86_64-*-solaris*) | |
6929 | LD="${LD-ld} -m elf_x86_64" | |
6930 | ;; | |
6931 | sparc*-*-solaris*) | |
6932 | LD="${LD-ld} -m elf64_sparc" | |
6933 | ;; | |
6934 | esac | |
6935 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6936 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
6937 | LD=${LD-ld}_sol2 | |
6938 | fi | |
6939 | ;; | |
6940 | *) | |
6941 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6942 | LD="${LD-ld} -64" | |
6943 | fi | |
6944 | ;; | |
6945 | esac | |
6946 | ;; | |
6947 | esac | |
6948 | fi | |
6949 | rm -rf conftest* | |
6950 | ;; | |
6951 | esac | |
6952 | ||
6953 | need_locks=$enable_libtool_lock | |
6954 | ||
6955 | if test -n "$ac_tool_prefix"; then | |
6956 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6957 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6959 | $as_echo_n "checking for $ac_word... " >&6; } | |
6960 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6961 | $as_echo_n "(cached) " >&6 | |
6962 | else | |
6963 | if test -n "$MANIFEST_TOOL"; then | |
6964 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6965 | else | |
6966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6967 | for as_dir in $PATH | |
6968 | do | |
6969 | IFS=$as_save_IFS | |
6970 | test -z "$as_dir" && as_dir=. | |
6971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6972 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6973 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6975 | break 2 | |
6976 | fi | |
6977 | done | |
6978 | done | |
6979 | IFS=$as_save_IFS | |
6980 | ||
6981 | fi | |
6982 | fi | |
6983 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6984 | if test -n "$MANIFEST_TOOL"; then | |
6985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6986 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6987 | else | |
6988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6989 | $as_echo "no" >&6; } | |
6990 | fi | |
6991 | ||
6992 | ||
6993 | fi | |
6994 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6995 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6996 | # Extract the first word of "mt", so it can be a program name with args. | |
6997 | set dummy mt; ac_word=$2 | |
6998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6999 | $as_echo_n "checking for $ac_word... " >&6; } | |
7000 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7001 | $as_echo_n "(cached) " >&6 | |
7002 | else | |
7003 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7004 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7005 | else | |
7006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7007 | for as_dir in $PATH | |
7008 | do | |
7009 | IFS=$as_save_IFS | |
7010 | test -z "$as_dir" && as_dir=. | |
7011 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7012 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7013 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7015 | break 2 | |
7016 | fi | |
7017 | done | |
7018 | done | |
7019 | IFS=$as_save_IFS | |
7020 | ||
7021 | fi | |
7022 | fi | |
7023 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7024 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7026 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7027 | else | |
7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7029 | $as_echo "no" >&6; } | |
7030 | fi | |
7031 | ||
7032 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
7033 | MANIFEST_TOOL=":" | |
7034 | else | |
7035 | case $cross_compiling:$ac_tool_warned in | |
7036 | yes:) | |
7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7038 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7039 | ac_tool_warned=yes ;; | |
7040 | esac | |
7041 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7042 | fi | |
7043 | else | |
7044 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7045 | fi | |
7046 | ||
7047 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
7048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7049 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7050 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7051 | $as_echo_n "(cached) " >&6 | |
7052 | else | |
7053 | lt_cv_path_mainfest_tool=no | |
7054 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7055 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7056 | cat conftest.err >&5 | |
7057 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7058 | lt_cv_path_mainfest_tool=yes | |
7059 | fi | |
7060 | rm -f conftest* | |
7061 | fi | |
7062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7063 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7064 | if test yes != "$lt_cv_path_mainfest_tool"; then | |
7065 | MANIFEST_TOOL=: | |
7066 | fi | |
7067 | ||
7068 | ||
7069 | ||
7070 | ||
7071 | ||
7072 | ||
7073 | case $host_os in | |
7074 | rhapsody* | darwin*) | |
7075 | if test -n "$ac_tool_prefix"; then | |
7076 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7077 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7079 | $as_echo_n "checking for $ac_word... " >&6; } | |
7080 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7081 | $as_echo_n "(cached) " >&6 | |
7082 | else | |
7083 | if test -n "$DSYMUTIL"; then | |
7084 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7085 | else | |
7086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7087 | for as_dir in $PATH | |
7088 | do | |
7089 | IFS=$as_save_IFS | |
7090 | test -z "$as_dir" && as_dir=. | |
7091 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7092 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7093 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7095 | break 2 | |
7096 | fi | |
7097 | done | |
7098 | done | |
7099 | IFS=$as_save_IFS | |
7100 | ||
7101 | fi | |
7102 | fi | |
7103 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7104 | if test -n "$DSYMUTIL"; then | |
7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7106 | $as_echo "$DSYMUTIL" >&6; } | |
7107 | else | |
7108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7109 | $as_echo "no" >&6; } | |
7110 | fi | |
7111 | ||
7112 | ||
7113 | fi | |
7114 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7115 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7116 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7117 | set dummy dsymutil; ac_word=$2 | |
7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7119 | $as_echo_n "checking for $ac_word... " >&6; } | |
7120 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7121 | $as_echo_n "(cached) " >&6 | |
7122 | else | |
7123 | if test -n "$ac_ct_DSYMUTIL"; then | |
7124 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7125 | else | |
7126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7127 | for as_dir in $PATH | |
7128 | do | |
7129 | IFS=$as_save_IFS | |
7130 | test -z "$as_dir" && as_dir=. | |
7131 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7132 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7133 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7135 | break 2 | |
7136 | fi | |
7137 | done | |
7138 | done | |
7139 | IFS=$as_save_IFS | |
7140 | ||
7141 | fi | |
7142 | fi | |
7143 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7144 | if test -n "$ac_ct_DSYMUTIL"; then | |
7145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7146 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7147 | else | |
7148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7149 | $as_echo "no" >&6; } | |
7150 | fi | |
7151 | ||
7152 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7153 | DSYMUTIL=":" | |
7154 | else | |
7155 | case $cross_compiling:$ac_tool_warned in | |
7156 | yes:) | |
7157 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7158 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7159 | ac_tool_warned=yes ;; | |
7160 | esac | |
7161 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7162 | fi | |
7163 | else | |
7164 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7165 | fi | |
7166 | ||
7167 | if test -n "$ac_tool_prefix"; then | |
7168 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7169 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7171 | $as_echo_n "checking for $ac_word... " >&6; } | |
7172 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
7173 | $as_echo_n "(cached) " >&6 | |
7174 | else | |
7175 | if test -n "$NMEDIT"; then | |
7176 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7177 | else | |
7178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7179 | for as_dir in $PATH | |
7180 | do | |
7181 | IFS=$as_save_IFS | |
7182 | test -z "$as_dir" && as_dir=. | |
7183 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7184 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7185 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7187 | break 2 | |
7188 | fi | |
7189 | done | |
7190 | done | |
7191 | IFS=$as_save_IFS | |
7192 | ||
7193 | fi | |
7194 | fi | |
7195 | NMEDIT=$ac_cv_prog_NMEDIT | |
7196 | if test -n "$NMEDIT"; then | |
7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7198 | $as_echo "$NMEDIT" >&6; } | |
7199 | else | |
7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7201 | $as_echo "no" >&6; } | |
7202 | fi | |
7203 | ||
7204 | ||
7205 | fi | |
7206 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7207 | ac_ct_NMEDIT=$NMEDIT | |
7208 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7209 | set dummy nmedit; ac_word=$2 | |
7210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7211 | $as_echo_n "checking for $ac_word... " >&6; } | |
7212 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7213 | $as_echo_n "(cached) " >&6 | |
7214 | else | |
7215 | if test -n "$ac_ct_NMEDIT"; then | |
7216 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7217 | else | |
7218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7219 | for as_dir in $PATH | |
7220 | do | |
7221 | IFS=$as_save_IFS | |
7222 | test -z "$as_dir" && as_dir=. | |
7223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7225 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7227 | break 2 | |
7228 | fi | |
7229 | done | |
7230 | done | |
7231 | IFS=$as_save_IFS | |
7232 | ||
7233 | fi | |
7234 | fi | |
7235 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7236 | if test -n "$ac_ct_NMEDIT"; then | |
7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7238 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7239 | else | |
7240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7241 | $as_echo "no" >&6; } | |
7242 | fi | |
7243 | ||
7244 | if test "x$ac_ct_NMEDIT" = x; then | |
7245 | NMEDIT=":" | |
7246 | else | |
7247 | case $cross_compiling:$ac_tool_warned in | |
7248 | yes:) | |
7249 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7250 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7251 | ac_tool_warned=yes ;; | |
7252 | esac | |
7253 | NMEDIT=$ac_ct_NMEDIT | |
7254 | fi | |
7255 | else | |
7256 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7257 | fi | |
7258 | ||
7259 | if test -n "$ac_tool_prefix"; then | |
7260 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7261 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7263 | $as_echo_n "checking for $ac_word... " >&6; } | |
7264 | if ${ac_cv_prog_LIPO+:} false; then : | |
7265 | $as_echo_n "(cached) " >&6 | |
7266 | else | |
7267 | if test -n "$LIPO"; then | |
7268 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7269 | else | |
7270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7271 | for as_dir in $PATH | |
7272 | do | |
7273 | IFS=$as_save_IFS | |
7274 | test -z "$as_dir" && as_dir=. | |
7275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7277 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7279 | break 2 | |
7280 | fi | |
7281 | done | |
7282 | done | |
7283 | IFS=$as_save_IFS | |
7284 | ||
7285 | fi | |
7286 | fi | |
7287 | LIPO=$ac_cv_prog_LIPO | |
7288 | if test -n "$LIPO"; then | |
7289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7290 | $as_echo "$LIPO" >&6; } | |
7291 | else | |
7292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7293 | $as_echo "no" >&6; } | |
7294 | fi | |
7295 | ||
7296 | ||
7297 | fi | |
7298 | if test -z "$ac_cv_prog_LIPO"; then | |
7299 | ac_ct_LIPO=$LIPO | |
7300 | # Extract the first word of "lipo", so it can be a program name with args. | |
7301 | set dummy lipo; ac_word=$2 | |
7302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7303 | $as_echo_n "checking for $ac_word... " >&6; } | |
7304 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7305 | $as_echo_n "(cached) " >&6 | |
7306 | else | |
7307 | if test -n "$ac_ct_LIPO"; then | |
7308 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7309 | else | |
7310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7311 | for as_dir in $PATH | |
7312 | do | |
7313 | IFS=$as_save_IFS | |
7314 | test -z "$as_dir" && as_dir=. | |
7315 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7316 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7317 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7319 | break 2 | |
7320 | fi | |
7321 | done | |
7322 | done | |
7323 | IFS=$as_save_IFS | |
7324 | ||
7325 | fi | |
7326 | fi | |
7327 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7328 | if test -n "$ac_ct_LIPO"; then | |
7329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7330 | $as_echo "$ac_ct_LIPO" >&6; } | |
7331 | else | |
7332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7333 | $as_echo "no" >&6; } | |
7334 | fi | |
7335 | ||
7336 | if test "x$ac_ct_LIPO" = x; then | |
7337 | LIPO=":" | |
7338 | else | |
7339 | case $cross_compiling:$ac_tool_warned in | |
7340 | yes:) | |
7341 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7342 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7343 | ac_tool_warned=yes ;; | |
7344 | esac | |
7345 | LIPO=$ac_ct_LIPO | |
7346 | fi | |
7347 | else | |
7348 | LIPO="$ac_cv_prog_LIPO" | |
7349 | fi | |
7350 | ||
7351 | if test -n "$ac_tool_prefix"; then | |
7352 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7353 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7355 | $as_echo_n "checking for $ac_word... " >&6; } | |
7356 | if ${ac_cv_prog_OTOOL+:} false; then : | |
7357 | $as_echo_n "(cached) " >&6 | |
7358 | else | |
7359 | if test -n "$OTOOL"; then | |
7360 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7361 | else | |
7362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7363 | for as_dir in $PATH | |
7364 | do | |
7365 | IFS=$as_save_IFS | |
7366 | test -z "$as_dir" && as_dir=. | |
7367 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7368 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7369 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7371 | break 2 | |
7372 | fi | |
7373 | done | |
7374 | done | |
7375 | IFS=$as_save_IFS | |
7376 | ||
7377 | fi | |
7378 | fi | |
7379 | OTOOL=$ac_cv_prog_OTOOL | |
7380 | if test -n "$OTOOL"; then | |
7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7382 | $as_echo "$OTOOL" >&6; } | |
7383 | else | |
7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7385 | $as_echo "no" >&6; } | |
7386 | fi | |
7387 | ||
7388 | ||
7389 | fi | |
7390 | if test -z "$ac_cv_prog_OTOOL"; then | |
7391 | ac_ct_OTOOL=$OTOOL | |
7392 | # Extract the first word of "otool", so it can be a program name with args. | |
7393 | set dummy otool; ac_word=$2 | |
7394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7395 | $as_echo_n "checking for $ac_word... " >&6; } | |
7396 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7397 | $as_echo_n "(cached) " >&6 | |
7398 | else | |
7399 | if test -n "$ac_ct_OTOOL"; then | |
7400 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7401 | else | |
7402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7403 | for as_dir in $PATH | |
7404 | do | |
7405 | IFS=$as_save_IFS | |
7406 | test -z "$as_dir" && as_dir=. | |
7407 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7408 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7409 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7410 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7411 | break 2 | |
7412 | fi | |
7413 | done | |
7414 | done | |
7415 | IFS=$as_save_IFS | |
7416 | ||
7417 | fi | |
7418 | fi | |
7419 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7420 | if test -n "$ac_ct_OTOOL"; then | |
7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7422 | $as_echo "$ac_ct_OTOOL" >&6; } | |
7423 | else | |
7424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7425 | $as_echo "no" >&6; } | |
7426 | fi | |
7427 | ||
7428 | if test "x$ac_ct_OTOOL" = x; then | |
7429 | OTOOL=":" | |
7430 | else | |
7431 | case $cross_compiling:$ac_tool_warned in | |
7432 | yes:) | |
7433 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7434 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7435 | ac_tool_warned=yes ;; | |
7436 | esac | |
7437 | OTOOL=$ac_ct_OTOOL | |
7438 | fi | |
7439 | else | |
7440 | OTOOL="$ac_cv_prog_OTOOL" | |
7441 | fi | |
7442 | ||
7443 | if test -n "$ac_tool_prefix"; then | |
7444 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7445 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7447 | $as_echo_n "checking for $ac_word... " >&6; } | |
7448 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
7449 | $as_echo_n "(cached) " >&6 | |
7450 | else | |
7451 | if test -n "$OTOOL64"; then | |
7452 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7453 | else | |
7454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7455 | for as_dir in $PATH | |
7456 | do | |
7457 | IFS=$as_save_IFS | |
7458 | test -z "$as_dir" && as_dir=. | |
7459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7460 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7461 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7463 | break 2 | |
7464 | fi | |
7465 | done | |
7466 | done | |
7467 | IFS=$as_save_IFS | |
7468 | ||
7469 | fi | |
7470 | fi | |
7471 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7472 | if test -n "$OTOOL64"; then | |
7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7474 | $as_echo "$OTOOL64" >&6; } | |
7475 | else | |
7476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7477 | $as_echo "no" >&6; } | |
7478 | fi | |
7479 | ||
7480 | ||
7481 | fi | |
7482 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7483 | ac_ct_OTOOL64=$OTOOL64 | |
7484 | # Extract the first word of "otool64", so it can be a program name with args. | |
7485 | set dummy otool64; ac_word=$2 | |
7486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7487 | $as_echo_n "checking for $ac_word... " >&6; } | |
7488 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
7489 | $as_echo_n "(cached) " >&6 | |
7490 | else | |
7491 | if test -n "$ac_ct_OTOOL64"; then | |
7492 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7493 | else | |
7494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7495 | for as_dir in $PATH | |
7496 | do | |
7497 | IFS=$as_save_IFS | |
7498 | test -z "$as_dir" && as_dir=. | |
7499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7500 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7501 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7503 | break 2 | |
7504 | fi | |
7505 | done | |
7506 | done | |
7507 | IFS=$as_save_IFS | |
7508 | ||
7509 | fi | |
7510 | fi | |
7511 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7512 | if test -n "$ac_ct_OTOOL64"; then | |
7513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7514 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
7515 | else | |
7516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7517 | $as_echo "no" >&6; } | |
7518 | fi | |
7519 | ||
7520 | if test "x$ac_ct_OTOOL64" = x; then | |
7521 | OTOOL64=":" | |
7522 | else | |
7523 | case $cross_compiling:$ac_tool_warned in | |
7524 | yes:) | |
7525 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7526 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7527 | ac_tool_warned=yes ;; | |
7528 | esac | |
7529 | OTOOL64=$ac_ct_OTOOL64 | |
7530 | fi | |
7531 | else | |
7532 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7533 | fi | |
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 | ||
7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7562 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7563 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
7564 | $as_echo_n "(cached) " >&6 | |
7565 | else | |
7566 | lt_cv_apple_cc_single_mod=no | |
7567 | if test -z "$LT_MULTI_MODULE"; then | |
7568 | # By default we will add the -single_module flag. You can override | |
7569 | # by either setting the environment variable LT_MULTI_MODULE | |
7570 | # non-empty at configure time, or by adding -multi_module to the | |
7571 | # link flags. | |
7572 | rm -rf libconftest.dylib* | |
7573 | echo "int foo(void){return 1;}" > conftest.c | |
7574 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7575 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7576 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7577 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7578 | _lt_result=$? | |
7579 | # If there is a non-empty error log, and "single_module" | |
7580 | # appears in it, assume the flag caused a linker warning | |
7581 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7582 | cat conftest.err >&5 | |
7583 | # Otherwise, if the output was created with a 0 exit code from | |
7584 | # the compiler, it worked. | |
7585 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then | |
7586 | lt_cv_apple_cc_single_mod=yes | |
7587 | else | |
7588 | cat conftest.err >&5 | |
7589 | fi | |
7590 | rm -rf libconftest.dylib* | |
7591 | rm -f conftest.* | |
7592 | fi | |
7593 | fi | |
7594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7595 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7596 | ||
7597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7598 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7599 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
7600 | $as_echo_n "(cached) " >&6 | |
7601 | else | |
7602 | lt_cv_ld_exported_symbols_list=no | |
7603 | save_LDFLAGS=$LDFLAGS | |
7604 | echo "_main" > conftest.sym | |
7605 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7607 | /* end confdefs.h. */ | |
7608 | ||
7609 | int | |
7610 | main () | |
7611 | { | |
7612 | ||
7613 | ; | |
7614 | return 0; | |
7615 | } | |
7616 | _ACEOF | |
7617 | if ac_fn_c_try_link "$LINENO"; then : | |
7618 | lt_cv_ld_exported_symbols_list=yes | |
7619 | else | |
7620 | lt_cv_ld_exported_symbols_list=no | |
7621 | fi | |
7622 | rm -f core conftest.err conftest.$ac_objext \ | |
7623 | conftest$ac_exeext conftest.$ac_ext | |
7624 | LDFLAGS=$save_LDFLAGS | |
7625 | ||
7626 | fi | |
7627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7628 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7629 | ||
7630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7631 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7632 | if ${lt_cv_ld_force_load+:} false; then : | |
7633 | $as_echo_n "(cached) " >&6 | |
7634 | else | |
7635 | lt_cv_ld_force_load=no | |
7636 | cat > conftest.c << _LT_EOF | |
7637 | int forced_loaded() { return 2;} | |
7638 | _LT_EOF | |
7639 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7640 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7641 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7642 | $AR cru libconftest.a conftest.o 2>&5 | |
7643 | echo "$RANLIB libconftest.a" >&5 | |
7644 | $RANLIB libconftest.a 2>&5 | |
7645 | cat > conftest.c << _LT_EOF | |
7646 | int main() { return 0;} | |
7647 | _LT_EOF | |
7648 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7649 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7650 | _lt_result=$? | |
7651 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7652 | cat conftest.err >&5 | |
7653 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then | |
7654 | lt_cv_ld_force_load=yes | |
7655 | else | |
7656 | cat conftest.err >&5 | |
7657 | fi | |
7658 | rm -f conftest.err libconftest.a conftest conftest.c | |
7659 | rm -rf conftest.dSYM | |
7660 | ||
7661 | fi | |
7662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7663 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
7664 | case $host_os in | |
7665 | rhapsody* | darwin1.[012]) | |
7666 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; | |
7667 | darwin1.*) | |
7668 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
7669 | darwin*) # darwin 5.x on | |
7670 | # if running on 10.5 or later, the deployment target defaults | |
7671 | # to the OS version, if on x86, and 10.4, the deployment | |
7672 | # target defaults to 10.4. Don't you love it? | |
7673 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7674 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7675 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
7676 | 10.[012][,.]*) | |
7677 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
7678 | 10.*) | |
7679 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
7680 | esac | |
7681 | ;; | |
7682 | esac | |
7683 | if test yes = "$lt_cv_apple_cc_single_mod"; then | |
7684 | _lt_dar_single_mod='$single_module' | |
7685 | fi | |
7686 | if test yes = "$lt_cv_ld_exported_symbols_list"; then | |
7687 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
7688 | else | |
7689 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' | |
7690 | fi | |
7691 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then | |
7692 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7693 | else | |
7694 | _lt_dsymutil= | |
7695 | fi | |
7696 | ;; | |
7697 | esac | |
7698 | ||
7699 | # func_munge_path_list VARIABLE PATH | |
7700 | # ----------------------------------- | |
7701 | # VARIABLE is name of variable containing _space_ separated list of | |
7702 | # directories to be munged by the contents of PATH, which is string | |
7703 | # having a format: | |
7704 | # "DIR[:DIR]:" | |
7705 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
7706 | # ":DIR[:DIR]" | |
7707 | # string "DIR[ DIR]" will be appended to VARIABLE | |
7708 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
7709 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
7710 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
7711 | # "DIR[:DIR]" | |
7712 | # VARIABLE will be replaced by "DIR[ DIR]" | |
7713 | func_munge_path_list () | |
7714 | { | |
7715 | case x$2 in | |
7716 | x) | |
7717 | ;; | |
7718 | *:) | |
7719 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
7720 | ;; | |
7721 | x:*) | |
7722 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
7723 | ;; | |
7724 | *::*) | |
7725 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
7726 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
7727 | ;; | |
7728 | *) | |
7729 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
7730 | ;; | |
7731 | esac | |
7732 | } | |
7733 | ||
7734 | ac_ext=c | |
7735 | ac_cpp='$CPP $CPPFLAGS' | |
7736 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7737 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7738 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
7740 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7741 | # On Suns, sometimes $CPP names a directory. | |
7742 | if test -n "$CPP" && test -d "$CPP"; then | |
7743 | CPP= | |
7744 | fi | |
7745 | if test -z "$CPP"; then | |
7746 | if ${ac_cv_prog_CPP+:} false; then : | |
7747 | $as_echo_n "(cached) " >&6 | |
7748 | else | |
7749 | # Double quotes because CPP needs to be expanded | |
7750 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7751 | do | |
7752 | ac_preproc_ok=false | |
7753 | for ac_c_preproc_warn_flag in '' yes | |
7754 | do | |
7755 | # Use a header file that comes with gcc, so configuring glibc | |
7756 | # with a fresh cross-compiler works. | |
7757 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7758 | # <limits.h> exists even on freestanding compilers. | |
7759 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7760 | # not just through cpp. "Syntax error" is here to catch this case. | |
7761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7762 | /* end confdefs.h. */ | |
7763 | #ifdef __STDC__ | |
7764 | # include <limits.h> | |
7765 | #else | |
7766 | # include <assert.h> | |
7767 | #endif | |
7768 | Syntax error | |
7769 | _ACEOF | |
7770 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7771 | ||
7772 | else | |
7773 | # Broken: fails on valid input. | |
7774 | continue | |
7775 | fi | |
7776 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7777 | ||
7778 | # OK, works on sane cases. Now check whether nonexistent headers | |
7779 | # can be detected and how. | |
7780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7781 | /* end confdefs.h. */ | |
7782 | #include <ac_nonexistent.h> | |
7783 | _ACEOF | |
7784 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7785 | # Broken: success on invalid input. | |
7786 | continue | |
7787 | else | |
7788 | # Passes both tests. | |
7789 | ac_preproc_ok=: | |
7790 | break | |
7791 | fi | |
7792 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7793 | ||
7794 | done | |
7795 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7796 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7797 | if $ac_preproc_ok; then : | |
7798 | break | |
7799 | fi | |
7800 | ||
7801 | done | |
7802 | ac_cv_prog_CPP=$CPP | |
7803 | ||
7804 | fi | |
7805 | CPP=$ac_cv_prog_CPP | |
7806 | else | |
7807 | ac_cv_prog_CPP=$CPP | |
7808 | fi | |
7809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
7810 | $as_echo "$CPP" >&6; } | |
7811 | ac_preproc_ok=false | |
7812 | for ac_c_preproc_warn_flag in '' yes | |
7813 | do | |
7814 | # Use a header file that comes with gcc, so configuring glibc | |
7815 | # with a fresh cross-compiler works. | |
7816 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7817 | # <limits.h> exists even on freestanding compilers. | |
7818 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7819 | # not just through cpp. "Syntax error" is here to catch this case. | |
7820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7821 | /* end confdefs.h. */ | |
7822 | #ifdef __STDC__ | |
7823 | # include <limits.h> | |
7824 | #else | |
7825 | # include <assert.h> | |
7826 | #endif | |
7827 | Syntax error | |
7828 | _ACEOF | |
7829 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7830 | ||
7831 | else | |
7832 | # Broken: fails on valid input. | |
7833 | continue | |
7834 | fi | |
7835 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7836 | ||
7837 | # OK, works on sane cases. Now check whether nonexistent headers | |
7838 | # can be detected and how. | |
7839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7840 | /* end confdefs.h. */ | |
7841 | #include <ac_nonexistent.h> | |
7842 | _ACEOF | |
7843 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7844 | # Broken: success on invalid input. | |
7845 | continue | |
7846 | else | |
7847 | # Passes both tests. | |
7848 | ac_preproc_ok=: | |
7849 | break | |
7850 | fi | |
7851 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7852 | ||
7853 | done | |
7854 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7855 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7856 | if $ac_preproc_ok; then : | |
7857 | ||
7858 | else | |
7859 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7860 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7861 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
7862 | See \`config.log' for more details" "$LINENO" 5; } | |
7863 | fi | |
7864 | ||
7865 | ac_ext=c | |
7866 | ac_cpp='$CPP $CPPFLAGS' | |
7867 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7868 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7869 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7870 | ||
7871 | ||
7872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
7873 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7874 | if ${ac_cv_header_stdc+:} false; then : | |
7875 | $as_echo_n "(cached) " >&6 | |
7876 | else | |
7877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7878 | /* end confdefs.h. */ | |
7879 | #include <stdlib.h> | |
7880 | #include <stdarg.h> | |
7881 | #include <string.h> | |
7882 | #include <float.h> | |
7883 | ||
7884 | int | |
7885 | main () | |
7886 | { | |
7887 | ||
7888 | ; | |
7889 | return 0; | |
7890 | } | |
7891 | _ACEOF | |
7892 | if ac_fn_c_try_compile "$LINENO"; then : | |
7893 | ac_cv_header_stdc=yes | |
7894 | else | |
7895 | ac_cv_header_stdc=no | |
7896 | fi | |
7897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7898 | ||
7899 | if test $ac_cv_header_stdc = yes; then | |
7900 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7902 | /* end confdefs.h. */ | |
7903 | #include <string.h> | |
7904 | ||
7905 | _ACEOF | |
7906 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7907 | $EGREP "memchr" >/dev/null 2>&1; then : | |
7908 | ||
7909 | else | |
7910 | ac_cv_header_stdc=no | |
7911 | fi | |
7912 | rm -f conftest* | |
7913 | ||
7914 | fi | |
7915 | ||
7916 | if test $ac_cv_header_stdc = yes; then | |
7917 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7919 | /* end confdefs.h. */ | |
7920 | #include <stdlib.h> | |
7921 | ||
7922 | _ACEOF | |
7923 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7924 | $EGREP "free" >/dev/null 2>&1; then : | |
7925 | ||
7926 | else | |
7927 | ac_cv_header_stdc=no | |
7928 | fi | |
7929 | rm -f conftest* | |
7930 | ||
7931 | fi | |
7932 | ||
7933 | if test $ac_cv_header_stdc = yes; then | |
7934 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7935 | if test "$cross_compiling" = yes; then : | |
7936 | : | |
7937 | else | |
7938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7939 | /* end confdefs.h. */ | |
7940 | #include <ctype.h> | |
7941 | #include <stdlib.h> | |
7942 | #if ((' ' & 0x0FF) == 0x020) | |
7943 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7944 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7945 | #else | |
7946 | # define ISLOWER(c) \ | |
7947 | (('a' <= (c) && (c) <= 'i') \ | |
7948 | || ('j' <= (c) && (c) <= 'r') \ | |
7949 | || ('s' <= (c) && (c) <= 'z')) | |
7950 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7951 | #endif | |
7952 | ||
7953 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7954 | int | |
7955 | main () | |
7956 | { | |
7957 | int i; | |
7958 | for (i = 0; i < 256; i++) | |
7959 | if (XOR (islower (i), ISLOWER (i)) | |
7960 | || toupper (i) != TOUPPER (i)) | |
7961 | return 2; | |
7962 | return 0; | |
7963 | } | |
7964 | _ACEOF | |
7965 | if ac_fn_c_try_run "$LINENO"; then : | |
7966 | ||
7967 | else | |
7968 | ac_cv_header_stdc=no | |
7969 | fi | |
7970 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7971 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7972 | fi | |
7973 | ||
7974 | fi | |
7975 | fi | |
7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7977 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7978 | if test $ac_cv_header_stdc = yes; then | |
7979 | ||
7980 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
7981 | ||
7982 | fi | |
7983 | ||
7984 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7985 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7986 | inttypes.h stdint.h unistd.h | |
7987 | do : | |
7988 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7989 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7990 | " | |
7991 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
7992 | cat >>confdefs.h <<_ACEOF | |
7993 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7994 | _ACEOF | |
7995 | ||
7996 | fi | |
7997 | ||
7998 | done | |
7999 | ||
8000 | ||
8001 | for ac_header in dlfcn.h | |
8002 | do : | |
8003 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8004 | " | |
8005 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8006 | cat >>confdefs.h <<_ACEOF | |
8007 | #define HAVE_DLFCN_H 1 | |
8008 | _ACEOF | |
8009 | ||
8010 | fi | |
8011 | ||
8012 | done | |
8013 | ||
8014 | ||
8015 | ||
8016 | ||
8017 | ||
8018 | # Set options | |
8019 | ||
8020 | ||
8021 | ||
8022 | enable_dlopen=no | |
8023 | ||
8024 | ||
8025 | enable_win32_dll=no | |
8026 | ||
8027 | ||
8028 | # Check whether --enable-shared was given. | |
8029 | if test "${enable_shared+set}" = set; then : | |
8030 | enableval=$enable_shared; p=${PACKAGE-default} | |
8031 | case $enableval in | |
8032 | yes) enable_shared=yes ;; | |
8033 | no) enable_shared=no ;; | |
8034 | *) | |
8035 | enable_shared=no | |
8036 | # Look at the argument we got. We use all the common list separators. | |
8037 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8038 | for pkg in $enableval; do | |
8039 | IFS=$lt_save_ifs | |
8040 | if test "X$pkg" = "X$p"; then | |
8041 | enable_shared=yes | |
8042 | fi | |
8043 | done | |
8044 | IFS=$lt_save_ifs | |
8045 | ;; | |
8046 | esac | |
8047 | else | |
8048 | enable_shared=yes | |
8049 | fi | |
8050 | ||
8051 | ||
8052 | ||
8053 | ||
8054 | ||
8055 | ||
8056 | ||
8057 | ||
8058 | ||
8059 | # Check whether --enable-static was given. | |
8060 | if test "${enable_static+set}" = set; then : | |
8061 | enableval=$enable_static; p=${PACKAGE-default} | |
8062 | case $enableval in | |
8063 | yes) enable_static=yes ;; | |
8064 | no) enable_static=no ;; | |
8065 | *) | |
8066 | enable_static=no | |
8067 | # Look at the argument we got. We use all the common list separators. | |
8068 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8069 | for pkg in $enableval; do | |
8070 | IFS=$lt_save_ifs | |
8071 | if test "X$pkg" = "X$p"; then | |
8072 | enable_static=yes | |
8073 | fi | |
8074 | done | |
8075 | IFS=$lt_save_ifs | |
8076 | ;; | |
8077 | esac | |
8078 | else | |
8079 | enable_static=yes | |
8080 | fi | |
8081 | ||
8082 | ||
8083 | ||
8084 | ||
8085 | ||
8086 | ||
8087 | ||
8088 | ||
8089 | ||
8090 | ||
8091 | # Check whether --with-pic was given. | |
8092 | if test "${with_pic+set}" = set; then : | |
8093 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8094 | case $withval in | |
8095 | yes|no) pic_mode=$withval ;; | |
8096 | *) | |
8097 | pic_mode=default | |
8098 | # Look at the argument we got. We use all the common list separators. | |
8099 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8100 | for lt_pkg in $withval; do | |
8101 | IFS=$lt_save_ifs | |
8102 | if test "X$lt_pkg" = "X$lt_p"; then | |
8103 | pic_mode=yes | |
8104 | fi | |
8105 | done | |
8106 | IFS=$lt_save_ifs | |
8107 | ;; | |
8108 | esac | |
8109 | else | |
8110 | pic_mode=default | |
8111 | fi | |
8112 | ||
8113 | ||
8114 | ||
8115 | ||
8116 | ||
8117 | ||
8118 | ||
8119 | ||
8120 | # Check whether --enable-fast-install was given. | |
8121 | if test "${enable_fast_install+set}" = set; then : | |
8122 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8123 | case $enableval in | |
8124 | yes) enable_fast_install=yes ;; | |
8125 | no) enable_fast_install=no ;; | |
8126 | *) | |
8127 | enable_fast_install=no | |
8128 | # Look at the argument we got. We use all the common list separators. | |
8129 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8130 | for pkg in $enableval; do | |
8131 | IFS=$lt_save_ifs | |
8132 | if test "X$pkg" = "X$p"; then | |
8133 | enable_fast_install=yes | |
8134 | fi | |
8135 | done | |
8136 | IFS=$lt_save_ifs | |
8137 | ;; | |
8138 | esac | |
8139 | else | |
8140 | enable_fast_install=yes | |
8141 | fi | |
8142 | ||
8143 | ||
8144 | ||
8145 | ||
8146 | ||
8147 | ||
8148 | ||
8149 | ||
8150 | shared_archive_member_spec= | |
8151 | case $host,$enable_shared in | |
8152 | power*-*-aix[5-9]*,yes) | |
8153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
8154 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
8155 | ||
8156 | # Check whether --with-aix-soname was given. | |
8157 | if test "${with_aix_soname+set}" = set; then : | |
8158 | withval=$with_aix_soname; case $withval in | |
8159 | aix|svr4|both) | |
8160 | ;; | |
8161 | *) | |
8162 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
8163 | ;; | |
8164 | esac | |
8165 | lt_cv_with_aix_soname=$with_aix_soname | |
8166 | else | |
8167 | if ${lt_cv_with_aix_soname+:} false; then : | |
8168 | $as_echo_n "(cached) " >&6 | |
8169 | else | |
8170 | lt_cv_with_aix_soname=aix | |
8171 | fi | |
8172 | ||
8173 | with_aix_soname=$lt_cv_with_aix_soname | |
8174 | fi | |
8175 | ||
8176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
8177 | $as_echo "$with_aix_soname" >&6; } | |
8178 | if test aix != "$with_aix_soname"; then | |
8179 | # For the AIX way of multilib, we name the shared archive member | |
8180 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
8181 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
8182 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
8183 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
8184 | if test 64 = "${OBJECT_MODE-32}"; then | |
8185 | shared_archive_member_spec=shr_64 | |
8186 | else | |
8187 | shared_archive_member_spec=shr | |
8188 | fi | |
8189 | fi | |
8190 | ;; | |
8191 | *) | |
8192 | with_aix_soname=aix | |
8193 | ;; | |
8194 | esac | |
8195 | ||
8196 | ||
8197 | ||
8198 | ||
8199 | ||
8200 | ||
8201 | ||
8202 | ||
8203 | ||
8204 | ||
8205 | # This can be used to rebuild libtool when needed | |
8206 | LIBTOOL_DEPS=$ltmain | |
8207 | ||
8208 | # Always use our own libtool. | |
8209 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
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 | ||
8240 | test -z "$LN_S" && LN_S="ln -s" | |
8241 | ||
8242 | ||
8243 | ||
8244 | ||
8245 | ||
8246 | ||
8247 | ||
8248 | ||
8249 | ||
8250 | ||
8251 | ||
8252 | ||
8253 | ||
8254 | ||
8255 | if test -n "${ZSH_VERSION+set}"; then | |
8256 | setopt NO_GLOB_SUBST | |
8257 | fi | |
8258 | ||
8259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8260 | $as_echo_n "checking for objdir... " >&6; } | |
8261 | if ${lt_cv_objdir+:} false; then : | |
8262 | $as_echo_n "(cached) " >&6 | |
8263 | else | |
8264 | rm -f .libs 2>/dev/null | |
8265 | mkdir .libs 2>/dev/null | |
8266 | if test -d .libs; then | |
8267 | lt_cv_objdir=.libs | |
8268 | else | |
8269 | # MS-DOS does not allow filenames that begin with a dot. | |
8270 | lt_cv_objdir=_libs | |
8271 | fi | |
8272 | rmdir .libs 2>/dev/null | |
8273 | fi | |
8274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8275 | $as_echo "$lt_cv_objdir" >&6; } | |
8276 | objdir=$lt_cv_objdir | |
8277 | ||
8278 | ||
8279 | ||
8280 | ||
8281 | ||
8282 | cat >>confdefs.h <<_ACEOF | |
8283 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8284 | _ACEOF | |
8285 | ||
8286 | ||
8287 | ||
8288 | ||
8289 | case $host_os in | |
8290 | aix3*) | |
8291 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8292 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8293 | # vanish in a puff of smoke. | |
8294 | if test set != "${COLLECT_NAMES+set}"; then | |
8295 | COLLECT_NAMES= | |
8296 | export COLLECT_NAMES | |
8297 | fi | |
8298 | ;; | |
8299 | esac | |
8300 | ||
8301 | # Global variables: | |
8302 | ofile=libtool | |
8303 | can_build_shared=yes | |
8304 | ||
8305 | # All known linkers require a '.a' archive for static linking (except MSVC, | |
8306 | # which needs '.lib'). | |
8307 | libext=a | |
8308 | ||
8309 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
8310 | ||
8311 | old_CC=$CC | |
8312 | old_CFLAGS=$CFLAGS | |
8313 | ||
8314 | # Set sane defaults for various variables | |
8315 | test -z "$CC" && CC=cc | |
8316 | test -z "$LTCC" && LTCC=$CC | |
8317 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8318 | test -z "$LD" && LD=ld | |
8319 | test -z "$ac_objext" && ac_objext=o | |
8320 | ||
8321 | func_cc_basename $compiler | |
8322 | cc_basename=$func_cc_basename_result | |
8323 | ||
8324 | ||
8325 | # Only perform the check for file, if the check method requires it | |
8326 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8327 | case $deplibs_check_method in | |
8328 | file_magic*) | |
8329 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8331 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8332 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8333 | $as_echo_n "(cached) " >&6 | |
8334 | else | |
8335 | case $MAGIC_CMD in | |
8336 | [\\/*] | ?:[\\/]*) | |
8337 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
8338 | ;; | |
8339 | *) | |
8340 | lt_save_MAGIC_CMD=$MAGIC_CMD | |
8341 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8342 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8343 | for ac_dir in $ac_dummy; do | |
8344 | IFS=$lt_save_ifs | |
8345 | test -z "$ac_dir" && ac_dir=. | |
8346 | if test -f "$ac_dir/${ac_tool_prefix}file"; then | |
8347 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
8348 | if test -n "$file_magic_test_file"; then | |
8349 | case $deplibs_check_method in | |
8350 | "file_magic "*) | |
8351 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8352 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8353 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8354 | $EGREP "$file_magic_regex" > /dev/null; then | |
8355 | : | |
8356 | else | |
8357 | cat <<_LT_EOF 1>&2 | |
8358 | ||
8359 | *** Warning: the command libtool uses to detect shared libraries, | |
8360 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8361 | *** The result is that libtool may fail to recognize shared libraries | |
8362 | *** as such. This will affect the creation of libtool libraries that | |
8363 | *** depend on shared libraries, but programs linked with such libtool | |
8364 | *** libraries will work regardless of this problem. Nevertheless, you | |
8365 | *** may want to report the problem to your system manager and/or to | |
8366 | *** bug-libtool@gnu.org | |
8367 | ||
8368 | _LT_EOF | |
8369 | fi ;; | |
8370 | esac | |
8371 | fi | |
8372 | break | |
8373 | fi | |
8374 | done | |
8375 | IFS=$lt_save_ifs | |
8376 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8377 | ;; | |
8378 | esac | |
8379 | fi | |
8380 | ||
8381 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8382 | if test -n "$MAGIC_CMD"; then | |
8383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8384 | $as_echo "$MAGIC_CMD" >&6; } | |
8385 | else | |
8386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8387 | $as_echo "no" >&6; } | |
8388 | fi | |
8389 | ||
8390 | ||
8391 | ||
8392 | ||
8393 | ||
8394 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8395 | if test -n "$ac_tool_prefix"; then | |
8396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8397 | $as_echo_n "checking for file... " >&6; } | |
8398 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8399 | $as_echo_n "(cached) " >&6 | |
8400 | else | |
8401 | case $MAGIC_CMD in | |
8402 | [\\/*] | ?:[\\/]*) | |
8403 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
8404 | ;; | |
8405 | *) | |
8406 | lt_save_MAGIC_CMD=$MAGIC_CMD | |
8407 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8408 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8409 | for ac_dir in $ac_dummy; do | |
8410 | IFS=$lt_save_ifs | |
8411 | test -z "$ac_dir" && ac_dir=. | |
8412 | if test -f "$ac_dir/file"; then | |
8413 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
8414 | if test -n "$file_magic_test_file"; then | |
8415 | case $deplibs_check_method in | |
8416 | "file_magic "*) | |
8417 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8418 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8419 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8420 | $EGREP "$file_magic_regex" > /dev/null; then | |
8421 | : | |
8422 | else | |
8423 | cat <<_LT_EOF 1>&2 | |
8424 | ||
8425 | *** Warning: the command libtool uses to detect shared libraries, | |
8426 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8427 | *** The result is that libtool may fail to recognize shared libraries | |
8428 | *** as such. This will affect the creation of libtool libraries that | |
8429 | *** depend on shared libraries, but programs linked with such libtool | |
8430 | *** libraries will work regardless of this problem. Nevertheless, you | |
8431 | *** may want to report the problem to your system manager and/or to | |
8432 | *** bug-libtool@gnu.org | |
8433 | ||
8434 | _LT_EOF | |
8435 | fi ;; | |
8436 | esac | |
8437 | fi | |
8438 | break | |
8439 | fi | |
8440 | done | |
8441 | IFS=$lt_save_ifs | |
8442 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8443 | ;; | |
8444 | esac | |
8445 | fi | |
8446 | ||
8447 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8448 | if test -n "$MAGIC_CMD"; then | |
8449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8450 | $as_echo "$MAGIC_CMD" >&6; } | |
8451 | else | |
8452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8453 | $as_echo "no" >&6; } | |
8454 | fi | |
8455 | ||
8456 | ||
8457 | else | |
8458 | MAGIC_CMD=: | |
8459 | fi | |
8460 | fi | |
8461 | ||
8462 | fi | |
8463 | ;; | |
8464 | esac | |
8465 | ||
8466 | # Use C for the default configuration in the libtool script | |
8467 | ||
8468 | lt_save_CC=$CC | |
8469 | ac_ext=c | |
8470 | ac_cpp='$CPP $CPPFLAGS' | |
8471 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8472 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8473 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8474 | ||
8475 | ||
8476 | # Source file extension for C test sources. | |
8477 | ac_ext=c | |
8478 | ||
8479 | # Object file extension for compiled C test sources. | |
8480 | objext=o | |
8481 | objext=$objext | |
8482 | ||
8483 | # Code to be used in simple compile tests | |
8484 | lt_simple_compile_test_code="int some_variable = 0;" | |
8485 | ||
8486 | # Code to be used in simple link tests | |
8487 | lt_simple_link_test_code='int main(){return(0);}' | |
8488 | ||
8489 | ||
8490 | ||
8491 | ||
8492 | ||
8493 | ||
8494 | ||
8495 | # If no C compiler was specified, use CC. | |
8496 | LTCC=${LTCC-"$CC"} | |
8497 | ||
8498 | # If no C compiler flags were specified, use CFLAGS. | |
8499 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8500 | ||
8501 | # Allow CC to be a program name with arguments. | |
8502 | compiler=$CC | |
8503 | ||
8504 | # Save the default compiler, since it gets overwritten when the other | |
8505 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8506 | compiler_DEFAULT=$CC | |
8507 | ||
8508 | # save warnings/boilerplate of simple test code | |
8509 | ac_outfile=conftest.$ac_objext | |
8510 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8511 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8512 | _lt_compiler_boilerplate=`cat conftest.err` | |
8513 | $RM conftest* | |
8514 | ||
8515 | ac_outfile=conftest.$ac_objext | |
8516 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8517 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8518 | _lt_linker_boilerplate=`cat conftest.err` | |
8519 | $RM -r conftest* | |
8520 | ||
8521 | ||
8522 | ## CAVEAT EMPTOR: | |
8523 | ## There is no encapsulation within the following macros, do not change | |
8524 | ## the running order or otherwise move them around unless you know exactly | |
8525 | ## what you are doing... | |
8526 | if test -n "$compiler"; then | |
8527 | ||
8528 | lt_prog_compiler_no_builtin_flag= | |
8529 | ||
8530 | if test yes = "$GCC"; then | |
8531 | case $cc_basename in | |
8532 | nvcc*) | |
8533 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8534 | *) | |
8535 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8536 | esac | |
8537 | ||
8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8539 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8540 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8541 | $as_echo_n "(cached) " >&6 | |
8542 | else | |
8543 | lt_cv_prog_compiler_rtti_exceptions=no | |
8544 | ac_outfile=conftest.$ac_objext | |
8545 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8546 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment | |
8547 | # Insert the option either (1) after the last *FLAGS variable, or | |
8548 | # (2) before a word containing "conftest.", or (3) at the end. | |
8549 | # Note that $ac_compile itself does not contain backslashes and begins | |
8550 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8551 | # The option is referenced via a variable to avoid confusing sed. | |
8552 | lt_compile=`echo "$ac_compile" | $SED \ | |
8553 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8554 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8555 | -e 's:$: $lt_compiler_flag:'` | |
8556 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8557 | (eval "$lt_compile" 2>conftest.err) | |
8558 | ac_status=$? | |
8559 | cat conftest.err >&5 | |
8560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8561 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8562 | # The compiler can only warn and ignore the option if not recognized | |
8563 | # So say no if there are warnings other than the usual output. | |
8564 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8565 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8566 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8567 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8568 | fi | |
8569 | fi | |
8570 | $RM conftest* | |
8571 | ||
8572 | fi | |
8573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8574 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8575 | ||
8576 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then | |
8577 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8578 | else | |
8579 | : | |
8580 | fi | |
8581 | ||
8582 | fi | |
8583 | ||
8584 | ||
8585 | ||
8586 | ||
8587 | ||
8588 | ||
8589 | lt_prog_compiler_wl= | |
8590 | lt_prog_compiler_pic= | |
8591 | lt_prog_compiler_static= | |
8592 | ||
8593 | ||
8594 | if test yes = "$GCC"; then | |
8595 | lt_prog_compiler_wl='-Wl,' | |
8596 | lt_prog_compiler_static='-static' | |
8597 | ||
8598 | case $host_os in | |
8599 | aix*) | |
8600 | # All AIX code is PIC. | |
8601 | if test ia64 = "$host_cpu"; then | |
8602 | # AIX 5 now supports IA64 processor | |
8603 | lt_prog_compiler_static='-Bstatic' | |
8604 | fi | |
8605 | lt_prog_compiler_pic='-fPIC' | |
8606 | ;; | |
8607 | ||
8608 | amigaos*) | |
8609 | case $host_cpu in | |
8610 | powerpc) | |
8611 | # see comment about AmigaOS4 .so support | |
8612 | lt_prog_compiler_pic='-fPIC' | |
8613 | ;; | |
8614 | m68k) | |
8615 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8616 | # adding the '-m68020' flag to GCC prevents building anything better, | |
8617 | # like '-m68040'. | |
8618 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8619 | ;; | |
8620 | esac | |
8621 | ;; | |
8622 | ||
8623 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8624 | # PIC is the default for these OSes. | |
8625 | ;; | |
8626 | ||
8627 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8628 | # This hack is so that the source file can tell whether it is being | |
8629 | # built for inclusion in a dll (and should export symbols for example). | |
8630 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8631 | # (--disable-auto-import) libraries | |
8632 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8633 | case $host_os in | |
8634 | os2*) | |
8635 | lt_prog_compiler_static='$wl-static' | |
8636 | ;; | |
8637 | esac | |
8638 | ;; | |
8639 | ||
8640 | darwin* | rhapsody*) | |
8641 | # PIC is the default on this platform | |
8642 | # Common symbols not allowed in MH_DYLIB files | |
8643 | lt_prog_compiler_pic='-fno-common' | |
8644 | ;; | |
8645 | ||
8646 | haiku*) | |
8647 | # PIC is the default for Haiku. | |
8648 | # The "-static" flag exists, but is broken. | |
8649 | lt_prog_compiler_static= | |
8650 | ;; | |
8651 | ||
8652 | hpux*) | |
8653 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8654 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8655 | # sets the default TLS model and affects inlining. | |
8656 | case $host_cpu in | |
8657 | hppa*64*) | |
8658 | # +Z the default | |
8659 | ;; | |
8660 | *) | |
8661 | lt_prog_compiler_pic='-fPIC' | |
8662 | ;; | |
8663 | esac | |
8664 | ;; | |
8665 | ||
8666 | interix[3-9]*) | |
8667 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8668 | # Instead, we relocate shared libraries at runtime. | |
8669 | ;; | |
8670 | ||
8671 | msdosdjgpp*) | |
8672 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8673 | # on systems that don't support them. | |
8674 | lt_prog_compiler_can_build_shared=no | |
8675 | enable_shared=no | |
8676 | ;; | |
8677 | ||
8678 | *nto* | *qnx*) | |
8679 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8680 | # it will coredump. | |
8681 | lt_prog_compiler_pic='-fPIC -shared' | |
8682 | ;; | |
8683 | ||
8684 | sysv4*MP*) | |
8685 | if test -d /usr/nec; then | |
8686 | lt_prog_compiler_pic=-Kconform_pic | |
8687 | fi | |
8688 | ;; | |
8689 | ||
8690 | *) | |
8691 | lt_prog_compiler_pic='-fPIC' | |
8692 | ;; | |
8693 | esac | |
8694 | ||
8695 | case $cc_basename in | |
8696 | nvcc*) # Cuda Compiler Driver 2.2 | |
8697 | lt_prog_compiler_wl='-Xlinker ' | |
8698 | if test -n "$lt_prog_compiler_pic"; then | |
8699 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8700 | fi | |
8701 | ;; | |
8702 | esac | |
8703 | else | |
8704 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8705 | case $host_os in | |
8706 | aix*) | |
8707 | lt_prog_compiler_wl='-Wl,' | |
8708 | if test ia64 = "$host_cpu"; then | |
8709 | # AIX 5 now supports IA64 processor | |
8710 | lt_prog_compiler_static='-Bstatic' | |
8711 | else | |
8712 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8713 | fi | |
8714 | ;; | |
8715 | ||
8716 | darwin* | rhapsody*) | |
8717 | # PIC is the default on this platform | |
8718 | # Common symbols not allowed in MH_DYLIB files | |
8719 | lt_prog_compiler_pic='-fno-common' | |
8720 | case $cc_basename in | |
8721 | nagfor*) | |
8722 | # NAG Fortran compiler | |
8723 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8724 | lt_prog_compiler_pic='-PIC' | |
8725 | lt_prog_compiler_static='-Bstatic' | |
8726 | ;; | |
8727 | esac | |
8728 | ;; | |
8729 | ||
8730 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8731 | # This hack is so that the source file can tell whether it is being | |
8732 | # built for inclusion in a dll (and should export symbols for example). | |
8733 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8734 | case $host_os in | |
8735 | os2*) | |
8736 | lt_prog_compiler_static='$wl-static' | |
8737 | ;; | |
8738 | esac | |
8739 | ;; | |
8740 | ||
8741 | hpux9* | hpux10* | hpux11*) | |
8742 | lt_prog_compiler_wl='-Wl,' | |
8743 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8744 | # not for PA HP-UX. | |
8745 | case $host_cpu in | |
8746 | hppa*64*|ia64*) | |
8747 | # +Z the default | |
8748 | ;; | |
8749 | *) | |
8750 | lt_prog_compiler_pic='+Z' | |
8751 | ;; | |
8752 | esac | |
8753 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8754 | lt_prog_compiler_static='$wl-a ${wl}archive' | |
8755 | ;; | |
8756 | ||
8757 | irix5* | irix6* | nonstopux*) | |
8758 | lt_prog_compiler_wl='-Wl,' | |
8759 | # PIC (with -KPIC) is the default. | |
8760 | lt_prog_compiler_static='-non_shared' | |
8761 | ;; | |
8762 | ||
8763 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
8764 | case $cc_basename in | |
8765 | # old Intel for x86_64, which still supported -KPIC. | |
8766 | ecc*) | |
8767 | lt_prog_compiler_wl='-Wl,' | |
8768 | lt_prog_compiler_pic='-KPIC' | |
8769 | lt_prog_compiler_static='-static' | |
8770 | ;; | |
8771 | # icc used to be incompatible with GCC. | |
8772 | # ICC 10 doesn't accept -KPIC any more. | |
8773 | icc* | ifort*) | |
8774 | lt_prog_compiler_wl='-Wl,' | |
8775 | lt_prog_compiler_pic='-fPIC' | |
8776 | lt_prog_compiler_static='-static' | |
8777 | ;; | |
8778 | # Lahey Fortran 8.1. | |
8779 | lf95*) | |
8780 | lt_prog_compiler_wl='-Wl,' | |
8781 | lt_prog_compiler_pic='--shared' | |
8782 | lt_prog_compiler_static='--static' | |
8783 | ;; | |
8784 | nagfor*) | |
8785 | # NAG Fortran compiler | |
8786 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8787 | lt_prog_compiler_pic='-PIC' | |
8788 | lt_prog_compiler_static='-Bstatic' | |
8789 | ;; | |
8790 | tcc*) | |
8791 | # Fabrice Bellard et al's Tiny C Compiler | |
8792 | lt_prog_compiler_wl='-Wl,' | |
8793 | lt_prog_compiler_pic='-fPIC' | |
8794 | lt_prog_compiler_static='-static' | |
8795 | ;; | |
8796 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8797 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8798 | # which looks to be a dead project) | |
8799 | lt_prog_compiler_wl='-Wl,' | |
8800 | lt_prog_compiler_pic='-fpic' | |
8801 | lt_prog_compiler_static='-Bstatic' | |
8802 | ;; | |
8803 | ccc*) | |
8804 | lt_prog_compiler_wl='-Wl,' | |
8805 | # All Alpha code is PIC. | |
8806 | lt_prog_compiler_static='-non_shared' | |
8807 | ;; | |
8808 | xl* | bgxl* | bgf* | mpixl*) | |
8809 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8810 | lt_prog_compiler_wl='-Wl,' | |
8811 | lt_prog_compiler_pic='-qpic' | |
8812 | lt_prog_compiler_static='-qstaticlink' | |
8813 | ;; | |
8814 | *) | |
8815 | case `$CC -V 2>&1 | sed 5q` in | |
8816 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
8817 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8818 | lt_prog_compiler_pic='-KPIC' | |
8819 | lt_prog_compiler_static='-Bstatic' | |
8820 | lt_prog_compiler_wl='' | |
8821 | ;; | |
8822 | *Sun\ F* | *Sun*Fortran*) | |
8823 | lt_prog_compiler_pic='-KPIC' | |
8824 | lt_prog_compiler_static='-Bstatic' | |
8825 | lt_prog_compiler_wl='-Qoption ld ' | |
8826 | ;; | |
8827 | *Sun\ C*) | |
8828 | # Sun C 5.9 | |
8829 | lt_prog_compiler_pic='-KPIC' | |
8830 | lt_prog_compiler_static='-Bstatic' | |
8831 | lt_prog_compiler_wl='-Wl,' | |
8832 | ;; | |
8833 | *Intel*\ [CF]*Compiler*) | |
8834 | lt_prog_compiler_wl='-Wl,' | |
8835 | lt_prog_compiler_pic='-fPIC' | |
8836 | lt_prog_compiler_static='-static' | |
8837 | ;; | |
8838 | *Portland\ Group*) | |
8839 | lt_prog_compiler_wl='-Wl,' | |
8840 | lt_prog_compiler_pic='-fpic' | |
8841 | lt_prog_compiler_static='-Bstatic' | |
8842 | ;; | |
8843 | esac | |
8844 | ;; | |
8845 | esac | |
8846 | ;; | |
8847 | ||
8848 | newsos6) | |
8849 | lt_prog_compiler_pic='-KPIC' | |
8850 | lt_prog_compiler_static='-Bstatic' | |
8851 | ;; | |
8852 | ||
8853 | *nto* | *qnx*) | |
8854 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8855 | # it will coredump. | |
8856 | lt_prog_compiler_pic='-fPIC -shared' | |
8857 | ;; | |
8858 | ||
8859 | osf3* | osf4* | osf5*) | |
8860 | lt_prog_compiler_wl='-Wl,' | |
8861 | # All OSF/1 code is PIC. | |
8862 | lt_prog_compiler_static='-non_shared' | |
8863 | ;; | |
8864 | ||
8865 | rdos*) | |
8866 | lt_prog_compiler_static='-non_shared' | |
8867 | ;; | |
8868 | ||
8869 | solaris*) | |
8870 | lt_prog_compiler_pic='-KPIC' | |
8871 | lt_prog_compiler_static='-Bstatic' | |
8872 | case $cc_basename in | |
8873 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
8874 | lt_prog_compiler_wl='-Qoption ld ';; | |
8875 | *) | |
8876 | lt_prog_compiler_wl='-Wl,';; | |
8877 | esac | |
8878 | ;; | |
8879 | ||
8880 | sunos4*) | |
8881 | lt_prog_compiler_wl='-Qoption ld ' | |
8882 | lt_prog_compiler_pic='-PIC' | |
8883 | lt_prog_compiler_static='-Bstatic' | |
8884 | ;; | |
8885 | ||
8886 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8887 | lt_prog_compiler_wl='-Wl,' | |
8888 | lt_prog_compiler_pic='-KPIC' | |
8889 | lt_prog_compiler_static='-Bstatic' | |
8890 | ;; | |
8891 | ||
8892 | sysv4*MP*) | |
8893 | if test -d /usr/nec; then | |
8894 | lt_prog_compiler_pic='-Kconform_pic' | |
8895 | lt_prog_compiler_static='-Bstatic' | |
8896 | fi | |
8897 | ;; | |
8898 | ||
8899 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8900 | lt_prog_compiler_wl='-Wl,' | |
8901 | lt_prog_compiler_pic='-KPIC' | |
8902 | lt_prog_compiler_static='-Bstatic' | |
8903 | ;; | |
8904 | ||
8905 | unicos*) | |
8906 | lt_prog_compiler_wl='-Wl,' | |
8907 | lt_prog_compiler_can_build_shared=no | |
8908 | ;; | |
8909 | ||
8910 | uts4*) | |
8911 | lt_prog_compiler_pic='-pic' | |
8912 | lt_prog_compiler_static='-Bstatic' | |
8913 | ;; | |
8914 | ||
8915 | *) | |
8916 | lt_prog_compiler_can_build_shared=no | |
8917 | ;; | |
8918 | esac | |
8919 | fi | |
8920 | ||
8921 | case $host_os in | |
8922 | # For platforms that do not support PIC, -DPIC is meaningless: | |
8923 | *djgpp*) | |
8924 | lt_prog_compiler_pic= | |
8925 | ;; | |
8926 | *) | |
8927 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8928 | ;; | |
8929 | esac | |
8930 | ||
8931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8932 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8933 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8934 | $as_echo_n "(cached) " >&6 | |
8935 | else | |
8936 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8937 | fi | |
8938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8939 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8940 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
8941 | ||
8942 | # | |
8943 | # Check to make sure the PIC flag actually works. | |
8944 | # | |
8945 | if test -n "$lt_prog_compiler_pic"; then | |
8946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8947 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8948 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
8949 | $as_echo_n "(cached) " >&6 | |
8950 | else | |
8951 | lt_cv_prog_compiler_pic_works=no | |
8952 | ac_outfile=conftest.$ac_objext | |
8953 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8954 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment | |
8955 | # Insert the option either (1) after the last *FLAGS variable, or | |
8956 | # (2) before a word containing "conftest.", or (3) at the end. | |
8957 | # Note that $ac_compile itself does not contain backslashes and begins | |
8958 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8959 | # The option is referenced via a variable to avoid confusing sed. | |
8960 | lt_compile=`echo "$ac_compile" | $SED \ | |
8961 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8962 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8963 | -e 's:$: $lt_compiler_flag:'` | |
8964 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8965 | (eval "$lt_compile" 2>conftest.err) | |
8966 | ac_status=$? | |
8967 | cat conftest.err >&5 | |
8968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8969 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8970 | # The compiler can only warn and ignore the option if not recognized | |
8971 | # So say no if there are warnings other than the usual output. | |
8972 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8973 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8974 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8975 | lt_cv_prog_compiler_pic_works=yes | |
8976 | fi | |
8977 | fi | |
8978 | $RM conftest* | |
8979 | ||
8980 | fi | |
8981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8982 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8983 | ||
8984 | if test yes = "$lt_cv_prog_compiler_pic_works"; then | |
8985 | case $lt_prog_compiler_pic in | |
8986 | "" | " "*) ;; | |
8987 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8988 | esac | |
8989 | else | |
8990 | lt_prog_compiler_pic= | |
8991 | lt_prog_compiler_can_build_shared=no | |
8992 | fi | |
8993 | ||
8994 | fi | |
8995 | ||
8996 | ||
8997 | ||
8998 | ||
8999 | ||
9000 | ||
9001 | ||
9002 | ||
9003 | ||
9004 | ||
9005 | ||
9006 | # | |
9007 | # Check to make sure the static flag actually works. | |
9008 | # | |
9009 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9011 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9012 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9013 | $as_echo_n "(cached) " >&6 | |
9014 | else | |
9015 | lt_cv_prog_compiler_static_works=no | |
9016 | save_LDFLAGS=$LDFLAGS | |
9017 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9018 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9019 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9020 | # The linker can only warn and ignore the option if not recognized | |
9021 | # So say no if there are warnings | |
9022 | if test -s conftest.err; then | |
9023 | # Append any errors to the config.log. | |
9024 | cat conftest.err 1>&5 | |
9025 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9026 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9027 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9028 | lt_cv_prog_compiler_static_works=yes | |
9029 | fi | |
9030 | else | |
9031 | lt_cv_prog_compiler_static_works=yes | |
9032 | fi | |
9033 | fi | |
9034 | $RM -r conftest* | |
9035 | LDFLAGS=$save_LDFLAGS | |
9036 | ||
9037 | fi | |
9038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9039 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9040 | ||
9041 | if test yes = "$lt_cv_prog_compiler_static_works"; then | |
9042 | : | |
9043 | else | |
9044 | lt_prog_compiler_static= | |
9045 | fi | |
9046 | ||
9047 | ||
9048 | ||
9049 | ||
9050 | ||
9051 | ||
9052 | ||
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9054 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9055 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9056 | $as_echo_n "(cached) " >&6 | |
9057 | else | |
9058 | lt_cv_prog_compiler_c_o=no | |
9059 | $RM -r conftest 2>/dev/null | |
9060 | mkdir conftest | |
9061 | cd conftest | |
9062 | mkdir out | |
9063 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9064 | ||
9065 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9066 | # Insert the option either (1) after the last *FLAGS variable, or | |
9067 | # (2) before a word containing "conftest.", or (3) at the end. | |
9068 | # Note that $ac_compile itself does not contain backslashes and begins | |
9069 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9070 | lt_compile=`echo "$ac_compile" | $SED \ | |
9071 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9072 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9073 | -e 's:$: $lt_compiler_flag:'` | |
9074 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9075 | (eval "$lt_compile" 2>out/conftest.err) | |
9076 | ac_status=$? | |
9077 | cat out/conftest.err >&5 | |
9078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9079 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9080 | then | |
9081 | # The compiler can only warn and ignore the option if not recognized | |
9082 | # So say no if there are warnings | |
9083 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9084 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9085 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9086 | lt_cv_prog_compiler_c_o=yes | |
9087 | fi | |
9088 | fi | |
9089 | chmod u+w . 2>&5 | |
9090 | $RM conftest* | |
9091 | # SGI C++ compiler will create directory out/ii_files/ for | |
9092 | # template instantiation | |
9093 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9094 | $RM out/* && rmdir out | |
9095 | cd .. | |
9096 | $RM -r conftest | |
9097 | $RM conftest* | |
9098 | ||
9099 | fi | |
9100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9101 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9102 | ||
9103 | ||
9104 | ||
9105 | ||
9106 | ||
9107 | ||
9108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9109 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9110 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9111 | $as_echo_n "(cached) " >&6 | |
9112 | else | |
9113 | lt_cv_prog_compiler_c_o=no | |
9114 | $RM -r conftest 2>/dev/null | |
9115 | mkdir conftest | |
9116 | cd conftest | |
9117 | mkdir out | |
9118 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9119 | ||
9120 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9121 | # Insert the option either (1) after the last *FLAGS variable, or | |
9122 | # (2) before a word containing "conftest.", or (3) at the end. | |
9123 | # Note that $ac_compile itself does not contain backslashes and begins | |
9124 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9125 | lt_compile=`echo "$ac_compile" | $SED \ | |
9126 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9127 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9128 | -e 's:$: $lt_compiler_flag:'` | |
9129 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9130 | (eval "$lt_compile" 2>out/conftest.err) | |
9131 | ac_status=$? | |
9132 | cat out/conftest.err >&5 | |
9133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9134 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9135 | then | |
9136 | # The compiler can only warn and ignore the option if not recognized | |
9137 | # So say no if there are warnings | |
9138 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9139 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9140 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9141 | lt_cv_prog_compiler_c_o=yes | |
9142 | fi | |
9143 | fi | |
9144 | chmod u+w . 2>&5 | |
9145 | $RM conftest* | |
9146 | # SGI C++ compiler will create directory out/ii_files/ for | |
9147 | # template instantiation | |
9148 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9149 | $RM out/* && rmdir out | |
9150 | cd .. | |
9151 | $RM -r conftest | |
9152 | $RM conftest* | |
9153 | ||
9154 | fi | |
9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9156 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9157 | ||
9158 | ||
9159 | ||
9160 | ||
9161 | hard_links=nottested | |
9162 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
9163 | # do not overwrite the value of need_locks provided by the user | |
9164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9165 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9166 | hard_links=yes | |
9167 | $RM conftest* | |
9168 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9169 | touch conftest.a | |
9170 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9171 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9173 | $as_echo "$hard_links" >&6; } | |
9174 | if test no = "$hard_links"; then | |
9175 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
9176 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
9177 | need_locks=warn | |
9178 | fi | |
9179 | else | |
9180 | need_locks=no | |
9181 | fi | |
9182 | ||
9183 | ||
9184 | ||
9185 | ||
9186 | ||
9187 | ||
9188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9189 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9190 | ||
9191 | runpath_var= | |
9192 | allow_undefined_flag= | |
9193 | always_export_symbols=no | |
9194 | archive_cmds= | |
9195 | archive_expsym_cmds= | |
9196 | compiler_needs_object=no | |
9197 | enable_shared_with_static_runtimes=no | |
9198 | export_dynamic_flag_spec= | |
9199 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9200 | hardcode_automatic=no | |
9201 | hardcode_direct=no | |
9202 | hardcode_direct_absolute=no | |
9203 | hardcode_libdir_flag_spec= | |
9204 | hardcode_libdir_separator= | |
9205 | hardcode_minus_L=no | |
9206 | hardcode_shlibpath_var=unsupported | |
9207 | inherit_rpath=no | |
9208 | link_all_deplibs=unknown | |
9209 | module_cmds= | |
9210 | module_expsym_cmds= | |
9211 | old_archive_from_new_cmds= | |
9212 | old_archive_from_expsyms_cmds= | |
9213 | thread_safe_flag_spec= | |
9214 | whole_archive_flag_spec= | |
9215 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9216 | # included in the symbol list | |
9217 | include_expsyms= | |
9218 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9219 | # it will be wrapped by ' (' and ')$', so one must not match beginning or | |
9220 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
9221 | # as well as any symbol that contains 'd'. | |
9222 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9223 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9224 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9225 | # the symbol is explicitly referenced. Since portable code cannot | |
9226 | # rely on this symbol name, it's probably fine to never include it in | |
9227 | # preloaded symbol tables. | |
9228 | # Exclude shared library initialization/finalization symbols. | |
9229 | extract_expsyms_cmds= | |
9230 | ||
9231 | case $host_os in | |
9232 | cygwin* | mingw* | pw32* | cegcc*) | |
9233 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9234 | # When not using gcc, we currently assume that we are using | |
9235 | # Microsoft Visual C++. | |
9236 | if test yes != "$GCC"; then | |
9237 | with_gnu_ld=no | |
9238 | fi | |
9239 | ;; | |
9240 | interix*) | |
9241 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9242 | with_gnu_ld=yes | |
9243 | ;; | |
9244 | openbsd* | bitrig*) | |
9245 | with_gnu_ld=no | |
9246 | ;; | |
9247 | linux* | k*bsd*-gnu | gnu*) | |
9248 | link_all_deplibs=no | |
9249 | ;; | |
9250 | esac | |
9251 | ||
9252 | ld_shlibs=yes | |
9253 | ||
9254 | # On some targets, GNU ld is compatible enough with the native linker | |
9255 | # that we're better off using the native interface for both. | |
9256 | lt_use_gnu_ld_interface=no | |
9257 | if test yes = "$with_gnu_ld"; then | |
9258 | case $host_os in | |
9259 | aix*) | |
9260 | # The AIX port of GNU ld has always aspired to compatibility | |
9261 | # with the native linker. However, as the warning in the GNU ld | |
9262 | # block says, versions before 2.19.5* couldn't really create working | |
9263 | # shared libraries, regardless of the interface used. | |
9264 | case `$LD -v 2>&1` in | |
9265 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9266 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9267 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9268 | *) | |
9269 | lt_use_gnu_ld_interface=yes | |
9270 | ;; | |
9271 | esac | |
9272 | ;; | |
9273 | *) | |
9274 | lt_use_gnu_ld_interface=yes | |
9275 | ;; | |
9276 | esac | |
9277 | fi | |
9278 | ||
9279 | if test yes = "$lt_use_gnu_ld_interface"; then | |
9280 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9281 | wlarc='$wl' | |
9282 | ||
9283 | # Set some defaults for GNU ld with shared library support. These | |
9284 | # are reset later if shared libraries are not supported. Putting them | |
9285 | # here allows them to be overridden if necessary. | |
9286 | runpath_var=LD_RUN_PATH | |
9287 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9288 | export_dynamic_flag_spec='$wl--export-dynamic' | |
9289 | # ancient GNU ld didn't support --whole-archive et. al. | |
9290 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9291 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
9292 | else | |
9293 | whole_archive_flag_spec= | |
9294 | fi | |
9295 | supports_anon_versioning=no | |
9296 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in | |
9297 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9298 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9299 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9300 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9301 | *\ 2.11.*) ;; # other 2.11 versions | |
9302 | *) supports_anon_versioning=yes ;; | |
9303 | esac | |
9304 | ||
9305 | # See if GNU ld supports shared libraries. | |
9306 | case $host_os in | |
9307 | aix[3-9]*) | |
9308 | # On AIX/PPC, the GNU linker is very broken | |
9309 | if test ia64 != "$host_cpu"; then | |
9310 | ld_shlibs=no | |
9311 | cat <<_LT_EOF 1>&2 | |
9312 | ||
9313 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9314 | *** to be unable to reliably create shared libraries on AIX. | |
9315 | *** Therefore, libtool is disabling shared libraries support. If you | |
9316 | *** really care for shared libraries, you may want to install binutils | |
9317 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9318 | *** You will then need to restart the configuration process. | |
9319 | ||
9320 | _LT_EOF | |
9321 | fi | |
9322 | ;; | |
9323 | ||
9324 | amigaos*) | |
9325 | case $host_cpu in | |
9326 | powerpc) | |
9327 | # see comment about AmigaOS4 .so support | |
9328 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9329 | archive_expsym_cmds='' | |
9330 | ;; | |
9331 | m68k) | |
9332 | 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)' | |
9333 | hardcode_libdir_flag_spec='-L$libdir' | |
9334 | hardcode_minus_L=yes | |
9335 | ;; | |
9336 | esac | |
9337 | ;; | |
9338 | ||
9339 | beos*) | |
9340 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9341 | allow_undefined_flag=unsupported | |
9342 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9343 | # support --undefined. This deserves some investigation. FIXME | |
9344 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9345 | else | |
9346 | ld_shlibs=no | |
9347 | fi | |
9348 | ;; | |
9349 | ||
9350 | cygwin* | mingw* | pw32* | cegcc*) | |
9351 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9352 | # as there is no search path for DLLs. | |
9353 | hardcode_libdir_flag_spec='-L$libdir' | |
9354 | export_dynamic_flag_spec='$wl--export-all-symbols' | |
9355 | allow_undefined_flag=unsupported | |
9356 | always_export_symbols=no | |
9357 | enable_shared_with_static_runtimes=yes | |
9358 | 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' | |
9359 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9360 | ||
9361 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9362 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9363 | # If the export-symbols file already is a .def file, use it as | |
9364 | # is; otherwise, prepend EXPORTS... | |
9365 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9366 | cp $export_symbols $output_objdir/$soname.def; | |
9367 | else | |
9368 | echo EXPORTS > $output_objdir/$soname.def; | |
9369 | cat $export_symbols >> $output_objdir/$soname.def; | |
9370 | fi~ | |
9371 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9372 | else | |
9373 | ld_shlibs=no | |
9374 | fi | |
9375 | ;; | |
9376 | ||
9377 | haiku*) | |
9378 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9379 | link_all_deplibs=yes | |
9380 | ;; | |
9381 | ||
9382 | os2*) | |
9383 | hardcode_libdir_flag_spec='-L$libdir' | |
9384 | hardcode_minus_L=yes | |
9385 | allow_undefined_flag=unsupported | |
9386 | shrext_cmds=.dll | |
9387 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9388 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9389 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9390 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9391 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9392 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9393 | emximp -o $lib $output_objdir/$libname.def' | |
9394 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9395 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9396 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9397 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9398 | prefix_cmds="$SED"~ | |
9399 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9400 | prefix_cmds="$prefix_cmds -e 1d"; | |
9401 | fi~ | |
9402 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9403 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9404 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9405 | emximp -o $lib $output_objdir/$libname.def' | |
9406 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9407 | enable_shared_with_static_runtimes=yes | |
9408 | ;; | |
9409 | ||
9410 | interix[3-9]*) | |
9411 | hardcode_direct=no | |
9412 | hardcode_shlibpath_var=no | |
9413 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
9414 | export_dynamic_flag_spec='$wl-E' | |
9415 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9416 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9417 | # default) and relocated if they conflict, which is a slow very memory | |
9418 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9419 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9420 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9421 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9422 | 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' | |
9423 | ;; | |
9424 | ||
9425 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9426 | tmp_diet=no | |
9427 | if test linux-dietlibc = "$host_os"; then | |
9428 | case $cc_basename in | |
9429 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9430 | esac | |
9431 | fi | |
9432 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9433 | && test no = "$tmp_diet" | |
9434 | then | |
9435 | tmp_addflag=' $pic_flag' | |
9436 | tmp_sharedflag='-shared' | |
9437 | case $cc_basename,$host_cpu in | |
9438 | pgcc*) # Portland Group C compiler | |
9439 | 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' | |
9440 | tmp_addflag=' $pic_flag' | |
9441 | ;; | |
9442 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9443 | # Portland Group f77 and f90 compilers | |
9444 | 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' | |
9445 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9446 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9447 | tmp_addflag=' -i_dynamic' ;; | |
9448 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9449 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9450 | ifc* | ifort*) # Intel Fortran compiler | |
9451 | tmp_addflag=' -nofor_main' ;; | |
9452 | lf95*) # Lahey Fortran 8.1 | |
9453 | whole_archive_flag_spec= | |
9454 | tmp_sharedflag='--shared' ;; | |
9455 | nagfor*) # NAGFOR 5.3 | |
9456 | tmp_sharedflag='-Wl,-shared' ;; | |
9457 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9458 | tmp_sharedflag='-qmkshrobj' | |
9459 | tmp_addflag= ;; | |
9460 | nvcc*) # Cuda Compiler Driver 2.2 | |
9461 | 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' | |
9462 | compiler_needs_object=yes | |
9463 | ;; | |
9464 | esac | |
9465 | case `$CC -V 2>&1 | sed 5q` in | |
9466 | *Sun\ C*) # Sun C 5.9 | |
9467 | 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' | |
9468 | compiler_needs_object=yes | |
9469 | tmp_sharedflag='-G' ;; | |
9470 | *Sun\ F*) # Sun Fortran 8.3 | |
9471 | tmp_sharedflag='-G' ;; | |
9472 | esac | |
9473 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9474 | ||
9475 | if test yes = "$supports_anon_versioning"; then | |
9476 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9477 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9478 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9479 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
9480 | fi | |
9481 | ||
9482 | case $cc_basename in | |
9483 | tcc*) | |
9484 | export_dynamic_flag_spec='-rdynamic' | |
9485 | ;; | |
9486 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9487 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9488 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9489 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9490 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9491 | if test yes = "$supports_anon_versioning"; then | |
9492 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9493 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9494 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9495 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9496 | fi | |
9497 | ;; | |
9498 | esac | |
9499 | else | |
9500 | ld_shlibs=no | |
9501 | fi | |
9502 | ;; | |
9503 | ||
9504 | netbsd* | netbsdelf*-gnu) | |
9505 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9506 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9507 | wlarc= | |
9508 | else | |
9509 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9510 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9511 | fi | |
9512 | ;; | |
9513 | ||
9514 | solaris*) | |
9515 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9516 | ld_shlibs=no | |
9517 | cat <<_LT_EOF 1>&2 | |
9518 | ||
9519 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9520 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9521 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9522 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9523 | *** your PATH or compiler configuration so that the native linker is | |
9524 | *** used, and then restart. | |
9525 | ||
9526 | _LT_EOF | |
9527 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9528 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9529 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9530 | else | |
9531 | ld_shlibs=no | |
9532 | fi | |
9533 | ;; | |
9534 | ||
9535 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9536 | case `$LD -v 2>&1` in | |
9537 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9538 | ld_shlibs=no | |
9539 | cat <<_LT_EOF 1>&2 | |
9540 | ||
9541 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot | |
9542 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9543 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9544 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9545 | *** your PATH or compiler configuration so that the native linker is | |
9546 | *** used, and then restart. | |
9547 | ||
9548 | _LT_EOF | |
9549 | ;; | |
9550 | *) | |
9551 | # For security reasons, it is highly recommended that you always | |
9552 | # use absolute paths for naming shared libraries, and exclude the | |
9553 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9554 | # requires that you compile everything twice, which is a pain. | |
9555 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9556 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9557 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9558 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9559 | else | |
9560 | ld_shlibs=no | |
9561 | fi | |
9562 | ;; | |
9563 | esac | |
9564 | ;; | |
9565 | ||
9566 | sunos4*) | |
9567 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9568 | wlarc= | |
9569 | hardcode_direct=yes | |
9570 | hardcode_shlibpath_var=no | |
9571 | ;; | |
9572 | ||
9573 | *) | |
9574 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9575 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9576 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9577 | else | |
9578 | ld_shlibs=no | |
9579 | fi | |
9580 | ;; | |
9581 | esac | |
9582 | ||
9583 | if test no = "$ld_shlibs"; then | |
9584 | runpath_var= | |
9585 | hardcode_libdir_flag_spec= | |
9586 | export_dynamic_flag_spec= | |
9587 | whole_archive_flag_spec= | |
9588 | fi | |
9589 | else | |
9590 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9591 | case $host_os in | |
9592 | aix3*) | |
9593 | allow_undefined_flag=unsupported | |
9594 | always_export_symbols=yes | |
9595 | 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' | |
9596 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9597 | # are no directories specified by -L. | |
9598 | hardcode_minus_L=yes | |
9599 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then | |
9600 | # Neither direct hardcoding nor static linking is supported with a | |
9601 | # broken collect2. | |
9602 | hardcode_direct=unsupported | |
9603 | fi | |
9604 | ;; | |
9605 | ||
9606 | aix[4-9]*) | |
9607 | if test ia64 = "$host_cpu"; then | |
9608 | # On IA64, the linker does run time linking by default, so we don't | |
9609 | # have to do anything special. | |
9610 | aix_use_runtimelinking=no | |
9611 | exp_sym_flag='-Bexport' | |
9612 | no_entry_flag= | |
9613 | else | |
9614 | # If we're using GNU nm, then we don't want the "-C" option. | |
9615 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. | |
9616 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
9617 | # weak defined symbols like other global defined symbols, whereas | |
9618 | # GNU nm marks them as "W". | |
9619 | # While the 'weak' keyword is ignored in the Export File, we need | |
9620 | # it in the Import File for the 'aix-soname' feature, so we have | |
9621 | # to replace the "-B" option with "-P" for AIX nm. | |
9622 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9623 | 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' | |
9624 | else | |
9625 | 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' | |
9626 | fi | |
9627 | aix_use_runtimelinking=no | |
9628 | ||
9629 | # Test if we are trying to use run time linking or normal | |
9630 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9631 | # have runtime linking enabled, and use it for executables. | |
9632 | # For shared libraries, we enable/disable runtime linking | |
9633 | # depending on the kind of the shared library created - | |
9634 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
9635 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
9636 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
9637 | # lib.a static archive | |
9638 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
9639 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
9640 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9641 | # lib.a(lib.so.V) shared, rtl:no | |
9642 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9643 | # lib.a static archive | |
9644 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9645 | for ld_flag in $LDFLAGS; do | |
9646 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then | |
9647 | aix_use_runtimelinking=yes | |
9648 | break | |
9649 | fi | |
9650 | done | |
9651 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then | |
9652 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
9653 | # so we don't have lib.a shared libs to link our executables. | |
9654 | # We have to force runtime linking in this case. | |
9655 | aix_use_runtimelinking=yes | |
9656 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
9657 | fi | |
9658 | ;; | |
9659 | esac | |
9660 | ||
9661 | exp_sym_flag='-bexport' | |
9662 | no_entry_flag='-bnoentry' | |
9663 | fi | |
9664 | ||
9665 | # When large executables or shared objects are built, AIX ld can | |
9666 | # have problems creating the table of contents. If linking a library | |
9667 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9668 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9669 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9670 | ||
9671 | archive_cmds='' | |
9672 | hardcode_direct=yes | |
9673 | hardcode_direct_absolute=yes | |
9674 | hardcode_libdir_separator=':' | |
9675 | link_all_deplibs=yes | |
9676 | file_list_spec='$wl-f,' | |
9677 | case $with_aix_soname,$aix_use_runtimelinking in | |
9678 | aix,*) ;; # traditional, no import file | |
9679 | svr4,* | *,yes) # use import file | |
9680 | # The Import File defines what to hardcode. | |
9681 | hardcode_direct=no | |
9682 | hardcode_direct_absolute=no | |
9683 | ;; | |
9684 | esac | |
9685 | ||
9686 | if test yes = "$GCC"; then | |
9687 | case $host_os in aix4.[012]|aix4.[012].*) | |
9688 | # We only want to do this on AIX 4.2 and lower, the check | |
9689 | # below for broken collect2 doesn't work under 4.3+ | |
9690 | collect2name=`$CC -print-prog-name=collect2` | |
9691 | if test -f "$collect2name" && | |
9692 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9693 | then | |
9694 | # We have reworked collect2 | |
9695 | : | |
9696 | else | |
9697 | # We have old collect2 | |
9698 | hardcode_direct=unsupported | |
9699 | # It fails to find uninstalled libraries when the uninstalled | |
9700 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9701 | # to unsupported forces relinking | |
9702 | hardcode_minus_L=yes | |
9703 | hardcode_libdir_flag_spec='-L$libdir' | |
9704 | hardcode_libdir_separator= | |
9705 | fi | |
9706 | ;; | |
9707 | esac | |
9708 | shared_flag='-shared' | |
9709 | if test yes = "$aix_use_runtimelinking"; then | |
9710 | shared_flag="$shared_flag "'$wl-G' | |
9711 | fi | |
9712 | # Need to ensure runtime linking is disabled for the traditional | |
9713 | # shared library, or the linker may eventually find shared libraries | |
9714 | # /with/ Import File - we do not want to mix them. | |
9715 | shared_flag_aix='-shared' | |
9716 | shared_flag_svr4='-shared $wl-G' | |
9717 | else | |
9718 | # not using gcc | |
9719 | if test ia64 = "$host_cpu"; then | |
9720 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9721 | # chokes on -Wl,-G. The following line is correct: | |
9722 | shared_flag='-G' | |
9723 | else | |
9724 | if test yes = "$aix_use_runtimelinking"; then | |
9725 | shared_flag='$wl-G' | |
9726 | else | |
9727 | shared_flag='$wl-bM:SRE' | |
9728 | fi | |
9729 | shared_flag_aix='$wl-bM:SRE' | |
9730 | shared_flag_svr4='$wl-G' | |
9731 | fi | |
9732 | fi | |
9733 | ||
9734 | export_dynamic_flag_spec='$wl-bexpall' | |
9735 | # It seems that -bexpall does not export symbols beginning with | |
9736 | # underscore (_), so it is better to generate a list of symbols to export. | |
9737 | always_export_symbols=yes | |
9738 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then | |
9739 | # Warning - without using the other runtime loading flags (-brtl), | |
9740 | # -berok will link without error, but may produce a broken library. | |
9741 | allow_undefined_flag='-berok' | |
9742 | # Determine the default libpath from the value encoded in an | |
9743 | # empty executable. | |
9744 | if test set = "${lt_cv_aix_libpath+set}"; then | |
9745 | aix_libpath=$lt_cv_aix_libpath | |
9746 | else | |
9747 | if ${lt_cv_aix_libpath_+:} false; then : | |
9748 | $as_echo_n "(cached) " >&6 | |
9749 | else | |
9750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9751 | /* end confdefs.h. */ | |
9752 | ||
9753 | int | |
9754 | main () | |
9755 | { | |
9756 | ||
9757 | ; | |
9758 | return 0; | |
9759 | } | |
9760 | _ACEOF | |
9761 | if ac_fn_c_try_link "$LINENO"; then : | |
9762 | ||
9763 | lt_aix_libpath_sed=' | |
9764 | /Import File Strings/,/^$/ { | |
9765 | /^0/ { | |
9766 | s/^0 *\([^ ]*\) *$/\1/ | |
9767 | p | |
9768 | } | |
9769 | }' | |
9770 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9771 | # Check for a 64-bit object if we didn't find anything. | |
9772 | if test -z "$lt_cv_aix_libpath_"; then | |
9773 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9774 | fi | |
9775 | fi | |
9776 | rm -f core conftest.err conftest.$ac_objext \ | |
9777 | conftest$ac_exeext conftest.$ac_ext | |
9778 | if test -z "$lt_cv_aix_libpath_"; then | |
9779 | lt_cv_aix_libpath_=/usr/lib:/lib | |
9780 | fi | |
9781 | ||
9782 | fi | |
9783 | ||
9784 | aix_libpath=$lt_cv_aix_libpath_ | |
9785 | fi | |
9786 | ||
9787 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
9788 | 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 | |
9789 | else | |
9790 | if test ia64 = "$host_cpu"; then | |
9791 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
9792 | allow_undefined_flag="-z nodefs" | |
9793 | 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" | |
9794 | else | |
9795 | # Determine the default libpath from the value encoded in an | |
9796 | # empty executable. | |
9797 | if test set = "${lt_cv_aix_libpath+set}"; then | |
9798 | aix_libpath=$lt_cv_aix_libpath | |
9799 | else | |
9800 | if ${lt_cv_aix_libpath_+:} false; then : | |
9801 | $as_echo_n "(cached) " >&6 | |
9802 | else | |
9803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9804 | /* end confdefs.h. */ | |
9805 | ||
9806 | int | |
9807 | main () | |
9808 | { | |
9809 | ||
9810 | ; | |
9811 | return 0; | |
9812 | } | |
9813 | _ACEOF | |
9814 | if ac_fn_c_try_link "$LINENO"; then : | |
9815 | ||
9816 | lt_aix_libpath_sed=' | |
9817 | /Import File Strings/,/^$/ { | |
9818 | /^0/ { | |
9819 | s/^0 *\([^ ]*\) *$/\1/ | |
9820 | p | |
9821 | } | |
9822 | }' | |
9823 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9824 | # Check for a 64-bit object if we didn't find anything. | |
9825 | if test -z "$lt_cv_aix_libpath_"; then | |
9826 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9827 | fi | |
9828 | fi | |
9829 | rm -f core conftest.err conftest.$ac_objext \ | |
9830 | conftest$ac_exeext conftest.$ac_ext | |
9831 | if test -z "$lt_cv_aix_libpath_"; then | |
9832 | lt_cv_aix_libpath_=/usr/lib:/lib | |
9833 | fi | |
9834 | ||
9835 | fi | |
9836 | ||
9837 | aix_libpath=$lt_cv_aix_libpath_ | |
9838 | fi | |
9839 | ||
9840 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
9841 | # Warning - without using the other run time loading flags, | |
9842 | # -berok will link without error, but may produce a broken library. | |
9843 | no_undefined_flag=' $wl-bernotok' | |
9844 | allow_undefined_flag=' $wl-berok' | |
9845 | if test yes = "$with_gnu_ld"; then | |
9846 | # We only use this code for GNU lds that support --whole-archive. | |
9847 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' | |
9848 | else | |
9849 | # Exported symbols can be pulled into shared objects from archives | |
9850 | whole_archive_flag_spec='$convenience' | |
9851 | fi | |
9852 | archive_cmds_need_lc=yes | |
9853 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' | |
9854 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
9855 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
9856 | if test svr4 != "$with_aix_soname"; then | |
9857 | # This is similar to how AIX traditionally builds its shared libraries. | |
9858 | 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' | |
9859 | fi | |
9860 | if test aix != "$with_aix_soname"; then | |
9861 | 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' | |
9862 | else | |
9863 | # used by -dlpreopen to get the symbols | |
9864 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
9865 | fi | |
9866 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
9867 | fi | |
9868 | fi | |
9869 | ;; | |
9870 | ||
9871 | amigaos*) | |
9872 | case $host_cpu in | |
9873 | powerpc) | |
9874 | # see comment about AmigaOS4 .so support | |
9875 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9876 | archive_expsym_cmds='' | |
9877 | ;; | |
9878 | m68k) | |
9879 | 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)' | |
9880 | hardcode_libdir_flag_spec='-L$libdir' | |
9881 | hardcode_minus_L=yes | |
9882 | ;; | |
9883 | esac | |
9884 | ;; | |
9885 | ||
9886 | bsdi[45]*) | |
9887 | export_dynamic_flag_spec=-rdynamic | |
9888 | ;; | |
9889 | ||
9890 | cygwin* | mingw* | pw32* | cegcc*) | |
9891 | # When not using gcc, we currently assume that we are using | |
9892 | # Microsoft Visual C++. | |
9893 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9894 | # no search path for DLLs. | |
9895 | case $cc_basename in | |
9896 | cl*) | |
9897 | # Native MSVC | |
9898 | hardcode_libdir_flag_spec=' ' | |
9899 | allow_undefined_flag=unsupported | |
9900 | always_export_symbols=yes | |
9901 | file_list_spec='@' | |
9902 | # Tell ltmain to make .lib files, not .a files. | |
9903 | libext=lib | |
9904 | # Tell ltmain to make .dll files, not .so files. | |
9905 | shrext_cmds=.dll | |
9906 | # FIXME: Setting linknames here is a bad hack. | |
9907 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' | |
9908 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9909 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
9910 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
9911 | else | |
9912 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
9913 | fi~ | |
9914 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9915 | linknames=' | |
9916 | # The linker will not automatically build a static lib if we build a DLL. | |
9917 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9918 | enable_shared_with_static_runtimes=yes | |
9919 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9920 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9921 | # Don't use ranlib | |
9922 | old_postinstall_cmds='chmod 644 $oldlib' | |
9923 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9924 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
9925 | case $lt_outputfile in | |
9926 | *.exe|*.EXE) ;; | |
9927 | *) | |
9928 | lt_outputfile=$lt_outputfile.exe | |
9929 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
9930 | ;; | |
9931 | esac~ | |
9932 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
9933 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9934 | $RM "$lt_outputfile.manifest"; | |
9935 | fi' | |
9936 | ;; | |
9937 | *) | |
9938 | # Assume MSVC wrapper | |
9939 | hardcode_libdir_flag_spec=' ' | |
9940 | allow_undefined_flag=unsupported | |
9941 | # Tell ltmain to make .lib files, not .a files. | |
9942 | libext=lib | |
9943 | # Tell ltmain to make .dll files, not .so files. | |
9944 | shrext_cmds=.dll | |
9945 | # FIXME: Setting linknames here is a bad hack. | |
9946 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9947 | # The linker will automatically build a .lib file if we build a DLL. | |
9948 | old_archive_from_new_cmds='true' | |
9949 | # FIXME: Should let the user specify the lib program. | |
9950 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9951 | enable_shared_with_static_runtimes=yes | |
9952 | ;; | |
9953 | esac | |
9954 | ;; | |
9955 | ||
9956 | darwin* | rhapsody*) | |
9957 | ||
9958 | ||
9959 | archive_cmds_need_lc=no | |
9960 | hardcode_direct=no | |
9961 | hardcode_automatic=yes | |
9962 | hardcode_shlibpath_var=unsupported | |
9963 | if test yes = "$lt_cv_ld_force_load"; then | |
9964 | 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\"`' | |
9965 | ||
9966 | else | |
9967 | whole_archive_flag_spec='' | |
9968 | fi | |
9969 | link_all_deplibs=yes | |
9970 | allow_undefined_flag=$_lt_dar_allow_undefined | |
9971 | case $cc_basename in | |
9972 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; | |
9973 | *) _lt_dar_can_shared=$GCC ;; | |
9974 | esac | |
9975 | if test yes = "$_lt_dar_can_shared"; then | |
9976 | output_verbose_link_cmd=func_echo_all | |
9977 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" | |
9978 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
9979 | 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" | |
9980 | 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" | |
9981 | ||
9982 | else | |
9983 | ld_shlibs=no | |
9984 | fi | |
9985 | ||
9986 | ;; | |
9987 | ||
9988 | dgux*) | |
9989 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9990 | hardcode_libdir_flag_spec='-L$libdir' | |
9991 | hardcode_shlibpath_var=no | |
9992 | ;; | |
9993 | ||
9994 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9995 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9996 | # does not break anything, and helps significantly (at the cost of a little | |
9997 | # extra space). | |
9998 | freebsd2.2*) | |
9999 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10000 | hardcode_libdir_flag_spec='-R$libdir' | |
10001 | hardcode_direct=yes | |
10002 | hardcode_shlibpath_var=no | |
10003 | ;; | |
10004 | ||
10005 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10006 | freebsd2.*) | |
10007 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10008 | hardcode_direct=yes | |
10009 | hardcode_minus_L=yes | |
10010 | hardcode_shlibpath_var=no | |
10011 | ;; | |
10012 | ||
10013 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10014 | freebsd* | dragonfly*) | |
10015 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10016 | hardcode_libdir_flag_spec='-R$libdir' | |
10017 | hardcode_direct=yes | |
10018 | hardcode_shlibpath_var=no | |
10019 | ;; | |
10020 | ||
10021 | hpux9*) | |
10022 | if test yes = "$GCC"; then | |
10023 | 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' | |
10024 | else | |
10025 | 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' | |
10026 | fi | |
10027 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
10028 | hardcode_libdir_separator=: | |
10029 | hardcode_direct=yes | |
10030 | ||
10031 | # hardcode_minus_L: Not really in the search PATH, | |
10032 | # but as the default location of the library. | |
10033 | hardcode_minus_L=yes | |
10034 | export_dynamic_flag_spec='$wl-E' | |
10035 | ;; | |
10036 | ||
10037 | hpux10*) | |
10038 | if test yes,no = "$GCC,$with_gnu_ld"; then | |
10039 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10040 | else | |
10041 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10042 | fi | |
10043 | if test no = "$with_gnu_ld"; then | |
10044 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
10045 | hardcode_libdir_separator=: | |
10046 | hardcode_direct=yes | |
10047 | hardcode_direct_absolute=yes | |
10048 | export_dynamic_flag_spec='$wl-E' | |
10049 | # hardcode_minus_L: Not really in the search PATH, | |
10050 | # but as the default location of the library. | |
10051 | hardcode_minus_L=yes | |
10052 | fi | |
10053 | ;; | |
10054 | ||
10055 | hpux11*) | |
10056 | if test yes,no = "$GCC,$with_gnu_ld"; then | |
10057 | case $host_cpu in | |
10058 | hppa*64*) | |
10059 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10060 | ;; | |
10061 | ia64*) | |
10062 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10063 | ;; | |
10064 | *) | |
10065 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10066 | ;; | |
10067 | esac | |
10068 | else | |
10069 | case $host_cpu in | |
10070 | hppa*64*) | |
10071 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10072 | ;; | |
10073 | ia64*) | |
10074 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10075 | ;; | |
10076 | *) | |
10077 | ||
10078 | # Older versions of the 11.00 compiler do not understand -b yet | |
10079 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10081 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10082 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10083 | $as_echo_n "(cached) " >&6 | |
10084 | else | |
10085 | lt_cv_prog_compiler__b=no | |
10086 | save_LDFLAGS=$LDFLAGS | |
10087 | LDFLAGS="$LDFLAGS -b" | |
10088 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10089 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10090 | # The linker can only warn and ignore the option if not recognized | |
10091 | # So say no if there are warnings | |
10092 | if test -s conftest.err; then | |
10093 | # Append any errors to the config.log. | |
10094 | cat conftest.err 1>&5 | |
10095 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10096 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10097 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10098 | lt_cv_prog_compiler__b=yes | |
10099 | fi | |
10100 | else | |
10101 | lt_cv_prog_compiler__b=yes | |
10102 | fi | |
10103 | fi | |
10104 | $RM -r conftest* | |
10105 | LDFLAGS=$save_LDFLAGS | |
10106 | ||
10107 | fi | |
10108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10109 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10110 | ||
10111 | if test yes = "$lt_cv_prog_compiler__b"; then | |
10112 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10113 | else | |
10114 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10115 | fi | |
10116 | ||
10117 | ;; | |
10118 | esac | |
10119 | fi | |
10120 | if test no = "$with_gnu_ld"; then | |
10121 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
10122 | hardcode_libdir_separator=: | |
10123 | ||
10124 | case $host_cpu in | |
10125 | hppa*64*|ia64*) | |
10126 | hardcode_direct=no | |
10127 | hardcode_shlibpath_var=no | |
10128 | ;; | |
10129 | *) | |
10130 | hardcode_direct=yes | |
10131 | hardcode_direct_absolute=yes | |
10132 | export_dynamic_flag_spec='$wl-E' | |
10133 | ||
10134 | # hardcode_minus_L: Not really in the search PATH, | |
10135 | # but as the default location of the library. | |
10136 | hardcode_minus_L=yes | |
10137 | ;; | |
10138 | esac | |
10139 | fi | |
10140 | ;; | |
10141 | ||
10142 | irix5* | irix6* | nonstopux*) | |
10143 | if test yes = "$GCC"; then | |
10144 | 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' | |
10145 | # Try to use the -exported_symbol ld option, if it does not | |
10146 | # work, assume that -exports_file does not work either and | |
10147 | # implicitly export all symbols. | |
10148 | # This should be the same for all languages, so no per-tag cache variable. | |
10149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10150 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10151 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10152 | $as_echo_n "(cached) " >&6 | |
10153 | else | |
10154 | save_LDFLAGS=$LDFLAGS | |
10155 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
10156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10157 | /* end confdefs.h. */ | |
10158 | int foo (void) { return 0; } | |
10159 | _ACEOF | |
10160 | if ac_fn_c_try_link "$LINENO"; then : | |
10161 | lt_cv_irix_exported_symbol=yes | |
10162 | else | |
10163 | lt_cv_irix_exported_symbol=no | |
10164 | fi | |
10165 | rm -f core conftest.err conftest.$ac_objext \ | |
10166 | conftest$ac_exeext conftest.$ac_ext | |
10167 | LDFLAGS=$save_LDFLAGS | |
10168 | fi | |
10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10170 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10171 | if test yes = "$lt_cv_irix_exported_symbol"; then | |
10172 | 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' | |
10173 | fi | |
10174 | link_all_deplibs=no | |
10175 | else | |
10176 | 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' | |
10177 | 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' | |
10178 | fi | |
10179 | archive_cmds_need_lc='no' | |
10180 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10181 | hardcode_libdir_separator=: | |
10182 | inherit_rpath=yes | |
10183 | link_all_deplibs=yes | |
10184 | ;; | |
10185 | ||
10186 | linux*) | |
10187 | case $cc_basename in | |
10188 | tcc*) | |
10189 | # Fabrice Bellard et al's Tiny C Compiler | |
10190 | ld_shlibs=yes | |
10191 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10192 | ;; | |
10193 | esac | |
10194 | ;; | |
10195 | ||
10196 | netbsd* | netbsdelf*-gnu) | |
10197 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10198 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10199 | else | |
10200 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10201 | fi | |
10202 | hardcode_libdir_flag_spec='-R$libdir' | |
10203 | hardcode_direct=yes | |
10204 | hardcode_shlibpath_var=no | |
10205 | ;; | |
10206 | ||
10207 | newsos6) | |
10208 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10209 | hardcode_direct=yes | |
10210 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10211 | hardcode_libdir_separator=: | |
10212 | hardcode_shlibpath_var=no | |
10213 | ;; | |
10214 | ||
10215 | *nto* | *qnx*) | |
10216 | ;; | |
10217 | ||
10218 | openbsd* | bitrig*) | |
10219 | if test -f /usr/libexec/ld.so; then | |
10220 | hardcode_direct=yes | |
10221 | hardcode_shlibpath_var=no | |
10222 | hardcode_direct_absolute=yes | |
10223 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
10224 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10225 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' | |
10226 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10227 | export_dynamic_flag_spec='$wl-E' | |
10228 | else | |
10229 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10230 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10231 | fi | |
10232 | else | |
10233 | ld_shlibs=no | |
10234 | fi | |
10235 | ;; | |
10236 | ||
10237 | os2*) | |
10238 | hardcode_libdir_flag_spec='-L$libdir' | |
10239 | hardcode_minus_L=yes | |
10240 | allow_undefined_flag=unsupported | |
10241 | shrext_cmds=.dll | |
10242 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10243 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10244 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10245 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10246 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
10247 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10248 | emximp -o $lib $output_objdir/$libname.def' | |
10249 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10250 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10251 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10252 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10253 | prefix_cmds="$SED"~ | |
10254 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
10255 | prefix_cmds="$prefix_cmds -e 1d"; | |
10256 | fi~ | |
10257 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10258 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10259 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10260 | emximp -o $lib $output_objdir/$libname.def' | |
10261 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10262 | enable_shared_with_static_runtimes=yes | |
10263 | ;; | |
10264 | ||
10265 | osf3*) | |
10266 | if test yes = "$GCC"; then | |
10267 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10268 | 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' | |
10269 | else | |
10270 | allow_undefined_flag=' -expect_unresolved \*' | |
10271 | 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' | |
10272 | fi | |
10273 | archive_cmds_need_lc='no' | |
10274 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10275 | hardcode_libdir_separator=: | |
10276 | ;; | |
10277 | ||
10278 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10279 | if test yes = "$GCC"; then | |
10280 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10281 | 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' | |
10282 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10283 | else | |
10284 | allow_undefined_flag=' -expect_unresolved \*' | |
10285 | 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' | |
10286 | 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~ | |
10287 | $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' | |
10288 | ||
10289 | # Both c and cxx compiler support -rpath directly | |
10290 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10291 | fi | |
10292 | archive_cmds_need_lc='no' | |
10293 | hardcode_libdir_separator=: | |
10294 | ;; | |
10295 | ||
10296 | solaris*) | |
10297 | no_undefined_flag=' -z defs' | |
10298 | if test yes = "$GCC"; then | |
10299 | wlarc='$wl' | |
10300 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10301 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10302 | $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' | |
10303 | else | |
10304 | case `$CC -V 2>&1` in | |
10305 | *"Compilers 5.0"*) | |
10306 | wlarc='' | |
10307 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10308 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10309 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10310 | ;; | |
10311 | *) | |
10312 | wlarc='$wl' | |
10313 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10314 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10315 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10316 | ;; | |
10317 | esac | |
10318 | fi | |
10319 | hardcode_libdir_flag_spec='-R$libdir' | |
10320 | hardcode_shlibpath_var=no | |
10321 | case $host_os in | |
10322 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10323 | *) | |
10324 | # The compiler driver will combine and reorder linker options, | |
10325 | # but understands '-z linker_flag'. GCC discards it without '$wl', | |
10326 | # but is careful enough not to reorder. | |
10327 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10328 | if test yes = "$GCC"; then | |
10329 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
10330 | else | |
10331 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10332 | fi | |
10333 | ;; | |
10334 | esac | |
10335 | link_all_deplibs=yes | |
10336 | ;; | |
10337 | ||
10338 | sunos4*) | |
10339 | if test sequent = "$host_vendor"; then | |
10340 | # Use $CC to link under sequent, because it throws in some extra .o | |
10341 | # files that make .init and .fini sections work. | |
10342 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10343 | else | |
10344 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10345 | fi | |
10346 | hardcode_libdir_flag_spec='-L$libdir' | |
10347 | hardcode_direct=yes | |
10348 | hardcode_minus_L=yes | |
10349 | hardcode_shlibpath_var=no | |
10350 | ;; | |
10351 | ||
10352 | sysv4) | |
10353 | case $host_vendor in | |
10354 | sni) | |
10355 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10356 | hardcode_direct=yes # is this really true??? | |
10357 | ;; | |
10358 | siemens) | |
10359 | ## LD is ld it makes a PLAMLIB | |
10360 | ## CC just makes a GrossModule. | |
10361 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10362 | reload_cmds='$CC -r -o $output$reload_objs' | |
10363 | hardcode_direct=no | |
10364 | ;; | |
10365 | motorola) | |
10366 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10367 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10368 | ;; | |
10369 | esac | |
10370 | runpath_var='LD_RUN_PATH' | |
10371 | hardcode_shlibpath_var=no | |
10372 | ;; | |
10373 | ||
10374 | sysv4.3*) | |
10375 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10376 | hardcode_shlibpath_var=no | |
10377 | export_dynamic_flag_spec='-Bexport' | |
10378 | ;; | |
10379 | ||
10380 | sysv4*MP*) | |
10381 | if test -d /usr/nec; then | |
10382 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10383 | hardcode_shlibpath_var=no | |
10384 | runpath_var=LD_RUN_PATH | |
10385 | hardcode_runpath_var=yes | |
10386 | ld_shlibs=yes | |
10387 | fi | |
10388 | ;; | |
10389 | ||
10390 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10391 | no_undefined_flag='$wl-z,text' | |
10392 | archive_cmds_need_lc=no | |
10393 | hardcode_shlibpath_var=no | |
10394 | runpath_var='LD_RUN_PATH' | |
10395 | ||
10396 | if test yes = "$GCC"; then | |
10397 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10398 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10399 | else | |
10400 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10401 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10402 | fi | |
10403 | ;; | |
10404 | ||
10405 | sysv5* | sco3.2v5* | sco5v6*) | |
10406 | # Note: We CANNOT use -z defs as we might desire, because we do not | |
10407 | # link with -lc, and that would cause any symbols used from libc to | |
10408 | # always be unresolved, which means just about no library would | |
10409 | # ever link correctly. If we're not using GNU ld we use -z text | |
10410 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10411 | # as -z defs. | |
10412 | no_undefined_flag='$wl-z,text' | |
10413 | allow_undefined_flag='$wl-z,nodefs' | |
10414 | archive_cmds_need_lc=no | |
10415 | hardcode_shlibpath_var=no | |
10416 | hardcode_libdir_flag_spec='$wl-R,$libdir' | |
10417 | hardcode_libdir_separator=':' | |
10418 | link_all_deplibs=yes | |
10419 | export_dynamic_flag_spec='$wl-Bexport' | |
10420 | runpath_var='LD_RUN_PATH' | |
10421 | ||
10422 | if test yes = "$GCC"; then | |
10423 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10424 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10425 | else | |
10426 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10427 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10428 | fi | |
10429 | ;; | |
10430 | ||
10431 | uts4*) | |
10432 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10433 | hardcode_libdir_flag_spec='-L$libdir' | |
10434 | hardcode_shlibpath_var=no | |
10435 | ;; | |
10436 | ||
10437 | *) | |
10438 | ld_shlibs=no | |
10439 | ;; | |
10440 | esac | |
10441 | ||
10442 | if test sni = "$host_vendor"; then | |
10443 | case $host in | |
10444 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10445 | export_dynamic_flag_spec='$wl-Blargedynsym' | |
10446 | ;; | |
10447 | esac | |
10448 | fi | |
10449 | fi | |
10450 | ||
10451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10452 | $as_echo "$ld_shlibs" >&6; } | |
10453 | test no = "$ld_shlibs" && can_build_shared=no | |
10454 | ||
10455 | with_gnu_ld=$with_gnu_ld | |
10456 | ||
10457 | ||
10458 | ||
10459 | ||
10460 | ||
10461 | ||
10462 | ||
10463 | ||
10464 | ||
10465 | ||
10466 | ||
10467 | ||
10468 | ||
10469 | ||
10470 | ||
10471 | # | |
10472 | # Do we need to explicitly link libc? | |
10473 | # | |
10474 | case "x$archive_cmds_need_lc" in | |
10475 | x|xyes) | |
10476 | # Assume -lc should be added | |
10477 | archive_cmds_need_lc=yes | |
10478 | ||
10479 | if test yes,yes = "$GCC,$enable_shared"; then | |
10480 | case $archive_cmds in | |
10481 | *'~'*) | |
10482 | # FIXME: we may have to deal with multi-command sequences. | |
10483 | ;; | |
10484 | '$CC '*) | |
10485 | # Test whether the compiler implicitly links with -lc since on some | |
10486 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10487 | # to ld, don't add -lc before -lgcc. | |
10488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10489 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10490 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10491 | $as_echo_n "(cached) " >&6 | |
10492 | else | |
10493 | $RM conftest* | |
10494 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10495 | ||
10496 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10497 | (eval $ac_compile) 2>&5 | |
10498 | ac_status=$? | |
10499 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10500 | test $ac_status = 0; } 2>conftest.err; then | |
10501 | soname=conftest | |
10502 | lib=conftest | |
10503 | libobjs=conftest.$ac_objext | |
10504 | deplibs= | |
10505 | wl=$lt_prog_compiler_wl | |
10506 | pic_flag=$lt_prog_compiler_pic | |
10507 | compiler_flags=-v | |
10508 | linker_flags=-v | |
10509 | verstring= | |
10510 | output_objdir=. | |
10511 | libname=conftest | |
10512 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10513 | allow_undefined_flag= | |
10514 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10515 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10516 | ac_status=$? | |
10517 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10518 | test $ac_status = 0; } | |
10519 | then | |
10520 | lt_cv_archive_cmds_need_lc=no | |
10521 | else | |
10522 | lt_cv_archive_cmds_need_lc=yes | |
10523 | fi | |
10524 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10525 | else | |
10526 | cat conftest.err 1>&5 | |
10527 | fi | |
10528 | $RM conftest* | |
10529 | ||
10530 | fi | |
10531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10532 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10533 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10534 | ;; | |
10535 | esac | |
10536 | fi | |
10537 | ;; | |
10538 | esac | |
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 | ||
10691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10692 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10693 | ||
10694 | if test yes = "$GCC"; then | |
10695 | case $host_os in | |
10696 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; | |
10697 | *) lt_awk_arg='/^libraries:/' ;; | |
10698 | esac | |
10699 | case $host_os in | |
10700 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; | |
10701 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
10702 | esac | |
10703 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10704 | case $lt_search_path_spec in | |
10705 | *\;*) | |
10706 | # if the path contains ";" then we assume it to be the separator | |
10707 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10708 | # assumed that no part of a normal pathname contains ";" but that should | |
10709 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10710 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10711 | ;; | |
10712 | *) | |
10713 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10714 | ;; | |
10715 | esac | |
10716 | # Ok, now we have the path, separated by spaces, we can step through it | |
10717 | # and add multilib dir if necessary... | |
10718 | lt_tmp_lt_search_path_spec= | |
10719 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10720 | # ...but if some path component already ends with the multilib dir we assume | |
10721 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
10722 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
10723 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
10724 | lt_multi_os_dir= | |
10725 | ;; | |
10726 | esac | |
10727 | for lt_sys_path in $lt_search_path_spec; do | |
10728 | if test -d "$lt_sys_path$lt_multi_os_dir"; then | |
10729 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
10730 | elif test -n "$lt_multi_os_dir"; then | |
10731 | test -d "$lt_sys_path" && \ | |
10732 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10733 | fi | |
10734 | done | |
10735 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10736 | BEGIN {RS = " "; FS = "/|\n";} { | |
10737 | lt_foo = ""; | |
10738 | lt_count = 0; | |
10739 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10740 | if ($lt_i != "" && $lt_i != ".") { | |
10741 | if ($lt_i == "..") { | |
10742 | lt_count++; | |
10743 | } else { | |
10744 | if (lt_count == 0) { | |
10745 | lt_foo = "/" $lt_i lt_foo; | |
10746 | } else { | |
10747 | lt_count--; | |
10748 | } | |
10749 | } | |
10750 | } | |
10751 | } | |
10752 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10753 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10754 | }'` | |
10755 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10756 | # for these hosts. | |
10757 | case $host_os in | |
10758 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10759 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; | |
10760 | esac | |
10761 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10762 | else | |
10763 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10764 | fi | |
10765 | library_names_spec= | |
10766 | libname_spec='lib$name' | |
10767 | soname_spec= | |
10768 | shrext_cmds=.so | |
10769 | postinstall_cmds= | |
10770 | postuninstall_cmds= | |
10771 | finish_cmds= | |
10772 | finish_eval= | |
10773 | shlibpath_var= | |
10774 | shlibpath_overrides_runpath=unknown | |
10775 | version_type=none | |
10776 | dynamic_linker="$host_os ld.so" | |
10777 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10778 | need_lib_prefix=unknown | |
10779 | hardcode_into_libs=no | |
10780 | ||
10781 | # when you set need_version to no, make sure it does not cause -set_version | |
10782 | # flags to be left without arguments | |
10783 | need_version=unknown | |
10784 | ||
10785 | ||
10786 | ||
10787 | case $host_os in | |
10788 | aix3*) | |
10789 | version_type=linux # correct to gnu/linux during the next big refactor | |
10790 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' | |
10791 | shlibpath_var=LIBPATH | |
10792 | ||
10793 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10794 | soname_spec='$libname$release$shared_ext$major' | |
10795 | ;; | |
10796 | ||
10797 | aix[4-9]*) | |
10798 | version_type=linux # correct to gnu/linux during the next big refactor | |
10799 | need_lib_prefix=no | |
10800 | need_version=no | |
10801 | hardcode_into_libs=yes | |
10802 | if test ia64 = "$host_cpu"; then | |
10803 | # AIX 5 supports IA64 | |
10804 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' | |
10805 | shlibpath_var=LD_LIBRARY_PATH | |
10806 | else | |
10807 | # With GCC up to 2.95.x, collect2 would create an import file | |
10808 | # for dependence libraries. The import file would start with | |
10809 | # the line '#! .'. This would cause the generated library to | |
10810 | # depend on '.', always an invalid library. This was fixed in | |
10811 | # development snapshots of GCC prior to 3.0. | |
10812 | case $host_os in | |
10813 | aix4 | aix4.[01] | aix4.[01].*) | |
10814 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10815 | echo ' yes ' | |
10816 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then | |
10817 | : | |
10818 | else | |
10819 | can_build_shared=no | |
10820 | fi | |
10821 | ;; | |
10822 | esac | |
10823 | # Using Import Files as archive members, it is possible to support | |
10824 | # filename-based versioning of shared library archives on AIX. While | |
10825 | # this would work for both with and without runtime linking, it will | |
10826 | # prevent static linking of such archives. So we do filename-based | |
10827 | # shared library versioning with .so extension only, which is used | |
10828 | # when both runtime linking and shared linking is enabled. | |
10829 | # Unfortunately, runtime linking may impact performance, so we do | |
10830 | # not want this to be the default eventually. Also, we use the | |
10831 | # versioned .so libs for executables only if there is the -brtl | |
10832 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
10833 | # To allow for filename-based versioning support, we need to create | |
10834 | # libNAME.so.V as an archive file, containing: | |
10835 | # *) an Import File, referring to the versioned filename of the | |
10836 | # archive as well as the shared archive member, telling the | |
10837 | # bitwidth (32 or 64) of that shared object, and providing the | |
10838 | # list of exported symbols of that shared object, eventually | |
10839 | # decorated with the 'weak' keyword | |
10840 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
10841 | # it being seen by the linker. | |
10842 | # At run time we better use the real file rather than another symlink, | |
10843 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
10844 | ||
10845 | case $with_aix_soname,$aix_use_runtimelinking in | |
10846 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
10847 | # soname into executable. Probably we can add versioning support to | |
10848 | # collect2, so additional links can be useful in future. | |
10849 | aix,yes) # traditional libtool | |
10850 | dynamic_linker='AIX unversionable lib.so' | |
10851 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10852 | # instead of lib<name>.a to let people know that these are not | |
10853 | # typical AIX shared libraries. | |
10854 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10855 | ;; | |
10856 | aix,no) # traditional AIX only | |
10857 | dynamic_linker='AIX lib.a(lib.so.V)' | |
10858 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10859 | # and later when we are not doing run time linking. | |
10860 | library_names_spec='$libname$release.a $libname.a' | |
10861 | soname_spec='$libname$release$shared_ext$major' | |
10862 | ;; | |
10863 | svr4,*) # full svr4 only | |
10864 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
10865 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10866 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10867 | shlibpath_overrides_runpath=yes | |
10868 | ;; | |
10869 | *,yes) # both, prefer svr4 | |
10870 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
10871 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10872 | # unpreferred sharedlib libNAME.a needs extra handling | |
10873 | 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"' | |
10874 | 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"' | |
10875 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10876 | shlibpath_overrides_runpath=yes | |
10877 | ;; | |
10878 | *,no) # both, prefer aix | |
10879 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
10880 | library_names_spec='$libname$release.a $libname.a' | |
10881 | soname_spec='$libname$release$shared_ext$major' | |
10882 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
10883 | 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)' | |
10884 | 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"' | |
10885 | ;; | |
10886 | esac | |
10887 | shlibpath_var=LIBPATH | |
10888 | fi | |
10889 | ;; | |
10890 | ||
10891 | amigaos*) | |
10892 | case $host_cpu in | |
10893 | powerpc) | |
10894 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10895 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10896 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10897 | ;; | |
10898 | m68k) | |
10899 | library_names_spec='$libname.ixlibrary $libname.a' | |
10900 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10901 | 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' | |
10902 | ;; | |
10903 | esac | |
10904 | ;; | |
10905 | ||
10906 | beos*) | |
10907 | library_names_spec='$libname$shared_ext' | |
10908 | dynamic_linker="$host_os ld.so" | |
10909 | shlibpath_var=LIBRARY_PATH | |
10910 | ;; | |
10911 | ||
10912 | bsdi[45]*) | |
10913 | version_type=linux # correct to gnu/linux during the next big refactor | |
10914 | need_version=no | |
10915 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10916 | soname_spec='$libname$release$shared_ext$major' | |
10917 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10918 | shlibpath_var=LD_LIBRARY_PATH | |
10919 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10920 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10921 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10922 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10923 | # libtool to hard-code these into programs | |
10924 | ;; | |
10925 | ||
10926 | cygwin* | mingw* | pw32* | cegcc*) | |
10927 | version_type=windows | |
10928 | shrext_cmds=.dll | |
10929 | need_version=no | |
10930 | need_lib_prefix=no | |
10931 | ||
10932 | case $GCC,$cc_basename in | |
10933 | yes,*) | |
10934 | # gcc | |
10935 | library_names_spec='$libname.dll.a' | |
10936 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10937 | postinstall_cmds='base_file=`basename \$file`~ | |
10938 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
10939 | dldir=$destdir/`dirname \$dlpath`~ | |
10940 | test -d \$dldir || mkdir -p \$dldir~ | |
10941 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10942 | chmod a+x \$dldir/$dlname~ | |
10943 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10944 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10945 | fi' | |
10946 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10947 | dlpath=$dir/\$dldll~ | |
10948 | $RM \$dlpath' | |
10949 | shlibpath_overrides_runpath=yes | |
10950 | ||
10951 | case $host_os in | |
10952 | cygwin*) | |
10953 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10954 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10955 | ||
10956 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10957 | ;; | |
10958 | mingw* | cegcc*) | |
10959 | # MinGW DLLs use traditional 'lib' prefix | |
10960 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10961 | ;; | |
10962 | pw32*) | |
10963 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10964 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10965 | ;; | |
10966 | esac | |
10967 | dynamic_linker='Win32 ld.exe' | |
10968 | ;; | |
10969 | ||
10970 | *,cl*) | |
10971 | # Native MSVC | |
10972 | libname_spec='$name' | |
10973 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10974 | library_names_spec='$libname.dll.lib' | |
10975 | ||
10976 | case $build_os in | |
10977 | mingw*) | |
10978 | sys_lib_search_path_spec= | |
10979 | lt_save_ifs=$IFS | |
10980 | IFS=';' | |
10981 | for lt_path in $LIB | |
10982 | do | |
10983 | IFS=$lt_save_ifs | |
10984 | # Let DOS variable expansion print the short 8.3 style file name. | |
10985 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10986 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10987 | done | |
10988 | IFS=$lt_save_ifs | |
10989 | # Convert to MSYS style. | |
10990 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10991 | ;; | |
10992 | cygwin*) | |
10993 | # Convert to unix form, then to dos form, then back to unix form | |
10994 | # but this time dos style (no spaces!) so that the unix form looks | |
10995 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10996 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10997 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10998 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10999 | ;; | |
11000 | *) | |
11001 | sys_lib_search_path_spec=$LIB | |
11002 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11003 | # It is most probably a Windows format PATH. | |
11004 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11005 | else | |
11006 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11007 | fi | |
11008 | # FIXME: find the short name or the path components, as spaces are | |
11009 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11010 | ;; | |
11011 | esac | |
11012 | ||
11013 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11014 | postinstall_cmds='base_file=`basename \$file`~ | |
11015 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
11016 | dldir=$destdir/`dirname \$dlpath`~ | |
11017 | test -d \$dldir || mkdir -p \$dldir~ | |
11018 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11019 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11020 | dlpath=$dir/\$dldll~ | |
11021 | $RM \$dlpath' | |
11022 | shlibpath_overrides_runpath=yes | |
11023 | dynamic_linker='Win32 link.exe' | |
11024 | ;; | |
11025 | ||
11026 | *) | |
11027 | # Assume MSVC wrapper | |
11028 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' | |
11029 | dynamic_linker='Win32 ld.exe' | |
11030 | ;; | |
11031 | esac | |
11032 | # FIXME: first we should search . and the directory the executable is in | |
11033 | shlibpath_var=PATH | |
11034 | ;; | |
11035 | ||
11036 | darwin* | rhapsody*) | |
11037 | dynamic_linker="$host_os dyld" | |
11038 | version_type=darwin | |
11039 | need_lib_prefix=no | |
11040 | need_version=no | |
11041 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' | |
11042 | soname_spec='$libname$release$major$shared_ext' | |
11043 | shlibpath_overrides_runpath=yes | |
11044 | shlibpath_var=DYLD_LIBRARY_PATH | |
11045 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11046 | ||
11047 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11048 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11049 | ;; | |
11050 | ||
11051 | dgux*) | |
11052 | version_type=linux # correct to gnu/linux during the next big refactor | |
11053 | need_lib_prefix=no | |
11054 | need_version=no | |
11055 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11056 | soname_spec='$libname$release$shared_ext$major' | |
11057 | shlibpath_var=LD_LIBRARY_PATH | |
11058 | ;; | |
11059 | ||
11060 | freebsd* | dragonfly*) | |
11061 | # DragonFly does not have aout. When/if they implement a new | |
11062 | # versioning mechanism, adjust this. | |
11063 | if test -x /usr/bin/objformat; then | |
11064 | objformat=`/usr/bin/objformat` | |
11065 | else | |
11066 | case $host_os in | |
11067 | freebsd[23].*) objformat=aout ;; | |
11068 | *) objformat=elf ;; | |
11069 | esac | |
11070 | fi | |
11071 | version_type=freebsd-$objformat | |
11072 | case $version_type in | |
11073 | freebsd-elf*) | |
11074 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11075 | soname_spec='$libname$release$shared_ext$major' | |
11076 | need_version=no | |
11077 | need_lib_prefix=no | |
11078 | ;; | |
11079 | freebsd-*) | |
11080 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11081 | need_version=yes | |
11082 | ;; | |
11083 | esac | |
11084 | shlibpath_var=LD_LIBRARY_PATH | |
11085 | case $host_os in | |
11086 | freebsd2.*) | |
11087 | shlibpath_overrides_runpath=yes | |
11088 | ;; | |
11089 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11090 | shlibpath_overrides_runpath=yes | |
11091 | hardcode_into_libs=yes | |
11092 | ;; | |
11093 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11094 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11095 | shlibpath_overrides_runpath=no | |
11096 | hardcode_into_libs=yes | |
11097 | ;; | |
11098 | *) # from 4.6 on, and DragonFly | |
11099 | shlibpath_overrides_runpath=yes | |
11100 | hardcode_into_libs=yes | |
11101 | ;; | |
11102 | esac | |
11103 | ;; | |
11104 | ||
11105 | haiku*) | |
11106 | version_type=linux # correct to gnu/linux during the next big refactor | |
11107 | need_lib_prefix=no | |
11108 | need_version=no | |
11109 | dynamic_linker="$host_os runtime_loader" | |
11110 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11111 | soname_spec='$libname$release$shared_ext$major' | |
11112 | shlibpath_var=LIBRARY_PATH | |
11113 | shlibpath_overrides_runpath=no | |
11114 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11115 | hardcode_into_libs=yes | |
11116 | ;; | |
11117 | ||
11118 | hpux9* | hpux10* | hpux11*) | |
11119 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11120 | # link against other versions. | |
11121 | version_type=sunos | |
11122 | need_lib_prefix=no | |
11123 | need_version=no | |
11124 | case $host_cpu in | |
11125 | ia64*) | |
11126 | shrext_cmds='.so' | |
11127 | hardcode_into_libs=yes | |
11128 | dynamic_linker="$host_os dld.so" | |
11129 | shlibpath_var=LD_LIBRARY_PATH | |
11130 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11131 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11132 | soname_spec='$libname$release$shared_ext$major' | |
11133 | if test 32 = "$HPUX_IA64_MODE"; then | |
11134 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11135 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 | |
11136 | else | |
11137 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11138 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 | |
11139 | fi | |
11140 | ;; | |
11141 | hppa*64*) | |
11142 | shrext_cmds='.sl' | |
11143 | hardcode_into_libs=yes | |
11144 | dynamic_linker="$host_os dld.sl" | |
11145 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11146 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11147 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11148 | soname_spec='$libname$release$shared_ext$major' | |
11149 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11150 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11151 | ;; | |
11152 | *) | |
11153 | shrext_cmds='.sl' | |
11154 | dynamic_linker="$host_os dld.sl" | |
11155 | shlibpath_var=SHLIB_PATH | |
11156 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11157 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11158 | soname_spec='$libname$release$shared_ext$major' | |
11159 | ;; | |
11160 | esac | |
11161 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11162 | postinstall_cmds='chmod 555 $lib' | |
11163 | # or fails outright, so override atomically: | |
11164 | install_override_mode=555 | |
11165 | ;; | |
11166 | ||
11167 | interix[3-9]*) | |
11168 | version_type=linux # correct to gnu/linux during the next big refactor | |
11169 | need_lib_prefix=no | |
11170 | need_version=no | |
11171 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11172 | soname_spec='$libname$release$shared_ext$major' | |
11173 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11174 | shlibpath_var=LD_LIBRARY_PATH | |
11175 | shlibpath_overrides_runpath=no | |
11176 | hardcode_into_libs=yes | |
11177 | ;; | |
11178 | ||
11179 | irix5* | irix6* | nonstopux*) | |
11180 | case $host_os in | |
11181 | nonstopux*) version_type=nonstopux ;; | |
11182 | *) | |
11183 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
11184 | version_type=linux # correct to gnu/linux during the next big refactor | |
11185 | else | |
11186 | version_type=irix | |
11187 | fi ;; | |
11188 | esac | |
11189 | need_lib_prefix=no | |
11190 | need_version=no | |
11191 | soname_spec='$libname$release$shared_ext$major' | |
11192 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
11193 | case $host_os in | |
11194 | irix5* | nonstopux*) | |
11195 | libsuff= shlibsuff= | |
11196 | ;; | |
11197 | *) | |
11198 | case $LD in # libtool.m4 will add one of these switches to LD | |
11199 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11200 | libsuff= shlibsuff= libmagic=32-bit;; | |
11201 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11202 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11203 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11204 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11205 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11206 | esac | |
11207 | ;; | |
11208 | esac | |
11209 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11210 | shlibpath_overrides_runpath=no | |
11211 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" | |
11212 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
11213 | hardcode_into_libs=yes | |
11214 | ;; | |
11215 | ||
11216 | # No shared lib support for Linux oldld, aout, or coff. | |
11217 | linux*oldld* | linux*aout* | linux*coff*) | |
11218 | dynamic_linker=no | |
11219 | ;; | |
11220 | ||
11221 | linux*android*) | |
11222 | version_type=none # Android doesn't support versioned libraries. | |
11223 | need_lib_prefix=no | |
11224 | need_version=no | |
11225 | library_names_spec='$libname$release$shared_ext' | |
11226 | soname_spec='$libname$release$shared_ext' | |
11227 | finish_cmds= | |
11228 | shlibpath_var=LD_LIBRARY_PATH | |
11229 | shlibpath_overrides_runpath=yes | |
11230 | ||
11231 | # This implies no fast_install, which is unacceptable. | |
11232 | # Some rework will be needed to allow for fast_install | |
11233 | # before this can be enabled. | |
11234 | hardcode_into_libs=yes | |
11235 | ||
11236 | dynamic_linker='Android linker' | |
11237 | # Don't embed -rpath directories since the linker doesn't support them. | |
11238 | hardcode_libdir_flag_spec='-L$libdir' | |
11239 | ;; | |
11240 | ||
11241 | # This must be glibc/ELF. | |
11242 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11243 | version_type=linux # correct to gnu/linux during the next big refactor | |
11244 | need_lib_prefix=no | |
11245 | need_version=no | |
11246 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11247 | soname_spec='$libname$release$shared_ext$major' | |
11248 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11249 | shlibpath_var=LD_LIBRARY_PATH | |
11250 | shlibpath_overrides_runpath=no | |
11251 | ||
11252 | # Some binutils ld are patched to set DT_RUNPATH | |
11253 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
11254 | $as_echo_n "(cached) " >&6 | |
11255 | else | |
11256 | lt_cv_shlibpath_overrides_runpath=no | |
11257 | save_LDFLAGS=$LDFLAGS | |
11258 | save_libdir=$libdir | |
11259 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11260 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11262 | /* end confdefs.h. */ | |
11263 | ||
11264 | int | |
11265 | main () | |
11266 | { | |
11267 | ||
11268 | ; | |
11269 | return 0; | |
11270 | } | |
11271 | _ACEOF | |
11272 | if ac_fn_c_try_link "$LINENO"; then : | |
11273 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11274 | lt_cv_shlibpath_overrides_runpath=yes | |
11275 | fi | |
11276 | fi | |
11277 | rm -f core conftest.err conftest.$ac_objext \ | |
11278 | conftest$ac_exeext conftest.$ac_ext | |
11279 | LDFLAGS=$save_LDFLAGS | |
11280 | libdir=$save_libdir | |
11281 | ||
11282 | fi | |
11283 | ||
11284 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11285 | ||
11286 | # This implies no fast_install, which is unacceptable. | |
11287 | # Some rework will be needed to allow for fast_install | |
11288 | # before this can be enabled. | |
11289 | hardcode_into_libs=yes | |
11290 | ||
11291 | # Ideally, we could use ldconfig to report *all* directores which are | |
11292 | # searched for libraries, however this is still not possible. Aside from not | |
11293 | # being certain /sbin/ldconfig is available, command | |
11294 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11295 | # even though it is searched at run-time. Try to do the best guess by | |
11296 | # appending ld.so.conf contents (and includes) to the search path. | |
11297 | if test -f /etc/ld.so.conf; then | |
11298 | 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' ' '` | |
11299 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11300 | fi | |
11301 | ||
11302 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11303 | # powerpc, because MkLinux only supported shared libraries with the | |
11304 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11305 | # most powerpc-linux boxes support dynamic linking these days and | |
11306 | # people can always --disable-shared, the test was removed, and we | |
11307 | # assume the GNU/Linux dynamic linker is in use. | |
11308 | dynamic_linker='GNU/Linux ld.so' | |
11309 | ;; | |
11310 | ||
11311 | netbsdelf*-gnu) | |
11312 | version_type=linux | |
11313 | need_lib_prefix=no | |
11314 | need_version=no | |
11315 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11316 | soname_spec='${libname}${release}${shared_ext}$major' | |
11317 | shlibpath_var=LD_LIBRARY_PATH | |
11318 | shlibpath_overrides_runpath=no | |
11319 | hardcode_into_libs=yes | |
11320 | dynamic_linker='NetBSD ld.elf_so' | |
11321 | ;; | |
11322 | ||
11323 | netbsd*) | |
11324 | version_type=sunos | |
11325 | need_lib_prefix=no | |
11326 | need_version=no | |
11327 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11328 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11329 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11330 | dynamic_linker='NetBSD (a.out) ld.so' | |
11331 | else | |
11332 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11333 | soname_spec='$libname$release$shared_ext$major' | |
11334 | dynamic_linker='NetBSD ld.elf_so' | |
11335 | fi | |
11336 | shlibpath_var=LD_LIBRARY_PATH | |
11337 | shlibpath_overrides_runpath=yes | |
11338 | hardcode_into_libs=yes | |
11339 | ;; | |
11340 | ||
11341 | newsos6) | |
11342 | version_type=linux # correct to gnu/linux during the next big refactor | |
11343 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11344 | shlibpath_var=LD_LIBRARY_PATH | |
11345 | shlibpath_overrides_runpath=yes | |
11346 | ;; | |
11347 | ||
11348 | *nto* | *qnx*) | |
11349 | version_type=qnx | |
11350 | need_lib_prefix=no | |
11351 | need_version=no | |
11352 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11353 | soname_spec='$libname$release$shared_ext$major' | |
11354 | shlibpath_var=LD_LIBRARY_PATH | |
11355 | shlibpath_overrides_runpath=no | |
11356 | hardcode_into_libs=yes | |
11357 | dynamic_linker='ldqnx.so' | |
11358 | ;; | |
11359 | ||
11360 | openbsd* | bitrig*) | |
11361 | version_type=sunos | |
11362 | sys_lib_dlsearch_path_spec=/usr/lib | |
11363 | need_lib_prefix=no | |
11364 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
11365 | need_version=no | |
11366 | else | |
11367 | need_version=yes | |
11368 | fi | |
11369 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11370 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11371 | shlibpath_var=LD_LIBRARY_PATH | |
11372 | shlibpath_overrides_runpath=yes | |
11373 | ;; | |
11374 | ||
11375 | os2*) | |
11376 | libname_spec='$name' | |
11377 | version_type=windows | |
11378 | shrext_cmds=.dll | |
11379 | need_version=no | |
11380 | need_lib_prefix=no | |
11381 | # OS/2 can only load a DLL with a base name of 8 characters or less. | |
11382 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11383 | v=$($ECHO $release$versuffix | tr -d .-); | |
11384 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11385 | $ECHO $n$v`$shared_ext' | |
11386 | library_names_spec='${libname}_dll.$libext' | |
11387 | dynamic_linker='OS/2 ld.exe' | |
11388 | shlibpath_var=BEGINLIBPATH | |
11389 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11390 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11391 | postinstall_cmds='base_file=`basename \$file`~ | |
11392 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11393 | dldir=$destdir/`dirname \$dlpath`~ | |
11394 | test -d \$dldir || mkdir -p \$dldir~ | |
11395 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11396 | chmod a+x \$dldir/$dlname~ | |
11397 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11398 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11399 | fi' | |
11400 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11401 | dlpath=$dir/\$dldll~ | |
11402 | $RM \$dlpath' | |
11403 | ;; | |
11404 | ||
11405 | osf3* | osf4* | osf5*) | |
11406 | version_type=osf | |
11407 | need_lib_prefix=no | |
11408 | need_version=no | |
11409 | soname_spec='$libname$release$shared_ext$major' | |
11410 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11411 | shlibpath_var=LD_LIBRARY_PATH | |
11412 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11413 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11414 | ;; | |
11415 | ||
11416 | rdos*) | |
11417 | dynamic_linker=no | |
11418 | ;; | |
11419 | ||
11420 | solaris*) | |
11421 | version_type=linux # correct to gnu/linux during the next big refactor | |
11422 | need_lib_prefix=no | |
11423 | need_version=no | |
11424 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11425 | soname_spec='$libname$release$shared_ext$major' | |
11426 | shlibpath_var=LD_LIBRARY_PATH | |
11427 | shlibpath_overrides_runpath=yes | |
11428 | hardcode_into_libs=yes | |
11429 | # ldd complains unless libraries are executable | |
11430 | postinstall_cmds='chmod +x $lib' | |
11431 | ;; | |
11432 | ||
11433 | sunos4*) | |
11434 | version_type=sunos | |
11435 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11436 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11437 | shlibpath_var=LD_LIBRARY_PATH | |
11438 | shlibpath_overrides_runpath=yes | |
11439 | if test yes = "$with_gnu_ld"; then | |
11440 | need_lib_prefix=no | |
11441 | fi | |
11442 | need_version=yes | |
11443 | ;; | |
11444 | ||
11445 | sysv4 | sysv4.3*) | |
11446 | version_type=linux # correct to gnu/linux during the next big refactor | |
11447 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11448 | soname_spec='$libname$release$shared_ext$major' | |
11449 | shlibpath_var=LD_LIBRARY_PATH | |
11450 | case $host_vendor in | |
11451 | sni) | |
11452 | shlibpath_overrides_runpath=no | |
11453 | need_lib_prefix=no | |
11454 | runpath_var=LD_RUN_PATH | |
11455 | ;; | |
11456 | siemens) | |
11457 | need_lib_prefix=no | |
11458 | ;; | |
11459 | motorola) | |
11460 | need_lib_prefix=no | |
11461 | need_version=no | |
11462 | shlibpath_overrides_runpath=no | |
11463 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11464 | ;; | |
11465 | esac | |
11466 | ;; | |
11467 | ||
11468 | sysv4*MP*) | |
11469 | if test -d /usr/nec; then | |
11470 | version_type=linux # correct to gnu/linux during the next big refactor | |
11471 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' | |
11472 | soname_spec='$libname$shared_ext.$major' | |
11473 | shlibpath_var=LD_LIBRARY_PATH | |
11474 | fi | |
11475 | ;; | |
11476 | ||
11477 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11478 | version_type=sco | |
11479 | need_lib_prefix=no | |
11480 | need_version=no | |
11481 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' | |
11482 | soname_spec='$libname$release$shared_ext$major' | |
11483 | shlibpath_var=LD_LIBRARY_PATH | |
11484 | shlibpath_overrides_runpath=yes | |
11485 | hardcode_into_libs=yes | |
11486 | if test yes = "$with_gnu_ld"; then | |
11487 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11488 | else | |
11489 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11490 | case $host_os in | |
11491 | sco3.2v5*) | |
11492 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11493 | ;; | |
11494 | esac | |
11495 | fi | |
11496 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11497 | ;; | |
11498 | ||
11499 | tpf*) | |
11500 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11501 | version_type=linux # correct to gnu/linux during the next big refactor | |
11502 | need_lib_prefix=no | |
11503 | need_version=no | |
11504 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11505 | shlibpath_var=LD_LIBRARY_PATH | |
11506 | shlibpath_overrides_runpath=no | |
11507 | hardcode_into_libs=yes | |
11508 | ;; | |
11509 | ||
11510 | uts4*) | |
11511 | version_type=linux # correct to gnu/linux during the next big refactor | |
11512 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11513 | soname_spec='$libname$release$shared_ext$major' | |
11514 | shlibpath_var=LD_LIBRARY_PATH | |
11515 | ;; | |
11516 | ||
11517 | *) | |
11518 | dynamic_linker=no | |
11519 | ;; | |
11520 | esac | |
11521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11522 | $as_echo "$dynamic_linker" >&6; } | |
11523 | test no = "$dynamic_linker" && can_build_shared=no | |
11524 | ||
11525 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11526 | if test yes = "$GCC"; then | |
11527 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11528 | fi | |
11529 | ||
11530 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then | |
11531 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
11532 | fi | |
11533 | ||
11534 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
11535 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
11536 | fi | |
11537 | ||
11538 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... | |
11539 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
11540 | ||
11541 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
11542 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
11543 | ||
11544 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
11545 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
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 | ||
11643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11644 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11645 | hardcode_action= | |
11646 | if test -n "$hardcode_libdir_flag_spec" || | |
11647 | test -n "$runpath_var" || | |
11648 | test yes = "$hardcode_automatic"; then | |
11649 | ||
11650 | # We can hardcode non-existent directories. | |
11651 | if test no != "$hardcode_direct" && | |
11652 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11653 | # have to relink, otherwise we might link with an installed library | |
11654 | # when we should be linking with a yet-to-be-installed one | |
11655 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && | |
11656 | test no != "$hardcode_minus_L"; then | |
11657 | # Linking always hardcodes the temporary library directory. | |
11658 | hardcode_action=relink | |
11659 | else | |
11660 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11661 | hardcode_action=immediate | |
11662 | fi | |
11663 | else | |
11664 | # We cannot hardcode anything, or else we can only hardcode existing | |
11665 | # directories. | |
11666 | hardcode_action=unsupported | |
11667 | fi | |
11668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11669 | $as_echo "$hardcode_action" >&6; } | |
11670 | ||
11671 | if test relink = "$hardcode_action" || | |
11672 | test yes = "$inherit_rpath"; then | |
11673 | # Fast installation is not supported | |
11674 | enable_fast_install=no | |
11675 | elif test yes = "$shlibpath_overrides_runpath" || | |
11676 | test no = "$enable_shared"; then | |
11677 | # Fast installation is not necessary | |
11678 | enable_fast_install=needless | |
11679 | fi | |
11680 | ||
11681 | ||
11682 | ||
11683 | ||
11684 | ||
11685 | ||
11686 | if test yes != "$enable_dlopen"; then | |
11687 | enable_dlopen=unknown | |
11688 | enable_dlopen_self=unknown | |
11689 | enable_dlopen_self_static=unknown | |
11690 | else | |
11691 | lt_cv_dlopen=no | |
11692 | lt_cv_dlopen_libs= | |
11693 | ||
11694 | case $host_os in | |
11695 | beos*) | |
11696 | lt_cv_dlopen=load_add_on | |
11697 | lt_cv_dlopen_libs= | |
11698 | lt_cv_dlopen_self=yes | |
11699 | ;; | |
11700 | ||
11701 | mingw* | pw32* | cegcc*) | |
11702 | lt_cv_dlopen=LoadLibrary | |
11703 | lt_cv_dlopen_libs= | |
11704 | ;; | |
11705 | ||
11706 | cygwin*) | |
11707 | lt_cv_dlopen=dlopen | |
11708 | lt_cv_dlopen_libs= | |
11709 | ;; | |
11710 | ||
11711 | darwin*) | |
11712 | # if libdl is installed we need to link against it | |
11713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11714 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11715 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11716 | $as_echo_n "(cached) " >&6 | |
11717 | else | |
11718 | ac_check_lib_save_LIBS=$LIBS | |
11719 | LIBS="-ldl $LIBS" | |
11720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11721 | /* end confdefs.h. */ | |
11722 | ||
11723 | /* Override any GCC internal prototype to avoid an error. | |
11724 | Use char because int might match the return type of a GCC | |
11725 | builtin and then its argument prototype would still apply. */ | |
11726 | #ifdef __cplusplus | |
11727 | extern "C" | |
11728 | #endif | |
11729 | char dlopen (); | |
11730 | int | |
11731 | main () | |
11732 | { | |
11733 | return dlopen (); | |
11734 | ; | |
11735 | return 0; | |
11736 | } | |
11737 | _ACEOF | |
11738 | if ac_fn_c_try_link "$LINENO"; then : | |
11739 | ac_cv_lib_dl_dlopen=yes | |
11740 | else | |
11741 | ac_cv_lib_dl_dlopen=no | |
11742 | fi | |
11743 | rm -f core conftest.err conftest.$ac_objext \ | |
11744 | conftest$ac_exeext conftest.$ac_ext | |
11745 | LIBS=$ac_check_lib_save_LIBS | |
11746 | fi | |
11747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11748 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11749 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11750 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
11751 | else | |
11752 | ||
11753 | lt_cv_dlopen=dyld | |
11754 | lt_cv_dlopen_libs= | |
11755 | lt_cv_dlopen_self=yes | |
11756 | ||
11757 | fi | |
11758 | ||
11759 | ;; | |
11760 | ||
11761 | tpf*) | |
11762 | # Don't try to run any link tests for TPF. We know it's impossible | |
11763 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
11764 | lt_cv_dlopen=dlopen | |
11765 | lt_cv_dlopen_libs= | |
11766 | lt_cv_dlopen_self=no | |
11767 | ;; | |
11768 | ||
11769 | *) | |
11770 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11771 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11772 | lt_cv_dlopen=shl_load | |
11773 | else | |
11774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11775 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11776 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11777 | $as_echo_n "(cached) " >&6 | |
11778 | else | |
11779 | ac_check_lib_save_LIBS=$LIBS | |
11780 | LIBS="-ldld $LIBS" | |
11781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11782 | /* end confdefs.h. */ | |
11783 | ||
11784 | /* Override any GCC internal prototype to avoid an error. | |
11785 | Use char because int might match the return type of a GCC | |
11786 | builtin and then its argument prototype would still apply. */ | |
11787 | #ifdef __cplusplus | |
11788 | extern "C" | |
11789 | #endif | |
11790 | char shl_load (); | |
11791 | int | |
11792 | main () | |
11793 | { | |
11794 | return shl_load (); | |
11795 | ; | |
11796 | return 0; | |
11797 | } | |
11798 | _ACEOF | |
11799 | if ac_fn_c_try_link "$LINENO"; then : | |
11800 | ac_cv_lib_dld_shl_load=yes | |
11801 | else | |
11802 | ac_cv_lib_dld_shl_load=no | |
11803 | fi | |
11804 | rm -f core conftest.err conftest.$ac_objext \ | |
11805 | conftest$ac_exeext conftest.$ac_ext | |
11806 | LIBS=$ac_check_lib_save_LIBS | |
11807 | fi | |
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11809 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11810 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11811 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld | |
11812 | else | |
11813 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11814 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11815 | lt_cv_dlopen=dlopen | |
11816 | else | |
11817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11818 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11819 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11820 | $as_echo_n "(cached) " >&6 | |
11821 | else | |
11822 | ac_check_lib_save_LIBS=$LIBS | |
11823 | LIBS="-ldl $LIBS" | |
11824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11825 | /* end confdefs.h. */ | |
11826 | ||
11827 | /* Override any GCC internal prototype to avoid an error. | |
11828 | Use char because int might match the return type of a GCC | |
11829 | builtin and then its argument prototype would still apply. */ | |
11830 | #ifdef __cplusplus | |
11831 | extern "C" | |
11832 | #endif | |
11833 | char dlopen (); | |
11834 | int | |
11835 | main () | |
11836 | { | |
11837 | return dlopen (); | |
11838 | ; | |
11839 | return 0; | |
11840 | } | |
11841 | _ACEOF | |
11842 | if ac_fn_c_try_link "$LINENO"; then : | |
11843 | ac_cv_lib_dl_dlopen=yes | |
11844 | else | |
11845 | ac_cv_lib_dl_dlopen=no | |
11846 | fi | |
11847 | rm -f core conftest.err conftest.$ac_objext \ | |
11848 | conftest$ac_exeext conftest.$ac_ext | |
11849 | LIBS=$ac_check_lib_save_LIBS | |
11850 | fi | |
11851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11852 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11853 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11854 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
11855 | else | |
11856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11857 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11858 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11859 | $as_echo_n "(cached) " >&6 | |
11860 | else | |
11861 | ac_check_lib_save_LIBS=$LIBS | |
11862 | LIBS="-lsvld $LIBS" | |
11863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11864 | /* end confdefs.h. */ | |
11865 | ||
11866 | /* Override any GCC internal prototype to avoid an error. | |
11867 | Use char because int might match the return type of a GCC | |
11868 | builtin and then its argument prototype would still apply. */ | |
11869 | #ifdef __cplusplus | |
11870 | extern "C" | |
11871 | #endif | |
11872 | char dlopen (); | |
11873 | int | |
11874 | main () | |
11875 | { | |
11876 | return dlopen (); | |
11877 | ; | |
11878 | return 0; | |
11879 | } | |
11880 | _ACEOF | |
11881 | if ac_fn_c_try_link "$LINENO"; then : | |
11882 | ac_cv_lib_svld_dlopen=yes | |
11883 | else | |
11884 | ac_cv_lib_svld_dlopen=no | |
11885 | fi | |
11886 | rm -f core conftest.err conftest.$ac_objext \ | |
11887 | conftest$ac_exeext conftest.$ac_ext | |
11888 | LIBS=$ac_check_lib_save_LIBS | |
11889 | fi | |
11890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11891 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11892 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11893 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld | |
11894 | else | |
11895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11896 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11897 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11898 | $as_echo_n "(cached) " >&6 | |
11899 | else | |
11900 | ac_check_lib_save_LIBS=$LIBS | |
11901 | LIBS="-ldld $LIBS" | |
11902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11903 | /* end confdefs.h. */ | |
11904 | ||
11905 | /* Override any GCC internal prototype to avoid an error. | |
11906 | Use char because int might match the return type of a GCC | |
11907 | builtin and then its argument prototype would still apply. */ | |
11908 | #ifdef __cplusplus | |
11909 | extern "C" | |
11910 | #endif | |
11911 | char dld_link (); | |
11912 | int | |
11913 | main () | |
11914 | { | |
11915 | return dld_link (); | |
11916 | ; | |
11917 | return 0; | |
11918 | } | |
11919 | _ACEOF | |
11920 | if ac_fn_c_try_link "$LINENO"; then : | |
11921 | ac_cv_lib_dld_dld_link=yes | |
11922 | else | |
11923 | ac_cv_lib_dld_dld_link=no | |
11924 | fi | |
11925 | rm -f core conftest.err conftest.$ac_objext \ | |
11926 | conftest$ac_exeext conftest.$ac_ext | |
11927 | LIBS=$ac_check_lib_save_LIBS | |
11928 | fi | |
11929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11930 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11931 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
11932 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld | |
11933 | fi | |
11934 | ||
11935 | ||
11936 | fi | |
11937 | ||
11938 | ||
11939 | fi | |
11940 | ||
11941 | ||
11942 | fi | |
11943 | ||
11944 | ||
11945 | fi | |
11946 | ||
11947 | ||
11948 | fi | |
11949 | ||
11950 | ;; | |
11951 | esac | |
11952 | ||
11953 | if test no = "$lt_cv_dlopen"; then | |
11954 | enable_dlopen=no | |
11955 | else | |
11956 | enable_dlopen=yes | |
11957 | fi | |
11958 | ||
11959 | case $lt_cv_dlopen in | |
11960 | dlopen) | |
11961 | save_CPPFLAGS=$CPPFLAGS | |
11962 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11963 | ||
11964 | save_LDFLAGS=$LDFLAGS | |
11965 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11966 | ||
11967 | save_LIBS=$LIBS | |
11968 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11969 | ||
11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11971 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11972 | if ${lt_cv_dlopen_self+:} false; then : | |
11973 | $as_echo_n "(cached) " >&6 | |
11974 | else | |
11975 | if test yes = "$cross_compiling"; then : | |
11976 | lt_cv_dlopen_self=cross | |
11977 | else | |
11978 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11979 | lt_status=$lt_dlunknown | |
11980 | cat > conftest.$ac_ext <<_LT_EOF | |
11981 | #line $LINENO "configure" | |
11982 | #include "confdefs.h" | |
11983 | ||
11984 | #if HAVE_DLFCN_H | |
11985 | #include <dlfcn.h> | |
11986 | #endif | |
11987 | ||
11988 | #include <stdio.h> | |
11989 | ||
11990 | #ifdef RTLD_GLOBAL | |
11991 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11992 | #else | |
11993 | # ifdef DL_GLOBAL | |
11994 | # define LT_DLGLOBAL DL_GLOBAL | |
11995 | # else | |
11996 | # define LT_DLGLOBAL 0 | |
11997 | # endif | |
11998 | #endif | |
11999 | ||
12000 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12001 | find out it does not work in some platform. */ | |
12002 | #ifndef LT_DLLAZY_OR_NOW | |
12003 | # ifdef RTLD_LAZY | |
12004 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12005 | # else | |
12006 | # ifdef DL_LAZY | |
12007 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12008 | # else | |
12009 | # ifdef RTLD_NOW | |
12010 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12011 | # else | |
12012 | # ifdef DL_NOW | |
12013 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12014 | # else | |
12015 | # define LT_DLLAZY_OR_NOW 0 | |
12016 | # endif | |
12017 | # endif | |
12018 | # endif | |
12019 | # endif | |
12020 | #endif | |
12021 | ||
12022 | /* When -fvisibility=hidden is used, assume the code has been annotated | |
12023 | correspondingly for the symbols needed. */ | |
12024 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12025 | int fnord () __attribute__((visibility("default"))); | |
12026 | #endif | |
12027 | ||
12028 | int fnord () { return 42; } | |
12029 | int main () | |
12030 | { | |
12031 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12032 | int status = $lt_dlunknown; | |
12033 | ||
12034 | if (self) | |
12035 | { | |
12036 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12037 | else | |
12038 | { | |
12039 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12040 | else puts (dlerror ()); | |
12041 | } | |
12042 | /* dlclose (self); */ | |
12043 | } | |
12044 | else | |
12045 | puts (dlerror ()); | |
12046 | ||
12047 | return status; | |
12048 | } | |
12049 | _LT_EOF | |
12050 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12051 | (eval $ac_link) 2>&5 | |
12052 | ac_status=$? | |
12053 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12054 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
12055 | (./conftest; exit; ) >&5 2>/dev/null | |
12056 | lt_status=$? | |
12057 | case x$lt_status in | |
12058 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12059 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12060 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12061 | esac | |
12062 | else : | |
12063 | # compilation failed | |
12064 | lt_cv_dlopen_self=no | |
12065 | fi | |
12066 | fi | |
12067 | rm -fr conftest* | |
12068 | ||
12069 | ||
12070 | fi | |
12071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12072 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12073 | ||
12074 | if test yes = "$lt_cv_dlopen_self"; then | |
12075 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12077 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12078 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12079 | $as_echo_n "(cached) " >&6 | |
12080 | else | |
12081 | if test yes = "$cross_compiling"; then : | |
12082 | lt_cv_dlopen_self_static=cross | |
12083 | else | |
12084 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12085 | lt_status=$lt_dlunknown | |
12086 | cat > conftest.$ac_ext <<_LT_EOF | |
12087 | #line $LINENO "configure" | |
12088 | #include "confdefs.h" | |
12089 | ||
12090 | #if HAVE_DLFCN_H | |
12091 | #include <dlfcn.h> | |
12092 | #endif | |
12093 | ||
12094 | #include <stdio.h> | |
12095 | ||
12096 | #ifdef RTLD_GLOBAL | |
12097 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12098 | #else | |
12099 | # ifdef DL_GLOBAL | |
12100 | # define LT_DLGLOBAL DL_GLOBAL | |
12101 | # else | |
12102 | # define LT_DLGLOBAL 0 | |
12103 | # endif | |
12104 | #endif | |
12105 | ||
12106 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12107 | find out it does not work in some platform. */ | |
12108 | #ifndef LT_DLLAZY_OR_NOW | |
12109 | # ifdef RTLD_LAZY | |
12110 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12111 | # else | |
12112 | # ifdef DL_LAZY | |
12113 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12114 | # else | |
12115 | # ifdef RTLD_NOW | |
12116 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12117 | # else | |
12118 | # ifdef DL_NOW | |
12119 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12120 | # else | |
12121 | # define LT_DLLAZY_OR_NOW 0 | |
12122 | # endif | |
12123 | # endif | |
12124 | # endif | |
12125 | # endif | |
12126 | #endif | |
12127 | ||
12128 | /* When -fvisibility=hidden is used, assume the code has been annotated | |
12129 | correspondingly for the symbols needed. */ | |
12130 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12131 | int fnord () __attribute__((visibility("default"))); | |
12132 | #endif | |
12133 | ||
12134 | int fnord () { return 42; } | |
12135 | int main () | |
12136 | { | |
12137 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12138 | int status = $lt_dlunknown; | |
12139 | ||
12140 | if (self) | |
12141 | { | |
12142 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12143 | else | |
12144 | { | |
12145 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12146 | else puts (dlerror ()); | |
12147 | } | |
12148 | /* dlclose (self); */ | |
12149 | } | |
12150 | else | |
12151 | puts (dlerror ()); | |
12152 | ||
12153 | return status; | |
12154 | } | |
12155 | _LT_EOF | |
12156 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12157 | (eval $ac_link) 2>&5 | |
12158 | ac_status=$? | |
12159 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12160 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
12161 | (./conftest; exit; ) >&5 2>/dev/null | |
12162 | lt_status=$? | |
12163 | case x$lt_status in | |
12164 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12165 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12166 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12167 | esac | |
12168 | else : | |
12169 | # compilation failed | |
12170 | lt_cv_dlopen_self_static=no | |
12171 | fi | |
12172 | fi | |
12173 | rm -fr conftest* | |
12174 | ||
12175 | ||
12176 | fi | |
12177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12178 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12179 | fi | |
12180 | ||
12181 | CPPFLAGS=$save_CPPFLAGS | |
12182 | LDFLAGS=$save_LDFLAGS | |
12183 | LIBS=$save_LIBS | |
12184 | ;; | |
12185 | esac | |
12186 | ||
12187 | case $lt_cv_dlopen_self in | |
12188 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12189 | *) enable_dlopen_self=unknown ;; | |
12190 | esac | |
12191 | ||
12192 | case $lt_cv_dlopen_self_static in | |
12193 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12194 | *) enable_dlopen_self_static=unknown ;; | |
12195 | esac | |
12196 | fi | |
12197 | ||
12198 | ||
12199 | ||
12200 | ||
12201 | ||
12202 | ||
12203 | ||
12204 | ||
12205 | ||
12206 | ||
12207 | ||
12208 | ||
12209 | ||
12210 | ||
12211 | ||
12212 | ||
12213 | ||
12214 | striplib= | |
12215 | old_striplib= | |
12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12217 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12218 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12219 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12220 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12222 | $as_echo "yes" >&6; } | |
12223 | else | |
12224 | # FIXME - insert some real tests, host_os isn't really good enough | |
12225 | case $host_os in | |
12226 | darwin*) | |
12227 | if test -n "$STRIP"; then | |
12228 | striplib="$STRIP -x" | |
12229 | old_striplib="$STRIP -S" | |
12230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12231 | $as_echo "yes" >&6; } | |
12232 | else | |
12233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12234 | $as_echo "no" >&6; } | |
12235 | fi | |
12236 | ;; | |
12237 | *) | |
12238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12239 | $as_echo "no" >&6; } | |
12240 | ;; | |
12241 | esac | |
12242 | fi | |
12243 | ||
12244 | ||
12245 | ||
12246 | ||
12247 | ||
12248 | ||
12249 | ||
12250 | ||
12251 | ||
12252 | ||
12253 | ||
12254 | ||
12255 | # Report what library types will actually be built | |
12256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12257 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12259 | $as_echo "$can_build_shared" >&6; } | |
12260 | ||
12261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12262 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12263 | test no = "$can_build_shared" && enable_shared=no | |
12264 | ||
12265 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12266 | # are all built from PIC. | |
12267 | case $host_os in | |
12268 | aix3*) | |
12269 | test yes = "$enable_shared" && enable_static=no | |
12270 | if test -n "$RANLIB"; then | |
12271 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12272 | postinstall_cmds='$RANLIB $lib' | |
12273 | fi | |
12274 | ;; | |
12275 | ||
12276 | aix[4-9]*) | |
12277 | if test ia64 != "$host_cpu"; then | |
12278 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
12279 | yes,aix,yes) ;; # shared object as lib.so file only | |
12280 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
12281 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
12282 | esac | |
12283 | fi | |
12284 | ;; | |
12285 | esac | |
12286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12287 | $as_echo "$enable_shared" >&6; } | |
12288 | ||
12289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12290 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12291 | # Make sure either enable_shared or enable_static is yes. | |
12292 | test yes = "$enable_shared" || enable_static=yes | |
12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12294 | $as_echo "$enable_static" >&6; } | |
12295 | ||
12296 | ||
12297 | ||
12298 | ||
12299 | fi | |
12300 | ac_ext=c | |
12301 | ac_cpp='$CPP $CPPFLAGS' | |
12302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12305 | ||
12306 | CC=$lt_save_CC | |
12307 | ||
12308 | ||
12309 | ||
12310 | ||
12311 | ||
12312 | ||
12313 | ||
12314 | ||
12315 | ||
12316 | ||
12317 | ||
12318 | ||
12319 | ||
12320 | ||
12321 | ||
12322 | ac_config_commands="$ac_config_commands libtool" | |
12323 | ||
12324 | ||
12325 | ||
12326 | ||
12327 | # Only expand once: | |
12328 | ||
12329 | ||
12330 | # By default we simply use the C compiler to build assembly code. | |
12331 | ||
12332 | test "${CCAS+set}" = set || CCAS=$CC | |
12333 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
12334 | ||
12335 | ||
12336 | ||
12337 | depcc="$CCAS" am_compiler_list= | |
12338 | ||
12339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
12340 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
12341 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : | |
12342 | $as_echo_n "(cached) " >&6 | |
12343 | else | |
12344 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
12345 | # We make a subdir and do the tests there. Otherwise we can end up | |
12346 | # making bogus files that we don't know about and never remove. For | |
12347 | # instance it was reported that on HP-UX the gcc test will end up | |
12348 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
12349 | # in D". | |
12350 | rm -rf conftest.dir | |
12351 | mkdir conftest.dir | |
12352 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
12353 | # using a relative directory. | |
12354 | cp "$am_depcomp" conftest.dir | |
12355 | cd conftest.dir | |
12356 | # We will build objects and dependencies in a subdirectory because | |
12357 | # it helps to detect inapplicable dependency modes. For instance | |
12358 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
12359 | # side effect of compilation, but ICC will put the dependencies in | |
12360 | # the current directory while Tru64 will put them in the object | |
12361 | # directory. | |
12362 | mkdir sub | |
12363 | ||
12364 | am_cv_CCAS_dependencies_compiler_type=none | |
12365 | if test "$am_compiler_list" = ""; then | |
12366 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
12367 | fi | |
12368 | am__universal=false | |
12369 | ||
12370 | ||
12371 | for depmode in $am_compiler_list; do | |
12372 | # Setup a source with many dependencies, because some compilers | |
12373 | # like to wrap large dependency lists on column 80 (with \), and | |
12374 | # we should not choose a depcomp mode which is confused by this. | |
12375 | # | |
12376 | # We need to recreate these files for each test, as the compiler may | |
12377 | # overwrite some of them when testing with obscure command lines. | |
12378 | # This happens at least with the AIX C compiler. | |
12379 | : > sub/conftest.c | |
12380 | for i in 1 2 3 4 5 6; do | |
12381 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
12382 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
12383 | # Solaris 10 /bin/sh. | |
12384 | echo '/* dummy */' > sub/conftst$i.h | |
12385 | done | |
12386 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
12387 | ||
12388 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
12389 | # mode. It turns out that the SunPro C++ compiler does not properly | |
12390 | # handle '-M -o', and we need to detect this. Also, some Intel | |
12391 | # versions had trouble with output in subdirs. | |
12392 | am__obj=sub/conftest.${OBJEXT-o} | |
12393 | am__minus_obj="-o $am__obj" | |
12394 | case $depmode in | |
12395 | gcc) | |
12396 | # This depmode causes a compiler race in universal mode. | |
12397 | test "$am__universal" = false || continue | |
12398 | ;; | |
12399 | nosideeffect) | |
12400 | # After this tag, mechanisms are not by side-effect, so they'll | |
12401 | # only be used when explicitly requested. | |
12402 | if test "x$enable_dependency_tracking" = xyes; then | |
12403 | continue | |
12404 | else | |
12405 | break | |
12406 | fi | |
12407 | ;; | |
12408 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
12409 | # This compiler won't grok '-c -o', but also, the minuso test has | |
12410 | # not run yet. These depmodes are late enough in the game, and | |
12411 | # so weak that their functioning should not be impacted. | |
12412 | am__obj=conftest.${OBJEXT-o} | |
12413 | am__minus_obj= | |
12414 | ;; | |
12415 | none) break ;; | |
12416 | esac | |
12417 | if depmode=$depmode \ | |
12418 | source=sub/conftest.c object=$am__obj \ | |
12419 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
12420 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
12421 | >/dev/null 2>conftest.err && | |
12422 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
12423 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
12424 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
12425 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
12426 | # icc doesn't choke on unknown options, it will just issue warnings | |
12427 | # or remarks (even with -Werror). So we grep stderr for any message | |
12428 | # that says an option was ignored or not supported. | |
12429 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
12430 | # icc: Command line warning: ignoring option '-M'; no argument required | |
12431 | # The diagnosis changed in icc 8.0: | |
12432 | # icc: Command line remark: option '-MP' not supported | |
12433 | if (grep 'ignoring option' conftest.err || | |
12434 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
12435 | am_cv_CCAS_dependencies_compiler_type=$depmode | |
12436 | break | |
12437 | fi | |
12438 | fi | |
12439 | done | |
12440 | ||
12441 | cd .. | |
12442 | rm -rf conftest.dir | |
12443 | else | |
12444 | am_cv_CCAS_dependencies_compiler_type=none | |
12445 | fi | |
12446 | ||
12447 | fi | |
12448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 | |
12449 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } | |
12450 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type | |
12451 | ||
12452 | if | |
12453 | test "x$enable_dependency_tracking" != xno \ | |
12454 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then | |
12455 | am__fastdepCCAS_TRUE= | |
12456 | am__fastdepCCAS_FALSE='#' | |
12457 | else | |
12458 | am__fastdepCCAS_TRUE='#' | |
12459 | am__fastdepCCAS_FALSE= | |
12460 | fi | |
12461 | ||
12462 | ||
12463 | ||
12464 | ||
12465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5 | |
12466 | $as_echo_n "checking zfs author... " >&6; } | |
12467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5 | |
12468 | $as_echo "$ZFS_META_AUTHOR" >&6; } | |
12469 | ||
12470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5 | |
12471 | $as_echo_n "checking zfs license... " >&6; } | |
12472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5 | |
12473 | $as_echo "$ZFS_META_LICENSE" >&6; } | |
12474 | ||
12475 | ||
12476 | ||
12477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5 | |
12478 | $as_echo_n "checking linux distribution... " >&6; } | |
12479 | if test -f /etc/toss-release ; then | |
12480 | VENDOR=toss ; | |
12481 | elif test -f /etc/fedora-release ; then | |
12482 | VENDOR=fedora ; | |
12483 | elif test -f /etc/redhat-release ; then | |
12484 | VENDOR=redhat ; | |
12485 | elif test -f /etc/gentoo-release ; then | |
12486 | VENDOR=gentoo ; | |
12487 | elif test -f /etc/arch-release ; then | |
12488 | VENDOR=arch ; | |
12489 | elif test -f /etc/SuSE-release ; then | |
12490 | VENDOR=sles ; | |
12491 | elif test -f /etc/slackware-version ; then | |
12492 | VENDOR=slackware ; | |
12493 | elif test -f /etc/lunar.release ; then | |
12494 | VENDOR=lunar ; | |
12495 | elif test -f /etc/lsb-release ; then | |
12496 | VENDOR=ubuntu ; | |
12497 | elif test -f /etc/debian_version ; then | |
12498 | VENDOR=debian ; | |
12499 | else | |
12500 | VENDOR= ; | |
12501 | fi | |
12502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5 | |
12503 | $as_echo "$VENDOR" >&6; } | |
12504 | ||
12505 | ||
12506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5 | |
12507 | $as_echo_n "checking default package type... " >&6; } | |
12508 | case "$VENDOR" in | |
12509 | toss) DEFAULT_PACKAGE=rpm ;; | |
12510 | redhat) DEFAULT_PACKAGE=rpm ;; | |
12511 | fedora) DEFAULT_PACKAGE=rpm ;; | |
12512 | gentoo) DEFAULT_PACKAGE=tgz ;; | |
12513 | arch) DEFAULT_PACKAGE=tgz ;; | |
12514 | sles) DEFAULT_PACKAGE=rpm ;; | |
12515 | slackware) DEFAULT_PACKAGE=tgz ;; | |
12516 | lunar) DEFAULT_PACKAGE=tgz ;; | |
12517 | ubuntu) DEFAULT_PACKAGE=deb ;; | |
12518 | debian) DEFAULT_PACKAGE=deb ;; | |
12519 | *) DEFAULT_PACKAGE=rpm ;; | |
12520 | esac | |
12521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5 | |
12522 | $as_echo "$DEFAULT_PACKAGE" >&6; } | |
12523 | ||
12524 | ||
12525 | DEFAULT_INIT_DIR=$sysconfdir/init.d | |
12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5 | |
12527 | $as_echo_n "checking default init directory... " >&6; } | |
12528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5 | |
12529 | $as_echo "$DEFAULT_INIT_DIR" >&6; } | |
12530 | ||
12531 | ||
12532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5 | |
12533 | $as_echo_n "checking default init script type... " >&6; } | |
12534 | case "$VENDOR" in | |
12535 | toss) DEFAULT_INIT_SCRIPT=redhat ;; | |
12536 | redhat) DEFAULT_INIT_SCRIPT=redhat ;; | |
12537 | fedora) DEFAULT_INIT_SCRIPT=fedora ;; | |
12538 | gentoo) DEFAULT_INIT_SCRIPT=gentoo ;; | |
12539 | arch) DEFAULT_INIT_SCRIPT=lsb ;; | |
12540 | sles) DEFAULT_INIT_SCRIPT=lsb ;; | |
12541 | slackware) DEFAULT_INIT_SCRIPT=lsb ;; | |
12542 | lunar) DEFAULT_INIT_SCRIPT=lunar ;; | |
12543 | ubuntu) DEFAULT_INIT_SCRIPT=lsb ;; | |
12544 | debian) DEFAULT_INIT_SCRIPT=lsb ;; | |
12545 | *) DEFAULT_INIT_SCRIPT=lsb ;; | |
12546 | esac | |
12547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5 | |
12548 | $as_echo "$DEFAULT_INIT_SCRIPT" >&6; } | |
12549 | ||
12550 | ||
12551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5 | |
12552 | $as_echo_n "checking default init config direectory... " >&6; } | |
12553 | case "$VENDOR" in | |
12554 | gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;; | |
12555 | toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12556 | redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12557 | fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12558 | sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12559 | ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;; | |
12560 | debian) DEFAULT_INITCONF_DIR=/etc/default ;; | |
12561 | *) DEFAULT_INITCONF_DIR=/etc/default ;; | |
12562 | esac | |
12563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5 | |
12564 | $as_echo "$DEFAULT_INITCONF_DIR" >&6; } | |
12565 | ||
12566 | ||
12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5 | |
12568 | $as_echo_n "checking whether initramfs-tools is available... " >&6; } | |
12569 | if test -d /usr/share/initramfs-tools ; then | |
12570 | DEFINE_INITRAMFS='--define "_initramfs 1"' | |
12571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12572 | $as_echo "yes" >&6; } | |
12573 | else | |
12574 | DEFINE_INITRAMFS='' | |
12575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12576 | $as_echo "no" >&6; } | |
12577 | fi | |
12578 | ||
12579 | ||
12580 | ||
12581 | RPM=rpm | |
12582 | RPMBUILD=rpmbuild | |
12583 | ||
12584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5 | |
12585 | $as_echo_n "checking whether $RPM is available... " >&6; } | |
12586 | if tmp=$($RPM --version 2>/dev/null); then : | |
12587 | ||
12588 | RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
12589 | HAVE_RPM=yes | |
12590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5 | |
12591 | $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; } | |
12592 | ||
12593 | else | |
12594 | ||
12595 | HAVE_RPM=no | |
12596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5 | |
12597 | $as_echo "$HAVE_RPM" >&6; } | |
12598 | ||
12599 | fi | |
12600 | ||
12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5 | |
12602 | $as_echo_n "checking whether $RPMBUILD is available... " >&6; } | |
12603 | if tmp=$($RPMBUILD --version 2>/dev/null); then : | |
12604 | ||
12605 | RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
12606 | HAVE_RPMBUILD=yes | |
12607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5 | |
12608 | $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; } | |
12609 | ||
12610 | else | |
12611 | ||
12612 | HAVE_RPMBUILD=no | |
12613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5 | |
12614 | $as_echo "$HAVE_RPMBUILD" >&6; } | |
12615 | ||
12616 | fi | |
12617 | ||
12618 | RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"' | |
12619 | RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)' | |
12620 | RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"' | |
12621 | RPM_DEFINE_DKMS= | |
12622 | ||
12623 | SRPM_DEFINE_COMMON='--define "build_src_rpm 1"' | |
12624 | SRPM_DEFINE_UTIL= | |
12625 | SRPM_DEFINE_KMOD= | |
12626 | SRPM_DEFINE_DKMS= | |
12627 | ||
12628 | RPM_SPEC_DIR="rpm/generic" | |
12629 | ||
12630 | # Check whether --with-spec was given. | |
12631 | if test "${with_spec+set}" = set; then : | |
12632 | withval=$with_spec; RPM_SPEC_DIR="rpm/$withval" | |
12633 | fi | |
12634 | ||
12635 | ||
12636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5 | |
12637 | $as_echo_n "checking whether spec files are available... " >&6; } | |
12638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5 | |
12639 | $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; } | |
12640 | ||
12641 | ||
12642 | ||
12643 | ||
12644 | ||
12645 | ||
12646 | ||
12647 | ||
12648 | ||
12649 | ||
12650 | ||
12651 | ||
12652 | ||
12653 | ||
12654 | ||
12655 | ||
12656 | ||
12657 | ||
12658 | ||
12659 | ||
12660 | DPKG=dpkg | |
12661 | DPKGBUILD=dpkg-buildpackage | |
12662 | ||
12663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5 | |
12664 | $as_echo_n "checking whether $DPKG is available... " >&6; } | |
12665 | if tmp=$($DPKG --version 2>/dev/null); then : | |
12666 | ||
12667 | DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }') | |
12668 | HAVE_DPKG=yes | |
12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5 | |
12670 | $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; } | |
12671 | ||
12672 | else | |
12673 | ||
12674 | HAVE_DPKG=no | |
12675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5 | |
12676 | $as_echo "$HAVE_DPKG" >&6; } | |
12677 | ||
12678 | fi | |
12679 | ||
12680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5 | |
12681 | $as_echo_n "checking whether $DPKGBUILD is available... " >&6; } | |
12682 | if tmp=$($DPKGBUILD --version 2>/dev/null); then : | |
12683 | ||
12684 | DPKGBUILD_VERSION=$(echo $tmp | \ | |
12685 | $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.') | |
12686 | HAVE_DPKGBUILD=yes | |
12687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5 | |
12688 | $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; } | |
12689 | ||
12690 | else | |
12691 | ||
12692 | HAVE_DPKGBUILD=no | |
12693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5 | |
12694 | $as_echo "$HAVE_DPKGBUILD" >&6; } | |
12695 | ||
12696 | fi | |
12697 | ||
12698 | ||
12699 | ||
12700 | ||
12701 | ||
12702 | ||
12703 | ||
12704 | ||
12705 | ||
12706 | ||
12707 | ALIEN=alien | |
12708 | ||
12709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5 | |
12710 | $as_echo_n "checking whether $ALIEN is available... " >&6; } | |
12711 | if tmp=$($ALIEN --version 2>/dev/null); then : | |
12712 | ||
12713 | ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }') | |
12714 | HAVE_ALIEN=yes | |
12715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5 | |
12716 | $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; } | |
12717 | ||
12718 | else | |
12719 | ||
12720 | HAVE_ALIEN=no | |
12721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5 | |
12722 | $as_echo "$HAVE_ALIEN" >&6; } | |
12723 | ||
12724 | fi | |
12725 | ||
12726 | ||
12727 | ||
12728 | ||
12729 | ||
12730 | ||
12731 | ||
12732 | TARGET_ASM_DIR=asm-generic | |
12733 | ||
12734 | ||
12735 | ZFS_CONFIG=all | |
12736 | ||
12737 | # Check whether --with-config was given. | |
12738 | if test "${with_config+set}" = set; then : | |
12739 | withval=$with_config; ZFS_CONFIG="$withval" | |
12740 | fi | |
12741 | ||
12742 | # Check whether --enable-linux-builtin was given. | |
12743 | if test "${enable_linux_builtin+set}" = set; then : | |
12744 | enableval=$enable_linux_builtin; | |
12745 | else | |
12746 | enable_linux_builtin=no | |
12747 | fi | |
12748 | ||
12749 | ||
12750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5 | |
12751 | $as_echo_n "checking zfs config... " >&6; } | |
12752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5 | |
12753 | $as_echo "$ZFS_CONFIG" >&6; }; | |
12754 | ||
12755 | ||
12756 | ||
12757 | ||
12758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5 | |
12759 | $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; } | |
12760 | ||
12761 | saved_flags="$CFLAGS" | |
12762 | CFLAGS="$CFLAGS -Wunused-but-set-variable" | |
12763 | ||
12764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12765 | /* end confdefs.h. */ | |
12766 | ||
12767 | int | |
12768 | main () | |
12769 | { | |
12770 | ||
12771 | ; | |
12772 | return 0; | |
12773 | } | |
12774 | _ACEOF | |
12775 | if ac_fn_c_try_compile "$LINENO"; then : | |
12776 | ||
12777 | NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable | |
12778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12779 | $as_echo "yes" >&6; } | |
12780 | ||
12781 | else | |
12782 | ||
12783 | NO_UNUSED_BUT_SET_VARIABLE= | |
12784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12785 | $as_echo "no" >&6; } | |
12786 | ||
12787 | fi | |
12788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12789 | ||
12790 | CFLAGS="$saved_flags" | |
12791 | ||
12792 | ||
12793 | ||
12794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5 | |
12795 | $as_echo_n "checking for -Wno-bool-compare support... " >&6; } | |
12796 | ||
12797 | saved_flags="$CFLAGS" | |
12798 | CFLAGS="$CFLAGS -Wbool-compare" | |
12799 | ||
12800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12801 | /* end confdefs.h. */ | |
12802 | ||
12803 | int | |
12804 | main () | |
12805 | { | |
12806 | ||
12807 | ; | |
12808 | return 0; | |
12809 | } | |
12810 | _ACEOF | |
12811 | if ac_fn_c_try_compile "$LINENO"; then : | |
12812 | ||
12813 | NO_BOOL_COMPARE=-Wno-bool-compare | |
12814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12815 | $as_echo "yes" >&6; } | |
12816 | ||
12817 | else | |
12818 | ||
12819 | NO_BOOL_COMPARE= | |
12820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12821 | $as_echo "no" >&6; } | |
12822 | ||
12823 | fi | |
12824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12825 | ||
12826 | CFLAGS="$saved_flags" | |
12827 | ||
12828 | ||
12829 | ||
12830 | ||
12831 | case "$ZFS_CONFIG" in | |
12832 | user) | |
12833 | ||
12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5 | |
12835 | $as_echo_n "checking for dkms.conf file... " >&6; } | |
12836 | if test -e dkms.conf; then : | |
12837 | ||
12838 | as_fn_error $? " | |
12839 | *** ZFS should not be manually built in the DKMS source tree. | |
12840 | *** Remove all ZFS packages before compiling the ZoL sources. | |
12841 | *** Running \"make install\" breaks ZFS packages." "$LINENO" 5 | |
12842 | ||
12843 | else | |
12844 | ||
12845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
12846 | $as_echo "not found" >&6; } | |
12847 | ||
12848 | fi | |
12849 | ||
12850 | ||
12851 | ||
12852 | # Check whether --with-mounthelperdir was given. | |
12853 | if test "${with_mounthelperdir+set}" = set; then : | |
12854 | withval=$with_mounthelperdir; mounthelperdir=$withval | |
12855 | else | |
12856 | mounthelperdir=/sbin | |
12857 | fi | |
12858 | ||
12859 | ||
12860 | ||
12861 | ||
12862 | ||
12863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5 | |
12864 | $as_echo_n "checking for udev directories... " >&6; } | |
12865 | ||
12866 | # Check whether --with-udevdir was given. | |
12867 | if test "${with_udevdir+set}" = set; then : | |
12868 | withval=$with_udevdir; udevdir=$withval | |
12869 | else | |
12870 | udevdir=check | |
12871 | fi | |
12872 | ||
12873 | ||
12874 | if test "x$udevdir" = xcheck; then : | |
12875 | ||
12876 | path1=/lib/udev | |
12877 | path2=/usr/lib/udev | |
12878 | default=$path2 | |
12879 | ||
12880 | if test -d "$path1"; then : | |
12881 | udevdir="$path1" | |
12882 | else | |
12883 | ||
12884 | if test -d "$path2"; then : | |
12885 | udevdir="$path2" | |
12886 | else | |
12887 | udevdir="$default" | |
12888 | fi | |
12889 | ||
12890 | fi | |
12891 | ||
12892 | fi | |
12893 | ||
12894 | ||
12895 | # Check whether --with-udevruledir was given. | |
12896 | if test "${with_udevruledir+set}" = set; then : | |
12897 | withval=$with_udevruledir; udevruledir=$withval | |
12898 | else | |
12899 | udevruledir="${udevdir}/rules.d" | |
12900 | fi | |
12901 | ||
12902 | ||
12903 | ||
12904 | ||
12905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5 | |
12906 | $as_echo "$udevdir;$udevruledir" >&6; } | |
12907 | ||
12908 | ||
3f5d8d55 CIK |
12909 | LIBAIO= |
12910 | ||
12911 | ac_fn_c_check_header_mongrel "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default" | |
12912 | if test "x$ac_cv_header_libaio_h" = xyes; then : | |
12913 | ||
12914 | user_libaio=yes | |
12915 | LIBAIO="-laio" | |
12916 | ||
12917 | ||
12918 | $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h | |
12919 | ||
12920 | ||
12921 | else | |
12922 | ||
12923 | user_libaio=no | |
12924 | ||
12925 | fi | |
12926 | ||
12927 | ||
12928 | ||
12929 | ||
87d546d8 TG |
12930 | # Check whether --enable-systemd was given. |
12931 | if test "${enable_systemd+set}" = set; then : | |
12932 | enableval=$enable_systemd; | |
12933 | else | |
12934 | enable_systemd=yes | |
12935 | fi | |
12936 | ||
12937 | ||
12938 | ||
12939 | # Check whether --with-systemdunitdir was given. | |
12940 | if test "${with_systemdunitdir+set}" = set; then : | |
12941 | withval=$with_systemdunitdir; systemdunitdir=$withval | |
12942 | else | |
12943 | systemdunitdir=/usr/lib/systemd/system | |
12944 | fi | |
12945 | ||
12946 | ||
12947 | ||
12948 | # Check whether --with-systemdpresetdir was given. | |
12949 | if test "${with_systemdpresetdir+set}" = set; then : | |
12950 | withval=$with_systemdpresetdir; systemdpresetdir=$withval | |
12951 | else | |
12952 | systemdpresetdir=/usr/lib/systemd/system-preset | |
12953 | fi | |
12954 | ||
12955 | ||
12956 | ||
12957 | # Check whether --with-systemdmodulesloaddir was given. | |
12958 | if test "${with_systemdmodulesloaddir+set}" = set; then : | |
12959 | withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval | |
12960 | else | |
12961 | systemdmodulesloaddir=/usr/lib/modules-load.d | |
12962 | fi | |
12963 | ||
12964 | ||
12965 | ||
12966 | if test "x$enable_systemd" = xyes; then : | |
12967 | ||
12968 | ZFS_INIT_SYSTEMD=systemd | |
12969 | ZFS_MODULE_LOAD=modules-load.d | |
12970 | modulesloaddir=$systemdmodulesloaddir | |
12971 | ||
12972 | fi | |
12973 | ||
12974 | ||
12975 | ||
12976 | ||
12977 | ||
12978 | ||
12979 | ||
12980 | ||
12981 | # Check whether --enable-sysvinit was given. | |
12982 | if test "${enable_sysvinit+set}" = set; then : | |
12983 | enableval=$enable_sysvinit; | |
12984 | else | |
12985 | enable_sysvinit=yes | |
12986 | fi | |
12987 | ||
12988 | ||
12989 | if test "x$enable_sysvinit" = xyes; then : | |
12990 | ZFS_INIT_SYSV=init.d | |
12991 | fi | |
12992 | ||
12993 | ||
12994 | ||
12995 | ||
12996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5 | |
12997 | $as_echo_n "checking for dracut directory... " >&6; } | |
12998 | ||
12999 | # Check whether --with-dracutdir was given. | |
13000 | if test "${with_dracutdir+set}" = set; then : | |
13001 | withval=$with_dracutdir; dracutdir=$withval | |
13002 | else | |
13003 | dracutdir=check | |
13004 | fi | |
13005 | ||
13006 | ||
13007 | if test "x$dracutdir" = xcheck; then : | |
13008 | ||
13009 | path1=/usr/share/dracut | |
13010 | path2=/usr/lib/dracut | |
13011 | default=$path2 | |
13012 | ||
13013 | if test -d "$path1"; then : | |
13014 | dracutdir="$path1" | |
13015 | else | |
13016 | ||
13017 | if test -d "$path2"; then : | |
13018 | dracutdir="$path2" | |
13019 | else | |
13020 | dracutdir="$default" | |
13021 | fi | |
13022 | ||
13023 | fi | |
13024 | ||
13025 | fi | |
13026 | ||
13027 | ||
13028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5 | |
13029 | $as_echo "$dracutdir" >&6; } | |
13030 | ||
13031 | ||
13032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5 | |
13033 | $as_echo_n "checking for target asm dir... " >&6; } | |
13034 | TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/` | |
13035 | ||
13036 | case $TARGET_ARCH in | |
13037 | i386|x86_64) | |
13038 | TARGET_ASM_DIR=asm-${TARGET_ARCH} | |
13039 | ;; | |
13040 | *) | |
13041 | TARGET_ASM_DIR=asm-generic | |
13042 | ;; | |
13043 | esac | |
13044 | ||
13045 | ||
13046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5 | |
13047 | $as_echo "$TARGET_ASM_DIR" >&6; } | |
13048 | ||
13049 | ||
13050 | ZLIB= | |
13051 | ||
13052 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
13053 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
13054 | ||
13055 | else | |
13056 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13057 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13058 | as_fn_error $? " | |
13059 | *** zlib.h missing, zlib-devel package required | |
13060 | See \`config.log' for more details" "$LINENO" 5; } | |
13061 | fi | |
13062 | ||
13063 | ||
13064 | ||
13065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5 | |
13066 | $as_echo_n "checking for compress2 in -lz... " >&6; } | |
13067 | if ${ac_cv_lib_z_compress2+:} false; then : | |
13068 | $as_echo_n "(cached) " >&6 | |
13069 | else | |
13070 | ac_check_lib_save_LIBS=$LIBS | |
13071 | LIBS="-lz $LIBS" | |
13072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13073 | /* end confdefs.h. */ | |
13074 | ||
13075 | /* Override any GCC internal prototype to avoid an error. | |
13076 | Use char because int might match the return type of a GCC | |
13077 | builtin and then its argument prototype would still apply. */ | |
13078 | #ifdef __cplusplus | |
13079 | extern "C" | |
13080 | #endif | |
13081 | char compress2 (); | |
13082 | int | |
13083 | main () | |
13084 | { | |
13085 | return compress2 (); | |
13086 | ; | |
13087 | return 0; | |
13088 | } | |
13089 | _ACEOF | |
13090 | if ac_fn_c_try_link "$LINENO"; then : | |
13091 | ac_cv_lib_z_compress2=yes | |
13092 | else | |
13093 | ac_cv_lib_z_compress2=no | |
13094 | fi | |
13095 | rm -f core conftest.err conftest.$ac_objext \ | |
13096 | conftest$ac_exeext conftest.$ac_ext | |
13097 | LIBS=$ac_check_lib_save_LIBS | |
13098 | fi | |
13099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5 | |
13100 | $as_echo "$ac_cv_lib_z_compress2" >&6; } | |
13101 | if test "x$ac_cv_lib_z_compress2" = xyes; then : | |
13102 | cat >>confdefs.h <<_ACEOF | |
13103 | #define HAVE_LIBZ 1 | |
13104 | _ACEOF | |
13105 | ||
13106 | LIBS="-lz $LIBS" | |
13107 | ||
13108 | else | |
13109 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13110 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13111 | as_fn_error $? " | |
13112 | *** compress2() missing, zlib-devel package required | |
13113 | See \`config.log' for more details" "$LINENO" 5; } | |
13114 | fi | |
13115 | ||
13116 | ||
13117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 | |
13118 | $as_echo_n "checking for uncompress in -lz... " >&6; } | |
13119 | if ${ac_cv_lib_z_uncompress+:} false; then : | |
13120 | $as_echo_n "(cached) " >&6 | |
13121 | else | |
13122 | ac_check_lib_save_LIBS=$LIBS | |
13123 | LIBS="-lz $LIBS" | |
13124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13125 | /* end confdefs.h. */ | |
13126 | ||
13127 | /* Override any GCC internal prototype to avoid an error. | |
13128 | Use char because int might match the return type of a GCC | |
13129 | builtin and then its argument prototype would still apply. */ | |
13130 | #ifdef __cplusplus | |
13131 | extern "C" | |
13132 | #endif | |
13133 | char uncompress (); | |
13134 | int | |
13135 | main () | |
13136 | { | |
13137 | return uncompress (); | |
13138 | ; | |
13139 | return 0; | |
13140 | } | |
13141 | _ACEOF | |
13142 | if ac_fn_c_try_link "$LINENO"; then : | |
13143 | ac_cv_lib_z_uncompress=yes | |
13144 | else | |
13145 | ac_cv_lib_z_uncompress=no | |
13146 | fi | |
13147 | rm -f core conftest.err conftest.$ac_objext \ | |
13148 | conftest$ac_exeext conftest.$ac_ext | |
13149 | LIBS=$ac_check_lib_save_LIBS | |
13150 | fi | |
13151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 | |
13152 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } | |
13153 | if test "x$ac_cv_lib_z_uncompress" = xyes; then : | |
13154 | cat >>confdefs.h <<_ACEOF | |
13155 | #define HAVE_LIBZ 1 | |
13156 | _ACEOF | |
13157 | ||
13158 | LIBS="-lz $LIBS" | |
13159 | ||
13160 | else | |
13161 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13162 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13163 | as_fn_error $? " | |
13164 | *** uncompress() missing, zlib-devel package required | |
13165 | See \`config.log' for more details" "$LINENO" 5; } | |
13166 | fi | |
13167 | ||
13168 | ||
13169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5 | |
13170 | $as_echo_n "checking for crc32 in -lz... " >&6; } | |
13171 | if ${ac_cv_lib_z_crc32+:} false; then : | |
13172 | $as_echo_n "(cached) " >&6 | |
13173 | else | |
13174 | ac_check_lib_save_LIBS=$LIBS | |
13175 | LIBS="-lz $LIBS" | |
13176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13177 | /* end confdefs.h. */ | |
13178 | ||
13179 | /* Override any GCC internal prototype to avoid an error. | |
13180 | Use char because int might match the return type of a GCC | |
13181 | builtin and then its argument prototype would still apply. */ | |
13182 | #ifdef __cplusplus | |
13183 | extern "C" | |
13184 | #endif | |
13185 | char crc32 (); | |
13186 | int | |
13187 | main () | |
13188 | { | |
13189 | return crc32 (); | |
13190 | ; | |
13191 | return 0; | |
13192 | } | |
13193 | _ACEOF | |
13194 | if ac_fn_c_try_link "$LINENO"; then : | |
13195 | ac_cv_lib_z_crc32=yes | |
13196 | else | |
13197 | ac_cv_lib_z_crc32=no | |
13198 | fi | |
13199 | rm -f core conftest.err conftest.$ac_objext \ | |
13200 | conftest$ac_exeext conftest.$ac_ext | |
13201 | LIBS=$ac_check_lib_save_LIBS | |
13202 | fi | |
13203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5 | |
13204 | $as_echo "$ac_cv_lib_z_crc32" >&6; } | |
13205 | if test "x$ac_cv_lib_z_crc32" = xyes; then : | |
13206 | cat >>confdefs.h <<_ACEOF | |
13207 | #define HAVE_LIBZ 1 | |
13208 | _ACEOF | |
13209 | ||
13210 | LIBS="-lz $LIBS" | |
13211 | ||
13212 | else | |
13213 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13214 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13215 | as_fn_error $? " | |
13216 | *** crc32() missing, zlib-devel package required | |
13217 | See \`config.log' for more details" "$LINENO" 5; } | |
13218 | fi | |
13219 | ||
13220 | ||
13221 | ZLIB="-lz" | |
13222 | ||
13223 | ||
13224 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h | |
13225 | ||
13226 | ||
13227 | ||
13228 | LIBUUID= | |
13229 | ||
13230 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" | |
13231 | if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : | |
13232 | ||
13233 | else | |
13234 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13235 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13236 | as_fn_error $? " | |
13237 | *** uuid/uuid.h missing, libuuid-devel package required | |
13238 | See \`config.log' for more details" "$LINENO" 5; } | |
13239 | fi | |
13240 | ||
13241 | ||
13242 | ||
13243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 | |
13244 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
13245 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : | |
13246 | $as_echo_n "(cached) " >&6 | |
13247 | else | |
13248 | ac_check_lib_save_LIBS=$LIBS | |
13249 | LIBS="-luuid $LIBS" | |
13250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13251 | /* end confdefs.h. */ | |
13252 | ||
13253 | /* Override any GCC internal prototype to avoid an error. | |
13254 | Use char because int might match the return type of a GCC | |
13255 | builtin and then its argument prototype would still apply. */ | |
13256 | #ifdef __cplusplus | |
13257 | extern "C" | |
13258 | #endif | |
13259 | char uuid_generate (); | |
13260 | int | |
13261 | main () | |
13262 | { | |
13263 | return uuid_generate (); | |
13264 | ; | |
13265 | return 0; | |
13266 | } | |
13267 | _ACEOF | |
13268 | if ac_fn_c_try_link "$LINENO"; then : | |
13269 | ac_cv_lib_uuid_uuid_generate=yes | |
13270 | else | |
13271 | ac_cv_lib_uuid_uuid_generate=no | |
13272 | fi | |
13273 | rm -f core conftest.err conftest.$ac_objext \ | |
13274 | conftest$ac_exeext conftest.$ac_ext | |
13275 | LIBS=$ac_check_lib_save_LIBS | |
13276 | fi | |
13277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
13278 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
13279 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : | |
13280 | cat >>confdefs.h <<_ACEOF | |
13281 | #define HAVE_LIBUUID 1 | |
13282 | _ACEOF | |
13283 | ||
13284 | LIBS="-luuid $LIBS" | |
13285 | ||
13286 | else | |
13287 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13288 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13289 | as_fn_error $? " | |
13290 | *** uuid_generate() missing, libuuid-devel package required | |
13291 | See \`config.log' for more details" "$LINENO" 5; } | |
13292 | fi | |
13293 | ||
13294 | ||
13295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5 | |
13296 | $as_echo_n "checking for uuid_is_null in -luuid... " >&6; } | |
13297 | if ${ac_cv_lib_uuid_uuid_is_null+:} false; then : | |
13298 | $as_echo_n "(cached) " >&6 | |
13299 | else | |
13300 | ac_check_lib_save_LIBS=$LIBS | |
13301 | LIBS="-luuid $LIBS" | |
13302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13303 | /* end confdefs.h. */ | |
13304 | ||
13305 | /* Override any GCC internal prototype to avoid an error. | |
13306 | Use char because int might match the return type of a GCC | |
13307 | builtin and then its argument prototype would still apply. */ | |
13308 | #ifdef __cplusplus | |
13309 | extern "C" | |
13310 | #endif | |
13311 | char uuid_is_null (); | |
13312 | int | |
13313 | main () | |
13314 | { | |
13315 | return uuid_is_null (); | |
13316 | ; | |
13317 | return 0; | |
13318 | } | |
13319 | _ACEOF | |
13320 | if ac_fn_c_try_link "$LINENO"; then : | |
13321 | ac_cv_lib_uuid_uuid_is_null=yes | |
13322 | else | |
13323 | ac_cv_lib_uuid_uuid_is_null=no | |
13324 | fi | |
13325 | rm -f core conftest.err conftest.$ac_objext \ | |
13326 | conftest$ac_exeext conftest.$ac_ext | |
13327 | LIBS=$ac_check_lib_save_LIBS | |
13328 | fi | |
13329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5 | |
13330 | $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; } | |
13331 | if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then : | |
13332 | cat >>confdefs.h <<_ACEOF | |
13333 | #define HAVE_LIBUUID 1 | |
13334 | _ACEOF | |
13335 | ||
13336 | LIBS="-luuid $LIBS" | |
13337 | ||
13338 | else | |
13339 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13340 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13341 | as_fn_error $? " | |
13342 | *** uuid_is_null() missing, libuuid-devel package required | |
13343 | See \`config.log' for more details" "$LINENO" 5; } | |
13344 | fi | |
13345 | ||
13346 | ||
13347 | LIBUUID="-luuid" | |
13348 | ||
13349 | ||
13350 | $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h | |
13351 | ||
13352 | ||
13353 | ||
13354 | ||
13355 | # Check whether --with-blkid was given. | |
13356 | if test "${with_blkid+set}" = set; then : | |
13357 | withval=$with_blkid; | |
13358 | else | |
13359 | with_blkid=check | |
13360 | fi | |
13361 | ||
13362 | ||
13363 | LIBBLKID= | |
13364 | if test "x$with_blkid" = xyes; then : | |
13365 | ||
13366 | LIBBLKID="-lblkid" | |
13367 | ||
13368 | ||
13369 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
13370 | ||
13371 | ||
13372 | fi | |
13373 | ||
13374 | if test "x$with_blkid" = xcheck; then : | |
13375 | ||
13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 | |
13377 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
13378 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : | |
13379 | $as_echo_n "(cached) " >&6 | |
13380 | else | |
13381 | ac_check_lib_save_LIBS=$LIBS | |
13382 | LIBS="-lblkid $LIBS" | |
13383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13384 | /* end confdefs.h. */ | |
13385 | ||
13386 | /* Override any GCC internal prototype to avoid an error. | |
13387 | Use char because int might match the return type of a GCC | |
13388 | builtin and then its argument prototype would still apply. */ | |
13389 | #ifdef __cplusplus | |
13390 | extern "C" | |
13391 | #endif | |
13392 | char blkid_get_cache (); | |
13393 | int | |
13394 | main () | |
13395 | { | |
13396 | return blkid_get_cache (); | |
13397 | ; | |
13398 | return 0; | |
13399 | } | |
13400 | _ACEOF | |
13401 | if ac_fn_c_try_link "$LINENO"; then : | |
13402 | ac_cv_lib_blkid_blkid_get_cache=yes | |
13403 | else | |
13404 | ac_cv_lib_blkid_blkid_get_cache=no | |
13405 | fi | |
13406 | rm -f core conftest.err conftest.$ac_objext \ | |
13407 | conftest$ac_exeext conftest.$ac_ext | |
13408 | LIBS=$ac_check_lib_save_LIBS | |
13409 | fi | |
13410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 | |
13411 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
13412 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : | |
13413 | ||
13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5 | |
13415 | $as_echo_n "checking for blkid zfs support... " >&6; } | |
13416 | ||
13417 | ZFS_DEV=`mktemp` | |
13418 | truncate -s 64M $ZFS_DEV | |
13419 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13420 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13421 | seek=128 conv=notrunc &>/dev/null \ | |
13422 | >/dev/null 2>/dev/null | |
13423 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13424 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13425 | seek=132 conv=notrunc &>/dev/null \ | |
13426 | >/dev/null 2>/dev/null | |
13427 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13428 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13429 | seek=136 conv=notrunc &>/dev/null \ | |
13430 | >/dev/null 2>/dev/null | |
13431 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13432 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13433 | seek=140 conv=notrunc &>/dev/null \ | |
13434 | >/dev/null 2>/dev/null | |
13435 | ||
13436 | saved_LIBS="$LIBS" | |
13437 | LIBS="-lblkid" | |
13438 | ||
13439 | if test "$cross_compiling" = yes; then : | |
13440 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13441 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13442 | as_fn_error $? "cannot run test program while cross compiling | |
13443 | See \`config.log' for more details" "$LINENO" 5; } | |
13444 | else | |
13445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13446 | /* end confdefs.h. */ | |
13447 | ||
13448 | #include <stdio.h> | |
13449 | #include <stdlib.h> | |
13450 | #include <blkid/blkid.h> | |
13451 | ||
13452 | int | |
13453 | main () | |
13454 | { | |
13455 | ||
13456 | blkid_cache cache; | |
13457 | char *value; | |
13458 | ||
13459 | if (blkid_get_cache(&cache, NULL) < 0) | |
13460 | return 1; | |
13461 | ||
13462 | value = blkid_get_tag_value(cache, "TYPE", | |
13463 | "$ZFS_DEV"); | |
13464 | if (!value) { | |
13465 | blkid_put_cache(cache); | |
13466 | return 2; | |
13467 | } | |
13468 | ||
13469 | if (strcmp(value, "zfs_member")) { | |
13470 | free(value); | |
13471 | blkid_put_cache(cache); | |
13472 | return 0; | |
13473 | } | |
13474 | ||
13475 | free(value); | |
13476 | blkid_put_cache(cache); | |
13477 | ||
13478 | ; | |
13479 | return 0; | |
13480 | } | |
13481 | _ACEOF | |
13482 | if ac_fn_c_try_run "$LINENO"; then : | |
13483 | ||
13484 | rm -f $ZFS_DEV | |
13485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13486 | $as_echo "yes" >&6; } | |
13487 | LIBBLKID="-lblkid" | |
13488 | ||
13489 | ||
13490 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
13491 | ||
13492 | ||
13493 | else | |
13494 | ||
13495 | rm -f $ZFS_DEV | |
13496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13497 | $as_echo "no" >&6; } | |
13498 | if test "x$with_blkid" != xcheck; then : | |
13499 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13500 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13501 | as_fn_error $? "--with-blkid given but unavailable | |
13502 | See \`config.log' for more details" "$LINENO" 5; } | |
13503 | fi | |
13504 | ||
13505 | fi | |
13506 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13507 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13508 | fi | |
13509 | ||
13510 | ||
13511 | LIBS="$saved_LIBS" | |
13512 | ||
13513 | else | |
13514 | ||
13515 | if test "x$with_blkid" != xcheck; then : | |
13516 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13517 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13518 | as_fn_error $? "--with-blkid given but unavailable | |
13519 | See \`config.log' for more details" "$LINENO" 5; } | |
13520 | fi | |
13521 | ||
13522 | ||
13523 | fi | |
13524 | ||
13525 | ||
13526 | fi | |
13527 | ||
13528 | ||
13529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5 | |
13530 | $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; } | |
13531 | ||
13532 | saved_flags="$CFLAGS" | |
13533 | CFLAGS="$CFLAGS -Wframe-larger-than=1024" | |
13534 | ||
13535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13536 | /* end confdefs.h. */ | |
13537 | ||
13538 | int | |
13539 | main () | |
13540 | { | |
13541 | ||
13542 | ; | |
13543 | return 0; | |
13544 | } | |
13545 | _ACEOF | |
13546 | if ac_fn_c_try_compile "$LINENO"; then : | |
13547 | ||
13548 | FRAME_LARGER_THAN=-Wframe-larger-than=1024 | |
13549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13550 | $as_echo "yes" >&6; } | |
13551 | ||
13552 | else | |
13553 | ||
13554 | FRAME_LARGER_THAN= | |
13555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13556 | $as_echo "no" >&6; } | |
13557 | ||
13558 | fi | |
13559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13560 | ||
13561 | CFLAGS="$saved_flags" | |
13562 | ||
13563 | ||
13564 | ||
13565 | if test "x$runstatedir" = x; then | |
13566 | runstatedir='${localstatedir}/run' | |
13567 | ||
13568 | fi | |
13569 | ||
1ec59ff7 CIK |
13570 | |
13571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5 | |
13572 | $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; } | |
13573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13574 | /* end confdefs.h. */ | |
13575 | ||
13576 | #include <sys/sysmacros.h> | |
13577 | ||
13578 | int | |
13579 | main () | |
13580 | { | |
13581 | ||
13582 | int k; | |
13583 | k = makedev(0,0); | |
13584 | ||
13585 | ; | |
13586 | return 0; | |
13587 | } | |
13588 | _ACEOF | |
13589 | if ac_fn_c_try_compile "$LINENO"; then : | |
13590 | ||
13591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13592 | $as_echo "yes" >&6; } | |
13593 | ||
13594 | $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h | |
13595 | ||
13596 | ||
13597 | else | |
13598 | ||
13599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13600 | $as_echo "no" >&6; } | |
13601 | ||
13602 | fi | |
13603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13604 | ||
13605 | ||
13606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5 | |
13607 | $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; } | |
13608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13609 | /* end confdefs.h. */ | |
13610 | ||
13611 | #include <sys/mkdev.h> | |
13612 | ||
13613 | int | |
13614 | main () | |
13615 | { | |
13616 | ||
13617 | int k; | |
13618 | k = makedev(0,0); | |
13619 | ||
13620 | ; | |
13621 | return 0; | |
13622 | } | |
13623 | _ACEOF | |
13624 | if ac_fn_c_try_compile "$LINENO"; then : | |
13625 | ||
13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13627 | $as_echo "yes" >&6; } | |
13628 | ||
13629 | $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h | |
13630 | ||
13631 | ||
13632 | else | |
13633 | ||
13634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13635 | $as_echo "no" >&6; } | |
13636 | ||
13637 | fi | |
13638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13639 | ||
13640 | ||
13641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5 | |
13642 | $as_echo_n "checking for -Wno-format-truncation support... " >&6; } | |
13643 | ||
13644 | saved_flags="$CFLAGS" | |
13645 | CFLAGS="$CFLAGS -Wno-format-truncation" | |
13646 | ||
13647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13648 | /* end confdefs.h. */ | |
13649 | ||
13650 | int | |
13651 | main () | |
13652 | { | |
13653 | ||
13654 | ; | |
13655 | return 0; | |
13656 | } | |
13657 | _ACEOF | |
13658 | if ac_fn_c_try_compile "$LINENO"; then : | |
13659 | ||
13660 | NO_FORMAT_TRUNCATION=-Wno-format-truncation | |
13661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13662 | $as_echo "yes" >&6; } | |
13663 | ||
13664 | else | |
13665 | ||
13666 | NO_FORMAT_TRUNCATION= | |
13667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13668 | $as_echo "no" >&6; } | |
13669 | ||
13670 | fi | |
13671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13672 | ||
13673 | CFLAGS="$saved_flags" | |
13674 | ||
13675 | ||
87d546d8 TG |
13676 | for ac_func in mlockall |
13677 | do : | |
13678 | ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" | |
13679 | if test "x$ac_cv_func_mlockall" = xyes; then : | |
13680 | cat >>confdefs.h <<_ACEOF | |
13681 | #define HAVE_MLOCKALL 1 | |
13682 | _ACEOF | |
13683 | ||
13684 | fi | |
13685 | done | |
13686 | ||
13687 | ;; | |
13688 | kernel) | |
13689 | ||
13690 | ||
13691 | # Check whether --with-linux was given. | |
13692 | if test "${with_linux+set}" = set; then : | |
13693 | withval=$with_linux; kernelsrc="$withval" | |
13694 | fi | |
13695 | ||
13696 | ||
13697 | ||
13698 | # Check whether --with-linux-obj was given. | |
13699 | if test "${with_linux_obj+set}" = set; then : | |
13700 | withval=$with_linux_obj; kernelbuild="$withval" | |
13701 | fi | |
13702 | ||
13703 | ||
13704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5 | |
13705 | $as_echo_n "checking kernel source directory... " >&6; } | |
13706 | if test -z "$kernelsrc"; then : | |
13707 | ||
13708 | if test -e "/lib/modules/$(uname -r)/source"; then : | |
13709 | ||
13710 | headersdir="/lib/modules/$(uname -r)/source" | |
13711 | sourcelink=$(readlink -f "$headersdir") | |
13712 | ||
13713 | elif test -e "/lib/modules/$(uname -r)/build"; then : | |
13714 | ||
13715 | headersdir="/lib/modules/$(uname -r)/build" | |
13716 | sourcelink=$(readlink -f "$headersdir") | |
13717 | ||
13718 | else | |
13719 | ||
13720 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
13721 | /usr/src/linux-* \ | |
13722 | 2>/dev/null | grep -v obj | tail -1) | |
13723 | ||
13724 | fi | |
13725 | ||
13726 | if test -n "$sourcelink" && test -e ${sourcelink}; then : | |
13727 | ||
13728 | kernelsrc=`readlink -f ${sourcelink}` | |
13729 | ||
13730 | else | |
13731 | ||
13732 | kernelsrc="Not found" | |
13733 | ||
13734 | fi | |
13735 | ||
13736 | else | |
13737 | ||
13738 | if test "$kernelsrc" = "NONE"; then : | |
13739 | ||
13740 | kernsrcver=NONE | |
13741 | ||
13742 | fi | |
13743 | ||
13744 | fi | |
13745 | ||
13746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5 | |
13747 | $as_echo "$kernelsrc" >&6; } | |
13748 | if test ! -d "$kernelsrc"; then : | |
13749 | ||
13750 | as_fn_error $? " | |
13751 | *** Please make sure the kernel devel package for your distribution | |
13752 | *** is installed and then try again. If that fails, you can specify the | |
13753 | *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5 | |
13754 | ||
13755 | fi | |
13756 | ||
13757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5 | |
13758 | $as_echo_n "checking kernel build directory... " >&6; } | |
13759 | if test -z "$kernelbuild"; then : | |
13760 | ||
13761 | if test -e "/lib/modules/$(uname -r)/build"; then : | |
13762 | ||
13763 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` | |
13764 | ||
13765 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then : | |
13766 | ||
13767 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
13768 | ||
13769 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then : | |
13770 | ||
13771 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
13772 | ||
13773 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then : | |
13774 | ||
13775 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
13776 | ||
13777 | else | |
13778 | ||
13779 | kernelbuild=${kernelsrc} | |
13780 | ||
13781 | fi | |
13782 | ||
13783 | fi | |
13784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5 | |
13785 | $as_echo "$kernelbuild" >&6; } | |
13786 | ||
13787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5 | |
13788 | $as_echo_n "checking kernel source version... " >&6; } | |
13789 | utsrelease1=$kernelbuild/include/linux/version.h | |
13790 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
13791 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
13792 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then : | |
13793 | ||
13794 | utsrelease=linux/version.h | |
13795 | ||
13796 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then : | |
13797 | ||
13798 | utsrelease=linux/utsrelease.h | |
13799 | ||
13800 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then : | |
13801 | ||
13802 | utsrelease=generated/utsrelease.h | |
13803 | ||
13804 | fi | |
13805 | ||
13806 | if test "$utsrelease"; then : | |
13807 | ||
13808 | kernsrcver=`(echo "#include <$utsrelease>"; | |
13809 | echo "kernsrcver=UTS_RELEASE") | | |
13810 | cpp -I $kernelbuild/include | | |
13811 | grep "^kernsrcver=" | cut -d \" -f 2` | |
13812 | ||
13813 | if test -z "$kernsrcver"; then : | |
13814 | ||
13815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
13816 | $as_echo "Not found" >&6; } | |
13817 | as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5 | |
13818 | ||
13819 | fi | |
13820 | ||
13821 | else | |
13822 | ||
13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
13824 | $as_echo "Not found" >&6; } | |
13825 | if test "x$enable_linux_builtin" != xyes; then | |
13826 | as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5 | |
13827 | else | |
13828 | as_fn_error $? " | |
13829 | *** Cannot find UTS_RELEASE definition. | |
13830 | *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5 | |
13831 | fi | |
13832 | ||
13833 | fi | |
13834 | ||
13835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5 | |
13836 | $as_echo "$kernsrcver" >&6; } | |
13837 | ||
13838 | LINUX=${kernelsrc} | |
13839 | LINUX_OBJ=${kernelbuild} | |
13840 | LINUX_VERSION=${kernsrcver} | |
13841 | ||
13842 | ||
13843 | ||
13844 | ||
13845 | ||
13846 | ||
13847 | modpost=$LINUX/scripts/Makefile.modpost | |
13848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5 | |
13849 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
13850 | if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then : | |
13851 | ||
13852 | if grep -q Modules.symvers $modpost; then : | |
13853 | ||
13854 | LINUX_SYMBOLS=Modules.symvers | |
13855 | ||
13856 | else | |
13857 | ||
13858 | LINUX_SYMBOLS=Module.symvers | |
13859 | ||
13860 | fi | |
13861 | ||
13862 | if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then : | |
13863 | ||
13864 | as_fn_error $? " | |
13865 | *** Please make sure the kernel devel package for your distribution | |
13866 | *** is installed. If you are building with a custom kernel, make sure the | |
13867 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
13868 | *** option refers to the location of the kernel source." "$LINENO" 5 | |
13869 | ||
13870 | fi | |
13871 | ||
13872 | else | |
13873 | ||
13874 | LINUX_SYMBOLS=NONE | |
13875 | ||
13876 | fi | |
13877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5 | |
13878 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
13879 | ||
13880 | ||
13881 | ||
13882 | ||
13883 | ||
13884 | # Check whether --with-spl was given. | |
13885 | if test "${with_spl+set}" = set; then : | |
13886 | withval=$with_spl; splsrc="$withval" | |
13887 | fi | |
13888 | ||
13889 | ||
13890 | ||
13891 | # Check whether --with-spl-obj was given. | |
13892 | if test "${with_spl_obj+set}" = set; then : | |
13893 | withval=$with_spl_obj; splbuild="$withval" | |
13894 | fi | |
13895 | ||
13896 | ||
13897 | ||
13898 | # Check whether --with-spl-timeout was given. | |
13899 | if test "${with_spl_timeout+set}" = set; then : | |
13900 | withval=$with_spl_timeout; timeout="$withval" | |
13901 | else | |
13902 | timeout=0 | |
13903 | fi | |
13904 | ||
13905 | ||
13906 | splsrc0="/var/lib/dkms/spl/${VERSION}/build" | |
13907 | splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}" | |
13908 | splsrc2="/usr/local/src/spl-${VERSION}" | |
13909 | splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}" | |
13910 | splsrc4="/usr/src/spl-${VERSION}" | |
13911 | splsrc5="../spl/" | |
13912 | splsrc6="$LINUX" | |
13913 | ||
13914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5 | |
13915 | $as_echo_n "checking spl source directory... " >&6; } | |
13916 | if test -z "${splsrc}"; then : | |
13917 | ||
13918 | if test -e "${splsrc0}/spl.release.in"; then : | |
13919 | ||
13920 | splsrc=${splsrc0} | |
13921 | ||
13922 | elif test -e "${splsrc1}/spl.release.in"; then : | |
13923 | ||
13924 | splsrc=${splsrc1} | |
13925 | ||
13926 | elif test -e "${splsrc2}/spl.release.in"; then : | |
13927 | ||
13928 | splsrc=${splsrc2} | |
13929 | ||
13930 | elif test -e "${splsrc3}/spl.release.in"; then : | |
13931 | ||
13932 | splsrc=$(readlink -f "${splsrc3}") | |
13933 | ||
13934 | elif test -e "${splsrc4}/spl.release.in" ; then : | |
13935 | ||
13936 | splsrc=${splsrc4} | |
13937 | ||
13938 | elif test -e "${splsrc5}/spl.release.in"; then : | |
13939 | ||
13940 | splsrc=$(readlink -f "${splsrc5}") | |
13941 | ||
13942 | elif test -e "${splsrc6}/spl.release.in" ; then : | |
13943 | ||
13944 | splsrc=${splsrc6} | |
13945 | ||
13946 | else | |
13947 | ||
13948 | splsrc="Not found" | |
13949 | ||
13950 | fi | |
13951 | ||
13952 | else | |
13953 | ||
13954 | if test "$splsrc" = "NONE"; then : | |
13955 | ||
13956 | splbuild=NONE | |
13957 | splsrcver=NONE | |
13958 | ||
13959 | fi | |
13960 | ||
13961 | fi | |
13962 | ||
13963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5 | |
13964 | $as_echo "$splsrc" >&6; } | |
13965 | if test ! -e "$splsrc/spl.release.in"; then : | |
13966 | ||
13967 | as_fn_error $? " | |
13968 | *** Please make sure the kmod spl devel package for your distribution | |
13969 | *** is installed then try again. If that fails you can specify the | |
13970 | *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5 | |
13971 | ||
13972 | fi | |
13973 | ||
13974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5 | |
13975 | $as_echo_n "checking spl build directory... " >&6; } | |
13976 | while true; do | |
13977 | if test -z "$splbuild"; then : | |
13978 | ||
13979 | if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then : | |
13980 | ||
13981 | splbuild="${splsrc}/${LINUX_VERSION}" | |
13982 | ||
13983 | elif test -e "${splsrc}/spl_config.h" ; then : | |
13984 | ||
13985 | splbuild="${splsrc}" | |
13986 | ||
13987 | elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then : | |
13988 | ||
13989 | splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,') | |
13990 | ||
13991 | else | |
13992 | ||
13993 | splbuild="Not found" | |
13994 | ||
13995 | fi | |
13996 | ||
13997 | fi | |
13998 | if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then : | |
13999 | ||
14000 | break; | |
14001 | ||
14002 | else | |
14003 | ||
14004 | sleep 1 | |
14005 | timeout=$((timeout-1)) | |
14006 | ||
14007 | fi | |
14008 | done | |
14009 | ||
14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5 | |
14011 | $as_echo "$splbuild" >&6; } | |
14012 | if ! test -e "$splbuild/spl_config.h"; then : | |
14013 | ||
14014 | as_fn_error $? " | |
14015 | *** Please make sure the kmod spl devel <kernel> package for your | |
14016 | *** distribution is installed then try again. If that fails you | |
14017 | *** can specify the location of the spl objects with the | |
14018 | *** '--with-spl-obj=PATH' option." "$LINENO" 5 | |
14019 | ||
14020 | fi | |
14021 | ||
14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5 | |
14023 | $as_echo_n "checking spl source version... " >&6; } | |
14024 | if test -r $splbuild/spl_config.h && | |
14025 | fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then : | |
14026 | ||
14027 | ||
14028 | splsrcver=`(echo "#include <spl_config.h>"; | |
14029 | echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") | | |
14030 | cpp -I $splbuild | | |
14031 | grep "^splsrcver=" | tr -d \" | cut -d= -f2` | |
14032 | ||
14033 | fi | |
14034 | ||
14035 | if test -z "$splsrcver"; then : | |
14036 | ||
14037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
14038 | $as_echo "Not found" >&6; } | |
14039 | as_fn_error $? " | |
14040 | *** Cannot determine the version of the spl source. | |
14041 | *** Please prepare the spl source before running this script" "$LINENO" 5 | |
14042 | ||
14043 | fi | |
14044 | ||
14045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5 | |
14046 | $as_echo "$splsrcver" >&6; } | |
14047 | ||
14048 | SPL=${splsrc} | |
14049 | SPL_OBJ=${splbuild} | |
14050 | SPL_VERSION=${splsrcver} | |
14051 | ||
14052 | ||
14053 | ||
14054 | ||
14055 | ||
14056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5 | |
14057 | $as_echo_n "checking spl file name for module symbols... " >&6; } | |
14058 | SPL_SYMBOLS=NONE | |
14059 | ||
14060 | while true; do | |
14061 | if test -r $SPL_OBJ/Module.symvers; then : | |
14062 | ||
14063 | SPL_SYMBOLS=Module.symvers | |
14064 | ||
14065 | elif test -r $SPL_OBJ/Modules.symvers; then : | |
14066 | ||
14067 | SPL_SYMBOLS=Modules.symvers | |
14068 | ||
14069 | elif test -r $SPL_OBJ/module/Module.symvers; then : | |
14070 | ||
14071 | SPL_SYMBOLS=Module.symvers | |
14072 | ||
14073 | elif test -r $SPL_OBJ/module/Modules.symvers; then : | |
14074 | ||
14075 | SPL_SYMBOLS=Modules.symvers | |
14076 | ||
14077 | fi | |
14078 | ||
14079 | if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then : | |
14080 | ||
14081 | break; | |
14082 | ||
14083 | else | |
14084 | ||
14085 | sleep 1 | |
14086 | timeout=$((timeout-1)) | |
14087 | ||
14088 | fi | |
14089 | done | |
14090 | ||
14091 | if test "$SPL_SYMBOLS" = NONE; then : | |
14092 | ||
14093 | SPL_SYMBOLS=$LINUX_SYMBOLS | |
14094 | ||
14095 | fi | |
14096 | ||
14097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5 | |
14098 | $as_echo "$SPL_SYMBOLS" >&6; } | |
14099 | ||
14100 | ||
14101 | ||
14102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5 | |
14103 | $as_echo_n "checking whether modules can be built... " >&6; } | |
14104 | ||
14105 | ||
14106 | cat confdefs.h - <<_ACEOF >conftest.c | |
14107 | ||
14108 | ||
14109 | int | |
14110 | main (void) | |
14111 | { | |
14112 | ||
14113 | ; | |
14114 | return 0; | |
14115 | } | |
14116 | ||
14117 | _ACEOF | |
14118 | ||
14119 | ||
14120 | ||
14121 | cat - <<_ACEOF >conftest.h | |
14122 | ||
14123 | _ACEOF | |
14124 | ||
14125 | ||
14126 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14127 | echo "obj-m := conftest.o" >build/Makefile | |
14128 | modpost_flag='' | |
14129 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14130 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14131 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14132 | (eval $ac_try) 2>&5 | |
14133 | ac_status=$? | |
14134 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14135 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
14141 | ||
14142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14143 | $as_echo "yes" >&6; } | |
14144 | ||
14145 | else | |
14146 | $as_echo "$as_me: failed program was:" >&5 | |
14147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14148 | ||
14149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14150 | $as_echo "no" >&6; } | |
14151 | if test "x$enable_linux_builtin" != xyes; then | |
14152 | as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5 | |
14153 | else | |
14154 | as_fn_error $? " | |
14155 | *** Unable to build an empty module. | |
14156 | *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5 | |
14157 | fi | |
14158 | ||
14159 | ||
14160 | ||
14161 | fi | |
14162 | rm -Rf build | |
14163 | ||
14164 | ||
14165 | ||
14166 | ||
14167 | if test "x$cross_compiling" != xyes; then : | |
14168 | ||
14169 | if test "$cross_compiling" = yes; then : | |
14170 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14171 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14172 | as_fn_error $? "cannot run test program while cross compiling | |
14173 | See \`config.log' for more details" "$LINENO" 5; } | |
14174 | else | |
14175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14176 | /* end confdefs.h. */ | |
14177 | ||
14178 | ||
14179 | #include "$LINUX/include/linux/license.h" | |
14180 | ||
14181 | int | |
14182 | main () | |
14183 | { | |
14184 | ||
14185 | return !license_is_gpl_compatible("$ZFS_META_LICENSE"); | |
14186 | ||
14187 | ; | |
14188 | return 0; | |
14189 | } | |
14190 | ||
14191 | _ACEOF | |
14192 | if ac_fn_c_try_run "$LINENO"; then : | |
14193 | ||
14194 | ||
14195 | $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h | |
14196 | ||
14197 | ||
14198 | fi | |
14199 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14200 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14201 | fi | |
14202 | ||
14203 | ||
14204 | fi | |
14205 | ||
14206 | ||
14207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5 | |
14208 | $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; } | |
14209 | ||
14210 | ||
14211 | cat confdefs.h - <<_ACEOF >conftest.c | |
14212 | ||
14213 | ||
14214 | #include <linux/module.h> | |
14215 | ||
14216 | int | |
14217 | main (void) | |
14218 | { | |
14219 | ||
14220 | #if (THREAD_SIZE < 16384) | |
14221 | #error "THREAD_SIZE is less than 16K" | |
14222 | #endif | |
14223 | ||
14224 | ; | |
14225 | return 0; | |
14226 | } | |
14227 | ||
14228 | _ACEOF | |
14229 | ||
14230 | ||
14231 | ||
14232 | cat - <<_ACEOF >conftest.h | |
14233 | ||
14234 | _ACEOF | |
14235 | ||
14236 | ||
14237 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14238 | echo "obj-m := conftest.o" >build/Makefile | |
14239 | modpost_flag='' | |
14240 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14241 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14242 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14243 | (eval $ac_try) 2>&5 | |
14244 | ac_status=$? | |
14245 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14246 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14247 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14248 | (eval $ac_try) 2>&5 | |
14249 | ac_status=$? | |
14250 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14251 | test $ac_status = 0; }; }; then : | |
14252 | ||
14253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14254 | $as_echo "yes" >&6; } | |
14255 | ||
14256 | $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h | |
14257 | ||
14258 | ||
14259 | else | |
14260 | $as_echo "$as_me: failed program was:" >&5 | |
14261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14262 | ||
14263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14264 | $as_echo "no" >&6; } | |
14265 | ||
14266 | ||
14267 | ||
14268 | fi | |
14269 | rm -Rf build | |
14270 | ||
14271 | ||
14272 | ||
14273 | ||
14274 | ||
14275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5 | |
14276 | $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; } | |
14277 | ||
14278 | ||
14279 | cat confdefs.h - <<_ACEOF >conftest.c | |
14280 | ||
14281 | ||
14282 | #include <linux/module.h> | |
14283 | ||
14284 | int | |
14285 | main (void) | |
14286 | { | |
14287 | ||
14288 | #ifndef CONFIG_DEBUG_LOCK_ALLOC | |
14289 | #error CONFIG_DEBUG_LOCK_ALLOC not #defined | |
14290 | #endif | |
14291 | ||
14292 | ; | |
14293 | return 0; | |
14294 | } | |
14295 | ||
14296 | _ACEOF | |
14297 | ||
14298 | ||
14299 | ||
14300 | cat - <<_ACEOF >conftest.h | |
14301 | ||
14302 | _ACEOF | |
14303 | ||
14304 | ||
14305 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14306 | echo "obj-m := conftest.o" >build/Makefile | |
14307 | modpost_flag='' | |
14308 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14309 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14310 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14311 | (eval $ac_try) 2>&5 | |
14312 | ac_status=$? | |
14313 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14314 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14315 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14316 | (eval $ac_try) 2>&5 | |
14317 | ac_status=$? | |
14318 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14319 | test $ac_status = 0; }; }; then : | |
14320 | ||
14321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14322 | $as_echo "yes" >&6; } | |
14323 | ||
14324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5 | |
14325 | $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; } | |
14326 | tmp_flags="$EXTRA_KCFLAGS" | |
14327 | ||
14328 | ||
14329 | cat confdefs.h - <<_ACEOF >conftest.c | |
14330 | ||
14331 | ||
14332 | #include <linux/module.h> | |
14333 | #include <linux/mutex.h> | |
14334 | ||
14335 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
14336 | ||
14337 | int | |
14338 | main (void) | |
14339 | { | |
14340 | ||
14341 | struct mutex lock; | |
14342 | ||
14343 | mutex_init(&lock); | |
14344 | mutex_lock(&lock); | |
14345 | mutex_unlock(&lock); | |
14346 | ||
14347 | ; | |
14348 | return 0; | |
14349 | } | |
14350 | ||
14351 | _ACEOF | |
14352 | ||
14353 | ||
14354 | ||
14355 | cat - <<_ACEOF >conftest.h | |
14356 | ||
14357 | _ACEOF | |
14358 | ||
14359 | ||
14360 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14361 | echo "obj-m := conftest.o" >build/Makefile | |
14362 | modpost_flag='' | |
14363 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14364 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14365 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14366 | (eval $ac_try) 2>&5 | |
14367 | ac_status=$? | |
14368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14369 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14370 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14371 | (eval $ac_try) 2>&5 | |
14372 | ac_status=$? | |
14373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14374 | test $ac_status = 0; }; }; then : | |
14375 | ||
14376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14377 | $as_echo "no" >&6; } | |
14378 | ||
14379 | else | |
14380 | $as_echo "$as_me: failed program was:" >&5 | |
14381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14382 | ||
14383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14384 | $as_echo "yes" >&6; } | |
14385 | as_fn_error $? " | |
14386 | *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible | |
14387 | *** with the CDDL license and will prevent the module linking stage | |
14388 | *** from succeeding. You must rebuild your kernel without this | |
14389 | *** option enabled." "$LINENO" 5 | |
14390 | ||
14391 | ||
14392 | ||
14393 | fi | |
14394 | rm -Rf build | |
14395 | ||
14396 | ||
14397 | EXTRA_KCFLAGS="$tmp_flags" | |
14398 | ||
14399 | ||
14400 | else | |
14401 | $as_echo "$as_me: failed program was:" >&5 | |
14402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14403 | ||
14404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14405 | $as_echo "no" >&6; } | |
14406 | ||
14407 | ||
14408 | ||
14409 | ||
14410 | fi | |
14411 | rm -Rf build | |
14412 | ||
14413 | ||
14414 | ||
14415 | ||
14416 | ||
14417 | ||
14418 | tmp_flags="$EXTRA_KCFLAGS" | |
14419 | EXTRA_KCFLAGS="-I\$(src)" | |
14420 | ||
14421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5 | |
14422 | $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; } | |
14423 | ||
14424 | ||
14425 | cat confdefs.h - <<_ACEOF >conftest.c | |
14426 | ||
14427 | ||
14428 | #include <linux/module.h> | |
14429 | MODULE_LICENSE(ZFS_META_LICENSE); | |
14430 | ||
14431 | #define CREATE_TRACE_POINTS | |
14432 | #include "conftest.h" | |
14433 | ||
14434 | int | |
14435 | main (void) | |
14436 | { | |
14437 | ||
14438 | trace_zfs_autoconf_event_one(1UL); | |
14439 | trace_zfs_autoconf_event_two(2UL); | |
14440 | ||
14441 | ; | |
14442 | return 0; | |
14443 | } | |
14444 | ||
14445 | _ACEOF | |
14446 | ||
14447 | ||
14448 | ||
14449 | cat - <<_ACEOF >conftest.h | |
14450 | ||
14451 | #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ) | |
14452 | #define _CONFTEST_H | |
14453 | ||
14454 | #undef TRACE_SYSTEM | |
14455 | #define TRACE_SYSTEM zfs | |
14456 | #include <linux/tracepoint.h> | |
14457 | ||
14458 | DECLARE_EVENT_CLASS(zfs_autoconf_event_class, | |
14459 | TP_PROTO(unsigned long i), | |
14460 | TP_ARGS(i), | |
14461 | TP_STRUCT__entry( | |
14462 | __field(unsigned long, i) | |
14463 | ), | |
14464 | TP_fast_assign( | |
14465 | __entry->i = i; | |
14466 | ), | |
14467 | TP_printk("i = %lu", __entry->i) | |
14468 | ); | |
14469 | ||
14470 | #define DEFINE_AUTOCONF_EVENT(name) \ | |
14471 | DEFINE_EVENT(zfs_autoconf_event_class, name, \ | |
14472 | TP_PROTO(unsigned long i), \ | |
14473 | TP_ARGS(i)) | |
14474 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one); | |
14475 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two); | |
14476 | ||
14477 | #endif /* _CONFTEST_H */ | |
14478 | ||
14479 | #undef TRACE_INCLUDE_PATH | |
14480 | #define TRACE_INCLUDE_PATH . | |
14481 | #define TRACE_INCLUDE_FILE conftest | |
14482 | #include <trace/define_trace.h> | |
14483 | ||
14484 | _ACEOF | |
14485 | ||
14486 | ||
14487 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14488 | echo "obj-m := conftest.o" >build/Makefile | |
14489 | modpost_flag='' | |
14490 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14491 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14492 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14493 | (eval $ac_try) 2>&5 | |
14494 | ac_status=$? | |
14495 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14496 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14497 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14498 | (eval $ac_try) 2>&5 | |
14499 | ac_status=$? | |
14500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14501 | test $ac_status = 0; }; }; then : | |
14502 | ||
14503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14504 | $as_echo "yes" >&6; } | |
14505 | ||
14506 | $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h | |
14507 | ||
14508 | ||
14509 | else | |
14510 | $as_echo "$as_me: failed program was:" >&5 | |
14511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14512 | ||
14513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14514 | $as_echo "no" >&6; } | |
14515 | ||
14516 | ||
14517 | ||
14518 | fi | |
14519 | rm -Rf build | |
14520 | ||
14521 | ||
14522 | EXTRA_KCFLAGS="$tmp_flags" | |
14523 | ||
14524 | ||
14525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5 | |
14526 | $as_echo_n "checking whether current->bio_tail exists... " >&6; } | |
14527 | ||
14528 | ||
14529 | cat confdefs.h - <<_ACEOF >conftest.c | |
14530 | ||
14531 | ||
14532 | #include <linux/sched.h> | |
14533 | ||
14534 | int | |
14535 | main (void) | |
14536 | { | |
14537 | ||
14538 | current->bio_tail = (struct bio **) NULL; | |
14539 | ||
14540 | ; | |
14541 | return 0; | |
14542 | } | |
14543 | ||
14544 | _ACEOF | |
14545 | ||
14546 | ||
14547 | ||
14548 | cat - <<_ACEOF >conftest.h | |
14549 | ||
14550 | _ACEOF | |
14551 | ||
14552 | ||
14553 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14554 | echo "obj-m := conftest.o" >build/Makefile | |
14555 | modpost_flag='' | |
14556 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14557 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14558 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14559 | (eval $ac_try) 2>&5 | |
14560 | ac_status=$? | |
14561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14562 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14563 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14564 | (eval $ac_try) 2>&5 | |
14565 | ac_status=$? | |
14566 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14567 | test $ac_status = 0; }; }; then : | |
14568 | ||
14569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14570 | $as_echo "yes" >&6; } | |
14571 | ||
14572 | $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h | |
14573 | ||
14574 | ||
14575 | else | |
14576 | $as_echo "$as_me: failed program was:" >&5 | |
14577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14578 | ||
14579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14580 | $as_echo "no" >&6; } | |
14581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5 | |
14582 | $as_echo_n "checking whether current->bio_list exists... " >&6; } | |
14583 | ||
14584 | ||
14585 | cat confdefs.h - <<_ACEOF >conftest.c | |
14586 | ||
14587 | ||
14588 | #include <linux/sched.h> | |
14589 | ||
14590 | int | |
14591 | main (void) | |
14592 | { | |
14593 | ||
14594 | current->bio_list = (struct bio_list *) NULL; | |
14595 | ||
14596 | ; | |
14597 | return 0; | |
14598 | } | |
14599 | ||
14600 | _ACEOF | |
14601 | ||
14602 | ||
14603 | ||
14604 | cat - <<_ACEOF >conftest.h | |
14605 | ||
14606 | _ACEOF | |
14607 | ||
14608 | ||
14609 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14610 | echo "obj-m := conftest.o" >build/Makefile | |
14611 | modpost_flag='' | |
14612 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14613 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14614 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14615 | (eval $ac_try) 2>&5 | |
14616 | ac_status=$? | |
14617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14618 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14619 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14620 | (eval $ac_try) 2>&5 | |
14621 | ac_status=$? | |
14622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14623 | test $ac_status = 0; }; }; then : | |
14624 | ||
14625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14626 | $as_echo "yes" >&6; } | |
14627 | ||
14628 | $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h | |
14629 | ||
14630 | ||
14631 | else | |
14632 | $as_echo "$as_me: failed program was:" >&5 | |
14633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14634 | ||
14635 | as_fn_error $? "no - Please file a bug report at | |
14636 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
14637 | ||
14638 | ||
14639 | ||
14640 | fi | |
14641 | rm -Rf build | |
14642 | ||
14643 | ||
14644 | ||
14645 | ||
14646 | ||
14647 | fi | |
14648 | rm -Rf build | |
14649 | ||
14650 | ||
14651 | ||
14652 | ||
14653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5 | |
14654 | $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; } | |
14655 | ||
14656 | ||
14657 | cat confdefs.h - <<_ACEOF >conftest.c | |
14658 | ||
14659 | ||
14660 | #include <linux/bio.h> | |
14661 | ||
14662 | int | |
14663 | main (void) | |
14664 | { | |
14665 | ||
14666 | blk_qc_t blk_qc; | |
14667 | struct bio *bio = NULL; | |
14668 | blk_qc = submit_bio(bio); | |
14669 | ||
14670 | ; | |
14671 | return 0; | |
14672 | } | |
14673 | ||
14674 | _ACEOF | |
14675 | ||
14676 | ||
14677 | ||
14678 | cat - <<_ACEOF >conftest.h | |
14679 | ||
14680 | _ACEOF | |
14681 | ||
14682 | ||
14683 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14684 | echo "obj-m := conftest.o" >build/Makefile | |
14685 | modpost_flag='' | |
14686 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14687 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14688 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14689 | (eval $ac_try) 2>&5 | |
14690 | ac_status=$? | |
14691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14692 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14693 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14694 | (eval $ac_try) 2>&5 | |
14695 | ac_status=$? | |
14696 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14697 | test $ac_status = 0; }; }; then : | |
14698 | ||
14699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14700 | $as_echo "yes" >&6; } | |
14701 | ||
14702 | $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h | |
14703 | ||
14704 | ||
14705 | else | |
14706 | $as_echo "$as_me: failed program was:" >&5 | |
14707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14708 | ||
14709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14710 | $as_echo "no" >&6; } | |
14711 | ||
14712 | ||
14713 | ||
14714 | fi | |
14715 | rm -Rf build | |
14716 | ||
14717 | ||
14718 | ||
14719 | ||
14720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5 | |
14721 | $as_echo_n "checking block device operation prototypes... " >&6; } | |
14722 | tmp_flags="$EXTRA_KCFLAGS" | |
14723 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
14724 | ||
14725 | ||
14726 | cat confdefs.h - <<_ACEOF >conftest.c | |
14727 | ||
14728 | ||
14729 | #include <linux/blkdev.h> | |
14730 | ||
14731 | int blk_open(struct block_device *bdev, fmode_t mode) | |
14732 | { return 0; } | |
14733 | int blk_ioctl(struct block_device *bdev, fmode_t mode, | |
14734 | unsigned x, unsigned long y) { return 0; } | |
14735 | int blk_compat_ioctl(struct block_device * bdev, fmode_t mode, | |
14736 | unsigned x, unsigned long y) { return 0; } | |
14737 | ||
14738 | static const struct block_device_operations | |
14739 | bops __attribute__ ((unused)) = { | |
14740 | .open = blk_open, | |
14741 | .release = NULL, | |
14742 | .ioctl = blk_ioctl, | |
14743 | .compat_ioctl = blk_compat_ioctl, | |
14744 | }; | |
14745 | ||
14746 | int | |
14747 | main (void) | |
14748 | { | |
14749 | ||
14750 | ||
14751 | ; | |
14752 | return 0; | |
14753 | } | |
14754 | ||
14755 | _ACEOF | |
14756 | ||
14757 | ||
14758 | ||
14759 | cat - <<_ACEOF >conftest.h | |
14760 | ||
14761 | _ACEOF | |
14762 | ||
14763 | ||
14764 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14765 | echo "obj-m := conftest.o" >build/Makefile | |
14766 | modpost_flag='' | |
14767 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14768 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14769 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14770 | (eval $ac_try) 2>&5 | |
14771 | ac_status=$? | |
14772 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14773 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14774 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14775 | (eval $ac_try) 2>&5 | |
14776 | ac_status=$? | |
14777 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14778 | test $ac_status = 0; }; }; then : | |
14779 | ||
14780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5 | |
14781 | $as_echo "struct block_device" >&6; } | |
14782 | ||
14783 | $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h | |
14784 | ||
14785 | ||
14786 | else | |
14787 | $as_echo "$as_me: failed program was:" >&5 | |
14788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14789 | ||
14790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5 | |
14791 | $as_echo "struct inode" >&6; } | |
14792 | ||
14793 | ||
14794 | ||
14795 | fi | |
14796 | rm -Rf build | |
14797 | ||
14798 | ||
14799 | EXTRA_KCFLAGS="$tmp_flags" | |
14800 | ||
14801 | ||
14802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5 | |
14803 | $as_echo_n "checking whether block_device_operations.release is void... " >&6; } | |
14804 | tmp_flags="$EXTRA_KCFLAGS" | |
14805 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
14806 | ||
14807 | ||
14808 | cat confdefs.h - <<_ACEOF >conftest.c | |
14809 | ||
14810 | ||
14811 | #include <linux/blkdev.h> | |
14812 | ||
14813 | void blk_release(struct gendisk *g, fmode_t mode) { return; } | |
14814 | ||
14815 | static const struct block_device_operations | |
14816 | bops __attribute__ ((unused)) = { | |
14817 | .open = NULL, | |
14818 | .release = blk_release, | |
14819 | .ioctl = NULL, | |
14820 | .compat_ioctl = NULL, | |
14821 | }; | |
14822 | ||
14823 | int | |
14824 | main (void) | |
14825 | { | |
14826 | ||
14827 | ||
14828 | ; | |
14829 | return 0; | |
14830 | } | |
14831 | ||
14832 | _ACEOF | |
14833 | ||
14834 | ||
14835 | ||
14836 | cat - <<_ACEOF >conftest.h | |
14837 | ||
14838 | _ACEOF | |
14839 | ||
14840 | ||
14841 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14842 | echo "obj-m := conftest.o" >build/Makefile | |
14843 | modpost_flag='' | |
14844 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14845 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14846 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14847 | (eval $ac_try) 2>&5 | |
14848 | ac_status=$? | |
14849 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14850 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14851 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14852 | (eval $ac_try) 2>&5 | |
14853 | ac_status=$? | |
14854 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14855 | test $ac_status = 0; }; }; then : | |
14856 | ||
14857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5 | |
14858 | $as_echo "void" >&6; } | |
14859 | ||
14860 | $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h | |
14861 | ||
14862 | ||
14863 | else | |
14864 | $as_echo "$as_me: failed program was:" >&5 | |
14865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14866 | ||
14867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 | |
14868 | $as_echo "int" >&6; } | |
14869 | ||
14870 | ||
14871 | ||
14872 | fi | |
14873 | rm -Rf build | |
14874 | ||
14875 | ||
14876 | EXTRA_KCFLAGS="$tmp_flags" | |
14877 | ||
14878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5 | |
14879 | $as_echo_n "checking whether kernel defines fmode_t... " >&6; } | |
14880 | ||
14881 | ||
14882 | cat confdefs.h - <<_ACEOF >conftest.c | |
14883 | ||
14884 | ||
14885 | #include <linux/types.h> | |
14886 | ||
14887 | int | |
14888 | main (void) | |
14889 | { | |
14890 | ||
14891 | fmode_t *ptr __attribute__ ((unused)); | |
14892 | ||
14893 | ; | |
14894 | return 0; | |
14895 | } | |
14896 | ||
14897 | _ACEOF | |
14898 | ||
14899 | ||
14900 | ||
14901 | cat - <<_ACEOF >conftest.h | |
14902 | ||
14903 | _ACEOF | |
14904 | ||
14905 | ||
14906 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14907 | echo "obj-m := conftest.o" >build/Makefile | |
14908 | modpost_flag='' | |
14909 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14910 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14911 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14912 | (eval $ac_try) 2>&5 | |
14913 | ac_status=$? | |
14914 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14915 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14916 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14917 | (eval $ac_try) 2>&5 | |
14918 | ac_status=$? | |
14919 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14920 | test $ac_status = 0; }; }; then : | |
14921 | ||
14922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14923 | $as_echo "yes" >&6; } | |
14924 | ||
14925 | $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h | |
14926 | ||
14927 | ||
14928 | else | |
14929 | $as_echo "$as_me: failed program was:" >&5 | |
14930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14931 | ||
14932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14933 | $as_echo "no" >&6; } | |
14934 | ||
14935 | ||
14936 | ||
14937 | fi | |
14938 | rm -Rf build | |
14939 | ||
14940 | ||
14941 | ||
14942 | ||
14943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5 | |
14944 | $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; } | |
14945 | ||
14946 | ||
14947 | cat confdefs.h - <<_ACEOF >conftest.c | |
14948 | ||
14949 | ||
14950 | #include <linux/kobject.h> | |
14951 | ||
14952 | int | |
14953 | main (void) | |
14954 | { | |
14955 | ||
14956 | int val __attribute__ ((unused)); | |
14957 | val = KOBJ_NAME_LEN; | |
14958 | ||
14959 | ; | |
14960 | return 0; | |
14961 | } | |
14962 | ||
14963 | _ACEOF | |
14964 | ||
14965 | ||
14966 | ||
14967 | cat - <<_ACEOF >conftest.h | |
14968 | ||
14969 | _ACEOF | |
14970 | ||
14971 | ||
14972 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14973 | echo "obj-m := conftest.o" >build/Makefile | |
14974 | modpost_flag='' | |
14975 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14976 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14977 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14978 | (eval $ac_try) 2>&5 | |
14979 | ac_status=$? | |
14980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14981 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14982 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14983 | (eval $ac_try) 2>&5 | |
14984 | ac_status=$? | |
14985 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14986 | test $ac_status = 0; }; }; then : | |
14987 | ||
14988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14989 | $as_echo "yes" >&6; } | |
14990 | ||
14991 | $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h | |
14992 | ||
14993 | ||
14994 | else | |
14995 | $as_echo "$as_me: failed program was:" >&5 | |
14996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14997 | ||
14998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14999 | $as_echo "no" >&6; } | |
15000 | ||
15001 | ||
15002 | ||
15003 | fi | |
15004 | rm -Rf build | |
15005 | ||
15006 | ||
15007 | ||
15008 | ||
15009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5 | |
15010 | $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; } | |
15011 | ||
15012 | ||
15013 | cat confdefs.h - <<_ACEOF >conftest.c | |
15014 | ||
15015 | ||
15016 | #include <linux/fs.h> | |
15017 | ||
15018 | int | |
15019 | main (void) | |
15020 | { | |
15021 | ||
15022 | struct block_device *bdev = NULL; | |
15023 | (void) blkdev_get(bdev, 0, NULL); | |
15024 | ||
15025 | ; | |
15026 | return 0; | |
15027 | } | |
15028 | ||
15029 | _ACEOF | |
15030 | ||
15031 | ||
15032 | ||
15033 | cat - <<_ACEOF >conftest.h | |
15034 | ||
15035 | _ACEOF | |
15036 | ||
15037 | ||
15038 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15039 | echo "obj-m := conftest.o" >build/Makefile | |
15040 | modpost_flag='' | |
15041 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15042 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15043 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15044 | (eval $ac_try) 2>&5 | |
15045 | ac_status=$? | |
15046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15047 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15048 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15049 | (eval $ac_try) 2>&5 | |
15050 | ac_status=$? | |
15051 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15052 | test $ac_status = 0; }; }; then : | |
15053 | ||
15054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15055 | $as_echo "yes" >&6; } | |
15056 | ||
15057 | $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h | |
15058 | ||
15059 | ||
15060 | else | |
15061 | $as_echo "$as_me: failed program was:" >&5 | |
15062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15063 | ||
15064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15065 | $as_echo "no" >&6; } | |
15066 | ||
15067 | ||
15068 | ||
15069 | fi | |
15070 | rm -Rf build | |
15071 | ||
15072 | ||
15073 | ||
15074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5 | |
15075 | $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; } | |
15076 | ||
15077 | ||
15078 | ||
15079 | cat confdefs.h - <<_ACEOF >conftest.c | |
15080 | ||
15081 | ||
15082 | #include <linux/fs.h> | |
15083 | ||
15084 | int | |
15085 | main (void) | |
15086 | { | |
15087 | ||
15088 | blkdev_get_by_path(NULL, 0, NULL); | |
15089 | ||
15090 | ; | |
15091 | return 0; | |
15092 | } | |
15093 | ||
15094 | _ACEOF | |
15095 | ||
15096 | ||
15097 | ||
15098 | cat - <<_ACEOF >conftest.h | |
15099 | ||
15100 | _ACEOF | |
15101 | ||
15102 | ||
15103 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15104 | echo "obj-m := conftest.o" >build/Makefile | |
15105 | modpost_flag='' | |
15106 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15107 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15108 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15109 | (eval $ac_try) 2>&5 | |
15110 | ac_status=$? | |
15111 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15112 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15113 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15114 | (eval $ac_try) 2>&5 | |
15115 | ac_status=$? | |
15116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15117 | test $ac_status = 0; }; }; then : | |
15118 | rc=0 | |
15119 | else | |
15120 | $as_echo "$as_me: failed program was:" >&5 | |
15121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15122 | rc=1 | |
15123 | ||
15124 | ||
15125 | fi | |
15126 | rm -Rf build | |
15127 | ||
15128 | ||
15129 | if test $rc -ne 0; then : | |
15130 | ||
15131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15132 | $as_echo "no" >&6; } | |
15133 | ||
15134 | else | |
15135 | if test "x$enable_linux_builtin" != xyes; then | |
15136 | ||
15137 | grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \ | |
15138 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15139 | rc=$? | |
15140 | if test $rc -ne 0; then | |
15141 | export=0 | |
15142 | for file in fs/block_dev.c; do | |
15143 | grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \ | |
15144 | "$LINUX/$file" 2>/dev/null | |
15145 | rc=$? | |
15146 | if test $rc -eq 0; then | |
15147 | export=1 | |
15148 | break; | |
15149 | fi | |
15150 | done | |
15151 | if test $export -eq 0; then : | |
15152 | rc=1 | |
15153 | else : | |
15154 | rc=0 | |
15155 | fi | |
15156 | else : | |
15157 | rc=0 | |
15158 | fi | |
15159 | ||
15160 | fi | |
15161 | if test $rc -ne 0; then : | |
15162 | ||
15163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15164 | $as_echo "no" >&6; } | |
15165 | ||
15166 | else : | |
15167 | ||
15168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15169 | $as_echo "yes" >&6; } | |
15170 | ||
15171 | $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h | |
15172 | ||
15173 | ||
15174 | fi | |
15175 | fi | |
15176 | ||
15177 | ||
15178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5 | |
15179 | $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; } | |
15180 | ||
15181 | ||
15182 | ||
15183 | cat confdefs.h - <<_ACEOF >conftest.c | |
15184 | ||
15185 | ||
15186 | #include <linux/fs.h> | |
15187 | ||
15188 | int | |
15189 | main (void) | |
15190 | { | |
15191 | ||
15192 | open_bdev_exclusive(NULL, 0, NULL); | |
15193 | ||
15194 | ; | |
15195 | return 0; | |
15196 | } | |
15197 | ||
15198 | _ACEOF | |
15199 | ||
15200 | ||
15201 | ||
15202 | cat - <<_ACEOF >conftest.h | |
15203 | ||
15204 | _ACEOF | |
15205 | ||
15206 | ||
15207 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15208 | echo "obj-m := conftest.o" >build/Makefile | |
15209 | modpost_flag='' | |
15210 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15211 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15212 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15213 | (eval $ac_try) 2>&5 | |
15214 | ac_status=$? | |
15215 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15216 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15217 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15218 | (eval $ac_try) 2>&5 | |
15219 | ac_status=$? | |
15220 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15221 | test $ac_status = 0; }; }; then : | |
15222 | rc=0 | |
15223 | else | |
15224 | $as_echo "$as_me: failed program was:" >&5 | |
15225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15226 | rc=1 | |
15227 | ||
15228 | ||
15229 | fi | |
15230 | rm -Rf build | |
15231 | ||
15232 | ||
15233 | if test $rc -ne 0; then : | |
15234 | ||
15235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15236 | $as_echo "no" >&6; } | |
15237 | ||
15238 | else | |
15239 | if test "x$enable_linux_builtin" != xyes; then | |
15240 | ||
15241 | grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \ | |
15242 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15243 | rc=$? | |
15244 | if test $rc -ne 0; then | |
15245 | export=0 | |
15246 | for file in fs/block_dev.c; do | |
15247 | grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \ | |
15248 | "$LINUX/$file" 2>/dev/null | |
15249 | rc=$? | |
15250 | if test $rc -eq 0; then | |
15251 | export=1 | |
15252 | break; | |
15253 | fi | |
15254 | done | |
15255 | if test $export -eq 0; then : | |
15256 | rc=1 | |
15257 | else : | |
15258 | rc=0 | |
15259 | fi | |
15260 | else : | |
15261 | rc=0 | |
15262 | fi | |
15263 | ||
15264 | fi | |
15265 | if test $rc -ne 0; then : | |
15266 | ||
15267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15268 | $as_echo "no" >&6; } | |
15269 | ||
15270 | else : | |
15271 | ||
15272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15273 | $as_echo "yes" >&6; } | |
15274 | ||
15275 | $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h | |
15276 | ||
15277 | ||
15278 | fi | |
15279 | fi | |
15280 | ||
15281 | ||
15282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5 | |
15283 | $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; } | |
15284 | ||
15285 | ||
15286 | ||
15287 | cat confdefs.h - <<_ACEOF >conftest.c | |
15288 | ||
15289 | ||
15290 | #include <linux/fs.h> | |
15291 | ||
15292 | int | |
15293 | main (void) | |
15294 | { | |
15295 | ||
15296 | lookup_bdev(NULL); | |
15297 | ||
15298 | ; | |
15299 | return 0; | |
15300 | } | |
15301 | ||
15302 | _ACEOF | |
15303 | ||
15304 | ||
15305 | ||
15306 | cat - <<_ACEOF >conftest.h | |
15307 | ||
15308 | _ACEOF | |
15309 | ||
15310 | ||
15311 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15312 | echo "obj-m := conftest.o" >build/Makefile | |
15313 | modpost_flag='' | |
15314 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15315 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15316 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15317 | (eval $ac_try) 2>&5 | |
15318 | ac_status=$? | |
15319 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15320 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15321 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15322 | (eval $ac_try) 2>&5 | |
15323 | ac_status=$? | |
15324 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15325 | test $ac_status = 0; }; }; then : | |
15326 | rc=0 | |
15327 | else | |
15328 | $as_echo "$as_me: failed program was:" >&5 | |
15329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15330 | rc=1 | |
15331 | ||
15332 | ||
15333 | fi | |
15334 | rm -Rf build | |
15335 | ||
15336 | ||
15337 | if test $rc -ne 0; then : | |
15338 | ||
15339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15340 | $as_echo "no" >&6; } | |
15341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5 | |
15342 | $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; } | |
15343 | ||
15344 | ||
15345 | ||
15346 | cat confdefs.h - <<_ACEOF >conftest.c | |
15347 | ||
15348 | ||
15349 | #include <linux/fs.h> | |
15350 | ||
15351 | int | |
15352 | main (void) | |
15353 | { | |
15354 | ||
15355 | lookup_bdev(NULL, FMODE_READ); | |
15356 | ||
15357 | ; | |
15358 | return 0; | |
15359 | } | |
15360 | ||
15361 | _ACEOF | |
15362 | ||
15363 | ||
15364 | ||
15365 | cat - <<_ACEOF >conftest.h | |
15366 | ||
15367 | _ACEOF | |
15368 | ||
15369 | ||
15370 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15371 | echo "obj-m := conftest.o" >build/Makefile | |
15372 | modpost_flag='' | |
15373 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15374 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15375 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15376 | (eval $ac_try) 2>&5 | |
15377 | ac_status=$? | |
15378 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15379 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15380 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15381 | (eval $ac_try) 2>&5 | |
15382 | ac_status=$? | |
15383 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15384 | test $ac_status = 0; }; }; then : | |
15385 | rc=0 | |
15386 | else | |
15387 | $as_echo "$as_me: failed program was:" >&5 | |
15388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15389 | rc=1 | |
15390 | ||
15391 | ||
15392 | fi | |
15393 | rm -Rf build | |
15394 | ||
15395 | ||
15396 | if test $rc -ne 0; then : | |
15397 | ||
15398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15399 | $as_echo "no" >&6; } | |
15400 | ||
15401 | else | |
15402 | if test "x$enable_linux_builtin" != xyes; then | |
15403 | ||
15404 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
15405 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15406 | rc=$? | |
15407 | if test $rc -ne 0; then | |
15408 | export=0 | |
15409 | for file in fs/block_dev.c; do | |
15410 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
15411 | "$LINUX/$file" 2>/dev/null | |
15412 | rc=$? | |
15413 | if test $rc -eq 0; then | |
15414 | export=1 | |
15415 | break; | |
15416 | fi | |
15417 | done | |
15418 | if test $export -eq 0; then : | |
15419 | rc=1 | |
15420 | else : | |
15421 | rc=0 | |
15422 | fi | |
15423 | else : | |
15424 | rc=0 | |
15425 | fi | |
15426 | ||
15427 | fi | |
15428 | if test $rc -ne 0; then : | |
15429 | ||
15430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15431 | $as_echo "no" >&6; } | |
15432 | ||
15433 | else : | |
15434 | ||
15435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15436 | $as_echo "yes" >&6; } | |
15437 | ||
15438 | $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h | |
15439 | ||
15440 | ||
15441 | fi | |
15442 | fi | |
15443 | ||
15444 | ||
15445 | else | |
15446 | if test "x$enable_linux_builtin" != xyes; then | |
15447 | ||
15448 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
15449 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15450 | rc=$? | |
15451 | if test $rc -ne 0; then | |
15452 | export=0 | |
15453 | for file in fs/block_dev.c; do | |
15454 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
15455 | "$LINUX/$file" 2>/dev/null | |
15456 | rc=$? | |
15457 | if test $rc -eq 0; then | |
15458 | export=1 | |
15459 | break; | |
15460 | fi | |
15461 | done | |
15462 | if test $export -eq 0; then : | |
15463 | rc=1 | |
15464 | else : | |
15465 | rc=0 | |
15466 | fi | |
15467 | else : | |
15468 | rc=0 | |
15469 | fi | |
15470 | ||
15471 | fi | |
15472 | if test $rc -ne 0; then : | |
15473 | ||
15474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15475 | $as_echo "no" >&6; } | |
15476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5 | |
15477 | $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; } | |
15478 | ||
15479 | ||
15480 | ||
15481 | cat confdefs.h - <<_ACEOF >conftest.c | |
15482 | ||
15483 | ||
15484 | #include <linux/fs.h> | |
15485 | ||
15486 | int | |
15487 | main (void) | |
15488 | { | |
15489 | ||
15490 | lookup_bdev(NULL, FMODE_READ); | |
15491 | ||
15492 | ; | |
15493 | return 0; | |
15494 | } | |
15495 | ||
15496 | _ACEOF | |
15497 | ||
15498 | ||
15499 | ||
15500 | cat - <<_ACEOF >conftest.h | |
15501 | ||
15502 | _ACEOF | |
15503 | ||
15504 | ||
15505 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15506 | echo "obj-m := conftest.o" >build/Makefile | |
15507 | modpost_flag='' | |
15508 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15509 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15510 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15511 | (eval $ac_try) 2>&5 | |
15512 | ac_status=$? | |
15513 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15514 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15515 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15516 | (eval $ac_try) 2>&5 | |
15517 | ac_status=$? | |
15518 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15519 | test $ac_status = 0; }; }; then : | |
15520 | rc=0 | |
15521 | else | |
15522 | $as_echo "$as_me: failed program was:" >&5 | |
15523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15524 | rc=1 | |
15525 | ||
15526 | ||
15527 | fi | |
15528 | rm -Rf build | |
15529 | ||
15530 | ||
15531 | if test $rc -ne 0; then : | |
15532 | ||
15533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15534 | $as_echo "no" >&6; } | |
15535 | ||
15536 | else | |
15537 | if test "x$enable_linux_builtin" != xyes; then | |
15538 | ||
15539 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
15540 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15541 | rc=$? | |
15542 | if test $rc -ne 0; then | |
15543 | export=0 | |
15544 | for file in fs/block_dev.c; do | |
15545 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
15546 | "$LINUX/$file" 2>/dev/null | |
15547 | rc=$? | |
15548 | if test $rc -eq 0; then | |
15549 | export=1 | |
15550 | break; | |
15551 | fi | |
15552 | done | |
15553 | if test $export -eq 0; then : | |
15554 | rc=1 | |
15555 | else : | |
15556 | rc=0 | |
15557 | fi | |
15558 | else : | |
15559 | rc=0 | |
15560 | fi | |
15561 | ||
15562 | fi | |
15563 | if test $rc -ne 0; then : | |
15564 | ||
15565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15566 | $as_echo "no" >&6; } | |
15567 | ||
15568 | else : | |
15569 | ||
15570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15571 | $as_echo "yes" >&6; } | |
15572 | ||
15573 | $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h | |
15574 | ||
15575 | ||
15576 | fi | |
15577 | fi | |
15578 | ||
15579 | ||
15580 | else : | |
15581 | ||
15582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15583 | $as_echo "yes" >&6; } | |
15584 | ||
15585 | $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h | |
15586 | ||
15587 | ||
15588 | fi | |
15589 | fi | |
15590 | ||
15591 | ||
15592 | ||
15593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5 | |
15594 | $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; } | |
15595 | ||
15596 | ||
15597 | cat confdefs.h - <<_ACEOF >conftest.c | |
15598 | ||
15599 | ||
15600 | #include <linux/buffer_head.h> | |
15601 | ||
15602 | int | |
15603 | main (void) | |
15604 | { | |
15605 | ||
15606 | struct block_device *bdev = NULL; | |
15607 | invalidate_bdev(bdev); | |
15608 | ||
15609 | ; | |
15610 | return 0; | |
15611 | } | |
15612 | ||
15613 | _ACEOF | |
15614 | ||
15615 | ||
15616 | ||
15617 | cat - <<_ACEOF >conftest.h | |
15618 | ||
15619 | _ACEOF | |
15620 | ||
15621 | ||
15622 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15623 | echo "obj-m := conftest.o" >build/Makefile | |
15624 | modpost_flag='' | |
15625 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15626 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15627 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15628 | (eval $ac_try) 2>&5 | |
15629 | ac_status=$? | |
15630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15631 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15632 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15633 | (eval $ac_try) 2>&5 | |
15634 | ac_status=$? | |
15635 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15636 | test $ac_status = 0; }; }; then : | |
15637 | ||
15638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15639 | $as_echo "yes" >&6; } | |
15640 | ||
15641 | $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h | |
15642 | ||
15643 | ||
15644 | else | |
15645 | $as_echo "$as_me: failed program was:" >&5 | |
15646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15647 | ||
15648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15649 | $as_echo "no" >&6; } | |
15650 | ||
15651 | ||
15652 | ||
15653 | fi | |
15654 | rm -Rf build | |
15655 | ||
15656 | ||
15657 | ||
15658 | ||
15659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5 | |
15660 | $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; } | |
15661 | tmp_flags="$EXTRA_KCFLAGS" | |
15662 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
15663 | ||
15664 | ||
15665 | cat confdefs.h - <<_ACEOF >conftest.c | |
15666 | ||
15667 | ||
15668 | #include <linux/blkdev.h> | |
15669 | ||
15670 | int | |
15671 | main (void) | |
15672 | { | |
15673 | ||
15674 | struct block_device *bdev = NULL; | |
15675 | bdev_logical_block_size(bdev); | |
15676 | ||
15677 | ; | |
15678 | return 0; | |
15679 | } | |
15680 | ||
15681 | _ACEOF | |
15682 | ||
15683 | ||
15684 | ||
15685 | cat - <<_ACEOF >conftest.h | |
15686 | ||
15687 | _ACEOF | |
15688 | ||
15689 | ||
15690 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15691 | echo "obj-m := conftest.o" >build/Makefile | |
15692 | modpost_flag='' | |
15693 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15694 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15695 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15696 | (eval $ac_try) 2>&5 | |
15697 | ac_status=$? | |
15698 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15699 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15700 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15701 | (eval $ac_try) 2>&5 | |
15702 | ac_status=$? | |
15703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15704 | test $ac_status = 0; }; }; then : | |
15705 | ||
15706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15707 | $as_echo "yes" >&6; } | |
15708 | ||
15709 | $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h | |
15710 | ||
15711 | ||
15712 | else | |
15713 | $as_echo "$as_me: failed program was:" >&5 | |
15714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15715 | ||
15716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15717 | $as_echo "no" >&6; } | |
15718 | ||
15719 | ||
15720 | ||
15721 | fi | |
15722 | rm -Rf build | |
15723 | ||
15724 | ||
15725 | EXTRA_KCFLAGS="$tmp_flags" | |
15726 | ||
15727 | ||
15728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5 | |
15729 | $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; } | |
15730 | tmp_flags="$EXTRA_KCFLAGS" | |
15731 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
15732 | ||
15733 | ||
15734 | cat confdefs.h - <<_ACEOF >conftest.c | |
15735 | ||
15736 | ||
15737 | #include <linux/blkdev.h> | |
15738 | ||
15739 | int | |
15740 | main (void) | |
15741 | { | |
15742 | ||
15743 | struct block_device *bdev = NULL; | |
15744 | bdev_physical_block_size(bdev); | |
15745 | ||
15746 | ; | |
15747 | return 0; | |
15748 | } | |
15749 | ||
15750 | _ACEOF | |
15751 | ||
15752 | ||
15753 | ||
15754 | cat - <<_ACEOF >conftest.h | |
15755 | ||
15756 | _ACEOF | |
15757 | ||
15758 | ||
15759 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15760 | echo "obj-m := conftest.o" >build/Makefile | |
15761 | modpost_flag='' | |
15762 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15763 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15764 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15765 | (eval $ac_try) 2>&5 | |
15766 | ac_status=$? | |
15767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15768 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15769 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15770 | (eval $ac_try) 2>&5 | |
15771 | ac_status=$? | |
15772 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15773 | test $ac_status = 0; }; }; then : | |
15774 | ||
15775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15776 | $as_echo "yes" >&6; } | |
15777 | ||
15778 | $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h | |
15779 | ||
15780 | ||
15781 | else | |
15782 | $as_echo "$as_me: failed program was:" >&5 | |
15783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15784 | ||
15785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15786 | $as_echo "no" >&6; } | |
15787 | ||
15788 | ||
15789 | ||
15790 | fi | |
15791 | rm -Rf build | |
15792 | ||
15793 | ||
15794 | EXTRA_KCFLAGS="$tmp_flags" | |
15795 | ||
15796 | ||
15797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5 | |
15798 | $as_echo_n "checking whether bio has bi_iter... " >&6; } | |
15799 | ||
15800 | ||
15801 | cat confdefs.h - <<_ACEOF >conftest.c | |
15802 | ||
15803 | ||
15804 | #include <linux/bio.h> | |
15805 | ||
15806 | int | |
15807 | main (void) | |
15808 | { | |
15809 | ||
15810 | struct bio bio; | |
15811 | bio.bi_iter.bi_sector = 0; | |
15812 | ||
15813 | ; | |
15814 | return 0; | |
15815 | } | |
15816 | ||
15817 | _ACEOF | |
15818 | ||
15819 | ||
15820 | ||
15821 | cat - <<_ACEOF >conftest.h | |
15822 | ||
15823 | _ACEOF | |
15824 | ||
15825 | ||
15826 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15827 | echo "obj-m := conftest.o" >build/Makefile | |
15828 | modpost_flag='' | |
15829 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15830 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15831 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15832 | (eval $ac_try) 2>&5 | |
15833 | ac_status=$? | |
15834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15835 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15836 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15837 | (eval $ac_try) 2>&5 | |
15838 | ac_status=$? | |
15839 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15840 | test $ac_status = 0; }; }; then : | |
15841 | ||
15842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15843 | $as_echo "yes" >&6; } | |
15844 | ||
15845 | $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h | |
15846 | ||
15847 | ||
15848 | else | |
15849 | $as_echo "$as_me: failed program was:" >&5 | |
15850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15851 | ||
15852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15853 | $as_echo "no" >&6; } | |
15854 | ||
15855 | ||
15856 | ||
15857 | fi | |
15858 | rm -Rf build | |
15859 | ||
15860 | ||
15861 | ||
15862 | ||
15863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5 | |
15864 | $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; } | |
15865 | ||
15866 | ||
15867 | cat confdefs.h - <<_ACEOF >conftest.c | |
15868 | ||
15869 | ||
15870 | #include <linux/bio.h> | |
15871 | ||
15872 | int | |
15873 | main (void) | |
15874 | { | |
15875 | ||
15876 | int flags __attribute__ ((unused)); | |
15877 | flags = ((1 << BIO_RW_FAILFAST_DEV) | | |
15878 | (1 << BIO_RW_FAILFAST_TRANSPORT) | | |
15879 | (1 << BIO_RW_FAILFAST_DRIVER)); | |
15880 | ||
15881 | ; | |
15882 | return 0; | |
15883 | } | |
15884 | ||
15885 | _ACEOF | |
15886 | ||
15887 | ||
15888 | ||
15889 | cat - <<_ACEOF >conftest.h | |
15890 | ||
15891 | _ACEOF | |
15892 | ||
15893 | ||
15894 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15895 | echo "obj-m := conftest.o" >build/Makefile | |
15896 | modpost_flag='' | |
15897 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15898 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15899 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15900 | (eval $ac_try) 2>&5 | |
15901 | ac_status=$? | |
15902 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15903 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15904 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15905 | (eval $ac_try) 2>&5 | |
15906 | ac_status=$? | |
15907 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15908 | test $ac_status = 0; }; }; then : | |
15909 | ||
15910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15911 | $as_echo "yes" >&6; } | |
15912 | ||
15913 | $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h | |
15914 | ||
15915 | ||
15916 | else | |
15917 | $as_echo "$as_me: failed program was:" >&5 | |
15918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15919 | ||
15920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15921 | $as_echo "no" >&6; } | |
15922 | ||
15923 | ||
15924 | ||
15925 | fi | |
15926 | rm -Rf build | |
15927 | ||
15928 | ||
15929 | ||
15930 | ||
15931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5 | |
15932 | $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; } | |
15933 | ||
15934 | ||
15935 | cat confdefs.h - <<_ACEOF >conftest.c | |
15936 | ||
15937 | ||
15938 | #include <linux/bio.h> | |
15939 | ||
15940 | int | |
15941 | main (void) | |
15942 | { | |
15943 | ||
15944 | int flags __attribute__ ((unused)); | |
15945 | flags = REQ_FAILFAST_MASK; | |
15946 | ||
15947 | ; | |
15948 | return 0; | |
15949 | } | |
15950 | ||
15951 | _ACEOF | |
15952 | ||
15953 | ||
15954 | ||
15955 | cat - <<_ACEOF >conftest.h | |
15956 | ||
15957 | _ACEOF | |
15958 | ||
15959 | ||
15960 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15961 | echo "obj-m := conftest.o" >build/Makefile | |
15962 | modpost_flag='' | |
15963 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15964 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15965 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15966 | (eval $ac_try) 2>&5 | |
15967 | ac_status=$? | |
15968 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15969 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15970 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15971 | (eval $ac_try) 2>&5 | |
15972 | ac_status=$? | |
15973 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15974 | test $ac_status = 0; }; }; then : | |
15975 | ||
15976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15977 | $as_echo "yes" >&6; } | |
15978 | ||
15979 | $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h | |
15980 | ||
15981 | ||
15982 | else | |
15983 | $as_echo "$as_me: failed program was:" >&5 | |
15984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15985 | ||
15986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15987 | $as_echo "no" >&6; } | |
15988 | ||
15989 | ||
15990 | ||
15991 | fi | |
15992 | rm -Rf build | |
15993 | ||
15994 | ||
15995 | ||
15996 | ||
15997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5 | |
15998 | $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; } | |
15999 | ||
16000 | ||
16001 | cat confdefs.h - <<_ACEOF >conftest.c | |
16002 | ||
16003 | ||
16004 | #include <linux/blk_types.h> | |
16005 | ||
16006 | int | |
16007 | main (void) | |
16008 | { | |
16009 | ||
16010 | int op __attribute__ ((unused)) = REQ_OP_DISCARD; | |
16011 | ||
16012 | ; | |
16013 | return 0; | |
16014 | } | |
16015 | ||
16016 | _ACEOF | |
16017 | ||
16018 | ||
16019 | ||
16020 | cat - <<_ACEOF >conftest.h | |
16021 | ||
16022 | _ACEOF | |
16023 | ||
16024 | ||
16025 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16026 | echo "obj-m := conftest.o" >build/Makefile | |
16027 | modpost_flag='' | |
16028 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16029 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16030 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16031 | (eval $ac_try) 2>&5 | |
16032 | ac_status=$? | |
16033 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16034 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16035 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16036 | (eval $ac_try) 2>&5 | |
16037 | ac_status=$? | |
16038 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16039 | test $ac_status = 0; }; }; then : | |
16040 | ||
16041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16042 | $as_echo "yes" >&6; } | |
16043 | ||
16044 | $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h | |
16045 | ||
16046 | ||
16047 | else | |
16048 | $as_echo "$as_me: failed program was:" >&5 | |
16049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16050 | ||
16051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16052 | $as_echo "no" >&6; } | |
16053 | ||
16054 | ||
16055 | ||
16056 | fi | |
16057 | rm -Rf build | |
16058 | ||
16059 | ||
16060 | ||
16061 | ||
16062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5 | |
16063 | $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; } | |
16064 | ||
16065 | ||
16066 | cat confdefs.h - <<_ACEOF >conftest.c | |
16067 | ||
16068 | ||
16069 | #include <linux/blk_types.h> | |
16070 | ||
16071 | int | |
16072 | main (void) | |
16073 | { | |
16074 | ||
16075 | int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE; | |
16076 | ||
16077 | ; | |
16078 | return 0; | |
16079 | } | |
16080 | ||
16081 | _ACEOF | |
16082 | ||
16083 | ||
16084 | ||
16085 | cat - <<_ACEOF >conftest.h | |
16086 | ||
16087 | _ACEOF | |
16088 | ||
16089 | ||
16090 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16091 | echo "obj-m := conftest.o" >build/Makefile | |
16092 | modpost_flag='' | |
16093 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16094 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16095 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16096 | (eval $ac_try) 2>&5 | |
16097 | ac_status=$? | |
16098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16099 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16100 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16101 | (eval $ac_try) 2>&5 | |
16102 | ac_status=$? | |
16103 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16104 | test $ac_status = 0; }; }; then : | |
16105 | ||
16106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16107 | $as_echo "yes" >&6; } | |
16108 | ||
16109 | $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h | |
16110 | ||
16111 | ||
16112 | else | |
16113 | $as_echo "$as_me: failed program was:" >&5 | |
16114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16115 | ||
16116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16117 | $as_echo "no" >&6; } | |
16118 | ||
16119 | ||
16120 | ||
16121 | fi | |
16122 | rm -Rf build | |
16123 | ||
16124 | ||
16125 | ||
16126 | ||
16127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5 | |
16128 | $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; } | |
16129 | ||
16130 | ||
16131 | cat confdefs.h - <<_ACEOF >conftest.c | |
16132 | ||
16133 | ||
16134 | #include <linux/blk_types.h> | |
16135 | ||
16136 | int | |
16137 | main (void) | |
16138 | { | |
16139 | ||
16140 | int op __attribute__ ((unused)) = REQ_OP_FLUSH; | |
16141 | ||
16142 | ; | |
16143 | return 0; | |
16144 | } | |
16145 | ||
16146 | _ACEOF | |
16147 | ||
16148 | ||
16149 | ||
16150 | cat - <<_ACEOF >conftest.h | |
16151 | ||
16152 | _ACEOF | |
16153 | ||
16154 | ||
16155 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16156 | echo "obj-m := conftest.o" >build/Makefile | |
16157 | modpost_flag='' | |
16158 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16159 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16160 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16161 | (eval $ac_try) 2>&5 | |
16162 | ac_status=$? | |
16163 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16164 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16165 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16166 | (eval $ac_try) 2>&5 | |
16167 | ac_status=$? | |
16168 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16169 | test $ac_status = 0; }; }; then : | |
16170 | ||
16171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16172 | $as_echo "yes" >&6; } | |
16173 | ||
16174 | $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h | |
16175 | ||
16176 | ||
16177 | else | |
16178 | $as_echo "$as_me: failed program was:" >&5 | |
16179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16180 | ||
16181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16182 | $as_echo "no" >&6; } | |
16183 | ||
16184 | ||
16185 | ||
16186 | fi | |
16187 | rm -Rf build | |
16188 | ||
16189 | ||
16190 | ||
16191 | ||
16192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5 | |
16193 | $as_echo_n "checking whether bio->bi_opf is defined... " >&6; } | |
16194 | ||
16195 | ||
16196 | cat confdefs.h - <<_ACEOF >conftest.c | |
16197 | ||
16198 | ||
16199 | #include <linux/bio.h> | |
16200 | ||
16201 | int | |
16202 | main (void) | |
16203 | { | |
16204 | ||
16205 | struct bio bio __attribute__ ((unused)); | |
16206 | bio.bi_opf = 0; | |
16207 | ||
16208 | ; | |
16209 | return 0; | |
16210 | } | |
16211 | ||
16212 | _ACEOF | |
16213 | ||
16214 | ||
16215 | ||
16216 | cat - <<_ACEOF >conftest.h | |
16217 | ||
16218 | _ACEOF | |
16219 | ||
16220 | ||
16221 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16222 | echo "obj-m := conftest.o" >build/Makefile | |
16223 | modpost_flag='' | |
16224 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16225 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16226 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16227 | (eval $ac_try) 2>&5 | |
16228 | ac_status=$? | |
16229 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16230 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16231 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16232 | (eval $ac_try) 2>&5 | |
16233 | ac_status=$? | |
16234 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16235 | test $ac_status = 0; }; }; then : | |
16236 | ||
16237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16238 | $as_echo "yes" >&6; } | |
16239 | ||
16240 | $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h | |
16241 | ||
16242 | ||
16243 | else | |
16244 | $as_echo "$as_me: failed program was:" >&5 | |
16245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16246 | ||
16247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16248 | $as_echo "no" >&6; } | |
16249 | ||
16250 | ||
16251 | ||
16252 | fi | |
16253 | rm -Rf build | |
16254 | ||
16255 | ||
16256 | ||
16257 | ||
16258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5 | |
16259 | $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; } | |
16260 | ||
16261 | ||
16262 | cat confdefs.h - <<_ACEOF >conftest.c | |
16263 | ||
16264 | ||
16265 | #include <linux/bio.h> | |
16266 | ||
16267 | void wanted_end_io(struct bio *bio) { return; } | |
16268 | ||
16269 | bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io; | |
16270 | ||
16271 | int | |
16272 | main (void) | |
16273 | { | |
16274 | ||
16275 | ||
16276 | ; | |
16277 | return 0; | |
16278 | } | |
16279 | ||
16280 | _ACEOF | |
16281 | ||
16282 | ||
16283 | ||
16284 | cat - <<_ACEOF >conftest.h | |
16285 | ||
16286 | _ACEOF | |
16287 | ||
16288 | ||
16289 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16290 | echo "obj-m := conftest.o" >build/Makefile | |
16291 | modpost_flag='' | |
16292 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16293 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16294 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16295 | (eval $ac_try) 2>&5 | |
16296 | ac_status=$? | |
16297 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16298 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16299 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16300 | (eval $ac_try) 2>&5 | |
16301 | ac_status=$? | |
16302 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16303 | test $ac_status = 0; }; }; then : | |
16304 | ||
16305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16306 | $as_echo "yes" >&6; } | |
16307 | ||
16308 | $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h | |
16309 | ||
16310 | ||
16311 | else | |
16312 | $as_echo "$as_me: failed program was:" >&5 | |
16313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16314 | ||
16315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16316 | $as_echo "no" >&6; } | |
16317 | ||
16318 | ||
16319 | ||
16320 | fi | |
16321 | rm -Rf build | |
16322 | ||
16323 | ||
16324 | ||
16325 | ||
1681e039 CIK |
16326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5 |
16327 | $as_echo_n "checking whether bio->bi_status exists... " >&6; } | |
16328 | ||
16329 | ||
16330 | cat confdefs.h - <<_ACEOF >conftest.c | |
16331 | ||
16332 | ||
16333 | #include <linux/bio.h> | |
16334 | ||
16335 | int | |
16336 | main (void) | |
16337 | { | |
16338 | ||
16339 | struct bio bio __attribute__ ((unused)); | |
16340 | blk_status_t status __attribute__ ((unused)) = BLK_STS_OK; | |
16341 | ||
16342 | bio.bi_status = status; | |
16343 | ||
16344 | ; | |
16345 | return 0; | |
16346 | } | |
16347 | ||
16348 | _ACEOF | |
16349 | ||
16350 | ||
16351 | ||
16352 | cat - <<_ACEOF >conftest.h | |
16353 | ||
16354 | _ACEOF | |
16355 | ||
16356 | ||
16357 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16358 | echo "obj-m := conftest.o" >build/Makefile | |
16359 | modpost_flag='' | |
16360 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16361 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16362 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16363 | (eval $ac_try) 2>&5 | |
16364 | ac_status=$? | |
16365 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16366 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16367 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16368 | (eval $ac_try) 2>&5 | |
16369 | ac_status=$? | |
16370 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16371 | test $ac_status = 0; }; }; then : | |
16372 | ||
16373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16374 | $as_echo "yes" >&6; } | |
16375 | ||
16376 | $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h | |
16377 | ||
16378 | ||
16379 | else | |
16380 | $as_echo "$as_me: failed program was:" >&5 | |
16381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16382 | ||
16383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16384 | $as_echo "no" >&6; } | |
16385 | ||
16386 | ||
16387 | ||
16388 | fi | |
16389 | rm -Rf build | |
16390 | ||
16391 | ||
16392 | ||
16393 | ||
87d546d8 TG |
16394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5 |
16395 | $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; } | |
16396 | ||
16397 | ||
16398 | cat confdefs.h - <<_ACEOF >conftest.c | |
16399 | ||
16400 | ||
16401 | #include <linux/bio.h> | |
16402 | ||
16403 | int | |
16404 | main (void) | |
16405 | { | |
16406 | ||
16407 | int flags __attribute__ ((unused)); | |
16408 | flags = BIO_RW_BARRIER; | |
16409 | ||
16410 | ; | |
16411 | return 0; | |
16412 | } | |
16413 | ||
16414 | _ACEOF | |
16415 | ||
16416 | ||
16417 | ||
16418 | cat - <<_ACEOF >conftest.h | |
16419 | ||
16420 | _ACEOF | |
16421 | ||
16422 | ||
16423 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16424 | echo "obj-m := conftest.o" >build/Makefile | |
16425 | modpost_flag='' | |
16426 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16427 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16428 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16429 | (eval $ac_try) 2>&5 | |
16430 | ac_status=$? | |
16431 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16432 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16433 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16434 | (eval $ac_try) 2>&5 | |
16435 | ac_status=$? | |
16436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16437 | test $ac_status = 0; }; }; then : | |
16438 | ||
16439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16440 | $as_echo "yes" >&6; } | |
16441 | ||
16442 | $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h | |
16443 | ||
16444 | ||
16445 | else | |
16446 | $as_echo "$as_me: failed program was:" >&5 | |
16447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16448 | ||
16449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16450 | $as_echo "no" >&6; } | |
16451 | ||
16452 | ||
16453 | ||
16454 | fi | |
16455 | rm -Rf build | |
16456 | ||
16457 | ||
16458 | ||
16459 | ||
16460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5 | |
16461 | $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; } | |
16462 | ||
16463 | ||
16464 | cat confdefs.h - <<_ACEOF >conftest.c | |
16465 | ||
16466 | ||
16467 | #include <linux/bio.h> | |
16468 | ||
16469 | int | |
16470 | main (void) | |
16471 | { | |
16472 | ||
16473 | int flags __attribute__ ((unused)); | |
16474 | flags = BIO_RW_DISCARD; | |
16475 | ||
16476 | ; | |
16477 | return 0; | |
16478 | } | |
16479 | ||
16480 | _ACEOF | |
16481 | ||
16482 | ||
16483 | ||
16484 | cat - <<_ACEOF >conftest.h | |
16485 | ||
16486 | _ACEOF | |
16487 | ||
16488 | ||
16489 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16490 | echo "obj-m := conftest.o" >build/Makefile | |
16491 | modpost_flag='' | |
16492 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16493 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16494 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16495 | (eval $ac_try) 2>&5 | |
16496 | ac_status=$? | |
16497 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16498 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16499 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16500 | (eval $ac_try) 2>&5 | |
16501 | ac_status=$? | |
16502 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16503 | test $ac_status = 0; }; }; then : | |
16504 | ||
16505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16506 | $as_echo "yes" >&6; } | |
16507 | ||
16508 | $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h | |
16509 | ||
16510 | ||
16511 | else | |
16512 | $as_echo "$as_me: failed program was:" >&5 | |
16513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16514 | ||
16515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16516 | $as_echo "no" >&6; } | |
16517 | ||
16518 | ||
16519 | ||
16520 | fi | |
16521 | rm -Rf build | |
16522 | ||
16523 | ||
16524 | ||
16525 | ||
16526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5 | |
16527 | $as_echo_n "checking whether blk_queue_flush() is available... " >&6; } | |
16528 | tmp_flags="$EXTRA_KCFLAGS" | |
16529 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16530 | ||
16531 | ||
16532 | cat confdefs.h - <<_ACEOF >conftest.c | |
16533 | ||
16534 | ||
16535 | #include <linux/blkdev.h> | |
16536 | ||
16537 | int | |
16538 | main (void) | |
16539 | { | |
16540 | ||
16541 | struct request_queue *q = NULL; | |
16542 | (void) blk_queue_flush(q, REQ_FLUSH); | |
16543 | ||
16544 | ; | |
16545 | return 0; | |
16546 | } | |
16547 | ||
16548 | _ACEOF | |
16549 | ||
16550 | ||
16551 | ||
16552 | cat - <<_ACEOF >conftest.h | |
16553 | ||
16554 | _ACEOF | |
16555 | ||
16556 | ||
16557 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16558 | echo "obj-m := conftest.o" >build/Makefile | |
16559 | modpost_flag='' | |
16560 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16561 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16562 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16563 | (eval $ac_try) 2>&5 | |
16564 | ac_status=$? | |
16565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16566 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16567 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16568 | (eval $ac_try) 2>&5 | |
16569 | ac_status=$? | |
16570 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16571 | test $ac_status = 0; }; }; then : | |
16572 | ||
16573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16574 | $as_echo "yes" >&6; } | |
16575 | ||
16576 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h | |
16577 | ||
16578 | ||
16579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5 | |
16580 | $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; } | |
16581 | ||
16582 | ||
16583 | cat confdefs.h - <<_ACEOF >conftest.c | |
16584 | ||
16585 | ||
16586 | #include <linux/module.h> | |
16587 | #include <linux/blkdev.h> | |
16588 | ||
16589 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
16590 | ||
16591 | int | |
16592 | main (void) | |
16593 | { | |
16594 | ||
16595 | struct request_queue *q = NULL; | |
16596 | (void) blk_queue_flush(q, REQ_FLUSH); | |
16597 | ||
16598 | ; | |
16599 | return 0; | |
16600 | } | |
16601 | ||
16602 | _ACEOF | |
16603 | ||
16604 | ||
16605 | ||
16606 | cat - <<_ACEOF >conftest.h | |
16607 | ||
16608 | _ACEOF | |
16609 | ||
16610 | ||
16611 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16612 | echo "obj-m := conftest.o" >build/Makefile | |
16613 | modpost_flag='' | |
16614 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16615 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16616 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16617 | (eval $ac_try) 2>&5 | |
16618 | ac_status=$? | |
16619 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16620 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16621 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16622 | (eval $ac_try) 2>&5 | |
16623 | ac_status=$? | |
16624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16625 | test $ac_status = 0; }; }; then : | |
16626 | ||
16627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16628 | $as_echo "no" >&6; } | |
16629 | ||
16630 | else | |
16631 | $as_echo "$as_me: failed program was:" >&5 | |
16632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16633 | ||
16634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16635 | $as_echo "yes" >&6; } | |
16636 | ||
16637 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h | |
16638 | ||
16639 | ||
16640 | ||
16641 | ||
16642 | fi | |
16643 | rm -Rf build | |
16644 | ||
16645 | ||
16646 | ||
16647 | else | |
16648 | $as_echo "$as_me: failed program was:" >&5 | |
16649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16650 | ||
16651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16652 | $as_echo "no" >&6; } | |
16653 | ||
16654 | ||
16655 | ||
16656 | fi | |
16657 | rm -Rf build | |
16658 | ||
16659 | ||
16660 | ||
16661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5 | |
16662 | $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; } | |
16663 | ||
16664 | ||
16665 | cat confdefs.h - <<_ACEOF >conftest.c | |
16666 | ||
16667 | ||
16668 | #include <linux/kernel.h> | |
16669 | #include <linux/blkdev.h> | |
16670 | ||
16671 | ||
16672 | int | |
16673 | main (void) | |
16674 | { | |
16675 | ||
16676 | struct request_queue *q = NULL; | |
16677 | blk_queue_write_cache(q, true, true); | |
16678 | ||
16679 | ; | |
16680 | return 0; | |
16681 | } | |
16682 | ||
16683 | _ACEOF | |
16684 | ||
16685 | ||
16686 | ||
16687 | cat - <<_ACEOF >conftest.h | |
16688 | ||
16689 | _ACEOF | |
16690 | ||
16691 | ||
16692 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16693 | echo "obj-m := conftest.o" >build/Makefile | |
16694 | modpost_flag='' | |
16695 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16696 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16697 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16698 | (eval $ac_try) 2>&5 | |
16699 | ac_status=$? | |
16700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16701 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16702 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16703 | (eval $ac_try) 2>&5 | |
16704 | ac_status=$? | |
16705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16706 | test $ac_status = 0; }; }; then : | |
16707 | ||
16708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16709 | $as_echo "yes" >&6; } | |
16710 | ||
16711 | $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h | |
16712 | ||
16713 | ||
16714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5 | |
16715 | $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; } | |
16716 | ||
16717 | ||
16718 | cat confdefs.h - <<_ACEOF >conftest.c | |
16719 | ||
16720 | ||
16721 | #include <linux/kernel.h> | |
16722 | #include <linux/module.h> | |
16723 | #include <linux/blkdev.h> | |
16724 | ||
16725 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
16726 | ||
16727 | int | |
16728 | main (void) | |
16729 | { | |
16730 | ||
16731 | struct request_queue *q = NULL; | |
16732 | blk_queue_write_cache(q, true, true); | |
16733 | ||
16734 | ; | |
16735 | return 0; | |
16736 | } | |
16737 | ||
16738 | _ACEOF | |
16739 | ||
16740 | ||
16741 | ||
16742 | cat - <<_ACEOF >conftest.h | |
16743 | ||
16744 | _ACEOF | |
16745 | ||
16746 | ||
16747 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16748 | echo "obj-m := conftest.o" >build/Makefile | |
16749 | modpost_flag='' | |
16750 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16751 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16752 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16753 | (eval $ac_try) 2>&5 | |
16754 | ac_status=$? | |
16755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16756 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16757 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16758 | (eval $ac_try) 2>&5 | |
16759 | ac_status=$? | |
16760 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16761 | test $ac_status = 0; }; }; then : | |
16762 | ||
16763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16764 | $as_echo "no" >&6; } | |
16765 | ||
16766 | else | |
16767 | $as_echo "$as_me: failed program was:" >&5 | |
16768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16769 | ||
16770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16771 | $as_echo "yes" >&6; } | |
16772 | ||
16773 | $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h | |
16774 | ||
16775 | ||
16776 | ||
16777 | ||
16778 | fi | |
16779 | rm -Rf build | |
16780 | ||
16781 | ||
16782 | ||
16783 | else | |
16784 | $as_echo "$as_me: failed program was:" >&5 | |
16785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16786 | ||
16787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16788 | $as_echo "no" >&6; } | |
16789 | ||
16790 | ||
16791 | ||
16792 | fi | |
16793 | rm -Rf build | |
16794 | ||
16795 | ||
16796 | ||
16797 | EXTRA_KCFLAGS="$tmp_flags" | |
16798 | ||
16799 | ||
16800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5 | |
16801 | $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; } | |
16802 | tmp_flags="$EXTRA_KCFLAGS" | |
16803 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16804 | ||
16805 | ||
16806 | cat confdefs.h - <<_ACEOF >conftest.c | |
16807 | ||
16808 | ||
16809 | #include <linux/blkdev.h> | |
16810 | ||
16811 | int | |
16812 | main (void) | |
16813 | { | |
16814 | ||
16815 | struct request_queue *q = NULL; | |
16816 | (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS); | |
16817 | ||
16818 | ; | |
16819 | return 0; | |
16820 | } | |
16821 | ||
16822 | _ACEOF | |
16823 | ||
16824 | ||
16825 | ||
16826 | cat - <<_ACEOF >conftest.h | |
16827 | ||
16828 | _ACEOF | |
16829 | ||
16830 | ||
16831 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16832 | echo "obj-m := conftest.o" >build/Makefile | |
16833 | modpost_flag='' | |
16834 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16835 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16836 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16837 | (eval $ac_try) 2>&5 | |
16838 | ac_status=$? | |
16839 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16840 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16841 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16842 | (eval $ac_try) 2>&5 | |
16843 | ac_status=$? | |
16844 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16845 | test $ac_status = 0; }; }; then : | |
16846 | ||
16847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16848 | $as_echo "yes" >&6; } | |
16849 | ||
16850 | $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h | |
16851 | ||
16852 | ||
16853 | else | |
16854 | $as_echo "$as_me: failed program was:" >&5 | |
16855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16856 | ||
16857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16858 | $as_echo "no" >&6; } | |
16859 | ||
16860 | ||
16861 | ||
16862 | fi | |
16863 | rm -Rf build | |
16864 | ||
16865 | ||
16866 | EXTRA_KCFLAGS="$tmp_flags" | |
16867 | ||
16868 | ||
16869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5 | |
16870 | $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; } | |
16871 | tmp_flags="$EXTRA_KCFLAGS" | |
16872 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16873 | ||
16874 | ||
16875 | cat confdefs.h - <<_ACEOF >conftest.c | |
16876 | ||
16877 | ||
16878 | #include <linux/blkdev.h> | |
16879 | ||
16880 | int | |
16881 | main (void) | |
16882 | { | |
16883 | ||
16884 | struct request_queue *q = NULL; | |
16885 | (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS); | |
16886 | ||
16887 | ; | |
16888 | return 0; | |
16889 | } | |
16890 | ||
16891 | _ACEOF | |
16892 | ||
16893 | ||
16894 | ||
16895 | cat - <<_ACEOF >conftest.h | |
16896 | ||
16897 | _ACEOF | |
16898 | ||
16899 | ||
16900 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16901 | echo "obj-m := conftest.o" >build/Makefile | |
16902 | modpost_flag='' | |
16903 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16904 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16905 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16906 | (eval $ac_try) 2>&5 | |
16907 | ac_status=$? | |
16908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16909 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16910 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16911 | (eval $ac_try) 2>&5 | |
16912 | ac_status=$? | |
16913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16914 | test $ac_status = 0; }; }; then : | |
16915 | ||
16916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16917 | $as_echo "yes" >&6; } | |
16918 | ||
16919 | $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h | |
16920 | ||
16921 | ||
16922 | else | |
16923 | $as_echo "$as_me: failed program was:" >&5 | |
16924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16925 | ||
16926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16927 | $as_echo "no" >&6; } | |
16928 | ||
16929 | ||
16930 | ||
16931 | fi | |
16932 | rm -Rf build | |
16933 | ||
16934 | ||
16935 | EXTRA_KCFLAGS="$tmp_flags" | |
16936 | ||
16937 | ||
16938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5 | |
16939 | $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; } | |
16940 | tmp_flags="$EXTRA_KCFLAGS" | |
16941 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16942 | ||
16943 | ||
16944 | cat confdefs.h - <<_ACEOF >conftest.c | |
16945 | ||
16946 | ||
16947 | #include <linux/blkdev.h> | |
16948 | ||
16949 | int | |
16950 | main (void) | |
16951 | { | |
16952 | ||
16953 | extern enum bio_rw_flags rw; | |
16954 | ||
16955 | rw = BIO_RW_UNPLUG; | |
16956 | ||
16957 | ; | |
16958 | return 0; | |
16959 | } | |
16960 | ||
16961 | _ACEOF | |
16962 | ||
16963 | ||
16964 | ||
16965 | cat - <<_ACEOF >conftest.h | |
16966 | ||
16967 | _ACEOF | |
16968 | ||
16969 | ||
16970 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16971 | echo "obj-m := conftest.o" >build/Makefile | |
16972 | modpost_flag='' | |
16973 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16974 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16975 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16976 | (eval $ac_try) 2>&5 | |
16977 | ac_status=$? | |
16978 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16979 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16980 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16981 | (eval $ac_try) 2>&5 | |
16982 | ac_status=$? | |
16983 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16984 | test $ac_status = 0; }; }; then : | |
16985 | ||
16986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16987 | $as_echo "yes" >&6; } | |
16988 | ||
16989 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h | |
16990 | ||
16991 | ||
16992 | else | |
16993 | $as_echo "$as_me: failed program was:" >&5 | |
16994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16995 | ||
16996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16997 | $as_echo "no" >&6; } | |
16998 | ||
16999 | ||
17000 | ||
17001 | fi | |
17002 | rm -Rf build | |
17003 | ||
17004 | ||
17005 | EXTRA_KCFLAGS="$tmp_flags" | |
17006 | ||
17007 | ||
17008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5 | |
17009 | $as_echo_n "checking whether struct blk_plug is available... " >&6; } | |
17010 | tmp_flags="$EXTRA_KCFLAGS" | |
17011 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
17012 | ||
17013 | ||
17014 | cat confdefs.h - <<_ACEOF >conftest.c | |
17015 | ||
17016 | ||
17017 | #include <linux/blkdev.h> | |
17018 | ||
17019 | int | |
17020 | main (void) | |
17021 | { | |
17022 | ||
17023 | struct blk_plug plug; | |
17024 | ||
17025 | blk_start_plug(&plug); | |
17026 | blk_finish_plug(&plug); | |
17027 | ||
17028 | ; | |
17029 | return 0; | |
17030 | } | |
17031 | ||
17032 | _ACEOF | |
17033 | ||
17034 | ||
17035 | ||
17036 | cat - <<_ACEOF >conftest.h | |
17037 | ||
17038 | _ACEOF | |
17039 | ||
17040 | ||
17041 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17042 | echo "obj-m := conftest.o" >build/Makefile | |
17043 | modpost_flag='' | |
17044 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17045 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17046 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17047 | (eval $ac_try) 2>&5 | |
17048 | ac_status=$? | |
17049 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17050 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17051 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17052 | (eval $ac_try) 2>&5 | |
17053 | ac_status=$? | |
17054 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17055 | test $ac_status = 0; }; }; then : | |
17056 | ||
17057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17058 | $as_echo "yes" >&6; } | |
17059 | ||
17060 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h | |
17061 | ||
17062 | ||
17063 | else | |
17064 | $as_echo "$as_me: failed program was:" >&5 | |
17065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17066 | ||
17067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17068 | $as_echo "no" >&6; } | |
17069 | ||
17070 | ||
17071 | ||
17072 | fi | |
17073 | rm -Rf build | |
17074 | ||
17075 | ||
17076 | EXTRA_KCFLAGS="$tmp_flags" | |
17077 | ||
17078 | ||
17079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5 | |
17080 | $as_echo_n "checking whether get_disk_ro() is available... " >&6; } | |
17081 | tmp_flags="$EXTRA_KCFLAGS" | |
17082 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
17083 | ||
17084 | ||
17085 | cat confdefs.h - <<_ACEOF >conftest.c | |
17086 | ||
17087 | ||
17088 | #include <linux/blkdev.h> | |
17089 | ||
17090 | int | |
17091 | main (void) | |
17092 | { | |
17093 | ||
17094 | struct gendisk *disk = NULL; | |
17095 | (void) get_disk_ro(disk); | |
17096 | ||
17097 | ; | |
17098 | return 0; | |
17099 | } | |
17100 | ||
17101 | _ACEOF | |
17102 | ||
17103 | ||
17104 | ||
17105 | cat - <<_ACEOF >conftest.h | |
17106 | ||
17107 | _ACEOF | |
17108 | ||
17109 | ||
17110 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17111 | echo "obj-m := conftest.o" >build/Makefile | |
17112 | modpost_flag='' | |
17113 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17114 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17115 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17116 | (eval $ac_try) 2>&5 | |
17117 | ac_status=$? | |
17118 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17119 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17120 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17121 | (eval $ac_try) 2>&5 | |
17122 | ac_status=$? | |
17123 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17124 | test $ac_status = 0; }; }; then : | |
17125 | ||
17126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17127 | $as_echo "yes" >&6; } | |
17128 | ||
17129 | $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h | |
17130 | ||
17131 | ||
17132 | else | |
17133 | $as_echo "$as_me: failed program was:" >&5 | |
17134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17135 | ||
17136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17137 | $as_echo "no" >&6; } | |
17138 | ||
17139 | ||
17140 | ||
17141 | fi | |
17142 | rm -Rf build | |
17143 | ||
17144 | ||
17145 | EXTRA_KCFLAGS="$tmp_flags" | |
17146 | ||
17147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5 | |
17148 | $as_echo_n "checking whether get_gendisk() is available... " >&6; } | |
17149 | ||
17150 | ||
17151 | ||
17152 | cat confdefs.h - <<_ACEOF >conftest.c | |
17153 | ||
17154 | ||
17155 | #include <linux/genhd.h> | |
17156 | ||
17157 | int | |
17158 | main (void) | |
17159 | { | |
17160 | ||
17161 | get_gendisk(0, NULL); | |
17162 | ||
17163 | ; | |
17164 | return 0; | |
17165 | } | |
17166 | ||
17167 | _ACEOF | |
17168 | ||
17169 | ||
17170 | ||
17171 | cat - <<_ACEOF >conftest.h | |
17172 | ||
17173 | _ACEOF | |
17174 | ||
17175 | ||
17176 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17177 | echo "obj-m := conftest.o" >build/Makefile | |
17178 | modpost_flag='' | |
17179 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17180 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17181 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17182 | (eval $ac_try) 2>&5 | |
17183 | ac_status=$? | |
17184 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17185 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17186 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17187 | (eval $ac_try) 2>&5 | |
17188 | ac_status=$? | |
17189 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17190 | test $ac_status = 0; }; }; then : | |
17191 | rc=0 | |
17192 | else | |
17193 | $as_echo "$as_me: failed program was:" >&5 | |
17194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17195 | rc=1 | |
17196 | ||
17197 | ||
17198 | fi | |
17199 | rm -Rf build | |
17200 | ||
17201 | ||
17202 | if test $rc -ne 0; then : | |
17203 | ||
17204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17205 | $as_echo "no" >&6; } | |
17206 | ||
17207 | else | |
17208 | if test "x$enable_linux_builtin" != xyes; then | |
17209 | ||
17210 | grep -q -E '[[:space:]]get_gendisk[[:space:]]' \ | |
17211 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
17212 | rc=$? | |
17213 | if test $rc -ne 0; then | |
17214 | export=0 | |
17215 | for file in block/genhd.c; do | |
17216 | grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \ | |
17217 | "$LINUX/$file" 2>/dev/null | |
17218 | rc=$? | |
17219 | if test $rc -eq 0; then | |
17220 | export=1 | |
17221 | break; | |
17222 | fi | |
17223 | done | |
17224 | if test $export -eq 0; then : | |
17225 | rc=1 | |
17226 | else : | |
17227 | rc=0 | |
17228 | fi | |
17229 | else : | |
17230 | rc=0 | |
17231 | fi | |
17232 | ||
17233 | fi | |
17234 | if test $rc -ne 0; then : | |
17235 | ||
17236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17237 | $as_echo "no" >&6; } | |
17238 | ||
17239 | else : | |
17240 | ||
17241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17242 | $as_echo "yes" >&6; } | |
17243 | ||
17244 | $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h | |
17245 | ||
17246 | ||
17247 | fi | |
17248 | fi | |
17249 | ||
17250 | ||
17251 | ||
17252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5 | |
17253 | $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; } | |
17254 | ||
17255 | ||
17256 | cat confdefs.h - <<_ACEOF >conftest.c | |
17257 | ||
17258 | ||
1ec59ff7 | 17259 | #include <linux/bio.h> |
87d546d8 TG |
17260 | |
17261 | int | |
17262 | main (void) | |
17263 | { | |
17264 | ||
17265 | struct bio *bio __attribute__ ((unused)) = NULL; | |
17266 | ||
17267 | bio_set_op_attrs(bio, 0, 0); | |
17268 | ||
17269 | ; | |
17270 | return 0; | |
17271 | } | |
17272 | ||
17273 | _ACEOF | |
17274 | ||
17275 | ||
17276 | ||
17277 | cat - <<_ACEOF >conftest.h | |
17278 | ||
17279 | _ACEOF | |
17280 | ||
17281 | ||
17282 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17283 | echo "obj-m := conftest.o" >build/Makefile | |
17284 | modpost_flag='' | |
17285 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17286 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17287 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17288 | (eval $ac_try) 2>&5 | |
17289 | ac_status=$? | |
17290 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17291 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17292 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17293 | (eval $ac_try) 2>&5 | |
17294 | ac_status=$? | |
17295 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17296 | test $ac_status = 0; }; }; then : | |
17297 | ||
17298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17299 | $as_echo "yes" >&6; } | |
17300 | ||
17301 | $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h | |
17302 | ||
17303 | ||
17304 | else | |
17305 | $as_echo "$as_me: failed program was:" >&5 | |
17306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17307 | ||
17308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17309 | $as_echo "no" >&6; } | |
17310 | ||
17311 | ||
17312 | ||
17313 | fi | |
17314 | rm -Rf build | |
17315 | ||
17316 | ||
17317 | ||
17318 | ||
17319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5 | |
17320 | $as_echo_n "checking whether generic_readlink is global... " >&6; } | |
17321 | ||
17322 | ||
17323 | cat confdefs.h - <<_ACEOF >conftest.c | |
17324 | ||
17325 | ||
17326 | #include <linux/fs.h> | |
17327 | ||
17328 | int | |
17329 | main (void) | |
17330 | { | |
17331 | ||
17332 | int i __attribute__ ((unused)); | |
17333 | ||
17334 | i = generic_readlink(NULL, NULL, 0); | |
17335 | ||
17336 | ; | |
17337 | return 0; | |
17338 | } | |
17339 | ||
17340 | _ACEOF | |
17341 | ||
17342 | ||
17343 | ||
17344 | cat - <<_ACEOF >conftest.h | |
17345 | ||
17346 | _ACEOF | |
17347 | ||
17348 | ||
17349 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17350 | echo "obj-m := conftest.o" >build/Makefile | |
17351 | modpost_flag='' | |
17352 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17353 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17354 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17355 | (eval $ac_try) 2>&5 | |
17356 | ac_status=$? | |
17357 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17358 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17359 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17360 | (eval $ac_try) 2>&5 | |
17361 | ac_status=$? | |
17362 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17363 | test $ac_status = 0; }; }; then : | |
17364 | ||
17365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17366 | $as_echo "yes" >&6; } | |
17367 | ||
17368 | $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h | |
17369 | ||
17370 | ||
17371 | else | |
17372 | $as_echo "$as_me: failed program was:" >&5 | |
17373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17374 | ||
17375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17376 | $as_echo "no" >&6; } | |
17377 | ||
17378 | ||
17379 | ||
17380 | fi | |
17381 | rm -Rf build | |
17382 | ||
17383 | ||
17384 | ||
17385 | ||
17386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5 | |
17387 | $as_echo_n "checking whether ql->discard_granularity is available... " >&6; } | |
17388 | ||
17389 | ||
17390 | cat confdefs.h - <<_ACEOF >conftest.c | |
17391 | ||
17392 | ||
17393 | #include <linux/blkdev.h> | |
17394 | ||
17395 | int | |
17396 | main (void) | |
17397 | { | |
17398 | ||
17399 | struct queue_limits ql __attribute__ ((unused)); | |
17400 | ||
17401 | ql.discard_granularity = 0; | |
17402 | ||
17403 | ; | |
17404 | return 0; | |
17405 | } | |
17406 | ||
17407 | _ACEOF | |
17408 | ||
17409 | ||
17410 | ||
17411 | cat - <<_ACEOF >conftest.h | |
17412 | ||
17413 | _ACEOF | |
17414 | ||
17415 | ||
17416 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17417 | echo "obj-m := conftest.o" >build/Makefile | |
17418 | modpost_flag='' | |
17419 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17420 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17421 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17422 | (eval $ac_try) 2>&5 | |
17423 | ac_status=$? | |
17424 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17425 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17426 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17427 | (eval $ac_try) 2>&5 | |
17428 | ac_status=$? | |
17429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17430 | test $ac_status = 0; }; }; then : | |
17431 | ||
17432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17433 | $as_echo "yes" >&6; } | |
17434 | ||
17435 | $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h | |
17436 | ||
17437 | ||
17438 | else | |
17439 | $as_echo "$as_me: failed program was:" >&5 | |
17440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17441 | ||
17442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17443 | $as_echo "no" >&6; } | |
17444 | ||
17445 | ||
17446 | ||
17447 | fi | |
17448 | rm -Rf build | |
17449 | ||
17450 | ||
17451 | ||
17452 | ||
17453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5 | |
17454 | $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; } | |
17455 | ||
17456 | ||
17457 | cat confdefs.h - <<_ACEOF >conftest.c | |
17458 | ||
17459 | ||
17460 | #include <linux/fs.h> | |
17461 | #include <linux/xattr.h> | |
17462 | ||
17463 | const struct xattr_handler xattr_test_handler = { | |
17464 | .prefix = "test", | |
17465 | .get = NULL, | |
17466 | .set = NULL, | |
17467 | }; | |
17468 | ||
17469 | const struct xattr_handler *xattr_handlers[] = { | |
17470 | &xattr_test_handler, | |
17471 | }; | |
17472 | ||
17473 | const struct super_block sb __attribute__ ((unused)) = { | |
17474 | .s_xattr = xattr_handlers, | |
17475 | }; | |
17476 | ||
17477 | int | |
17478 | main (void) | |
17479 | { | |
17480 | ||
17481 | ||
17482 | ; | |
17483 | return 0; | |
17484 | } | |
17485 | ||
17486 | _ACEOF | |
17487 | ||
17488 | ||
17489 | ||
17490 | cat - <<_ACEOF >conftest.h | |
17491 | ||
17492 | _ACEOF | |
17493 | ||
17494 | ||
17495 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17496 | echo "obj-m := conftest.o" >build/Makefile | |
17497 | modpost_flag='' | |
17498 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17499 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17500 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17501 | (eval $ac_try) 2>&5 | |
17502 | ac_status=$? | |
17503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17504 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17505 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17506 | (eval $ac_try) 2>&5 | |
17507 | ac_status=$? | |
17508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17509 | test $ac_status = 0; }; }; then : | |
17510 | ||
17511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17512 | $as_echo "yes" >&6; } | |
17513 | ||
17514 | $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h | |
17515 | ||
17516 | ||
17517 | else | |
17518 | $as_echo "$as_me: failed program was:" >&5 | |
17519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17520 | ||
17521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17522 | $as_echo "no" >&6; } | |
17523 | ||
17524 | ||
17525 | ||
17526 | fi | |
17527 | rm -Rf build | |
17528 | ||
17529 | ||
17530 | ||
17531 | ||
17532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5 | |
17533 | $as_echo_n "checking whether xattr_handler has name... " >&6; } | |
17534 | ||
17535 | ||
17536 | cat confdefs.h - <<_ACEOF >conftest.c | |
17537 | ||
17538 | ||
17539 | #include <linux/xattr.h> | |
17540 | ||
17541 | static const struct xattr_handler | |
17542 | xops __attribute__ ((unused)) = { | |
17543 | .name = XATTR_NAME_POSIX_ACL_ACCESS, | |
17544 | }; | |
17545 | ||
17546 | int | |
17547 | main (void) | |
17548 | { | |
17549 | ||
17550 | ||
17551 | ; | |
17552 | return 0; | |
17553 | } | |
17554 | ||
17555 | _ACEOF | |
17556 | ||
17557 | ||
17558 | ||
17559 | cat - <<_ACEOF >conftest.h | |
17560 | ||
17561 | _ACEOF | |
17562 | ||
17563 | ||
17564 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17565 | echo "obj-m := conftest.o" >build/Makefile | |
17566 | modpost_flag='' | |
17567 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17568 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17569 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17570 | (eval $ac_try) 2>&5 | |
17571 | ac_status=$? | |
17572 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17573 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17574 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17575 | (eval $ac_try) 2>&5 | |
17576 | ac_status=$? | |
17577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17578 | test $ac_status = 0; }; }; then : | |
17579 | ||
17580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17581 | $as_echo "yes" >&6; } | |
17582 | ||
17583 | $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h | |
17584 | ||
17585 | ||
17586 | else | |
17587 | $as_echo "$as_me: failed program was:" >&5 | |
17588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17589 | ||
17590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17591 | $as_echo "no" >&6; } | |
17592 | ||
17593 | ||
17594 | ||
17595 | fi | |
17596 | rm -Rf build | |
17597 | ||
17598 | ||
17599 | ||
17600 | ||
17601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5 | |
17602 | $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; } | |
17603 | ||
17604 | ||
17605 | cat confdefs.h - <<_ACEOF >conftest.c | |
17606 | ||
17607 | ||
17608 | #include <linux/xattr.h> | |
17609 | ||
17610 | int get(const struct xattr_handler *handler, | |
17611 | struct dentry *dentry, struct inode *inode, | |
17612 | const char *name, void *buffer, size_t size) { return 0; } | |
17613 | static const struct xattr_handler | |
17614 | xops __attribute__ ((unused)) = { | |
17615 | .get = get, | |
17616 | }; | |
17617 | ||
17618 | int | |
17619 | main (void) | |
17620 | { | |
17621 | ||
17622 | ||
17623 | ; | |
17624 | return 0; | |
17625 | } | |
17626 | ||
17627 | _ACEOF | |
17628 | ||
17629 | ||
17630 | ||
17631 | cat - <<_ACEOF >conftest.h | |
17632 | ||
17633 | _ACEOF | |
17634 | ||
17635 | ||
17636 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17637 | echo "obj-m := conftest.o" >build/Makefile | |
17638 | modpost_flag='' | |
17639 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17640 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17641 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17642 | (eval $ac_try) 2>&5 | |
17643 | ac_status=$? | |
17644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17645 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17646 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17647 | (eval $ac_try) 2>&5 | |
17648 | ac_status=$? | |
17649 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17650 | test $ac_status = 0; }; }; then : | |
17651 | ||
17652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17653 | $as_echo "yes" >&6; } | |
17654 | ||
17655 | $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h | |
17656 | ||
17657 | ||
17658 | else | |
17659 | $as_echo "$as_me: failed program was:" >&5 | |
17660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17661 | ||
17662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5 | |
17663 | $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; } | |
17664 | ||
17665 | ||
17666 | cat confdefs.h - <<_ACEOF >conftest.c | |
17667 | ||
17668 | ||
17669 | #include <linux/xattr.h> | |
17670 | ||
17671 | int get(const struct xattr_handler *handler, | |
17672 | struct dentry *dentry, const char *name, | |
17673 | void *buffer, size_t size) { return 0; } | |
17674 | static const struct xattr_handler | |
17675 | xops __attribute__ ((unused)) = { | |
17676 | .get = get, | |
17677 | }; | |
17678 | ||
17679 | int | |
17680 | main (void) | |
17681 | { | |
17682 | ||
17683 | ||
17684 | ; | |
17685 | return 0; | |
17686 | } | |
17687 | ||
17688 | _ACEOF | |
17689 | ||
17690 | ||
17691 | ||
17692 | cat - <<_ACEOF >conftest.h | |
17693 | ||
17694 | _ACEOF | |
17695 | ||
17696 | ||
17697 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17698 | echo "obj-m := conftest.o" >build/Makefile | |
17699 | modpost_flag='' | |
17700 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17701 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17702 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17703 | (eval $ac_try) 2>&5 | |
17704 | ac_status=$? | |
17705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17706 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17707 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17708 | (eval $ac_try) 2>&5 | |
17709 | ac_status=$? | |
17710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17711 | test $ac_status = 0; }; }; then : | |
17712 | ||
17713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17714 | $as_echo "yes" >&6; } | |
17715 | ||
17716 | $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h | |
17717 | ||
17718 | ||
17719 | else | |
17720 | $as_echo "$as_me: failed program was:" >&5 | |
17721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17722 | ||
17723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17724 | $as_echo "no" >&6; } | |
17725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5 | |
17726 | $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; } | |
17727 | ||
17728 | ||
17729 | cat confdefs.h - <<_ACEOF >conftest.c | |
17730 | ||
17731 | ||
17732 | #include <linux/xattr.h> | |
17733 | ||
17734 | int get(struct dentry *dentry, const char *name, | |
17735 | void *buffer, size_t size, int handler_flags) | |
17736 | { return 0; } | |
17737 | static const struct xattr_handler | |
17738 | xops __attribute__ ((unused)) = { | |
17739 | .get = get, | |
17740 | }; | |
17741 | ||
17742 | int | |
17743 | main (void) | |
17744 | { | |
17745 | ||
17746 | ||
17747 | ; | |
17748 | return 0; | |
17749 | } | |
17750 | ||
17751 | _ACEOF | |
17752 | ||
17753 | ||
17754 | ||
17755 | cat - <<_ACEOF >conftest.h | |
17756 | ||
17757 | _ACEOF | |
17758 | ||
17759 | ||
17760 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17761 | echo "obj-m := conftest.o" >build/Makefile | |
17762 | modpost_flag='' | |
17763 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17764 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17765 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17766 | (eval $ac_try) 2>&5 | |
17767 | ac_status=$? | |
17768 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17769 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17770 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17771 | (eval $ac_try) 2>&5 | |
17772 | ac_status=$? | |
17773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17774 | test $ac_status = 0; }; }; then : | |
17775 | ||
17776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17777 | $as_echo "yes" >&6; } | |
17778 | ||
17779 | $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h | |
17780 | ||
17781 | ||
17782 | else | |
17783 | $as_echo "$as_me: failed program was:" >&5 | |
17784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17785 | ||
17786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17787 | $as_echo "no" >&6; } | |
17788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5 | |
17789 | $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; } | |
17790 | ||
17791 | ||
17792 | cat confdefs.h - <<_ACEOF >conftest.c | |
17793 | ||
17794 | ||
17795 | #include <linux/xattr.h> | |
17796 | ||
17797 | int get(struct inode *ip, const char *name, | |
17798 | void *buffer, size_t size) { return 0; } | |
17799 | static const struct xattr_handler | |
17800 | xops __attribute__ ((unused)) = { | |
17801 | .get = get, | |
17802 | }; | |
17803 | ||
17804 | int | |
17805 | main (void) | |
17806 | { | |
17807 | ||
17808 | ||
17809 | ; | |
17810 | return 0; | |
17811 | } | |
17812 | ||
17813 | _ACEOF | |
17814 | ||
17815 | ||
17816 | ||
17817 | cat - <<_ACEOF >conftest.h | |
17818 | ||
17819 | _ACEOF | |
17820 | ||
17821 | ||
17822 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17823 | echo "obj-m := conftest.o" >build/Makefile | |
17824 | modpost_flag='' | |
17825 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17826 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17827 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17828 | (eval $ac_try) 2>&5 | |
17829 | ac_status=$? | |
17830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17831 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17832 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17833 | (eval $ac_try) 2>&5 | |
17834 | ac_status=$? | |
17835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17836 | test $ac_status = 0; }; }; then : | |
17837 | ||
17838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17839 | $as_echo "yes" >&6; } | |
17840 | ||
17841 | $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h | |
17842 | ||
17843 | ||
17844 | else | |
17845 | $as_echo "$as_me: failed program was:" >&5 | |
17846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17847 | ||
17848 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
17849 | ||
17850 | ||
17851 | ||
17852 | fi | |
17853 | rm -Rf build | |
17854 | ||
17855 | ||
17856 | ||
17857 | ||
17858 | ||
17859 | fi | |
17860 | rm -Rf build | |
17861 | ||
17862 | ||
17863 | ||
17864 | ||
17865 | ||
17866 | fi | |
17867 | rm -Rf build | |
17868 | ||
17869 | ||
17870 | ||
17871 | ||
17872 | ||
17873 | fi | |
17874 | rm -Rf build | |
17875 | ||
17876 | ||
17877 | ||
17878 | ||
17879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5 | |
17880 | $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; } | |
17881 | ||
17882 | ||
17883 | cat confdefs.h - <<_ACEOF >conftest.c | |
17884 | ||
17885 | ||
17886 | #include <linux/xattr.h> | |
17887 | ||
17888 | int set(const struct xattr_handler *handler, | |
17889 | struct dentry *dentry, struct inode *inode, | |
17890 | const char *name, const void *buffer, | |
17891 | size_t size, int flags) | |
17892 | { return 0; } | |
17893 | static const struct xattr_handler | |
17894 | xops __attribute__ ((unused)) = { | |
17895 | .set = set, | |
17896 | }; | |
17897 | ||
17898 | int | |
17899 | main (void) | |
17900 | { | |
17901 | ||
17902 | ||
17903 | ; | |
17904 | return 0; | |
17905 | } | |
17906 | ||
17907 | _ACEOF | |
17908 | ||
17909 | ||
17910 | ||
17911 | cat - <<_ACEOF >conftest.h | |
17912 | ||
17913 | _ACEOF | |
17914 | ||
17915 | ||
17916 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17917 | echo "obj-m := conftest.o" >build/Makefile | |
17918 | modpost_flag='' | |
17919 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17920 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17921 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17922 | (eval $ac_try) 2>&5 | |
17923 | ac_status=$? | |
17924 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17925 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17926 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17927 | (eval $ac_try) 2>&5 | |
17928 | ac_status=$? | |
17929 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17930 | test $ac_status = 0; }; }; then : | |
17931 | ||
17932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17933 | $as_echo "yes" >&6; } | |
17934 | ||
17935 | $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h | |
17936 | ||
17937 | ||
17938 | else | |
17939 | $as_echo "$as_me: failed program was:" >&5 | |
17940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17941 | ||
17942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5 | |
17943 | $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; } | |
17944 | ||
17945 | ||
17946 | cat confdefs.h - <<_ACEOF >conftest.c | |
17947 | ||
17948 | ||
17949 | #include <linux/xattr.h> | |
17950 | ||
17951 | int set(const struct xattr_handler *handler, | |
17952 | struct dentry *dentry, const char *name, | |
17953 | const void *buffer, size_t size, int flags) | |
17954 | { return 0; } | |
17955 | static const struct xattr_handler | |
17956 | xops __attribute__ ((unused)) = { | |
17957 | .set = set, | |
17958 | }; | |
17959 | ||
17960 | int | |
17961 | main (void) | |
17962 | { | |
17963 | ||
17964 | ||
17965 | ; | |
17966 | return 0; | |
17967 | } | |
17968 | ||
17969 | _ACEOF | |
17970 | ||
17971 | ||
17972 | ||
17973 | cat - <<_ACEOF >conftest.h | |
17974 | ||
17975 | _ACEOF | |
17976 | ||
17977 | ||
17978 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17979 | echo "obj-m := conftest.o" >build/Makefile | |
17980 | modpost_flag='' | |
17981 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17982 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17983 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17984 | (eval $ac_try) 2>&5 | |
17985 | ac_status=$? | |
17986 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17987 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17988 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17989 | (eval $ac_try) 2>&5 | |
17990 | ac_status=$? | |
17991 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17992 | test $ac_status = 0; }; }; then : | |
17993 | ||
17994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17995 | $as_echo "yes" >&6; } | |
17996 | ||
17997 | $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h | |
17998 | ||
17999 | ||
18000 | else | |
18001 | $as_echo "$as_me: failed program was:" >&5 | |
18002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18003 | ||
18004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18005 | $as_echo "no" >&6; } | |
18006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5 | |
18007 | $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; } | |
18008 | ||
18009 | ||
18010 | cat confdefs.h - <<_ACEOF >conftest.c | |
18011 | ||
18012 | ||
18013 | #include <linux/xattr.h> | |
18014 | ||
18015 | int set(struct dentry *dentry, const char *name, | |
18016 | const void *buffer, size_t size, int flags, | |
18017 | int handler_flags) { return 0; } | |
18018 | static const struct xattr_handler | |
18019 | xops __attribute__ ((unused)) = { | |
18020 | .set = set, | |
18021 | }; | |
18022 | ||
18023 | int | |
18024 | main (void) | |
18025 | { | |
18026 | ||
18027 | ||
18028 | ; | |
18029 | return 0; | |
18030 | } | |
18031 | ||
18032 | _ACEOF | |
18033 | ||
18034 | ||
18035 | ||
18036 | cat - <<_ACEOF >conftest.h | |
18037 | ||
18038 | _ACEOF | |
18039 | ||
18040 | ||
18041 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18042 | echo "obj-m := conftest.o" >build/Makefile | |
18043 | modpost_flag='' | |
18044 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18045 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18046 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18047 | (eval $ac_try) 2>&5 | |
18048 | ac_status=$? | |
18049 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18050 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18051 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18052 | (eval $ac_try) 2>&5 | |
18053 | ac_status=$? | |
18054 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18055 | test $ac_status = 0; }; }; then : | |
18056 | ||
18057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18058 | $as_echo "yes" >&6; } | |
18059 | ||
18060 | $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h | |
18061 | ||
18062 | ||
18063 | else | |
18064 | $as_echo "$as_me: failed program was:" >&5 | |
18065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18066 | ||
18067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18068 | $as_echo "no" >&6; } | |
18069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5 | |
18070 | $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; } | |
18071 | ||
18072 | ||
18073 | cat confdefs.h - <<_ACEOF >conftest.c | |
18074 | ||
18075 | ||
18076 | #include <linux/xattr.h> | |
18077 | ||
18078 | int set(struct inode *ip, const char *name, | |
18079 | const void *buffer, size_t size, int flags) | |
18080 | { return 0; } | |
18081 | static const struct xattr_handler | |
18082 | xops __attribute__ ((unused)) = { | |
18083 | .set = set, | |
18084 | }; | |
18085 | ||
18086 | int | |
18087 | main (void) | |
18088 | { | |
18089 | ||
18090 | ||
18091 | ; | |
18092 | return 0; | |
18093 | } | |
18094 | ||
18095 | _ACEOF | |
18096 | ||
18097 | ||
18098 | ||
18099 | cat - <<_ACEOF >conftest.h | |
18100 | ||
18101 | _ACEOF | |
18102 | ||
18103 | ||
18104 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18105 | echo "obj-m := conftest.o" >build/Makefile | |
18106 | modpost_flag='' | |
18107 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18108 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18109 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18110 | (eval $ac_try) 2>&5 | |
18111 | ac_status=$? | |
18112 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18113 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18114 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18115 | (eval $ac_try) 2>&5 | |
18116 | ac_status=$? | |
18117 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18118 | test $ac_status = 0; }; }; then : | |
18119 | ||
18120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18121 | $as_echo "yes" >&6; } | |
18122 | ||
18123 | $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h | |
18124 | ||
18125 | ||
18126 | else | |
18127 | $as_echo "$as_me: failed program was:" >&5 | |
18128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18129 | ||
18130 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
18131 | ||
18132 | ||
18133 | ||
18134 | fi | |
18135 | rm -Rf build | |
18136 | ||
18137 | ||
18138 | ||
18139 | ||
18140 | ||
18141 | fi | |
18142 | rm -Rf build | |
18143 | ||
18144 | ||
18145 | ||
18146 | ||
18147 | ||
18148 | fi | |
18149 | rm -Rf build | |
18150 | ||
18151 | ||
18152 | ||
18153 | ||
18154 | ||
18155 | fi | |
18156 | rm -Rf build | |
18157 | ||
18158 | ||
18159 | ||
18160 | ||
18161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5 | |
18162 | $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; } | |
18163 | ||
18164 | ||
18165 | cat confdefs.h - <<_ACEOF >conftest.c | |
18166 | ||
18167 | ||
18168 | #include <linux/xattr.h> | |
18169 | ||
18170 | bool list(struct dentry *dentry) { return 0; } | |
18171 | static const struct xattr_handler | |
18172 | xops __attribute__ ((unused)) = { | |
18173 | .list = list, | |
18174 | }; | |
18175 | ||
18176 | int | |
18177 | main (void) | |
18178 | { | |
18179 | ||
18180 | ||
18181 | ; | |
18182 | return 0; | |
18183 | } | |
18184 | ||
18185 | _ACEOF | |
18186 | ||
18187 | ||
18188 | ||
18189 | cat - <<_ACEOF >conftest.h | |
18190 | ||
18191 | _ACEOF | |
18192 | ||
18193 | ||
18194 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18195 | echo "obj-m := conftest.o" >build/Makefile | |
18196 | modpost_flag='' | |
18197 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18198 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18199 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18200 | (eval $ac_try) 2>&5 | |
18201 | ac_status=$? | |
18202 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18203 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18204 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18205 | (eval $ac_try) 2>&5 | |
18206 | ac_status=$? | |
18207 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18208 | test $ac_status = 0; }; }; then : | |
18209 | ||
18210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18211 | $as_echo "yes" >&6; } | |
18212 | ||
18213 | $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h | |
18214 | ||
18215 | ||
18216 | else | |
18217 | $as_echo "$as_me: failed program was:" >&5 | |
18218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18219 | ||
18220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18221 | $as_echo "no" >&6; } | |
18222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5 | |
18223 | $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; } | |
18224 | ||
18225 | ||
18226 | cat confdefs.h - <<_ACEOF >conftest.c | |
18227 | ||
18228 | ||
18229 | #include <linux/xattr.h> | |
18230 | ||
18231 | size_t list(const struct xattr_handler *handler, | |
18232 | struct dentry *dentry, char *list, size_t list_size, | |
18233 | const char *name, size_t name_len) { return 0; } | |
18234 | static const struct xattr_handler | |
18235 | xops __attribute__ ((unused)) = { | |
18236 | .list = list, | |
18237 | }; | |
18238 | ||
18239 | int | |
18240 | main (void) | |
18241 | { | |
18242 | ||
18243 | ||
18244 | ; | |
18245 | return 0; | |
18246 | } | |
18247 | ||
18248 | _ACEOF | |
18249 | ||
18250 | ||
18251 | ||
18252 | cat - <<_ACEOF >conftest.h | |
18253 | ||
18254 | _ACEOF | |
18255 | ||
18256 | ||
18257 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18258 | echo "obj-m := conftest.o" >build/Makefile | |
18259 | modpost_flag='' | |
18260 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18261 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18262 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18263 | (eval $ac_try) 2>&5 | |
18264 | ac_status=$? | |
18265 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18266 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18267 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18268 | (eval $ac_try) 2>&5 | |
18269 | ac_status=$? | |
18270 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18271 | test $ac_status = 0; }; }; then : | |
18272 | ||
18273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18274 | $as_echo "yes" >&6; } | |
18275 | ||
18276 | $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h | |
18277 | ||
18278 | ||
18279 | else | |
18280 | $as_echo "$as_me: failed program was:" >&5 | |
18281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18282 | ||
18283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18284 | $as_echo "no" >&6; } | |
18285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5 | |
18286 | $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; } | |
18287 | ||
18288 | ||
18289 | cat confdefs.h - <<_ACEOF >conftest.c | |
18290 | ||
18291 | ||
18292 | #include <linux/xattr.h> | |
18293 | ||
18294 | size_t list(struct dentry *dentry, | |
18295 | char *list, size_t list_size, | |
18296 | const char *name, size_t name_len, | |
18297 | int handler_flags) { return 0; } | |
18298 | static const struct xattr_handler | |
18299 | xops __attribute__ ((unused)) = { | |
18300 | .list = list, | |
18301 | }; | |
18302 | ||
18303 | int | |
18304 | main (void) | |
18305 | { | |
18306 | ||
18307 | ||
18308 | ; | |
18309 | return 0; | |
18310 | } | |
18311 | ||
18312 | _ACEOF | |
18313 | ||
18314 | ||
18315 | ||
18316 | cat - <<_ACEOF >conftest.h | |
18317 | ||
18318 | _ACEOF | |
18319 | ||
18320 | ||
18321 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18322 | echo "obj-m := conftest.o" >build/Makefile | |
18323 | modpost_flag='' | |
18324 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18325 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18326 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18327 | (eval $ac_try) 2>&5 | |
18328 | ac_status=$? | |
18329 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18330 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18331 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18332 | (eval $ac_try) 2>&5 | |
18333 | ac_status=$? | |
18334 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18335 | test $ac_status = 0; }; }; then : | |
18336 | ||
18337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18338 | $as_echo "yes" >&6; } | |
18339 | ||
18340 | $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h | |
18341 | ||
18342 | ||
18343 | else | |
18344 | $as_echo "$as_me: failed program was:" >&5 | |
18345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18346 | ||
18347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18348 | $as_echo "no" >&6; } | |
18349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5 | |
18350 | $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; } | |
18351 | ||
18352 | ||
18353 | cat confdefs.h - <<_ACEOF >conftest.c | |
18354 | ||
18355 | ||
18356 | #include <linux/xattr.h> | |
18357 | ||
18358 | size_t list(struct inode *ip, char *lst, | |
18359 | size_t list_size, const char *name, | |
18360 | size_t name_len) { return 0; } | |
18361 | static const struct xattr_handler | |
18362 | xops __attribute__ ((unused)) = { | |
18363 | .list = list, | |
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_XATTR_LIST_INODE 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_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
18411 | ||
18412 | ||
18413 | ||
18414 | fi | |
18415 | rm -Rf build | |
18416 | ||
18417 | ||
18418 | ||
18419 | ||
18420 | ||
18421 | fi | |
18422 | rm -Rf build | |
18423 | ||
18424 | ||
18425 | ||
18426 | ||
18427 | ||
18428 | fi | |
18429 | rm -Rf build | |
18430 | ||
18431 | ||
18432 | ||
18433 | ||
18434 | ||
18435 | fi | |
18436 | rm -Rf build | |
18437 | ||
18438 | ||
18439 | ||
18440 | ||
18441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5 | |
18442 | $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; } | |
18443 | ||
18444 | ||
18445 | cat confdefs.h - <<_ACEOF >conftest.c | |
18446 | ||
18447 | ||
18448 | #include <linux/fs.h> | |
18449 | ||
18450 | int | |
18451 | main (void) | |
18452 | { | |
18453 | ||
18454 | struct inode *ip = NULL; | |
18455 | (void) inode_owner_or_capable(ip); | |
18456 | ||
18457 | ; | |
18458 | return 0; | |
18459 | } | |
18460 | ||
18461 | _ACEOF | |
18462 | ||
18463 | ||
18464 | ||
18465 | cat - <<_ACEOF >conftest.h | |
18466 | ||
18467 | _ACEOF | |
18468 | ||
18469 | ||
18470 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18471 | echo "obj-m := conftest.o" >build/Makefile | |
18472 | modpost_flag='' | |
18473 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18474 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18475 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18476 | (eval $ac_try) 2>&5 | |
18477 | ac_status=$? | |
18478 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18479 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18480 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18481 | (eval $ac_try) 2>&5 | |
18482 | ac_status=$? | |
18483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18484 | test $ac_status = 0; }; }; then : | |
18485 | ||
18486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18487 | $as_echo "yes" >&6; } | |
18488 | ||
18489 | $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h | |
18490 | ||
18491 | ||
18492 | else | |
18493 | $as_echo "$as_me: failed program was:" >&5 | |
18494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18495 | ||
18496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18497 | $as_echo "no" >&6; } | |
18498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5 | |
18499 | $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; } | |
18500 | ||
18501 | ||
18502 | cat confdefs.h - <<_ACEOF >conftest.c | |
18503 | ||
18504 | ||
18505 | #include <linux/fs.h> | |
18506 | #include <linux/sched.h> | |
18507 | ||
18508 | int | |
18509 | main (void) | |
18510 | { | |
18511 | ||
18512 | struct inode *ip = NULL; | |
18513 | (void) is_owner_or_cap(ip); | |
18514 | ||
18515 | ; | |
18516 | return 0; | |
18517 | } | |
18518 | ||
18519 | _ACEOF | |
18520 | ||
18521 | ||
18522 | ||
18523 | cat - <<_ACEOF >conftest.h | |
18524 | ||
18525 | _ACEOF | |
18526 | ||
18527 | ||
18528 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18529 | echo "obj-m := conftest.o" >build/Makefile | |
18530 | modpost_flag='' | |
18531 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18532 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18538 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18539 | (eval $ac_try) 2>&5 | |
18540 | ac_status=$? | |
18541 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18542 | test $ac_status = 0; }; }; then : | |
18543 | ||
18544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18545 | $as_echo "yes" >&6; } | |
18546 | ||
18547 | $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h | |
18548 | ||
18549 | ||
18550 | else | |
18551 | $as_echo "$as_me: failed program was:" >&5 | |
18552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18553 | ||
18554 | as_fn_error $? "no - Please file a bug report at | |
18555 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
18556 | ||
18557 | ||
18558 | ||
18559 | fi | |
18560 | rm -Rf build | |
18561 | ||
18562 | ||
18563 | ||
18564 | ||
18565 | ||
18566 | fi | |
18567 | rm -Rf build | |
18568 | ||
18569 | ||
18570 | ||
18571 | ||
18572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5 | |
18573 | $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; } | |
18574 | ||
18575 | ||
18576 | cat confdefs.h - <<_ACEOF >conftest.c | |
18577 | ||
18578 | ||
18579 | #include <linux/cred.h> | |
18580 | #include <linux/fs.h> | |
18581 | #include <linux/posix_acl_xattr.h> | |
18582 | ||
18583 | int | |
18584 | main (void) | |
18585 | { | |
18586 | ||
18587 | posix_acl_from_xattr(&init_user_ns, NULL, 0); | |
18588 | ||
18589 | ; | |
18590 | return 0; | |
18591 | } | |
18592 | ||
18593 | _ACEOF | |
18594 | ||
18595 | ||
18596 | ||
18597 | cat - <<_ACEOF >conftest.h | |
18598 | ||
18599 | _ACEOF | |
18600 | ||
18601 | ||
18602 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18603 | echo "obj-m := conftest.o" >build/Makefile | |
18604 | modpost_flag='' | |
18605 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18606 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18607 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18608 | (eval $ac_try) 2>&5 | |
18609 | ac_status=$? | |
18610 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18611 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18612 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18613 | (eval $ac_try) 2>&5 | |
18614 | ac_status=$? | |
18615 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18616 | test $ac_status = 0; }; }; then : | |
18617 | ||
18618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18619 | $as_echo "yes" >&6; } | |
18620 | ||
18621 | $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h | |
18622 | ||
18623 | ||
18624 | else | |
18625 | $as_echo "$as_me: failed program was:" >&5 | |
18626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18627 | ||
18628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18629 | $as_echo "no" >&6; } | |
18630 | ||
18631 | ||
18632 | ||
18633 | fi | |
18634 | rm -Rf build | |
18635 | ||
18636 | ||
18637 | ||
18638 | ||
18639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5 | |
18640 | $as_echo_n "checking whether posix_acl_release() is available... " >&6; } | |
18641 | ||
18642 | ||
18643 | cat confdefs.h - <<_ACEOF >conftest.c | |
18644 | ||
18645 | ||
18646 | #include <linux/cred.h> | |
18647 | #include <linux/fs.h> | |
18648 | #include <linux/posix_acl.h> | |
18649 | ||
18650 | int | |
18651 | main (void) | |
18652 | { | |
18653 | ||
18654 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
18655 | posix_acl_release(tmp); | |
18656 | ||
18657 | ; | |
18658 | return 0; | |
18659 | } | |
18660 | ||
18661 | _ACEOF | |
18662 | ||
18663 | ||
18664 | ||
18665 | cat - <<_ACEOF >conftest.h | |
18666 | ||
18667 | _ACEOF | |
18668 | ||
18669 | ||
18670 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18671 | echo "obj-m := conftest.o" >build/Makefile | |
18672 | modpost_flag='' | |
18673 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18674 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18675 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18676 | (eval $ac_try) 2>&5 | |
18677 | ac_status=$? | |
18678 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18679 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18680 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18681 | (eval $ac_try) 2>&5 | |
18682 | ac_status=$? | |
18683 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18684 | test $ac_status = 0; }; }; then : | |
18685 | ||
18686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18687 | $as_echo "yes" >&6; } | |
18688 | ||
18689 | $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h | |
18690 | ||
18691 | ||
18692 | else | |
18693 | $as_echo "$as_me: failed program was:" >&5 | |
18694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18695 | ||
18696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18697 | $as_echo "no" >&6; } | |
18698 | ||
18699 | ||
18700 | ||
18701 | fi | |
18702 | rm -Rf build | |
18703 | ||
18704 | ||
18705 | ||
18706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5 | |
18707 | $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; } | |
18708 | ||
18709 | ||
18710 | cat confdefs.h - <<_ACEOF >conftest.c | |
18711 | ||
18712 | ||
18713 | #include <linux/cred.h> | |
18714 | #include <linux/fs.h> | |
18715 | #include <linux/posix_acl.h> | |
18716 | ||
18717 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
18718 | ||
18719 | int | |
18720 | main (void) | |
18721 | { | |
18722 | ||
18723 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
18724 | posix_acl_release(tmp); | |
18725 | ||
18726 | ; | |
18727 | return 0; | |
18728 | } | |
18729 | ||
18730 | _ACEOF | |
18731 | ||
18732 | ||
18733 | ||
18734 | cat - <<_ACEOF >conftest.h | |
18735 | ||
18736 | _ACEOF | |
18737 | ||
18738 | ||
18739 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18740 | echo "obj-m := conftest.o" >build/Makefile | |
18741 | modpost_flag='' | |
18742 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18743 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18744 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18745 | (eval $ac_try) 2>&5 | |
18746 | ac_status=$? | |
18747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18748 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18749 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18750 | (eval $ac_try) 2>&5 | |
18751 | ac_status=$? | |
18752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18753 | test $ac_status = 0; }; }; then : | |
18754 | ||
18755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18756 | $as_echo "no" >&6; } | |
18757 | ||
18758 | else | |
18759 | $as_echo "$as_me: failed program was:" >&5 | |
18760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18761 | ||
18762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18763 | $as_echo "yes" >&6; } | |
18764 | ||
18765 | $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h | |
18766 | ||
18767 | ||
18768 | ||
18769 | ||
18770 | fi | |
18771 | rm -Rf build | |
18772 | ||
18773 | ||
18774 | ||
18775 | ||
18776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5 | |
18777 | $as_echo_n "checking whether set_cached_acl() is usable... " >&6; } | |
18778 | ||
18779 | ||
18780 | cat confdefs.h - <<_ACEOF >conftest.c | |
18781 | ||
18782 | ||
18783 | #include <linux/module.h> | |
18784 | #include <linux/cred.h> | |
18785 | #include <linux/fs.h> | |
18786 | #include <linux/posix_acl.h> | |
18787 | ||
18788 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
18789 | ||
18790 | int | |
18791 | main (void) | |
18792 | { | |
18793 | ||
18794 | struct inode *ip = NULL; | |
18795 | struct posix_acl *acl = posix_acl_alloc(1, 0); | |
18796 | set_cached_acl(ip, ACL_TYPE_ACCESS, acl); | |
18797 | forget_cached_acl(ip, ACL_TYPE_ACCESS); | |
18798 | ||
18799 | ; | |
18800 | return 0; | |
18801 | } | |
18802 | ||
18803 | _ACEOF | |
18804 | ||
18805 | ||
18806 | ||
18807 | cat - <<_ACEOF >conftest.h | |
18808 | ||
18809 | _ACEOF | |
18810 | ||
18811 | ||
18812 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18813 | echo "obj-m := conftest.o" >build/Makefile | |
18814 | modpost_flag='' | |
18815 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18816 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18817 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18818 | (eval $ac_try) 2>&5 | |
18819 | ac_status=$? | |
18820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18821 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18822 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18823 | (eval $ac_try) 2>&5 | |
18824 | ac_status=$? | |
18825 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18826 | test $ac_status = 0; }; }; then : | |
18827 | ||
18828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18829 | $as_echo "yes" >&6; } | |
18830 | ||
18831 | $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h | |
18832 | ||
18833 | ||
18834 | else | |
18835 | $as_echo "$as_me: failed program was:" >&5 | |
18836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18837 | ||
18838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18839 | $as_echo "no" >&6; } | |
18840 | ||
18841 | ||
18842 | ||
18843 | fi | |
18844 | rm -Rf build | |
18845 | ||
18846 | ||
18847 | ||
18848 | ||
18849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5 | |
18850 | $as_echo_n "checking whether posix_acl_chmod exists... " >&6; } | |
18851 | ||
18852 | ||
18853 | cat confdefs.h - <<_ACEOF >conftest.c | |
18854 | ||
18855 | ||
18856 | #include <linux/fs.h> | |
18857 | #include <linux/posix_acl.h> | |
18858 | ||
18859 | int | |
18860 | main (void) | |
18861 | { | |
18862 | ||
18863 | posix_acl_chmod(NULL, 0, 0) | |
18864 | ||
18865 | ; | |
18866 | return 0; | |
18867 | } | |
18868 | ||
18869 | _ACEOF | |
18870 | ||
18871 | ||
18872 | ||
18873 | cat - <<_ACEOF >conftest.h | |
18874 | ||
18875 | _ACEOF | |
18876 | ||
18877 | ||
18878 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18879 | echo "obj-m := conftest.o" >build/Makefile | |
18880 | modpost_flag='' | |
18881 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18882 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18883 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18884 | (eval $ac_try) 2>&5 | |
18885 | ac_status=$? | |
18886 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18887 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18888 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18889 | (eval $ac_try) 2>&5 | |
18890 | ac_status=$? | |
18891 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18892 | test $ac_status = 0; }; }; then : | |
18893 | ||
18894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18895 | $as_echo "yes" >&6; } | |
18896 | ||
18897 | $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h | |
18898 | ||
18899 | ||
18900 | else | |
18901 | $as_echo "$as_me: failed program was:" >&5 | |
18902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18903 | ||
18904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18905 | $as_echo "no" >&6; } | |
18906 | ||
18907 | ||
18908 | ||
18909 | fi | |
18910 | rm -Rf build | |
18911 | ||
18912 | ||
18913 | ||
18914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5 | |
18915 | $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; } | |
18916 | ||
18917 | ||
18918 | cat confdefs.h - <<_ACEOF >conftest.c | |
18919 | ||
18920 | ||
18921 | #include <linux/fs.h> | |
18922 | #include <linux/posix_acl.h> | |
18923 | ||
18924 | int | |
18925 | main (void) | |
18926 | { | |
18927 | ||
18928 | __posix_acl_chmod(NULL, 0, 0) | |
18929 | ||
18930 | ; | |
18931 | return 0; | |
18932 | } | |
18933 | ||
18934 | _ACEOF | |
18935 | ||
18936 | ||
18937 | ||
18938 | cat - <<_ACEOF >conftest.h | |
18939 | ||
18940 | _ACEOF | |
18941 | ||
18942 | ||
18943 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18944 | echo "obj-m := conftest.o" >build/Makefile | |
18945 | modpost_flag='' | |
18946 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18947 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18948 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18949 | (eval $ac_try) 2>&5 | |
18950 | ac_status=$? | |
18951 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18952 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18953 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18954 | (eval $ac_try) 2>&5 | |
18955 | ac_status=$? | |
18956 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18957 | test $ac_status = 0; }; }; then : | |
18958 | ||
18959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18960 | $as_echo "yes" >&6; } | |
18961 | ||
18962 | $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h | |
18963 | ||
18964 | ||
18965 | else | |
18966 | $as_echo "$as_me: failed program was:" >&5 | |
18967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18968 | ||
18969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18970 | $as_echo "no" >&6; } | |
18971 | ||
18972 | ||
18973 | ||
18974 | fi | |
18975 | rm -Rf build | |
18976 | ||
18977 | ||
18978 | ||
18979 | ||
18980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5 | |
18981 | $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; } | |
18982 | ||
18983 | ||
18984 | cat confdefs.h - <<_ACEOF >conftest.c | |
18985 | ||
18986 | ||
18987 | #include <linux/fs.h> | |
18988 | #include <linux/posix_acl.h> | |
18989 | ||
18990 | int | |
18991 | main (void) | |
18992 | { | |
18993 | ||
18994 | umode_t tmp; | |
18995 | posix_acl_equiv_mode(NULL,&tmp); | |
18996 | ||
18997 | ; | |
18998 | return 0; | |
18999 | } | |
19000 | ||
19001 | _ACEOF | |
19002 | ||
19003 | ||
19004 | ||
19005 | cat - <<_ACEOF >conftest.h | |
19006 | ||
19007 | _ACEOF | |
19008 | ||
19009 | ||
19010 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19011 | echo "obj-m := conftest.o" >build/Makefile | |
19012 | modpost_flag='' | |
19013 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19014 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19015 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19016 | (eval $ac_try) 2>&5 | |
19017 | ac_status=$? | |
19018 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19019 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19020 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19021 | (eval $ac_try) 2>&5 | |
19022 | ac_status=$? | |
19023 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19024 | test $ac_status = 0; }; }; then : | |
19025 | ||
19026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19027 | $as_echo "yes" >&6; } | |
19028 | ||
19029 | $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h | |
19030 | ||
19031 | ||
19032 | else | |
19033 | $as_echo "$as_me: failed program was:" >&5 | |
19034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19035 | ||
19036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19037 | $as_echo "no" >&6; } | |
19038 | ||
19039 | ||
19040 | ||
19041 | fi | |
19042 | rm -Rf build | |
19043 | ||
19044 | ||
19045 | ||
19046 | ||
19047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5 | |
19048 | $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; } | |
19049 | ||
19050 | ||
19051 | cat confdefs.h - <<_ACEOF >conftest.c | |
19052 | ||
19053 | ||
19054 | #include <linux/fs.h> | |
19055 | #include <linux/posix_acl.h> | |
19056 | ||
19057 | int | |
19058 | main (void) | |
19059 | { | |
19060 | ||
19061 | struct user_namespace *user_ns = NULL; | |
19062 | const struct posix_acl *acl = NULL; | |
19063 | int error; | |
19064 | ||
19065 | error = posix_acl_valid(user_ns, acl); | |
19066 | ||
19067 | ; | |
19068 | return 0; | |
19069 | } | |
19070 | ||
19071 | _ACEOF | |
19072 | ||
19073 | ||
19074 | ||
19075 | cat - <<_ACEOF >conftest.h | |
19076 | ||
19077 | _ACEOF | |
19078 | ||
19079 | ||
19080 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19081 | echo "obj-m := conftest.o" >build/Makefile | |
19082 | modpost_flag='' | |
19083 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19084 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19085 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19086 | (eval $ac_try) 2>&5 | |
19087 | ac_status=$? | |
19088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19089 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19090 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19091 | (eval $ac_try) 2>&5 | |
19092 | ac_status=$? | |
19093 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19094 | test $ac_status = 0; }; }; then : | |
19095 | ||
19096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19097 | $as_echo "yes" >&6; } | |
19098 | ||
19099 | $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h | |
19100 | ||
19101 | ||
19102 | else | |
19103 | $as_echo "$as_me: failed program was:" >&5 | |
19104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19105 | ||
19106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19107 | $as_echo "no" >&6; } | |
19108 | ||
19109 | ||
19110 | ||
19111 | fi | |
19112 | rm -Rf build | |
19113 | ||
19114 | ||
19115 | ||
19116 | ||
19117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5 | |
19118 | $as_echo_n "checking whether iops->permission() exists... " >&6; } | |
19119 | ||
19120 | ||
19121 | cat confdefs.h - <<_ACEOF >conftest.c | |
19122 | ||
19123 | ||
19124 | #include <linux/fs.h> | |
19125 | ||
19126 | int permission_fn(struct inode *inode, int mask) { return 0; } | |
19127 | ||
19128 | static const struct inode_operations | |
19129 | iops __attribute__ ((unused)) = { | |
19130 | .permission = permission_fn, | |
19131 | }; | |
19132 | ||
19133 | int | |
19134 | main (void) | |
19135 | { | |
19136 | ||
19137 | ||
19138 | ; | |
19139 | return 0; | |
19140 | } | |
19141 | ||
19142 | _ACEOF | |
19143 | ||
19144 | ||
19145 | ||
19146 | cat - <<_ACEOF >conftest.h | |
19147 | ||
19148 | _ACEOF | |
19149 | ||
19150 | ||
19151 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19152 | echo "obj-m := conftest.o" >build/Makefile | |
19153 | modpost_flag='' | |
19154 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19155 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19156 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19157 | (eval $ac_try) 2>&5 | |
19158 | ac_status=$? | |
19159 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19160 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19161 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19162 | (eval $ac_try) 2>&5 | |
19163 | ac_status=$? | |
19164 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19165 | test $ac_status = 0; }; }; then : | |
19166 | ||
19167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19168 | $as_echo "yes" >&6; } | |
19169 | ||
19170 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
19171 | ||
19172 | ||
19173 | else | |
19174 | $as_echo "$as_me: failed program was:" >&5 | |
19175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19176 | ||
19177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19178 | $as_echo "no" >&6; } | |
19179 | ||
19180 | ||
19181 | ||
19182 | fi | |
19183 | rm -Rf build | |
19184 | ||
19185 | ||
19186 | ||
19187 | ||
19188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5 | |
19189 | $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; } | |
19190 | ||
19191 | ||
19192 | cat confdefs.h - <<_ACEOF >conftest.c | |
19193 | ||
19194 | ||
19195 | #include <linux/fs.h> | |
19196 | ||
19197 | int permission_fn(struct inode *inode, int mask, | |
19198 | struct nameidata *nd) { return 0; } | |
19199 | ||
19200 | static const struct inode_operations | |
19201 | iops __attribute__ ((unused)) = { | |
19202 | .permission = permission_fn, | |
19203 | }; | |
19204 | ||
19205 | int | |
19206 | main (void) | |
19207 | { | |
19208 | ||
19209 | ||
19210 | ; | |
19211 | return 0; | |
19212 | } | |
19213 | ||
19214 | _ACEOF | |
19215 | ||
19216 | ||
19217 | ||
19218 | cat - <<_ACEOF >conftest.h | |
19219 | ||
19220 | _ACEOF | |
19221 | ||
19222 | ||
19223 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19224 | echo "obj-m := conftest.o" >build/Makefile | |
19225 | modpost_flag='' | |
19226 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19227 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19228 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19229 | (eval $ac_try) 2>&5 | |
19230 | ac_status=$? | |
19231 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19232 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19233 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19234 | (eval $ac_try) 2>&5 | |
19235 | ac_status=$? | |
19236 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19237 | test $ac_status = 0; }; }; then : | |
19238 | ||
19239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19240 | $as_echo "yes" >&6; } | |
19241 | ||
19242 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
19243 | ||
19244 | ||
19245 | $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h | |
19246 | ||
19247 | ||
19248 | else | |
19249 | $as_echo "$as_me: failed program was:" >&5 | |
19250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19251 | ||
19252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19253 | $as_echo "no" >&6; } | |
19254 | ||
19255 | ||
19256 | ||
19257 | fi | |
19258 | rm -Rf build | |
19259 | ||
19260 | ||
19261 | ||
19262 | ||
19263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5 | |
19264 | $as_echo_n "checking whether iops->check_acl() exists... " >&6; } | |
19265 | ||
19266 | ||
19267 | cat confdefs.h - <<_ACEOF >conftest.c | |
19268 | ||
19269 | ||
19270 | #include <linux/fs.h> | |
19271 | ||
19272 | int check_acl_fn(struct inode *inode, int mask) { return 0; } | |
19273 | ||
19274 | static const struct inode_operations | |
19275 | iops __attribute__ ((unused)) = { | |
19276 | .check_acl = check_acl_fn, | |
19277 | }; | |
19278 | ||
19279 | int | |
19280 | main (void) | |
19281 | { | |
19282 | ||
19283 | ||
19284 | ; | |
19285 | return 0; | |
19286 | } | |
19287 | ||
19288 | _ACEOF | |
19289 | ||
19290 | ||
19291 | ||
19292 | cat - <<_ACEOF >conftest.h | |
19293 | ||
19294 | _ACEOF | |
19295 | ||
19296 | ||
19297 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19298 | echo "obj-m := conftest.o" >build/Makefile | |
19299 | modpost_flag='' | |
19300 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19301 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19302 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19303 | (eval $ac_try) 2>&5 | |
19304 | ac_status=$? | |
19305 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19306 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19307 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19308 | (eval $ac_try) 2>&5 | |
19309 | ac_status=$? | |
19310 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19311 | test $ac_status = 0; }; }; then : | |
19312 | ||
19313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19314 | $as_echo "yes" >&6; } | |
19315 | ||
19316 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
19317 | ||
19318 | ||
19319 | else | |
19320 | $as_echo "$as_me: failed program was:" >&5 | |
19321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19322 | ||
19323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19324 | $as_echo "no" >&6; } | |
19325 | ||
19326 | ||
19327 | ||
19328 | fi | |
19329 | rm -Rf build | |
19330 | ||
19331 | ||
19332 | ||
19333 | ||
19334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5 | |
19335 | $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; } | |
19336 | ||
19337 | ||
19338 | cat confdefs.h - <<_ACEOF >conftest.c | |
19339 | ||
19340 | ||
19341 | #include <linux/fs.h> | |
19342 | ||
19343 | int check_acl_fn(struct inode *inode, int mask, | |
19344 | unsigned int flags) { return 0; } | |
19345 | ||
19346 | static const struct inode_operations | |
19347 | iops __attribute__ ((unused)) = { | |
19348 | .check_acl = check_acl_fn, | |
19349 | }; | |
19350 | ||
19351 | int | |
19352 | main (void) | |
19353 | { | |
19354 | ||
19355 | ||
19356 | ; | |
19357 | return 0; | |
19358 | } | |
19359 | ||
19360 | _ACEOF | |
19361 | ||
19362 | ||
19363 | ||
19364 | cat - <<_ACEOF >conftest.h | |
19365 | ||
19366 | _ACEOF | |
19367 | ||
19368 | ||
19369 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19370 | echo "obj-m := conftest.o" >build/Makefile | |
19371 | modpost_flag='' | |
19372 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19373 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19374 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19375 | (eval $ac_try) 2>&5 | |
19376 | ac_status=$? | |
19377 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19378 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19379 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19380 | (eval $ac_try) 2>&5 | |
19381 | ac_status=$? | |
19382 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19383 | test $ac_status = 0; }; }; then : | |
19384 | ||
19385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19386 | $as_echo "yes" >&6; } | |
19387 | ||
19388 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
19389 | ||
19390 | ||
19391 | $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h | |
19392 | ||
19393 | ||
19394 | else | |
19395 | $as_echo "$as_me: failed program was:" >&5 | |
19396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19397 | ||
19398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19399 | $as_echo "no" >&6; } | |
19400 | ||
19401 | ||
19402 | ||
19403 | fi | |
19404 | rm -Rf build | |
19405 | ||
19406 | ||
19407 | ||
19408 | ||
19409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5 | |
19410 | $as_echo_n "checking whether iops->get_acl() exists... " >&6; } | |
19411 | ||
19412 | ||
19413 | cat confdefs.h - <<_ACEOF >conftest.c | |
19414 | ||
19415 | ||
19416 | #include <linux/fs.h> | |
19417 | ||
19418 | struct posix_acl *get_acl_fn(struct inode *inode, int type) | |
19419 | { return NULL; } | |
19420 | ||
19421 | static const struct inode_operations | |
19422 | iops __attribute__ ((unused)) = { | |
19423 | .get_acl = get_acl_fn, | |
19424 | }; | |
19425 | ||
19426 | int | |
19427 | main (void) | |
19428 | { | |
19429 | ||
19430 | ||
19431 | ; | |
19432 | return 0; | |
19433 | } | |
19434 | ||
19435 | _ACEOF | |
19436 | ||
19437 | ||
19438 | ||
19439 | cat - <<_ACEOF >conftest.h | |
19440 | ||
19441 | _ACEOF | |
19442 | ||
19443 | ||
19444 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19445 | echo "obj-m := conftest.o" >build/Makefile | |
19446 | modpost_flag='' | |
19447 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19448 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19449 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19450 | (eval $ac_try) 2>&5 | |
19451 | ac_status=$? | |
19452 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19453 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19454 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19455 | (eval $ac_try) 2>&5 | |
19456 | ac_status=$? | |
19457 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19458 | test $ac_status = 0; }; }; then : | |
19459 | ||
19460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19461 | $as_echo "yes" >&6; } | |
19462 | ||
19463 | $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h | |
19464 | ||
19465 | ||
19466 | else | |
19467 | $as_echo "$as_me: failed program was:" >&5 | |
19468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19469 | ||
19470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19471 | $as_echo "no" >&6; } | |
19472 | ||
19473 | ||
19474 | ||
19475 | fi | |
19476 | rm -Rf build | |
19477 | ||
19478 | ||
19479 | ||
19480 | ||
19481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5 | |
19482 | $as_echo_n "checking whether iops->set_acl() exists... " >&6; } | |
19483 | ||
19484 | ||
19485 | cat confdefs.h - <<_ACEOF >conftest.c | |
19486 | ||
19487 | ||
19488 | #include <linux/fs.h> | |
19489 | ||
19490 | int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type) | |
19491 | { return 0; } | |
19492 | ||
19493 | static const struct inode_operations | |
19494 | iops __attribute__ ((unused)) = { | |
19495 | .set_acl = set_acl_fn, | |
19496 | }; | |
19497 | ||
19498 | int | |
19499 | main (void) | |
19500 | { | |
19501 | ||
19502 | ||
19503 | ; | |
19504 | return 0; | |
19505 | } | |
19506 | ||
19507 | _ACEOF | |
19508 | ||
19509 | ||
19510 | ||
19511 | cat - <<_ACEOF >conftest.h | |
19512 | ||
19513 | _ACEOF | |
19514 | ||
19515 | ||
19516 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19517 | echo "obj-m := conftest.o" >build/Makefile | |
19518 | modpost_flag='' | |
19519 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19520 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19521 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19522 | (eval $ac_try) 2>&5 | |
19523 | ac_status=$? | |
19524 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19525 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19526 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19527 | (eval $ac_try) 2>&5 | |
19528 | ac_status=$? | |
19529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19530 | test $ac_status = 0; }; }; then : | |
19531 | ||
19532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19533 | $as_echo "yes" >&6; } | |
19534 | ||
19535 | $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h | |
19536 | ||
19537 | ||
19538 | else | |
19539 | $as_echo "$as_me: failed program was:" >&5 | |
19540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19541 | ||
19542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19543 | $as_echo "no" >&6; } | |
19544 | ||
19545 | ||
19546 | ||
19547 | fi | |
19548 | rm -Rf build | |
19549 | ||
19550 | ||
19551 | ||
19552 | ||
3e990ae0 CIK |
19553 | |
19554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5 | |
19555 | $as_echo_n "checking whether iops->getattr() takes a path... " >&6; } | |
19556 | ||
19557 | ||
19558 | cat confdefs.h - <<_ACEOF >conftest.c | |
19559 | ||
19560 | ||
19561 | #include <linux/fs.h> | |
19562 | ||
19563 | int test_getattr( | |
19564 | const struct path *p, struct kstat *k, | |
19565 | u32 request_mask, unsigned int query_flags) | |
19566 | { return 0; } | |
19567 | ||
19568 | static const struct inode_operations | |
19569 | iops __attribute__ ((unused)) = { | |
19570 | .getattr = test_getattr, | |
19571 | }; | |
19572 | ||
19573 | int | |
19574 | main (void) | |
19575 | { | |
19576 | ||
19577 | ||
19578 | ; | |
19579 | return 0; | |
19580 | } | |
19581 | ||
19582 | _ACEOF | |
19583 | ||
19584 | ||
19585 | ||
19586 | cat - <<_ACEOF >conftest.h | |
19587 | ||
19588 | _ACEOF | |
19589 | ||
19590 | ||
19591 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19592 | echo "obj-m := conftest.o" >build/Makefile | |
19593 | modpost_flag='' | |
19594 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19595 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19596 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19597 | (eval $ac_try) 2>&5 | |
19598 | ac_status=$? | |
19599 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19600 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19601 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19602 | (eval $ac_try) 2>&5 | |
19603 | ac_status=$? | |
19604 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19605 | test $ac_status = 0; }; }; then : | |
19606 | ||
19607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19608 | $as_echo "yes" >&6; } | |
19609 | ||
19610 | $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h | |
19611 | ||
19612 | ||
19613 | else | |
19614 | $as_echo "$as_me: failed program was:" >&5 | |
19615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19616 | ||
19617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19618 | $as_echo "no" >&6; } | |
19619 | ||
19620 | ||
19621 | ||
19622 | fi | |
19623 | rm -Rf build | |
19624 | ||
19625 | ||
19626 | ||
19627 | ||
19628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5 | |
19629 | $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; } | |
19630 | ||
19631 | ||
19632 | cat confdefs.h - <<_ACEOF >conftest.c | |
19633 | ||
19634 | ||
19635 | #include <linux/fs.h> | |
19636 | ||
19637 | int test_getattr( | |
19638 | struct vfsmount *mnt, struct dentry *d, | |
19639 | struct kstat *k) | |
19640 | { return 0; } | |
19641 | ||
19642 | static const struct inode_operations | |
19643 | iops __attribute__ ((unused)) = { | |
19644 | .getattr = test_getattr, | |
19645 | }; | |
19646 | ||
19647 | int | |
19648 | main (void) | |
19649 | { | |
19650 | ||
19651 | ||
19652 | ; | |
19653 | return 0; | |
19654 | } | |
19655 | ||
19656 | _ACEOF | |
19657 | ||
19658 | ||
19659 | ||
19660 | cat - <<_ACEOF >conftest.h | |
19661 | ||
19662 | _ACEOF | |
19663 | ||
19664 | ||
19665 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19666 | echo "obj-m := conftest.o" >build/Makefile | |
19667 | modpost_flag='' | |
19668 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19669 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19670 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19671 | (eval $ac_try) 2>&5 | |
19672 | ac_status=$? | |
19673 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19674 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19675 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19676 | (eval $ac_try) 2>&5 | |
19677 | ac_status=$? | |
19678 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19679 | test $ac_status = 0; }; }; then : | |
19680 | ||
19681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19682 | $as_echo "yes" >&6; } | |
19683 | ||
19684 | $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h | |
19685 | ||
19686 | ||
19687 | else | |
19688 | $as_echo "$as_me: failed program was:" >&5 | |
19689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19690 | ||
19691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19692 | $as_echo "no" >&6; } | |
19693 | ||
19694 | ||
19695 | ||
19696 | fi | |
19697 | rm -Rf build | |
19698 | ||
19699 | ||
19700 | ||
19701 | ||
19702 | ||
87d546d8 TG |
19703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5 |
19704 | $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; } | |
19705 | ||
19706 | ||
19707 | cat confdefs.h - <<_ACEOF >conftest.c | |
19708 | ||
19709 | ||
19710 | #include <linux/fs.h> | |
19711 | ||
19712 | int | |
19713 | main (void) | |
19714 | { | |
19715 | ||
19716 | void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL); | |
19717 | ||
19718 | ; | |
19719 | return 0; | |
19720 | } | |
19721 | ||
19722 | _ACEOF | |
19723 | ||
19724 | ||
19725 | ||
19726 | cat - <<_ACEOF >conftest.h | |
19727 | ||
19728 | _ACEOF | |
19729 | ||
19730 | ||
19731 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19732 | echo "obj-m := conftest.o" >build/Makefile | |
19733 | modpost_flag='' | |
19734 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19735 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19736 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19737 | (eval $ac_try) 2>&5 | |
19738 | ac_status=$? | |
19739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19740 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19741 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19742 | (eval $ac_try) 2>&5 | |
19743 | ac_status=$? | |
19744 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19745 | test $ac_status = 0; }; }; then : | |
19746 | ||
19747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19748 | $as_echo "yes" >&6; } | |
19749 | ||
19750 | $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h | |
19751 | ||
19752 | ||
19753 | else | |
19754 | $as_echo "$as_me: failed program was:" >&5 | |
19755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19756 | ||
19757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19758 | $as_echo "no" >&6; } | |
19759 | ||
19760 | ||
19761 | ||
19762 | fi | |
19763 | rm -Rf build | |
19764 | ||
19765 | ||
19766 | ||
19767 | ||
19768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5 | |
19769 | $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; } | |
19770 | ||
19771 | ||
19772 | ||
19773 | cat confdefs.h - <<_ACEOF >conftest.c | |
19774 | ||
19775 | ||
19776 | #include <linux/fs.h> | |
19777 | ||
19778 | int show_options (struct seq_file * x, struct dentry * y) { return 0; }; | |
19779 | static struct super_operations sops __attribute__ ((unused)) = { | |
19780 | .show_options = show_options, | |
19781 | }; | |
19782 | ||
19783 | int | |
19784 | main (void) | |
19785 | { | |
19786 | ||
19787 | ||
19788 | ; | |
19789 | return 0; | |
19790 | } | |
19791 | ||
19792 | _ACEOF | |
19793 | ||
19794 | ||
19795 | ||
19796 | cat - <<_ACEOF >conftest.h | |
19797 | ||
19798 | _ACEOF | |
19799 | ||
19800 | ||
19801 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19802 | echo "obj-m := conftest.o" >build/Makefile | |
19803 | modpost_flag='' | |
19804 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19805 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19806 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19807 | (eval $ac_try) 2>&5 | |
19808 | ac_status=$? | |
19809 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19810 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19811 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19812 | (eval $ac_try) 2>&5 | |
19813 | ac_status=$? | |
19814 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19815 | test $ac_status = 0; }; }; then : | |
19816 | ||
19817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19818 | $as_echo "yes" >&6; } | |
19819 | ||
19820 | $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h | |
19821 | ||
19822 | ||
19823 | else | |
19824 | $as_echo "$as_me: failed program was:" >&5 | |
19825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19826 | ||
19827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19828 | $as_echo "no" >&6; } | |
19829 | ||
19830 | ||
19831 | ||
19832 | fi | |
19833 | rm -Rf build | |
19834 | ||
19835 | ||
19836 | ||
19837 | ||
19838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5 | |
19839 | $as_echo_n "checking whether file_inode() is available... " >&6; } | |
19840 | ||
19841 | ||
19842 | cat confdefs.h - <<_ACEOF >conftest.c | |
19843 | ||
19844 | ||
19845 | #include <linux/fs.h> | |
19846 | ||
19847 | int | |
19848 | main (void) | |
19849 | { | |
19850 | ||
19851 | struct file *f = NULL; | |
19852 | file_inode(f); | |
19853 | ||
19854 | ; | |
19855 | return 0; | |
19856 | } | |
19857 | ||
19858 | _ACEOF | |
19859 | ||
19860 | ||
19861 | ||
19862 | cat - <<_ACEOF >conftest.h | |
19863 | ||
19864 | _ACEOF | |
19865 | ||
19866 | ||
19867 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19868 | echo "obj-m := conftest.o" >build/Makefile | |
19869 | modpost_flag='' | |
19870 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19871 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19872 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19873 | (eval $ac_try) 2>&5 | |
19874 | ac_status=$? | |
19875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19876 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19877 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19878 | (eval $ac_try) 2>&5 | |
19879 | ac_status=$? | |
19880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19881 | test $ac_status = 0; }; }; then : | |
19882 | ||
19883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19884 | $as_echo "yes" >&6; } | |
19885 | ||
19886 | $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h | |
19887 | ||
19888 | ||
19889 | else | |
19890 | $as_echo "$as_me: failed program was:" >&5 | |
19891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19892 | ||
19893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19894 | $as_echo "no" >&6; } | |
19895 | ||
19896 | ||
19897 | ||
19898 | fi | |
19899 | rm -Rf build | |
19900 | ||
19901 | ||
19902 | ||
19903 | ||
19904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5 | |
19905 | $as_echo_n "checking whether fops->fsync() wants... " >&6; } | |
19906 | ||
19907 | ||
19908 | ||
19909 | cat confdefs.h - <<_ACEOF >conftest.c | |
19910 | ||
19911 | ||
19912 | #include <linux/fs.h> | |
19913 | ||
19914 | int test_fsync(struct file *f, struct dentry *dentry, int x) | |
19915 | { return 0; } | |
19916 | ||
19917 | static const struct file_operations | |
19918 | fops __attribute__ ((unused)) = { | |
19919 | .fsync = test_fsync, | |
19920 | }; | |
19921 | ||
19922 | int | |
19923 | main (void) | |
19924 | { | |
19925 | ||
19926 | ||
19927 | ; | |
19928 | return 0; | |
19929 | } | |
19930 | ||
19931 | _ACEOF | |
19932 | ||
19933 | ||
19934 | ||
19935 | cat - <<_ACEOF >conftest.h | |
19936 | ||
19937 | _ACEOF | |
19938 | ||
19939 | ||
19940 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19941 | echo "obj-m := conftest.o" >build/Makefile | |
19942 | modpost_flag='' | |
19943 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19944 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19945 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19946 | (eval $ac_try) 2>&5 | |
19947 | ac_status=$? | |
19948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19949 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19950 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19951 | (eval $ac_try) 2>&5 | |
19952 | ac_status=$? | |
19953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19954 | test $ac_status = 0; }; }; then : | |
19955 | ||
19956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5 | |
19957 | $as_echo "dentry" >&6; } | |
19958 | ||
19959 | $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h | |
19960 | ||
19961 | ||
19962 | else | |
19963 | $as_echo "$as_me: failed program was:" >&5 | |
19964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19965 | ||
19966 | ||
19967 | ||
19968 | ||
19969 | fi | |
19970 | rm -Rf build | |
19971 | ||
19972 | ||
19973 | ||
19974 | ||
19975 | ||
19976 | ||
19977 | cat confdefs.h - <<_ACEOF >conftest.c | |
19978 | ||
19979 | ||
19980 | #include <linux/fs.h> | |
19981 | ||
19982 | int test_fsync(struct file *f, int x) { return 0; } | |
19983 | ||
19984 | static const struct file_operations | |
19985 | fops __attribute__ ((unused)) = { | |
19986 | .fsync = test_fsync, | |
19987 | }; | |
19988 | ||
19989 | int | |
19990 | main (void) | |
19991 | { | |
19992 | ||
19993 | ||
19994 | ; | |
19995 | return 0; | |
19996 | } | |
19997 | ||
19998 | _ACEOF | |
19999 | ||
20000 | ||
20001 | ||
20002 | cat - <<_ACEOF >conftest.h | |
20003 | ||
20004 | _ACEOF | |
20005 | ||
20006 | ||
20007 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20008 | echo "obj-m := conftest.o" >build/Makefile | |
20009 | modpost_flag='' | |
20010 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20011 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20012 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20013 | (eval $ac_try) 2>&5 | |
20014 | ac_status=$? | |
20015 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20016 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20017 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20018 | (eval $ac_try) 2>&5 | |
20019 | ac_status=$? | |
20020 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20021 | test $ac_status = 0; }; }; then : | |
20022 | ||
20023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5 | |
20024 | $as_echo "no dentry" >&6; } | |
20025 | ||
20026 | $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h | |
20027 | ||
20028 | ||
20029 | else | |
20030 | $as_echo "$as_me: failed program was:" >&5 | |
20031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20032 | ||
20033 | ||
20034 | ||
20035 | ||
20036 | fi | |
20037 | rm -Rf build | |
20038 | ||
20039 | ||
20040 | ||
20041 | ||
20042 | ||
20043 | ||
20044 | cat confdefs.h - <<_ACEOF >conftest.c | |
20045 | ||
20046 | ||
20047 | #include <linux/fs.h> | |
20048 | ||
20049 | int test_fsync(struct file *f, loff_t a, loff_t b, int c) | |
20050 | { return 0; } | |
20051 | ||
20052 | static const struct file_operations | |
20053 | fops __attribute__ ((unused)) = { | |
20054 | .fsync = test_fsync, | |
20055 | }; | |
20056 | ||
20057 | int | |
20058 | main (void) | |
20059 | { | |
20060 | ||
20061 | ||
20062 | ; | |
20063 | return 0; | |
20064 | } | |
20065 | ||
20066 | _ACEOF | |
20067 | ||
20068 | ||
20069 | ||
20070 | cat - <<_ACEOF >conftest.h | |
20071 | ||
20072 | _ACEOF | |
20073 | ||
20074 | ||
20075 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20076 | echo "obj-m := conftest.o" >build/Makefile | |
20077 | modpost_flag='' | |
20078 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20079 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20080 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20081 | (eval $ac_try) 2>&5 | |
20082 | ac_status=$? | |
20083 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20084 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20085 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20086 | (eval $ac_try) 2>&5 | |
20087 | ac_status=$? | |
20088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20089 | test $ac_status = 0; }; }; then : | |
20090 | ||
20091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5 | |
20092 | $as_echo "range" >&6; } | |
20093 | ||
20094 | $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h | |
20095 | ||
20096 | ||
20097 | else | |
20098 | $as_echo "$as_me: failed program was:" >&5 | |
20099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20100 | ||
20101 | ||
20102 | ||
20103 | ||
20104 | fi | |
20105 | rm -Rf build | |
20106 | ||
20107 | ||
20108 | ||
20109 | ||
20110 | ||
20111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5 | |
20112 | $as_echo_n "checking whether sops->evict_inode() exists... " >&6; } | |
20113 | ||
20114 | ||
20115 | cat confdefs.h - <<_ACEOF >conftest.c | |
20116 | ||
20117 | ||
20118 | #include <linux/fs.h> | |
20119 | void evict_inode (struct inode * t) { return; } | |
20120 | static struct super_operations sops __attribute__ ((unused)) = { | |
20121 | .evict_inode = evict_inode, | |
20122 | }; | |
20123 | ||
20124 | int | |
20125 | main (void) | |
20126 | { | |
20127 | ||
20128 | ||
20129 | ; | |
20130 | return 0; | |
20131 | } | |
20132 | ||
20133 | _ACEOF | |
20134 | ||
20135 | ||
20136 | ||
20137 | cat - <<_ACEOF >conftest.h | |
20138 | ||
20139 | _ACEOF | |
20140 | ||
20141 | ||
20142 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20143 | echo "obj-m := conftest.o" >build/Makefile | |
20144 | modpost_flag='' | |
20145 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20146 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20147 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20148 | (eval $ac_try) 2>&5 | |
20149 | ac_status=$? | |
20150 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20151 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20152 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20153 | (eval $ac_try) 2>&5 | |
20154 | ac_status=$? | |
20155 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20156 | test $ac_status = 0; }; }; then : | |
20157 | ||
20158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20159 | $as_echo "yes" >&6; } | |
20160 | ||
20161 | $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h | |
20162 | ||
20163 | ||
20164 | else | |
20165 | $as_echo "$as_me: failed program was:" >&5 | |
20166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20167 | ||
20168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20169 | $as_echo "no" >&6; } | |
20170 | ||
20171 | ||
20172 | ||
20173 | fi | |
20174 | rm -Rf build | |
20175 | ||
20176 | ||
20177 | ||
20178 | ||
20179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5 | |
20180 | $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; } | |
20181 | ||
20182 | ||
20183 | cat confdefs.h - <<_ACEOF >conftest.c | |
20184 | ||
20185 | ||
20186 | #include <linux/fs.h> | |
20187 | ||
20188 | void dirty_inode(struct inode *a, int b) { return; } | |
20189 | ||
20190 | static const struct super_operations | |
20191 | sops __attribute__ ((unused)) = { | |
20192 | .dirty_inode = dirty_inode, | |
20193 | }; | |
20194 | ||
20195 | int | |
20196 | main (void) | |
20197 | { | |
20198 | ||
20199 | ||
20200 | ; | |
20201 | return 0; | |
20202 | } | |
20203 | ||
20204 | _ACEOF | |
20205 | ||
20206 | ||
20207 | ||
20208 | cat - <<_ACEOF >conftest.h | |
20209 | ||
20210 | _ACEOF | |
20211 | ||
20212 | ||
20213 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20214 | echo "obj-m := conftest.o" >build/Makefile | |
20215 | modpost_flag='' | |
20216 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20217 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20218 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20219 | (eval $ac_try) 2>&5 | |
20220 | ac_status=$? | |
20221 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20222 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20223 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20224 | (eval $ac_try) 2>&5 | |
20225 | ac_status=$? | |
20226 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20227 | test $ac_status = 0; }; }; then : | |
20228 | ||
20229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20230 | $as_echo "yes" >&6; } | |
20231 | ||
20232 | $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h | |
20233 | ||
20234 | ||
20235 | else | |
20236 | $as_echo "$as_me: failed program was:" >&5 | |
20237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20238 | ||
20239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20240 | $as_echo "no" >&6; } | |
20241 | ||
20242 | ||
20243 | ||
20244 | fi | |
20245 | rm -Rf build | |
20246 | ||
20247 | ||
20248 | ||
20249 | ||
20250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5 | |
20251 | $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; } | |
20252 | ||
20253 | ||
20254 | cat confdefs.h - <<_ACEOF >conftest.c | |
20255 | ||
20256 | ||
20257 | #include <linux/fs.h> | |
20258 | ||
20259 | int nr_cached_objects(struct super_block *sb) { return 0; } | |
20260 | ||
20261 | static const struct super_operations | |
20262 | sops __attribute__ ((unused)) = { | |
20263 | .nr_cached_objects = nr_cached_objects, | |
20264 | }; | |
20265 | ||
20266 | int | |
20267 | main (void) | |
20268 | { | |
20269 | ||
20270 | ||
20271 | ; | |
20272 | return 0; | |
20273 | } | |
20274 | ||
20275 | _ACEOF | |
20276 | ||
20277 | ||
20278 | ||
20279 | cat - <<_ACEOF >conftest.h | |
20280 | ||
20281 | _ACEOF | |
20282 | ||
20283 | ||
20284 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20285 | echo "obj-m := conftest.o" >build/Makefile | |
20286 | modpost_flag='' | |
20287 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20288 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20289 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20290 | (eval $ac_try) 2>&5 | |
20291 | ac_status=$? | |
20292 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20293 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20294 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20295 | (eval $ac_try) 2>&5 | |
20296 | ac_status=$? | |
20297 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20298 | test $ac_status = 0; }; }; then : | |
20299 | ||
20300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20301 | $as_echo "yes" >&6; } | |
20302 | ||
20303 | $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h | |
20304 | ||
20305 | ||
20306 | else | |
20307 | $as_echo "$as_me: failed program was:" >&5 | |
20308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20309 | ||
20310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20311 | $as_echo "no" >&6; } | |
20312 | ||
20313 | ||
20314 | ||
20315 | fi | |
20316 | rm -Rf build | |
20317 | ||
20318 | ||
20319 | ||
20320 | ||
20321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5 | |
20322 | $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; } | |
20323 | ||
20324 | ||
20325 | cat confdefs.h - <<_ACEOF >conftest.c | |
20326 | ||
20327 | ||
20328 | #include <linux/fs.h> | |
20329 | ||
20330 | void free_cached_objects(struct super_block *sb, int x) | |
20331 | { return; } | |
20332 | ||
20333 | static const struct super_operations | |
20334 | sops __attribute__ ((unused)) = { | |
20335 | .free_cached_objects = free_cached_objects, | |
20336 | }; | |
20337 | ||
20338 | int | |
20339 | main (void) | |
20340 | { | |
20341 | ||
20342 | ||
20343 | ; | |
20344 | return 0; | |
20345 | } | |
20346 | ||
20347 | _ACEOF | |
20348 | ||
20349 | ||
20350 | ||
20351 | cat - <<_ACEOF >conftest.h | |
20352 | ||
20353 | _ACEOF | |
20354 | ||
20355 | ||
20356 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20357 | echo "obj-m := conftest.o" >build/Makefile | |
20358 | modpost_flag='' | |
20359 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20360 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20361 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20362 | (eval $ac_try) 2>&5 | |
20363 | ac_status=$? | |
20364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20365 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20366 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20367 | (eval $ac_try) 2>&5 | |
20368 | ac_status=$? | |
20369 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20370 | test $ac_status = 0; }; }; then : | |
20371 | ||
20372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20373 | $as_echo "yes" >&6; } | |
20374 | ||
20375 | $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h | |
20376 | ||
20377 | ||
20378 | else | |
20379 | $as_echo "$as_me: failed program was:" >&5 | |
20380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20381 | ||
20382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20383 | $as_echo "no" >&6; } | |
20384 | ||
20385 | ||
20386 | ||
20387 | fi | |
20388 | rm -Rf build | |
20389 | ||
20390 | ||
20391 | ||
20392 | ||
20393 | ||
20394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
20395 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
20396 | ||
20397 | ||
20398 | cat confdefs.h - <<_ACEOF >conftest.c | |
20399 | ||
20400 | ||
20401 | #include <linux/fs.h> | |
20402 | ||
20403 | long test_fallocate(struct file *file, int mode, | |
20404 | loff_t offset, loff_t len) { return 0; } | |
20405 | ||
20406 | static const struct file_operations | |
20407 | fops __attribute__ ((unused)) = { | |
20408 | .fallocate = test_fallocate, | |
20409 | }; | |
20410 | ||
20411 | int | |
20412 | main (void) | |
20413 | { | |
20414 | ||
20415 | ||
20416 | ; | |
20417 | return 0; | |
20418 | } | |
20419 | ||
20420 | _ACEOF | |
20421 | ||
20422 | ||
20423 | ||
20424 | cat - <<_ACEOF >conftest.h | |
20425 | ||
20426 | _ACEOF | |
20427 | ||
20428 | ||
20429 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20430 | echo "obj-m := conftest.o" >build/Makefile | |
20431 | modpost_flag='' | |
20432 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20433 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20434 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20435 | (eval $ac_try) 2>&5 | |
20436 | ac_status=$? | |
20437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20438 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20439 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20440 | (eval $ac_try) 2>&5 | |
20441 | ac_status=$? | |
20442 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20443 | test $ac_status = 0; }; }; then : | |
20444 | ||
20445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20446 | $as_echo "yes" >&6; } | |
20447 | ||
20448 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
20449 | ||
20450 | ||
20451 | else | |
20452 | $as_echo "$as_me: failed program was:" >&5 | |
20453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20454 | ||
20455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20456 | $as_echo "no" >&6; } | |
20457 | ||
20458 | ||
20459 | ||
20460 | fi | |
20461 | rm -Rf build | |
20462 | ||
20463 | ||
20464 | ||
20465 | ||
20466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5 | |
20467 | $as_echo_n "checking whether iops->fallocate() exists... " >&6; } | |
20468 | ||
20469 | ||
20470 | cat confdefs.h - <<_ACEOF >conftest.c | |
20471 | ||
20472 | ||
20473 | #include <linux/fs.h> | |
20474 | ||
20475 | long test_fallocate(struct inode *inode, int mode, | |
20476 | loff_t offset, loff_t len) { return 0; } | |
20477 | ||
20478 | static const struct inode_operations | |
20479 | fops __attribute__ ((unused)) = { | |
20480 | .fallocate = test_fallocate, | |
20481 | }; | |
20482 | ||
20483 | int | |
20484 | main (void) | |
20485 | { | |
20486 | ||
20487 | ||
20488 | ; | |
20489 | return 0; | |
20490 | } | |
20491 | ||
20492 | _ACEOF | |
20493 | ||
20494 | ||
20495 | ||
20496 | cat - <<_ACEOF >conftest.h | |
20497 | ||
20498 | _ACEOF | |
20499 | ||
20500 | ||
20501 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20502 | echo "obj-m := conftest.o" >build/Makefile | |
20503 | modpost_flag='' | |
20504 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20505 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20506 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20507 | (eval $ac_try) 2>&5 | |
20508 | ac_status=$? | |
20509 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20510 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20511 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20512 | (eval $ac_try) 2>&5 | |
20513 | ac_status=$? | |
20514 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20515 | test $ac_status = 0; }; }; then : | |
20516 | ||
20517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20518 | $as_echo "yes" >&6; } | |
20519 | ||
20520 | $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h | |
20521 | ||
20522 | ||
20523 | else | |
20524 | $as_echo "$as_me: failed program was:" >&5 | |
20525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20526 | ||
20527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20528 | $as_echo "no" >&6; } | |
20529 | ||
20530 | ||
20531 | ||
20532 | fi | |
20533 | rm -Rf build | |
20534 | ||
20535 | ||
20536 | ||
20537 | ||
20538 | ||
20539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5 | |
20540 | $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; } | |
20541 | ||
20542 | ||
20543 | cat confdefs.h - <<_ACEOF >conftest.c | |
20544 | ||
20545 | ||
20546 | #include <linux/fs.h> | |
20547 | ||
20548 | static const struct file_operations | |
20549 | fops __attribute__ ((unused)) = { | |
20550 | .aio_fsync = NULL, | |
20551 | }; | |
20552 | ||
20553 | int | |
20554 | main (void) | |
20555 | { | |
20556 | ||
20557 | ||
20558 | ; | |
20559 | return 0; | |
20560 | } | |
20561 | ||
20562 | _ACEOF | |
20563 | ||
20564 | ||
20565 | ||
20566 | cat - <<_ACEOF >conftest.h | |
20567 | ||
20568 | _ACEOF | |
20569 | ||
20570 | ||
20571 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20572 | echo "obj-m := conftest.o" >build/Makefile | |
20573 | modpost_flag='' | |
20574 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20575 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20576 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20577 | (eval $ac_try) 2>&5 | |
20578 | ac_status=$? | |
20579 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20580 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20581 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20582 | (eval $ac_try) 2>&5 | |
20583 | ac_status=$? | |
20584 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20585 | test $ac_status = 0; }; }; then : | |
20586 | ||
20587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20588 | $as_echo "yes" >&6; } | |
20589 | ||
20590 | $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h | |
20591 | ||
20592 | ||
20593 | else | |
20594 | $as_echo "$as_me: failed program was:" >&5 | |
20595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20596 | ||
20597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20598 | $as_echo "no" >&6; } | |
20599 | ||
20600 | ||
20601 | ||
20602 | fi | |
20603 | rm -Rf build | |
20604 | ||
20605 | ||
20606 | ||
20607 | ||
20608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5 | |
20609 | $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; } | |
20610 | ||
20611 | ||
20612 | cat confdefs.h - <<_ACEOF >conftest.c | |
20613 | ||
20614 | ||
20615 | #include <linux/fs.h> | |
20616 | ||
20617 | int mkdir(struct inode *inode, struct dentry *dentry, | |
20618 | umode_t umode) { return 0; } | |
20619 | ||
20620 | static const struct inode_operations | |
20621 | iops __attribute__ ((unused)) = { | |
20622 | .mkdir = mkdir, | |
20623 | }; | |
20624 | ||
20625 | int | |
20626 | main (void) | |
20627 | { | |
20628 | ||
20629 | ||
20630 | ; | |
20631 | return 0; | |
20632 | } | |
20633 | ||
20634 | _ACEOF | |
20635 | ||
20636 | ||
20637 | ||
20638 | cat - <<_ACEOF >conftest.h | |
20639 | ||
20640 | _ACEOF | |
20641 | ||
20642 | ||
20643 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20644 | echo "obj-m := conftest.o" >build/Makefile | |
20645 | modpost_flag='' | |
20646 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20647 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20648 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20649 | (eval $ac_try) 2>&5 | |
20650 | ac_status=$? | |
20651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20652 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20653 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20654 | (eval $ac_try) 2>&5 | |
20655 | ac_status=$? | |
20656 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20657 | test $ac_status = 0; }; }; then : | |
20658 | ||
20659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20660 | $as_echo "yes" >&6; } | |
20661 | ||
20662 | $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h | |
20663 | ||
20664 | ||
20665 | else | |
20666 | $as_echo "$as_me: failed program was:" >&5 | |
20667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20668 | ||
20669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20670 | $as_echo "no" >&6; } | |
20671 | ||
20672 | ||
20673 | ||
20674 | fi | |
20675 | rm -Rf build | |
20676 | ||
20677 | ||
20678 | ||
20679 | ||
20680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5 | |
20681 | $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; } | |
20682 | ||
20683 | ||
20684 | cat confdefs.h - <<_ACEOF >conftest.c | |
20685 | ||
20686 | ||
20687 | #include <linux/fs.h> | |
20688 | ||
20689 | struct dentry *inode_lookup(struct inode *inode, | |
20690 | struct dentry *dentry, struct nameidata *nidata) | |
20691 | { return NULL; } | |
20692 | ||
20693 | static const struct inode_operations iops | |
20694 | __attribute__ ((unused)) = { | |
20695 | .lookup = inode_lookup, | |
20696 | }; | |
20697 | ||
20698 | int | |
20699 | main (void) | |
20700 | { | |
20701 | ||
20702 | ||
20703 | ; | |
20704 | return 0; | |
20705 | } | |
20706 | ||
20707 | _ACEOF | |
20708 | ||
20709 | ||
20710 | ||
20711 | cat - <<_ACEOF >conftest.h | |
20712 | ||
20713 | _ACEOF | |
20714 | ||
20715 | ||
20716 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20717 | echo "obj-m := conftest.o" >build/Makefile | |
20718 | modpost_flag='' | |
20719 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20720 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20721 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20722 | (eval $ac_try) 2>&5 | |
20723 | ac_status=$? | |
20724 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20725 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20726 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20727 | (eval $ac_try) 2>&5 | |
20728 | ac_status=$? | |
20729 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20730 | test $ac_status = 0; }; }; then : | |
20731 | ||
20732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20733 | $as_echo "yes" >&6; } | |
20734 | ||
20735 | $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h | |
20736 | ||
20737 | ||
20738 | else | |
20739 | $as_echo "$as_me: failed program was:" >&5 | |
20740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20741 | ||
20742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20743 | $as_echo "no" >&6; } | |
20744 | ||
20745 | ||
20746 | ||
20747 | fi | |
20748 | rm -Rf build | |
20749 | ||
20750 | ||
20751 | ||
20752 | ||
20753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5 | |
20754 | $as_echo_n "checking whether iops->create() passes nameidata... " >&6; } | |
20755 | ||
20756 | ||
20757 | cat confdefs.h - <<_ACEOF >conftest.c | |
20758 | ||
20759 | ||
20760 | #include <linux/fs.h> | |
20761 | ||
20762 | #ifdef HAVE_MKDIR_UMODE_T | |
20763 | int inode_create(struct inode *inode ,struct dentry *dentry, | |
20764 | umode_t umode, struct nameidata *nidata) { return 0; } | |
20765 | #else | |
20766 | int inode_create(struct inode *inode,struct dentry *dentry, | |
20767 | int umode, struct nameidata * nidata) { return 0; } | |
20768 | #endif | |
20769 | ||
20770 | static const struct inode_operations | |
20771 | iops __attribute__ ((unused)) = { | |
20772 | .create = inode_create, | |
20773 | }; | |
20774 | ||
20775 | int | |
20776 | main (void) | |
20777 | { | |
20778 | ||
20779 | ||
20780 | ; | |
20781 | return 0; | |
20782 | } | |
20783 | ||
20784 | _ACEOF | |
20785 | ||
20786 | ||
20787 | ||
20788 | cat - <<_ACEOF >conftest.h | |
20789 | ||
20790 | _ACEOF | |
20791 | ||
20792 | ||
20793 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20794 | echo "obj-m := conftest.o" >build/Makefile | |
20795 | modpost_flag='' | |
20796 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20797 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20798 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20799 | (eval $ac_try) 2>&5 | |
20800 | ac_status=$? | |
20801 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20802 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20803 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20804 | (eval $ac_try) 2>&5 | |
20805 | ac_status=$? | |
20806 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20807 | test $ac_status = 0; }; }; then : | |
20808 | ||
20809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20810 | $as_echo "yes" >&6; } | |
20811 | ||
20812 | $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h | |
20813 | ||
20814 | ||
20815 | else | |
20816 | $as_echo "$as_me: failed program was:" >&5 | |
20817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20818 | ||
20819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20820 | $as_echo "no" >&6; } | |
20821 | ||
20822 | ||
20823 | ||
20824 | fi | |
20825 | rm -Rf build | |
20826 | ||
20827 | ||
20828 | ||
20829 | ||
20830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5 | |
20831 | $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; } | |
20832 | ||
20833 | ||
20834 | cat confdefs.h - <<_ACEOF >conftest.c | |
20835 | ||
20836 | ||
20837 | #include <linux/fs.h> | |
20838 | const char *get_link(struct dentry *de, struct inode *ip, | |
20839 | struct delayed_call *done) { return "symlink"; } | |
20840 | static struct inode_operations | |
20841 | iops __attribute__ ((unused)) = { | |
20842 | .get_link = get_link, | |
20843 | }; | |
20844 | ||
20845 | int | |
20846 | main (void) | |
20847 | { | |
20848 | ||
20849 | ||
20850 | ; | |
20851 | return 0; | |
20852 | } | |
20853 | ||
20854 | _ACEOF | |
20855 | ||
20856 | ||
20857 | ||
20858 | cat - <<_ACEOF >conftest.h | |
20859 | ||
20860 | _ACEOF | |
20861 | ||
20862 | ||
20863 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20864 | echo "obj-m := conftest.o" >build/Makefile | |
20865 | modpost_flag='' | |
20866 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20867 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20868 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20869 | (eval $ac_try) 2>&5 | |
20870 | ac_status=$? | |
20871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20872 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20873 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20874 | (eval $ac_try) 2>&5 | |
20875 | ac_status=$? | |
20876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20877 | test $ac_status = 0; }; }; then : | |
20878 | ||
20879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20880 | $as_echo "yes" >&6; } | |
20881 | ||
20882 | $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h | |
20883 | ||
20884 | ||
20885 | else | |
20886 | $as_echo "$as_me: failed program was:" >&5 | |
20887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20888 | ||
20889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20890 | $as_echo "no" >&6; } | |
20891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5 | |
20892 | $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; } | |
20893 | ||
20894 | ||
20895 | cat confdefs.h - <<_ACEOF >conftest.c | |
20896 | ||
20897 | ||
20898 | #include <linux/fs.h> | |
20899 | const char *get_link(struct dentry *de, struct | |
20900 | inode *ip, void **cookie) { return "symlink"; } | |
20901 | static struct inode_operations | |
20902 | iops __attribute__ ((unused)) = { | |
20903 | .get_link = get_link, | |
20904 | }; | |
20905 | ||
20906 | int | |
20907 | main (void) | |
20908 | { | |
20909 | ||
20910 | ||
20911 | ; | |
20912 | return 0; | |
20913 | } | |
20914 | ||
20915 | _ACEOF | |
20916 | ||
20917 | ||
20918 | ||
20919 | cat - <<_ACEOF >conftest.h | |
20920 | ||
20921 | _ACEOF | |
20922 | ||
20923 | ||
20924 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20925 | echo "obj-m := conftest.o" >build/Makefile | |
20926 | modpost_flag='' | |
20927 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20928 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20929 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20930 | (eval $ac_try) 2>&5 | |
20931 | ac_status=$? | |
20932 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20933 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20934 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20935 | (eval $ac_try) 2>&5 | |
20936 | ac_status=$? | |
20937 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20938 | test $ac_status = 0; }; }; then : | |
20939 | ||
20940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20941 | $as_echo "yes" >&6; } | |
20942 | ||
20943 | $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h | |
20944 | ||
20945 | ||
20946 | else | |
20947 | $as_echo "$as_me: failed program was:" >&5 | |
20948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20949 | ||
20950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20951 | $as_echo "no" >&6; } | |
20952 | ||
20953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5 | |
20954 | $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; } | |
20955 | ||
20956 | ||
20957 | cat confdefs.h - <<_ACEOF >conftest.c | |
20958 | ||
20959 | ||
20960 | #include <linux/fs.h> | |
20961 | const char *follow_link(struct dentry *de, | |
20962 | void **cookie) { return "symlink"; } | |
20963 | static struct inode_operations | |
20964 | iops __attribute__ ((unused)) = { | |
20965 | .follow_link = follow_link, | |
20966 | }; | |
20967 | ||
20968 | int | |
20969 | main (void) | |
20970 | { | |
20971 | ||
20972 | ||
20973 | ; | |
20974 | return 0; | |
20975 | } | |
20976 | ||
20977 | _ACEOF | |
20978 | ||
20979 | ||
20980 | ||
20981 | cat - <<_ACEOF >conftest.h | |
20982 | ||
20983 | _ACEOF | |
20984 | ||
20985 | ||
20986 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20987 | echo "obj-m := conftest.o" >build/Makefile | |
20988 | modpost_flag='' | |
20989 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20990 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20991 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20992 | (eval $ac_try) 2>&5 | |
20993 | ac_status=$? | |
20994 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20995 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20996 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20997 | (eval $ac_try) 2>&5 | |
20998 | ac_status=$? | |
20999 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21000 | test $ac_status = 0; }; }; then : | |
21001 | ||
21002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21003 | $as_echo "yes" >&6; } | |
21004 | ||
21005 | $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h | |
21006 | ||
21007 | ||
21008 | else | |
21009 | $as_echo "$as_me: failed program was:" >&5 | |
21010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21011 | ||
21012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21013 | $as_echo "no" >&6; } | |
21014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5 | |
21015 | $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; } | |
21016 | ||
21017 | ||
21018 | cat confdefs.h - <<_ACEOF >conftest.c | |
21019 | ||
21020 | ||
21021 | #include <linux/fs.h> | |
21022 | void *follow_link(struct dentry *de, struct | |
21023 | nameidata *nd) { return (void *)NULL; } | |
21024 | static struct inode_operations | |
21025 | iops __attribute__ ((unused)) = { | |
21026 | .follow_link = follow_link, | |
21027 | }; | |
21028 | ||
21029 | int | |
21030 | main (void) | |
21031 | { | |
21032 | ||
21033 | ||
21034 | ; | |
21035 | return 0; | |
21036 | } | |
21037 | ||
21038 | _ACEOF | |
21039 | ||
21040 | ||
21041 | ||
21042 | cat - <<_ACEOF >conftest.h | |
21043 | ||
21044 | _ACEOF | |
21045 | ||
21046 | ||
21047 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21048 | echo "obj-m := conftest.o" >build/Makefile | |
21049 | modpost_flag='' | |
21050 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21051 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21052 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21053 | (eval $ac_try) 2>&5 | |
21054 | ac_status=$? | |
21055 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21056 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21057 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21058 | (eval $ac_try) 2>&5 | |
21059 | ac_status=$? | |
21060 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21061 | test $ac_status = 0; }; }; then : | |
21062 | ||
21063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21064 | $as_echo "yes" >&6; } | |
21065 | ||
21066 | $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h | |
21067 | ||
21068 | ||
21069 | else | |
21070 | $as_echo "$as_me: failed program was:" >&5 | |
21071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21072 | ||
21073 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
21074 | ||
21075 | ||
21076 | ||
21077 | fi | |
21078 | rm -Rf build | |
21079 | ||
21080 | ||
21081 | ||
21082 | ||
21083 | ||
21084 | fi | |
21085 | rm -Rf build | |
21086 | ||
21087 | ||
21088 | ||
21089 | ||
21090 | ||
21091 | ||
21092 | fi | |
21093 | rm -Rf build | |
21094 | ||
21095 | ||
21096 | ||
21097 | ||
21098 | ||
21099 | fi | |
21100 | rm -Rf build | |
21101 | ||
21102 | ||
21103 | ||
21104 | ||
21105 | ||
21106 | ||
21107 | cat confdefs.h - <<_ACEOF >conftest.c | |
21108 | ||
21109 | ||
21110 | #if !defined(HAVE_GET_LINK_DELAYED) | |
21111 | #error "Expecting get_link() delayed done" | |
21112 | #endif | |
21113 | ||
21114 | int | |
21115 | main (void) | |
21116 | { | |
21117 | ||
21118 | ||
21119 | ; | |
21120 | return 0; | |
21121 | } | |
21122 | ||
21123 | _ACEOF | |
21124 | ||
21125 | ||
21126 | ||
21127 | cat - <<_ACEOF >conftest.h | |
21128 | ||
21129 | _ACEOF | |
21130 | ||
21131 | ||
21132 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21133 | echo "obj-m := conftest.o" >build/Makefile | |
21134 | modpost_flag='' | |
21135 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21136 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21137 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21138 | (eval $ac_try) 2>&5 | |
21139 | ac_status=$? | |
21140 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21141 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21142 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21143 | (eval $ac_try) 2>&5 | |
21144 | ac_status=$? | |
21145 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21146 | test $ac_status = 0; }; }; then : | |
21147 | ||
21148 | ||
21149 | $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h | |
21150 | ||
21151 | ||
21152 | else | |
21153 | $as_echo "$as_me: failed program was:" >&5 | |
21154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21155 | ||
21156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5 | |
21157 | $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; } | |
21158 | ||
21159 | ||
21160 | cat confdefs.h - <<_ACEOF >conftest.c | |
21161 | ||
21162 | ||
21163 | #include <linux/fs.h> | |
21164 | void put_link(struct inode *ip, void *cookie) | |
21165 | { return; } | |
21166 | static struct inode_operations | |
21167 | iops __attribute__ ((unused)) = { | |
21168 | .put_link = put_link, | |
21169 | }; | |
21170 | ||
21171 | int | |
21172 | main (void) | |
21173 | { | |
21174 | ||
21175 | ||
21176 | ; | |
21177 | return 0; | |
21178 | } | |
21179 | ||
21180 | _ACEOF | |
21181 | ||
21182 | ||
21183 | ||
21184 | cat - <<_ACEOF >conftest.h | |
21185 | ||
21186 | _ACEOF | |
21187 | ||
21188 | ||
21189 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21190 | echo "obj-m := conftest.o" >build/Makefile | |
21191 | modpost_flag='' | |
21192 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21193 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21194 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21195 | (eval $ac_try) 2>&5 | |
21196 | ac_status=$? | |
21197 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21198 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21199 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21200 | (eval $ac_try) 2>&5 | |
21201 | ac_status=$? | |
21202 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21203 | test $ac_status = 0; }; }; then : | |
21204 | ||
21205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21206 | $as_echo "yes" >&6; } | |
21207 | ||
21208 | $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h | |
21209 | ||
21210 | ||
21211 | else | |
21212 | $as_echo "$as_me: failed program was:" >&5 | |
21213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21214 | ||
21215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21216 | $as_echo "no" >&6; } | |
21217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5 | |
21218 | $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; } | |
21219 | ||
21220 | ||
21221 | cat confdefs.h - <<_ACEOF >conftest.c | |
21222 | ||
21223 | ||
21224 | #include <linux/fs.h> | |
21225 | void put_link(struct dentry *de, struct | |
21226 | nameidata *nd, void *ptr) { return; } | |
21227 | static struct inode_operations | |
21228 | iops __attribute__ ((unused)) = { | |
21229 | .put_link = put_link, | |
21230 | }; | |
21231 | ||
21232 | int | |
21233 | main (void) | |
21234 | { | |
21235 | ||
21236 | ||
21237 | ; | |
21238 | return 0; | |
21239 | } | |
21240 | ||
21241 | _ACEOF | |
21242 | ||
21243 | ||
21244 | ||
21245 | cat - <<_ACEOF >conftest.h | |
21246 | ||
21247 | _ACEOF | |
21248 | ||
21249 | ||
21250 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21251 | echo "obj-m := conftest.o" >build/Makefile | |
21252 | modpost_flag='' | |
21253 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21254 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21255 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21256 | (eval $ac_try) 2>&5 | |
21257 | ac_status=$? | |
21258 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21259 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21260 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21261 | (eval $ac_try) 2>&5 | |
21262 | ac_status=$? | |
21263 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21264 | test $ac_status = 0; }; }; then : | |
21265 | ||
21266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21267 | $as_echo "yes" >&6; } | |
21268 | ||
21269 | $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h | |
21270 | ||
21271 | ||
21272 | else | |
21273 | $as_echo "$as_me: failed program was:" >&5 | |
21274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21275 | ||
21276 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
21277 | ||
21278 | ||
21279 | ||
21280 | fi | |
21281 | rm -Rf build | |
21282 | ||
21283 | ||
21284 | ||
21285 | ||
21286 | ||
21287 | fi | |
21288 | rm -Rf build | |
21289 | ||
21290 | ||
21291 | ||
21292 | ||
21293 | ||
21294 | fi | |
21295 | rm -Rf build | |
21296 | ||
21297 | ||
21298 | ||
21299 | ||
21300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5 | |
21301 | $as_echo_n "checking whether iops->truncate_range() exists... " >&6; } | |
21302 | ||
21303 | ||
21304 | cat confdefs.h - <<_ACEOF >conftest.c | |
21305 | ||
21306 | ||
21307 | #include <linux/fs.h> | |
21308 | void truncate_range(struct inode *inode, loff_t start, | |
21309 | loff_t end) { return; } | |
21310 | static struct inode_operations iops __attribute__ ((unused)) = { | |
21311 | .truncate_range = truncate_range, | |
21312 | }; | |
21313 | ||
21314 | int | |
21315 | main (void) | |
21316 | { | |
21317 | ||
21318 | ||
21319 | ; | |
21320 | return 0; | |
21321 | } | |
21322 | ||
21323 | _ACEOF | |
21324 | ||
21325 | ||
21326 | ||
21327 | cat - <<_ACEOF >conftest.h | |
21328 | ||
21329 | _ACEOF | |
21330 | ||
21331 | ||
21332 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21333 | echo "obj-m := conftest.o" >build/Makefile | |
21334 | modpost_flag='' | |
21335 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21336 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21337 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21338 | (eval $ac_try) 2>&5 | |
21339 | ac_status=$? | |
21340 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21341 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21342 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21343 | (eval $ac_try) 2>&5 | |
21344 | ac_status=$? | |
21345 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21346 | test $ac_status = 0; }; }; then : | |
21347 | ||
21348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21349 | $as_echo "yes" >&6; } | |
21350 | ||
21351 | $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h | |
21352 | ||
21353 | ||
21354 | else | |
21355 | $as_echo "$as_me: failed program was:" >&5 | |
21356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21357 | ||
21358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21359 | $as_echo "no" >&6; } | |
21360 | ||
21361 | ||
21362 | ||
21363 | fi | |
21364 | rm -Rf build | |
21365 | ||
21366 | ||
21367 | ||
21368 | ||
21369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5 | |
21370 | $as_echo_n "checking whether dops->d_automount() exists... " >&6; } | |
21371 | ||
21372 | ||
21373 | cat confdefs.h - <<_ACEOF >conftest.c | |
21374 | ||
21375 | ||
21376 | #include <linux/dcache.h> | |
21377 | struct vfsmount *d_automount(struct path *p) { return NULL; } | |
21378 | struct dentry_operations dops __attribute__ ((unused)) = { | |
21379 | .d_automount = d_automount, | |
21380 | }; | |
21381 | ||
21382 | int | |
21383 | main (void) | |
21384 | { | |
21385 | ||
21386 | ||
21387 | ; | |
21388 | return 0; | |
21389 | } | |
21390 | ||
21391 | _ACEOF | |
21392 | ||
21393 | ||
21394 | ||
21395 | cat - <<_ACEOF >conftest.h | |
21396 | ||
21397 | _ACEOF | |
21398 | ||
21399 | ||
21400 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21401 | echo "obj-m := conftest.o" >build/Makefile | |
21402 | modpost_flag='' | |
21403 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21404 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21405 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21406 | (eval $ac_try) 2>&5 | |
21407 | ac_status=$? | |
21408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21409 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21410 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21411 | (eval $ac_try) 2>&5 | |
21412 | ac_status=$? | |
21413 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21414 | test $ac_status = 0; }; }; then : | |
21415 | ||
21416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21417 | $as_echo "yes" >&6; } | |
21418 | ||
21419 | $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h | |
21420 | ||
21421 | ||
21422 | else | |
21423 | $as_echo "$as_me: failed program was:" >&5 | |
21424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21425 | ||
21426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21427 | $as_echo "no" >&6; } | |
21428 | ||
21429 | ||
21430 | ||
21431 | fi | |
21432 | rm -Rf build | |
21433 | ||
21434 | ||
21435 | ||
21436 | ||
21437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5 | |
21438 | $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; } | |
21439 | ||
21440 | ||
21441 | cat confdefs.h - <<_ACEOF >conftest.c | |
21442 | ||
21443 | ||
21444 | #include <linux/exportfs.h> | |
21445 | int encode_fh(struct inode *inode, __u32 *fh, int *max_len, | |
21446 | struct inode *parent) { return 0; } | |
21447 | static struct export_operations eops __attribute__ ((unused))={ | |
21448 | .encode_fh = encode_fh, | |
21449 | }; | |
21450 | ||
21451 | int | |
21452 | main (void) | |
21453 | { | |
21454 | ||
21455 | ||
21456 | ; | |
21457 | return 0; | |
21458 | } | |
21459 | ||
21460 | _ACEOF | |
21461 | ||
21462 | ||
21463 | ||
21464 | cat - <<_ACEOF >conftest.h | |
21465 | ||
21466 | _ACEOF | |
21467 | ||
21468 | ||
21469 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21470 | echo "obj-m := conftest.o" >build/Makefile | |
21471 | modpost_flag='' | |
21472 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21473 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21474 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21475 | (eval $ac_try) 2>&5 | |
21476 | ac_status=$? | |
21477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21478 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21479 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21480 | (eval $ac_try) 2>&5 | |
21481 | ac_status=$? | |
21482 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21483 | test $ac_status = 0; }; }; then : | |
21484 | ||
21485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21486 | $as_echo "yes" >&6; } | |
21487 | ||
21488 | $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h | |
21489 | ||
21490 | ||
21491 | else | |
21492 | $as_echo "$as_me: failed program was:" >&5 | |
21493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21494 | ||
21495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21496 | $as_echo "no" >&6; } | |
21497 | ||
21498 | ||
21499 | ||
21500 | fi | |
21501 | rm -Rf build | |
21502 | ||
21503 | ||
21504 | ||
21505 | ||
21506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5 | |
21507 | $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; } | |
21508 | ||
21509 | ||
21510 | cat confdefs.h - <<_ACEOF >conftest.c | |
21511 | ||
21512 | ||
21513 | #include <linux/exportfs.h> | |
21514 | int commit_metadata(struct inode *inode) { return 0; } | |
21515 | static struct export_operations eops __attribute__ ((unused))={ | |
21516 | .commit_metadata = commit_metadata, | |
21517 | }; | |
21518 | ||
21519 | int | |
21520 | main (void) | |
21521 | { | |
21522 | ||
21523 | ||
21524 | ; | |
21525 | return 0; | |
21526 | } | |
21527 | ||
21528 | _ACEOF | |
21529 | ||
21530 | ||
21531 | ||
21532 | cat - <<_ACEOF >conftest.h | |
21533 | ||
21534 | _ACEOF | |
21535 | ||
21536 | ||
21537 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21538 | echo "obj-m := conftest.o" >build/Makefile | |
21539 | modpost_flag='' | |
21540 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21541 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21542 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21543 | (eval $ac_try) 2>&5 | |
21544 | ac_status=$? | |
21545 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21546 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21547 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21548 | (eval $ac_try) 2>&5 | |
21549 | ac_status=$? | |
21550 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21551 | test $ac_status = 0; }; }; then : | |
21552 | ||
21553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21554 | $as_echo "yes" >&6; } | |
21555 | ||
21556 | $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h | |
21557 | ||
21558 | ||
21559 | else | |
21560 | $as_echo "$as_me: failed program was:" >&5 | |
21561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21562 | ||
21563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21564 | $as_echo "no" >&6; } | |
21565 | ||
21566 | ||
21567 | ||
21568 | fi | |
21569 | rm -Rf build | |
21570 | ||
21571 | ||
21572 | ||
21573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5 | |
21574 | $as_echo_n "checking whether clear_inode() is available... " >&6; } | |
21575 | ||
21576 | ||
21577 | ||
21578 | cat confdefs.h - <<_ACEOF >conftest.c | |
21579 | ||
21580 | ||
21581 | #include <linux/fs.h> | |
21582 | ||
21583 | int | |
21584 | main (void) | |
21585 | { | |
21586 | ||
21587 | clear_inode(NULL); | |
21588 | ||
21589 | ; | |
21590 | return 0; | |
21591 | } | |
21592 | ||
21593 | _ACEOF | |
21594 | ||
21595 | ||
21596 | ||
21597 | cat - <<_ACEOF >conftest.h | |
21598 | ||
21599 | _ACEOF | |
21600 | ||
21601 | ||
21602 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21603 | echo "obj-m := conftest.o" >build/Makefile | |
21604 | modpost_flag='' | |
21605 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21606 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21607 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21608 | (eval $ac_try) 2>&5 | |
21609 | ac_status=$? | |
21610 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21611 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21612 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21613 | (eval $ac_try) 2>&5 | |
21614 | ac_status=$? | |
21615 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21616 | test $ac_status = 0; }; }; then : | |
21617 | rc=0 | |
21618 | else | |
21619 | $as_echo "$as_me: failed program was:" >&5 | |
21620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21621 | rc=1 | |
21622 | ||
21623 | ||
21624 | fi | |
21625 | rm -Rf build | |
21626 | ||
21627 | ||
21628 | if test $rc -ne 0; then : | |
21629 | ||
21630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21631 | $as_echo "no" >&6; } | |
21632 | ||
21633 | else | |
21634 | if test "x$enable_linux_builtin" != xyes; then | |
21635 | ||
21636 | grep -q -E '[[:space:]]clear_inode[[:space:]]' \ | |
21637 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21638 | rc=$? | |
21639 | if test $rc -ne 0; then | |
21640 | export=0 | |
21641 | for file in fs/inode.c; do | |
21642 | grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \ | |
21643 | "$LINUX/$file" 2>/dev/null | |
21644 | rc=$? | |
21645 | if test $rc -eq 0; then | |
21646 | export=1 | |
21647 | break; | |
21648 | fi | |
21649 | done | |
21650 | if test $export -eq 0; then : | |
21651 | rc=1 | |
21652 | else : | |
21653 | rc=0 | |
21654 | fi | |
21655 | else : | |
21656 | rc=0 | |
21657 | fi | |
21658 | ||
21659 | fi | |
21660 | if test $rc -ne 0; then : | |
21661 | ||
21662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21663 | $as_echo "no" >&6; } | |
21664 | ||
21665 | else : | |
21666 | ||
21667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21668 | $as_echo "yes" >&6; } | |
21669 | ||
21670 | $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h | |
21671 | ||
21672 | ||
21673 | fi | |
21674 | fi | |
21675 | ||
21676 | ||
21677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5 | |
21678 | $as_echo_n "checking whether setattr_prepare() is available... " >&6; } | |
21679 | ||
21680 | ||
21681 | ||
21682 | cat confdefs.h - <<_ACEOF >conftest.c | |
21683 | ||
21684 | ||
21685 | #include <linux/fs.h> | |
21686 | ||
21687 | int | |
21688 | main (void) | |
21689 | { | |
21690 | ||
21691 | struct dentry *dentry = NULL; | |
21692 | struct iattr *attr = NULL; | |
21693 | int error; | |
21694 | ||
21695 | error = setattr_prepare(dentry, attr); | |
21696 | ||
21697 | ; | |
21698 | return 0; | |
21699 | } | |
21700 | ||
21701 | _ACEOF | |
21702 | ||
21703 | ||
21704 | ||
21705 | cat - <<_ACEOF >conftest.h | |
21706 | ||
21707 | _ACEOF | |
21708 | ||
21709 | ||
21710 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21711 | echo "obj-m := conftest.o" >build/Makefile | |
21712 | modpost_flag='' | |
21713 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21714 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21715 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21716 | (eval $ac_try) 2>&5 | |
21717 | ac_status=$? | |
21718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21719 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21720 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21721 | (eval $ac_try) 2>&5 | |
21722 | ac_status=$? | |
21723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21724 | test $ac_status = 0; }; }; then : | |
21725 | rc=0 | |
21726 | else | |
21727 | $as_echo "$as_me: failed program was:" >&5 | |
21728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21729 | rc=1 | |
21730 | ||
21731 | ||
21732 | fi | |
21733 | rm -Rf build | |
21734 | ||
21735 | ||
21736 | if test $rc -ne 0; then : | |
21737 | ||
21738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21739 | $as_echo "no" >&6; } | |
21740 | ||
21741 | else | |
21742 | if test "x$enable_linux_builtin" != xyes; then | |
21743 | ||
21744 | grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \ | |
21745 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21746 | rc=$? | |
21747 | if test $rc -ne 0; then | |
21748 | export=0 | |
21749 | for file in fs/attr.c; do | |
21750 | grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \ | |
21751 | "$LINUX/$file" 2>/dev/null | |
21752 | rc=$? | |
21753 | if test $rc -eq 0; then | |
21754 | export=1 | |
21755 | break; | |
21756 | fi | |
21757 | done | |
21758 | if test $export -eq 0; then : | |
21759 | rc=1 | |
21760 | else : | |
21761 | rc=0 | |
21762 | fi | |
21763 | else : | |
21764 | rc=0 | |
21765 | fi | |
21766 | ||
21767 | fi | |
21768 | if test $rc -ne 0; then : | |
21769 | ||
21770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21771 | $as_echo "no" >&6; } | |
21772 | ||
21773 | else : | |
21774 | ||
21775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21776 | $as_echo "yes" >&6; } | |
21777 | ||
21778 | $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h | |
21779 | ||
21780 | ||
21781 | fi | |
21782 | fi | |
21783 | ||
21784 | ||
21785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5 | |
21786 | $as_echo_n "checking whether insert_inode_locked() is available... " >&6; } | |
21787 | ||
21788 | ||
21789 | ||
21790 | cat confdefs.h - <<_ACEOF >conftest.c | |
21791 | ||
21792 | ||
21793 | #include <linux/fs.h> | |
21794 | ||
21795 | int | |
21796 | main (void) | |
21797 | { | |
21798 | ||
21799 | insert_inode_locked(NULL); | |
21800 | ||
21801 | ; | |
21802 | return 0; | |
21803 | } | |
21804 | ||
21805 | _ACEOF | |
21806 | ||
21807 | ||
21808 | ||
21809 | cat - <<_ACEOF >conftest.h | |
21810 | ||
21811 | _ACEOF | |
21812 | ||
21813 | ||
21814 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21815 | echo "obj-m := conftest.o" >build/Makefile | |
21816 | modpost_flag='' | |
21817 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21818 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21819 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21820 | (eval $ac_try) 2>&5 | |
21821 | ac_status=$? | |
21822 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21823 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21824 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21825 | (eval $ac_try) 2>&5 | |
21826 | ac_status=$? | |
21827 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21828 | test $ac_status = 0; }; }; then : | |
21829 | rc=0 | |
21830 | else | |
21831 | $as_echo "$as_me: failed program was:" >&5 | |
21832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21833 | rc=1 | |
21834 | ||
21835 | ||
21836 | fi | |
21837 | rm -Rf build | |
21838 | ||
21839 | ||
21840 | if test $rc -ne 0; then : | |
21841 | ||
21842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21843 | $as_echo "no" >&6; } | |
21844 | ||
21845 | else | |
21846 | if test "x$enable_linux_builtin" != xyes; then | |
21847 | ||
21848 | grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \ | |
21849 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21850 | rc=$? | |
21851 | if test $rc -ne 0; then | |
21852 | export=0 | |
21853 | for file in fs/inode.c; do | |
21854 | grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \ | |
21855 | "$LINUX/$file" 2>/dev/null | |
21856 | rc=$? | |
21857 | if test $rc -eq 0; then | |
21858 | export=1 | |
21859 | break; | |
21860 | fi | |
21861 | done | |
21862 | if test $export -eq 0; then : | |
21863 | rc=1 | |
21864 | else : | |
21865 | rc=0 | |
21866 | fi | |
21867 | else : | |
21868 | rc=0 | |
21869 | fi | |
21870 | ||
21871 | fi | |
21872 | if test $rc -ne 0; then : | |
21873 | ||
21874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21875 | $as_echo "no" >&6; } | |
21876 | ||
21877 | else : | |
21878 | ||
21879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21880 | $as_echo "yes" >&6; } | |
21881 | ||
21882 | $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h | |
21883 | ||
21884 | ||
21885 | fi | |
21886 | fi | |
21887 | ||
21888 | ||
21889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5 | |
21890 | $as_echo_n "checking whether d_make_root() is available... " >&6; } | |
21891 | ||
21892 | ||
21893 | ||
21894 | cat confdefs.h - <<_ACEOF >conftest.c | |
21895 | ||
21896 | ||
21897 | #include <linux/dcache.h> | |
21898 | ||
21899 | int | |
21900 | main (void) | |
21901 | { | |
21902 | ||
21903 | d_make_root(NULL); | |
21904 | ||
21905 | ; | |
21906 | return 0; | |
21907 | } | |
21908 | ||
21909 | _ACEOF | |
21910 | ||
21911 | ||
21912 | ||
21913 | cat - <<_ACEOF >conftest.h | |
21914 | ||
21915 | _ACEOF | |
21916 | ||
21917 | ||
21918 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21919 | echo "obj-m := conftest.o" >build/Makefile | |
21920 | modpost_flag='' | |
21921 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21922 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21923 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21924 | (eval $ac_try) 2>&5 | |
21925 | ac_status=$? | |
21926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21927 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21928 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21929 | (eval $ac_try) 2>&5 | |
21930 | ac_status=$? | |
21931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21932 | test $ac_status = 0; }; }; then : | |
21933 | rc=0 | |
21934 | else | |
21935 | $as_echo "$as_me: failed program was:" >&5 | |
21936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21937 | rc=1 | |
21938 | ||
21939 | ||
21940 | fi | |
21941 | rm -Rf build | |
21942 | ||
21943 | ||
21944 | if test $rc -ne 0; then : | |
21945 | ||
21946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21947 | $as_echo "no" >&6; } | |
21948 | ||
21949 | else | |
21950 | if test "x$enable_linux_builtin" != xyes; then | |
21951 | ||
21952 | grep -q -E '[[:space:]]d_make_root[[:space:]]' \ | |
21953 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21954 | rc=$? | |
21955 | if test $rc -ne 0; then | |
21956 | export=0 | |
21957 | for file in fs/dcache.c; do | |
21958 | grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \ | |
21959 | "$LINUX/$file" 2>/dev/null | |
21960 | rc=$? | |
21961 | if test $rc -eq 0; then | |
21962 | export=1 | |
21963 | break; | |
21964 | fi | |
21965 | done | |
21966 | if test $export -eq 0; then : | |
21967 | rc=1 | |
21968 | else : | |
21969 | rc=0 | |
21970 | fi | |
21971 | else : | |
21972 | rc=0 | |
21973 | fi | |
21974 | ||
21975 | fi | |
21976 | if test $rc -ne 0; then : | |
21977 | ||
21978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21979 | $as_echo "no" >&6; } | |
21980 | ||
21981 | else : | |
21982 | ||
21983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21984 | $as_echo "yes" >&6; } | |
21985 | ||
21986 | $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h | |
21987 | ||
21988 | ||
21989 | fi | |
21990 | fi | |
21991 | ||
21992 | ||
21993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5 | |
21994 | $as_echo_n "checking whether d_obtain_alias() is available... " >&6; } | |
21995 | ||
21996 | ||
21997 | ||
21998 | cat confdefs.h - <<_ACEOF >conftest.c | |
21999 | ||
22000 | ||
22001 | #include <linux/dcache.h> | |
22002 | ||
22003 | int | |
22004 | main (void) | |
22005 | { | |
22006 | ||
22007 | d_obtain_alias(NULL); | |
22008 | ||
22009 | ; | |
22010 | return 0; | |
22011 | } | |
22012 | ||
22013 | _ACEOF | |
22014 | ||
22015 | ||
22016 | ||
22017 | cat - <<_ACEOF >conftest.h | |
22018 | ||
22019 | _ACEOF | |
22020 | ||
22021 | ||
22022 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22023 | echo "obj-m := conftest.o" >build/Makefile | |
22024 | modpost_flag='' | |
22025 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22026 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22027 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22028 | (eval $ac_try) 2>&5 | |
22029 | ac_status=$? | |
22030 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22031 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22032 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22033 | (eval $ac_try) 2>&5 | |
22034 | ac_status=$? | |
22035 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22036 | test $ac_status = 0; }; }; then : | |
22037 | rc=0 | |
22038 | else | |
22039 | $as_echo "$as_me: failed program was:" >&5 | |
22040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22041 | rc=1 | |
22042 | ||
22043 | ||
22044 | fi | |
22045 | rm -Rf build | |
22046 | ||
22047 | ||
22048 | if test $rc -ne 0; then : | |
22049 | ||
22050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22051 | $as_echo "no" >&6; } | |
22052 | ||
22053 | else | |
22054 | if test "x$enable_linux_builtin" != xyes; then | |
22055 | ||
22056 | grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \ | |
22057 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22058 | rc=$? | |
22059 | if test $rc -ne 0; then | |
22060 | export=0 | |
22061 | for file in fs/dcache.c; do | |
22062 | grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \ | |
22063 | "$LINUX/$file" 2>/dev/null | |
22064 | rc=$? | |
22065 | if test $rc -eq 0; then | |
22066 | export=1 | |
22067 | break; | |
22068 | fi | |
22069 | done | |
22070 | if test $export -eq 0; then : | |
22071 | rc=1 | |
22072 | else : | |
22073 | rc=0 | |
22074 | fi | |
22075 | else : | |
22076 | rc=0 | |
22077 | fi | |
22078 | ||
22079 | fi | |
22080 | if test $rc -ne 0; then : | |
22081 | ||
22082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22083 | $as_echo "no" >&6; } | |
22084 | ||
22085 | else : | |
22086 | ||
22087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22088 | $as_echo "yes" >&6; } | |
22089 | ||
22090 | $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h | |
22091 | ||
22092 | ||
22093 | fi | |
22094 | fi | |
22095 | ||
22096 | ||
22097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5 | |
22098 | $as_echo_n "checking whether d_prune_aliases() is available... " >&6; } | |
22099 | ||
22100 | ||
22101 | ||
22102 | cat confdefs.h - <<_ACEOF >conftest.c | |
22103 | ||
22104 | ||
22105 | #include <linux/dcache.h> | |
22106 | ||
22107 | int | |
22108 | main (void) | |
22109 | { | |
22110 | ||
22111 | struct inode *ip = NULL; | |
22112 | d_prune_aliases(ip); | |
22113 | ||
22114 | ; | |
22115 | return 0; | |
22116 | } | |
22117 | ||
22118 | _ACEOF | |
22119 | ||
22120 | ||
22121 | ||
22122 | cat - <<_ACEOF >conftest.h | |
22123 | ||
22124 | _ACEOF | |
22125 | ||
22126 | ||
22127 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22128 | echo "obj-m := conftest.o" >build/Makefile | |
22129 | modpost_flag='' | |
22130 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22131 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22132 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22133 | (eval $ac_try) 2>&5 | |
22134 | ac_status=$? | |
22135 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22136 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22137 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22138 | (eval $ac_try) 2>&5 | |
22139 | ac_status=$? | |
22140 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22141 | test $ac_status = 0; }; }; then : | |
22142 | rc=0 | |
22143 | else | |
22144 | $as_echo "$as_me: failed program was:" >&5 | |
22145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22146 | rc=1 | |
22147 | ||
22148 | ||
22149 | fi | |
22150 | rm -Rf build | |
22151 | ||
22152 | ||
22153 | if test $rc -ne 0; then : | |
22154 | ||
22155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22156 | $as_echo "no" >&6; } | |
22157 | ||
22158 | else | |
22159 | if test "x$enable_linux_builtin" != xyes; then | |
22160 | ||
22161 | grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \ | |
22162 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22163 | rc=$? | |
22164 | if test $rc -ne 0; then | |
22165 | export=0 | |
22166 | for file in fs/dcache.c; do | |
22167 | grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \ | |
22168 | "$LINUX/$file" 2>/dev/null | |
22169 | rc=$? | |
22170 | if test $rc -eq 0; then | |
22171 | export=1 | |
22172 | break; | |
22173 | fi | |
22174 | done | |
22175 | if test $export -eq 0; then : | |
22176 | rc=1 | |
22177 | else : | |
22178 | rc=0 | |
22179 | fi | |
22180 | else : | |
22181 | rc=0 | |
22182 | fi | |
22183 | ||
22184 | fi | |
22185 | if test $rc -ne 0; then : | |
22186 | ||
22187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22188 | $as_echo "no" >&6; } | |
22189 | ||
22190 | else : | |
22191 | ||
22192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22193 | $as_echo "yes" >&6; } | |
22194 | ||
22195 | $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h | |
22196 | ||
22197 | ||
22198 | fi | |
22199 | fi | |
22200 | ||
22201 | ||
22202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5 | |
22203 | $as_echo_n "checking whether d_set_d_op() is available... " >&6; } | |
22204 | ||
22205 | ||
22206 | ||
22207 | cat confdefs.h - <<_ACEOF >conftest.c | |
22208 | ||
22209 | ||
22210 | #include <linux/dcache.h> | |
22211 | ||
22212 | int | |
22213 | main (void) | |
22214 | { | |
22215 | ||
22216 | d_set_d_op(NULL, NULL); | |
22217 | ||
22218 | ; | |
22219 | return 0; | |
22220 | } | |
22221 | ||
22222 | _ACEOF | |
22223 | ||
22224 | ||
22225 | ||
22226 | cat - <<_ACEOF >conftest.h | |
22227 | ||
22228 | _ACEOF | |
22229 | ||
22230 | ||
22231 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22232 | echo "obj-m := conftest.o" >build/Makefile | |
22233 | modpost_flag='' | |
22234 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22235 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22236 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22237 | (eval $ac_try) 2>&5 | |
22238 | ac_status=$? | |
22239 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22240 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22241 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22242 | (eval $ac_try) 2>&5 | |
22243 | ac_status=$? | |
22244 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22245 | test $ac_status = 0; }; }; then : | |
22246 | rc=0 | |
22247 | else | |
22248 | $as_echo "$as_me: failed program was:" >&5 | |
22249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22250 | rc=1 | |
22251 | ||
22252 | ||
22253 | fi | |
22254 | rm -Rf build | |
22255 | ||
22256 | ||
22257 | if test $rc -ne 0; then : | |
22258 | ||
22259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22260 | $as_echo "no" >&6; } | |
22261 | ||
22262 | else | |
22263 | if test "x$enable_linux_builtin" != xyes; then | |
22264 | ||
22265 | grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \ | |
22266 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22267 | rc=$? | |
22268 | if test $rc -ne 0; then | |
22269 | export=0 | |
22270 | for file in fs/dcache.c; do | |
22271 | grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \ | |
22272 | "$LINUX/$file" 2>/dev/null | |
22273 | rc=$? | |
22274 | if test $rc -eq 0; then | |
22275 | export=1 | |
22276 | break; | |
22277 | fi | |
22278 | done | |
22279 | if test $export -eq 0; then : | |
22280 | rc=1 | |
22281 | else : | |
22282 | rc=0 | |
22283 | fi | |
22284 | else : | |
22285 | rc=0 | |
22286 | fi | |
22287 | ||
22288 | fi | |
22289 | if test $rc -ne 0; then : | |
22290 | ||
22291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22292 | $as_echo "no" >&6; } | |
22293 | ||
22294 | else : | |
22295 | ||
22296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22297 | $as_echo "yes" >&6; } | |
22298 | ||
22299 | $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h | |
22300 | ||
22301 | ||
22302 | fi | |
22303 | fi | |
22304 | ||
22305 | ||
22306 | ||
22307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5 | |
22308 | $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; } | |
22309 | ||
22310 | ||
22311 | cat confdefs.h - <<_ACEOF >conftest.c | |
22312 | ||
22313 | ||
22314 | #include <linux/dcache.h> | |
22315 | ||
22316 | int revalidate (struct dentry *dentry, | |
22317 | struct nameidata *nidata) { return 0; } | |
22318 | ||
22319 | static const struct dentry_operations | |
22320 | dops __attribute__ ((unused)) = { | |
22321 | .d_revalidate = revalidate, | |
22322 | }; | |
22323 | ||
22324 | int | |
22325 | main (void) | |
22326 | { | |
22327 | ||
22328 | ||
22329 | ; | |
22330 | return 0; | |
22331 | } | |
22332 | ||
22333 | _ACEOF | |
22334 | ||
22335 | ||
22336 | ||
22337 | cat - <<_ACEOF >conftest.h | |
22338 | ||
22339 | _ACEOF | |
22340 | ||
22341 | ||
22342 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22343 | echo "obj-m := conftest.o" >build/Makefile | |
22344 | modpost_flag='' | |
22345 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22346 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22347 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22348 | (eval $ac_try) 2>&5 | |
22349 | ac_status=$? | |
22350 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22351 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22352 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22353 | (eval $ac_try) 2>&5 | |
22354 | ac_status=$? | |
22355 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22356 | test $ac_status = 0; }; }; then : | |
22357 | ||
22358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22359 | $as_echo "yes" >&6; } | |
22360 | ||
22361 | $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h | |
22362 | ||
22363 | ||
22364 | else | |
22365 | $as_echo "$as_me: failed program was:" >&5 | |
22366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22367 | ||
22368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22369 | $as_echo "no" >&6; } | |
22370 | ||
22371 | ||
22372 | ||
22373 | fi | |
22374 | rm -Rf build | |
22375 | ||
22376 | ||
22377 | ||
22378 | ||
22379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5 | |
22380 | $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; } | |
22381 | ||
22382 | ||
22383 | cat confdefs.h - <<_ACEOF >conftest.c | |
22384 | ||
22385 | ||
22386 | #include <linux/dcache.h> | |
22387 | ||
22388 | const struct dentry_operations test_d_op = { | |
22389 | .d_revalidate = NULL, | |
22390 | }; | |
22391 | ||
22392 | int | |
22393 | main (void) | |
22394 | { | |
22395 | ||
22396 | struct dentry d __attribute__ ((unused)); | |
22397 | ||
22398 | d.d_op = &test_d_op; | |
22399 | ||
22400 | ; | |
22401 | return 0; | |
22402 | } | |
22403 | ||
22404 | _ACEOF | |
22405 | ||
22406 | ||
22407 | ||
22408 | cat - <<_ACEOF >conftest.h | |
22409 | ||
22410 | _ACEOF | |
22411 | ||
22412 | ||
22413 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22414 | echo "obj-m := conftest.o" >build/Makefile | |
22415 | modpost_flag='' | |
22416 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22417 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22418 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22419 | (eval $ac_try) 2>&5 | |
22420 | ac_status=$? | |
22421 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22422 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22423 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22424 | (eval $ac_try) 2>&5 | |
22425 | ac_status=$? | |
22426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22427 | test $ac_status = 0; }; }; then : | |
22428 | ||
22429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22430 | $as_echo "yes" >&6; } | |
22431 | ||
22432 | $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h | |
22433 | ||
22434 | ||
22435 | else | |
22436 | $as_echo "$as_me: failed program was:" >&5 | |
22437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22438 | ||
22439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22440 | $as_echo "no" >&6; } | |
22441 | ||
22442 | ||
22443 | ||
22444 | fi | |
22445 | rm -Rf build | |
22446 | ||
22447 | ||
22448 | ||
22449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5 | |
22450 | $as_echo_n "checking whether check_disk_size_change() is available... " >&6; } | |
22451 | ||
22452 | ||
22453 | ||
22454 | cat confdefs.h - <<_ACEOF >conftest.c | |
22455 | ||
22456 | ||
22457 | #include <linux/fs.h> | |
22458 | ||
22459 | int | |
22460 | main (void) | |
22461 | { | |
22462 | ||
22463 | check_disk_size_change(NULL, NULL); | |
22464 | ||
22465 | ; | |
22466 | return 0; | |
22467 | } | |
22468 | ||
22469 | _ACEOF | |
22470 | ||
22471 | ||
22472 | ||
22473 | cat - <<_ACEOF >conftest.h | |
22474 | ||
22475 | _ACEOF | |
22476 | ||
22477 | ||
22478 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22479 | echo "obj-m := conftest.o" >build/Makefile | |
22480 | modpost_flag='' | |
22481 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22482 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22483 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22484 | (eval $ac_try) 2>&5 | |
22485 | ac_status=$? | |
22486 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22487 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22488 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22489 | (eval $ac_try) 2>&5 | |
22490 | ac_status=$? | |
22491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22492 | test $ac_status = 0; }; }; then : | |
22493 | rc=0 | |
22494 | else | |
22495 | $as_echo "$as_me: failed program was:" >&5 | |
22496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22497 | rc=1 | |
22498 | ||
22499 | ||
22500 | fi | |
22501 | rm -Rf build | |
22502 | ||
22503 | ||
22504 | if test $rc -ne 0; then : | |
22505 | ||
22506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22507 | $as_echo "no" >&6; } | |
22508 | ||
22509 | else | |
22510 | if test "x$enable_linux_builtin" != xyes; then | |
22511 | ||
22512 | grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \ | |
22513 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22514 | rc=$? | |
22515 | if test $rc -ne 0; then | |
22516 | export=0 | |
22517 | for file in fs/block_dev.c; do | |
22518 | grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \ | |
22519 | "$LINUX/$file" 2>/dev/null | |
22520 | rc=$? | |
22521 | if test $rc -eq 0; then | |
22522 | export=1 | |
22523 | break; | |
22524 | fi | |
22525 | done | |
22526 | if test $export -eq 0; then : | |
22527 | rc=1 | |
22528 | else : | |
22529 | rc=0 | |
22530 | fi | |
22531 | else : | |
22532 | rc=0 | |
22533 | fi | |
22534 | ||
22535 | fi | |
22536 | if test $rc -ne 0; then : | |
22537 | ||
22538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22539 | $as_echo "no" >&6; } | |
22540 | ||
22541 | else : | |
22542 | ||
22543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22544 | $as_echo "yes" >&6; } | |
22545 | ||
22546 | $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h | |
22547 | ||
22548 | ||
22549 | fi | |
22550 | fi | |
22551 | ||
22552 | ||
22553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5 | |
22554 | $as_echo_n "checking whether truncate_setsize() is available... " >&6; } | |
22555 | ||
22556 | ||
22557 | ||
22558 | cat confdefs.h - <<_ACEOF >conftest.c | |
22559 | ||
22560 | ||
22561 | #include <linux/mm.h> | |
22562 | ||
22563 | int | |
22564 | main (void) | |
22565 | { | |
22566 | ||
22567 | truncate_setsize(NULL, 0); | |
22568 | ||
22569 | ; | |
22570 | return 0; | |
22571 | } | |
22572 | ||
22573 | _ACEOF | |
22574 | ||
22575 | ||
22576 | ||
22577 | cat - <<_ACEOF >conftest.h | |
22578 | ||
22579 | _ACEOF | |
22580 | ||
22581 | ||
22582 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22583 | echo "obj-m := conftest.o" >build/Makefile | |
22584 | modpost_flag='' | |
22585 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22586 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22587 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22588 | (eval $ac_try) 2>&5 | |
22589 | ac_status=$? | |
22590 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22591 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22592 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22593 | (eval $ac_try) 2>&5 | |
22594 | ac_status=$? | |
22595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22596 | test $ac_status = 0; }; }; then : | |
22597 | rc=0 | |
22598 | else | |
22599 | $as_echo "$as_me: failed program was:" >&5 | |
22600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22601 | rc=1 | |
22602 | ||
22603 | ||
22604 | fi | |
22605 | rm -Rf build | |
22606 | ||
22607 | ||
22608 | if test $rc -ne 0; then : | |
22609 | ||
22610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22611 | $as_echo "no" >&6; } | |
22612 | ||
22613 | else | |
22614 | if test "x$enable_linux_builtin" != xyes; then | |
22615 | ||
22616 | grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \ | |
22617 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22618 | rc=$? | |
22619 | if test $rc -ne 0; then | |
22620 | export=0 | |
22621 | for file in mm/truncate.c; do | |
22622 | grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \ | |
22623 | "$LINUX/$file" 2>/dev/null | |
22624 | rc=$? | |
22625 | if test $rc -eq 0; then | |
22626 | export=1 | |
22627 | break; | |
22628 | fi | |
22629 | done | |
22630 | if test $export -eq 0; then : | |
22631 | rc=1 | |
22632 | else : | |
22633 | rc=0 | |
22634 | fi | |
22635 | else : | |
22636 | rc=0 | |
22637 | fi | |
22638 | ||
22639 | fi | |
22640 | if test $rc -ne 0; then : | |
22641 | ||
22642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22643 | $as_echo "no" >&6; } | |
22644 | ||
22645 | else : | |
22646 | ||
22647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22648 | $as_echo "yes" >&6; } | |
22649 | ||
22650 | $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h | |
22651 | ||
22652 | ||
22653 | fi | |
22654 | fi | |
22655 | ||
22656 | ||
22657 | ||
22658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5 | |
22659 | $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; } | |
22660 | ||
22661 | ||
22662 | cat confdefs.h - <<_ACEOF >conftest.c | |
22663 | ||
22664 | ||
22665 | #include <linux/security.h> | |
22666 | ||
22667 | int | |
22668 | main (void) | |
22669 | { | |
22670 | ||
22671 | struct inode *ip __attribute__ ((unused)) = NULL; | |
22672 | struct inode *dip __attribute__ ((unused)) = NULL; | |
22673 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
22674 | char *name __attribute__ ((unused)) = NULL; | |
22675 | void *value __attribute__ ((unused)) = NULL; | |
22676 | size_t len __attribute__ ((unused)) = 0; | |
22677 | ||
22678 | security_inode_init_security(ip, dip, str, &name, &value, &len); | |
22679 | ||
22680 | ; | |
22681 | return 0; | |
22682 | } | |
22683 | ||
22684 | _ACEOF | |
22685 | ||
22686 | ||
22687 | ||
22688 | cat - <<_ACEOF >conftest.h | |
22689 | ||
22690 | _ACEOF | |
22691 | ||
22692 | ||
22693 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22694 | echo "obj-m := conftest.o" >build/Makefile | |
22695 | modpost_flag='' | |
22696 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22697 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22698 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22699 | (eval $ac_try) 2>&5 | |
22700 | ac_status=$? | |
22701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22702 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22703 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22704 | (eval $ac_try) 2>&5 | |
22705 | ac_status=$? | |
22706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22707 | test $ac_status = 0; }; }; then : | |
22708 | ||
22709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22710 | $as_echo "yes" >&6; } | |
22711 | ||
22712 | $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h | |
22713 | ||
22714 | ||
22715 | else | |
22716 | $as_echo "$as_me: failed program was:" >&5 | |
22717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22718 | ||
22719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22720 | $as_echo "no" >&6; } | |
22721 | ||
22722 | ||
22723 | ||
22724 | fi | |
22725 | rm -Rf build | |
22726 | ||
22727 | ||
22728 | ||
22729 | ||
22730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5 | |
22731 | $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; } | |
22732 | ||
22733 | ||
22734 | cat confdefs.h - <<_ACEOF >conftest.c | |
22735 | ||
22736 | ||
22737 | #include <linux/security.h> | |
22738 | ||
22739 | int | |
22740 | main (void) | |
22741 | { | |
22742 | ||
22743 | struct inode *ip __attribute__ ((unused)) = NULL; | |
22744 | struct inode *dip __attribute__ ((unused)) = NULL; | |
22745 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
22746 | initxattrs func __attribute__ ((unused)) = NULL; | |
22747 | ||
22748 | security_inode_init_security(ip, dip, str, func, NULL); | |
22749 | ||
22750 | ; | |
22751 | return 0; | |
22752 | } | |
22753 | ||
22754 | _ACEOF | |
22755 | ||
22756 | ||
22757 | ||
22758 | cat - <<_ACEOF >conftest.h | |
22759 | ||
22760 | _ACEOF | |
22761 | ||
22762 | ||
22763 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22764 | echo "obj-m := conftest.o" >build/Makefile | |
22765 | modpost_flag='' | |
22766 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22767 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22768 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22769 | (eval $ac_try) 2>&5 | |
22770 | ac_status=$? | |
22771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22772 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22773 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22774 | (eval $ac_try) 2>&5 | |
22775 | ac_status=$? | |
22776 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22777 | test $ac_status = 0; }; }; then : | |
22778 | ||
22779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22780 | $as_echo "yes" >&6; } | |
22781 | ||
22782 | $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h | |
22783 | ||
22784 | ||
22785 | else | |
22786 | $as_echo "$as_me: failed program was:" >&5 | |
22787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22788 | ||
22789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22790 | $as_echo "no" >&6; } | |
22791 | ||
22792 | ||
22793 | ||
22794 | fi | |
22795 | rm -Rf build | |
22796 | ||
22797 | ||
22798 | ||
22799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5 | |
22800 | $as_echo_n "checking whether mount_nodev() is available... " >&6; } | |
22801 | ||
22802 | ||
22803 | ||
22804 | cat confdefs.h - <<_ACEOF >conftest.c | |
22805 | ||
22806 | ||
22807 | #include <linux/fs.h> | |
22808 | ||
22809 | int | |
22810 | main (void) | |
22811 | { | |
22812 | ||
22813 | mount_nodev(NULL, 0, NULL, NULL); | |
22814 | ||
22815 | ; | |
22816 | return 0; | |
22817 | } | |
22818 | ||
22819 | _ACEOF | |
22820 | ||
22821 | ||
22822 | ||
22823 | cat - <<_ACEOF >conftest.h | |
22824 | ||
22825 | _ACEOF | |
22826 | ||
22827 | ||
22828 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22829 | echo "obj-m := conftest.o" >build/Makefile | |
22830 | modpost_flag='' | |
22831 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22832 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22833 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22834 | (eval $ac_try) 2>&5 | |
22835 | ac_status=$? | |
22836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22837 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22838 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22839 | (eval $ac_try) 2>&5 | |
22840 | ac_status=$? | |
22841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22842 | test $ac_status = 0; }; }; then : | |
22843 | rc=0 | |
22844 | else | |
22845 | $as_echo "$as_me: failed program was:" >&5 | |
22846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22847 | rc=1 | |
22848 | ||
22849 | ||
22850 | fi | |
22851 | rm -Rf build | |
22852 | ||
22853 | ||
22854 | if test $rc -ne 0; then : | |
22855 | ||
22856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22857 | $as_echo "no" >&6; } | |
22858 | ||
22859 | else | |
22860 | if test "x$enable_linux_builtin" != xyes; then | |
22861 | ||
22862 | grep -q -E '[[:space:]]mount_nodev[[:space:]]' \ | |
22863 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22864 | rc=$? | |
22865 | if test $rc -ne 0; then | |
22866 | export=0 | |
22867 | for file in fs/super.c; do | |
22868 | grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \ | |
22869 | "$LINUX/$file" 2>/dev/null | |
22870 | rc=$? | |
22871 | if test $rc -eq 0; then | |
22872 | export=1 | |
22873 | break; | |
22874 | fi | |
22875 | done | |
22876 | if test $export -eq 0; then : | |
22877 | rc=1 | |
22878 | else : | |
22879 | rc=0 | |
22880 | fi | |
22881 | else : | |
22882 | rc=0 | |
22883 | fi | |
22884 | ||
22885 | fi | |
22886 | if test $rc -ne 0; then : | |
22887 | ||
22888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22889 | $as_echo "no" >&6; } | |
22890 | ||
22891 | else : | |
22892 | ||
22893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22894 | $as_echo "yes" >&6; } | |
22895 | ||
22896 | $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h | |
22897 | ||
22898 | ||
22899 | fi | |
22900 | fi | |
22901 | ||
22902 | ||
22903 | ||
22904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5 | |
22905 | $as_echo_n "checking whether super_block has s_shrink... " >&6; } | |
22906 | ||
22907 | ||
22908 | cat confdefs.h - <<_ACEOF >conftest.c | |
22909 | ||
22910 | ||
22911 | #include <linux/fs.h> | |
22912 | ||
22913 | int shrink(struct shrinker *s, struct shrink_control *sc) | |
22914 | { return 0; } | |
22915 | ||
22916 | static const struct super_block | |
22917 | sb __attribute__ ((unused)) = { | |
22918 | .s_shrink.shrink = shrink, | |
22919 | .s_shrink.seeks = DEFAULT_SEEKS, | |
22920 | .s_shrink.batch = 0, | |
22921 | }; | |
22922 | ||
22923 | int | |
22924 | main (void) | |
22925 | { | |
22926 | ||
22927 | ||
22928 | ; | |
22929 | return 0; | |
22930 | } | |
22931 | ||
22932 | _ACEOF | |
22933 | ||
22934 | ||
22935 | ||
22936 | cat - <<_ACEOF >conftest.h | |
22937 | ||
22938 | _ACEOF | |
22939 | ||
22940 | ||
22941 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22942 | echo "obj-m := conftest.o" >build/Makefile | |
22943 | modpost_flag='' | |
22944 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22945 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22946 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22947 | (eval $ac_try) 2>&5 | |
22948 | ac_status=$? | |
22949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22950 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22951 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22952 | (eval $ac_try) 2>&5 | |
22953 | ac_status=$? | |
22954 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22955 | test $ac_status = 0; }; }; then : | |
22956 | ||
22957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22958 | $as_echo "yes" >&6; } | |
22959 | ||
22960 | $as_echo "#define HAVE_SHRINK 1" >>confdefs.h | |
22961 | ||
22962 | ||
22963 | ||
22964 | else | |
22965 | $as_echo "$as_me: failed program was:" >&5 | |
22966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22967 | ||
22968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22969 | $as_echo "no" >&6; } | |
22970 | ||
22971 | ||
22972 | ||
22973 | fi | |
22974 | rm -Rf build | |
22975 | ||
22976 | ||
22977 | ||
22978 | ||
22979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5 | |
22980 | $as_echo_n "checking whether shrink_control has nid... " >&6; } | |
22981 | ||
22982 | ||
22983 | cat confdefs.h - <<_ACEOF >conftest.c | |
22984 | ||
22985 | ||
22986 | #include <linux/fs.h> | |
22987 | ||
22988 | int | |
22989 | main (void) | |
22990 | { | |
22991 | ||
22992 | struct shrink_control sc __attribute__ ((unused)); | |
22993 | unsigned long scnidsize __attribute__ ((unused)) = | |
22994 | sizeof(sc.nid); | |
22995 | ||
22996 | ; | |
22997 | return 0; | |
22998 | } | |
22999 | ||
23000 | _ACEOF | |
23001 | ||
23002 | ||
23003 | ||
23004 | cat - <<_ACEOF >conftest.h | |
23005 | ||
23006 | _ACEOF | |
23007 | ||
23008 | ||
23009 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23010 | echo "obj-m := conftest.o" >build/Makefile | |
23011 | modpost_flag='' | |
23012 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23013 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23014 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23015 | (eval $ac_try) 2>&5 | |
23016 | ac_status=$? | |
23017 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23018 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23019 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23020 | (eval $ac_try) 2>&5 | |
23021 | ac_status=$? | |
23022 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23023 | test $ac_status = 0; }; }; then : | |
23024 | ||
23025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23026 | $as_echo "yes" >&6; } | |
23027 | ||
23028 | $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h | |
23029 | ||
23030 | ||
23031 | else | |
23032 | $as_echo "$as_me: failed program was:" >&5 | |
23033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23034 | ||
23035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23036 | $as_echo "no" >&6; } | |
23037 | ||
23038 | ||
23039 | ||
23040 | fi | |
23041 | rm -Rf build | |
23042 | ||
23043 | ||
23044 | ||
23045 | ||
23046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5 | |
23047 | $as_echo_n "checking whether super_block has s_instances list_head... " >&6; } | |
23048 | ||
23049 | ||
23050 | cat confdefs.h - <<_ACEOF >conftest.c | |
23051 | ||
23052 | ||
23053 | #include <linux/fs.h> | |
23054 | ||
23055 | int | |
23056 | main (void) | |
23057 | { | |
23058 | ||
23059 | struct super_block sb __attribute__ ((unused)); | |
23060 | ||
23061 | INIT_LIST_HEAD(&sb.s_instances); | |
23062 | ||
23063 | ; | |
23064 | return 0; | |
23065 | } | |
23066 | ||
23067 | _ACEOF | |
23068 | ||
23069 | ||
23070 | ||
23071 | cat - <<_ACEOF >conftest.h | |
23072 | ||
23073 | _ACEOF | |
23074 | ||
23075 | ||
23076 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23077 | echo "obj-m := conftest.o" >build/Makefile | |
23078 | modpost_flag='' | |
23079 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23080 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23081 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23082 | (eval $ac_try) 2>&5 | |
23083 | ac_status=$? | |
23084 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23085 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23086 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23087 | (eval $ac_try) 2>&5 | |
23088 | ac_status=$? | |
23089 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23090 | test $ac_status = 0; }; }; then : | |
23091 | ||
23092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23093 | $as_echo "yes" >&6; } | |
23094 | ||
23095 | $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h | |
23096 | ||
23097 | ||
23098 | else | |
23099 | $as_echo "$as_me: failed program was:" >&5 | |
23100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23101 | ||
23102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23103 | $as_echo "no" >&6; } | |
23104 | ||
23105 | ||
23106 | ||
23107 | fi | |
23108 | rm -Rf build | |
23109 | ||
23110 | ||
23111 | ||
23112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5 | |
23113 | $as_echo_n "checking whether super_block has s_d_op... " >&6; } | |
23114 | ||
23115 | ||
23116 | cat confdefs.h - <<_ACEOF >conftest.c | |
23117 | ||
23118 | ||
23119 | #include <linux/fs.h> | |
23120 | ||
23121 | int | |
23122 | main (void) | |
23123 | { | |
23124 | ||
23125 | struct super_block sb __attribute__ ((unused)); | |
23126 | sb.s_d_op = NULL; | |
23127 | ||
23128 | ; | |
23129 | return 0; | |
23130 | } | |
23131 | ||
23132 | _ACEOF | |
23133 | ||
23134 | ||
23135 | ||
23136 | cat - <<_ACEOF >conftest.h | |
23137 | ||
23138 | _ACEOF | |
23139 | ||
23140 | ||
23141 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23142 | echo "obj-m := conftest.o" >build/Makefile | |
23143 | modpost_flag='' | |
23144 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23145 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23146 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23147 | (eval $ac_try) 2>&5 | |
23148 | ac_status=$? | |
23149 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23150 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23151 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23152 | (eval $ac_try) 2>&5 | |
23153 | ac_status=$? | |
23154 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23155 | test $ac_status = 0; }; }; then : | |
23156 | ||
23157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23158 | $as_echo "yes" >&6; } | |
23159 | ||
23160 | $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h | |
23161 | ||
23162 | ||
23163 | else | |
23164 | $as_echo "$as_me: failed program was:" >&5 | |
23165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23166 | ||
23167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23168 | $as_echo "no" >&6; } | |
23169 | ||
23170 | ||
23171 | ||
23172 | fi | |
23173 | rm -Rf build | |
23174 | ||
23175 | ||
23176 | ||
23177 | ||
df9d7621 CIK |
23178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5 |
23179 | $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; } | |
87d546d8 TG |
23180 | |
23181 | ||
23182 | ||
23183 | cat confdefs.h - <<_ACEOF >conftest.c | |
23184 | ||
23185 | ||
df9d7621 CIK |
23186 | #include <linux/fs.h> |
23187 | struct super_block sb; | |
87d546d8 TG |
23188 | |
23189 | int | |
23190 | main (void) | |
23191 | { | |
23192 | ||
23193 | char *name = "bdi"; | |
23194 | int error __attribute__((unused)) = | |
df9d7621 | 23195 | super_setup_bdi_name(&sb, name); |
87d546d8 TG |
23196 | |
23197 | ; | |
23198 | return 0; | |
23199 | } | |
23200 | ||
23201 | _ACEOF | |
23202 | ||
23203 | ||
23204 | ||
23205 | cat - <<_ACEOF >conftest.h | |
23206 | ||
23207 | _ACEOF | |
23208 | ||
23209 | ||
23210 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23211 | echo "obj-m := conftest.o" >build/Makefile | |
23212 | modpost_flag='' | |
23213 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23214 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23215 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23216 | (eval $ac_try) 2>&5 | |
23217 | ac_status=$? | |
23218 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23219 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23220 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23221 | (eval $ac_try) 2>&5 | |
23222 | ac_status=$? | |
23223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23224 | test $ac_status = 0; }; }; then : | |
23225 | rc=0 | |
23226 | else | |
23227 | $as_echo "$as_me: failed program was:" >&5 | |
23228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23229 | rc=1 | |
23230 | ||
23231 | ||
23232 | fi | |
23233 | rm -Rf build | |
23234 | ||
23235 | ||
23236 | if test $rc -ne 0; then : | |
23237 | ||
23238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23239 | $as_echo "no" >&6; } | |
df9d7621 CIK |
23240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 |
23241 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } | |
87d546d8 TG |
23242 | |
23243 | ||
23244 | ||
23245 | cat confdefs.h - <<_ACEOF >conftest.c | |
23246 | ||
23247 | ||
23248 | #include <linux/backing-dev.h> | |
23249 | struct backing_dev_info bdi; | |
23250 | ||
23251 | int | |
23252 | main (void) | |
23253 | { | |
23254 | ||
23255 | char *name = "bdi"; | |
87d546d8 | 23256 | int error __attribute__((unused)) = |
df9d7621 | 23257 | bdi_setup_and_register(&bdi, name); |
87d546d8 TG |
23258 | |
23259 | ; | |
23260 | return 0; | |
23261 | } | |
23262 | ||
23263 | _ACEOF | |
23264 | ||
23265 | ||
23266 | ||
23267 | cat - <<_ACEOF >conftest.h | |
23268 | ||
23269 | _ACEOF | |
23270 | ||
23271 | ||
23272 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23273 | echo "obj-m := conftest.o" >build/Makefile | |
23274 | modpost_flag='' | |
23275 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23276 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23277 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23278 | (eval $ac_try) 2>&5 | |
23279 | ac_status=$? | |
23280 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23281 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23282 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23283 | (eval $ac_try) 2>&5 | |
23284 | ac_status=$? | |
23285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23286 | test $ac_status = 0; }; }; then : | |
23287 | rc=0 | |
23288 | else | |
23289 | $as_echo "$as_me: failed program was:" >&5 | |
23290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23291 | rc=1 | |
23292 | ||
23293 | ||
23294 | fi | |
23295 | rm -Rf build | |
23296 | ||
23297 | ||
23298 | if test $rc -ne 0; then : | |
23299 | ||
23300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23301 | $as_echo "no" >&6; } | |
df9d7621 CIK |
23302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 |
23303 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
23304 | ||
23305 | ||
23306 | ||
23307 | cat confdefs.h - <<_ACEOF >conftest.c | |
23308 | ||
23309 | ||
23310 | #include <linux/backing-dev.h> | |
23311 | struct backing_dev_info bdi; | |
23312 | ||
23313 | int | |
23314 | main (void) | |
23315 | { | |
23316 | ||
23317 | char *name = "bdi"; | |
23318 | unsigned int cap = BDI_CAP_MAP_COPY; | |
23319 | int error __attribute__((unused)) = | |
23320 | bdi_setup_and_register(&bdi, name, cap); | |
23321 | ||
23322 | ; | |
23323 | return 0; | |
23324 | } | |
23325 | ||
23326 | _ACEOF | |
23327 | ||
23328 | ||
23329 | ||
23330 | cat - <<_ACEOF >conftest.h | |
23331 | ||
23332 | _ACEOF | |
23333 | ||
23334 | ||
23335 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23336 | echo "obj-m := conftest.o" >build/Makefile | |
23337 | modpost_flag='' | |
23338 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23339 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23340 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23341 | (eval $ac_try) 2>&5 | |
23342 | ac_status=$? | |
23343 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23344 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23345 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23346 | (eval $ac_try) 2>&5 | |
23347 | ac_status=$? | |
23348 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23349 | test $ac_status = 0; }; }; then : | |
23350 | rc=0 | |
23351 | else | |
23352 | $as_echo "$as_me: failed program was:" >&5 | |
23353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23354 | rc=1 | |
23355 | ||
23356 | ||
23357 | fi | |
23358 | rm -Rf build | |
23359 | ||
23360 | ||
23361 | if test $rc -ne 0; then : | |
23362 | ||
23363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23364 | $as_echo "no" >&6; } | |
87d546d8 TG |
23365 | |
23366 | else | |
23367 | if test "x$enable_linux_builtin" != xyes; then | |
23368 | ||
23369 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23370 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23371 | rc=$? | |
23372 | if test $rc -ne 0; then | |
23373 | export=0 | |
23374 | for file in mm/backing-dev.c; do | |
23375 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23376 | "$LINUX/$file" 2>/dev/null | |
23377 | rc=$? | |
23378 | if test $rc -eq 0; then | |
23379 | export=1 | |
23380 | break; | |
23381 | fi | |
23382 | done | |
23383 | if test $export -eq 0; then : | |
23384 | rc=1 | |
23385 | else : | |
23386 | rc=0 | |
23387 | fi | |
23388 | else : | |
23389 | rc=0 | |
23390 | fi | |
23391 | ||
23392 | fi | |
23393 | if test $rc -ne 0; then : | |
23394 | ||
df9d7621 | 23395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
23396 | $as_echo "no" >&6; } |
23397 | ||
23398 | else : | |
23399 | ||
df9d7621 | 23400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
23401 | $as_echo "yes" >&6; } |
23402 | ||
23403 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23404 | ||
23405 | ||
23406 | fi | |
23407 | fi | |
23408 | ||
23409 | ||
23410 | else | |
23411 | if test "x$enable_linux_builtin" != xyes; then | |
23412 | ||
23413 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23414 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23415 | rc=$? | |
23416 | if test $rc -ne 0; then | |
23417 | export=0 | |
23418 | for file in mm/backing-dev.c; do | |
23419 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23420 | "$LINUX/$file" 2>/dev/null | |
23421 | rc=$? | |
23422 | if test $rc -eq 0; then | |
23423 | export=1 | |
23424 | break; | |
23425 | fi | |
23426 | done | |
23427 | if test $export -eq 0; then : | |
23428 | rc=1 | |
23429 | else : | |
23430 | rc=0 | |
23431 | fi | |
23432 | else : | |
23433 | rc=0 | |
23434 | fi | |
23435 | ||
23436 | fi | |
23437 | if test $rc -ne 0; then : | |
23438 | ||
df9d7621 | 23439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 | 23440 | $as_echo "no" >&6; } |
df9d7621 | 23441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 |
87d546d8 TG |
23442 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } |
23443 | ||
23444 | ||
23445 | ||
23446 | cat confdefs.h - <<_ACEOF >conftest.c | |
23447 | ||
23448 | ||
df9d7621 CIK |
23449 | #include <linux/backing-dev.h> |
23450 | struct backing_dev_info bdi; | |
87d546d8 TG |
23451 | |
23452 | int | |
23453 | main (void) | |
23454 | { | |
23455 | ||
df9d7621 CIK |
23456 | char *name = "bdi"; |
23457 | unsigned int cap = BDI_CAP_MAP_COPY; | |
23458 | int error __attribute__((unused)) = | |
23459 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
23460 | |
23461 | ; | |
23462 | return 0; | |
23463 | } | |
23464 | ||
23465 | _ACEOF | |
23466 | ||
23467 | ||
23468 | ||
23469 | cat - <<_ACEOF >conftest.h | |
23470 | ||
23471 | _ACEOF | |
23472 | ||
23473 | ||
23474 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23475 | echo "obj-m := conftest.o" >build/Makefile | |
23476 | modpost_flag='' | |
23477 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23478 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23479 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23480 | (eval $ac_try) 2>&5 | |
23481 | ac_status=$? | |
23482 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23483 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23484 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23485 | (eval $ac_try) 2>&5 | |
23486 | ac_status=$? | |
23487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23488 | test $ac_status = 0; }; }; then : | |
23489 | rc=0 | |
23490 | else | |
23491 | $as_echo "$as_me: failed program was:" >&5 | |
23492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23493 | rc=1 | |
23494 | ||
23495 | ||
23496 | fi | |
23497 | rm -Rf build | |
23498 | ||
23499 | ||
23500 | if test $rc -ne 0; then : | |
23501 | ||
df9d7621 | 23502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
23503 | $as_echo "no" >&6; } |
23504 | ||
23505 | else | |
23506 | if test "x$enable_linux_builtin" != xyes; then | |
23507 | ||
23508 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23509 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23510 | rc=$? | |
23511 | if test $rc -ne 0; then | |
23512 | export=0 | |
23513 | for file in mm/backing-dev.c; do | |
23514 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23515 | "$LINUX/$file" 2>/dev/null | |
23516 | rc=$? | |
23517 | if test $rc -eq 0; then | |
23518 | export=1 | |
23519 | break; | |
23520 | fi | |
23521 | done | |
23522 | if test $export -eq 0; then : | |
23523 | rc=1 | |
23524 | else : | |
23525 | rc=0 | |
23526 | fi | |
23527 | else : | |
23528 | rc=0 | |
23529 | fi | |
23530 | ||
23531 | fi | |
23532 | if test $rc -ne 0; then : | |
23533 | ||
df9d7621 | 23534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
23535 | $as_echo "no" >&6; } |
23536 | ||
23537 | else : | |
23538 | ||
df9d7621 | 23539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
23540 | $as_echo "yes" >&6; } |
23541 | ||
23542 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23543 | ||
23544 | ||
23545 | fi | |
23546 | fi | |
23547 | ||
23548 | ||
23549 | else : | |
23550 | ||
df9d7621 | 23551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
23552 | $as_echo "yes" >&6; } |
23553 | ||
23554 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23555 | ||
23556 | ||
23557 | fi | |
23558 | fi | |
23559 | ||
23560 | ||
df9d7621 CIK |
23561 | else |
23562 | if test "x$enable_linux_builtin" != xyes; then | |
23563 | ||
23564 | grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \ | |
23565 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23566 | rc=$? | |
23567 | if test $rc -ne 0; then | |
23568 | export=0 | |
23569 | for file in fs/super.c; do | |
23570 | grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \ | |
23571 | "$LINUX/$file" 2>/dev/null | |
23572 | rc=$? | |
23573 | if test $rc -eq 0; then | |
23574 | export=1 | |
23575 | break; | |
23576 | fi | |
23577 | done | |
23578 | if test $export -eq 0; then : | |
23579 | rc=1 | |
23580 | else : | |
23581 | rc=0 | |
23582 | fi | |
23583 | else : | |
23584 | rc=0 | |
23585 | fi | |
23586 | ||
23587 | fi | |
23588 | if test $rc -ne 0; then : | |
23589 | ||
23590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23591 | $as_echo "no" >&6; } | |
23592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 | |
23593 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } | |
87d546d8 | 23594 | |
87d546d8 TG |
23595 | |
23596 | ||
23597 | cat confdefs.h - <<_ACEOF >conftest.c | |
23598 | ||
23599 | ||
df9d7621 CIK |
23600 | #include <linux/backing-dev.h> |
23601 | struct backing_dev_info bdi; | |
87d546d8 TG |
23602 | |
23603 | int | |
23604 | main (void) | |
23605 | { | |
23606 | ||
df9d7621 CIK |
23607 | char *name = "bdi"; |
23608 | int error __attribute__((unused)) = | |
23609 | bdi_setup_and_register(&bdi, name); | |
87d546d8 TG |
23610 | |
23611 | ; | |
23612 | return 0; | |
23613 | } | |
23614 | ||
23615 | _ACEOF | |
23616 | ||
23617 | ||
23618 | ||
23619 | cat - <<_ACEOF >conftest.h | |
23620 | ||
23621 | _ACEOF | |
23622 | ||
23623 | ||
23624 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23625 | echo "obj-m := conftest.o" >build/Makefile | |
23626 | modpost_flag='' | |
23627 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23628 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23629 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23630 | (eval $ac_try) 2>&5 | |
23631 | ac_status=$? | |
23632 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23633 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23634 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23635 | (eval $ac_try) 2>&5 | |
23636 | ac_status=$? | |
23637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23638 | test $ac_status = 0; }; }; then : | |
df9d7621 | 23639 | rc=0 |
87d546d8 TG |
23640 | else |
23641 | $as_echo "$as_me: failed program was:" >&5 | |
23642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
df9d7621 | 23643 | rc=1 |
87d546d8 TG |
23644 | |
23645 | ||
23646 | fi | |
23647 | rm -Rf build | |
23648 | ||
23649 | ||
df9d7621 | 23650 | if test $rc -ne 0; then : |
87d546d8 | 23651 | |
df9d7621 CIK |
23652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
23653 | $as_echo "no" >&6; } | |
23654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
23655 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
87d546d8 | 23656 | |
87d546d8 TG |
23657 | |
23658 | ||
23659 | cat confdefs.h - <<_ACEOF >conftest.c | |
23660 | ||
23661 | ||
df9d7621 CIK |
23662 | #include <linux/backing-dev.h> |
23663 | struct backing_dev_info bdi; | |
87d546d8 TG |
23664 | |
23665 | int | |
23666 | main (void) | |
23667 | { | |
23668 | ||
df9d7621 CIK |
23669 | char *name = "bdi"; |
23670 | unsigned int cap = BDI_CAP_MAP_COPY; | |
23671 | int error __attribute__((unused)) = | |
23672 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
23673 | |
23674 | ; | |
23675 | return 0; | |
23676 | } | |
23677 | ||
23678 | _ACEOF | |
23679 | ||
23680 | ||
23681 | ||
23682 | cat - <<_ACEOF >conftest.h | |
23683 | ||
23684 | _ACEOF | |
23685 | ||
23686 | ||
23687 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23688 | echo "obj-m := conftest.o" >build/Makefile | |
23689 | modpost_flag='' | |
23690 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23691 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23692 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23693 | (eval $ac_try) 2>&5 | |
23694 | ac_status=$? | |
23695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23696 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23697 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23698 | (eval $ac_try) 2>&5 | |
23699 | ac_status=$? | |
23700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23701 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
23702 | rc=0 |
23703 | else | |
23704 | $as_echo "$as_me: failed program was:" >&5 | |
23705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23706 | rc=1 | |
87d546d8 | 23707 | |
87d546d8 | 23708 | |
df9d7621 CIK |
23709 | fi |
23710 | rm -Rf build | |
87d546d8 TG |
23711 | |
23712 | ||
df9d7621 | 23713 | if test $rc -ne 0; then : |
87d546d8 | 23714 | |
df9d7621 | 23715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
23716 | $as_echo "no" >&6; } |
23717 | ||
df9d7621 CIK |
23718 | else |
23719 | if test "x$enable_linux_builtin" != xyes; then | |
87d546d8 | 23720 | |
df9d7621 CIK |
23721 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ |
23722 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23723 | rc=$? | |
23724 | if test $rc -ne 0; then | |
23725 | export=0 | |
23726 | for file in mm/backing-dev.c; do | |
23727 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23728 | "$LINUX/$file" 2>/dev/null | |
23729 | rc=$? | |
23730 | if test $rc -eq 0; then | |
23731 | export=1 | |
23732 | break; | |
23733 | fi | |
23734 | done | |
23735 | if test $export -eq 0; then : | |
23736 | rc=1 | |
23737 | else : | |
23738 | rc=0 | |
23739 | fi | |
23740 | else : | |
23741 | rc=0 | |
23742 | fi | |
87d546d8 | 23743 | |
df9d7621 CIK |
23744 | fi |
23745 | if test $rc -ne 0; then : | |
87d546d8 | 23746 | |
df9d7621 CIK |
23747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
23748 | $as_echo "no" >&6; } | |
87d546d8 | 23749 | |
df9d7621 CIK |
23750 | else : |
23751 | ||
23752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23753 | $as_echo "yes" >&6; } | |
23754 | ||
23755 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23756 | ||
23757 | ||
23758 | fi | |
23759 | fi | |
23760 | ||
23761 | ||
23762 | else | |
23763 | if test "x$enable_linux_builtin" != xyes; then | |
23764 | ||
23765 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23766 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23767 | rc=$? | |
23768 | if test $rc -ne 0; then | |
23769 | export=0 | |
23770 | for file in mm/backing-dev.c; do | |
23771 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23772 | "$LINUX/$file" 2>/dev/null | |
23773 | rc=$? | |
23774 | if test $rc -eq 0; then | |
23775 | export=1 | |
23776 | break; | |
23777 | fi | |
23778 | done | |
23779 | if test $export -eq 0; then : | |
23780 | rc=1 | |
23781 | else : | |
23782 | rc=0 | |
23783 | fi | |
23784 | else : | |
23785 | rc=0 | |
23786 | fi | |
23787 | ||
23788 | fi | |
23789 | if test $rc -ne 0; then : | |
23790 | ||
23791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23792 | $as_echo "no" >&6; } | |
23793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
23794 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
87d546d8 | 23795 | |
87d546d8 TG |
23796 | |
23797 | ||
23798 | cat confdefs.h - <<_ACEOF >conftest.c | |
23799 | ||
23800 | ||
df9d7621 CIK |
23801 | #include <linux/backing-dev.h> |
23802 | struct backing_dev_info bdi; | |
87d546d8 TG |
23803 | |
23804 | int | |
23805 | main (void) | |
23806 | { | |
23807 | ||
df9d7621 CIK |
23808 | char *name = "bdi"; |
23809 | unsigned int cap = BDI_CAP_MAP_COPY; | |
23810 | int error __attribute__((unused)) = | |
23811 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
23812 | |
23813 | ; | |
23814 | return 0; | |
23815 | } | |
23816 | ||
23817 | _ACEOF | |
23818 | ||
23819 | ||
23820 | ||
23821 | cat - <<_ACEOF >conftest.h | |
23822 | ||
23823 | _ACEOF | |
23824 | ||
23825 | ||
23826 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23827 | echo "obj-m := conftest.o" >build/Makefile | |
23828 | modpost_flag='' | |
23829 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23830 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23831 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23832 | (eval $ac_try) 2>&5 | |
23833 | ac_status=$? | |
23834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23835 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23836 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23837 | (eval $ac_try) 2>&5 | |
23838 | ac_status=$? | |
23839 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23840 | test $ac_status = 0; }; }; then : | |
df9d7621 | 23841 | rc=0 |
87d546d8 TG |
23842 | else |
23843 | $as_echo "$as_me: failed program was:" >&5 | |
23844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
df9d7621 | 23845 | rc=1 |
87d546d8 | 23846 | |
df9d7621 CIK |
23847 | |
23848 | fi | |
23849 | rm -Rf build | |
23850 | ||
23851 | ||
23852 | if test $rc -ne 0; then : | |
23853 | ||
23854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23855 | $as_echo "no" >&6; } | |
23856 | ||
23857 | else | |
23858 | if test "x$enable_linux_builtin" != xyes; then | |
23859 | ||
23860 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23861 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23862 | rc=$? | |
23863 | if test $rc -ne 0; then | |
23864 | export=0 | |
23865 | for file in mm/backing-dev.c; do | |
23866 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23867 | "$LINUX/$file" 2>/dev/null | |
23868 | rc=$? | |
23869 | if test $rc -eq 0; then | |
23870 | export=1 | |
23871 | break; | |
23872 | fi | |
23873 | done | |
23874 | if test $export -eq 0; then : | |
23875 | rc=1 | |
23876 | else : | |
23877 | rc=0 | |
23878 | fi | |
23879 | else : | |
23880 | rc=0 | |
23881 | fi | |
23882 | ||
23883 | fi | |
23884 | if test $rc -ne 0; then : | |
23885 | ||
23886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23887 | $as_echo "no" >&6; } | |
23888 | ||
23889 | else : | |
23890 | ||
23891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23892 | $as_echo "yes" >&6; } | |
23893 | ||
23894 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23895 | ||
23896 | ||
23897 | fi | |
23898 | fi | |
23899 | ||
23900 | ||
23901 | else : | |
23902 | ||
23903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23904 | $as_echo "yes" >&6; } | |
23905 | ||
23906 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23907 | ||
23908 | ||
23909 | fi | |
23910 | fi | |
23911 | ||
23912 | ||
23913 | else : | |
23914 | ||
23915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23916 | $as_echo "yes" >&6; } | |
23917 | ||
23918 | $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h | |
23919 | ||
23920 | ||
23921 | fi | |
23922 | fi | |
23923 | ||
23924 | ||
23925 | ||
23926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5 | |
23927 | $as_echo_n "checking whether set_nlink() is available... " >&6; } | |
23928 | ||
23929 | ||
23930 | cat confdefs.h - <<_ACEOF >conftest.c | |
23931 | ||
23932 | ||
23933 | #include <linux/fs.h> | |
23934 | ||
23935 | int | |
23936 | main (void) | |
23937 | { | |
23938 | ||
23939 | struct inode node; | |
23940 | unsigned int link = 0; | |
23941 | (void) set_nlink(&node, link); | |
23942 | ||
23943 | ; | |
23944 | return 0; | |
23945 | } | |
23946 | ||
23947 | _ACEOF | |
23948 | ||
23949 | ||
23950 | ||
23951 | cat - <<_ACEOF >conftest.h | |
23952 | ||
23953 | _ACEOF | |
23954 | ||
23955 | ||
23956 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23957 | echo "obj-m := conftest.o" >build/Makefile | |
23958 | modpost_flag='' | |
23959 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23960 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23961 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23962 | (eval $ac_try) 2>&5 | |
23963 | ac_status=$? | |
23964 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23965 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23966 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23967 | (eval $ac_try) 2>&5 | |
23968 | ac_status=$? | |
23969 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23970 | test $ac_status = 0; }; }; then : | |
23971 | ||
23972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23973 | $as_echo "yes" >&6; } | |
23974 | ||
23975 | $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h | |
23976 | ||
23977 | ||
23978 | else | |
23979 | $as_echo "$as_me: failed program was:" >&5 | |
23980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23981 | ||
23982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23983 | $as_echo "no" >&6; } | |
23984 | ||
23985 | ||
23986 | ||
23987 | fi | |
23988 | rm -Rf build | |
23989 | ||
23990 | ||
23991 | ||
23992 | ||
23993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5 | |
23994 | $as_echo_n "checking whether elevator_change() is available... " >&6; } | |
23995 | tmp_flags="$EXTRA_KCFLAGS" | |
23996 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
23997 | ||
23998 | ||
23999 | cat confdefs.h - <<_ACEOF >conftest.c | |
24000 | ||
24001 | ||
24002 | #include <linux/blkdev.h> | |
24003 | #include <linux/elevator.h> | |
24004 | ||
24005 | int | |
24006 | main (void) | |
24007 | { | |
24008 | ||
24009 | int ret; | |
24010 | struct request_queue *q = NULL; | |
24011 | char *elevator = NULL; | |
24012 | ret = elevator_change(q, elevator); | |
24013 | ||
24014 | ; | |
24015 | return 0; | |
24016 | } | |
24017 | ||
24018 | _ACEOF | |
24019 | ||
24020 | ||
24021 | ||
24022 | cat - <<_ACEOF >conftest.h | |
24023 | ||
24024 | _ACEOF | |
24025 | ||
24026 | ||
24027 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24028 | echo "obj-m := conftest.o" >build/Makefile | |
24029 | modpost_flag='' | |
24030 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24031 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24032 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24033 | (eval $ac_try) 2>&5 | |
24034 | ac_status=$? | |
24035 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24036 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24037 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24038 | (eval $ac_try) 2>&5 | |
24039 | ac_status=$? | |
24040 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24041 | test $ac_status = 0; }; }; then : | |
24042 | ||
24043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24044 | $as_echo "yes" >&6; } | |
24045 | ||
24046 | $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h | |
24047 | ||
24048 | ||
24049 | else | |
24050 | $as_echo "$as_me: failed program was:" >&5 | |
24051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24052 | ||
24053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24054 | $as_echo "no" >&6; } | |
24055 | ||
24056 | ||
24057 | ||
24058 | fi | |
24059 | rm -Rf build | |
24060 | ||
24061 | ||
24062 | EXTRA_KCFLAGS="$tmp_flags" | |
24063 | ||
24064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5 | |
24065 | $as_echo_n "checking whether sget() wants 5 args... " >&6; } | |
24066 | ||
24067 | ||
24068 | cat confdefs.h - <<_ACEOF >conftest.c | |
24069 | ||
24070 | ||
24071 | #include <linux/fs.h> | |
24072 | ||
24073 | int | |
24074 | main (void) | |
24075 | { | |
24076 | ||
24077 | struct file_system_type *type = NULL; | |
24078 | int (*test)(struct super_block *,void *) = NULL; | |
24079 | int (*set)(struct super_block *,void *) = NULL; | |
24080 | int flags = 0; | |
24081 | void *data = NULL; | |
24082 | (void) sget(type, test, set, flags, data); | |
24083 | ||
24084 | ; | |
24085 | return 0; | |
24086 | } | |
24087 | ||
24088 | _ACEOF | |
24089 | ||
24090 | ||
24091 | ||
24092 | cat - <<_ACEOF >conftest.h | |
24093 | ||
24094 | _ACEOF | |
24095 | ||
24096 | ||
24097 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24098 | echo "obj-m := conftest.o" >build/Makefile | |
24099 | modpost_flag='' | |
24100 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24101 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24102 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24103 | (eval $ac_try) 2>&5 | |
24104 | ac_status=$? | |
24105 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24106 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24107 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24108 | (eval $ac_try) 2>&5 | |
24109 | ac_status=$? | |
24110 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24111 | test $ac_status = 0; }; }; then : | |
24112 | ||
24113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24114 | $as_echo "yes" >&6; } | |
24115 | ||
24116 | $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h | |
24117 | ||
24118 | ||
24119 | else | |
24120 | $as_echo "$as_me: failed program was:" >&5 | |
24121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24122 | ||
24123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24124 | $as_echo "no" >&6; } | |
87d546d8 TG |
24125 | |
24126 | ||
24127 | ||
24128 | fi | |
24129 | rm -Rf build | |
24130 | ||
24131 | ||
24132 | ||
24133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5 | |
24134 | $as_echo_n "checking whether lseek_execute() is available... " >&6; } | |
24135 | ||
24136 | ||
24137 | ||
24138 | cat confdefs.h - <<_ACEOF >conftest.c | |
24139 | ||
24140 | ||
24141 | #include <linux/fs.h> | |
24142 | ||
24143 | int | |
24144 | main (void) | |
24145 | { | |
24146 | ||
24147 | struct file *fp __attribute__ ((unused)) = NULL; | |
24148 | struct inode *ip __attribute__ ((unused)) = NULL; | |
24149 | loff_t offset __attribute__ ((unused)) = 0; | |
24150 | loff_t maxsize __attribute__ ((unused)) = 0; | |
24151 | ||
24152 | lseek_execute(fp, ip, offset, maxsize); | |
24153 | ||
24154 | ; | |
24155 | return 0; | |
24156 | } | |
24157 | ||
24158 | _ACEOF | |
24159 | ||
24160 | ||
24161 | ||
24162 | cat - <<_ACEOF >conftest.h | |
24163 | ||
24164 | _ACEOF | |
24165 | ||
24166 | ||
24167 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24168 | echo "obj-m := conftest.o" >build/Makefile | |
24169 | modpost_flag='' | |
24170 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24171 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24172 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24173 | (eval $ac_try) 2>&5 | |
24174 | ac_status=$? | |
24175 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24176 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24177 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24178 | (eval $ac_try) 2>&5 | |
24179 | ac_status=$? | |
24180 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24181 | test $ac_status = 0; }; }; then : | |
24182 | rc=0 | |
24183 | else | |
24184 | $as_echo "$as_me: failed program was:" >&5 | |
24185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24186 | rc=1 | |
24187 | ||
24188 | ||
24189 | fi | |
24190 | rm -Rf build | |
24191 | ||
24192 | ||
24193 | if test $rc -ne 0; then : | |
24194 | ||
24195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24196 | $as_echo "no" >&6; } | |
24197 | ||
24198 | else | |
24199 | if test "x$enable_linux_builtin" != xyes; then | |
24200 | ||
24201 | grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \ | |
24202 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
24203 | rc=$? | |
24204 | if test $rc -ne 0; then | |
24205 | export=0 | |
24206 | for file in fs/read_write.c; do | |
24207 | grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \ | |
24208 | "$LINUX/$file" 2>/dev/null | |
24209 | rc=$? | |
24210 | if test $rc -eq 0; then | |
24211 | export=1 | |
24212 | break; | |
24213 | fi | |
24214 | done | |
24215 | if test $export -eq 0; then : | |
24216 | rc=1 | |
24217 | else : | |
24218 | rc=0 | |
24219 | fi | |
24220 | else : | |
24221 | rc=0 | |
24222 | fi | |
24223 | ||
24224 | fi | |
24225 | if test $rc -ne 0; then : | |
24226 | ||
24227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24228 | $as_echo "no" >&6; } | |
24229 | ||
24230 | else : | |
24231 | ||
24232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24233 | $as_echo "yes" >&6; } | |
24234 | ||
24235 | $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h | |
24236 | ||
24237 | ||
24238 | fi | |
24239 | fi | |
24240 | ||
24241 | ||
24242 | ||
24243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5 | |
24244 | $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; } | |
24245 | ||
24246 | ||
24247 | cat confdefs.h - <<_ACEOF >conftest.c | |
24248 | ||
24249 | ||
24250 | #include <linux/fs.h> | |
24251 | int iterate(struct file *filp, struct dir_context * context) | |
24252 | { return 0; } | |
24253 | ||
24254 | static const struct file_operations fops | |
24255 | __attribute__ ((unused)) = { | |
24256 | .iterate_shared = iterate, | |
24257 | }; | |
24258 | ||
24259 | int | |
24260 | main (void) | |
24261 | { | |
24262 | ||
24263 | ||
24264 | ; | |
24265 | return 0; | |
24266 | } | |
24267 | ||
24268 | _ACEOF | |
24269 | ||
24270 | ||
24271 | ||
24272 | cat - <<_ACEOF >conftest.h | |
24273 | ||
24274 | _ACEOF | |
24275 | ||
24276 | ||
24277 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24278 | echo "obj-m := conftest.o" >build/Makefile | |
24279 | modpost_flag='' | |
24280 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24281 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24282 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24283 | (eval $ac_try) 2>&5 | |
24284 | ac_status=$? | |
24285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24286 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24287 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24288 | (eval $ac_try) 2>&5 | |
24289 | ac_status=$? | |
24290 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24291 | test $ac_status = 0; }; }; then : | |
24292 | ||
24293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24294 | $as_echo "yes" >&6; } | |
24295 | ||
24296 | $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h | |
24297 | ||
24298 | ||
24299 | else | |
24300 | $as_echo "$as_me: failed program was:" >&5 | |
24301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24302 | ||
24303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24304 | $as_echo "no" >&6; } | |
24305 | ||
24306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5 | |
24307 | $as_echo_n "checking whether fops->iterate() is available... " >&6; } | |
24308 | ||
24309 | ||
24310 | cat confdefs.h - <<_ACEOF >conftest.c | |
24311 | ||
24312 | ||
24313 | #include <linux/fs.h> | |
24314 | int iterate(struct file *filp, struct dir_context * context) | |
24315 | { return 0; } | |
24316 | ||
24317 | static const struct file_operations fops | |
24318 | __attribute__ ((unused)) = { | |
24319 | .iterate = iterate, | |
24320 | }; | |
24321 | ||
24322 | int | |
24323 | main (void) | |
24324 | { | |
24325 | ||
24326 | ||
24327 | ; | |
24328 | return 0; | |
24329 | } | |
24330 | ||
24331 | _ACEOF | |
24332 | ||
24333 | ||
24334 | ||
24335 | cat - <<_ACEOF >conftest.h | |
24336 | ||
24337 | _ACEOF | |
24338 | ||
24339 | ||
24340 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24341 | echo "obj-m := conftest.o" >build/Makefile | |
24342 | modpost_flag='' | |
24343 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24344 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24345 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24346 | (eval $ac_try) 2>&5 | |
24347 | ac_status=$? | |
24348 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24349 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24350 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24351 | (eval $ac_try) 2>&5 | |
24352 | ac_status=$? | |
24353 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24354 | test $ac_status = 0; }; }; then : | |
24355 | ||
24356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24357 | $as_echo "yes" >&6; } | |
24358 | ||
24359 | $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h | |
24360 | ||
24361 | ||
24362 | else | |
24363 | $as_echo "$as_me: failed program was:" >&5 | |
24364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24365 | ||
24366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24367 | $as_echo "no" >&6; } | |
24368 | ||
24369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5 | |
24370 | $as_echo_n "checking whether fops->readdir() is available... " >&6; } | |
24371 | ||
24372 | ||
24373 | cat confdefs.h - <<_ACEOF >conftest.c | |
24374 | ||
24375 | ||
24376 | #include <linux/fs.h> | |
24377 | int readdir(struct file *filp, void *entry, filldir_t func) | |
24378 | { return 0; } | |
24379 | ||
24380 | static const struct file_operations fops | |
24381 | __attribute__ ((unused)) = { | |
24382 | .readdir = readdir, | |
24383 | }; | |
24384 | ||
24385 | int | |
24386 | main (void) | |
24387 | { | |
24388 | ||
24389 | ||
24390 | ; | |
24391 | return 0; | |
24392 | } | |
24393 | ||
24394 | _ACEOF | |
24395 | ||
24396 | ||
24397 | ||
24398 | cat - <<_ACEOF >conftest.h | |
24399 | ||
24400 | _ACEOF | |
24401 | ||
24402 | ||
24403 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24404 | echo "obj-m := conftest.o" >build/Makefile | |
24405 | modpost_flag='' | |
24406 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24407 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24408 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24409 | (eval $ac_try) 2>&5 | |
24410 | ac_status=$? | |
24411 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24412 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24413 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24414 | (eval $ac_try) 2>&5 | |
24415 | ac_status=$? | |
24416 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24417 | test $ac_status = 0; }; }; then : | |
24418 | ||
24419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24420 | $as_echo "yes" >&6; } | |
24421 | ||
24422 | $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h | |
24423 | ||
24424 | ||
24425 | else | |
24426 | $as_echo "$as_me: failed program was:" >&5 | |
24427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24428 | ||
24429 | as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5 | |
24430 | ||
24431 | ||
24432 | ||
24433 | fi | |
24434 | rm -Rf build | |
24435 | ||
24436 | ||
24437 | ||
24438 | ||
24439 | ||
24440 | fi | |
24441 | rm -Rf build | |
24442 | ||
24443 | ||
24444 | ||
24445 | ||
24446 | ||
24447 | fi | |
24448 | rm -Rf build | |
24449 | ||
24450 | ||
24451 | ||
24452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5 | |
24453 | $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; } | |
24454 | ||
24455 | ||
24456 | cat confdefs.h - <<_ACEOF >conftest.c | |
24457 | ||
24458 | ||
24459 | #include <linux/fs.h> | |
24460 | ||
24461 | ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to) | |
24462 | { return 0; } | |
24463 | ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from) | |
24464 | { return 0; } | |
24465 | ||
24466 | static const struct file_operations | |
24467 | fops __attribute__ ((unused)) = { | |
24468 | .read_iter = test_read, | |
24469 | .write_iter = test_write, | |
24470 | }; | |
24471 | ||
24472 | int | |
24473 | main (void) | |
24474 | { | |
24475 | ||
24476 | ||
24477 | ; | |
24478 | return 0; | |
24479 | } | |
24480 | ||
24481 | _ACEOF | |
24482 | ||
24483 | ||
24484 | ||
24485 | cat - <<_ACEOF >conftest.h | |
24486 | ||
24487 | _ACEOF | |
24488 | ||
24489 | ||
24490 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24491 | echo "obj-m := conftest.o" >build/Makefile | |
24492 | modpost_flag='' | |
24493 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24494 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24495 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24496 | (eval $ac_try) 2>&5 | |
24497 | ac_status=$? | |
24498 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24499 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24500 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24501 | (eval $ac_try) 2>&5 | |
24502 | ac_status=$? | |
24503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24504 | test $ac_status = 0; }; }; then : | |
24505 | ||
24506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24507 | $as_echo "yes" >&6; } | |
24508 | ||
24509 | $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h | |
24510 | ||
24511 | ||
5b5f25ca CIK |
24512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5 |
24513 | $as_echo_n "checking whether new_sync_read() is available... " >&6; } | |
24514 | ||
24515 | ||
24516 | cat confdefs.h - <<_ACEOF >conftest.c | |
24517 | ||
24518 | ||
24519 | #include <linux/fs.h> | |
24520 | ||
24521 | int | |
24522 | main (void) | |
24523 | { | |
24524 | ||
24525 | new_sync_read(NULL, NULL, 0, NULL); | |
24526 | ||
24527 | ; | |
24528 | return 0; | |
24529 | } | |
24530 | ||
24531 | _ACEOF | |
24532 | ||
24533 | ||
24534 | ||
24535 | cat - <<_ACEOF >conftest.h | |
24536 | ||
24537 | _ACEOF | |
24538 | ||
24539 | ||
24540 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24541 | echo "obj-m := conftest.o" >build/Makefile | |
24542 | modpost_flag='' | |
24543 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24544 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24545 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24546 | (eval $ac_try) 2>&5 | |
24547 | ac_status=$? | |
24548 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24549 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24550 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24551 | (eval $ac_try) 2>&5 | |
24552 | ac_status=$? | |
24553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24554 | test $ac_status = 0; }; }; then : | |
24555 | ||
24556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24557 | $as_echo "yes" >&6; } | |
24558 | ||
24559 | $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h | |
24560 | ||
24561 | ||
24562 | else | |
24563 | $as_echo "$as_me: failed program was:" >&5 | |
24564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24565 | ||
24566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24567 | $as_echo "no" >&6; } | |
24568 | ||
24569 | ||
24570 | ||
24571 | fi | |
24572 | rm -Rf build | |
24573 | ||
24574 | ||
24575 | ||
24576 | ||
87d546d8 TG |
24577 | else |
24578 | $as_echo "$as_me: failed program was:" >&5 | |
24579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24580 | ||
24581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24582 | $as_echo "no" >&6; } | |
24583 | ||
24584 | ||
24585 | ||
24586 | fi | |
24587 | rm -Rf build | |
24588 | ||
24589 | ||
24590 | ||
24591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5 | |
24592 | $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; } | |
24593 | ||
24594 | ||
24595 | cat confdefs.h - <<_ACEOF >conftest.c | |
24596 | ||
24597 | ||
24598 | #include <linux/fs.h> | |
24599 | ||
24600 | ||
24601 | int | |
24602 | main (void) | |
24603 | { | |
24604 | ||
24605 | struct kiocb *iocb = NULL; | |
24606 | struct iov_iter *iov = NULL; | |
24607 | generic_write_checks(iocb, iov); | |
24608 | ||
24609 | ; | |
24610 | return 0; | |
24611 | } | |
24612 | ||
24613 | _ACEOF | |
24614 | ||
24615 | ||
24616 | ||
24617 | cat - <<_ACEOF >conftest.h | |
24618 | ||
24619 | _ACEOF | |
24620 | ||
24621 | ||
24622 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24623 | echo "obj-m := conftest.o" >build/Makefile | |
24624 | modpost_flag='' | |
24625 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24626 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24627 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24628 | (eval $ac_try) 2>&5 | |
24629 | ac_status=$? | |
24630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24631 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24632 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24633 | (eval $ac_try) 2>&5 | |
24634 | ac_status=$? | |
24635 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24636 | test $ac_status = 0; }; }; then : | |
24637 | ||
24638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24639 | $as_echo "yes" >&6; } | |
24640 | ||
24641 | $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h | |
24642 | ||
24643 | ||
24644 | else | |
24645 | $as_echo "$as_me: failed program was:" >&5 | |
24646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24647 | ||
24648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24649 | $as_echo "no" >&6; } | |
24650 | ||
24651 | ||
24652 | ||
24653 | fi | |
24654 | rm -Rf build | |
24655 | ||
24656 | ||
24657 | ||
24658 | ||
24659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5 | |
24660 | $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; } | |
24661 | ||
24662 | ||
24663 | cat confdefs.h - <<_ACEOF >conftest.c | |
24664 | ||
24665 | ||
24666 | #include <linux/pagemap.h> | |
24667 | ||
24668 | int | |
24669 | main (void) | |
24670 | { | |
24671 | ||
24672 | struct page page; | |
24673 | kmap_atomic(&page); | |
24674 | ||
24675 | ; | |
24676 | return 0; | |
24677 | } | |
24678 | ||
24679 | _ACEOF | |
24680 | ||
24681 | ||
24682 | ||
24683 | cat - <<_ACEOF >conftest.h | |
24684 | ||
24685 | _ACEOF | |
24686 | ||
24687 | ||
24688 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24689 | echo "obj-m := conftest.o" >build/Makefile | |
24690 | modpost_flag='' | |
24691 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24692 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24693 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24694 | (eval $ac_try) 2>&5 | |
24695 | ac_status=$? | |
24696 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24697 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24698 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24699 | (eval $ac_try) 2>&5 | |
24700 | ac_status=$? | |
24701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24702 | test $ac_status = 0; }; }; then : | |
24703 | ||
24704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24705 | $as_echo "yes" >&6; } | |
24706 | ||
24707 | $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h | |
24708 | ||
24709 | ||
24710 | else | |
24711 | $as_echo "$as_me: failed program was:" >&5 | |
24712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24713 | ||
24714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24715 | $as_echo "no" >&6; } | |
24716 | ||
24717 | ||
24718 | ||
24719 | fi | |
24720 | rm -Rf build | |
24721 | ||
24722 | ||
24723 | ||
24724 | ||
24725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5 | |
24726 | $as_echo_n "checking whether follow_down_one() is available... " >&6; } | |
24727 | ||
24728 | ||
24729 | cat confdefs.h - <<_ACEOF >conftest.c | |
24730 | ||
24731 | ||
24732 | #include <linux/namei.h> | |
24733 | ||
24734 | int | |
24735 | main (void) | |
24736 | { | |
24737 | ||
24738 | struct path *p = NULL; | |
24739 | follow_down_one(p); | |
24740 | ||
24741 | ; | |
24742 | return 0; | |
24743 | } | |
24744 | ||
24745 | _ACEOF | |
24746 | ||
24747 | ||
24748 | ||
24749 | cat - <<_ACEOF >conftest.h | |
24750 | ||
24751 | _ACEOF | |
24752 | ||
24753 | ||
24754 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24755 | echo "obj-m := conftest.o" >build/Makefile | |
24756 | modpost_flag='' | |
24757 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24758 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24759 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24760 | (eval $ac_try) 2>&5 | |
24761 | ac_status=$? | |
24762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24763 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24764 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24765 | (eval $ac_try) 2>&5 | |
24766 | ac_status=$? | |
24767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24768 | test $ac_status = 0; }; }; then : | |
24769 | ||
24770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24771 | $as_echo "yes" >&6; } | |
24772 | ||
24773 | $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h | |
24774 | ||
24775 | ||
24776 | else | |
24777 | $as_echo "$as_me: failed program was:" >&5 | |
24778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24779 | ||
24780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24781 | $as_echo "no" >&6; } | |
24782 | ||
24783 | ||
24784 | ||
24785 | fi | |
24786 | rm -Rf build | |
24787 | ||
24788 | ||
24789 | ||
24790 | ||
24791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5 | |
24792 | $as_echo_n "checking whether make_request_fn() returns int... " >&6; } | |
24793 | ||
24794 | ||
24795 | cat confdefs.h - <<_ACEOF >conftest.c | |
24796 | ||
24797 | ||
24798 | #include <linux/blkdev.h> | |
24799 | ||
24800 | int make_request(struct request_queue *q, struct bio *bio) | |
24801 | { | |
24802 | return (0); | |
24803 | } | |
24804 | ||
24805 | int | |
24806 | main (void) | |
24807 | { | |
24808 | ||
24809 | blk_queue_make_request(NULL, &make_request); | |
24810 | ||
24811 | ; | |
24812 | return 0; | |
24813 | } | |
24814 | ||
24815 | _ACEOF | |
24816 | ||
24817 | ||
24818 | ||
24819 | cat - <<_ACEOF >conftest.h | |
24820 | ||
24821 | _ACEOF | |
24822 | ||
24823 | ||
24824 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24825 | echo "obj-m := conftest.o" >build/Makefile | |
24826 | modpost_flag='' | |
24827 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24828 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24829 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24830 | (eval $ac_try) 2>&5 | |
24831 | ac_status=$? | |
24832 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24833 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24834 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24835 | (eval $ac_try) 2>&5 | |
24836 | ac_status=$? | |
24837 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24838 | test $ac_status = 0; }; }; then : | |
24839 | ||
24840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24841 | $as_echo "yes" >&6; } | |
24842 | ||
24843 | $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h | |
24844 | ||
24845 | ||
24846 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h | |
24847 | ||
24848 | ||
24849 | else | |
24850 | $as_echo "$as_me: failed program was:" >&5 | |
24851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24852 | ||
24853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24854 | $as_echo "no" >&6; } | |
24855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5 | |
24856 | $as_echo_n "checking whether make_request_fn() returns void... " >&6; } | |
24857 | ||
24858 | ||
24859 | cat confdefs.h - <<_ACEOF >conftest.c | |
24860 | ||
24861 | ||
24862 | #include <linux/blkdev.h> | |
24863 | ||
24864 | void make_request(struct request_queue *q, struct bio *bio) | |
24865 | { | |
24866 | return; | |
24867 | } | |
24868 | ||
24869 | int | |
24870 | main (void) | |
24871 | { | |
24872 | ||
24873 | blk_queue_make_request(NULL, &make_request); | |
24874 | ||
24875 | ; | |
24876 | return 0; | |
24877 | } | |
24878 | ||
24879 | _ACEOF | |
24880 | ||
24881 | ||
24882 | ||
24883 | cat - <<_ACEOF >conftest.h | |
24884 | ||
24885 | _ACEOF | |
24886 | ||
24887 | ||
24888 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24889 | echo "obj-m := conftest.o" >build/Makefile | |
24890 | modpost_flag='' | |
24891 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24892 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24893 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24894 | (eval $ac_try) 2>&5 | |
24895 | ac_status=$? | |
24896 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24897 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24898 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24899 | (eval $ac_try) 2>&5 | |
24900 | ac_status=$? | |
24901 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24902 | test $ac_status = 0; }; }; then : | |
24903 | ||
24904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24905 | $as_echo "yes" >&6; } | |
24906 | ||
24907 | $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h | |
24908 | ||
24909 | ||
24910 | else | |
24911 | $as_echo "$as_me: failed program was:" >&5 | |
24912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24913 | ||
24914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24915 | $as_echo "no" >&6; } | |
24916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5 | |
24917 | $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; } | |
24918 | ||
24919 | ||
24920 | cat confdefs.h - <<_ACEOF >conftest.c | |
24921 | ||
24922 | ||
24923 | #include <linux/blkdev.h> | |
24924 | ||
24925 | blk_qc_t make_request(struct request_queue *q, struct bio *bio) | |
24926 | { | |
24927 | return (BLK_QC_T_NONE); | |
24928 | } | |
24929 | ||
24930 | int | |
24931 | main (void) | |
24932 | { | |
24933 | ||
24934 | blk_queue_make_request(NULL, &make_request); | |
24935 | ||
24936 | ; | |
24937 | return 0; | |
24938 | } | |
24939 | ||
24940 | _ACEOF | |
24941 | ||
24942 | ||
24943 | ||
24944 | cat - <<_ACEOF >conftest.h | |
24945 | ||
24946 | _ACEOF | |
24947 | ||
24948 | ||
24949 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24950 | echo "obj-m := conftest.o" >build/Makefile | |
24951 | modpost_flag='' | |
24952 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24953 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24954 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24955 | (eval $ac_try) 2>&5 | |
24956 | ac_status=$? | |
24957 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24958 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24959 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24960 | (eval $ac_try) 2>&5 | |
24961 | ac_status=$? | |
24962 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24963 | test $ac_status = 0; }; }; then : | |
24964 | ||
24965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24966 | $as_echo "yes" >&6; } | |
24967 | ||
24968 | $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h | |
24969 | ||
24970 | ||
24971 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h | |
24972 | ||
24973 | ||
24974 | else | |
24975 | $as_echo "$as_me: failed program was:" >&5 | |
24976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24977 | ||
24978 | as_fn_error $? "no - Please file a bug report at | |
24979 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
24980 | ||
24981 | ||
24982 | ||
24983 | fi | |
24984 | rm -Rf build | |
24985 | ||
24986 | ||
24987 | ||
24988 | ||
24989 | ||
24990 | fi | |
24991 | rm -Rf build | |
24992 | ||
24993 | ||
24994 | ||
24995 | ||
24996 | ||
24997 | fi | |
24998 | rm -Rf build | |
24999 | ||
25000 | ||
25001 | ||
25002 | ||
25003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5 | |
25004 | $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; } | |
25005 | ||
25006 | ||
25007 | ||
25008 | cat confdefs.h - <<_ACEOF >conftest.c | |
25009 | ||
25010 | ||
25011 | #include <linux/bio.h> | |
25012 | ||
25013 | void (*generic_start_io_acct_f)(int, unsigned long, | |
25014 | struct hd_struct *) = &generic_start_io_acct; | |
25015 | void (*generic_end_io_acct_f)(int, struct hd_struct *, | |
25016 | unsigned long) = &generic_end_io_acct; | |
25017 | ||
25018 | int | |
25019 | main (void) | |
25020 | { | |
25021 | ||
25022 | generic_start_io_acct(0, 0, NULL); | |
25023 | generic_end_io_acct(0, NULL, 0); | |
25024 | ||
25025 | ; | |
25026 | return 0; | |
25027 | } | |
25028 | ||
25029 | _ACEOF | |
25030 | ||
25031 | ||
25032 | ||
25033 | cat - <<_ACEOF >conftest.h | |
25034 | ||
25035 | _ACEOF | |
25036 | ||
25037 | ||
25038 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25039 | echo "obj-m := conftest.o" >build/Makefile | |
25040 | modpost_flag='' | |
25041 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25042 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25043 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25044 | (eval $ac_try) 2>&5 | |
25045 | ac_status=$? | |
25046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25047 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25048 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25049 | (eval $ac_try) 2>&5 | |
25050 | ac_status=$? | |
25051 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25052 | test $ac_status = 0; }; }; then : | |
25053 | rc=0 | |
25054 | else | |
25055 | $as_echo "$as_me: failed program was:" >&5 | |
25056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25057 | rc=1 | |
25058 | ||
25059 | ||
25060 | fi | |
25061 | rm -Rf build | |
25062 | ||
25063 | ||
25064 | if test $rc -ne 0; then : | |
25065 | ||
25066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25067 | $as_echo "no" >&6; } | |
25068 | ||
25069 | else | |
25070 | if test "x$enable_linux_builtin" != xyes; then | |
25071 | ||
25072 | grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \ | |
25073 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
25074 | rc=$? | |
25075 | if test $rc -ne 0; then | |
25076 | export=0 | |
25077 | for file in block/bio.c; do | |
25078 | grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \ | |
25079 | "$LINUX/$file" 2>/dev/null | |
25080 | rc=$? | |
25081 | if test $rc -eq 0; then | |
25082 | export=1 | |
25083 | break; | |
25084 | fi | |
25085 | done | |
25086 | if test $export -eq 0; then : | |
25087 | rc=1 | |
25088 | else : | |
25089 | rc=0 | |
25090 | fi | |
25091 | else : | |
25092 | rc=0 | |
25093 | fi | |
25094 | ||
25095 | fi | |
25096 | if test $rc -ne 0; then : | |
25097 | ||
25098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25099 | $as_echo "no" >&6; } | |
25100 | ||
25101 | else : | |
25102 | ||
25103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25104 | $as_echo "yes" >&6; } | |
25105 | ||
25106 | $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h | |
25107 | ||
25108 | ||
25109 | fi | |
25110 | fi | |
25111 | ||
25112 | ||
25113 | ||
25114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5 | |
25115 | $as_echo_n "checking whether iops->rename() wants flags... " >&6; } | |
25116 | ||
25117 | ||
25118 | cat confdefs.h - <<_ACEOF >conftest.c | |
25119 | ||
25120 | ||
25121 | #include <linux/fs.h> | |
25122 | int rename_fn(struct inode *sip, struct dentry *sdp, | |
25123 | struct inode *tip, struct dentry *tdp, | |
25124 | unsigned int flags) { return 0; } | |
25125 | ||
25126 | static const struct inode_operations | |
25127 | iops __attribute__ ((unused)) = { | |
25128 | .rename = rename_fn, | |
25129 | }; | |
25130 | ||
25131 | int | |
25132 | main (void) | |
25133 | { | |
25134 | ||
25135 | ||
25136 | ; | |
25137 | return 0; | |
25138 | } | |
25139 | ||
25140 | _ACEOF | |
25141 | ||
25142 | ||
25143 | ||
25144 | cat - <<_ACEOF >conftest.h | |
25145 | ||
25146 | _ACEOF | |
25147 | ||
25148 | ||
25149 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25150 | echo "obj-m := conftest.o" >build/Makefile | |
25151 | modpost_flag='' | |
25152 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25153 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25154 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25155 | (eval $ac_try) 2>&5 | |
25156 | ac_status=$? | |
25157 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25158 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25159 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25160 | (eval $ac_try) 2>&5 | |
25161 | ac_status=$? | |
25162 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25163 | test $ac_status = 0; }; }; then : | |
25164 | ||
25165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25166 | $as_echo "yes" >&6; } | |
25167 | ||
df9d7621 CIK |
25168 | $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h |
25169 | ||
25170 | ||
25171 | else | |
25172 | $as_echo "$as_me: failed program was:" >&5 | |
25173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25174 | ||
25175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25176 | $as_echo "no" >&6; } | |
25177 | ||
25178 | ||
25179 | ||
25180 | fi | |
25181 | rm -Rf build | |
25182 | ||
25183 | ||
25184 | ||
25185 | ||
25186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5 | |
25187 | $as_echo_n "checking whether generic_setxattr() exists... " >&6; } | |
25188 | ||
25189 | ||
25190 | cat confdefs.h - <<_ACEOF >conftest.c | |
25191 | ||
25192 | ||
25193 | #include <linux/fs.h> | |
25194 | #include <linux/xattr.h> | |
25195 | ||
25196 | static const struct inode_operations | |
25197 | iops __attribute__ ((unused)) = { | |
25198 | .setxattr = generic_setxattr | |
25199 | }; | |
25200 | ||
25201 | int | |
25202 | main (void) | |
25203 | { | |
25204 | ||
25205 | ||
25206 | ; | |
25207 | return 0; | |
25208 | } | |
25209 | ||
25210 | _ACEOF | |
25211 | ||
25212 | ||
25213 | ||
25214 | cat - <<_ACEOF >conftest.h | |
25215 | ||
25216 | _ACEOF | |
25217 | ||
25218 | ||
25219 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25220 | echo "obj-m := conftest.o" >build/Makefile | |
25221 | modpost_flag='' | |
25222 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25223 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25224 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25225 | (eval $ac_try) 2>&5 | |
25226 | ac_status=$? | |
25227 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25228 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25229 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25230 | (eval $ac_try) 2>&5 | |
25231 | ac_status=$? | |
25232 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25233 | test $ac_status = 0; }; }; then : | |
25234 | ||
25235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25236 | $as_echo "yes" >&6; } | |
25237 | ||
25238 | $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h | |
87d546d8 TG |
25239 | |
25240 | ||
25241 | else | |
25242 | $as_echo "$as_me: failed program was:" >&5 | |
25243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25244 | ||
25245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25246 | $as_echo "no" >&6; } | |
25247 | ||
25248 | ||
25249 | ||
25250 | fi | |
25251 | rm -Rf build | |
25252 | ||
25253 | ||
25254 | ||
df9d7621 CIK |
25255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5 |
25256 | $as_echo_n "checking whether current_time() exists... " >&6; } | |
87d546d8 | 25257 | |
87d546d8 TG |
25258 | |
25259 | ||
25260 | cat confdefs.h - <<_ACEOF >conftest.c | |
25261 | ||
25262 | ||
25263 | #include <linux/fs.h> | |
87d546d8 TG |
25264 | |
25265 | int | |
25266 | main (void) | |
25267 | { | |
25268 | ||
df9d7621 CIK |
25269 | struct inode ip; |
25270 | struct timespec now __attribute__ ((unused)); | |
25271 | ||
25272 | now = current_time(&ip); | |
87d546d8 TG |
25273 | |
25274 | ; | |
25275 | return 0; | |
25276 | } | |
25277 | ||
25278 | _ACEOF | |
25279 | ||
25280 | ||
25281 | ||
25282 | cat - <<_ACEOF >conftest.h | |
25283 | ||
25284 | _ACEOF | |
25285 | ||
25286 | ||
25287 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25288 | echo "obj-m := conftest.o" >build/Makefile | |
25289 | modpost_flag='' | |
25290 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25291 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25292 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25293 | (eval $ac_try) 2>&5 | |
25294 | ac_status=$? | |
25295 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25296 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25297 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25298 | (eval $ac_try) 2>&5 | |
25299 | ac_status=$? | |
25300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25301 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
25302 | rc=0 |
25303 | else | |
25304 | $as_echo "$as_me: failed program was:" >&5 | |
25305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25306 | rc=1 | |
87d546d8 | 25307 | |
87d546d8 | 25308 | |
df9d7621 CIK |
25309 | fi |
25310 | rm -Rf build | |
87d546d8 TG |
25311 | |
25312 | ||
df9d7621 CIK |
25313 | if test $rc -ne 0; then : |
25314 | ||
25315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25316 | $as_echo "no" >&6; } | |
25317 | ||
25318 | else | |
25319 | if test "x$enable_linux_builtin" != xyes; then | |
25320 | ||
25321 | grep -q -E '[[:space:]]current_time[[:space:]]' \ | |
25322 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
25323 | rc=$? | |
25324 | if test $rc -ne 0; then | |
25325 | export=0 | |
25326 | for file in fs/inode.c; do | |
25327 | grep -q -E "EXPORT_SYMBOL.*(current_time)" \ | |
25328 | "$LINUX/$file" 2>/dev/null | |
25329 | rc=$? | |
25330 | if test $rc -eq 0; then | |
25331 | export=1 | |
25332 | break; | |
25333 | fi | |
25334 | done | |
25335 | if test $export -eq 0; then : | |
25336 | rc=1 | |
25337 | else : | |
25338 | rc=0 | |
25339 | fi | |
25340 | else : | |
25341 | rc=0 | |
25342 | fi | |
25343 | ||
25344 | fi | |
25345 | if test $rc -ne 0; then : | |
87d546d8 TG |
25346 | |
25347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25348 | $as_echo "no" >&6; } | |
25349 | ||
df9d7621 | 25350 | else : |
87d546d8 | 25351 | |
df9d7621 CIK |
25352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
25353 | $as_echo "yes" >&6; } | |
25354 | ||
25355 | $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h | |
87d546d8 | 25356 | |
87d546d8 | 25357 | |
df9d7621 CIK |
25358 | fi |
25359 | fi | |
87d546d8 TG |
25360 | |
25361 | ||
25362 | ||
25363 | if test "$LINUX_OBJ" != "$LINUX"; then : | |
25364 | ||
25365 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
25366 | ||
25367 | fi | |
25368 | ||
25369 | ||
25370 | ||
25371 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE" | |
25372 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE" | |
25373 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL" | |
25374 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\"" | |
25375 | ||
25376 | ||
25377 | ;; | |
25378 | all) | |
25379 | ||
25380 | ||
25381 | # Check whether --with-linux was given. | |
25382 | if test "${with_linux+set}" = set; then : | |
25383 | withval=$with_linux; kernelsrc="$withval" | |
25384 | fi | |
25385 | ||
25386 | ||
25387 | ||
25388 | # Check whether --with-linux-obj was given. | |
25389 | if test "${with_linux_obj+set}" = set; then : | |
25390 | withval=$with_linux_obj; kernelbuild="$withval" | |
25391 | fi | |
25392 | ||
25393 | ||
25394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5 | |
25395 | $as_echo_n "checking kernel source directory... " >&6; } | |
25396 | if test -z "$kernelsrc"; then : | |
25397 | ||
25398 | if test -e "/lib/modules/$(uname -r)/source"; then : | |
25399 | ||
25400 | headersdir="/lib/modules/$(uname -r)/source" | |
25401 | sourcelink=$(readlink -f "$headersdir") | |
25402 | ||
25403 | elif test -e "/lib/modules/$(uname -r)/build"; then : | |
25404 | ||
25405 | headersdir="/lib/modules/$(uname -r)/build" | |
25406 | sourcelink=$(readlink -f "$headersdir") | |
25407 | ||
25408 | else | |
25409 | ||
25410 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
25411 | /usr/src/linux-* \ | |
25412 | 2>/dev/null | grep -v obj | tail -1) | |
25413 | ||
25414 | fi | |
25415 | ||
25416 | if test -n "$sourcelink" && test -e ${sourcelink}; then : | |
25417 | ||
25418 | kernelsrc=`readlink -f ${sourcelink}` | |
25419 | ||
25420 | else | |
25421 | ||
25422 | kernelsrc="Not found" | |
25423 | ||
25424 | fi | |
25425 | ||
25426 | else | |
25427 | ||
25428 | if test "$kernelsrc" = "NONE"; then : | |
25429 | ||
25430 | kernsrcver=NONE | |
25431 | ||
25432 | fi | |
25433 | ||
25434 | fi | |
25435 | ||
25436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5 | |
25437 | $as_echo "$kernelsrc" >&6; } | |
25438 | if test ! -d "$kernelsrc"; then : | |
25439 | ||
25440 | as_fn_error $? " | |
25441 | *** Please make sure the kernel devel package for your distribution | |
25442 | *** is installed and then try again. If that fails, you can specify the | |
25443 | *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5 | |
25444 | ||
25445 | fi | |
25446 | ||
25447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5 | |
25448 | $as_echo_n "checking kernel build directory... " >&6; } | |
25449 | if test -z "$kernelbuild"; then : | |
25450 | ||
25451 | if test -e "/lib/modules/$(uname -r)/build"; then : | |
25452 | ||
25453 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` | |
25454 | ||
25455 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then : | |
25456 | ||
25457 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
25458 | ||
25459 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then : | |
25460 | ||
25461 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
25462 | ||
25463 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then : | |
25464 | ||
25465 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
25466 | ||
25467 | else | |
25468 | ||
25469 | kernelbuild=${kernelsrc} | |
25470 | ||
25471 | fi | |
25472 | ||
25473 | fi | |
25474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5 | |
25475 | $as_echo "$kernelbuild" >&6; } | |
25476 | ||
25477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5 | |
25478 | $as_echo_n "checking kernel source version... " >&6; } | |
25479 | utsrelease1=$kernelbuild/include/linux/version.h | |
25480 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
25481 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
25482 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then : | |
25483 | ||
25484 | utsrelease=linux/version.h | |
25485 | ||
25486 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then : | |
25487 | ||
25488 | utsrelease=linux/utsrelease.h | |
25489 | ||
25490 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then : | |
25491 | ||
25492 | utsrelease=generated/utsrelease.h | |
25493 | ||
25494 | fi | |
25495 | ||
25496 | if test "$utsrelease"; then : | |
25497 | ||
25498 | kernsrcver=`(echo "#include <$utsrelease>"; | |
25499 | echo "kernsrcver=UTS_RELEASE") | | |
25500 | cpp -I $kernelbuild/include | | |
25501 | grep "^kernsrcver=" | cut -d \" -f 2` | |
25502 | ||
25503 | if test -z "$kernsrcver"; then : | |
25504 | ||
25505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
25506 | $as_echo "Not found" >&6; } | |
25507 | as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5 | |
25508 | ||
25509 | fi | |
25510 | ||
25511 | else | |
25512 | ||
25513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
25514 | $as_echo "Not found" >&6; } | |
25515 | if test "x$enable_linux_builtin" != xyes; then | |
25516 | as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5 | |
25517 | else | |
25518 | as_fn_error $? " | |
25519 | *** Cannot find UTS_RELEASE definition. | |
25520 | *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5 | |
25521 | fi | |
25522 | ||
25523 | fi | |
25524 | ||
25525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5 | |
25526 | $as_echo "$kernsrcver" >&6; } | |
25527 | ||
25528 | LINUX=${kernelsrc} | |
25529 | LINUX_OBJ=${kernelbuild} | |
25530 | LINUX_VERSION=${kernsrcver} | |
25531 | ||
25532 | ||
25533 | ||
25534 | ||
25535 | ||
25536 | ||
25537 | modpost=$LINUX/scripts/Makefile.modpost | |
25538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5 | |
25539 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
25540 | if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then : | |
25541 | ||
25542 | if grep -q Modules.symvers $modpost; then : | |
25543 | ||
25544 | LINUX_SYMBOLS=Modules.symvers | |
25545 | ||
25546 | else | |
25547 | ||
25548 | LINUX_SYMBOLS=Module.symvers | |
25549 | ||
25550 | fi | |
25551 | ||
25552 | if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then : | |
25553 | ||
25554 | as_fn_error $? " | |
25555 | *** Please make sure the kernel devel package for your distribution | |
25556 | *** is installed. If you are building with a custom kernel, make sure the | |
25557 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
25558 | *** option refers to the location of the kernel source." "$LINENO" 5 | |
25559 | ||
25560 | fi | |
25561 | ||
25562 | else | |
25563 | ||
25564 | LINUX_SYMBOLS=NONE | |
25565 | ||
25566 | fi | |
25567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5 | |
25568 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
25569 | ||
25570 | ||
25571 | ||
25572 | ||
25573 | ||
25574 | # Check whether --with-spl was given. | |
25575 | if test "${with_spl+set}" = set; then : | |
25576 | withval=$with_spl; splsrc="$withval" | |
25577 | fi | |
25578 | ||
25579 | ||
25580 | ||
25581 | # Check whether --with-spl-obj was given. | |
25582 | if test "${with_spl_obj+set}" = set; then : | |
25583 | withval=$with_spl_obj; splbuild="$withval" | |
25584 | fi | |
25585 | ||
25586 | ||
25587 | ||
25588 | # Check whether --with-spl-timeout was given. | |
25589 | if test "${with_spl_timeout+set}" = set; then : | |
25590 | withval=$with_spl_timeout; timeout="$withval" | |
25591 | else | |
25592 | timeout=0 | |
25593 | fi | |
25594 | ||
25595 | ||
25596 | splsrc0="/var/lib/dkms/spl/${VERSION}/build" | |
25597 | splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}" | |
25598 | splsrc2="/usr/local/src/spl-${VERSION}" | |
25599 | splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}" | |
25600 | splsrc4="/usr/src/spl-${VERSION}" | |
25601 | splsrc5="../spl/" | |
25602 | splsrc6="$LINUX" | |
25603 | ||
25604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5 | |
25605 | $as_echo_n "checking spl source directory... " >&6; } | |
25606 | if test -z "${splsrc}"; then : | |
25607 | ||
25608 | if test -e "${splsrc0}/spl.release.in"; then : | |
25609 | ||
25610 | splsrc=${splsrc0} | |
25611 | ||
25612 | elif test -e "${splsrc1}/spl.release.in"; then : | |
25613 | ||
25614 | splsrc=${splsrc1} | |
25615 | ||
25616 | elif test -e "${splsrc2}/spl.release.in"; then : | |
25617 | ||
25618 | splsrc=${splsrc2} | |
25619 | ||
25620 | elif test -e "${splsrc3}/spl.release.in"; then : | |
25621 | ||
25622 | splsrc=$(readlink -f "${splsrc3}") | |
25623 | ||
25624 | elif test -e "${splsrc4}/spl.release.in" ; then : | |
25625 | ||
25626 | splsrc=${splsrc4} | |
25627 | ||
25628 | elif test -e "${splsrc5}/spl.release.in"; then : | |
25629 | ||
25630 | splsrc=$(readlink -f "${splsrc5}") | |
25631 | ||
25632 | elif test -e "${splsrc6}/spl.release.in" ; then : | |
25633 | ||
25634 | splsrc=${splsrc6} | |
25635 | ||
25636 | else | |
25637 | ||
25638 | splsrc="Not found" | |
25639 | ||
25640 | fi | |
25641 | ||
25642 | else | |
25643 | ||
25644 | if test "$splsrc" = "NONE"; then : | |
25645 | ||
25646 | splbuild=NONE | |
25647 | splsrcver=NONE | |
25648 | ||
25649 | fi | |
25650 | ||
25651 | fi | |
25652 | ||
25653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5 | |
25654 | $as_echo "$splsrc" >&6; } | |
25655 | if test ! -e "$splsrc/spl.release.in"; then : | |
25656 | ||
25657 | as_fn_error $? " | |
25658 | *** Please make sure the kmod spl devel package for your distribution | |
25659 | *** is installed then try again. If that fails you can specify the | |
25660 | *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5 | |
25661 | ||
25662 | fi | |
25663 | ||
25664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5 | |
25665 | $as_echo_n "checking spl build directory... " >&6; } | |
25666 | while true; do | |
25667 | if test -z "$splbuild"; then : | |
25668 | ||
25669 | if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then : | |
25670 | ||
25671 | splbuild="${splsrc}/${LINUX_VERSION}" | |
25672 | ||
25673 | elif test -e "${splsrc}/spl_config.h" ; then : | |
25674 | ||
25675 | splbuild="${splsrc}" | |
25676 | ||
25677 | elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then : | |
25678 | ||
25679 | splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,') | |
25680 | ||
25681 | else | |
25682 | ||
25683 | splbuild="Not found" | |
25684 | ||
25685 | fi | |
25686 | ||
25687 | fi | |
25688 | if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then : | |
25689 | ||
25690 | break; | |
25691 | ||
25692 | else | |
25693 | ||
25694 | sleep 1 | |
25695 | timeout=$((timeout-1)) | |
25696 | ||
25697 | fi | |
25698 | done | |
25699 | ||
25700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5 | |
25701 | $as_echo "$splbuild" >&6; } | |
25702 | if ! test -e "$splbuild/spl_config.h"; then : | |
25703 | ||
25704 | as_fn_error $? " | |
25705 | *** Please make sure the kmod spl devel <kernel> package for your | |
25706 | *** distribution is installed then try again. If that fails you | |
25707 | *** can specify the location of the spl objects with the | |
25708 | *** '--with-spl-obj=PATH' option." "$LINENO" 5 | |
25709 | ||
25710 | fi | |
25711 | ||
25712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5 | |
25713 | $as_echo_n "checking spl source version... " >&6; } | |
25714 | if test -r $splbuild/spl_config.h && | |
25715 | fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then : | |
25716 | ||
25717 | ||
25718 | splsrcver=`(echo "#include <spl_config.h>"; | |
25719 | echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") | | |
25720 | cpp -I $splbuild | | |
25721 | grep "^splsrcver=" | tr -d \" | cut -d= -f2` | |
25722 | ||
25723 | fi | |
25724 | ||
25725 | if test -z "$splsrcver"; then : | |
25726 | ||
25727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
25728 | $as_echo "Not found" >&6; } | |
25729 | as_fn_error $? " | |
25730 | *** Cannot determine the version of the spl source. | |
25731 | *** Please prepare the spl source before running this script" "$LINENO" 5 | |
25732 | ||
25733 | fi | |
25734 | ||
25735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5 | |
25736 | $as_echo "$splsrcver" >&6; } | |
25737 | ||
25738 | SPL=${splsrc} | |
25739 | SPL_OBJ=${splbuild} | |
25740 | SPL_VERSION=${splsrcver} | |
25741 | ||
25742 | ||
25743 | ||
25744 | ||
25745 | ||
25746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5 | |
25747 | $as_echo_n "checking spl file name for module symbols... " >&6; } | |
25748 | SPL_SYMBOLS=NONE | |
25749 | ||
25750 | while true; do | |
25751 | if test -r $SPL_OBJ/Module.symvers; then : | |
25752 | ||
25753 | SPL_SYMBOLS=Module.symvers | |
25754 | ||
25755 | elif test -r $SPL_OBJ/Modules.symvers; then : | |
25756 | ||
25757 | SPL_SYMBOLS=Modules.symvers | |
25758 | ||
25759 | elif test -r $SPL_OBJ/module/Module.symvers; then : | |
25760 | ||
25761 | SPL_SYMBOLS=Module.symvers | |
25762 | ||
25763 | elif test -r $SPL_OBJ/module/Modules.symvers; then : | |
25764 | ||
25765 | SPL_SYMBOLS=Modules.symvers | |
25766 | ||
25767 | fi | |
25768 | ||
25769 | if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then : | |
25770 | ||
25771 | break; | |
25772 | ||
25773 | else | |
25774 | ||
25775 | sleep 1 | |
25776 | timeout=$((timeout-1)) | |
25777 | ||
25778 | fi | |
25779 | done | |
25780 | ||
25781 | if test "$SPL_SYMBOLS" = NONE; then : | |
25782 | ||
25783 | SPL_SYMBOLS=$LINUX_SYMBOLS | |
25784 | ||
25785 | fi | |
25786 | ||
25787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5 | |
25788 | $as_echo "$SPL_SYMBOLS" >&6; } | |
25789 | ||
25790 | ||
25791 | ||
25792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5 | |
25793 | $as_echo_n "checking whether modules can be built... " >&6; } | |
25794 | ||
25795 | ||
25796 | cat confdefs.h - <<_ACEOF >conftest.c | |
25797 | ||
25798 | ||
25799 | int | |
25800 | main (void) | |
25801 | { | |
25802 | ||
25803 | ; | |
25804 | return 0; | |
25805 | } | |
25806 | ||
25807 | _ACEOF | |
25808 | ||
25809 | ||
25810 | ||
25811 | cat - <<_ACEOF >conftest.h | |
25812 | ||
25813 | _ACEOF | |
25814 | ||
25815 | ||
25816 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25817 | echo "obj-m := conftest.o" >build/Makefile | |
25818 | modpost_flag='' | |
25819 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25820 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25821 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25822 | (eval $ac_try) 2>&5 | |
25823 | ac_status=$? | |
25824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25825 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25826 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25827 | (eval $ac_try) 2>&5 | |
25828 | ac_status=$? | |
25829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25830 | test $ac_status = 0; }; }; then : | |
25831 | ||
25832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25833 | $as_echo "yes" >&6; } | |
25834 | ||
25835 | else | |
25836 | $as_echo "$as_me: failed program was:" >&5 | |
25837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25838 | ||
25839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25840 | $as_echo "no" >&6; } | |
25841 | if test "x$enable_linux_builtin" != xyes; then | |
25842 | as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5 | |
25843 | else | |
25844 | as_fn_error $? " | |
25845 | *** Unable to build an empty module. | |
25846 | *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5 | |
25847 | fi | |
25848 | ||
25849 | ||
25850 | ||
25851 | fi | |
25852 | rm -Rf build | |
25853 | ||
25854 | ||
25855 | ||
25856 | ||
25857 | if test "x$cross_compiling" != xyes; then : | |
25858 | ||
25859 | if test "$cross_compiling" = yes; then : | |
25860 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
25861 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
25862 | as_fn_error $? "cannot run test program while cross compiling | |
25863 | See \`config.log' for more details" "$LINENO" 5; } | |
25864 | else | |
25865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25866 | /* end confdefs.h. */ | |
25867 | ||
25868 | ||
25869 | #include "$LINUX/include/linux/license.h" | |
25870 | ||
25871 | int | |
25872 | main () | |
25873 | { | |
25874 | ||
25875 | return !license_is_gpl_compatible("$ZFS_META_LICENSE"); | |
25876 | ||
25877 | ; | |
25878 | return 0; | |
25879 | } | |
25880 | ||
25881 | _ACEOF | |
25882 | if ac_fn_c_try_run "$LINENO"; then : | |
25883 | ||
25884 | ||
25885 | $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h | |
25886 | ||
25887 | ||
25888 | fi | |
25889 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
25890 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
25891 | fi | |
25892 | ||
25893 | ||
25894 | fi | |
25895 | ||
25896 | ||
25897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5 | |
25898 | $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; } | |
25899 | ||
25900 | ||
25901 | cat confdefs.h - <<_ACEOF >conftest.c | |
25902 | ||
25903 | ||
25904 | #include <linux/module.h> | |
25905 | ||
25906 | int | |
25907 | main (void) | |
25908 | { | |
25909 | ||
25910 | #if (THREAD_SIZE < 16384) | |
25911 | #error "THREAD_SIZE is less than 16K" | |
25912 | #endif | |
25913 | ||
25914 | ; | |
25915 | return 0; | |
25916 | } | |
25917 | ||
25918 | _ACEOF | |
25919 | ||
25920 | ||
25921 | ||
25922 | cat - <<_ACEOF >conftest.h | |
25923 | ||
25924 | _ACEOF | |
25925 | ||
25926 | ||
25927 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25928 | echo "obj-m := conftest.o" >build/Makefile | |
25929 | modpost_flag='' | |
25930 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25931 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25932 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25933 | (eval $ac_try) 2>&5 | |
25934 | ac_status=$? | |
25935 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25936 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25937 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25938 | (eval $ac_try) 2>&5 | |
25939 | ac_status=$? | |
25940 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25941 | test $ac_status = 0; }; }; then : | |
25942 | ||
25943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25944 | $as_echo "yes" >&6; } | |
25945 | ||
25946 | $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h | |
25947 | ||
25948 | ||
25949 | else | |
25950 | $as_echo "$as_me: failed program was:" >&5 | |
25951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25952 | ||
25953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25954 | $as_echo "no" >&6; } | |
25955 | ||
25956 | ||
25957 | ||
25958 | fi | |
25959 | rm -Rf build | |
25960 | ||
25961 | ||
25962 | ||
25963 | ||
25964 | ||
25965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5 | |
25966 | $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; } | |
25967 | ||
25968 | ||
25969 | cat confdefs.h - <<_ACEOF >conftest.c | |
25970 | ||
25971 | ||
25972 | #include <linux/module.h> | |
25973 | ||
25974 | int | |
25975 | main (void) | |
25976 | { | |
25977 | ||
25978 | #ifndef CONFIG_DEBUG_LOCK_ALLOC | |
25979 | #error CONFIG_DEBUG_LOCK_ALLOC not #defined | |
25980 | #endif | |
25981 | ||
25982 | ; | |
25983 | return 0; | |
25984 | } | |
25985 | ||
25986 | _ACEOF | |
25987 | ||
25988 | ||
25989 | ||
25990 | cat - <<_ACEOF >conftest.h | |
25991 | ||
25992 | _ACEOF | |
25993 | ||
25994 | ||
25995 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25996 | echo "obj-m := conftest.o" >build/Makefile | |
25997 | modpost_flag='' | |
25998 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25999 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26000 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26001 | (eval $ac_try) 2>&5 | |
26002 | ac_status=$? | |
26003 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26004 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26005 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26006 | (eval $ac_try) 2>&5 | |
26007 | ac_status=$? | |
26008 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26009 | test $ac_status = 0; }; }; then : | |
26010 | ||
26011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26012 | $as_echo "yes" >&6; } | |
26013 | ||
26014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5 | |
26015 | $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; } | |
26016 | tmp_flags="$EXTRA_KCFLAGS" | |
26017 | ||
26018 | ||
26019 | cat confdefs.h - <<_ACEOF >conftest.c | |
26020 | ||
26021 | ||
26022 | #include <linux/module.h> | |
26023 | #include <linux/mutex.h> | |
26024 | ||
26025 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
26026 | ||
26027 | int | |
26028 | main (void) | |
26029 | { | |
26030 | ||
26031 | struct mutex lock; | |
26032 | ||
26033 | mutex_init(&lock); | |
26034 | mutex_lock(&lock); | |
26035 | mutex_unlock(&lock); | |
26036 | ||
26037 | ; | |
26038 | return 0; | |
26039 | } | |
26040 | ||
26041 | _ACEOF | |
26042 | ||
26043 | ||
26044 | ||
26045 | cat - <<_ACEOF >conftest.h | |
26046 | ||
26047 | _ACEOF | |
26048 | ||
26049 | ||
26050 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26051 | echo "obj-m := conftest.o" >build/Makefile | |
26052 | modpost_flag='' | |
26053 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26054 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26055 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26056 | (eval $ac_try) 2>&5 | |
26057 | ac_status=$? | |
26058 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26059 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26060 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26061 | (eval $ac_try) 2>&5 | |
26062 | ac_status=$? | |
26063 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26064 | test $ac_status = 0; }; }; then : | |
26065 | ||
26066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26067 | $as_echo "no" >&6; } | |
26068 | ||
26069 | else | |
26070 | $as_echo "$as_me: failed program was:" >&5 | |
26071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26072 | ||
26073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26074 | $as_echo "yes" >&6; } | |
26075 | as_fn_error $? " | |
26076 | *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible | |
26077 | *** with the CDDL license and will prevent the module linking stage | |
26078 | *** from succeeding. You must rebuild your kernel without this | |
26079 | *** option enabled." "$LINENO" 5 | |
26080 | ||
26081 | ||
26082 | ||
26083 | fi | |
26084 | rm -Rf build | |
26085 | ||
26086 | ||
26087 | EXTRA_KCFLAGS="$tmp_flags" | |
26088 | ||
26089 | ||
26090 | else | |
26091 | $as_echo "$as_me: failed program was:" >&5 | |
26092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26093 | ||
26094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26095 | $as_echo "no" >&6; } | |
26096 | ||
26097 | ||
26098 | ||
26099 | ||
26100 | fi | |
26101 | rm -Rf build | |
26102 | ||
26103 | ||
26104 | ||
26105 | ||
26106 | ||
26107 | ||
26108 | tmp_flags="$EXTRA_KCFLAGS" | |
26109 | EXTRA_KCFLAGS="-I\$(src)" | |
26110 | ||
26111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5 | |
26112 | $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; } | |
26113 | ||
26114 | ||
26115 | cat confdefs.h - <<_ACEOF >conftest.c | |
26116 | ||
26117 | ||
26118 | #include <linux/module.h> | |
26119 | MODULE_LICENSE(ZFS_META_LICENSE); | |
26120 | ||
26121 | #define CREATE_TRACE_POINTS | |
26122 | #include "conftest.h" | |
26123 | ||
26124 | int | |
26125 | main (void) | |
26126 | { | |
26127 | ||
26128 | trace_zfs_autoconf_event_one(1UL); | |
26129 | trace_zfs_autoconf_event_two(2UL); | |
26130 | ||
26131 | ; | |
26132 | return 0; | |
26133 | } | |
26134 | ||
26135 | _ACEOF | |
26136 | ||
26137 | ||
26138 | ||
26139 | cat - <<_ACEOF >conftest.h | |
26140 | ||
26141 | #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ) | |
26142 | #define _CONFTEST_H | |
26143 | ||
26144 | #undef TRACE_SYSTEM | |
26145 | #define TRACE_SYSTEM zfs | |
26146 | #include <linux/tracepoint.h> | |
26147 | ||
26148 | DECLARE_EVENT_CLASS(zfs_autoconf_event_class, | |
26149 | TP_PROTO(unsigned long i), | |
26150 | TP_ARGS(i), | |
26151 | TP_STRUCT__entry( | |
26152 | __field(unsigned long, i) | |
26153 | ), | |
26154 | TP_fast_assign( | |
26155 | __entry->i = i; | |
26156 | ), | |
26157 | TP_printk("i = %lu", __entry->i) | |
26158 | ); | |
26159 | ||
26160 | #define DEFINE_AUTOCONF_EVENT(name) \ | |
26161 | DEFINE_EVENT(zfs_autoconf_event_class, name, \ | |
26162 | TP_PROTO(unsigned long i), \ | |
26163 | TP_ARGS(i)) | |
26164 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one); | |
26165 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two); | |
26166 | ||
26167 | #endif /* _CONFTEST_H */ | |
26168 | ||
26169 | #undef TRACE_INCLUDE_PATH | |
26170 | #define TRACE_INCLUDE_PATH . | |
26171 | #define TRACE_INCLUDE_FILE conftest | |
26172 | #include <trace/define_trace.h> | |
26173 | ||
26174 | _ACEOF | |
26175 | ||
26176 | ||
26177 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26178 | echo "obj-m := conftest.o" >build/Makefile | |
26179 | modpost_flag='' | |
26180 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26181 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26182 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26183 | (eval $ac_try) 2>&5 | |
26184 | ac_status=$? | |
26185 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26186 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26187 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26188 | (eval $ac_try) 2>&5 | |
26189 | ac_status=$? | |
26190 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26191 | test $ac_status = 0; }; }; then : | |
26192 | ||
26193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26194 | $as_echo "yes" >&6; } | |
26195 | ||
26196 | $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h | |
26197 | ||
26198 | ||
26199 | else | |
26200 | $as_echo "$as_me: failed program was:" >&5 | |
26201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26202 | ||
26203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26204 | $as_echo "no" >&6; } | |
26205 | ||
26206 | ||
26207 | ||
26208 | fi | |
26209 | rm -Rf build | |
26210 | ||
26211 | ||
26212 | EXTRA_KCFLAGS="$tmp_flags" | |
26213 | ||
26214 | ||
26215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5 | |
26216 | $as_echo_n "checking whether current->bio_tail exists... " >&6; } | |
26217 | ||
26218 | ||
26219 | cat confdefs.h - <<_ACEOF >conftest.c | |
26220 | ||
26221 | ||
26222 | #include <linux/sched.h> | |
26223 | ||
26224 | int | |
26225 | main (void) | |
26226 | { | |
26227 | ||
26228 | current->bio_tail = (struct bio **) NULL; | |
26229 | ||
26230 | ; | |
26231 | return 0; | |
26232 | } | |
26233 | ||
26234 | _ACEOF | |
26235 | ||
26236 | ||
26237 | ||
26238 | cat - <<_ACEOF >conftest.h | |
26239 | ||
26240 | _ACEOF | |
26241 | ||
26242 | ||
26243 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26244 | echo "obj-m := conftest.o" >build/Makefile | |
26245 | modpost_flag='' | |
26246 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26247 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26248 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26249 | (eval $ac_try) 2>&5 | |
26250 | ac_status=$? | |
26251 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26252 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26253 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26254 | (eval $ac_try) 2>&5 | |
26255 | ac_status=$? | |
26256 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26257 | test $ac_status = 0; }; }; then : | |
26258 | ||
26259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26260 | $as_echo "yes" >&6; } | |
26261 | ||
26262 | $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h | |
26263 | ||
26264 | ||
26265 | else | |
26266 | $as_echo "$as_me: failed program was:" >&5 | |
26267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26268 | ||
26269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26270 | $as_echo "no" >&6; } | |
26271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5 | |
26272 | $as_echo_n "checking whether current->bio_list exists... " >&6; } | |
26273 | ||
26274 | ||
26275 | cat confdefs.h - <<_ACEOF >conftest.c | |
26276 | ||
26277 | ||
26278 | #include <linux/sched.h> | |
26279 | ||
26280 | int | |
26281 | main (void) | |
26282 | { | |
26283 | ||
26284 | current->bio_list = (struct bio_list *) NULL; | |
26285 | ||
26286 | ; | |
26287 | return 0; | |
26288 | } | |
26289 | ||
26290 | _ACEOF | |
26291 | ||
26292 | ||
26293 | ||
26294 | cat - <<_ACEOF >conftest.h | |
26295 | ||
26296 | _ACEOF | |
26297 | ||
26298 | ||
26299 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26300 | echo "obj-m := conftest.o" >build/Makefile | |
26301 | modpost_flag='' | |
26302 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26303 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26304 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26305 | (eval $ac_try) 2>&5 | |
26306 | ac_status=$? | |
26307 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26308 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26309 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26310 | (eval $ac_try) 2>&5 | |
26311 | ac_status=$? | |
26312 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26313 | test $ac_status = 0; }; }; then : | |
26314 | ||
26315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26316 | $as_echo "yes" >&6; } | |
26317 | ||
26318 | $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h | |
26319 | ||
26320 | ||
26321 | else | |
26322 | $as_echo "$as_me: failed program was:" >&5 | |
26323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26324 | ||
26325 | as_fn_error $? "no - Please file a bug report at | |
26326 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
26327 | ||
26328 | ||
26329 | ||
26330 | fi | |
26331 | rm -Rf build | |
26332 | ||
26333 | ||
26334 | ||
26335 | ||
26336 | ||
26337 | fi | |
26338 | rm -Rf build | |
26339 | ||
26340 | ||
26341 | ||
26342 | ||
26343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5 | |
26344 | $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; } | |
26345 | ||
26346 | ||
26347 | cat confdefs.h - <<_ACEOF >conftest.c | |
26348 | ||
26349 | ||
26350 | #include <linux/bio.h> | |
26351 | ||
26352 | int | |
26353 | main (void) | |
26354 | { | |
26355 | ||
26356 | blk_qc_t blk_qc; | |
26357 | struct bio *bio = NULL; | |
26358 | blk_qc = submit_bio(bio); | |
26359 | ||
26360 | ; | |
26361 | return 0; | |
26362 | } | |
26363 | ||
26364 | _ACEOF | |
26365 | ||
26366 | ||
26367 | ||
26368 | cat - <<_ACEOF >conftest.h | |
26369 | ||
26370 | _ACEOF | |
26371 | ||
26372 | ||
26373 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26374 | echo "obj-m := conftest.o" >build/Makefile | |
26375 | modpost_flag='' | |
26376 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26377 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26378 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26379 | (eval $ac_try) 2>&5 | |
26380 | ac_status=$? | |
26381 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26382 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26383 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26384 | (eval $ac_try) 2>&5 | |
26385 | ac_status=$? | |
26386 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26387 | test $ac_status = 0; }; }; then : | |
26388 | ||
26389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26390 | $as_echo "yes" >&6; } | |
26391 | ||
26392 | $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h | |
26393 | ||
26394 | ||
26395 | else | |
26396 | $as_echo "$as_me: failed program was:" >&5 | |
26397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26398 | ||
26399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26400 | $as_echo "no" >&6; } | |
26401 | ||
26402 | ||
26403 | ||
26404 | fi | |
26405 | rm -Rf build | |
26406 | ||
26407 | ||
26408 | ||
26409 | ||
26410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5 | |
26411 | $as_echo_n "checking block device operation prototypes... " >&6; } | |
26412 | tmp_flags="$EXTRA_KCFLAGS" | |
26413 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
26414 | ||
26415 | ||
26416 | cat confdefs.h - <<_ACEOF >conftest.c | |
26417 | ||
26418 | ||
26419 | #include <linux/blkdev.h> | |
26420 | ||
26421 | int blk_open(struct block_device *bdev, fmode_t mode) | |
26422 | { return 0; } | |
26423 | int blk_ioctl(struct block_device *bdev, fmode_t mode, | |
26424 | unsigned x, unsigned long y) { return 0; } | |
26425 | int blk_compat_ioctl(struct block_device * bdev, fmode_t mode, | |
26426 | unsigned x, unsigned long y) { return 0; } | |
26427 | ||
26428 | static const struct block_device_operations | |
26429 | bops __attribute__ ((unused)) = { | |
26430 | .open = blk_open, | |
26431 | .release = NULL, | |
26432 | .ioctl = blk_ioctl, | |
26433 | .compat_ioctl = blk_compat_ioctl, | |
26434 | }; | |
26435 | ||
26436 | int | |
26437 | main (void) | |
26438 | { | |
26439 | ||
26440 | ||
26441 | ; | |
26442 | return 0; | |
26443 | } | |
26444 | ||
26445 | _ACEOF | |
26446 | ||
26447 | ||
26448 | ||
26449 | cat - <<_ACEOF >conftest.h | |
26450 | ||
26451 | _ACEOF | |
26452 | ||
26453 | ||
26454 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26455 | echo "obj-m := conftest.o" >build/Makefile | |
26456 | modpost_flag='' | |
26457 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26458 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26459 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26460 | (eval $ac_try) 2>&5 | |
26461 | ac_status=$? | |
26462 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26463 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26464 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26465 | (eval $ac_try) 2>&5 | |
26466 | ac_status=$? | |
26467 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26468 | test $ac_status = 0; }; }; then : | |
26469 | ||
26470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5 | |
26471 | $as_echo "struct block_device" >&6; } | |
26472 | ||
26473 | $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h | |
26474 | ||
26475 | ||
26476 | else | |
26477 | $as_echo "$as_me: failed program was:" >&5 | |
26478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26479 | ||
26480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5 | |
26481 | $as_echo "struct inode" >&6; } | |
26482 | ||
26483 | ||
26484 | ||
26485 | fi | |
26486 | rm -Rf build | |
26487 | ||
26488 | ||
26489 | EXTRA_KCFLAGS="$tmp_flags" | |
26490 | ||
26491 | ||
26492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5 | |
26493 | $as_echo_n "checking whether block_device_operations.release is void... " >&6; } | |
26494 | tmp_flags="$EXTRA_KCFLAGS" | |
26495 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
26496 | ||
26497 | ||
26498 | cat confdefs.h - <<_ACEOF >conftest.c | |
26499 | ||
26500 | ||
26501 | #include <linux/blkdev.h> | |
26502 | ||
26503 | void blk_release(struct gendisk *g, fmode_t mode) { return; } | |
26504 | ||
26505 | static const struct block_device_operations | |
26506 | bops __attribute__ ((unused)) = { | |
26507 | .open = NULL, | |
26508 | .release = blk_release, | |
26509 | .ioctl = NULL, | |
26510 | .compat_ioctl = NULL, | |
26511 | }; | |
26512 | ||
26513 | int | |
26514 | main (void) | |
26515 | { | |
26516 | ||
26517 | ||
26518 | ; | |
26519 | return 0; | |
26520 | } | |
26521 | ||
26522 | _ACEOF | |
26523 | ||
26524 | ||
26525 | ||
26526 | cat - <<_ACEOF >conftest.h | |
26527 | ||
26528 | _ACEOF | |
26529 | ||
26530 | ||
26531 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26532 | echo "obj-m := conftest.o" >build/Makefile | |
26533 | modpost_flag='' | |
26534 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26535 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26541 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26542 | (eval $ac_try) 2>&5 | |
26543 | ac_status=$? | |
26544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26545 | test $ac_status = 0; }; }; then : | |
26546 | ||
26547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5 | |
26548 | $as_echo "void" >&6; } | |
26549 | ||
26550 | $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h | |
26551 | ||
26552 | ||
26553 | else | |
26554 | $as_echo "$as_me: failed program was:" >&5 | |
26555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26556 | ||
26557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 | |
26558 | $as_echo "int" >&6; } | |
26559 | ||
26560 | ||
26561 | ||
26562 | fi | |
26563 | rm -Rf build | |
26564 | ||
26565 | ||
26566 | EXTRA_KCFLAGS="$tmp_flags" | |
26567 | ||
26568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5 | |
26569 | $as_echo_n "checking whether kernel defines fmode_t... " >&6; } | |
26570 | ||
26571 | ||
26572 | cat confdefs.h - <<_ACEOF >conftest.c | |
26573 | ||
26574 | ||
26575 | #include <linux/types.h> | |
26576 | ||
26577 | int | |
26578 | main (void) | |
26579 | { | |
26580 | ||
26581 | fmode_t *ptr __attribute__ ((unused)); | |
26582 | ||
26583 | ; | |
26584 | return 0; | |
26585 | } | |
26586 | ||
26587 | _ACEOF | |
26588 | ||
26589 | ||
26590 | ||
26591 | cat - <<_ACEOF >conftest.h | |
26592 | ||
26593 | _ACEOF | |
26594 | ||
26595 | ||
26596 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26597 | echo "obj-m := conftest.o" >build/Makefile | |
26598 | modpost_flag='' | |
26599 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26600 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26601 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26602 | (eval $ac_try) 2>&5 | |
26603 | ac_status=$? | |
26604 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26605 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26606 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26607 | (eval $ac_try) 2>&5 | |
26608 | ac_status=$? | |
26609 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26610 | test $ac_status = 0; }; }; then : | |
26611 | ||
26612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26613 | $as_echo "yes" >&6; } | |
26614 | ||
26615 | $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h | |
26616 | ||
26617 | ||
26618 | else | |
26619 | $as_echo "$as_me: failed program was:" >&5 | |
26620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26621 | ||
26622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26623 | $as_echo "no" >&6; } | |
26624 | ||
26625 | ||
26626 | ||
26627 | fi | |
26628 | rm -Rf build | |
26629 | ||
26630 | ||
26631 | ||
26632 | ||
26633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5 | |
26634 | $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; } | |
26635 | ||
26636 | ||
26637 | cat confdefs.h - <<_ACEOF >conftest.c | |
26638 | ||
26639 | ||
26640 | #include <linux/kobject.h> | |
26641 | ||
26642 | int | |
26643 | main (void) | |
26644 | { | |
26645 | ||
26646 | int val __attribute__ ((unused)); | |
26647 | val = KOBJ_NAME_LEN; | |
26648 | ||
26649 | ; | |
26650 | return 0; | |
26651 | } | |
26652 | ||
26653 | _ACEOF | |
26654 | ||
26655 | ||
26656 | ||
26657 | cat - <<_ACEOF >conftest.h | |
26658 | ||
26659 | _ACEOF | |
26660 | ||
26661 | ||
26662 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26663 | echo "obj-m := conftest.o" >build/Makefile | |
26664 | modpost_flag='' | |
26665 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26666 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26667 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26668 | (eval $ac_try) 2>&5 | |
26669 | ac_status=$? | |
26670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26671 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26672 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26673 | (eval $ac_try) 2>&5 | |
26674 | ac_status=$? | |
26675 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26676 | test $ac_status = 0; }; }; then : | |
26677 | ||
26678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26679 | $as_echo "yes" >&6; } | |
26680 | ||
26681 | $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h | |
26682 | ||
26683 | ||
26684 | else | |
26685 | $as_echo "$as_me: failed program was:" >&5 | |
26686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26687 | ||
26688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26689 | $as_echo "no" >&6; } | |
26690 | ||
26691 | ||
26692 | ||
26693 | fi | |
26694 | rm -Rf build | |
26695 | ||
26696 | ||
26697 | ||
26698 | ||
26699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5 | |
26700 | $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; } | |
26701 | ||
26702 | ||
26703 | cat confdefs.h - <<_ACEOF >conftest.c | |
26704 | ||
26705 | ||
26706 | #include <linux/fs.h> | |
26707 | ||
26708 | int | |
26709 | main (void) | |
26710 | { | |
26711 | ||
26712 | struct block_device *bdev = NULL; | |
26713 | (void) blkdev_get(bdev, 0, NULL); | |
26714 | ||
26715 | ; | |
26716 | return 0; | |
26717 | } | |
26718 | ||
26719 | _ACEOF | |
26720 | ||
26721 | ||
26722 | ||
26723 | cat - <<_ACEOF >conftest.h | |
26724 | ||
26725 | _ACEOF | |
26726 | ||
26727 | ||
26728 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26729 | echo "obj-m := conftest.o" >build/Makefile | |
26730 | modpost_flag='' | |
26731 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26732 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26733 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26734 | (eval $ac_try) 2>&5 | |
26735 | ac_status=$? | |
26736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26737 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
26743 | ||
26744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26745 | $as_echo "yes" >&6; } | |
26746 | ||
26747 | $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h | |
26748 | ||
26749 | ||
26750 | else | |
26751 | $as_echo "$as_me: failed program was:" >&5 | |
26752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26753 | ||
26754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26755 | $as_echo "no" >&6; } | |
26756 | ||
26757 | ||
26758 | ||
26759 | fi | |
26760 | rm -Rf build | |
26761 | ||
26762 | ||
26763 | ||
26764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5 | |
26765 | $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; } | |
26766 | ||
26767 | ||
26768 | ||
26769 | cat confdefs.h - <<_ACEOF >conftest.c | |
26770 | ||
26771 | ||
26772 | #include <linux/fs.h> | |
26773 | ||
26774 | int | |
26775 | main (void) | |
26776 | { | |
26777 | ||
26778 | blkdev_get_by_path(NULL, 0, NULL); | |
26779 | ||
26780 | ; | |
26781 | return 0; | |
26782 | } | |
26783 | ||
26784 | _ACEOF | |
26785 | ||
26786 | ||
26787 | ||
26788 | cat - <<_ACEOF >conftest.h | |
26789 | ||
26790 | _ACEOF | |
26791 | ||
26792 | ||
26793 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26794 | echo "obj-m := conftest.o" >build/Makefile | |
26795 | modpost_flag='' | |
26796 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26797 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26798 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26799 | (eval $ac_try) 2>&5 | |
26800 | ac_status=$? | |
26801 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26802 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26803 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26804 | (eval $ac_try) 2>&5 | |
26805 | ac_status=$? | |
26806 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26807 | test $ac_status = 0; }; }; then : | |
26808 | rc=0 | |
26809 | else | |
26810 | $as_echo "$as_me: failed program was:" >&5 | |
26811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26812 | rc=1 | |
26813 | ||
26814 | ||
26815 | fi | |
26816 | rm -Rf build | |
26817 | ||
26818 | ||
26819 | if test $rc -ne 0; then : | |
26820 | ||
26821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26822 | $as_echo "no" >&6; } | |
26823 | ||
26824 | else | |
26825 | if test "x$enable_linux_builtin" != xyes; then | |
26826 | ||
26827 | grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \ | |
26828 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
26829 | rc=$? | |
26830 | if test $rc -ne 0; then | |
26831 | export=0 | |
26832 | for file in fs/block_dev.c; do | |
26833 | grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \ | |
26834 | "$LINUX/$file" 2>/dev/null | |
26835 | rc=$? | |
26836 | if test $rc -eq 0; then | |
26837 | export=1 | |
26838 | break; | |
26839 | fi | |
26840 | done | |
26841 | if test $export -eq 0; then : | |
26842 | rc=1 | |
26843 | else : | |
26844 | rc=0 | |
26845 | fi | |
26846 | else : | |
26847 | rc=0 | |
26848 | fi | |
26849 | ||
26850 | fi | |
26851 | if test $rc -ne 0; then : | |
26852 | ||
26853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26854 | $as_echo "no" >&6; } | |
26855 | ||
26856 | else : | |
26857 | ||
26858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26859 | $as_echo "yes" >&6; } | |
26860 | ||
26861 | $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h | |
26862 | ||
26863 | ||
26864 | fi | |
26865 | fi | |
26866 | ||
26867 | ||
26868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5 | |
26869 | $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; } | |
26870 | ||
26871 | ||
26872 | ||
26873 | cat confdefs.h - <<_ACEOF >conftest.c | |
26874 | ||
26875 | ||
26876 | #include <linux/fs.h> | |
26877 | ||
26878 | int | |
26879 | main (void) | |
26880 | { | |
26881 | ||
26882 | open_bdev_exclusive(NULL, 0, NULL); | |
26883 | ||
26884 | ; | |
26885 | return 0; | |
26886 | } | |
26887 | ||
26888 | _ACEOF | |
26889 | ||
26890 | ||
26891 | ||
26892 | cat - <<_ACEOF >conftest.h | |
26893 | ||
26894 | _ACEOF | |
26895 | ||
26896 | ||
26897 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26898 | echo "obj-m := conftest.o" >build/Makefile | |
26899 | modpost_flag='' | |
26900 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26901 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26902 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26903 | (eval $ac_try) 2>&5 | |
26904 | ac_status=$? | |
26905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26906 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26907 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26908 | (eval $ac_try) 2>&5 | |
26909 | ac_status=$? | |
26910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26911 | test $ac_status = 0; }; }; then : | |
26912 | rc=0 | |
26913 | else | |
26914 | $as_echo "$as_me: failed program was:" >&5 | |
26915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26916 | rc=1 | |
26917 | ||
26918 | ||
26919 | fi | |
26920 | rm -Rf build | |
26921 | ||
26922 | ||
26923 | if test $rc -ne 0; then : | |
26924 | ||
26925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26926 | $as_echo "no" >&6; } | |
26927 | ||
26928 | else | |
26929 | if test "x$enable_linux_builtin" != xyes; then | |
26930 | ||
26931 | grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \ | |
26932 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
26933 | rc=$? | |
26934 | if test $rc -ne 0; then | |
26935 | export=0 | |
26936 | for file in fs/block_dev.c; do | |
26937 | grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \ | |
26938 | "$LINUX/$file" 2>/dev/null | |
26939 | rc=$? | |
26940 | if test $rc -eq 0; then | |
26941 | export=1 | |
26942 | break; | |
26943 | fi | |
26944 | done | |
26945 | if test $export -eq 0; then : | |
26946 | rc=1 | |
26947 | else : | |
26948 | rc=0 | |
26949 | fi | |
26950 | else : | |
26951 | rc=0 | |
26952 | fi | |
26953 | ||
26954 | fi | |
26955 | if test $rc -ne 0; then : | |
26956 | ||
26957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26958 | $as_echo "no" >&6; } | |
26959 | ||
26960 | else : | |
26961 | ||
26962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26963 | $as_echo "yes" >&6; } | |
26964 | ||
26965 | $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h | |
26966 | ||
26967 | ||
26968 | fi | |
26969 | fi | |
26970 | ||
26971 | ||
26972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5 | |
26973 | $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; } | |
26974 | ||
26975 | ||
26976 | ||
26977 | cat confdefs.h - <<_ACEOF >conftest.c | |
26978 | ||
26979 | ||
26980 | #include <linux/fs.h> | |
26981 | ||
26982 | int | |
26983 | main (void) | |
26984 | { | |
26985 | ||
26986 | lookup_bdev(NULL); | |
26987 | ||
26988 | ; | |
26989 | return 0; | |
26990 | } | |
26991 | ||
26992 | _ACEOF | |
26993 | ||
26994 | ||
26995 | ||
26996 | cat - <<_ACEOF >conftest.h | |
26997 | ||
26998 | _ACEOF | |
26999 | ||
27000 | ||
27001 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27002 | echo "obj-m := conftest.o" >build/Makefile | |
27003 | modpost_flag='' | |
27004 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27005 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27006 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27007 | (eval $ac_try) 2>&5 | |
27008 | ac_status=$? | |
27009 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27010 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27011 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27012 | (eval $ac_try) 2>&5 | |
27013 | ac_status=$? | |
27014 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27015 | test $ac_status = 0; }; }; then : | |
27016 | rc=0 | |
27017 | else | |
27018 | $as_echo "$as_me: failed program was:" >&5 | |
27019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27020 | rc=1 | |
27021 | ||
27022 | ||
27023 | fi | |
27024 | rm -Rf build | |
27025 | ||
27026 | ||
27027 | if test $rc -ne 0; then : | |
27028 | ||
27029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27030 | $as_echo "no" >&6; } | |
27031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5 | |
27032 | $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; } | |
27033 | ||
27034 | ||
27035 | ||
27036 | cat confdefs.h - <<_ACEOF >conftest.c | |
27037 | ||
27038 | ||
27039 | #include <linux/fs.h> | |
27040 | ||
27041 | int | |
27042 | main (void) | |
27043 | { | |
27044 | ||
27045 | lookup_bdev(NULL, FMODE_READ); | |
27046 | ||
27047 | ; | |
27048 | return 0; | |
27049 | } | |
27050 | ||
27051 | _ACEOF | |
27052 | ||
27053 | ||
27054 | ||
27055 | cat - <<_ACEOF >conftest.h | |
27056 | ||
27057 | _ACEOF | |
27058 | ||
27059 | ||
27060 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27061 | echo "obj-m := conftest.o" >build/Makefile | |
27062 | modpost_flag='' | |
27063 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27064 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27065 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27066 | (eval $ac_try) 2>&5 | |
27067 | ac_status=$? | |
27068 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27069 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27070 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27071 | (eval $ac_try) 2>&5 | |
27072 | ac_status=$? | |
27073 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27074 | test $ac_status = 0; }; }; then : | |
27075 | rc=0 | |
27076 | else | |
27077 | $as_echo "$as_me: failed program was:" >&5 | |
27078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27079 | rc=1 | |
27080 | ||
27081 | ||
27082 | fi | |
27083 | rm -Rf build | |
27084 | ||
27085 | ||
27086 | if test $rc -ne 0; then : | |
27087 | ||
27088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27089 | $as_echo "no" >&6; } | |
27090 | ||
27091 | else | |
27092 | if test "x$enable_linux_builtin" != xyes; then | |
27093 | ||
27094 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
27095 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
27096 | rc=$? | |
27097 | if test $rc -ne 0; then | |
27098 | export=0 | |
27099 | for file in fs/block_dev.c; do | |
27100 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
27101 | "$LINUX/$file" 2>/dev/null | |
27102 | rc=$? | |
27103 | if test $rc -eq 0; then | |
27104 | export=1 | |
27105 | break; | |
27106 | fi | |
27107 | done | |
27108 | if test $export -eq 0; then : | |
27109 | rc=1 | |
27110 | else : | |
27111 | rc=0 | |
27112 | fi | |
27113 | else : | |
27114 | rc=0 | |
27115 | fi | |
27116 | ||
27117 | fi | |
27118 | if test $rc -ne 0; then : | |
27119 | ||
27120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27121 | $as_echo "no" >&6; } | |
27122 | ||
27123 | else : | |
27124 | ||
27125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27126 | $as_echo "yes" >&6; } | |
27127 | ||
27128 | $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h | |
27129 | ||
27130 | ||
27131 | fi | |
27132 | fi | |
27133 | ||
27134 | ||
27135 | else | |
27136 | if test "x$enable_linux_builtin" != xyes; then | |
27137 | ||
27138 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
27139 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
27140 | rc=$? | |
27141 | if test $rc -ne 0; then | |
27142 | export=0 | |
27143 | for file in fs/block_dev.c; do | |
27144 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
27145 | "$LINUX/$file" 2>/dev/null | |
27146 | rc=$? | |
27147 | if test $rc -eq 0; then | |
27148 | export=1 | |
27149 | break; | |
27150 | fi | |
27151 | done | |
27152 | if test $export -eq 0; then : | |
27153 | rc=1 | |
27154 | else : | |
27155 | rc=0 | |
27156 | fi | |
27157 | else : | |
27158 | rc=0 | |
27159 | fi | |
27160 | ||
27161 | fi | |
27162 | if test $rc -ne 0; then : | |
27163 | ||
27164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27165 | $as_echo "no" >&6; } | |
27166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5 | |
27167 | $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; } | |
27168 | ||
27169 | ||
27170 | ||
27171 | cat confdefs.h - <<_ACEOF >conftest.c | |
27172 | ||
27173 | ||
27174 | #include <linux/fs.h> | |
27175 | ||
27176 | int | |
27177 | main (void) | |
27178 | { | |
27179 | ||
27180 | lookup_bdev(NULL, FMODE_READ); | |
27181 | ||
27182 | ; | |
27183 | return 0; | |
27184 | } | |
27185 | ||
27186 | _ACEOF | |
27187 | ||
27188 | ||
27189 | ||
27190 | cat - <<_ACEOF >conftest.h | |
27191 | ||
27192 | _ACEOF | |
27193 | ||
27194 | ||
27195 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27196 | echo "obj-m := conftest.o" >build/Makefile | |
27197 | modpost_flag='' | |
27198 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27199 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27200 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27201 | (eval $ac_try) 2>&5 | |
27202 | ac_status=$? | |
27203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27204 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27205 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27206 | (eval $ac_try) 2>&5 | |
27207 | ac_status=$? | |
27208 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27209 | test $ac_status = 0; }; }; then : | |
27210 | rc=0 | |
27211 | else | |
27212 | $as_echo "$as_me: failed program was:" >&5 | |
27213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27214 | rc=1 | |
27215 | ||
27216 | ||
27217 | fi | |
27218 | rm -Rf build | |
27219 | ||
27220 | ||
27221 | if test $rc -ne 0; then : | |
27222 | ||
27223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27224 | $as_echo "no" >&6; } | |
27225 | ||
27226 | else | |
27227 | if test "x$enable_linux_builtin" != xyes; then | |
27228 | ||
27229 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
27230 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
27231 | rc=$? | |
27232 | if test $rc -ne 0; then | |
27233 | export=0 | |
27234 | for file in fs/block_dev.c; do | |
27235 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
27236 | "$LINUX/$file" 2>/dev/null | |
27237 | rc=$? | |
27238 | if test $rc -eq 0; then | |
27239 | export=1 | |
27240 | break; | |
27241 | fi | |
27242 | done | |
27243 | if test $export -eq 0; then : | |
27244 | rc=1 | |
27245 | else : | |
27246 | rc=0 | |
27247 | fi | |
27248 | else : | |
27249 | rc=0 | |
27250 | fi | |
27251 | ||
27252 | fi | |
27253 | if test $rc -ne 0; then : | |
27254 | ||
27255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27256 | $as_echo "no" >&6; } | |
27257 | ||
27258 | else : | |
27259 | ||
27260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27261 | $as_echo "yes" >&6; } | |
27262 | ||
27263 | $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h | |
27264 | ||
27265 | ||
27266 | fi | |
27267 | fi | |
27268 | ||
27269 | ||
27270 | else : | |
27271 | ||
27272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27273 | $as_echo "yes" >&6; } | |
27274 | ||
27275 | $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h | |
27276 | ||
27277 | ||
27278 | fi | |
27279 | fi | |
27280 | ||
27281 | ||
27282 | ||
27283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5 | |
27284 | $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; } | |
27285 | ||
27286 | ||
27287 | cat confdefs.h - <<_ACEOF >conftest.c | |
27288 | ||
27289 | ||
27290 | #include <linux/buffer_head.h> | |
27291 | ||
27292 | int | |
27293 | main (void) | |
27294 | { | |
27295 | ||
27296 | struct block_device *bdev = NULL; | |
27297 | invalidate_bdev(bdev); | |
27298 | ||
27299 | ; | |
27300 | return 0; | |
27301 | } | |
27302 | ||
27303 | _ACEOF | |
27304 | ||
27305 | ||
27306 | ||
27307 | cat - <<_ACEOF >conftest.h | |
27308 | ||
27309 | _ACEOF | |
27310 | ||
27311 | ||
27312 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27313 | echo "obj-m := conftest.o" >build/Makefile | |
27314 | modpost_flag='' | |
27315 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27316 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27317 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27318 | (eval $ac_try) 2>&5 | |
27319 | ac_status=$? | |
27320 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27321 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27322 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27323 | (eval $ac_try) 2>&5 | |
27324 | ac_status=$? | |
27325 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27326 | test $ac_status = 0; }; }; then : | |
27327 | ||
27328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27329 | $as_echo "yes" >&6; } | |
27330 | ||
27331 | $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h | |
27332 | ||
27333 | ||
27334 | else | |
27335 | $as_echo "$as_me: failed program was:" >&5 | |
27336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27337 | ||
27338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27339 | $as_echo "no" >&6; } | |
27340 | ||
27341 | ||
27342 | ||
27343 | fi | |
27344 | rm -Rf build | |
27345 | ||
27346 | ||
27347 | ||
27348 | ||
27349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5 | |
27350 | $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; } | |
27351 | tmp_flags="$EXTRA_KCFLAGS" | |
27352 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
27353 | ||
27354 | ||
27355 | cat confdefs.h - <<_ACEOF >conftest.c | |
27356 | ||
27357 | ||
27358 | #include <linux/blkdev.h> | |
27359 | ||
27360 | int | |
27361 | main (void) | |
27362 | { | |
27363 | ||
27364 | struct block_device *bdev = NULL; | |
27365 | bdev_logical_block_size(bdev); | |
27366 | ||
27367 | ; | |
27368 | return 0; | |
27369 | } | |
27370 | ||
27371 | _ACEOF | |
27372 | ||
27373 | ||
27374 | ||
27375 | cat - <<_ACEOF >conftest.h | |
27376 | ||
27377 | _ACEOF | |
27378 | ||
27379 | ||
27380 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27381 | echo "obj-m := conftest.o" >build/Makefile | |
27382 | modpost_flag='' | |
27383 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27384 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27385 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27386 | (eval $ac_try) 2>&5 | |
27387 | ac_status=$? | |
27388 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27389 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27390 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27391 | (eval $ac_try) 2>&5 | |
27392 | ac_status=$? | |
27393 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27394 | test $ac_status = 0; }; }; then : | |
27395 | ||
27396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27397 | $as_echo "yes" >&6; } | |
27398 | ||
27399 | $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h | |
27400 | ||
27401 | ||
27402 | else | |
27403 | $as_echo "$as_me: failed program was:" >&5 | |
27404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27405 | ||
27406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27407 | $as_echo "no" >&6; } | |
27408 | ||
27409 | ||
27410 | ||
27411 | fi | |
27412 | rm -Rf build | |
27413 | ||
27414 | ||
27415 | EXTRA_KCFLAGS="$tmp_flags" | |
27416 | ||
27417 | ||
27418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5 | |
27419 | $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; } | |
27420 | tmp_flags="$EXTRA_KCFLAGS" | |
27421 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
27422 | ||
27423 | ||
27424 | cat confdefs.h - <<_ACEOF >conftest.c | |
27425 | ||
27426 | ||
27427 | #include <linux/blkdev.h> | |
27428 | ||
27429 | int | |
27430 | main (void) | |
27431 | { | |
27432 | ||
27433 | struct block_device *bdev = NULL; | |
27434 | bdev_physical_block_size(bdev); | |
27435 | ||
27436 | ; | |
27437 | return 0; | |
27438 | } | |
27439 | ||
27440 | _ACEOF | |
27441 | ||
27442 | ||
27443 | ||
27444 | cat - <<_ACEOF >conftest.h | |
27445 | ||
27446 | _ACEOF | |
27447 | ||
27448 | ||
27449 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27450 | echo "obj-m := conftest.o" >build/Makefile | |
27451 | modpost_flag='' | |
27452 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27453 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27454 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27455 | (eval $ac_try) 2>&5 | |
27456 | ac_status=$? | |
27457 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27458 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27459 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27460 | (eval $ac_try) 2>&5 | |
27461 | ac_status=$? | |
27462 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27463 | test $ac_status = 0; }; }; then : | |
27464 | ||
27465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27466 | $as_echo "yes" >&6; } | |
27467 | ||
27468 | $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h | |
27469 | ||
27470 | ||
27471 | else | |
27472 | $as_echo "$as_me: failed program was:" >&5 | |
27473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27474 | ||
27475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27476 | $as_echo "no" >&6; } | |
27477 | ||
27478 | ||
27479 | ||
27480 | fi | |
27481 | rm -Rf build | |
27482 | ||
27483 | ||
27484 | EXTRA_KCFLAGS="$tmp_flags" | |
27485 | ||
27486 | ||
27487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5 | |
27488 | $as_echo_n "checking whether bio has bi_iter... " >&6; } | |
27489 | ||
27490 | ||
27491 | cat confdefs.h - <<_ACEOF >conftest.c | |
27492 | ||
27493 | ||
27494 | #include <linux/bio.h> | |
27495 | ||
27496 | int | |
27497 | main (void) | |
27498 | { | |
27499 | ||
27500 | struct bio bio; | |
27501 | bio.bi_iter.bi_sector = 0; | |
27502 | ||
27503 | ; | |
27504 | return 0; | |
27505 | } | |
27506 | ||
27507 | _ACEOF | |
27508 | ||
27509 | ||
27510 | ||
27511 | cat - <<_ACEOF >conftest.h | |
27512 | ||
27513 | _ACEOF | |
27514 | ||
27515 | ||
27516 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27517 | echo "obj-m := conftest.o" >build/Makefile | |
27518 | modpost_flag='' | |
27519 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27520 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27521 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27522 | (eval $ac_try) 2>&5 | |
27523 | ac_status=$? | |
27524 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27525 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27526 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27527 | (eval $ac_try) 2>&5 | |
27528 | ac_status=$? | |
27529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27530 | test $ac_status = 0; }; }; then : | |
27531 | ||
27532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27533 | $as_echo "yes" >&6; } | |
27534 | ||
27535 | $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h | |
27536 | ||
27537 | ||
27538 | else | |
27539 | $as_echo "$as_me: failed program was:" >&5 | |
27540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27541 | ||
27542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27543 | $as_echo "no" >&6; } | |
27544 | ||
27545 | ||
27546 | ||
27547 | fi | |
27548 | rm -Rf build | |
27549 | ||
27550 | ||
27551 | ||
27552 | ||
27553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5 | |
27554 | $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; } | |
27555 | ||
27556 | ||
27557 | cat confdefs.h - <<_ACEOF >conftest.c | |
27558 | ||
27559 | ||
27560 | #include <linux/bio.h> | |
27561 | ||
27562 | int | |
27563 | main (void) | |
27564 | { | |
27565 | ||
27566 | int flags __attribute__ ((unused)); | |
27567 | flags = ((1 << BIO_RW_FAILFAST_DEV) | | |
27568 | (1 << BIO_RW_FAILFAST_TRANSPORT) | | |
27569 | (1 << BIO_RW_FAILFAST_DRIVER)); | |
27570 | ||
27571 | ; | |
27572 | return 0; | |
27573 | } | |
27574 | ||
27575 | _ACEOF | |
27576 | ||
27577 | ||
27578 | ||
27579 | cat - <<_ACEOF >conftest.h | |
27580 | ||
27581 | _ACEOF | |
27582 | ||
27583 | ||
27584 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27585 | echo "obj-m := conftest.o" >build/Makefile | |
27586 | modpost_flag='' | |
27587 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27588 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27589 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27590 | (eval $ac_try) 2>&5 | |
27591 | ac_status=$? | |
27592 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27593 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27594 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27595 | (eval $ac_try) 2>&5 | |
27596 | ac_status=$? | |
27597 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27598 | test $ac_status = 0; }; }; then : | |
27599 | ||
27600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27601 | $as_echo "yes" >&6; } | |
27602 | ||
27603 | $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h | |
27604 | ||
27605 | ||
27606 | else | |
27607 | $as_echo "$as_me: failed program was:" >&5 | |
27608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27609 | ||
27610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27611 | $as_echo "no" >&6; } | |
27612 | ||
27613 | ||
27614 | ||
27615 | fi | |
27616 | rm -Rf build | |
27617 | ||
27618 | ||
27619 | ||
27620 | ||
27621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5 | |
27622 | $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; } | |
27623 | ||
27624 | ||
27625 | cat confdefs.h - <<_ACEOF >conftest.c | |
27626 | ||
27627 | ||
27628 | #include <linux/bio.h> | |
27629 | ||
27630 | int | |
27631 | main (void) | |
27632 | { | |
27633 | ||
27634 | int flags __attribute__ ((unused)); | |
27635 | flags = REQ_FAILFAST_MASK; | |
27636 | ||
27637 | ; | |
27638 | return 0; | |
27639 | } | |
27640 | ||
27641 | _ACEOF | |
27642 | ||
27643 | ||
27644 | ||
27645 | cat - <<_ACEOF >conftest.h | |
27646 | ||
27647 | _ACEOF | |
27648 | ||
27649 | ||
27650 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27651 | echo "obj-m := conftest.o" >build/Makefile | |
27652 | modpost_flag='' | |
27653 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27654 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27655 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27656 | (eval $ac_try) 2>&5 | |
27657 | ac_status=$? | |
27658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27659 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27660 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27661 | (eval $ac_try) 2>&5 | |
27662 | ac_status=$? | |
27663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27664 | test $ac_status = 0; }; }; then : | |
27665 | ||
27666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27667 | $as_echo "yes" >&6; } | |
27668 | ||
27669 | $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h | |
27670 | ||
27671 | ||
27672 | else | |
27673 | $as_echo "$as_me: failed program was:" >&5 | |
27674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27675 | ||
27676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27677 | $as_echo "no" >&6; } | |
27678 | ||
27679 | ||
27680 | ||
27681 | fi | |
27682 | rm -Rf build | |
27683 | ||
27684 | ||
27685 | ||
27686 | ||
27687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5 | |
27688 | $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; } | |
27689 | ||
27690 | ||
27691 | cat confdefs.h - <<_ACEOF >conftest.c | |
27692 | ||
27693 | ||
27694 | #include <linux/blk_types.h> | |
27695 | ||
27696 | int | |
27697 | main (void) | |
27698 | { | |
27699 | ||
27700 | int op __attribute__ ((unused)) = REQ_OP_DISCARD; | |
27701 | ||
27702 | ; | |
27703 | return 0; | |
27704 | } | |
27705 | ||
27706 | _ACEOF | |
27707 | ||
27708 | ||
27709 | ||
27710 | cat - <<_ACEOF >conftest.h | |
27711 | ||
27712 | _ACEOF | |
27713 | ||
27714 | ||
27715 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27716 | echo "obj-m := conftest.o" >build/Makefile | |
27717 | modpost_flag='' | |
27718 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27719 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27720 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27721 | (eval $ac_try) 2>&5 | |
27722 | ac_status=$? | |
27723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27724 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27725 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27726 | (eval $ac_try) 2>&5 | |
27727 | ac_status=$? | |
27728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27729 | test $ac_status = 0; }; }; then : | |
27730 | ||
27731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27732 | $as_echo "yes" >&6; } | |
27733 | ||
27734 | $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h | |
27735 | ||
27736 | ||
27737 | else | |
27738 | $as_echo "$as_me: failed program was:" >&5 | |
27739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27740 | ||
27741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27742 | $as_echo "no" >&6; } | |
27743 | ||
27744 | ||
27745 | ||
27746 | fi | |
27747 | rm -Rf build | |
27748 | ||
27749 | ||
27750 | ||
27751 | ||
27752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5 | |
27753 | $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; } | |
27754 | ||
27755 | ||
27756 | cat confdefs.h - <<_ACEOF >conftest.c | |
27757 | ||
27758 | ||
27759 | #include <linux/blk_types.h> | |
27760 | ||
27761 | int | |
27762 | main (void) | |
27763 | { | |
27764 | ||
27765 | int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE; | |
27766 | ||
27767 | ; | |
27768 | return 0; | |
27769 | } | |
27770 | ||
27771 | _ACEOF | |
27772 | ||
27773 | ||
27774 | ||
27775 | cat - <<_ACEOF >conftest.h | |
27776 | ||
27777 | _ACEOF | |
27778 | ||
27779 | ||
27780 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27781 | echo "obj-m := conftest.o" >build/Makefile | |
27782 | modpost_flag='' | |
27783 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27784 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27785 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27786 | (eval $ac_try) 2>&5 | |
27787 | ac_status=$? | |
27788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27789 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27790 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27791 | (eval $ac_try) 2>&5 | |
27792 | ac_status=$? | |
27793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27794 | test $ac_status = 0; }; }; then : | |
27795 | ||
27796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27797 | $as_echo "yes" >&6; } | |
27798 | ||
27799 | $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h | |
27800 | ||
27801 | ||
27802 | else | |
27803 | $as_echo "$as_me: failed program was:" >&5 | |
27804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27805 | ||
27806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27807 | $as_echo "no" >&6; } | |
27808 | ||
27809 | ||
27810 | ||
27811 | fi | |
27812 | rm -Rf build | |
27813 | ||
27814 | ||
27815 | ||
27816 | ||
27817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5 | |
27818 | $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; } | |
27819 | ||
27820 | ||
27821 | cat confdefs.h - <<_ACEOF >conftest.c | |
27822 | ||
27823 | ||
27824 | #include <linux/blk_types.h> | |
27825 | ||
27826 | int | |
27827 | main (void) | |
27828 | { | |
27829 | ||
27830 | int op __attribute__ ((unused)) = REQ_OP_FLUSH; | |
27831 | ||
27832 | ; | |
27833 | return 0; | |
27834 | } | |
27835 | ||
27836 | _ACEOF | |
27837 | ||
27838 | ||
27839 | ||
27840 | cat - <<_ACEOF >conftest.h | |
27841 | ||
27842 | _ACEOF | |
27843 | ||
27844 | ||
27845 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27846 | echo "obj-m := conftest.o" >build/Makefile | |
27847 | modpost_flag='' | |
27848 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27849 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27850 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27851 | (eval $ac_try) 2>&5 | |
27852 | ac_status=$? | |
27853 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27854 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27855 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27856 | (eval $ac_try) 2>&5 | |
27857 | ac_status=$? | |
27858 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27859 | test $ac_status = 0; }; }; then : | |
27860 | ||
27861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27862 | $as_echo "yes" >&6; } | |
27863 | ||
27864 | $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h | |
27865 | ||
27866 | ||
27867 | else | |
27868 | $as_echo "$as_me: failed program was:" >&5 | |
27869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27870 | ||
27871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27872 | $as_echo "no" >&6; } | |
27873 | ||
27874 | ||
27875 | ||
27876 | fi | |
27877 | rm -Rf build | |
27878 | ||
27879 | ||
27880 | ||
27881 | ||
27882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5 | |
27883 | $as_echo_n "checking whether bio->bi_opf is defined... " >&6; } | |
27884 | ||
27885 | ||
27886 | cat confdefs.h - <<_ACEOF >conftest.c | |
27887 | ||
27888 | ||
27889 | #include <linux/bio.h> | |
27890 | ||
27891 | int | |
27892 | main (void) | |
27893 | { | |
27894 | ||
27895 | struct bio bio __attribute__ ((unused)); | |
27896 | bio.bi_opf = 0; | |
27897 | ||
27898 | ; | |
27899 | return 0; | |
27900 | } | |
27901 | ||
27902 | _ACEOF | |
27903 | ||
27904 | ||
27905 | ||
27906 | cat - <<_ACEOF >conftest.h | |
27907 | ||
27908 | _ACEOF | |
27909 | ||
27910 | ||
27911 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27912 | echo "obj-m := conftest.o" >build/Makefile | |
27913 | modpost_flag='' | |
27914 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27915 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27916 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27917 | (eval $ac_try) 2>&5 | |
27918 | ac_status=$? | |
27919 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27920 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27921 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27922 | (eval $ac_try) 2>&5 | |
27923 | ac_status=$? | |
27924 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27925 | test $ac_status = 0; }; }; then : | |
27926 | ||
27927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27928 | $as_echo "yes" >&6; } | |
27929 | ||
27930 | $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h | |
27931 | ||
27932 | ||
27933 | else | |
27934 | $as_echo "$as_me: failed program was:" >&5 | |
27935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27936 | ||
27937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27938 | $as_echo "no" >&6; } | |
27939 | ||
27940 | ||
27941 | ||
27942 | fi | |
27943 | rm -Rf build | |
27944 | ||
27945 | ||
27946 | ||
27947 | ||
27948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5 | |
27949 | $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; } | |
27950 | ||
27951 | ||
27952 | cat confdefs.h - <<_ACEOF >conftest.c | |
27953 | ||
27954 | ||
27955 | #include <linux/bio.h> | |
27956 | ||
27957 | void wanted_end_io(struct bio *bio) { return; } | |
27958 | ||
27959 | bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io; | |
27960 | ||
27961 | int | |
27962 | main (void) | |
27963 | { | |
27964 | ||
27965 | ||
27966 | ; | |
27967 | return 0; | |
27968 | } | |
27969 | ||
27970 | _ACEOF | |
27971 | ||
27972 | ||
27973 | ||
27974 | cat - <<_ACEOF >conftest.h | |
27975 | ||
27976 | _ACEOF | |
27977 | ||
27978 | ||
27979 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27980 | echo "obj-m := conftest.o" >build/Makefile | |
27981 | modpost_flag='' | |
27982 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27983 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27984 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27985 | (eval $ac_try) 2>&5 | |
27986 | ac_status=$? | |
27987 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27988 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
27994 | ||
27995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27996 | $as_echo "yes" >&6; } | |
27997 | ||
27998 | $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h | |
27999 | ||
28000 | ||
28001 | else | |
28002 | $as_echo "$as_me: failed program was:" >&5 | |
28003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28004 | ||
28005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28006 | $as_echo "no" >&6; } | |
28007 | ||
28008 | ||
28009 | ||
28010 | fi | |
28011 | rm -Rf build | |
28012 | ||
28013 | ||
28014 | ||
28015 | ||
1681e039 CIK |
28016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5 |
28017 | $as_echo_n "checking whether bio->bi_status exists... " >&6; } | |
28018 | ||
28019 | ||
28020 | cat confdefs.h - <<_ACEOF >conftest.c | |
28021 | ||
28022 | ||
28023 | #include <linux/bio.h> | |
28024 | ||
28025 | int | |
28026 | main (void) | |
28027 | { | |
28028 | ||
28029 | struct bio bio __attribute__ ((unused)); | |
28030 | blk_status_t status __attribute__ ((unused)) = BLK_STS_OK; | |
28031 | ||
28032 | bio.bi_status = status; | |
28033 | ||
28034 | ; | |
28035 | return 0; | |
28036 | } | |
28037 | ||
28038 | _ACEOF | |
28039 | ||
28040 | ||
28041 | ||
28042 | cat - <<_ACEOF >conftest.h | |
28043 | ||
28044 | _ACEOF | |
28045 | ||
28046 | ||
28047 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28048 | echo "obj-m := conftest.o" >build/Makefile | |
28049 | modpost_flag='' | |
28050 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28051 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28052 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28053 | (eval $ac_try) 2>&5 | |
28054 | ac_status=$? | |
28055 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28056 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
28062 | ||
28063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28064 | $as_echo "yes" >&6; } | |
28065 | ||
28066 | $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h | |
28067 | ||
28068 | ||
28069 | else | |
28070 | $as_echo "$as_me: failed program was:" >&5 | |
28071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28072 | ||
28073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28074 | $as_echo "no" >&6; } | |
28075 | ||
28076 | ||
28077 | ||
28078 | fi | |
28079 | rm -Rf build | |
28080 | ||
28081 | ||
28082 | ||
28083 | ||
87d546d8 TG |
28084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5 |
28085 | $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; } | |
28086 | ||
28087 | ||
28088 | cat confdefs.h - <<_ACEOF >conftest.c | |
28089 | ||
28090 | ||
28091 | #include <linux/bio.h> | |
28092 | ||
28093 | int | |
28094 | main (void) | |
28095 | { | |
28096 | ||
28097 | int flags __attribute__ ((unused)); | |
28098 | flags = BIO_RW_BARRIER; | |
28099 | ||
28100 | ; | |
28101 | return 0; | |
28102 | } | |
28103 | ||
28104 | _ACEOF | |
28105 | ||
28106 | ||
28107 | ||
28108 | cat - <<_ACEOF >conftest.h | |
28109 | ||
28110 | _ACEOF | |
28111 | ||
28112 | ||
28113 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28114 | echo "obj-m := conftest.o" >build/Makefile | |
28115 | modpost_flag='' | |
28116 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28117 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28118 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28119 | (eval $ac_try) 2>&5 | |
28120 | ac_status=$? | |
28121 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28122 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28123 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28124 | (eval $ac_try) 2>&5 | |
28125 | ac_status=$? | |
28126 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28127 | test $ac_status = 0; }; }; then : | |
28128 | ||
28129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28130 | $as_echo "yes" >&6; } | |
28131 | ||
28132 | $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h | |
28133 | ||
28134 | ||
28135 | else | |
28136 | $as_echo "$as_me: failed program was:" >&5 | |
28137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28138 | ||
28139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28140 | $as_echo "no" >&6; } | |
28141 | ||
28142 | ||
28143 | ||
28144 | fi | |
28145 | rm -Rf build | |
28146 | ||
28147 | ||
28148 | ||
28149 | ||
28150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5 | |
28151 | $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; } | |
28152 | ||
28153 | ||
28154 | cat confdefs.h - <<_ACEOF >conftest.c | |
28155 | ||
28156 | ||
28157 | #include <linux/bio.h> | |
28158 | ||
28159 | int | |
28160 | main (void) | |
28161 | { | |
28162 | ||
28163 | int flags __attribute__ ((unused)); | |
28164 | flags = BIO_RW_DISCARD; | |
28165 | ||
28166 | ; | |
28167 | return 0; | |
28168 | } | |
28169 | ||
28170 | _ACEOF | |
28171 | ||
28172 | ||
28173 | ||
28174 | cat - <<_ACEOF >conftest.h | |
28175 | ||
28176 | _ACEOF | |
28177 | ||
28178 | ||
28179 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28180 | echo "obj-m := conftest.o" >build/Makefile | |
28181 | modpost_flag='' | |
28182 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28183 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28184 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28185 | (eval $ac_try) 2>&5 | |
28186 | ac_status=$? | |
28187 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28188 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28189 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28190 | (eval $ac_try) 2>&5 | |
28191 | ac_status=$? | |
28192 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28193 | test $ac_status = 0; }; }; then : | |
28194 | ||
28195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28196 | $as_echo "yes" >&6; } | |
28197 | ||
28198 | $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h | |
28199 | ||
28200 | ||
28201 | else | |
28202 | $as_echo "$as_me: failed program was:" >&5 | |
28203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28204 | ||
28205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28206 | $as_echo "no" >&6; } | |
28207 | ||
28208 | ||
28209 | ||
28210 | fi | |
28211 | rm -Rf build | |
28212 | ||
28213 | ||
28214 | ||
28215 | ||
28216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5 | |
28217 | $as_echo_n "checking whether blk_queue_flush() is available... " >&6; } | |
28218 | tmp_flags="$EXTRA_KCFLAGS" | |
28219 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28220 | ||
28221 | ||
28222 | cat confdefs.h - <<_ACEOF >conftest.c | |
28223 | ||
28224 | ||
28225 | #include <linux/blkdev.h> | |
28226 | ||
28227 | int | |
28228 | main (void) | |
28229 | { | |
28230 | ||
28231 | struct request_queue *q = NULL; | |
28232 | (void) blk_queue_flush(q, REQ_FLUSH); | |
28233 | ||
28234 | ; | |
28235 | return 0; | |
28236 | } | |
28237 | ||
28238 | _ACEOF | |
28239 | ||
28240 | ||
28241 | ||
28242 | cat - <<_ACEOF >conftest.h | |
28243 | ||
28244 | _ACEOF | |
28245 | ||
28246 | ||
28247 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28248 | echo "obj-m := conftest.o" >build/Makefile | |
28249 | modpost_flag='' | |
28250 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28251 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28252 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28253 | (eval $ac_try) 2>&5 | |
28254 | ac_status=$? | |
28255 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28256 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28257 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28258 | (eval $ac_try) 2>&5 | |
28259 | ac_status=$? | |
28260 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28261 | test $ac_status = 0; }; }; then : | |
28262 | ||
28263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28264 | $as_echo "yes" >&6; } | |
28265 | ||
28266 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h | |
28267 | ||
28268 | ||
28269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5 | |
28270 | $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; } | |
28271 | ||
28272 | ||
28273 | cat confdefs.h - <<_ACEOF >conftest.c | |
28274 | ||
28275 | ||
28276 | #include <linux/module.h> | |
28277 | #include <linux/blkdev.h> | |
28278 | ||
28279 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
28280 | ||
28281 | int | |
28282 | main (void) | |
28283 | { | |
28284 | ||
28285 | struct request_queue *q = NULL; | |
28286 | (void) blk_queue_flush(q, REQ_FLUSH); | |
28287 | ||
28288 | ; | |
28289 | return 0; | |
28290 | } | |
28291 | ||
28292 | _ACEOF | |
28293 | ||
28294 | ||
28295 | ||
28296 | cat - <<_ACEOF >conftest.h | |
28297 | ||
28298 | _ACEOF | |
28299 | ||
28300 | ||
28301 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28302 | echo "obj-m := conftest.o" >build/Makefile | |
28303 | modpost_flag='' | |
28304 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28305 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28306 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28307 | (eval $ac_try) 2>&5 | |
28308 | ac_status=$? | |
28309 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28310 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28311 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28312 | (eval $ac_try) 2>&5 | |
28313 | ac_status=$? | |
28314 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28315 | test $ac_status = 0; }; }; then : | |
28316 | ||
28317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28318 | $as_echo "no" >&6; } | |
28319 | ||
28320 | else | |
28321 | $as_echo "$as_me: failed program was:" >&5 | |
28322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28323 | ||
28324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28325 | $as_echo "yes" >&6; } | |
28326 | ||
28327 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h | |
28328 | ||
28329 | ||
28330 | ||
28331 | ||
28332 | fi | |
28333 | rm -Rf build | |
28334 | ||
28335 | ||
28336 | ||
28337 | else | |
28338 | $as_echo "$as_me: failed program was:" >&5 | |
28339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28340 | ||
28341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28342 | $as_echo "no" >&6; } | |
28343 | ||
28344 | ||
28345 | ||
28346 | fi | |
28347 | rm -Rf build | |
28348 | ||
28349 | ||
28350 | ||
28351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5 | |
28352 | $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; } | |
28353 | ||
28354 | ||
28355 | cat confdefs.h - <<_ACEOF >conftest.c | |
28356 | ||
28357 | ||
28358 | #include <linux/kernel.h> | |
28359 | #include <linux/blkdev.h> | |
28360 | ||
28361 | ||
28362 | int | |
28363 | main (void) | |
28364 | { | |
28365 | ||
28366 | struct request_queue *q = NULL; | |
28367 | blk_queue_write_cache(q, true, true); | |
28368 | ||
28369 | ; | |
28370 | return 0; | |
28371 | } | |
28372 | ||
28373 | _ACEOF | |
28374 | ||
28375 | ||
28376 | ||
28377 | cat - <<_ACEOF >conftest.h | |
28378 | ||
28379 | _ACEOF | |
28380 | ||
28381 | ||
28382 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28383 | echo "obj-m := conftest.o" >build/Makefile | |
28384 | modpost_flag='' | |
28385 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28386 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28387 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28388 | (eval $ac_try) 2>&5 | |
28389 | ac_status=$? | |
28390 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28391 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28392 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28393 | (eval $ac_try) 2>&5 | |
28394 | ac_status=$? | |
28395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28396 | test $ac_status = 0; }; }; then : | |
28397 | ||
28398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28399 | $as_echo "yes" >&6; } | |
28400 | ||
28401 | $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h | |
28402 | ||
28403 | ||
28404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5 | |
28405 | $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; } | |
28406 | ||
28407 | ||
28408 | cat confdefs.h - <<_ACEOF >conftest.c | |
28409 | ||
28410 | ||
28411 | #include <linux/kernel.h> | |
28412 | #include <linux/module.h> | |
28413 | #include <linux/blkdev.h> | |
28414 | ||
28415 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
28416 | ||
28417 | int | |
28418 | main (void) | |
28419 | { | |
28420 | ||
28421 | struct request_queue *q = NULL; | |
28422 | blk_queue_write_cache(q, true, true); | |
28423 | ||
28424 | ; | |
28425 | return 0; | |
28426 | } | |
28427 | ||
28428 | _ACEOF | |
28429 | ||
28430 | ||
28431 | ||
28432 | cat - <<_ACEOF >conftest.h | |
28433 | ||
28434 | _ACEOF | |
28435 | ||
28436 | ||
28437 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28438 | echo "obj-m := conftest.o" >build/Makefile | |
28439 | modpost_flag='' | |
28440 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28441 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28442 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28443 | (eval $ac_try) 2>&5 | |
28444 | ac_status=$? | |
28445 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28446 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28447 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28448 | (eval $ac_try) 2>&5 | |
28449 | ac_status=$? | |
28450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28451 | test $ac_status = 0; }; }; then : | |
28452 | ||
28453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28454 | $as_echo "no" >&6; } | |
28455 | ||
28456 | else | |
28457 | $as_echo "$as_me: failed program was:" >&5 | |
28458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28459 | ||
28460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28461 | $as_echo "yes" >&6; } | |
28462 | ||
28463 | $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h | |
28464 | ||
28465 | ||
28466 | ||
28467 | ||
28468 | fi | |
28469 | rm -Rf build | |
28470 | ||
28471 | ||
28472 | ||
28473 | else | |
28474 | $as_echo "$as_me: failed program was:" >&5 | |
28475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28476 | ||
28477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28478 | $as_echo "no" >&6; } | |
28479 | ||
28480 | ||
28481 | ||
28482 | fi | |
28483 | rm -Rf build | |
28484 | ||
28485 | ||
28486 | ||
28487 | EXTRA_KCFLAGS="$tmp_flags" | |
28488 | ||
28489 | ||
28490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5 | |
28491 | $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; } | |
28492 | tmp_flags="$EXTRA_KCFLAGS" | |
28493 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28494 | ||
28495 | ||
28496 | cat confdefs.h - <<_ACEOF >conftest.c | |
28497 | ||
28498 | ||
28499 | #include <linux/blkdev.h> | |
28500 | ||
28501 | int | |
28502 | main (void) | |
28503 | { | |
28504 | ||
28505 | struct request_queue *q = NULL; | |
28506 | (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS); | |
28507 | ||
28508 | ; | |
28509 | return 0; | |
28510 | } | |
28511 | ||
28512 | _ACEOF | |
28513 | ||
28514 | ||
28515 | ||
28516 | cat - <<_ACEOF >conftest.h | |
28517 | ||
28518 | _ACEOF | |
28519 | ||
28520 | ||
28521 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28522 | echo "obj-m := conftest.o" >build/Makefile | |
28523 | modpost_flag='' | |
28524 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28525 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28526 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28527 | (eval $ac_try) 2>&5 | |
28528 | ac_status=$? | |
28529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28530 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28531 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28532 | (eval $ac_try) 2>&5 | |
28533 | ac_status=$? | |
28534 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28535 | test $ac_status = 0; }; }; then : | |
28536 | ||
28537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28538 | $as_echo "yes" >&6; } | |
28539 | ||
28540 | $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h | |
28541 | ||
28542 | ||
28543 | else | |
28544 | $as_echo "$as_me: failed program was:" >&5 | |
28545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28546 | ||
28547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28548 | $as_echo "no" >&6; } | |
28549 | ||
28550 | ||
28551 | ||
28552 | fi | |
28553 | rm -Rf build | |
28554 | ||
28555 | ||
28556 | EXTRA_KCFLAGS="$tmp_flags" | |
28557 | ||
28558 | ||
28559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5 | |
28560 | $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; } | |
28561 | tmp_flags="$EXTRA_KCFLAGS" | |
28562 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28563 | ||
28564 | ||
28565 | cat confdefs.h - <<_ACEOF >conftest.c | |
28566 | ||
28567 | ||
28568 | #include <linux/blkdev.h> | |
28569 | ||
28570 | int | |
28571 | main (void) | |
28572 | { | |
28573 | ||
28574 | struct request_queue *q = NULL; | |
28575 | (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS); | |
28576 | ||
28577 | ; | |
28578 | return 0; | |
28579 | } | |
28580 | ||
28581 | _ACEOF | |
28582 | ||
28583 | ||
28584 | ||
28585 | cat - <<_ACEOF >conftest.h | |
28586 | ||
28587 | _ACEOF | |
28588 | ||
28589 | ||
28590 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28591 | echo "obj-m := conftest.o" >build/Makefile | |
28592 | modpost_flag='' | |
28593 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28594 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28595 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28596 | (eval $ac_try) 2>&5 | |
28597 | ac_status=$? | |
28598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28599 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28600 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28601 | (eval $ac_try) 2>&5 | |
28602 | ac_status=$? | |
28603 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28604 | test $ac_status = 0; }; }; then : | |
28605 | ||
28606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28607 | $as_echo "yes" >&6; } | |
28608 | ||
28609 | $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h | |
28610 | ||
28611 | ||
28612 | else | |
28613 | $as_echo "$as_me: failed program was:" >&5 | |
28614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28615 | ||
28616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28617 | $as_echo "no" >&6; } | |
28618 | ||
28619 | ||
28620 | ||
28621 | fi | |
28622 | rm -Rf build | |
28623 | ||
28624 | ||
28625 | EXTRA_KCFLAGS="$tmp_flags" | |
28626 | ||
28627 | ||
28628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5 | |
28629 | $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; } | |
28630 | tmp_flags="$EXTRA_KCFLAGS" | |
28631 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28632 | ||
28633 | ||
28634 | cat confdefs.h - <<_ACEOF >conftest.c | |
28635 | ||
28636 | ||
28637 | #include <linux/blkdev.h> | |
28638 | ||
28639 | int | |
28640 | main (void) | |
28641 | { | |
28642 | ||
28643 | extern enum bio_rw_flags rw; | |
28644 | ||
28645 | rw = BIO_RW_UNPLUG; | |
28646 | ||
28647 | ; | |
28648 | return 0; | |
28649 | } | |
28650 | ||
28651 | _ACEOF | |
28652 | ||
28653 | ||
28654 | ||
28655 | cat - <<_ACEOF >conftest.h | |
28656 | ||
28657 | _ACEOF | |
28658 | ||
28659 | ||
28660 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28661 | echo "obj-m := conftest.o" >build/Makefile | |
28662 | modpost_flag='' | |
28663 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28664 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28665 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28666 | (eval $ac_try) 2>&5 | |
28667 | ac_status=$? | |
28668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28669 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28670 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28671 | (eval $ac_try) 2>&5 | |
28672 | ac_status=$? | |
28673 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28674 | test $ac_status = 0; }; }; then : | |
28675 | ||
28676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28677 | $as_echo "yes" >&6; } | |
28678 | ||
28679 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h | |
28680 | ||
28681 | ||
28682 | else | |
28683 | $as_echo "$as_me: failed program was:" >&5 | |
28684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28685 | ||
28686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28687 | $as_echo "no" >&6; } | |
28688 | ||
28689 | ||
28690 | ||
28691 | fi | |
28692 | rm -Rf build | |
28693 | ||
28694 | ||
28695 | EXTRA_KCFLAGS="$tmp_flags" | |
28696 | ||
28697 | ||
28698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5 | |
28699 | $as_echo_n "checking whether struct blk_plug is available... " >&6; } | |
28700 | tmp_flags="$EXTRA_KCFLAGS" | |
28701 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28702 | ||
28703 | ||
28704 | cat confdefs.h - <<_ACEOF >conftest.c | |
28705 | ||
28706 | ||
28707 | #include <linux/blkdev.h> | |
28708 | ||
28709 | int | |
28710 | main (void) | |
28711 | { | |
28712 | ||
28713 | struct blk_plug plug; | |
28714 | ||
28715 | blk_start_plug(&plug); | |
28716 | blk_finish_plug(&plug); | |
28717 | ||
28718 | ; | |
28719 | return 0; | |
28720 | } | |
28721 | ||
28722 | _ACEOF | |
28723 | ||
28724 | ||
28725 | ||
28726 | cat - <<_ACEOF >conftest.h | |
28727 | ||
28728 | _ACEOF | |
28729 | ||
28730 | ||
28731 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28732 | echo "obj-m := conftest.o" >build/Makefile | |
28733 | modpost_flag='' | |
28734 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28735 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28736 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28737 | (eval $ac_try) 2>&5 | |
28738 | ac_status=$? | |
28739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28740 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28741 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28742 | (eval $ac_try) 2>&5 | |
28743 | ac_status=$? | |
28744 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28745 | test $ac_status = 0; }; }; then : | |
28746 | ||
28747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28748 | $as_echo "yes" >&6; } | |
28749 | ||
28750 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h | |
28751 | ||
28752 | ||
28753 | else | |
28754 | $as_echo "$as_me: failed program was:" >&5 | |
28755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28756 | ||
28757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28758 | $as_echo "no" >&6; } | |
28759 | ||
28760 | ||
28761 | ||
28762 | fi | |
28763 | rm -Rf build | |
28764 | ||
28765 | ||
28766 | EXTRA_KCFLAGS="$tmp_flags" | |
28767 | ||
28768 | ||
28769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5 | |
28770 | $as_echo_n "checking whether get_disk_ro() is available... " >&6; } | |
28771 | tmp_flags="$EXTRA_KCFLAGS" | |
28772 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
28773 | ||
28774 | ||
28775 | cat confdefs.h - <<_ACEOF >conftest.c | |
28776 | ||
28777 | ||
28778 | #include <linux/blkdev.h> | |
28779 | ||
28780 | int | |
28781 | main (void) | |
28782 | { | |
28783 | ||
28784 | struct gendisk *disk = NULL; | |
28785 | (void) get_disk_ro(disk); | |
28786 | ||
28787 | ; | |
28788 | return 0; | |
28789 | } | |
28790 | ||
28791 | _ACEOF | |
28792 | ||
28793 | ||
28794 | ||
28795 | cat - <<_ACEOF >conftest.h | |
28796 | ||
28797 | _ACEOF | |
28798 | ||
28799 | ||
28800 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28801 | echo "obj-m := conftest.o" >build/Makefile | |
28802 | modpost_flag='' | |
28803 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28804 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28805 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28806 | (eval $ac_try) 2>&5 | |
28807 | ac_status=$? | |
28808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28809 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28810 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28811 | (eval $ac_try) 2>&5 | |
28812 | ac_status=$? | |
28813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28814 | test $ac_status = 0; }; }; then : | |
28815 | ||
28816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28817 | $as_echo "yes" >&6; } | |
28818 | ||
28819 | $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h | |
28820 | ||
28821 | ||
28822 | else | |
28823 | $as_echo "$as_me: failed program was:" >&5 | |
28824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28825 | ||
28826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28827 | $as_echo "no" >&6; } | |
28828 | ||
28829 | ||
28830 | ||
28831 | fi | |
28832 | rm -Rf build | |
28833 | ||
28834 | ||
28835 | EXTRA_KCFLAGS="$tmp_flags" | |
28836 | ||
28837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5 | |
28838 | $as_echo_n "checking whether get_gendisk() is available... " >&6; } | |
28839 | ||
28840 | ||
28841 | ||
28842 | cat confdefs.h - <<_ACEOF >conftest.c | |
28843 | ||
28844 | ||
28845 | #include <linux/genhd.h> | |
28846 | ||
28847 | int | |
28848 | main (void) | |
28849 | { | |
28850 | ||
28851 | get_gendisk(0, NULL); | |
28852 | ||
28853 | ; | |
28854 | return 0; | |
28855 | } | |
28856 | ||
28857 | _ACEOF | |
28858 | ||
28859 | ||
28860 | ||
28861 | cat - <<_ACEOF >conftest.h | |
28862 | ||
28863 | _ACEOF | |
28864 | ||
28865 | ||
28866 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28867 | echo "obj-m := conftest.o" >build/Makefile | |
28868 | modpost_flag='' | |
28869 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28870 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28871 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28872 | (eval $ac_try) 2>&5 | |
28873 | ac_status=$? | |
28874 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28875 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28876 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28877 | (eval $ac_try) 2>&5 | |
28878 | ac_status=$? | |
28879 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28880 | test $ac_status = 0; }; }; then : | |
28881 | rc=0 | |
28882 | else | |
28883 | $as_echo "$as_me: failed program was:" >&5 | |
28884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28885 | rc=1 | |
28886 | ||
28887 | ||
28888 | fi | |
28889 | rm -Rf build | |
28890 | ||
28891 | ||
28892 | if test $rc -ne 0; then : | |
28893 | ||
28894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28895 | $as_echo "no" >&6; } | |
28896 | ||
28897 | else | |
28898 | if test "x$enable_linux_builtin" != xyes; then | |
28899 | ||
28900 | grep -q -E '[[:space:]]get_gendisk[[:space:]]' \ | |
28901 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
28902 | rc=$? | |
28903 | if test $rc -ne 0; then | |
28904 | export=0 | |
28905 | for file in block/genhd.c; do | |
28906 | grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \ | |
28907 | "$LINUX/$file" 2>/dev/null | |
28908 | rc=$? | |
28909 | if test $rc -eq 0; then | |
28910 | export=1 | |
28911 | break; | |
28912 | fi | |
28913 | done | |
28914 | if test $export -eq 0; then : | |
28915 | rc=1 | |
28916 | else : | |
28917 | rc=0 | |
28918 | fi | |
28919 | else : | |
28920 | rc=0 | |
28921 | fi | |
28922 | ||
28923 | fi | |
28924 | if test $rc -ne 0; then : | |
28925 | ||
28926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28927 | $as_echo "no" >&6; } | |
28928 | ||
28929 | else : | |
28930 | ||
28931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28932 | $as_echo "yes" >&6; } | |
28933 | ||
28934 | $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h | |
28935 | ||
28936 | ||
28937 | fi | |
28938 | fi | |
28939 | ||
28940 | ||
28941 | ||
28942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5 | |
28943 | $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; } | |
28944 | ||
28945 | ||
28946 | cat confdefs.h - <<_ACEOF >conftest.c | |
28947 | ||
28948 | ||
1ec59ff7 | 28949 | #include <linux/bio.h> |
87d546d8 TG |
28950 | |
28951 | int | |
28952 | main (void) | |
28953 | { | |
28954 | ||
28955 | struct bio *bio __attribute__ ((unused)) = NULL; | |
28956 | ||
28957 | bio_set_op_attrs(bio, 0, 0); | |
28958 | ||
28959 | ; | |
28960 | return 0; | |
28961 | } | |
28962 | ||
28963 | _ACEOF | |
28964 | ||
28965 | ||
28966 | ||
28967 | cat - <<_ACEOF >conftest.h | |
28968 | ||
28969 | _ACEOF | |
28970 | ||
28971 | ||
28972 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28973 | echo "obj-m := conftest.o" >build/Makefile | |
28974 | modpost_flag='' | |
28975 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28976 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28977 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28978 | (eval $ac_try) 2>&5 | |
28979 | ac_status=$? | |
28980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28981 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28982 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28983 | (eval $ac_try) 2>&5 | |
28984 | ac_status=$? | |
28985 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28986 | test $ac_status = 0; }; }; then : | |
28987 | ||
28988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28989 | $as_echo "yes" >&6; } | |
28990 | ||
28991 | $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h | |
28992 | ||
28993 | ||
28994 | else | |
28995 | $as_echo "$as_me: failed program was:" >&5 | |
28996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28997 | ||
28998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28999 | $as_echo "no" >&6; } | |
29000 | ||
29001 | ||
29002 | ||
29003 | fi | |
29004 | rm -Rf build | |
29005 | ||
29006 | ||
29007 | ||
29008 | ||
29009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5 | |
29010 | $as_echo_n "checking whether generic_readlink is global... " >&6; } | |
29011 | ||
29012 | ||
29013 | cat confdefs.h - <<_ACEOF >conftest.c | |
29014 | ||
29015 | ||
29016 | #include <linux/fs.h> | |
29017 | ||
29018 | int | |
29019 | main (void) | |
29020 | { | |
29021 | ||
29022 | int i __attribute__ ((unused)); | |
29023 | ||
29024 | i = generic_readlink(NULL, NULL, 0); | |
29025 | ||
29026 | ; | |
29027 | return 0; | |
29028 | } | |
29029 | ||
29030 | _ACEOF | |
29031 | ||
29032 | ||
29033 | ||
29034 | cat - <<_ACEOF >conftest.h | |
29035 | ||
29036 | _ACEOF | |
29037 | ||
29038 | ||
29039 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29040 | echo "obj-m := conftest.o" >build/Makefile | |
29041 | modpost_flag='' | |
29042 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29043 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29044 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29045 | (eval $ac_try) 2>&5 | |
29046 | ac_status=$? | |
29047 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29048 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29049 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29050 | (eval $ac_try) 2>&5 | |
29051 | ac_status=$? | |
29052 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29053 | test $ac_status = 0; }; }; then : | |
29054 | ||
29055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29056 | $as_echo "yes" >&6; } | |
29057 | ||
29058 | $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h | |
29059 | ||
29060 | ||
29061 | else | |
29062 | $as_echo "$as_me: failed program was:" >&5 | |
29063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29064 | ||
29065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29066 | $as_echo "no" >&6; } | |
29067 | ||
29068 | ||
29069 | ||
29070 | fi | |
29071 | rm -Rf build | |
29072 | ||
29073 | ||
29074 | ||
29075 | ||
29076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5 | |
29077 | $as_echo_n "checking whether ql->discard_granularity is available... " >&6; } | |
29078 | ||
29079 | ||
29080 | cat confdefs.h - <<_ACEOF >conftest.c | |
29081 | ||
29082 | ||
29083 | #include <linux/blkdev.h> | |
29084 | ||
29085 | int | |
29086 | main (void) | |
29087 | { | |
29088 | ||
29089 | struct queue_limits ql __attribute__ ((unused)); | |
29090 | ||
29091 | ql.discard_granularity = 0; | |
29092 | ||
29093 | ; | |
29094 | return 0; | |
29095 | } | |
29096 | ||
29097 | _ACEOF | |
29098 | ||
29099 | ||
29100 | ||
29101 | cat - <<_ACEOF >conftest.h | |
29102 | ||
29103 | _ACEOF | |
29104 | ||
29105 | ||
29106 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29107 | echo "obj-m := conftest.o" >build/Makefile | |
29108 | modpost_flag='' | |
29109 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29110 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29111 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29112 | (eval $ac_try) 2>&5 | |
29113 | ac_status=$? | |
29114 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29115 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29116 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29117 | (eval $ac_try) 2>&5 | |
29118 | ac_status=$? | |
29119 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29120 | test $ac_status = 0; }; }; then : | |
29121 | ||
29122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29123 | $as_echo "yes" >&6; } | |
29124 | ||
29125 | $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h | |
29126 | ||
29127 | ||
29128 | else | |
29129 | $as_echo "$as_me: failed program was:" >&5 | |
29130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29131 | ||
29132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29133 | $as_echo "no" >&6; } | |
29134 | ||
29135 | ||
29136 | ||
29137 | fi | |
29138 | rm -Rf build | |
29139 | ||
29140 | ||
29141 | ||
29142 | ||
29143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5 | |
29144 | $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; } | |
29145 | ||
29146 | ||
29147 | cat confdefs.h - <<_ACEOF >conftest.c | |
29148 | ||
29149 | ||
29150 | #include <linux/fs.h> | |
29151 | #include <linux/xattr.h> | |
29152 | ||
29153 | const struct xattr_handler xattr_test_handler = { | |
29154 | .prefix = "test", | |
29155 | .get = NULL, | |
29156 | .set = NULL, | |
29157 | }; | |
29158 | ||
29159 | const struct xattr_handler *xattr_handlers[] = { | |
29160 | &xattr_test_handler, | |
29161 | }; | |
29162 | ||
29163 | const struct super_block sb __attribute__ ((unused)) = { | |
29164 | .s_xattr = xattr_handlers, | |
29165 | }; | |
29166 | ||
29167 | int | |
29168 | main (void) | |
29169 | { | |
29170 | ||
29171 | ||
29172 | ; | |
29173 | return 0; | |
29174 | } | |
29175 | ||
29176 | _ACEOF | |
29177 | ||
29178 | ||
29179 | ||
29180 | cat - <<_ACEOF >conftest.h | |
29181 | ||
29182 | _ACEOF | |
29183 | ||
29184 | ||
29185 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29186 | echo "obj-m := conftest.o" >build/Makefile | |
29187 | modpost_flag='' | |
29188 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29189 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29190 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29191 | (eval $ac_try) 2>&5 | |
29192 | ac_status=$? | |
29193 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29194 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29195 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29196 | (eval $ac_try) 2>&5 | |
29197 | ac_status=$? | |
29198 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29199 | test $ac_status = 0; }; }; then : | |
29200 | ||
29201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29202 | $as_echo "yes" >&6; } | |
29203 | ||
29204 | $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h | |
29205 | ||
29206 | ||
29207 | else | |
29208 | $as_echo "$as_me: failed program was:" >&5 | |
29209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29210 | ||
29211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29212 | $as_echo "no" >&6; } | |
29213 | ||
29214 | ||
29215 | ||
29216 | fi | |
29217 | rm -Rf build | |
29218 | ||
29219 | ||
29220 | ||
29221 | ||
29222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5 | |
29223 | $as_echo_n "checking whether xattr_handler has name... " >&6; } | |
29224 | ||
29225 | ||
29226 | cat confdefs.h - <<_ACEOF >conftest.c | |
29227 | ||
29228 | ||
29229 | #include <linux/xattr.h> | |
29230 | ||
29231 | static const struct xattr_handler | |
29232 | xops __attribute__ ((unused)) = { | |
29233 | .name = XATTR_NAME_POSIX_ACL_ACCESS, | |
29234 | }; | |
29235 | ||
29236 | int | |
29237 | main (void) | |
29238 | { | |
29239 | ||
29240 | ||
29241 | ; | |
29242 | return 0; | |
29243 | } | |
29244 | ||
29245 | _ACEOF | |
29246 | ||
29247 | ||
29248 | ||
29249 | cat - <<_ACEOF >conftest.h | |
29250 | ||
29251 | _ACEOF | |
29252 | ||
29253 | ||
29254 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29255 | echo "obj-m := conftest.o" >build/Makefile | |
29256 | modpost_flag='' | |
29257 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29258 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29259 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29260 | (eval $ac_try) 2>&5 | |
29261 | ac_status=$? | |
29262 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29263 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29264 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29265 | (eval $ac_try) 2>&5 | |
29266 | ac_status=$? | |
29267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29268 | test $ac_status = 0; }; }; then : | |
29269 | ||
29270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29271 | $as_echo "yes" >&6; } | |
29272 | ||
29273 | $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h | |
29274 | ||
29275 | ||
29276 | else | |
29277 | $as_echo "$as_me: failed program was:" >&5 | |
29278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29279 | ||
29280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29281 | $as_echo "no" >&6; } | |
29282 | ||
29283 | ||
29284 | ||
29285 | fi | |
29286 | rm -Rf build | |
29287 | ||
29288 | ||
29289 | ||
29290 | ||
29291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5 | |
29292 | $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; } | |
29293 | ||
29294 | ||
29295 | cat confdefs.h - <<_ACEOF >conftest.c | |
29296 | ||
29297 | ||
29298 | #include <linux/xattr.h> | |
29299 | ||
29300 | int get(const struct xattr_handler *handler, | |
29301 | struct dentry *dentry, struct inode *inode, | |
29302 | const char *name, void *buffer, size_t size) { return 0; } | |
29303 | static const struct xattr_handler | |
29304 | xops __attribute__ ((unused)) = { | |
29305 | .get = get, | |
29306 | }; | |
29307 | ||
29308 | int | |
29309 | main (void) | |
29310 | { | |
29311 | ||
29312 | ||
29313 | ; | |
29314 | return 0; | |
29315 | } | |
29316 | ||
29317 | _ACEOF | |
29318 | ||
29319 | ||
29320 | ||
29321 | cat - <<_ACEOF >conftest.h | |
29322 | ||
29323 | _ACEOF | |
29324 | ||
29325 | ||
29326 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29327 | echo "obj-m := conftest.o" >build/Makefile | |
29328 | modpost_flag='' | |
29329 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29330 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29331 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29332 | (eval $ac_try) 2>&5 | |
29333 | ac_status=$? | |
29334 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29335 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29336 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29337 | (eval $ac_try) 2>&5 | |
29338 | ac_status=$? | |
29339 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29340 | test $ac_status = 0; }; }; then : | |
29341 | ||
29342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29343 | $as_echo "yes" >&6; } | |
29344 | ||
29345 | $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h | |
29346 | ||
29347 | ||
29348 | else | |
29349 | $as_echo "$as_me: failed program was:" >&5 | |
29350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29351 | ||
29352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5 | |
29353 | $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; } | |
29354 | ||
29355 | ||
29356 | cat confdefs.h - <<_ACEOF >conftest.c | |
29357 | ||
29358 | ||
29359 | #include <linux/xattr.h> | |
29360 | ||
29361 | int get(const struct xattr_handler *handler, | |
29362 | struct dentry *dentry, const char *name, | |
29363 | void *buffer, size_t size) { return 0; } | |
29364 | static const struct xattr_handler | |
29365 | xops __attribute__ ((unused)) = { | |
29366 | .get = get, | |
29367 | }; | |
29368 | ||
29369 | int | |
29370 | main (void) | |
29371 | { | |
29372 | ||
29373 | ||
29374 | ; | |
29375 | return 0; | |
29376 | } | |
29377 | ||
29378 | _ACEOF | |
29379 | ||
29380 | ||
29381 | ||
29382 | cat - <<_ACEOF >conftest.h | |
29383 | ||
29384 | _ACEOF | |
29385 | ||
29386 | ||
29387 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29388 | echo "obj-m := conftest.o" >build/Makefile | |
29389 | modpost_flag='' | |
29390 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29391 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29392 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29393 | (eval $ac_try) 2>&5 | |
29394 | ac_status=$? | |
29395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29396 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29397 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29398 | (eval $ac_try) 2>&5 | |
29399 | ac_status=$? | |
29400 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29401 | test $ac_status = 0; }; }; then : | |
29402 | ||
29403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29404 | $as_echo "yes" >&6; } | |
29405 | ||
29406 | $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h | |
29407 | ||
29408 | ||
29409 | else | |
29410 | $as_echo "$as_me: failed program was:" >&5 | |
29411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29412 | ||
29413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29414 | $as_echo "no" >&6; } | |
29415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5 | |
29416 | $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; } | |
29417 | ||
29418 | ||
29419 | cat confdefs.h - <<_ACEOF >conftest.c | |
29420 | ||
29421 | ||
29422 | #include <linux/xattr.h> | |
29423 | ||
29424 | int get(struct dentry *dentry, const char *name, | |
29425 | void *buffer, size_t size, int handler_flags) | |
29426 | { return 0; } | |
29427 | static const struct xattr_handler | |
29428 | xops __attribute__ ((unused)) = { | |
29429 | .get = get, | |
29430 | }; | |
29431 | ||
29432 | int | |
29433 | main (void) | |
29434 | { | |
29435 | ||
29436 | ||
29437 | ; | |
29438 | return 0; | |
29439 | } | |
29440 | ||
29441 | _ACEOF | |
29442 | ||
29443 | ||
29444 | ||
29445 | cat - <<_ACEOF >conftest.h | |
29446 | ||
29447 | _ACEOF | |
29448 | ||
29449 | ||
29450 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29451 | echo "obj-m := conftest.o" >build/Makefile | |
29452 | modpost_flag='' | |
29453 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29454 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29460 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29461 | (eval $ac_try) 2>&5 | |
29462 | ac_status=$? | |
29463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29464 | test $ac_status = 0; }; }; then : | |
29465 | ||
29466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29467 | $as_echo "yes" >&6; } | |
29468 | ||
29469 | $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h | |
29470 | ||
29471 | ||
29472 | else | |
29473 | $as_echo "$as_me: failed program was:" >&5 | |
29474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29475 | ||
29476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29477 | $as_echo "no" >&6; } | |
29478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5 | |
29479 | $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; } | |
29480 | ||
29481 | ||
29482 | cat confdefs.h - <<_ACEOF >conftest.c | |
29483 | ||
29484 | ||
29485 | #include <linux/xattr.h> | |
29486 | ||
29487 | int get(struct inode *ip, const char *name, | |
29488 | void *buffer, size_t size) { return 0; } | |
29489 | static const struct xattr_handler | |
29490 | xops __attribute__ ((unused)) = { | |
29491 | .get = get, | |
29492 | }; | |
29493 | ||
29494 | int | |
29495 | main (void) | |
29496 | { | |
29497 | ||
29498 | ||
29499 | ; | |
29500 | return 0; | |
29501 | } | |
29502 | ||
29503 | _ACEOF | |
29504 | ||
29505 | ||
29506 | ||
29507 | cat - <<_ACEOF >conftest.h | |
29508 | ||
29509 | _ACEOF | |
29510 | ||
29511 | ||
29512 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29513 | echo "obj-m := conftest.o" >build/Makefile | |
29514 | modpost_flag='' | |
29515 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29516 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29517 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29518 | (eval $ac_try) 2>&5 | |
29519 | ac_status=$? | |
29520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29521 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29522 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29523 | (eval $ac_try) 2>&5 | |
29524 | ac_status=$? | |
29525 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29526 | test $ac_status = 0; }; }; then : | |
29527 | ||
29528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29529 | $as_echo "yes" >&6; } | |
29530 | ||
29531 | $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h | |
29532 | ||
29533 | ||
29534 | else | |
29535 | $as_echo "$as_me: failed program was:" >&5 | |
29536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29537 | ||
29538 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
29539 | ||
29540 | ||
29541 | ||
29542 | fi | |
29543 | rm -Rf build | |
29544 | ||
29545 | ||
29546 | ||
29547 | ||
29548 | ||
29549 | fi | |
29550 | rm -Rf build | |
29551 | ||
29552 | ||
29553 | ||
29554 | ||
29555 | ||
29556 | fi | |
29557 | rm -Rf build | |
29558 | ||
29559 | ||
29560 | ||
29561 | ||
29562 | ||
29563 | fi | |
29564 | rm -Rf build | |
29565 | ||
29566 | ||
29567 | ||
29568 | ||
29569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5 | |
29570 | $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; } | |
29571 | ||
29572 | ||
29573 | cat confdefs.h - <<_ACEOF >conftest.c | |
29574 | ||
29575 | ||
29576 | #include <linux/xattr.h> | |
29577 | ||
29578 | int set(const struct xattr_handler *handler, | |
29579 | struct dentry *dentry, struct inode *inode, | |
29580 | const char *name, const void *buffer, | |
29581 | size_t size, int flags) | |
29582 | { return 0; } | |
29583 | static const struct xattr_handler | |
29584 | xops __attribute__ ((unused)) = { | |
29585 | .set = set, | |
29586 | }; | |
29587 | ||
29588 | int | |
29589 | main (void) | |
29590 | { | |
29591 | ||
29592 | ||
29593 | ; | |
29594 | return 0; | |
29595 | } | |
29596 | ||
29597 | _ACEOF | |
29598 | ||
29599 | ||
29600 | ||
29601 | cat - <<_ACEOF >conftest.h | |
29602 | ||
29603 | _ACEOF | |
29604 | ||
29605 | ||
29606 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29607 | echo "obj-m := conftest.o" >build/Makefile | |
29608 | modpost_flag='' | |
29609 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29610 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29611 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29612 | (eval $ac_try) 2>&5 | |
29613 | ac_status=$? | |
29614 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29615 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29616 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29617 | (eval $ac_try) 2>&5 | |
29618 | ac_status=$? | |
29619 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29620 | test $ac_status = 0; }; }; then : | |
29621 | ||
29622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29623 | $as_echo "yes" >&6; } | |
29624 | ||
29625 | $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h | |
29626 | ||
29627 | ||
29628 | else | |
29629 | $as_echo "$as_me: failed program was:" >&5 | |
29630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29631 | ||
29632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5 | |
29633 | $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; } | |
29634 | ||
29635 | ||
29636 | cat confdefs.h - <<_ACEOF >conftest.c | |
29637 | ||
29638 | ||
29639 | #include <linux/xattr.h> | |
29640 | ||
29641 | int set(const struct xattr_handler *handler, | |
29642 | struct dentry *dentry, const char *name, | |
29643 | const void *buffer, size_t size, int flags) | |
29644 | { return 0; } | |
29645 | static const struct xattr_handler | |
29646 | xops __attribute__ ((unused)) = { | |
29647 | .set = set, | |
29648 | }; | |
29649 | ||
29650 | int | |
29651 | main (void) | |
29652 | { | |
29653 | ||
29654 | ||
29655 | ; | |
29656 | return 0; | |
29657 | } | |
29658 | ||
29659 | _ACEOF | |
29660 | ||
29661 | ||
29662 | ||
29663 | cat - <<_ACEOF >conftest.h | |
29664 | ||
29665 | _ACEOF | |
29666 | ||
29667 | ||
29668 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29669 | echo "obj-m := conftest.o" >build/Makefile | |
29670 | modpost_flag='' | |
29671 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29672 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29673 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29674 | (eval $ac_try) 2>&5 | |
29675 | ac_status=$? | |
29676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29677 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29678 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29679 | (eval $ac_try) 2>&5 | |
29680 | ac_status=$? | |
29681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29682 | test $ac_status = 0; }; }; then : | |
29683 | ||
29684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29685 | $as_echo "yes" >&6; } | |
29686 | ||
29687 | $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h | |
29688 | ||
29689 | ||
29690 | else | |
29691 | $as_echo "$as_me: failed program was:" >&5 | |
29692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29693 | ||
29694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29695 | $as_echo "no" >&6; } | |
29696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5 | |
29697 | $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; } | |
29698 | ||
29699 | ||
29700 | cat confdefs.h - <<_ACEOF >conftest.c | |
29701 | ||
29702 | ||
29703 | #include <linux/xattr.h> | |
29704 | ||
29705 | int set(struct dentry *dentry, const char *name, | |
29706 | const void *buffer, size_t size, int flags, | |
29707 | int handler_flags) { return 0; } | |
29708 | static const struct xattr_handler | |
29709 | xops __attribute__ ((unused)) = { | |
29710 | .set = set, | |
29711 | }; | |
29712 | ||
29713 | int | |
29714 | main (void) | |
29715 | { | |
29716 | ||
29717 | ||
29718 | ; | |
29719 | return 0; | |
29720 | } | |
29721 | ||
29722 | _ACEOF | |
29723 | ||
29724 | ||
29725 | ||
29726 | cat - <<_ACEOF >conftest.h | |
29727 | ||
29728 | _ACEOF | |
29729 | ||
29730 | ||
29731 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29732 | echo "obj-m := conftest.o" >build/Makefile | |
29733 | modpost_flag='' | |
29734 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29735 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29736 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29737 | (eval $ac_try) 2>&5 | |
29738 | ac_status=$? | |
29739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29740 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29741 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29742 | (eval $ac_try) 2>&5 | |
29743 | ac_status=$? | |
29744 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29745 | test $ac_status = 0; }; }; then : | |
29746 | ||
29747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29748 | $as_echo "yes" >&6; } | |
29749 | ||
29750 | $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h | |
29751 | ||
29752 | ||
29753 | else | |
29754 | $as_echo "$as_me: failed program was:" >&5 | |
29755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29756 | ||
29757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29758 | $as_echo "no" >&6; } | |
29759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5 | |
29760 | $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; } | |
29761 | ||
29762 | ||
29763 | cat confdefs.h - <<_ACEOF >conftest.c | |
29764 | ||
29765 | ||
29766 | #include <linux/xattr.h> | |
29767 | ||
29768 | int set(struct inode *ip, const char *name, | |
29769 | const void *buffer, size_t size, int flags) | |
29770 | { return 0; } | |
29771 | static const struct xattr_handler | |
29772 | xops __attribute__ ((unused)) = { | |
29773 | .set = set, | |
29774 | }; | |
29775 | ||
29776 | int | |
29777 | main (void) | |
29778 | { | |
29779 | ||
29780 | ||
29781 | ; | |
29782 | return 0; | |
29783 | } | |
29784 | ||
29785 | _ACEOF | |
29786 | ||
29787 | ||
29788 | ||
29789 | cat - <<_ACEOF >conftest.h | |
29790 | ||
29791 | _ACEOF | |
29792 | ||
29793 | ||
29794 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29795 | echo "obj-m := conftest.o" >build/Makefile | |
29796 | modpost_flag='' | |
29797 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29798 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29799 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29800 | (eval $ac_try) 2>&5 | |
29801 | ac_status=$? | |
29802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29803 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29804 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29805 | (eval $ac_try) 2>&5 | |
29806 | ac_status=$? | |
29807 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29808 | test $ac_status = 0; }; }; then : | |
29809 | ||
29810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29811 | $as_echo "yes" >&6; } | |
29812 | ||
29813 | $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h | |
29814 | ||
29815 | ||
29816 | else | |
29817 | $as_echo "$as_me: failed program was:" >&5 | |
29818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29819 | ||
29820 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
29821 | ||
29822 | ||
29823 | ||
29824 | fi | |
29825 | rm -Rf build | |
29826 | ||
29827 | ||
29828 | ||
29829 | ||
29830 | ||
29831 | fi | |
29832 | rm -Rf build | |
29833 | ||
29834 | ||
29835 | ||
29836 | ||
29837 | ||
29838 | fi | |
29839 | rm -Rf build | |
29840 | ||
29841 | ||
29842 | ||
29843 | ||
29844 | ||
29845 | fi | |
29846 | rm -Rf build | |
29847 | ||
29848 | ||
29849 | ||
29850 | ||
29851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5 | |
29852 | $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; } | |
29853 | ||
29854 | ||
29855 | cat confdefs.h - <<_ACEOF >conftest.c | |
29856 | ||
29857 | ||
29858 | #include <linux/xattr.h> | |
29859 | ||
29860 | bool list(struct dentry *dentry) { return 0; } | |
29861 | static const struct xattr_handler | |
29862 | xops __attribute__ ((unused)) = { | |
29863 | .list = list, | |
29864 | }; | |
29865 | ||
29866 | int | |
29867 | main (void) | |
29868 | { | |
29869 | ||
29870 | ||
29871 | ; | |
29872 | return 0; | |
29873 | } | |
29874 | ||
29875 | _ACEOF | |
29876 | ||
29877 | ||
29878 | ||
29879 | cat - <<_ACEOF >conftest.h | |
29880 | ||
29881 | _ACEOF | |
29882 | ||
29883 | ||
29884 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29885 | echo "obj-m := conftest.o" >build/Makefile | |
29886 | modpost_flag='' | |
29887 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29888 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29889 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29890 | (eval $ac_try) 2>&5 | |
29891 | ac_status=$? | |
29892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29893 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29894 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29895 | (eval $ac_try) 2>&5 | |
29896 | ac_status=$? | |
29897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29898 | test $ac_status = 0; }; }; then : | |
29899 | ||
29900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29901 | $as_echo "yes" >&6; } | |
29902 | ||
29903 | $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h | |
29904 | ||
29905 | ||
29906 | else | |
29907 | $as_echo "$as_me: failed program was:" >&5 | |
29908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29909 | ||
29910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29911 | $as_echo "no" >&6; } | |
29912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5 | |
29913 | $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; } | |
29914 | ||
29915 | ||
29916 | cat confdefs.h - <<_ACEOF >conftest.c | |
29917 | ||
29918 | ||
29919 | #include <linux/xattr.h> | |
29920 | ||
29921 | size_t list(const struct xattr_handler *handler, | |
29922 | struct dentry *dentry, char *list, size_t list_size, | |
29923 | const char *name, size_t name_len) { return 0; } | |
29924 | static const struct xattr_handler | |
29925 | xops __attribute__ ((unused)) = { | |
29926 | .list = list, | |
29927 | }; | |
29928 | ||
29929 | int | |
29930 | main (void) | |
29931 | { | |
29932 | ||
29933 | ||
29934 | ; | |
29935 | return 0; | |
29936 | } | |
29937 | ||
29938 | _ACEOF | |
29939 | ||
29940 | ||
29941 | ||
29942 | cat - <<_ACEOF >conftest.h | |
29943 | ||
29944 | _ACEOF | |
29945 | ||
29946 | ||
29947 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29948 | echo "obj-m := conftest.o" >build/Makefile | |
29949 | modpost_flag='' | |
29950 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29951 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29952 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29953 | (eval $ac_try) 2>&5 | |
29954 | ac_status=$? | |
29955 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29956 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29957 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29958 | (eval $ac_try) 2>&5 | |
29959 | ac_status=$? | |
29960 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29961 | test $ac_status = 0; }; }; then : | |
29962 | ||
29963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29964 | $as_echo "yes" >&6; } | |
29965 | ||
29966 | $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h | |
29967 | ||
29968 | ||
29969 | else | |
29970 | $as_echo "$as_me: failed program was:" >&5 | |
29971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29972 | ||
29973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29974 | $as_echo "no" >&6; } | |
29975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5 | |
29976 | $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; } | |
29977 | ||
29978 | ||
29979 | cat confdefs.h - <<_ACEOF >conftest.c | |
29980 | ||
29981 | ||
29982 | #include <linux/xattr.h> | |
29983 | ||
29984 | size_t list(struct dentry *dentry, | |
29985 | char *list, size_t list_size, | |
29986 | const char *name, size_t name_len, | |
29987 | int handler_flags) { return 0; } | |
29988 | static const struct xattr_handler | |
29989 | xops __attribute__ ((unused)) = { | |
29990 | .list = list, | |
29991 | }; | |
29992 | ||
29993 | int | |
29994 | main (void) | |
29995 | { | |
29996 | ||
29997 | ||
29998 | ; | |
29999 | return 0; | |
30000 | } | |
30001 | ||
30002 | _ACEOF | |
30003 | ||
30004 | ||
30005 | ||
30006 | cat - <<_ACEOF >conftest.h | |
30007 | ||
30008 | _ACEOF | |
30009 | ||
30010 | ||
30011 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30012 | echo "obj-m := conftest.o" >build/Makefile | |
30013 | modpost_flag='' | |
30014 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30015 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30016 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30017 | (eval $ac_try) 2>&5 | |
30018 | ac_status=$? | |
30019 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30020 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30021 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30022 | (eval $ac_try) 2>&5 | |
30023 | ac_status=$? | |
30024 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30025 | test $ac_status = 0; }; }; then : | |
30026 | ||
30027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30028 | $as_echo "yes" >&6; } | |
30029 | ||
30030 | $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h | |
30031 | ||
30032 | ||
30033 | else | |
30034 | $as_echo "$as_me: failed program was:" >&5 | |
30035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30036 | ||
30037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30038 | $as_echo "no" >&6; } | |
30039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5 | |
30040 | $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; } | |
30041 | ||
30042 | ||
30043 | cat confdefs.h - <<_ACEOF >conftest.c | |
30044 | ||
30045 | ||
30046 | #include <linux/xattr.h> | |
30047 | ||
30048 | size_t list(struct inode *ip, char *lst, | |
30049 | size_t list_size, const char *name, | |
30050 | size_t name_len) { return 0; } | |
30051 | static const struct xattr_handler | |
30052 | xops __attribute__ ((unused)) = { | |
30053 | .list = list, | |
30054 | }; | |
30055 | ||
30056 | int | |
30057 | main (void) | |
30058 | { | |
30059 | ||
30060 | ||
30061 | ; | |
30062 | return 0; | |
30063 | } | |
30064 | ||
30065 | _ACEOF | |
30066 | ||
30067 | ||
30068 | ||
30069 | cat - <<_ACEOF >conftest.h | |
30070 | ||
30071 | _ACEOF | |
30072 | ||
30073 | ||
30074 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30075 | echo "obj-m := conftest.o" >build/Makefile | |
30076 | modpost_flag='' | |
30077 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30078 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30079 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30080 | (eval $ac_try) 2>&5 | |
30081 | ac_status=$? | |
30082 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30083 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30084 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30085 | (eval $ac_try) 2>&5 | |
30086 | ac_status=$? | |
30087 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30088 | test $ac_status = 0; }; }; then : | |
30089 | ||
30090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30091 | $as_echo "yes" >&6; } | |
30092 | ||
30093 | $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h | |
30094 | ||
30095 | ||
30096 | else | |
30097 | $as_echo "$as_me: failed program was:" >&5 | |
30098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30099 | ||
30100 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
30101 | ||
30102 | ||
30103 | ||
30104 | fi | |
30105 | rm -Rf build | |
30106 | ||
30107 | ||
30108 | ||
30109 | ||
30110 | ||
30111 | fi | |
30112 | rm -Rf build | |
30113 | ||
30114 | ||
30115 | ||
30116 | ||
30117 | ||
30118 | fi | |
30119 | rm -Rf build | |
30120 | ||
30121 | ||
30122 | ||
30123 | ||
30124 | ||
30125 | fi | |
30126 | rm -Rf build | |
30127 | ||
30128 | ||
30129 | ||
30130 | ||
30131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5 | |
30132 | $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; } | |
30133 | ||
30134 | ||
30135 | cat confdefs.h - <<_ACEOF >conftest.c | |
30136 | ||
30137 | ||
30138 | #include <linux/fs.h> | |
30139 | ||
30140 | int | |
30141 | main (void) | |
30142 | { | |
30143 | ||
30144 | struct inode *ip = NULL; | |
30145 | (void) inode_owner_or_capable(ip); | |
30146 | ||
30147 | ; | |
30148 | return 0; | |
30149 | } | |
30150 | ||
30151 | _ACEOF | |
30152 | ||
30153 | ||
30154 | ||
30155 | cat - <<_ACEOF >conftest.h | |
30156 | ||
30157 | _ACEOF | |
30158 | ||
30159 | ||
30160 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30161 | echo "obj-m := conftest.o" >build/Makefile | |
30162 | modpost_flag='' | |
30163 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30164 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30165 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30166 | (eval $ac_try) 2>&5 | |
30167 | ac_status=$? | |
30168 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30169 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30170 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30171 | (eval $ac_try) 2>&5 | |
30172 | ac_status=$? | |
30173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30174 | test $ac_status = 0; }; }; then : | |
30175 | ||
30176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30177 | $as_echo "yes" >&6; } | |
30178 | ||
30179 | $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h | |
30180 | ||
30181 | ||
30182 | else | |
30183 | $as_echo "$as_me: failed program was:" >&5 | |
30184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30185 | ||
30186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30187 | $as_echo "no" >&6; } | |
30188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5 | |
30189 | $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; } | |
30190 | ||
30191 | ||
30192 | cat confdefs.h - <<_ACEOF >conftest.c | |
30193 | ||
30194 | ||
30195 | #include <linux/fs.h> | |
30196 | #include <linux/sched.h> | |
30197 | ||
30198 | int | |
30199 | main (void) | |
30200 | { | |
30201 | ||
30202 | struct inode *ip = NULL; | |
30203 | (void) is_owner_or_cap(ip); | |
30204 | ||
30205 | ; | |
30206 | return 0; | |
30207 | } | |
30208 | ||
30209 | _ACEOF | |
30210 | ||
30211 | ||
30212 | ||
30213 | cat - <<_ACEOF >conftest.h | |
30214 | ||
30215 | _ACEOF | |
30216 | ||
30217 | ||
30218 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30219 | echo "obj-m := conftest.o" >build/Makefile | |
30220 | modpost_flag='' | |
30221 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30222 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30228 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30229 | (eval $ac_try) 2>&5 | |
30230 | ac_status=$? | |
30231 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30232 | test $ac_status = 0; }; }; then : | |
30233 | ||
30234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30235 | $as_echo "yes" >&6; } | |
30236 | ||
30237 | $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h | |
30238 | ||
30239 | ||
30240 | else | |
30241 | $as_echo "$as_me: failed program was:" >&5 | |
30242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30243 | ||
30244 | as_fn_error $? "no - Please file a bug report at | |
30245 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
30246 | ||
30247 | ||
30248 | ||
30249 | fi | |
30250 | rm -Rf build | |
30251 | ||
30252 | ||
30253 | ||
30254 | ||
30255 | ||
30256 | fi | |
30257 | rm -Rf build | |
30258 | ||
30259 | ||
30260 | ||
30261 | ||
30262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5 | |
30263 | $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; } | |
30264 | ||
30265 | ||
30266 | cat confdefs.h - <<_ACEOF >conftest.c | |
30267 | ||
30268 | ||
30269 | #include <linux/cred.h> | |
30270 | #include <linux/fs.h> | |
30271 | #include <linux/posix_acl_xattr.h> | |
30272 | ||
30273 | int | |
30274 | main (void) | |
30275 | { | |
30276 | ||
30277 | posix_acl_from_xattr(&init_user_ns, NULL, 0); | |
30278 | ||
30279 | ; | |
30280 | return 0; | |
30281 | } | |
30282 | ||
30283 | _ACEOF | |
30284 | ||
30285 | ||
30286 | ||
30287 | cat - <<_ACEOF >conftest.h | |
30288 | ||
30289 | _ACEOF | |
30290 | ||
30291 | ||
30292 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30293 | echo "obj-m := conftest.o" >build/Makefile | |
30294 | modpost_flag='' | |
30295 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30296 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30297 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30298 | (eval $ac_try) 2>&5 | |
30299 | ac_status=$? | |
30300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30301 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30302 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30303 | (eval $ac_try) 2>&5 | |
30304 | ac_status=$? | |
30305 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30306 | test $ac_status = 0; }; }; then : | |
30307 | ||
30308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30309 | $as_echo "yes" >&6; } | |
30310 | ||
30311 | $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h | |
30312 | ||
30313 | ||
30314 | else | |
30315 | $as_echo "$as_me: failed program was:" >&5 | |
30316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30317 | ||
30318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30319 | $as_echo "no" >&6; } | |
30320 | ||
30321 | ||
30322 | ||
30323 | fi | |
30324 | rm -Rf build | |
30325 | ||
30326 | ||
30327 | ||
30328 | ||
30329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5 | |
30330 | $as_echo_n "checking whether posix_acl_release() is available... " >&6; } | |
30331 | ||
30332 | ||
30333 | cat confdefs.h - <<_ACEOF >conftest.c | |
30334 | ||
30335 | ||
30336 | #include <linux/cred.h> | |
30337 | #include <linux/fs.h> | |
30338 | #include <linux/posix_acl.h> | |
30339 | ||
30340 | int | |
30341 | main (void) | |
30342 | { | |
30343 | ||
30344 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
30345 | posix_acl_release(tmp); | |
30346 | ||
30347 | ; | |
30348 | return 0; | |
30349 | } | |
30350 | ||
30351 | _ACEOF | |
30352 | ||
30353 | ||
30354 | ||
30355 | cat - <<_ACEOF >conftest.h | |
30356 | ||
30357 | _ACEOF | |
30358 | ||
30359 | ||
30360 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30361 | echo "obj-m := conftest.o" >build/Makefile | |
30362 | modpost_flag='' | |
30363 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30364 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30365 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30366 | (eval $ac_try) 2>&5 | |
30367 | ac_status=$? | |
30368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30369 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30370 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30371 | (eval $ac_try) 2>&5 | |
30372 | ac_status=$? | |
30373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30374 | test $ac_status = 0; }; }; then : | |
30375 | ||
30376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30377 | $as_echo "yes" >&6; } | |
30378 | ||
30379 | $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h | |
30380 | ||
30381 | ||
30382 | else | |
30383 | $as_echo "$as_me: failed program was:" >&5 | |
30384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30385 | ||
30386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30387 | $as_echo "no" >&6; } | |
30388 | ||
30389 | ||
30390 | ||
30391 | fi | |
30392 | rm -Rf build | |
30393 | ||
30394 | ||
30395 | ||
30396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5 | |
30397 | $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; } | |
30398 | ||
30399 | ||
30400 | cat confdefs.h - <<_ACEOF >conftest.c | |
30401 | ||
30402 | ||
30403 | #include <linux/cred.h> | |
30404 | #include <linux/fs.h> | |
30405 | #include <linux/posix_acl.h> | |
30406 | ||
30407 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
30408 | ||
30409 | int | |
30410 | main (void) | |
30411 | { | |
30412 | ||
30413 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
30414 | posix_acl_release(tmp); | |
30415 | ||
30416 | ; | |
30417 | return 0; | |
30418 | } | |
30419 | ||
30420 | _ACEOF | |
30421 | ||
30422 | ||
30423 | ||
30424 | cat - <<_ACEOF >conftest.h | |
30425 | ||
30426 | _ACEOF | |
30427 | ||
30428 | ||
30429 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30430 | echo "obj-m := conftest.o" >build/Makefile | |
30431 | modpost_flag='' | |
30432 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30433 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30434 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30435 | (eval $ac_try) 2>&5 | |
30436 | ac_status=$? | |
30437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30438 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30439 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30440 | (eval $ac_try) 2>&5 | |
30441 | ac_status=$? | |
30442 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30443 | test $ac_status = 0; }; }; then : | |
30444 | ||
30445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30446 | $as_echo "no" >&6; } | |
30447 | ||
30448 | else | |
30449 | $as_echo "$as_me: failed program was:" >&5 | |
30450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30451 | ||
30452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30453 | $as_echo "yes" >&6; } | |
30454 | ||
30455 | $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h | |
30456 | ||
30457 | ||
30458 | ||
30459 | ||
30460 | fi | |
30461 | rm -Rf build | |
30462 | ||
30463 | ||
30464 | ||
30465 | ||
30466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5 | |
30467 | $as_echo_n "checking whether set_cached_acl() is usable... " >&6; } | |
30468 | ||
30469 | ||
30470 | cat confdefs.h - <<_ACEOF >conftest.c | |
30471 | ||
30472 | ||
30473 | #include <linux/module.h> | |
30474 | #include <linux/cred.h> | |
30475 | #include <linux/fs.h> | |
30476 | #include <linux/posix_acl.h> | |
30477 | ||
30478 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
30479 | ||
30480 | int | |
30481 | main (void) | |
30482 | { | |
30483 | ||
30484 | struct inode *ip = NULL; | |
30485 | struct posix_acl *acl = posix_acl_alloc(1, 0); | |
30486 | set_cached_acl(ip, ACL_TYPE_ACCESS, acl); | |
30487 | forget_cached_acl(ip, ACL_TYPE_ACCESS); | |
30488 | ||
30489 | ; | |
30490 | return 0; | |
30491 | } | |
30492 | ||
30493 | _ACEOF | |
30494 | ||
30495 | ||
30496 | ||
30497 | cat - <<_ACEOF >conftest.h | |
30498 | ||
30499 | _ACEOF | |
30500 | ||
30501 | ||
30502 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30503 | echo "obj-m := conftest.o" >build/Makefile | |
30504 | modpost_flag='' | |
30505 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30506 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30507 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30508 | (eval $ac_try) 2>&5 | |
30509 | ac_status=$? | |
30510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30511 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30512 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30513 | (eval $ac_try) 2>&5 | |
30514 | ac_status=$? | |
30515 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30516 | test $ac_status = 0; }; }; then : | |
30517 | ||
30518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30519 | $as_echo "yes" >&6; } | |
30520 | ||
30521 | $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h | |
30522 | ||
30523 | ||
30524 | else | |
30525 | $as_echo "$as_me: failed program was:" >&5 | |
30526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30527 | ||
30528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30529 | $as_echo "no" >&6; } | |
30530 | ||
30531 | ||
30532 | ||
30533 | fi | |
30534 | rm -Rf build | |
30535 | ||
30536 | ||
30537 | ||
30538 | ||
30539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5 | |
30540 | $as_echo_n "checking whether posix_acl_chmod exists... " >&6; } | |
30541 | ||
30542 | ||
30543 | cat confdefs.h - <<_ACEOF >conftest.c | |
30544 | ||
30545 | ||
30546 | #include <linux/fs.h> | |
30547 | #include <linux/posix_acl.h> | |
30548 | ||
30549 | int | |
30550 | main (void) | |
30551 | { | |
30552 | ||
30553 | posix_acl_chmod(NULL, 0, 0) | |
30554 | ||
30555 | ; | |
30556 | return 0; | |
30557 | } | |
30558 | ||
30559 | _ACEOF | |
30560 | ||
30561 | ||
30562 | ||
30563 | cat - <<_ACEOF >conftest.h | |
30564 | ||
30565 | _ACEOF | |
30566 | ||
30567 | ||
30568 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30569 | echo "obj-m := conftest.o" >build/Makefile | |
30570 | modpost_flag='' | |
30571 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30572 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30578 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30579 | (eval $ac_try) 2>&5 | |
30580 | ac_status=$? | |
30581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30582 | test $ac_status = 0; }; }; then : | |
30583 | ||
30584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30585 | $as_echo "yes" >&6; } | |
30586 | ||
30587 | $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h | |
30588 | ||
30589 | ||
30590 | else | |
30591 | $as_echo "$as_me: failed program was:" >&5 | |
30592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30593 | ||
30594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30595 | $as_echo "no" >&6; } | |
30596 | ||
30597 | ||
30598 | ||
30599 | fi | |
30600 | rm -Rf build | |
30601 | ||
30602 | ||
30603 | ||
30604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5 | |
30605 | $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; } | |
30606 | ||
30607 | ||
30608 | cat confdefs.h - <<_ACEOF >conftest.c | |
30609 | ||
30610 | ||
30611 | #include <linux/fs.h> | |
30612 | #include <linux/posix_acl.h> | |
30613 | ||
30614 | int | |
30615 | main (void) | |
30616 | { | |
30617 | ||
30618 | __posix_acl_chmod(NULL, 0, 0) | |
30619 | ||
30620 | ; | |
30621 | return 0; | |
30622 | } | |
30623 | ||
30624 | _ACEOF | |
30625 | ||
30626 | ||
30627 | ||
30628 | cat - <<_ACEOF >conftest.h | |
30629 | ||
30630 | _ACEOF | |
30631 | ||
30632 | ||
30633 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30634 | echo "obj-m := conftest.o" >build/Makefile | |
30635 | modpost_flag='' | |
30636 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30637 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30643 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30644 | (eval $ac_try) 2>&5 | |
30645 | ac_status=$? | |
30646 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30647 | test $ac_status = 0; }; }; then : | |
30648 | ||
30649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30650 | $as_echo "yes" >&6; } | |
30651 | ||
30652 | $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h | |
30653 | ||
30654 | ||
30655 | else | |
30656 | $as_echo "$as_me: failed program was:" >&5 | |
30657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30658 | ||
30659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30660 | $as_echo "no" >&6; } | |
30661 | ||
30662 | ||
30663 | ||
30664 | fi | |
30665 | rm -Rf build | |
30666 | ||
30667 | ||
30668 | ||
30669 | ||
30670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5 | |
30671 | $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; } | |
30672 | ||
30673 | ||
30674 | cat confdefs.h - <<_ACEOF >conftest.c | |
30675 | ||
30676 | ||
30677 | #include <linux/fs.h> | |
30678 | #include <linux/posix_acl.h> | |
30679 | ||
30680 | int | |
30681 | main (void) | |
30682 | { | |
30683 | ||
30684 | umode_t tmp; | |
30685 | posix_acl_equiv_mode(NULL,&tmp); | |
30686 | ||
30687 | ; | |
30688 | return 0; | |
30689 | } | |
30690 | ||
30691 | _ACEOF | |
30692 | ||
30693 | ||
30694 | ||
30695 | cat - <<_ACEOF >conftest.h | |
30696 | ||
30697 | _ACEOF | |
30698 | ||
30699 | ||
30700 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30701 | echo "obj-m := conftest.o" >build/Makefile | |
30702 | modpost_flag='' | |
30703 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30704 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30705 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30706 | (eval $ac_try) 2>&5 | |
30707 | ac_status=$? | |
30708 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30709 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30710 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30711 | (eval $ac_try) 2>&5 | |
30712 | ac_status=$? | |
30713 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30714 | test $ac_status = 0; }; }; then : | |
30715 | ||
30716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30717 | $as_echo "yes" >&6; } | |
30718 | ||
30719 | $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h | |
30720 | ||
30721 | ||
30722 | else | |
30723 | $as_echo "$as_me: failed program was:" >&5 | |
30724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30725 | ||
30726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30727 | $as_echo "no" >&6; } | |
30728 | ||
30729 | ||
30730 | ||
30731 | fi | |
30732 | rm -Rf build | |
30733 | ||
30734 | ||
30735 | ||
30736 | ||
30737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5 | |
30738 | $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; } | |
30739 | ||
30740 | ||
30741 | cat confdefs.h - <<_ACEOF >conftest.c | |
30742 | ||
30743 | ||
30744 | #include <linux/fs.h> | |
30745 | #include <linux/posix_acl.h> | |
30746 | ||
30747 | int | |
30748 | main (void) | |
30749 | { | |
30750 | ||
30751 | struct user_namespace *user_ns = NULL; | |
30752 | const struct posix_acl *acl = NULL; | |
30753 | int error; | |
30754 | ||
30755 | error = posix_acl_valid(user_ns, acl); | |
30756 | ||
30757 | ; | |
30758 | return 0; | |
30759 | } | |
30760 | ||
30761 | _ACEOF | |
30762 | ||
30763 | ||
30764 | ||
30765 | cat - <<_ACEOF >conftest.h | |
30766 | ||
30767 | _ACEOF | |
30768 | ||
30769 | ||
30770 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30771 | echo "obj-m := conftest.o" >build/Makefile | |
30772 | modpost_flag='' | |
30773 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30774 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30775 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30776 | (eval $ac_try) 2>&5 | |
30777 | ac_status=$? | |
30778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30779 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30780 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30781 | (eval $ac_try) 2>&5 | |
30782 | ac_status=$? | |
30783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30784 | test $ac_status = 0; }; }; then : | |
30785 | ||
30786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30787 | $as_echo "yes" >&6; } | |
30788 | ||
30789 | $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h | |
30790 | ||
30791 | ||
30792 | else | |
30793 | $as_echo "$as_me: failed program was:" >&5 | |
30794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30795 | ||
30796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30797 | $as_echo "no" >&6; } | |
30798 | ||
30799 | ||
30800 | ||
30801 | fi | |
30802 | rm -Rf build | |
30803 | ||
30804 | ||
30805 | ||
30806 | ||
30807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5 | |
30808 | $as_echo_n "checking whether iops->permission() exists... " >&6; } | |
30809 | ||
30810 | ||
30811 | cat confdefs.h - <<_ACEOF >conftest.c | |
30812 | ||
30813 | ||
30814 | #include <linux/fs.h> | |
30815 | ||
30816 | int permission_fn(struct inode *inode, int mask) { return 0; } | |
30817 | ||
30818 | static const struct inode_operations | |
30819 | iops __attribute__ ((unused)) = { | |
30820 | .permission = permission_fn, | |
30821 | }; | |
30822 | ||
30823 | int | |
30824 | main (void) | |
30825 | { | |
30826 | ||
30827 | ||
30828 | ; | |
30829 | return 0; | |
30830 | } | |
30831 | ||
30832 | _ACEOF | |
30833 | ||
30834 | ||
30835 | ||
30836 | cat - <<_ACEOF >conftest.h | |
30837 | ||
30838 | _ACEOF | |
30839 | ||
30840 | ||
30841 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30842 | echo "obj-m := conftest.o" >build/Makefile | |
30843 | modpost_flag='' | |
30844 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30845 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30846 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30847 | (eval $ac_try) 2>&5 | |
30848 | ac_status=$? | |
30849 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30850 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30851 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30852 | (eval $ac_try) 2>&5 | |
30853 | ac_status=$? | |
30854 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30855 | test $ac_status = 0; }; }; then : | |
30856 | ||
30857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30858 | $as_echo "yes" >&6; } | |
30859 | ||
30860 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
30861 | ||
30862 | ||
30863 | else | |
30864 | $as_echo "$as_me: failed program was:" >&5 | |
30865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30866 | ||
30867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30868 | $as_echo "no" >&6; } | |
30869 | ||
30870 | ||
30871 | ||
30872 | fi | |
30873 | rm -Rf build | |
30874 | ||
30875 | ||
30876 | ||
30877 | ||
30878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5 | |
30879 | $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; } | |
30880 | ||
30881 | ||
30882 | cat confdefs.h - <<_ACEOF >conftest.c | |
30883 | ||
30884 | ||
30885 | #include <linux/fs.h> | |
30886 | ||
30887 | int permission_fn(struct inode *inode, int mask, | |
30888 | struct nameidata *nd) { return 0; } | |
30889 | ||
30890 | static const struct inode_operations | |
30891 | iops __attribute__ ((unused)) = { | |
30892 | .permission = permission_fn, | |
30893 | }; | |
30894 | ||
30895 | int | |
30896 | main (void) | |
30897 | { | |
30898 | ||
30899 | ||
30900 | ; | |
30901 | return 0; | |
30902 | } | |
30903 | ||
30904 | _ACEOF | |
30905 | ||
30906 | ||
30907 | ||
30908 | cat - <<_ACEOF >conftest.h | |
30909 | ||
30910 | _ACEOF | |
30911 | ||
30912 | ||
30913 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30914 | echo "obj-m := conftest.o" >build/Makefile | |
30915 | modpost_flag='' | |
30916 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30917 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30918 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30919 | (eval $ac_try) 2>&5 | |
30920 | ac_status=$? | |
30921 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30922 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30923 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30924 | (eval $ac_try) 2>&5 | |
30925 | ac_status=$? | |
30926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30927 | test $ac_status = 0; }; }; then : | |
30928 | ||
30929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30930 | $as_echo "yes" >&6; } | |
30931 | ||
30932 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
30933 | ||
30934 | ||
30935 | $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h | |
30936 | ||
30937 | ||
30938 | else | |
30939 | $as_echo "$as_me: failed program was:" >&5 | |
30940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30941 | ||
30942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30943 | $as_echo "no" >&6; } | |
30944 | ||
30945 | ||
30946 | ||
30947 | fi | |
30948 | rm -Rf build | |
30949 | ||
30950 | ||
30951 | ||
30952 | ||
30953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5 | |
30954 | $as_echo_n "checking whether iops->check_acl() exists... " >&6; } | |
30955 | ||
30956 | ||
30957 | cat confdefs.h - <<_ACEOF >conftest.c | |
30958 | ||
30959 | ||
30960 | #include <linux/fs.h> | |
30961 | ||
30962 | int check_acl_fn(struct inode *inode, int mask) { return 0; } | |
30963 | ||
30964 | static const struct inode_operations | |
30965 | iops __attribute__ ((unused)) = { | |
30966 | .check_acl = check_acl_fn, | |
30967 | }; | |
30968 | ||
30969 | int | |
30970 | main (void) | |
30971 | { | |
30972 | ||
30973 | ||
30974 | ; | |
30975 | return 0; | |
30976 | } | |
30977 | ||
30978 | _ACEOF | |
30979 | ||
30980 | ||
30981 | ||
30982 | cat - <<_ACEOF >conftest.h | |
30983 | ||
30984 | _ACEOF | |
30985 | ||
30986 | ||
30987 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30988 | echo "obj-m := conftest.o" >build/Makefile | |
30989 | modpost_flag='' | |
30990 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30991 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30992 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30993 | (eval $ac_try) 2>&5 | |
30994 | ac_status=$? | |
30995 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30996 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30997 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30998 | (eval $ac_try) 2>&5 | |
30999 | ac_status=$? | |
31000 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31001 | test $ac_status = 0; }; }; then : | |
31002 | ||
31003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31004 | $as_echo "yes" >&6; } | |
31005 | ||
31006 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
31007 | ||
31008 | ||
31009 | else | |
31010 | $as_echo "$as_me: failed program was:" >&5 | |
31011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31012 | ||
31013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31014 | $as_echo "no" >&6; } | |
31015 | ||
31016 | ||
31017 | ||
31018 | fi | |
31019 | rm -Rf build | |
31020 | ||
31021 | ||
31022 | ||
31023 | ||
31024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5 | |
31025 | $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; } | |
31026 | ||
31027 | ||
31028 | cat confdefs.h - <<_ACEOF >conftest.c | |
31029 | ||
31030 | ||
31031 | #include <linux/fs.h> | |
31032 | ||
31033 | int check_acl_fn(struct inode *inode, int mask, | |
31034 | unsigned int flags) { return 0; } | |
31035 | ||
31036 | static const struct inode_operations | |
31037 | iops __attribute__ ((unused)) = { | |
31038 | .check_acl = check_acl_fn, | |
31039 | }; | |
31040 | ||
31041 | int | |
31042 | main (void) | |
31043 | { | |
31044 | ||
31045 | ||
31046 | ; | |
31047 | return 0; | |
31048 | } | |
31049 | ||
31050 | _ACEOF | |
31051 | ||
31052 | ||
31053 | ||
31054 | cat - <<_ACEOF >conftest.h | |
31055 | ||
31056 | _ACEOF | |
31057 | ||
31058 | ||
31059 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31060 | echo "obj-m := conftest.o" >build/Makefile | |
31061 | modpost_flag='' | |
31062 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31063 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31064 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31065 | (eval $ac_try) 2>&5 | |
31066 | ac_status=$? | |
31067 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31068 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31069 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31070 | (eval $ac_try) 2>&5 | |
31071 | ac_status=$? | |
31072 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31073 | test $ac_status = 0; }; }; then : | |
31074 | ||
31075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31076 | $as_echo "yes" >&6; } | |
31077 | ||
31078 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
31079 | ||
31080 | ||
31081 | $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h | |
31082 | ||
31083 | ||
31084 | else | |
31085 | $as_echo "$as_me: failed program was:" >&5 | |
31086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31087 | ||
31088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31089 | $as_echo "no" >&6; } | |
31090 | ||
31091 | ||
31092 | ||
31093 | fi | |
31094 | rm -Rf build | |
31095 | ||
31096 | ||
31097 | ||
31098 | ||
31099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5 | |
31100 | $as_echo_n "checking whether iops->get_acl() exists... " >&6; } | |
31101 | ||
31102 | ||
31103 | cat confdefs.h - <<_ACEOF >conftest.c | |
31104 | ||
31105 | ||
31106 | #include <linux/fs.h> | |
31107 | ||
31108 | struct posix_acl *get_acl_fn(struct inode *inode, int type) | |
31109 | { return NULL; } | |
31110 | ||
31111 | static const struct inode_operations | |
31112 | iops __attribute__ ((unused)) = { | |
31113 | .get_acl = get_acl_fn, | |
31114 | }; | |
31115 | ||
31116 | int | |
31117 | main (void) | |
31118 | { | |
31119 | ||
31120 | ||
31121 | ; | |
31122 | return 0; | |
31123 | } | |
31124 | ||
31125 | _ACEOF | |
31126 | ||
31127 | ||
31128 | ||
31129 | cat - <<_ACEOF >conftest.h | |
31130 | ||
31131 | _ACEOF | |
31132 | ||
31133 | ||
31134 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31135 | echo "obj-m := conftest.o" >build/Makefile | |
31136 | modpost_flag='' | |
31137 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31138 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31139 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31140 | (eval $ac_try) 2>&5 | |
31141 | ac_status=$? | |
31142 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31143 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31144 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31145 | (eval $ac_try) 2>&5 | |
31146 | ac_status=$? | |
31147 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31148 | test $ac_status = 0; }; }; then : | |
31149 | ||
31150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31151 | $as_echo "yes" >&6; } | |
31152 | ||
31153 | $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h | |
31154 | ||
31155 | ||
31156 | else | |
31157 | $as_echo "$as_me: failed program was:" >&5 | |
31158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31159 | ||
31160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31161 | $as_echo "no" >&6; } | |
31162 | ||
31163 | ||
31164 | ||
31165 | fi | |
31166 | rm -Rf build | |
31167 | ||
31168 | ||
31169 | ||
31170 | ||
31171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5 | |
31172 | $as_echo_n "checking whether iops->set_acl() exists... " >&6; } | |
31173 | ||
31174 | ||
31175 | cat confdefs.h - <<_ACEOF >conftest.c | |
31176 | ||
31177 | ||
31178 | #include <linux/fs.h> | |
31179 | ||
31180 | int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type) | |
31181 | { return 0; } | |
31182 | ||
31183 | static const struct inode_operations | |
31184 | iops __attribute__ ((unused)) = { | |
31185 | .set_acl = set_acl_fn, | |
31186 | }; | |
31187 | ||
31188 | int | |
31189 | main (void) | |
31190 | { | |
31191 | ||
31192 | ||
31193 | ; | |
31194 | return 0; | |
31195 | } | |
31196 | ||
31197 | _ACEOF | |
31198 | ||
31199 | ||
31200 | ||
31201 | cat - <<_ACEOF >conftest.h | |
31202 | ||
31203 | _ACEOF | |
31204 | ||
31205 | ||
31206 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31207 | echo "obj-m := conftest.o" >build/Makefile | |
31208 | modpost_flag='' | |
31209 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31210 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31211 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31212 | (eval $ac_try) 2>&5 | |
31213 | ac_status=$? | |
31214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31215 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31216 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31217 | (eval $ac_try) 2>&5 | |
31218 | ac_status=$? | |
31219 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31220 | test $ac_status = 0; }; }; then : | |
31221 | ||
31222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31223 | $as_echo "yes" >&6; } | |
31224 | ||
31225 | $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h | |
31226 | ||
31227 | ||
31228 | else | |
31229 | $as_echo "$as_me: failed program was:" >&5 | |
31230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31231 | ||
31232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31233 | $as_echo "no" >&6; } | |
31234 | ||
31235 | ||
31236 | ||
31237 | fi | |
31238 | rm -Rf build | |
31239 | ||
31240 | ||
31241 | ||
31242 | ||
3e990ae0 CIK |
31243 | |
31244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5 | |
31245 | $as_echo_n "checking whether iops->getattr() takes a path... " >&6; } | |
31246 | ||
31247 | ||
31248 | cat confdefs.h - <<_ACEOF >conftest.c | |
31249 | ||
31250 | ||
31251 | #include <linux/fs.h> | |
31252 | ||
31253 | int test_getattr( | |
31254 | const struct path *p, struct kstat *k, | |
31255 | u32 request_mask, unsigned int query_flags) | |
31256 | { return 0; } | |
31257 | ||
31258 | static const struct inode_operations | |
31259 | iops __attribute__ ((unused)) = { | |
31260 | .getattr = test_getattr, | |
31261 | }; | |
31262 | ||
31263 | int | |
31264 | main (void) | |
31265 | { | |
31266 | ||
31267 | ||
31268 | ; | |
31269 | return 0; | |
31270 | } | |
31271 | ||
31272 | _ACEOF | |
31273 | ||
31274 | ||
31275 | ||
31276 | cat - <<_ACEOF >conftest.h | |
31277 | ||
31278 | _ACEOF | |
31279 | ||
31280 | ||
31281 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31282 | echo "obj-m := conftest.o" >build/Makefile | |
31283 | modpost_flag='' | |
31284 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31285 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31286 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31287 | (eval $ac_try) 2>&5 | |
31288 | ac_status=$? | |
31289 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31290 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31291 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31292 | (eval $ac_try) 2>&5 | |
31293 | ac_status=$? | |
31294 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31295 | test $ac_status = 0; }; }; then : | |
31296 | ||
31297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31298 | $as_echo "yes" >&6; } | |
31299 | ||
31300 | $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h | |
31301 | ||
31302 | ||
31303 | else | |
31304 | $as_echo "$as_me: failed program was:" >&5 | |
31305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31306 | ||
31307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31308 | $as_echo "no" >&6; } | |
31309 | ||
31310 | ||
31311 | ||
31312 | fi | |
31313 | rm -Rf build | |
31314 | ||
31315 | ||
31316 | ||
31317 | ||
31318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5 | |
31319 | $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; } | |
31320 | ||
31321 | ||
31322 | cat confdefs.h - <<_ACEOF >conftest.c | |
31323 | ||
31324 | ||
31325 | #include <linux/fs.h> | |
31326 | ||
31327 | int test_getattr( | |
31328 | struct vfsmount *mnt, struct dentry *d, | |
31329 | struct kstat *k) | |
31330 | { return 0; } | |
31331 | ||
31332 | static const struct inode_operations | |
31333 | iops __attribute__ ((unused)) = { | |
31334 | .getattr = test_getattr, | |
31335 | }; | |
31336 | ||
31337 | int | |
31338 | main (void) | |
31339 | { | |
31340 | ||
31341 | ||
31342 | ; | |
31343 | return 0; | |
31344 | } | |
31345 | ||
31346 | _ACEOF | |
31347 | ||
31348 | ||
31349 | ||
31350 | cat - <<_ACEOF >conftest.h | |
31351 | ||
31352 | _ACEOF | |
31353 | ||
31354 | ||
31355 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31356 | echo "obj-m := conftest.o" >build/Makefile | |
31357 | modpost_flag='' | |
31358 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31359 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31360 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31361 | (eval $ac_try) 2>&5 | |
31362 | ac_status=$? | |
31363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31364 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31365 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31366 | (eval $ac_try) 2>&5 | |
31367 | ac_status=$? | |
31368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31369 | test $ac_status = 0; }; }; then : | |
31370 | ||
31371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31372 | $as_echo "yes" >&6; } | |
31373 | ||
31374 | $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h | |
31375 | ||
31376 | ||
31377 | else | |
31378 | $as_echo "$as_me: failed program was:" >&5 | |
31379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31380 | ||
31381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31382 | $as_echo "no" >&6; } | |
31383 | ||
31384 | ||
31385 | ||
31386 | fi | |
31387 | rm -Rf build | |
31388 | ||
31389 | ||
31390 | ||
31391 | ||
31392 | ||
87d546d8 TG |
31393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5 |
31394 | $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; } | |
31395 | ||
31396 | ||
31397 | cat confdefs.h - <<_ACEOF >conftest.c | |
31398 | ||
31399 | ||
31400 | #include <linux/fs.h> | |
31401 | ||
31402 | int | |
31403 | main (void) | |
31404 | { | |
31405 | ||
31406 | void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL); | |
31407 | ||
31408 | ; | |
31409 | return 0; | |
31410 | } | |
31411 | ||
31412 | _ACEOF | |
31413 | ||
31414 | ||
31415 | ||
31416 | cat - <<_ACEOF >conftest.h | |
31417 | ||
31418 | _ACEOF | |
31419 | ||
31420 | ||
31421 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31422 | echo "obj-m := conftest.o" >build/Makefile | |
31423 | modpost_flag='' | |
31424 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31425 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31426 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31427 | (eval $ac_try) 2>&5 | |
31428 | ac_status=$? | |
31429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31430 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31431 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31432 | (eval $ac_try) 2>&5 | |
31433 | ac_status=$? | |
31434 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31435 | test $ac_status = 0; }; }; then : | |
31436 | ||
31437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31438 | $as_echo "yes" >&6; } | |
31439 | ||
31440 | $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h | |
31441 | ||
31442 | ||
31443 | else | |
31444 | $as_echo "$as_me: failed program was:" >&5 | |
31445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31446 | ||
31447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31448 | $as_echo "no" >&6; } | |
31449 | ||
31450 | ||
31451 | ||
31452 | fi | |
31453 | rm -Rf build | |
31454 | ||
31455 | ||
31456 | ||
31457 | ||
31458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5 | |
31459 | $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; } | |
31460 | ||
31461 | ||
31462 | ||
31463 | cat confdefs.h - <<_ACEOF >conftest.c | |
31464 | ||
31465 | ||
31466 | #include <linux/fs.h> | |
31467 | ||
31468 | int show_options (struct seq_file * x, struct dentry * y) { return 0; }; | |
31469 | static struct super_operations sops __attribute__ ((unused)) = { | |
31470 | .show_options = show_options, | |
31471 | }; | |
31472 | ||
31473 | int | |
31474 | main (void) | |
31475 | { | |
31476 | ||
31477 | ||
31478 | ; | |
31479 | return 0; | |
31480 | } | |
31481 | ||
31482 | _ACEOF | |
31483 | ||
31484 | ||
31485 | ||
31486 | cat - <<_ACEOF >conftest.h | |
31487 | ||
31488 | _ACEOF | |
31489 | ||
31490 | ||
31491 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31492 | echo "obj-m := conftest.o" >build/Makefile | |
31493 | modpost_flag='' | |
31494 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31495 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31496 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31497 | (eval $ac_try) 2>&5 | |
31498 | ac_status=$? | |
31499 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31500 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31501 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31502 | (eval $ac_try) 2>&5 | |
31503 | ac_status=$? | |
31504 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31505 | test $ac_status = 0; }; }; then : | |
31506 | ||
31507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31508 | $as_echo "yes" >&6; } | |
31509 | ||
31510 | $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h | |
31511 | ||
31512 | ||
31513 | else | |
31514 | $as_echo "$as_me: failed program was:" >&5 | |
31515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31516 | ||
31517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31518 | $as_echo "no" >&6; } | |
31519 | ||
31520 | ||
31521 | ||
31522 | fi | |
31523 | rm -Rf build | |
31524 | ||
31525 | ||
31526 | ||
31527 | ||
31528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5 | |
31529 | $as_echo_n "checking whether file_inode() is available... " >&6; } | |
31530 | ||
31531 | ||
31532 | cat confdefs.h - <<_ACEOF >conftest.c | |
31533 | ||
31534 | ||
31535 | #include <linux/fs.h> | |
31536 | ||
31537 | int | |
31538 | main (void) | |
31539 | { | |
31540 | ||
31541 | struct file *f = NULL; | |
31542 | file_inode(f); | |
31543 | ||
31544 | ; | |
31545 | return 0; | |
31546 | } | |
31547 | ||
31548 | _ACEOF | |
31549 | ||
31550 | ||
31551 | ||
31552 | cat - <<_ACEOF >conftest.h | |
31553 | ||
31554 | _ACEOF | |
31555 | ||
31556 | ||
31557 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31558 | echo "obj-m := conftest.o" >build/Makefile | |
31559 | modpost_flag='' | |
31560 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31561 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31562 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31563 | (eval $ac_try) 2>&5 | |
31564 | ac_status=$? | |
31565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31566 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31567 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31568 | (eval $ac_try) 2>&5 | |
31569 | ac_status=$? | |
31570 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31571 | test $ac_status = 0; }; }; then : | |
31572 | ||
31573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31574 | $as_echo "yes" >&6; } | |
31575 | ||
31576 | $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h | |
31577 | ||
31578 | ||
31579 | else | |
31580 | $as_echo "$as_me: failed program was:" >&5 | |
31581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31582 | ||
31583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31584 | $as_echo "no" >&6; } | |
31585 | ||
31586 | ||
31587 | ||
31588 | fi | |
31589 | rm -Rf build | |
31590 | ||
31591 | ||
31592 | ||
31593 | ||
31594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5 | |
31595 | $as_echo_n "checking whether fops->fsync() wants... " >&6; } | |
31596 | ||
31597 | ||
31598 | ||
31599 | cat confdefs.h - <<_ACEOF >conftest.c | |
31600 | ||
31601 | ||
31602 | #include <linux/fs.h> | |
31603 | ||
31604 | int test_fsync(struct file *f, struct dentry *dentry, int x) | |
31605 | { return 0; } | |
31606 | ||
31607 | static const struct file_operations | |
31608 | fops __attribute__ ((unused)) = { | |
31609 | .fsync = test_fsync, | |
31610 | }; | |
31611 | ||
31612 | int | |
31613 | main (void) | |
31614 | { | |
31615 | ||
31616 | ||
31617 | ; | |
31618 | return 0; | |
31619 | } | |
31620 | ||
31621 | _ACEOF | |
31622 | ||
31623 | ||
31624 | ||
31625 | cat - <<_ACEOF >conftest.h | |
31626 | ||
31627 | _ACEOF | |
31628 | ||
31629 | ||
31630 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31631 | echo "obj-m := conftest.o" >build/Makefile | |
31632 | modpost_flag='' | |
31633 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31634 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31635 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31636 | (eval $ac_try) 2>&5 | |
31637 | ac_status=$? | |
31638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31639 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31640 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31641 | (eval $ac_try) 2>&5 | |
31642 | ac_status=$? | |
31643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31644 | test $ac_status = 0; }; }; then : | |
31645 | ||
31646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5 | |
31647 | $as_echo "dentry" >&6; } | |
31648 | ||
31649 | $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h | |
31650 | ||
31651 | ||
31652 | else | |
31653 | $as_echo "$as_me: failed program was:" >&5 | |
31654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31655 | ||
31656 | ||
31657 | ||
31658 | ||
31659 | fi | |
31660 | rm -Rf build | |
31661 | ||
31662 | ||
31663 | ||
31664 | ||
31665 | ||
31666 | ||
31667 | cat confdefs.h - <<_ACEOF >conftest.c | |
31668 | ||
31669 | ||
31670 | #include <linux/fs.h> | |
31671 | ||
31672 | int test_fsync(struct file *f, int x) { return 0; } | |
31673 | ||
31674 | static const struct file_operations | |
31675 | fops __attribute__ ((unused)) = { | |
31676 | .fsync = test_fsync, | |
31677 | }; | |
31678 | ||
31679 | int | |
31680 | main (void) | |
31681 | { | |
31682 | ||
31683 | ||
31684 | ; | |
31685 | return 0; | |
31686 | } | |
31687 | ||
31688 | _ACEOF | |
31689 | ||
31690 | ||
31691 | ||
31692 | cat - <<_ACEOF >conftest.h | |
31693 | ||
31694 | _ACEOF | |
31695 | ||
31696 | ||
31697 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31698 | echo "obj-m := conftest.o" >build/Makefile | |
31699 | modpost_flag='' | |
31700 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31701 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31702 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31703 | (eval $ac_try) 2>&5 | |
31704 | ac_status=$? | |
31705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31706 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31707 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31708 | (eval $ac_try) 2>&5 | |
31709 | ac_status=$? | |
31710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31711 | test $ac_status = 0; }; }; then : | |
31712 | ||
31713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5 | |
31714 | $as_echo "no dentry" >&6; } | |
31715 | ||
31716 | $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h | |
31717 | ||
31718 | ||
31719 | else | |
31720 | $as_echo "$as_me: failed program was:" >&5 | |
31721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31722 | ||
31723 | ||
31724 | ||
31725 | ||
31726 | fi | |
31727 | rm -Rf build | |
31728 | ||
31729 | ||
31730 | ||
31731 | ||
31732 | ||
31733 | ||
31734 | cat confdefs.h - <<_ACEOF >conftest.c | |
31735 | ||
31736 | ||
31737 | #include <linux/fs.h> | |
31738 | ||
31739 | int test_fsync(struct file *f, loff_t a, loff_t b, int c) | |
31740 | { return 0; } | |
31741 | ||
31742 | static const struct file_operations | |
31743 | fops __attribute__ ((unused)) = { | |
31744 | .fsync = test_fsync, | |
31745 | }; | |
31746 | ||
31747 | int | |
31748 | main (void) | |
31749 | { | |
31750 | ||
31751 | ||
31752 | ; | |
31753 | return 0; | |
31754 | } | |
31755 | ||
31756 | _ACEOF | |
31757 | ||
31758 | ||
31759 | ||
31760 | cat - <<_ACEOF >conftest.h | |
31761 | ||
31762 | _ACEOF | |
31763 | ||
31764 | ||
31765 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31766 | echo "obj-m := conftest.o" >build/Makefile | |
31767 | modpost_flag='' | |
31768 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31769 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31770 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31771 | (eval $ac_try) 2>&5 | |
31772 | ac_status=$? | |
31773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31774 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31775 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31776 | (eval $ac_try) 2>&5 | |
31777 | ac_status=$? | |
31778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31779 | test $ac_status = 0; }; }; then : | |
31780 | ||
31781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5 | |
31782 | $as_echo "range" >&6; } | |
31783 | ||
31784 | $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h | |
31785 | ||
31786 | ||
31787 | else | |
31788 | $as_echo "$as_me: failed program was:" >&5 | |
31789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31790 | ||
31791 | ||
31792 | ||
31793 | ||
31794 | fi | |
31795 | rm -Rf build | |
31796 | ||
31797 | ||
31798 | ||
31799 | ||
31800 | ||
31801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5 | |
31802 | $as_echo_n "checking whether sops->evict_inode() exists... " >&6; } | |
31803 | ||
31804 | ||
31805 | cat confdefs.h - <<_ACEOF >conftest.c | |
31806 | ||
31807 | ||
31808 | #include <linux/fs.h> | |
31809 | void evict_inode (struct inode * t) { return; } | |
31810 | static struct super_operations sops __attribute__ ((unused)) = { | |
31811 | .evict_inode = evict_inode, | |
31812 | }; | |
31813 | ||
31814 | int | |
31815 | main (void) | |
31816 | { | |
31817 | ||
31818 | ||
31819 | ; | |
31820 | return 0; | |
31821 | } | |
31822 | ||
31823 | _ACEOF | |
31824 | ||
31825 | ||
31826 | ||
31827 | cat - <<_ACEOF >conftest.h | |
31828 | ||
31829 | _ACEOF | |
31830 | ||
31831 | ||
31832 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31833 | echo "obj-m := conftest.o" >build/Makefile | |
31834 | modpost_flag='' | |
31835 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31836 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31837 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31838 | (eval $ac_try) 2>&5 | |
31839 | ac_status=$? | |
31840 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31841 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31842 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31843 | (eval $ac_try) 2>&5 | |
31844 | ac_status=$? | |
31845 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31846 | test $ac_status = 0; }; }; then : | |
31847 | ||
31848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31849 | $as_echo "yes" >&6; } | |
31850 | ||
31851 | $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h | |
31852 | ||
31853 | ||
31854 | else | |
31855 | $as_echo "$as_me: failed program was:" >&5 | |
31856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31857 | ||
31858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31859 | $as_echo "no" >&6; } | |
31860 | ||
31861 | ||
31862 | ||
31863 | fi | |
31864 | rm -Rf build | |
31865 | ||
31866 | ||
31867 | ||
31868 | ||
31869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5 | |
31870 | $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; } | |
31871 | ||
31872 | ||
31873 | cat confdefs.h - <<_ACEOF >conftest.c | |
31874 | ||
31875 | ||
31876 | #include <linux/fs.h> | |
31877 | ||
31878 | void dirty_inode(struct inode *a, int b) { return; } | |
31879 | ||
31880 | static const struct super_operations | |
31881 | sops __attribute__ ((unused)) = { | |
31882 | .dirty_inode = dirty_inode, | |
31883 | }; | |
31884 | ||
31885 | int | |
31886 | main (void) | |
31887 | { | |
31888 | ||
31889 | ||
31890 | ; | |
31891 | return 0; | |
31892 | } | |
31893 | ||
31894 | _ACEOF | |
31895 | ||
31896 | ||
31897 | ||
31898 | cat - <<_ACEOF >conftest.h | |
31899 | ||
31900 | _ACEOF | |
31901 | ||
31902 | ||
31903 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31904 | echo "obj-m := conftest.o" >build/Makefile | |
31905 | modpost_flag='' | |
31906 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31907 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31908 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31909 | (eval $ac_try) 2>&5 | |
31910 | ac_status=$? | |
31911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31912 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31913 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31914 | (eval $ac_try) 2>&5 | |
31915 | ac_status=$? | |
31916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31917 | test $ac_status = 0; }; }; then : | |
31918 | ||
31919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31920 | $as_echo "yes" >&6; } | |
31921 | ||
31922 | $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h | |
31923 | ||
31924 | ||
31925 | else | |
31926 | $as_echo "$as_me: failed program was:" >&5 | |
31927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31928 | ||
31929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31930 | $as_echo "no" >&6; } | |
31931 | ||
31932 | ||
31933 | ||
31934 | fi | |
31935 | rm -Rf build | |
31936 | ||
31937 | ||
31938 | ||
31939 | ||
31940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5 | |
31941 | $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; } | |
31942 | ||
31943 | ||
31944 | cat confdefs.h - <<_ACEOF >conftest.c | |
31945 | ||
31946 | ||
31947 | #include <linux/fs.h> | |
31948 | ||
31949 | int nr_cached_objects(struct super_block *sb) { return 0; } | |
31950 | ||
31951 | static const struct super_operations | |
31952 | sops __attribute__ ((unused)) = { | |
31953 | .nr_cached_objects = nr_cached_objects, | |
31954 | }; | |
31955 | ||
31956 | int | |
31957 | main (void) | |
31958 | { | |
31959 | ||
31960 | ||
31961 | ; | |
31962 | return 0; | |
31963 | } | |
31964 | ||
31965 | _ACEOF | |
31966 | ||
31967 | ||
31968 | ||
31969 | cat - <<_ACEOF >conftest.h | |
31970 | ||
31971 | _ACEOF | |
31972 | ||
31973 | ||
31974 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31975 | echo "obj-m := conftest.o" >build/Makefile | |
31976 | modpost_flag='' | |
31977 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31978 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31979 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31980 | (eval $ac_try) 2>&5 | |
31981 | ac_status=$? | |
31982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31983 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31984 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31985 | (eval $ac_try) 2>&5 | |
31986 | ac_status=$? | |
31987 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31988 | test $ac_status = 0; }; }; then : | |
31989 | ||
31990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31991 | $as_echo "yes" >&6; } | |
31992 | ||
31993 | $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h | |
31994 | ||
31995 | ||
31996 | else | |
31997 | $as_echo "$as_me: failed program was:" >&5 | |
31998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31999 | ||
32000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32001 | $as_echo "no" >&6; } | |
32002 | ||
32003 | ||
32004 | ||
32005 | fi | |
32006 | rm -Rf build | |
32007 | ||
32008 | ||
32009 | ||
32010 | ||
32011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5 | |
32012 | $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; } | |
32013 | ||
32014 | ||
32015 | cat confdefs.h - <<_ACEOF >conftest.c | |
32016 | ||
32017 | ||
32018 | #include <linux/fs.h> | |
32019 | ||
32020 | void free_cached_objects(struct super_block *sb, int x) | |
32021 | { return; } | |
32022 | ||
32023 | static const struct super_operations | |
32024 | sops __attribute__ ((unused)) = { | |
32025 | .free_cached_objects = free_cached_objects, | |
32026 | }; | |
32027 | ||
32028 | int | |
32029 | main (void) | |
32030 | { | |
32031 | ||
32032 | ||
32033 | ; | |
32034 | return 0; | |
32035 | } | |
32036 | ||
32037 | _ACEOF | |
32038 | ||
32039 | ||
32040 | ||
32041 | cat - <<_ACEOF >conftest.h | |
32042 | ||
32043 | _ACEOF | |
32044 | ||
32045 | ||
32046 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32047 | echo "obj-m := conftest.o" >build/Makefile | |
32048 | modpost_flag='' | |
32049 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32050 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32051 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32052 | (eval $ac_try) 2>&5 | |
32053 | ac_status=$? | |
32054 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32055 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32056 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32057 | (eval $ac_try) 2>&5 | |
32058 | ac_status=$? | |
32059 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32060 | test $ac_status = 0; }; }; then : | |
32061 | ||
32062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32063 | $as_echo "yes" >&6; } | |
32064 | ||
32065 | $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h | |
32066 | ||
32067 | ||
32068 | else | |
32069 | $as_echo "$as_me: failed program was:" >&5 | |
32070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32071 | ||
32072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32073 | $as_echo "no" >&6; } | |
32074 | ||
32075 | ||
32076 | ||
32077 | fi | |
32078 | rm -Rf build | |
32079 | ||
32080 | ||
32081 | ||
32082 | ||
32083 | ||
32084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
32085 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
32086 | ||
32087 | ||
32088 | cat confdefs.h - <<_ACEOF >conftest.c | |
32089 | ||
32090 | ||
32091 | #include <linux/fs.h> | |
32092 | ||
32093 | long test_fallocate(struct file *file, int mode, | |
32094 | loff_t offset, loff_t len) { return 0; } | |
32095 | ||
32096 | static const struct file_operations | |
32097 | fops __attribute__ ((unused)) = { | |
32098 | .fallocate = test_fallocate, | |
32099 | }; | |
32100 | ||
32101 | int | |
32102 | main (void) | |
32103 | { | |
32104 | ||
32105 | ||
32106 | ; | |
32107 | return 0; | |
32108 | } | |
32109 | ||
32110 | _ACEOF | |
32111 | ||
32112 | ||
32113 | ||
32114 | cat - <<_ACEOF >conftest.h | |
32115 | ||
32116 | _ACEOF | |
32117 | ||
32118 | ||
32119 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32120 | echo "obj-m := conftest.o" >build/Makefile | |
32121 | modpost_flag='' | |
32122 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32123 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32124 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32125 | (eval $ac_try) 2>&5 | |
32126 | ac_status=$? | |
32127 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32128 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32129 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32130 | (eval $ac_try) 2>&5 | |
32131 | ac_status=$? | |
32132 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32133 | test $ac_status = 0; }; }; then : | |
32134 | ||
32135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32136 | $as_echo "yes" >&6; } | |
32137 | ||
32138 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
32139 | ||
32140 | ||
32141 | else | |
32142 | $as_echo "$as_me: failed program was:" >&5 | |
32143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32144 | ||
32145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32146 | $as_echo "no" >&6; } | |
32147 | ||
32148 | ||
32149 | ||
32150 | fi | |
32151 | rm -Rf build | |
32152 | ||
32153 | ||
32154 | ||
32155 | ||
32156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5 | |
32157 | $as_echo_n "checking whether iops->fallocate() exists... " >&6; } | |
32158 | ||
32159 | ||
32160 | cat confdefs.h - <<_ACEOF >conftest.c | |
32161 | ||
32162 | ||
32163 | #include <linux/fs.h> | |
32164 | ||
32165 | long test_fallocate(struct inode *inode, int mode, | |
32166 | loff_t offset, loff_t len) { return 0; } | |
32167 | ||
32168 | static const struct inode_operations | |
32169 | fops __attribute__ ((unused)) = { | |
32170 | .fallocate = test_fallocate, | |
32171 | }; | |
32172 | ||
32173 | int | |
32174 | main (void) | |
32175 | { | |
32176 | ||
32177 | ||
32178 | ; | |
32179 | return 0; | |
32180 | } | |
32181 | ||
32182 | _ACEOF | |
32183 | ||
32184 | ||
32185 | ||
32186 | cat - <<_ACEOF >conftest.h | |
32187 | ||
32188 | _ACEOF | |
32189 | ||
32190 | ||
32191 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32192 | echo "obj-m := conftest.o" >build/Makefile | |
32193 | modpost_flag='' | |
32194 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32195 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32196 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32197 | (eval $ac_try) 2>&5 | |
32198 | ac_status=$? | |
32199 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32200 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32201 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32202 | (eval $ac_try) 2>&5 | |
32203 | ac_status=$? | |
32204 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32205 | test $ac_status = 0; }; }; then : | |
32206 | ||
32207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32208 | $as_echo "yes" >&6; } | |
32209 | ||
32210 | $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h | |
32211 | ||
32212 | ||
32213 | else | |
32214 | $as_echo "$as_me: failed program was:" >&5 | |
32215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32216 | ||
32217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32218 | $as_echo "no" >&6; } | |
32219 | ||
32220 | ||
32221 | ||
32222 | fi | |
32223 | rm -Rf build | |
32224 | ||
32225 | ||
32226 | ||
32227 | ||
32228 | ||
32229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5 | |
32230 | $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; } | |
32231 | ||
32232 | ||
32233 | cat confdefs.h - <<_ACEOF >conftest.c | |
32234 | ||
32235 | ||
32236 | #include <linux/fs.h> | |
32237 | ||
32238 | static const struct file_operations | |
32239 | fops __attribute__ ((unused)) = { | |
32240 | .aio_fsync = NULL, | |
32241 | }; | |
32242 | ||
32243 | int | |
32244 | main (void) | |
32245 | { | |
32246 | ||
32247 | ||
32248 | ; | |
32249 | return 0; | |
32250 | } | |
32251 | ||
32252 | _ACEOF | |
32253 | ||
32254 | ||
32255 | ||
32256 | cat - <<_ACEOF >conftest.h | |
32257 | ||
32258 | _ACEOF | |
32259 | ||
32260 | ||
32261 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32262 | echo "obj-m := conftest.o" >build/Makefile | |
32263 | modpost_flag='' | |
32264 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32265 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32266 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32267 | (eval $ac_try) 2>&5 | |
32268 | ac_status=$? | |
32269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32270 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32271 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32272 | (eval $ac_try) 2>&5 | |
32273 | ac_status=$? | |
32274 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32275 | test $ac_status = 0; }; }; then : | |
32276 | ||
32277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32278 | $as_echo "yes" >&6; } | |
32279 | ||
32280 | $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h | |
32281 | ||
32282 | ||
32283 | else | |
32284 | $as_echo "$as_me: failed program was:" >&5 | |
32285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32286 | ||
32287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32288 | $as_echo "no" >&6; } | |
32289 | ||
32290 | ||
32291 | ||
32292 | fi | |
32293 | rm -Rf build | |
32294 | ||
32295 | ||
32296 | ||
32297 | ||
32298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5 | |
32299 | $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; } | |
32300 | ||
32301 | ||
32302 | cat confdefs.h - <<_ACEOF >conftest.c | |
32303 | ||
32304 | ||
32305 | #include <linux/fs.h> | |
32306 | ||
32307 | int mkdir(struct inode *inode, struct dentry *dentry, | |
32308 | umode_t umode) { return 0; } | |
32309 | ||
32310 | static const struct inode_operations | |
32311 | iops __attribute__ ((unused)) = { | |
32312 | .mkdir = mkdir, | |
32313 | }; | |
32314 | ||
32315 | int | |
32316 | main (void) | |
32317 | { | |
32318 | ||
32319 | ||
32320 | ; | |
32321 | return 0; | |
32322 | } | |
32323 | ||
32324 | _ACEOF | |
32325 | ||
32326 | ||
32327 | ||
32328 | cat - <<_ACEOF >conftest.h | |
32329 | ||
32330 | _ACEOF | |
32331 | ||
32332 | ||
32333 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32334 | echo "obj-m := conftest.o" >build/Makefile | |
32335 | modpost_flag='' | |
32336 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32337 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32338 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32339 | (eval $ac_try) 2>&5 | |
32340 | ac_status=$? | |
32341 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32342 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32343 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32344 | (eval $ac_try) 2>&5 | |
32345 | ac_status=$? | |
32346 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32347 | test $ac_status = 0; }; }; then : | |
32348 | ||
32349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32350 | $as_echo "yes" >&6; } | |
32351 | ||
32352 | $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h | |
32353 | ||
32354 | ||
32355 | else | |
32356 | $as_echo "$as_me: failed program was:" >&5 | |
32357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32358 | ||
32359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32360 | $as_echo "no" >&6; } | |
32361 | ||
32362 | ||
32363 | ||
32364 | fi | |
32365 | rm -Rf build | |
32366 | ||
32367 | ||
32368 | ||
32369 | ||
32370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5 | |
32371 | $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; } | |
32372 | ||
32373 | ||
32374 | cat confdefs.h - <<_ACEOF >conftest.c | |
32375 | ||
32376 | ||
32377 | #include <linux/fs.h> | |
32378 | ||
32379 | struct dentry *inode_lookup(struct inode *inode, | |
32380 | struct dentry *dentry, struct nameidata *nidata) | |
32381 | { return NULL; } | |
32382 | ||
32383 | static const struct inode_operations iops | |
32384 | __attribute__ ((unused)) = { | |
32385 | .lookup = inode_lookup, | |
32386 | }; | |
32387 | ||
32388 | int | |
32389 | main (void) | |
32390 | { | |
32391 | ||
32392 | ||
32393 | ; | |
32394 | return 0; | |
32395 | } | |
32396 | ||
32397 | _ACEOF | |
32398 | ||
32399 | ||
32400 | ||
32401 | cat - <<_ACEOF >conftest.h | |
32402 | ||
32403 | _ACEOF | |
32404 | ||
32405 | ||
32406 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32407 | echo "obj-m := conftest.o" >build/Makefile | |
32408 | modpost_flag='' | |
32409 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32410 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32411 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32412 | (eval $ac_try) 2>&5 | |
32413 | ac_status=$? | |
32414 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32415 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32416 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32417 | (eval $ac_try) 2>&5 | |
32418 | ac_status=$? | |
32419 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32420 | test $ac_status = 0; }; }; then : | |
32421 | ||
32422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32423 | $as_echo "yes" >&6; } | |
32424 | ||
32425 | $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h | |
32426 | ||
32427 | ||
32428 | else | |
32429 | $as_echo "$as_me: failed program was:" >&5 | |
32430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32431 | ||
32432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32433 | $as_echo "no" >&6; } | |
32434 | ||
32435 | ||
32436 | ||
32437 | fi | |
32438 | rm -Rf build | |
32439 | ||
32440 | ||
32441 | ||
32442 | ||
32443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5 | |
32444 | $as_echo_n "checking whether iops->create() passes nameidata... " >&6; } | |
32445 | ||
32446 | ||
32447 | cat confdefs.h - <<_ACEOF >conftest.c | |
32448 | ||
32449 | ||
32450 | #include <linux/fs.h> | |
32451 | ||
32452 | #ifdef HAVE_MKDIR_UMODE_T | |
32453 | int inode_create(struct inode *inode ,struct dentry *dentry, | |
32454 | umode_t umode, struct nameidata *nidata) { return 0; } | |
32455 | #else | |
32456 | int inode_create(struct inode *inode,struct dentry *dentry, | |
32457 | int umode, struct nameidata * nidata) { return 0; } | |
32458 | #endif | |
32459 | ||
32460 | static const struct inode_operations | |
32461 | iops __attribute__ ((unused)) = { | |
32462 | .create = inode_create, | |
32463 | }; | |
32464 | ||
32465 | int | |
32466 | main (void) | |
32467 | { | |
32468 | ||
32469 | ||
32470 | ; | |
32471 | return 0; | |
32472 | } | |
32473 | ||
32474 | _ACEOF | |
32475 | ||
32476 | ||
32477 | ||
32478 | cat - <<_ACEOF >conftest.h | |
32479 | ||
32480 | _ACEOF | |
32481 | ||
32482 | ||
32483 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32484 | echo "obj-m := conftest.o" >build/Makefile | |
32485 | modpost_flag='' | |
32486 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32487 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32488 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32489 | (eval $ac_try) 2>&5 | |
32490 | ac_status=$? | |
32491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32492 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32493 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32494 | (eval $ac_try) 2>&5 | |
32495 | ac_status=$? | |
32496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32497 | test $ac_status = 0; }; }; then : | |
32498 | ||
32499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32500 | $as_echo "yes" >&6; } | |
32501 | ||
32502 | $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h | |
32503 | ||
32504 | ||
32505 | else | |
32506 | $as_echo "$as_me: failed program was:" >&5 | |
32507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32508 | ||
32509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32510 | $as_echo "no" >&6; } | |
32511 | ||
32512 | ||
32513 | ||
32514 | fi | |
32515 | rm -Rf build | |
32516 | ||
32517 | ||
32518 | ||
32519 | ||
32520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5 | |
32521 | $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; } | |
32522 | ||
32523 | ||
32524 | cat confdefs.h - <<_ACEOF >conftest.c | |
32525 | ||
32526 | ||
32527 | #include <linux/fs.h> | |
32528 | const char *get_link(struct dentry *de, struct inode *ip, | |
32529 | struct delayed_call *done) { return "symlink"; } | |
32530 | static struct inode_operations | |
32531 | iops __attribute__ ((unused)) = { | |
32532 | .get_link = get_link, | |
32533 | }; | |
32534 | ||
32535 | int | |
32536 | main (void) | |
32537 | { | |
32538 | ||
32539 | ||
32540 | ; | |
32541 | return 0; | |
32542 | } | |
32543 | ||
32544 | _ACEOF | |
32545 | ||
32546 | ||
32547 | ||
32548 | cat - <<_ACEOF >conftest.h | |
32549 | ||
32550 | _ACEOF | |
32551 | ||
32552 | ||
32553 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32554 | echo "obj-m := conftest.o" >build/Makefile | |
32555 | modpost_flag='' | |
32556 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32557 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32558 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32559 | (eval $ac_try) 2>&5 | |
32560 | ac_status=$? | |
32561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32562 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32563 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32564 | (eval $ac_try) 2>&5 | |
32565 | ac_status=$? | |
32566 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32567 | test $ac_status = 0; }; }; then : | |
32568 | ||
32569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32570 | $as_echo "yes" >&6; } | |
32571 | ||
32572 | $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h | |
32573 | ||
32574 | ||
32575 | else | |
32576 | $as_echo "$as_me: failed program was:" >&5 | |
32577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32578 | ||
32579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32580 | $as_echo "no" >&6; } | |
32581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5 | |
32582 | $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; } | |
32583 | ||
32584 | ||
32585 | cat confdefs.h - <<_ACEOF >conftest.c | |
32586 | ||
32587 | ||
32588 | #include <linux/fs.h> | |
32589 | const char *get_link(struct dentry *de, struct | |
32590 | inode *ip, void **cookie) { return "symlink"; } | |
32591 | static struct inode_operations | |
32592 | iops __attribute__ ((unused)) = { | |
32593 | .get_link = get_link, | |
32594 | }; | |
32595 | ||
32596 | int | |
32597 | main (void) | |
32598 | { | |
32599 | ||
32600 | ||
32601 | ; | |
32602 | return 0; | |
32603 | } | |
32604 | ||
32605 | _ACEOF | |
32606 | ||
32607 | ||
32608 | ||
32609 | cat - <<_ACEOF >conftest.h | |
32610 | ||
32611 | _ACEOF | |
32612 | ||
32613 | ||
32614 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32615 | echo "obj-m := conftest.o" >build/Makefile | |
32616 | modpost_flag='' | |
32617 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32618 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32619 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32620 | (eval $ac_try) 2>&5 | |
32621 | ac_status=$? | |
32622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32623 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32624 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32625 | (eval $ac_try) 2>&5 | |
32626 | ac_status=$? | |
32627 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32628 | test $ac_status = 0; }; }; then : | |
32629 | ||
32630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32631 | $as_echo "yes" >&6; } | |
32632 | ||
32633 | $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h | |
32634 | ||
32635 | ||
32636 | else | |
32637 | $as_echo "$as_me: failed program was:" >&5 | |
32638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32639 | ||
32640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32641 | $as_echo "no" >&6; } | |
32642 | ||
32643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5 | |
32644 | $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; } | |
32645 | ||
32646 | ||
32647 | cat confdefs.h - <<_ACEOF >conftest.c | |
32648 | ||
32649 | ||
32650 | #include <linux/fs.h> | |
32651 | const char *follow_link(struct dentry *de, | |
32652 | void **cookie) { return "symlink"; } | |
32653 | static struct inode_operations | |
32654 | iops __attribute__ ((unused)) = { | |
32655 | .follow_link = follow_link, | |
32656 | }; | |
32657 | ||
32658 | int | |
32659 | main (void) | |
32660 | { | |
32661 | ||
32662 | ||
32663 | ; | |
32664 | return 0; | |
32665 | } | |
32666 | ||
32667 | _ACEOF | |
32668 | ||
32669 | ||
32670 | ||
32671 | cat - <<_ACEOF >conftest.h | |
32672 | ||
32673 | _ACEOF | |
32674 | ||
32675 | ||
32676 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32677 | echo "obj-m := conftest.o" >build/Makefile | |
32678 | modpost_flag='' | |
32679 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32680 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32681 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32682 | (eval $ac_try) 2>&5 | |
32683 | ac_status=$? | |
32684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32685 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32686 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32687 | (eval $ac_try) 2>&5 | |
32688 | ac_status=$? | |
32689 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32690 | test $ac_status = 0; }; }; then : | |
32691 | ||
32692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32693 | $as_echo "yes" >&6; } | |
32694 | ||
32695 | $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h | |
32696 | ||
32697 | ||
32698 | else | |
32699 | $as_echo "$as_me: failed program was:" >&5 | |
32700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32701 | ||
32702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32703 | $as_echo "no" >&6; } | |
32704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5 | |
32705 | $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; } | |
32706 | ||
32707 | ||
32708 | cat confdefs.h - <<_ACEOF >conftest.c | |
32709 | ||
32710 | ||
32711 | #include <linux/fs.h> | |
32712 | void *follow_link(struct dentry *de, struct | |
32713 | nameidata *nd) { return (void *)NULL; } | |
32714 | static struct inode_operations | |
32715 | iops __attribute__ ((unused)) = { | |
32716 | .follow_link = follow_link, | |
32717 | }; | |
32718 | ||
32719 | int | |
32720 | main (void) | |
32721 | { | |
32722 | ||
32723 | ||
32724 | ; | |
32725 | return 0; | |
32726 | } | |
32727 | ||
32728 | _ACEOF | |
32729 | ||
32730 | ||
32731 | ||
32732 | cat - <<_ACEOF >conftest.h | |
32733 | ||
32734 | _ACEOF | |
32735 | ||
32736 | ||
32737 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32738 | echo "obj-m := conftest.o" >build/Makefile | |
32739 | modpost_flag='' | |
32740 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32741 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32742 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32743 | (eval $ac_try) 2>&5 | |
32744 | ac_status=$? | |
32745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32746 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32747 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32748 | (eval $ac_try) 2>&5 | |
32749 | ac_status=$? | |
32750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32751 | test $ac_status = 0; }; }; then : | |
32752 | ||
df9d7621 CIK |
32753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
32754 | $as_echo "yes" >&6; } | |
32755 | ||
32756 | $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h | |
32757 | ||
32758 | ||
32759 | else | |
32760 | $as_echo "$as_me: failed program was:" >&5 | |
32761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32762 | ||
32763 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
32764 | ||
32765 | ||
32766 | ||
32767 | fi | |
32768 | rm -Rf build | |
32769 | ||
32770 | ||
32771 | ||
32772 | ||
32773 | ||
32774 | fi | |
32775 | rm -Rf build | |
32776 | ||
32777 | ||
32778 | ||
32779 | ||
32780 | ||
32781 | ||
32782 | fi | |
32783 | rm -Rf build | |
32784 | ||
32785 | ||
32786 | ||
32787 | ||
32788 | ||
32789 | fi | |
32790 | rm -Rf build | |
32791 | ||
32792 | ||
32793 | ||
32794 | ||
32795 | ||
32796 | ||
32797 | cat confdefs.h - <<_ACEOF >conftest.c | |
32798 | ||
32799 | ||
32800 | #if !defined(HAVE_GET_LINK_DELAYED) | |
32801 | #error "Expecting get_link() delayed done" | |
32802 | #endif | |
32803 | ||
32804 | int | |
32805 | main (void) | |
32806 | { | |
32807 | ||
32808 | ||
32809 | ; | |
32810 | return 0; | |
32811 | } | |
32812 | ||
32813 | _ACEOF | |
32814 | ||
32815 | ||
32816 | ||
32817 | cat - <<_ACEOF >conftest.h | |
32818 | ||
32819 | _ACEOF | |
32820 | ||
32821 | ||
32822 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32823 | echo "obj-m := conftest.o" >build/Makefile | |
32824 | modpost_flag='' | |
32825 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32826 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32827 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32828 | (eval $ac_try) 2>&5 | |
32829 | ac_status=$? | |
32830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32831 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32832 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32833 | (eval $ac_try) 2>&5 | |
32834 | ac_status=$? | |
32835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32836 | test $ac_status = 0; }; }; then : | |
32837 | ||
32838 | ||
32839 | $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h | |
32840 | ||
32841 | ||
32842 | else | |
32843 | $as_echo "$as_me: failed program was:" >&5 | |
32844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32845 | ||
32846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5 | |
32847 | $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; } | |
32848 | ||
32849 | ||
32850 | cat confdefs.h - <<_ACEOF >conftest.c | |
32851 | ||
32852 | ||
32853 | #include <linux/fs.h> | |
32854 | void put_link(struct inode *ip, void *cookie) | |
32855 | { return; } | |
32856 | static struct inode_operations | |
32857 | iops __attribute__ ((unused)) = { | |
32858 | .put_link = put_link, | |
32859 | }; | |
32860 | ||
32861 | int | |
32862 | main (void) | |
32863 | { | |
32864 | ||
32865 | ||
32866 | ; | |
32867 | return 0; | |
32868 | } | |
32869 | ||
32870 | _ACEOF | |
32871 | ||
32872 | ||
32873 | ||
32874 | cat - <<_ACEOF >conftest.h | |
32875 | ||
32876 | _ACEOF | |
32877 | ||
32878 | ||
32879 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32880 | echo "obj-m := conftest.o" >build/Makefile | |
32881 | modpost_flag='' | |
32882 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32883 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32884 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32885 | (eval $ac_try) 2>&5 | |
32886 | ac_status=$? | |
32887 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32888 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32889 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32890 | (eval $ac_try) 2>&5 | |
32891 | ac_status=$? | |
32892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32893 | test $ac_status = 0; }; }; then : | |
32894 | ||
32895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32896 | $as_echo "yes" >&6; } | |
32897 | ||
32898 | $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h | |
32899 | ||
32900 | ||
32901 | else | |
32902 | $as_echo "$as_me: failed program was:" >&5 | |
32903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32904 | ||
32905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32906 | $as_echo "no" >&6; } | |
32907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5 | |
32908 | $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; } | |
32909 | ||
32910 | ||
32911 | cat confdefs.h - <<_ACEOF >conftest.c | |
32912 | ||
32913 | ||
32914 | #include <linux/fs.h> | |
32915 | void put_link(struct dentry *de, struct | |
32916 | nameidata *nd, void *ptr) { return; } | |
32917 | static struct inode_operations | |
32918 | iops __attribute__ ((unused)) = { | |
32919 | .put_link = put_link, | |
32920 | }; | |
32921 | ||
32922 | int | |
32923 | main (void) | |
32924 | { | |
32925 | ||
32926 | ||
32927 | ; | |
32928 | return 0; | |
32929 | } | |
32930 | ||
32931 | _ACEOF | |
32932 | ||
32933 | ||
32934 | ||
32935 | cat - <<_ACEOF >conftest.h | |
32936 | ||
32937 | _ACEOF | |
32938 | ||
32939 | ||
32940 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32941 | echo "obj-m := conftest.o" >build/Makefile | |
32942 | modpost_flag='' | |
32943 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32944 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32945 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32946 | (eval $ac_try) 2>&5 | |
32947 | ac_status=$? | |
32948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32949 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32950 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32951 | (eval $ac_try) 2>&5 | |
32952 | ac_status=$? | |
32953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32954 | test $ac_status = 0; }; }; then : | |
32955 | ||
32956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
87d546d8 TG |
32957 | $as_echo "yes" >&6; } |
32958 | ||
df9d7621 | 32959 | $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h |
87d546d8 TG |
32960 | |
32961 | ||
32962 | else | |
32963 | $as_echo "$as_me: failed program was:" >&5 | |
32964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32965 | ||
df9d7621 | 32966 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 |
87d546d8 TG |
32967 | |
32968 | ||
32969 | ||
32970 | fi | |
32971 | rm -Rf build | |
32972 | ||
32973 | ||
32974 | ||
32975 | ||
32976 | ||
87d546d8 TG |
32977 | fi |
32978 | rm -Rf build | |
32979 | ||
32980 | ||
32981 | ||
32982 | ||
32983 | ||
32984 | fi | |
32985 | rm -Rf build | |
32986 | ||
32987 | ||
32988 | ||
32989 | ||
df9d7621 CIK |
32990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5 |
32991 | $as_echo_n "checking whether iops->truncate_range() exists... " >&6; } | |
87d546d8 TG |
32992 | |
32993 | ||
32994 | cat confdefs.h - <<_ACEOF >conftest.c | |
32995 | ||
32996 | ||
df9d7621 CIK |
32997 | #include <linux/fs.h> |
32998 | void truncate_range(struct inode *inode, loff_t start, | |
32999 | loff_t end) { return; } | |
33000 | static struct inode_operations iops __attribute__ ((unused)) = { | |
33001 | .truncate_range = truncate_range, | |
33002 | }; | |
87d546d8 TG |
33003 | |
33004 | int | |
33005 | main (void) | |
33006 | { | |
33007 | ||
33008 | ||
33009 | ; | |
33010 | return 0; | |
33011 | } | |
33012 | ||
33013 | _ACEOF | |
33014 | ||
33015 | ||
33016 | ||
33017 | cat - <<_ACEOF >conftest.h | |
33018 | ||
33019 | _ACEOF | |
33020 | ||
33021 | ||
33022 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33023 | echo "obj-m := conftest.o" >build/Makefile | |
33024 | modpost_flag='' | |
33025 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33026 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33027 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33028 | (eval $ac_try) 2>&5 | |
33029 | ac_status=$? | |
33030 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33031 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33032 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33033 | (eval $ac_try) 2>&5 | |
33034 | ac_status=$? | |
33035 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33036 | test $ac_status = 0; }; }; then : | |
33037 | ||
df9d7621 CIK |
33038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33039 | $as_echo "yes" >&6; } | |
87d546d8 | 33040 | |
df9d7621 | 33041 | $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h |
87d546d8 TG |
33042 | |
33043 | ||
33044 | else | |
33045 | $as_echo "$as_me: failed program was:" >&5 | |
33046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33047 | ||
df9d7621 CIK |
33048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33049 | $as_echo "no" >&6; } | |
33050 | ||
33051 | ||
33052 | ||
33053 | fi | |
33054 | rm -Rf build | |
33055 | ||
33056 | ||
33057 | ||
33058 | ||
33059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5 | |
33060 | $as_echo_n "checking whether dops->d_automount() exists... " >&6; } | |
87d546d8 TG |
33061 | |
33062 | ||
33063 | cat confdefs.h - <<_ACEOF >conftest.c | |
33064 | ||
33065 | ||
df9d7621 CIK |
33066 | #include <linux/dcache.h> |
33067 | struct vfsmount *d_automount(struct path *p) { return NULL; } | |
33068 | struct dentry_operations dops __attribute__ ((unused)) = { | |
33069 | .d_automount = d_automount, | |
33070 | }; | |
87d546d8 TG |
33071 | |
33072 | int | |
33073 | main (void) | |
33074 | { | |
33075 | ||
33076 | ||
33077 | ; | |
33078 | return 0; | |
33079 | } | |
33080 | ||
33081 | _ACEOF | |
33082 | ||
33083 | ||
33084 | ||
33085 | cat - <<_ACEOF >conftest.h | |
33086 | ||
33087 | _ACEOF | |
33088 | ||
33089 | ||
33090 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33091 | echo "obj-m := conftest.o" >build/Makefile | |
33092 | modpost_flag='' | |
33093 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33094 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33095 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33096 | (eval $ac_try) 2>&5 | |
33097 | ac_status=$? | |
33098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33099 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33100 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33101 | (eval $ac_try) 2>&5 | |
33102 | ac_status=$? | |
33103 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33104 | test $ac_status = 0; }; }; then : | |
33105 | ||
df9d7621 | 33106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
33107 | $as_echo "yes" >&6; } |
33108 | ||
df9d7621 | 33109 | $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h |
87d546d8 TG |
33110 | |
33111 | ||
33112 | else | |
33113 | $as_echo "$as_me: failed program was:" >&5 | |
33114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33115 | ||
df9d7621 | 33116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 | 33117 | $as_echo "no" >&6; } |
df9d7621 CIK |
33118 | |
33119 | ||
33120 | ||
33121 | fi | |
33122 | rm -Rf build | |
33123 | ||
33124 | ||
33125 | ||
33126 | ||
33127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5 | |
33128 | $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; } | |
87d546d8 TG |
33129 | |
33130 | ||
33131 | cat confdefs.h - <<_ACEOF >conftest.c | |
33132 | ||
33133 | ||
df9d7621 CIK |
33134 | #include <linux/exportfs.h> |
33135 | int encode_fh(struct inode *inode, __u32 *fh, int *max_len, | |
33136 | struct inode *parent) { return 0; } | |
33137 | static struct export_operations eops __attribute__ ((unused))={ | |
33138 | .encode_fh = encode_fh, | |
33139 | }; | |
87d546d8 TG |
33140 | |
33141 | int | |
33142 | main (void) | |
33143 | { | |
33144 | ||
33145 | ||
33146 | ; | |
33147 | return 0; | |
33148 | } | |
33149 | ||
33150 | _ACEOF | |
33151 | ||
33152 | ||
33153 | ||
33154 | cat - <<_ACEOF >conftest.h | |
33155 | ||
33156 | _ACEOF | |
33157 | ||
33158 | ||
33159 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33160 | echo "obj-m := conftest.o" >build/Makefile | |
33161 | modpost_flag='' | |
33162 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33163 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33164 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33165 | (eval $ac_try) 2>&5 | |
33166 | ac_status=$? | |
33167 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33168 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33169 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33170 | (eval $ac_try) 2>&5 | |
33171 | ac_status=$? | |
33172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33173 | test $ac_status = 0; }; }; then : | |
33174 | ||
df9d7621 | 33175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
33176 | $as_echo "yes" >&6; } |
33177 | ||
df9d7621 | 33178 | $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h |
87d546d8 TG |
33179 | |
33180 | ||
33181 | else | |
33182 | $as_echo "$as_me: failed program was:" >&5 | |
33183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33184 | ||
df9d7621 CIK |
33185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33186 | $as_echo "no" >&6; } | |
87d546d8 TG |
33187 | |
33188 | ||
33189 | ||
33190 | fi | |
33191 | rm -Rf build | |
33192 | ||
33193 | ||
33194 | ||
33195 | ||
df9d7621 CIK |
33196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5 |
33197 | $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; } | |
33198 | ||
87d546d8 | 33199 | |
df9d7621 CIK |
33200 | cat confdefs.h - <<_ACEOF >conftest.c |
33201 | ||
33202 | ||
33203 | #include <linux/exportfs.h> | |
33204 | int commit_metadata(struct inode *inode) { return 0; } | |
33205 | static struct export_operations eops __attribute__ ((unused))={ | |
33206 | .commit_metadata = commit_metadata, | |
33207 | }; | |
33208 | ||
33209 | int | |
33210 | main (void) | |
33211 | { | |
33212 | ||
33213 | ||
33214 | ; | |
33215 | return 0; | |
33216 | } | |
87d546d8 | 33217 | |
df9d7621 CIK |
33218 | _ACEOF |
33219 | ||
33220 | ||
33221 | ||
33222 | cat - <<_ACEOF >conftest.h | |
33223 | ||
33224 | _ACEOF | |
33225 | ||
33226 | ||
33227 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33228 | echo "obj-m := conftest.o" >build/Makefile | |
33229 | modpost_flag='' | |
33230 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33231 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33232 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33233 | (eval $ac_try) 2>&5 | |
33234 | ac_status=$? | |
33235 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33236 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33237 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33238 | (eval $ac_try) 2>&5 | |
33239 | ac_status=$? | |
33240 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33241 | test $ac_status = 0; }; }; then : | |
33242 | ||
33243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33244 | $as_echo "yes" >&6; } | |
33245 | ||
33246 | $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h | |
33247 | ||
33248 | ||
33249 | else | |
33250 | $as_echo "$as_me: failed program was:" >&5 | |
33251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
87d546d8 | 33252 | |
df9d7621 CIK |
33253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33254 | $as_echo "no" >&6; } | |
87d546d8 TG |
33255 | |
33256 | ||
33257 | ||
33258 | fi | |
33259 | rm -Rf build | |
33260 | ||
33261 | ||
33262 | ||
df9d7621 CIK |
33263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5 |
33264 | $as_echo_n "checking whether clear_inode() is available... " >&6; } | |
87d546d8 | 33265 | |
87d546d8 TG |
33266 | |
33267 | ||
33268 | cat confdefs.h - <<_ACEOF >conftest.c | |
33269 | ||
33270 | ||
33271 | #include <linux/fs.h> | |
87d546d8 TG |
33272 | |
33273 | int | |
33274 | main (void) | |
33275 | { | |
33276 | ||
df9d7621 | 33277 | clear_inode(NULL); |
87d546d8 TG |
33278 | |
33279 | ; | |
33280 | return 0; | |
33281 | } | |
33282 | ||
33283 | _ACEOF | |
33284 | ||
33285 | ||
33286 | ||
33287 | cat - <<_ACEOF >conftest.h | |
33288 | ||
33289 | _ACEOF | |
33290 | ||
33291 | ||
33292 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33293 | echo "obj-m := conftest.o" >build/Makefile | |
33294 | modpost_flag='' | |
33295 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33296 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33297 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33298 | (eval $ac_try) 2>&5 | |
33299 | ac_status=$? | |
33300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33301 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33302 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33303 | (eval $ac_try) 2>&5 | |
33304 | ac_status=$? | |
33305 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33306 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
33307 | rc=0 |
33308 | else | |
33309 | $as_echo "$as_me: failed program was:" >&5 | |
33310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33311 | rc=1 | |
87d546d8 | 33312 | |
87d546d8 | 33313 | |
df9d7621 CIK |
33314 | fi |
33315 | rm -Rf build | |
87d546d8 TG |
33316 | |
33317 | ||
df9d7621 CIK |
33318 | if test $rc -ne 0; then : |
33319 | ||
33320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33321 | $as_echo "no" >&6; } | |
33322 | ||
33323 | else | |
33324 | if test "x$enable_linux_builtin" != xyes; then | |
33325 | ||
33326 | grep -q -E '[[:space:]]clear_inode[[:space:]]' \ | |
33327 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33328 | rc=$? | |
33329 | if test $rc -ne 0; then | |
33330 | export=0 | |
33331 | for file in fs/inode.c; do | |
33332 | grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \ | |
33333 | "$LINUX/$file" 2>/dev/null | |
33334 | rc=$? | |
33335 | if test $rc -eq 0; then | |
33336 | export=1 | |
33337 | break; | |
33338 | fi | |
33339 | done | |
33340 | if test $export -eq 0; then : | |
33341 | rc=1 | |
33342 | else : | |
33343 | rc=0 | |
33344 | fi | |
33345 | else : | |
33346 | rc=0 | |
33347 | fi | |
33348 | ||
33349 | fi | |
33350 | if test $rc -ne 0; then : | |
87d546d8 TG |
33351 | |
33352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33353 | $as_echo "no" >&6; } | |
33354 | ||
df9d7621 | 33355 | else : |
87d546d8 | 33356 | |
df9d7621 CIK |
33357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33358 | $as_echo "yes" >&6; } | |
87d546d8 | 33359 | |
df9d7621 | 33360 | $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h |
87d546d8 TG |
33361 | |
33362 | ||
df9d7621 CIK |
33363 | fi |
33364 | fi | |
87d546d8 TG |
33365 | |
33366 | ||
df9d7621 CIK |
33367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5 |
33368 | $as_echo_n "checking whether setattr_prepare() is available... " >&6; } | |
33369 | ||
87d546d8 TG |
33370 | |
33371 | ||
33372 | cat confdefs.h - <<_ACEOF >conftest.c | |
33373 | ||
33374 | ||
df9d7621 | 33375 | #include <linux/fs.h> |
87d546d8 TG |
33376 | |
33377 | int | |
33378 | main (void) | |
33379 | { | |
33380 | ||
df9d7621 CIK |
33381 | struct dentry *dentry = NULL; |
33382 | struct iattr *attr = NULL; | |
33383 | int error; | |
33384 | ||
33385 | error = setattr_prepare(dentry, attr); | |
87d546d8 TG |
33386 | |
33387 | ; | |
33388 | return 0; | |
33389 | } | |
33390 | ||
33391 | _ACEOF | |
33392 | ||
33393 | ||
33394 | ||
33395 | cat - <<_ACEOF >conftest.h | |
33396 | ||
33397 | _ACEOF | |
33398 | ||
33399 | ||
33400 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33401 | echo "obj-m := conftest.o" >build/Makefile | |
33402 | modpost_flag='' | |
33403 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33404 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33405 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33406 | (eval $ac_try) 2>&5 | |
33407 | ac_status=$? | |
33408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33409 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33410 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33411 | (eval $ac_try) 2>&5 | |
33412 | ac_status=$? | |
33413 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33414 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
33415 | rc=0 |
33416 | else | |
33417 | $as_echo "$as_me: failed program was:" >&5 | |
33418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33419 | rc=1 | |
33420 | ||
33421 | ||
33422 | fi | |
33423 | rm -Rf build | |
33424 | ||
33425 | ||
33426 | if test $rc -ne 0; then : | |
87d546d8 | 33427 | |
df9d7621 CIK |
33428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33429 | $as_echo "no" >&6; } | |
87d546d8 | 33430 | |
df9d7621 CIK |
33431 | else |
33432 | if test "x$enable_linux_builtin" != xyes; then | |
87d546d8 | 33433 | |
df9d7621 CIK |
33434 | grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \ |
33435 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33436 | rc=$? | |
33437 | if test $rc -ne 0; then | |
33438 | export=0 | |
33439 | for file in fs/attr.c; do | |
33440 | grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \ | |
33441 | "$LINUX/$file" 2>/dev/null | |
33442 | rc=$? | |
33443 | if test $rc -eq 0; then | |
33444 | export=1 | |
33445 | break; | |
33446 | fi | |
33447 | done | |
33448 | if test $export -eq 0; then : | |
33449 | rc=1 | |
33450 | else : | |
33451 | rc=0 | |
33452 | fi | |
33453 | else : | |
33454 | rc=0 | |
33455 | fi | |
87d546d8 | 33456 | |
df9d7621 CIK |
33457 | fi |
33458 | if test $rc -ne 0; then : | |
87d546d8 TG |
33459 | |
33460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33461 | $as_echo "no" >&6; } | |
33462 | ||
df9d7621 | 33463 | else : |
87d546d8 | 33464 | |
df9d7621 CIK |
33465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33466 | $as_echo "yes" >&6; } | |
87d546d8 | 33467 | |
df9d7621 | 33468 | $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h |
87d546d8 TG |
33469 | |
33470 | ||
df9d7621 CIK |
33471 | fi |
33472 | fi | |
87d546d8 TG |
33473 | |
33474 | ||
df9d7621 CIK |
33475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5 |
33476 | $as_echo_n "checking whether insert_inode_locked() is available... " >&6; } | |
33477 | ||
87d546d8 TG |
33478 | |
33479 | ||
33480 | cat confdefs.h - <<_ACEOF >conftest.c | |
33481 | ||
33482 | ||
df9d7621 | 33483 | #include <linux/fs.h> |
87d546d8 TG |
33484 | |
33485 | int | |
33486 | main (void) | |
33487 | { | |
33488 | ||
df9d7621 | 33489 | insert_inode_locked(NULL); |
87d546d8 TG |
33490 | |
33491 | ; | |
33492 | return 0; | |
33493 | } | |
33494 | ||
33495 | _ACEOF | |
33496 | ||
33497 | ||
33498 | ||
33499 | cat - <<_ACEOF >conftest.h | |
33500 | ||
33501 | _ACEOF | |
33502 | ||
33503 | ||
33504 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33505 | echo "obj-m := conftest.o" >build/Makefile | |
33506 | modpost_flag='' | |
33507 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33508 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33509 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33510 | (eval $ac_try) 2>&5 | |
33511 | ac_status=$? | |
33512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33513 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33514 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33515 | (eval $ac_try) 2>&5 | |
33516 | ac_status=$? | |
33517 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33518 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
33519 | rc=0 |
33520 | else | |
33521 | $as_echo "$as_me: failed program was:" >&5 | |
33522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33523 | rc=1 | |
87d546d8 | 33524 | |
87d546d8 | 33525 | |
df9d7621 CIK |
33526 | fi |
33527 | rm -Rf build | |
87d546d8 TG |
33528 | |
33529 | ||
df9d7621 | 33530 | if test $rc -ne 0; then : |
87d546d8 TG |
33531 | |
33532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33533 | $as_echo "no" >&6; } | |
33534 | ||
df9d7621 CIK |
33535 | else |
33536 | if test "x$enable_linux_builtin" != xyes; then | |
87d546d8 | 33537 | |
df9d7621 CIK |
33538 | grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \ |
33539 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33540 | rc=$? | |
33541 | if test $rc -ne 0; then | |
33542 | export=0 | |
33543 | for file in fs/inode.c; do | |
33544 | grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \ | |
33545 | "$LINUX/$file" 2>/dev/null | |
33546 | rc=$? | |
33547 | if test $rc -eq 0; then | |
33548 | export=1 | |
33549 | break; | |
33550 | fi | |
33551 | done | |
33552 | if test $export -eq 0; then : | |
33553 | rc=1 | |
33554 | else : | |
33555 | rc=0 | |
33556 | fi | |
33557 | else : | |
33558 | rc=0 | |
33559 | fi | |
87d546d8 | 33560 | |
df9d7621 CIK |
33561 | fi |
33562 | if test $rc -ne 0; then : | |
87d546d8 | 33563 | |
df9d7621 CIK |
33564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33565 | $as_echo "no" >&6; } | |
87d546d8 | 33566 | |
df9d7621 | 33567 | else : |
87d546d8 | 33568 | |
df9d7621 CIK |
33569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33570 | $as_echo "yes" >&6; } | |
33571 | ||
33572 | $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h | |
33573 | ||
33574 | ||
33575 | fi | |
33576 | fi | |
33577 | ||
33578 | ||
33579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5 | |
33580 | $as_echo_n "checking whether d_make_root() is available... " >&6; } | |
87d546d8 | 33581 | |
87d546d8 TG |
33582 | |
33583 | ||
33584 | cat confdefs.h - <<_ACEOF >conftest.c | |
33585 | ||
33586 | ||
df9d7621 | 33587 | #include <linux/dcache.h> |
87d546d8 TG |
33588 | |
33589 | int | |
33590 | main (void) | |
33591 | { | |
33592 | ||
df9d7621 | 33593 | d_make_root(NULL); |
87d546d8 TG |
33594 | |
33595 | ; | |
33596 | return 0; | |
33597 | } | |
33598 | ||
33599 | _ACEOF | |
33600 | ||
33601 | ||
33602 | ||
33603 | cat - <<_ACEOF >conftest.h | |
33604 | ||
33605 | _ACEOF | |
33606 | ||
33607 | ||
33608 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33609 | echo "obj-m := conftest.o" >build/Makefile | |
33610 | modpost_flag='' | |
33611 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33612 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33613 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33614 | (eval $ac_try) 2>&5 | |
33615 | ac_status=$? | |
33616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33617 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33618 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33619 | (eval $ac_try) 2>&5 | |
33620 | ac_status=$? | |
33621 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33622 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
33623 | rc=0 |
33624 | else | |
33625 | $as_echo "$as_me: failed program was:" >&5 | |
33626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33627 | rc=1 | |
87d546d8 | 33628 | |
87d546d8 | 33629 | |
df9d7621 CIK |
33630 | fi |
33631 | rm -Rf build | |
87d546d8 TG |
33632 | |
33633 | ||
df9d7621 | 33634 | if test $rc -ne 0; then : |
87d546d8 TG |
33635 | |
33636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33637 | $as_echo "no" >&6; } | |
33638 | ||
df9d7621 CIK |
33639 | else |
33640 | if test "x$enable_linux_builtin" != xyes; then | |
87d546d8 | 33641 | |
df9d7621 CIK |
33642 | grep -q -E '[[:space:]]d_make_root[[:space:]]' \ |
33643 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33644 | rc=$? | |
33645 | if test $rc -ne 0; then | |
33646 | export=0 | |
33647 | for file in fs/dcache.c; do | |
33648 | grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \ | |
33649 | "$LINUX/$file" 2>/dev/null | |
33650 | rc=$? | |
33651 | if test $rc -eq 0; then | |
33652 | export=1 | |
33653 | break; | |
33654 | fi | |
33655 | done | |
33656 | if test $export -eq 0; then : | |
33657 | rc=1 | |
33658 | else : | |
33659 | rc=0 | |
33660 | fi | |
33661 | else : | |
33662 | rc=0 | |
33663 | fi | |
87d546d8 | 33664 | |
df9d7621 CIK |
33665 | fi |
33666 | if test $rc -ne 0; then : | |
87d546d8 | 33667 | |
df9d7621 CIK |
33668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33669 | $as_echo "no" >&6; } | |
87d546d8 | 33670 | |
df9d7621 | 33671 | else : |
87d546d8 | 33672 | |
df9d7621 CIK |
33673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33674 | $as_echo "yes" >&6; } | |
33675 | ||
33676 | $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h | |
33677 | ||
33678 | ||
33679 | fi | |
33680 | fi | |
33681 | ||
33682 | ||
33683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5 | |
33684 | $as_echo_n "checking whether d_obtain_alias() is available... " >&6; } | |
87d546d8 TG |
33685 | |
33686 | ||
33687 | ||
33688 | cat confdefs.h - <<_ACEOF >conftest.c | |
33689 | ||
33690 | ||
df9d7621 | 33691 | #include <linux/dcache.h> |
87d546d8 TG |
33692 | |
33693 | int | |
33694 | main (void) | |
33695 | { | |
33696 | ||
df9d7621 | 33697 | d_obtain_alias(NULL); |
87d546d8 TG |
33698 | |
33699 | ; | |
33700 | return 0; | |
33701 | } | |
33702 | ||
33703 | _ACEOF | |
33704 | ||
33705 | ||
33706 | ||
33707 | cat - <<_ACEOF >conftest.h | |
33708 | ||
33709 | _ACEOF | |
33710 | ||
33711 | ||
33712 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33713 | echo "obj-m := conftest.o" >build/Makefile | |
33714 | modpost_flag='' | |
33715 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33716 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33717 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33718 | (eval $ac_try) 2>&5 | |
33719 | ac_status=$? | |
33720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33721 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33722 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33723 | (eval $ac_try) 2>&5 | |
33724 | ac_status=$? | |
33725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33726 | test $ac_status = 0; }; }; then : | |
33727 | rc=0 | |
33728 | else | |
33729 | $as_echo "$as_me: failed program was:" >&5 | |
33730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33731 | rc=1 | |
33732 | ||
33733 | ||
33734 | fi | |
33735 | rm -Rf build | |
33736 | ||
33737 | ||
33738 | if test $rc -ne 0; then : | |
33739 | ||
33740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33741 | $as_echo "no" >&6; } | |
33742 | ||
33743 | else | |
33744 | if test "x$enable_linux_builtin" != xyes; then | |
33745 | ||
df9d7621 | 33746 | grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \ |
87d546d8 TG |
33747 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
33748 | rc=$? | |
33749 | if test $rc -ne 0; then | |
33750 | export=0 | |
df9d7621 CIK |
33751 | for file in fs/dcache.c; do |
33752 | grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \ | |
87d546d8 TG |
33753 | "$LINUX/$file" 2>/dev/null |
33754 | rc=$? | |
33755 | if test $rc -eq 0; then | |
33756 | export=1 | |
33757 | break; | |
33758 | fi | |
33759 | done | |
33760 | if test $export -eq 0; then : | |
33761 | rc=1 | |
33762 | else : | |
33763 | rc=0 | |
33764 | fi | |
33765 | else : | |
33766 | rc=0 | |
33767 | fi | |
33768 | ||
33769 | fi | |
33770 | if test $rc -ne 0; then : | |
33771 | ||
33772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33773 | $as_echo "no" >&6; } | |
33774 | ||
33775 | else : | |
33776 | ||
33777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33778 | $as_echo "yes" >&6; } | |
33779 | ||
df9d7621 | 33780 | $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h |
87d546d8 TG |
33781 | |
33782 | ||
33783 | fi | |
33784 | fi | |
33785 | ||
33786 | ||
df9d7621 CIK |
33787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5 |
33788 | $as_echo_n "checking whether d_prune_aliases() is available... " >&6; } | |
87d546d8 TG |
33789 | |
33790 | ||
33791 | ||
33792 | cat confdefs.h - <<_ACEOF >conftest.c | |
33793 | ||
33794 | ||
df9d7621 | 33795 | #include <linux/dcache.h> |
87d546d8 TG |
33796 | |
33797 | int | |
33798 | main (void) | |
33799 | { | |
33800 | ||
df9d7621 CIK |
33801 | struct inode *ip = NULL; |
33802 | d_prune_aliases(ip); | |
87d546d8 TG |
33803 | |
33804 | ; | |
33805 | return 0; | |
33806 | } | |
33807 | ||
33808 | _ACEOF | |
33809 | ||
33810 | ||
33811 | ||
33812 | cat - <<_ACEOF >conftest.h | |
33813 | ||
33814 | _ACEOF | |
33815 | ||
33816 | ||
33817 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33818 | echo "obj-m := conftest.o" >build/Makefile | |
33819 | modpost_flag='' | |
33820 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33821 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33822 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33823 | (eval $ac_try) 2>&5 | |
33824 | ac_status=$? | |
33825 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33826 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33827 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33828 | (eval $ac_try) 2>&5 | |
33829 | ac_status=$? | |
33830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33831 | test $ac_status = 0; }; }; then : | |
33832 | rc=0 | |
33833 | else | |
33834 | $as_echo "$as_me: failed program was:" >&5 | |
33835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33836 | rc=1 | |
33837 | ||
33838 | ||
33839 | fi | |
33840 | rm -Rf build | |
33841 | ||
33842 | ||
33843 | if test $rc -ne 0; then : | |
33844 | ||
33845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33846 | $as_echo "no" >&6; } | |
33847 | ||
33848 | else | |
33849 | if test "x$enable_linux_builtin" != xyes; then | |
33850 | ||
df9d7621 | 33851 | grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \ |
87d546d8 TG |
33852 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
33853 | rc=$? | |
33854 | if test $rc -ne 0; then | |
33855 | export=0 | |
df9d7621 CIK |
33856 | for file in fs/dcache.c; do |
33857 | grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \ | |
87d546d8 TG |
33858 | "$LINUX/$file" 2>/dev/null |
33859 | rc=$? | |
33860 | if test $rc -eq 0; then | |
33861 | export=1 | |
33862 | break; | |
33863 | fi | |
33864 | done | |
33865 | if test $export -eq 0; then : | |
33866 | rc=1 | |
33867 | else : | |
33868 | rc=0 | |
33869 | fi | |
33870 | else : | |
33871 | rc=0 | |
33872 | fi | |
33873 | ||
33874 | fi | |
33875 | if test $rc -ne 0; then : | |
33876 | ||
33877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33878 | $as_echo "no" >&6; } | |
33879 | ||
33880 | else : | |
33881 | ||
33882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33883 | $as_echo "yes" >&6; } | |
33884 | ||
df9d7621 | 33885 | $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h |
87d546d8 TG |
33886 | |
33887 | ||
33888 | fi | |
33889 | fi | |
33890 | ||
33891 | ||
df9d7621 CIK |
33892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5 |
33893 | $as_echo_n "checking whether d_set_d_op() is available... " >&6; } | |
87d546d8 TG |
33894 | |
33895 | ||
33896 | ||
33897 | cat confdefs.h - <<_ACEOF >conftest.c | |
33898 | ||
33899 | ||
df9d7621 | 33900 | #include <linux/dcache.h> |
87d546d8 TG |
33901 | |
33902 | int | |
33903 | main (void) | |
33904 | { | |
33905 | ||
df9d7621 | 33906 | d_set_d_op(NULL, NULL); |
87d546d8 TG |
33907 | |
33908 | ; | |
33909 | return 0; | |
33910 | } | |
33911 | ||
33912 | _ACEOF | |
33913 | ||
33914 | ||
33915 | ||
33916 | cat - <<_ACEOF >conftest.h | |
33917 | ||
33918 | _ACEOF | |
33919 | ||
33920 | ||
33921 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33922 | echo "obj-m := conftest.o" >build/Makefile | |
33923 | modpost_flag='' | |
33924 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33925 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33926 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33927 | (eval $ac_try) 2>&5 | |
33928 | ac_status=$? | |
33929 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33930 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33931 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33932 | (eval $ac_try) 2>&5 | |
33933 | ac_status=$? | |
33934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33935 | test $ac_status = 0; }; }; then : | |
33936 | rc=0 | |
33937 | else | |
33938 | $as_echo "$as_me: failed program was:" >&5 | |
33939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33940 | rc=1 | |
33941 | ||
33942 | ||
33943 | fi | |
33944 | rm -Rf build | |
33945 | ||
33946 | ||
33947 | if test $rc -ne 0; then : | |
33948 | ||
33949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33950 | $as_echo "no" >&6; } | |
33951 | ||
33952 | else | |
33953 | if test "x$enable_linux_builtin" != xyes; then | |
33954 | ||
df9d7621 | 33955 | grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \ |
87d546d8 TG |
33956 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
33957 | rc=$? | |
33958 | if test $rc -ne 0; then | |
33959 | export=0 | |
df9d7621 CIK |
33960 | for file in fs/dcache.c; do |
33961 | grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \ | |
87d546d8 TG |
33962 | "$LINUX/$file" 2>/dev/null |
33963 | rc=$? | |
33964 | if test $rc -eq 0; then | |
33965 | export=1 | |
33966 | break; | |
33967 | fi | |
33968 | done | |
33969 | if test $export -eq 0; then : | |
33970 | rc=1 | |
33971 | else : | |
33972 | rc=0 | |
33973 | fi | |
33974 | else : | |
33975 | rc=0 | |
33976 | fi | |
33977 | ||
33978 | fi | |
33979 | if test $rc -ne 0; then : | |
33980 | ||
33981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33982 | $as_echo "no" >&6; } | |
33983 | ||
33984 | else : | |
33985 | ||
33986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33987 | $as_echo "yes" >&6; } | |
33988 | ||
df9d7621 | 33989 | $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h |
87d546d8 TG |
33990 | |
33991 | ||
33992 | fi | |
33993 | fi | |
33994 | ||
33995 | ||
87d546d8 | 33996 | |
df9d7621 CIK |
33997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5 |
33998 | $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; } | |
87d546d8 TG |
33999 | |
34000 | ||
34001 | cat confdefs.h - <<_ACEOF >conftest.c | |
34002 | ||
34003 | ||
34004 | #include <linux/dcache.h> | |
34005 | ||
df9d7621 CIK |
34006 | int revalidate (struct dentry *dentry, |
34007 | struct nameidata *nidata) { return 0; } | |
34008 | ||
34009 | static const struct dentry_operations | |
34010 | dops __attribute__ ((unused)) = { | |
34011 | .d_revalidate = revalidate, | |
34012 | }; | |
34013 | ||
87d546d8 TG |
34014 | int |
34015 | main (void) | |
34016 | { | |
34017 | ||
87d546d8 TG |
34018 | |
34019 | ; | |
34020 | return 0; | |
34021 | } | |
34022 | ||
34023 | _ACEOF | |
34024 | ||
34025 | ||
34026 | ||
34027 | cat - <<_ACEOF >conftest.h | |
34028 | ||
34029 | _ACEOF | |
34030 | ||
34031 | ||
34032 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34033 | echo "obj-m := conftest.o" >build/Makefile | |
34034 | modpost_flag='' | |
34035 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34036 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34037 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34038 | (eval $ac_try) 2>&5 | |
34039 | ac_status=$? | |
34040 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34041 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34042 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34043 | (eval $ac_try) 2>&5 | |
34044 | ac_status=$? | |
34045 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34046 | test $ac_status = 0; }; }; then : | |
87d546d8 | 34047 | |
df9d7621 CIK |
34048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
34049 | $as_echo "yes" >&6; } | |
87d546d8 | 34050 | |
df9d7621 | 34051 | $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h |
87d546d8 | 34052 | |
87d546d8 | 34053 | |
df9d7621 CIK |
34054 | else |
34055 | $as_echo "$as_me: failed program was:" >&5 | |
34056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
87d546d8 TG |
34057 | |
34058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34059 | $as_echo "no" >&6; } | |
34060 | ||
87d546d8 | 34061 | |
87d546d8 | 34062 | |
df9d7621 CIK |
34063 | fi |
34064 | rm -Rf build | |
87d546d8 | 34065 | |
87d546d8 TG |
34066 | |
34067 | ||
87d546d8 | 34068 | |
df9d7621 CIK |
34069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5 |
34070 | $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; } | |
87d546d8 TG |
34071 | |
34072 | ||
34073 | cat confdefs.h - <<_ACEOF >conftest.c | |
34074 | ||
34075 | ||
34076 | #include <linux/dcache.h> | |
34077 | ||
df9d7621 CIK |
34078 | const struct dentry_operations test_d_op = { |
34079 | .d_revalidate = NULL, | |
34080 | }; | |
34081 | ||
87d546d8 TG |
34082 | int |
34083 | main (void) | |
34084 | { | |
34085 | ||
df9d7621 CIK |
34086 | struct dentry d __attribute__ ((unused)); |
34087 | ||
34088 | d.d_op = &test_d_op; | |
87d546d8 TG |
34089 | |
34090 | ; | |
34091 | return 0; | |
34092 | } | |
34093 | ||
34094 | _ACEOF | |
34095 | ||
34096 | ||
34097 | ||
34098 | cat - <<_ACEOF >conftest.h | |
34099 | ||
34100 | _ACEOF | |
34101 | ||
34102 | ||
34103 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34104 | echo "obj-m := conftest.o" >build/Makefile | |
34105 | modpost_flag='' | |
34106 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34107 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34108 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34109 | (eval $ac_try) 2>&5 | |
34110 | ac_status=$? | |
34111 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34112 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34113 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34114 | (eval $ac_try) 2>&5 | |
34115 | ac_status=$? | |
34116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34117 | test $ac_status = 0; }; }; then : | |
87d546d8 | 34118 | |
df9d7621 CIK |
34119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
34120 | $as_echo "yes" >&6; } | |
87d546d8 | 34121 | |
df9d7621 | 34122 | $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h |
87d546d8 | 34123 | |
87d546d8 | 34124 | |
df9d7621 CIK |
34125 | else |
34126 | $as_echo "$as_me: failed program was:" >&5 | |
34127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
87d546d8 TG |
34128 | |
34129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34130 | $as_echo "no" >&6; } | |
34131 | ||
87d546d8 | 34132 | |
87d546d8 | 34133 | |
df9d7621 CIK |
34134 | fi |
34135 | rm -Rf build | |
87d546d8 | 34136 | |
87d546d8 TG |
34137 | |
34138 | ||
df9d7621 CIK |
34139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5 |
34140 | $as_echo_n "checking whether check_disk_size_change() is available... " >&6; } | |
87d546d8 TG |
34141 | |
34142 | ||
34143 | ||
34144 | cat confdefs.h - <<_ACEOF >conftest.c | |
34145 | ||
34146 | ||
df9d7621 | 34147 | #include <linux/fs.h> |
87d546d8 TG |
34148 | |
34149 | int | |
34150 | main (void) | |
34151 | { | |
34152 | ||
df9d7621 | 34153 | check_disk_size_change(NULL, NULL); |
87d546d8 TG |
34154 | |
34155 | ; | |
34156 | return 0; | |
34157 | } | |
34158 | ||
34159 | _ACEOF | |
34160 | ||
34161 | ||
34162 | ||
34163 | cat - <<_ACEOF >conftest.h | |
34164 | ||
34165 | _ACEOF | |
34166 | ||
34167 | ||
34168 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34169 | echo "obj-m := conftest.o" >build/Makefile | |
34170 | modpost_flag='' | |
34171 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34172 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34173 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34174 | (eval $ac_try) 2>&5 | |
34175 | ac_status=$? | |
34176 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34177 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34178 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34179 | (eval $ac_try) 2>&5 | |
34180 | ac_status=$? | |
34181 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34182 | test $ac_status = 0; }; }; then : | |
34183 | rc=0 | |
34184 | else | |
34185 | $as_echo "$as_me: failed program was:" >&5 | |
34186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34187 | rc=1 | |
34188 | ||
34189 | ||
34190 | fi | |
34191 | rm -Rf build | |
34192 | ||
34193 | ||
34194 | if test $rc -ne 0; then : | |
34195 | ||
34196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34197 | $as_echo "no" >&6; } | |
34198 | ||
34199 | else | |
34200 | if test "x$enable_linux_builtin" != xyes; then | |
34201 | ||
df9d7621 | 34202 | grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \ |
87d546d8 TG |
34203 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
34204 | rc=$? | |
34205 | if test $rc -ne 0; then | |
34206 | export=0 | |
df9d7621 CIK |
34207 | for file in fs/block_dev.c; do |
34208 | grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \ | |
87d546d8 TG |
34209 | "$LINUX/$file" 2>/dev/null |
34210 | rc=$? | |
34211 | if test $rc -eq 0; then | |
34212 | export=1 | |
34213 | break; | |
34214 | fi | |
34215 | done | |
34216 | if test $export -eq 0; then : | |
34217 | rc=1 | |
34218 | else : | |
34219 | rc=0 | |
34220 | fi | |
34221 | else : | |
34222 | rc=0 | |
34223 | fi | |
34224 | ||
34225 | fi | |
34226 | if test $rc -ne 0; then : | |
34227 | ||
34228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34229 | $as_echo "no" >&6; } | |
34230 | ||
34231 | else : | |
34232 | ||
34233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34234 | $as_echo "yes" >&6; } | |
34235 | ||
df9d7621 | 34236 | $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h |
87d546d8 TG |
34237 | |
34238 | ||
34239 | fi | |
34240 | fi | |
34241 | ||
34242 | ||
df9d7621 CIK |
34243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5 |
34244 | $as_echo_n "checking whether truncate_setsize() is available... " >&6; } | |
87d546d8 TG |
34245 | |
34246 | ||
34247 | ||
34248 | cat confdefs.h - <<_ACEOF >conftest.c | |
34249 | ||
34250 | ||
df9d7621 | 34251 | #include <linux/mm.h> |
87d546d8 TG |
34252 | |
34253 | int | |
34254 | main (void) | |
34255 | { | |
34256 | ||
df9d7621 | 34257 | truncate_setsize(NULL, 0); |
87d546d8 TG |
34258 | |
34259 | ; | |
34260 | return 0; | |
34261 | } | |
34262 | ||
34263 | _ACEOF | |
34264 | ||
34265 | ||
34266 | ||
34267 | cat - <<_ACEOF >conftest.h | |
34268 | ||
34269 | _ACEOF | |
34270 | ||
34271 | ||
34272 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34273 | echo "obj-m := conftest.o" >build/Makefile | |
34274 | modpost_flag='' | |
34275 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34276 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34277 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34278 | (eval $ac_try) 2>&5 | |
34279 | ac_status=$? | |
34280 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34281 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34282 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34283 | (eval $ac_try) 2>&5 | |
34284 | ac_status=$? | |
34285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34286 | test $ac_status = 0; }; }; then : | |
34287 | rc=0 | |
34288 | else | |
34289 | $as_echo "$as_me: failed program was:" >&5 | |
34290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34291 | rc=1 | |
34292 | ||
34293 | ||
34294 | fi | |
34295 | rm -Rf build | |
34296 | ||
34297 | ||
34298 | if test $rc -ne 0; then : | |
34299 | ||
34300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34301 | $as_echo "no" >&6; } | |
34302 | ||
34303 | else | |
34304 | if test "x$enable_linux_builtin" != xyes; then | |
34305 | ||
df9d7621 | 34306 | grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \ |
87d546d8 TG |
34307 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
34308 | rc=$? | |
34309 | if test $rc -ne 0; then | |
34310 | export=0 | |
df9d7621 CIK |
34311 | for file in mm/truncate.c; do |
34312 | grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \ | |
87d546d8 TG |
34313 | "$LINUX/$file" 2>/dev/null |
34314 | rc=$? | |
34315 | if test $rc -eq 0; then | |
34316 | export=1 | |
34317 | break; | |
34318 | fi | |
34319 | done | |
34320 | if test $export -eq 0; then : | |
34321 | rc=1 | |
34322 | else : | |
34323 | rc=0 | |
34324 | fi | |
34325 | else : | |
34326 | rc=0 | |
34327 | fi | |
34328 | ||
34329 | fi | |
34330 | if test $rc -ne 0; then : | |
34331 | ||
34332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34333 | $as_echo "no" >&6; } | |
34334 | ||
34335 | else : | |
34336 | ||
34337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34338 | $as_echo "yes" >&6; } | |
34339 | ||
df9d7621 | 34340 | $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h |
87d546d8 TG |
34341 | |
34342 | ||
34343 | fi | |
34344 | fi | |
34345 | ||
34346 | ||
34347 | ||
df9d7621 CIK |
34348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5 |
34349 | $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; } | |
87d546d8 TG |
34350 | |
34351 | ||
34352 | cat confdefs.h - <<_ACEOF >conftest.c | |
34353 | ||
34354 | ||
df9d7621 | 34355 | #include <linux/security.h> |
87d546d8 TG |
34356 | |
34357 | int | |
34358 | main (void) | |
34359 | { | |
34360 | ||
df9d7621 CIK |
34361 | struct inode *ip __attribute__ ((unused)) = NULL; |
34362 | struct inode *dip __attribute__ ((unused)) = NULL; | |
34363 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
34364 | char *name __attribute__ ((unused)) = NULL; | |
34365 | void *value __attribute__ ((unused)) = NULL; | |
34366 | size_t len __attribute__ ((unused)) = 0; | |
34367 | ||
34368 | security_inode_init_security(ip, dip, str, &name, &value, &len); | |
87d546d8 TG |
34369 | |
34370 | ; | |
34371 | return 0; | |
34372 | } | |
34373 | ||
34374 | _ACEOF | |
34375 | ||
34376 | ||
34377 | ||
34378 | cat - <<_ACEOF >conftest.h | |
34379 | ||
34380 | _ACEOF | |
34381 | ||
34382 | ||
34383 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34384 | echo "obj-m := conftest.o" >build/Makefile | |
34385 | modpost_flag='' | |
34386 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34387 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34388 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34389 | (eval $ac_try) 2>&5 | |
34390 | ac_status=$? | |
34391 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34392 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34393 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34394 | (eval $ac_try) 2>&5 | |
34395 | ac_status=$? | |
34396 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34397 | test $ac_status = 0; }; }; then : | |
34398 | ||
34399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34400 | $as_echo "yes" >&6; } | |
34401 | ||
df9d7621 | 34402 | $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h |
87d546d8 TG |
34403 | |
34404 | ||
34405 | else | |
34406 | $as_echo "$as_me: failed program was:" >&5 | |
34407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34408 | ||
34409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34410 | $as_echo "no" >&6; } | |
34411 | ||
34412 | ||
34413 | ||
34414 | fi | |
34415 | rm -Rf build | |
34416 | ||
34417 | ||
34418 | ||
34419 | ||
df9d7621 CIK |
34420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5 |
34421 | $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; } | |
87d546d8 TG |
34422 | |
34423 | ||
34424 | cat confdefs.h - <<_ACEOF >conftest.c | |
34425 | ||
34426 | ||
df9d7621 | 34427 | #include <linux/security.h> |
87d546d8 TG |
34428 | |
34429 | int | |
34430 | main (void) | |
34431 | { | |
34432 | ||
df9d7621 CIK |
34433 | struct inode *ip __attribute__ ((unused)) = NULL; |
34434 | struct inode *dip __attribute__ ((unused)) = NULL; | |
34435 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
34436 | initxattrs func __attribute__ ((unused)) = NULL; | |
87d546d8 | 34437 | |
df9d7621 | 34438 | security_inode_init_security(ip, dip, str, func, NULL); |
87d546d8 TG |
34439 | |
34440 | ; | |
34441 | return 0; | |
34442 | } | |
34443 | ||
34444 | _ACEOF | |
34445 | ||
34446 | ||
34447 | ||
34448 | cat - <<_ACEOF >conftest.h | |
34449 | ||
34450 | _ACEOF | |
34451 | ||
34452 | ||
34453 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34454 | echo "obj-m := conftest.o" >build/Makefile | |
34455 | modpost_flag='' | |
34456 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34457 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34458 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34459 | (eval $ac_try) 2>&5 | |
34460 | ac_status=$? | |
34461 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34462 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34463 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34464 | (eval $ac_try) 2>&5 | |
34465 | ac_status=$? | |
34466 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34467 | test $ac_status = 0; }; }; then : | |
34468 | ||
34469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34470 | $as_echo "yes" >&6; } | |
34471 | ||
df9d7621 | 34472 | $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h |
87d546d8 TG |
34473 | |
34474 | ||
34475 | else | |
34476 | $as_echo "$as_me: failed program was:" >&5 | |
34477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34478 | ||
34479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34480 | $as_echo "no" >&6; } | |
34481 | ||
34482 | ||
34483 | ||
34484 | fi | |
34485 | rm -Rf build | |
34486 | ||
34487 | ||
34488 | ||
df9d7621 CIK |
34489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5 |
34490 | $as_echo_n "checking whether mount_nodev() is available... " >&6; } | |
87d546d8 TG |
34491 | |
34492 | ||
34493 | ||
34494 | cat confdefs.h - <<_ACEOF >conftest.c | |
34495 | ||
34496 | ||
34497 | #include <linux/fs.h> | |
34498 | ||
34499 | int | |
34500 | main (void) | |
34501 | { | |
34502 | ||
df9d7621 | 34503 | mount_nodev(NULL, 0, NULL, NULL); |
87d546d8 TG |
34504 | |
34505 | ; | |
34506 | return 0; | |
34507 | } | |
34508 | ||
34509 | _ACEOF | |
34510 | ||
34511 | ||
34512 | ||
34513 | cat - <<_ACEOF >conftest.h | |
34514 | ||
34515 | _ACEOF | |
34516 | ||
34517 | ||
34518 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34519 | echo "obj-m := conftest.o" >build/Makefile | |
34520 | modpost_flag='' | |
34521 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34522 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34523 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34524 | (eval $ac_try) 2>&5 | |
34525 | ac_status=$? | |
34526 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34527 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34528 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34529 | (eval $ac_try) 2>&5 | |
34530 | ac_status=$? | |
34531 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34532 | test $ac_status = 0; }; }; then : | |
34533 | rc=0 | |
34534 | else | |
34535 | $as_echo "$as_me: failed program was:" >&5 | |
34536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34537 | rc=1 | |
34538 | ||
34539 | ||
34540 | fi | |
34541 | rm -Rf build | |
34542 | ||
34543 | ||
34544 | if test $rc -ne 0; then : | |
34545 | ||
34546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34547 | $as_echo "no" >&6; } | |
34548 | ||
34549 | else | |
34550 | if test "x$enable_linux_builtin" != xyes; then | |
34551 | ||
df9d7621 | 34552 | grep -q -E '[[:space:]]mount_nodev[[:space:]]' \ |
87d546d8 TG |
34553 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null |
34554 | rc=$? | |
34555 | if test $rc -ne 0; then | |
34556 | export=0 | |
df9d7621 CIK |
34557 | for file in fs/super.c; do |
34558 | grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \ | |
87d546d8 TG |
34559 | "$LINUX/$file" 2>/dev/null |
34560 | rc=$? | |
34561 | if test $rc -eq 0; then | |
34562 | export=1 | |
34563 | break; | |
34564 | fi | |
34565 | done | |
34566 | if test $export -eq 0; then : | |
34567 | rc=1 | |
34568 | else : | |
34569 | rc=0 | |
34570 | fi | |
34571 | else : | |
34572 | rc=0 | |
34573 | fi | |
34574 | ||
34575 | fi | |
34576 | if test $rc -ne 0; then : | |
34577 | ||
34578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34579 | $as_echo "no" >&6; } | |
34580 | ||
34581 | else : | |
34582 | ||
34583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34584 | $as_echo "yes" >&6; } | |
34585 | ||
df9d7621 | 34586 | $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h |
87d546d8 TG |
34587 | |
34588 | ||
34589 | fi | |
34590 | fi | |
34591 | ||
34592 | ||
87d546d8 | 34593 | |
df9d7621 CIK |
34594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5 |
34595 | $as_echo_n "checking whether super_block has s_shrink... " >&6; } | |
87d546d8 TG |
34596 | |
34597 | ||
34598 | cat confdefs.h - <<_ACEOF >conftest.c | |
34599 | ||
34600 | ||
df9d7621 CIK |
34601 | #include <linux/fs.h> |
34602 | ||
34603 | int shrink(struct shrinker *s, struct shrink_control *sc) | |
34604 | { return 0; } | |
34605 | ||
34606 | static const struct super_block | |
34607 | sb __attribute__ ((unused)) = { | |
34608 | .s_shrink.shrink = shrink, | |
34609 | .s_shrink.seeks = DEFAULT_SEEKS, | |
34610 | .s_shrink.batch = 0, | |
34611 | }; | |
87d546d8 TG |
34612 | |
34613 | int | |
34614 | main (void) | |
34615 | { | |
34616 | ||
87d546d8 TG |
34617 | |
34618 | ; | |
34619 | return 0; | |
34620 | } | |
34621 | ||
34622 | _ACEOF | |
34623 | ||
34624 | ||
34625 | ||
34626 | cat - <<_ACEOF >conftest.h | |
34627 | ||
34628 | _ACEOF | |
34629 | ||
34630 | ||
34631 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34632 | echo "obj-m := conftest.o" >build/Makefile | |
34633 | modpost_flag='' | |
34634 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34635 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34636 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34637 | (eval $ac_try) 2>&5 | |
34638 | ac_status=$? | |
34639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34640 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34641 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34642 | (eval $ac_try) 2>&5 | |
34643 | ac_status=$? | |
34644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34645 | test $ac_status = 0; }; }; then : | |
87d546d8 | 34646 | |
df9d7621 CIK |
34647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
34648 | $as_echo "yes" >&6; } | |
87d546d8 | 34649 | |
df9d7621 | 34650 | $as_echo "#define HAVE_SHRINK 1" >>confdefs.h |
87d546d8 | 34651 | |
df9d7621 CIK |
34652 | |
34653 | ||
34654 | else | |
34655 | $as_echo "$as_me: failed program was:" >&5 | |
34656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
87d546d8 TG |
34657 | |
34658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34659 | $as_echo "no" >&6; } | |
34660 | ||
87d546d8 | 34661 | |
87d546d8 | 34662 | |
df9d7621 CIK |
34663 | fi |
34664 | rm -Rf build | |
87d546d8 | 34665 | |
87d546d8 TG |
34666 | |
34667 | ||
34668 | ||
df9d7621 CIK |
34669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5 |
34670 | $as_echo_n "checking whether shrink_control has nid... " >&6; } | |
87d546d8 TG |
34671 | |
34672 | ||
34673 | cat confdefs.h - <<_ACEOF >conftest.c | |
34674 | ||
34675 | ||
df9d7621 | 34676 | #include <linux/fs.h> |
87d546d8 TG |
34677 | |
34678 | int | |
34679 | main (void) | |
34680 | { | |
34681 | ||
df9d7621 CIK |
34682 | struct shrink_control sc __attribute__ ((unused)); |
34683 | unsigned long scnidsize __attribute__ ((unused)) = | |
34684 | sizeof(sc.nid); | |
87d546d8 TG |
34685 | |
34686 | ; | |
34687 | return 0; | |
34688 | } | |
34689 | ||
34690 | _ACEOF | |
34691 | ||
34692 | ||
34693 | ||
34694 | cat - <<_ACEOF >conftest.h | |
34695 | ||
34696 | _ACEOF | |
34697 | ||
34698 | ||
34699 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34700 | echo "obj-m := conftest.o" >build/Makefile | |
34701 | modpost_flag='' | |
34702 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34703 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34704 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34705 | (eval $ac_try) 2>&5 | |
34706 | ac_status=$? | |
34707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34708 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34709 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34710 | (eval $ac_try) 2>&5 | |
34711 | ac_status=$? | |
34712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34713 | test $ac_status = 0; }; }; then : | |
34714 | ||
34715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34716 | $as_echo "yes" >&6; } | |
34717 | ||
df9d7621 | 34718 | $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h |
87d546d8 TG |
34719 | |
34720 | ||
34721 | else | |
34722 | $as_echo "$as_me: failed program was:" >&5 | |
34723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34724 | ||
34725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34726 | $as_echo "no" >&6; } | |
34727 | ||
34728 | ||
34729 | ||
34730 | fi | |
34731 | rm -Rf build | |
34732 | ||
34733 | ||
34734 | ||
34735 | ||
df9d7621 CIK |
34736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5 |
34737 | $as_echo_n "checking whether super_block has s_instances list_head... " >&6; } | |
87d546d8 TG |
34738 | |
34739 | ||
34740 | cat confdefs.h - <<_ACEOF >conftest.c | |
34741 | ||
34742 | ||
df9d7621 | 34743 | #include <linux/fs.h> |
87d546d8 TG |
34744 | |
34745 | int | |
34746 | main (void) | |
34747 | { | |
34748 | ||
df9d7621 | 34749 | struct super_block sb __attribute__ ((unused)); |
87d546d8 | 34750 | |
df9d7621 | 34751 | INIT_LIST_HEAD(&sb.s_instances); |
87d546d8 TG |
34752 | |
34753 | ; | |
34754 | return 0; | |
34755 | } | |
34756 | ||
34757 | _ACEOF | |
34758 | ||
34759 | ||
34760 | ||
34761 | cat - <<_ACEOF >conftest.h | |
34762 | ||
34763 | _ACEOF | |
34764 | ||
34765 | ||
34766 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34767 | echo "obj-m := conftest.o" >build/Makefile | |
34768 | modpost_flag='' | |
34769 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34770 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34771 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34772 | (eval $ac_try) 2>&5 | |
34773 | ac_status=$? | |
34774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34775 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34776 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34777 | (eval $ac_try) 2>&5 | |
34778 | ac_status=$? | |
34779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34780 | test $ac_status = 0; }; }; then : | |
34781 | ||
34782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34783 | $as_echo "yes" >&6; } | |
34784 | ||
df9d7621 | 34785 | $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h |
87d546d8 TG |
34786 | |
34787 | ||
34788 | else | |
34789 | $as_echo "$as_me: failed program was:" >&5 | |
34790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34791 | ||
34792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34793 | $as_echo "no" >&6; } | |
34794 | ||
34795 | ||
34796 | ||
34797 | fi | |
34798 | rm -Rf build | |
34799 | ||
34800 | ||
34801 | ||
df9d7621 CIK |
34802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5 |
34803 | $as_echo_n "checking whether super_block has s_d_op... " >&6; } | |
87d546d8 TG |
34804 | |
34805 | ||
34806 | cat confdefs.h - <<_ACEOF >conftest.c | |
34807 | ||
34808 | ||
34809 | #include <linux/fs.h> | |
34810 | ||
34811 | int | |
34812 | main (void) | |
34813 | { | |
34814 | ||
df9d7621 CIK |
34815 | struct super_block sb __attribute__ ((unused)); |
34816 | sb.s_d_op = NULL; | |
87d546d8 TG |
34817 | |
34818 | ; | |
34819 | return 0; | |
34820 | } | |
34821 | ||
34822 | _ACEOF | |
34823 | ||
34824 | ||
34825 | ||
34826 | cat - <<_ACEOF >conftest.h | |
34827 | ||
34828 | _ACEOF | |
34829 | ||
34830 | ||
34831 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34832 | echo "obj-m := conftest.o" >build/Makefile | |
34833 | modpost_flag='' | |
34834 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34835 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34836 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34837 | (eval $ac_try) 2>&5 | |
34838 | ac_status=$? | |
34839 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34840 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34841 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34842 | (eval $ac_try) 2>&5 | |
34843 | ac_status=$? | |
34844 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34845 | test $ac_status = 0; }; }; then : | |
87d546d8 | 34846 | |
df9d7621 CIK |
34847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
34848 | $as_echo "yes" >&6; } | |
87d546d8 | 34849 | |
df9d7621 | 34850 | $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h |
87d546d8 | 34851 | |
87d546d8 | 34852 | |
df9d7621 CIK |
34853 | else |
34854 | $as_echo "$as_me: failed program was:" >&5 | |
34855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
87d546d8 TG |
34856 | |
34857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34858 | $as_echo "no" >&6; } | |
34859 | ||
87d546d8 | 34860 | |
87d546d8 | 34861 | |
df9d7621 CIK |
34862 | fi |
34863 | rm -Rf build | |
87d546d8 TG |
34864 | |
34865 | ||
87d546d8 TG |
34866 | |
34867 | ||
df9d7621 CIK |
34868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5 |
34869 | $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; } | |
87d546d8 | 34870 | |
87d546d8 TG |
34871 | |
34872 | ||
34873 | cat confdefs.h - <<_ACEOF >conftest.c | |
34874 | ||
34875 | ||
34876 | #include <linux/fs.h> | |
df9d7621 | 34877 | struct super_block sb; |
87d546d8 TG |
34878 | |
34879 | int | |
34880 | main (void) | |
34881 | { | |
34882 | ||
df9d7621 CIK |
34883 | char *name = "bdi"; |
34884 | int error __attribute__((unused)) = | |
34885 | super_setup_bdi_name(&sb, name); | |
87d546d8 TG |
34886 | |
34887 | ; | |
34888 | return 0; | |
34889 | } | |
34890 | ||
34891 | _ACEOF | |
34892 | ||
34893 | ||
34894 | ||
34895 | cat - <<_ACEOF >conftest.h | |
34896 | ||
34897 | _ACEOF | |
34898 | ||
34899 | ||
34900 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34901 | echo "obj-m := conftest.o" >build/Makefile | |
34902 | modpost_flag='' | |
34903 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34904 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34905 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34906 | (eval $ac_try) 2>&5 | |
34907 | ac_status=$? | |
34908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34909 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34910 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34911 | (eval $ac_try) 2>&5 | |
34912 | ac_status=$? | |
34913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34914 | test $ac_status = 0; }; }; then : | |
df9d7621 | 34915 | rc=0 |
87d546d8 TG |
34916 | else |
34917 | $as_echo "$as_me: failed program was:" >&5 | |
34918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
df9d7621 | 34919 | rc=1 |
87d546d8 TG |
34920 | |
34921 | ||
34922 | fi | |
34923 | rm -Rf build | |
34924 | ||
34925 | ||
df9d7621 | 34926 | if test $rc -ne 0; then : |
87d546d8 | 34927 | |
df9d7621 CIK |
34928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
34929 | $as_echo "no" >&6; } | |
34930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 | |
34931 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } | |
87d546d8 | 34932 | |
87d546d8 TG |
34933 | |
34934 | ||
34935 | cat confdefs.h - <<_ACEOF >conftest.c | |
34936 | ||
34937 | ||
df9d7621 CIK |
34938 | #include <linux/backing-dev.h> |
34939 | struct backing_dev_info bdi; | |
87d546d8 TG |
34940 | |
34941 | int | |
34942 | main (void) | |
34943 | { | |
34944 | ||
df9d7621 CIK |
34945 | char *name = "bdi"; |
34946 | int error __attribute__((unused)) = | |
34947 | bdi_setup_and_register(&bdi, name); | |
87d546d8 TG |
34948 | |
34949 | ; | |
34950 | return 0; | |
34951 | } | |
34952 | ||
34953 | _ACEOF | |
34954 | ||
34955 | ||
34956 | ||
34957 | cat - <<_ACEOF >conftest.h | |
34958 | ||
34959 | _ACEOF | |
34960 | ||
34961 | ||
34962 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34963 | echo "obj-m := conftest.o" >build/Makefile | |
34964 | modpost_flag='' | |
34965 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34966 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34967 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34968 | (eval $ac_try) 2>&5 | |
34969 | ac_status=$? | |
34970 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34971 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34972 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34973 | (eval $ac_try) 2>&5 | |
34974 | ac_status=$? | |
34975 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34976 | test $ac_status = 0; }; }; then : | |
df9d7621 | 34977 | rc=0 |
87d546d8 TG |
34978 | else |
34979 | $as_echo "$as_me: failed program was:" >&5 | |
34980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
df9d7621 | 34981 | rc=1 |
87d546d8 TG |
34982 | |
34983 | ||
34984 | fi | |
34985 | rm -Rf build | |
34986 | ||
34987 | ||
df9d7621 | 34988 | if test $rc -ne 0; then : |
87d546d8 | 34989 | |
df9d7621 CIK |
34990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
34991 | $as_echo "no" >&6; } | |
34992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
34993 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
87d546d8 | 34994 | |
87d546d8 TG |
34995 | |
34996 | ||
34997 | cat confdefs.h - <<_ACEOF >conftest.c | |
34998 | ||
34999 | ||
df9d7621 CIK |
35000 | #include <linux/backing-dev.h> |
35001 | struct backing_dev_info bdi; | |
87d546d8 TG |
35002 | |
35003 | int | |
35004 | main (void) | |
35005 | { | |
35006 | ||
df9d7621 CIK |
35007 | char *name = "bdi"; |
35008 | unsigned int cap = BDI_CAP_MAP_COPY; | |
35009 | int error __attribute__((unused)) = | |
35010 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
35011 | |
35012 | ; | |
35013 | return 0; | |
35014 | } | |
35015 | ||
35016 | _ACEOF | |
35017 | ||
35018 | ||
35019 | ||
35020 | cat - <<_ACEOF >conftest.h | |
35021 | ||
35022 | _ACEOF | |
35023 | ||
35024 | ||
35025 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35026 | echo "obj-m := conftest.o" >build/Makefile | |
35027 | modpost_flag='' | |
35028 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35029 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35030 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35031 | (eval $ac_try) 2>&5 | |
35032 | ac_status=$? | |
35033 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35034 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35035 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35036 | (eval $ac_try) 2>&5 | |
35037 | ac_status=$? | |
35038 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35039 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
35040 | rc=0 |
35041 | else | |
35042 | $as_echo "$as_me: failed program was:" >&5 | |
35043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35044 | rc=1 | |
87d546d8 | 35045 | |
87d546d8 | 35046 | |
df9d7621 CIK |
35047 | fi |
35048 | rm -Rf build | |
87d546d8 TG |
35049 | |
35050 | ||
df9d7621 | 35051 | if test $rc -ne 0; then : |
87d546d8 | 35052 | |
df9d7621 | 35053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35054 | $as_echo "no" >&6; } |
35055 | ||
df9d7621 CIK |
35056 | else |
35057 | if test "x$enable_linux_builtin" != xyes; then | |
35058 | ||
35059 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35060 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35061 | rc=$? | |
35062 | if test $rc -ne 0; then | |
35063 | export=0 | |
35064 | for file in mm/backing-dev.c; do | |
35065 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35066 | "$LINUX/$file" 2>/dev/null | |
35067 | rc=$? | |
35068 | if test $rc -eq 0; then | |
35069 | export=1 | |
35070 | break; | |
35071 | fi | |
35072 | done | |
35073 | if test $export -eq 0; then : | |
35074 | rc=1 | |
35075 | else : | |
35076 | rc=0 | |
35077 | fi | |
35078 | else : | |
35079 | rc=0 | |
35080 | fi | |
87d546d8 | 35081 | |
df9d7621 CIK |
35082 | fi |
35083 | if test $rc -ne 0; then : | |
87d546d8 | 35084 | |
df9d7621 CIK |
35085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
35086 | $as_echo "no" >&6; } | |
35087 | ||
35088 | else : | |
35089 | ||
35090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35091 | $as_echo "yes" >&6; } | |
35092 | ||
35093 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
35094 | ||
35095 | ||
35096 | fi | |
35097 | fi | |
35098 | ||
35099 | ||
35100 | else | |
35101 | if test "x$enable_linux_builtin" != xyes; then | |
35102 | ||
35103 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35104 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35105 | rc=$? | |
35106 | if test $rc -ne 0; then | |
35107 | export=0 | |
35108 | for file in mm/backing-dev.c; do | |
35109 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35110 | "$LINUX/$file" 2>/dev/null | |
35111 | rc=$? | |
35112 | if test $rc -eq 0; then | |
35113 | export=1 | |
35114 | break; | |
35115 | fi | |
35116 | done | |
35117 | if test $export -eq 0; then : | |
35118 | rc=1 | |
35119 | else : | |
35120 | rc=0 | |
35121 | fi | |
35122 | else : | |
35123 | rc=0 | |
35124 | fi | |
87d546d8 | 35125 | |
df9d7621 CIK |
35126 | fi |
35127 | if test $rc -ne 0; then : | |
87d546d8 | 35128 | |
df9d7621 CIK |
35129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
35130 | $as_echo "no" >&6; } | |
35131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
35132 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
87d546d8 | 35133 | |
87d546d8 TG |
35134 | |
35135 | ||
35136 | cat confdefs.h - <<_ACEOF >conftest.c | |
35137 | ||
35138 | ||
df9d7621 CIK |
35139 | #include <linux/backing-dev.h> |
35140 | struct backing_dev_info bdi; | |
87d546d8 TG |
35141 | |
35142 | int | |
35143 | main (void) | |
35144 | { | |
35145 | ||
df9d7621 CIK |
35146 | char *name = "bdi"; |
35147 | unsigned int cap = BDI_CAP_MAP_COPY; | |
35148 | int error __attribute__((unused)) = | |
35149 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
35150 | |
35151 | ; | |
35152 | return 0; | |
35153 | } | |
35154 | ||
35155 | _ACEOF | |
35156 | ||
35157 | ||
35158 | ||
35159 | cat - <<_ACEOF >conftest.h | |
35160 | ||
35161 | _ACEOF | |
35162 | ||
35163 | ||
35164 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35165 | echo "obj-m := conftest.o" >build/Makefile | |
35166 | modpost_flag='' | |
35167 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35168 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35169 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35170 | (eval $ac_try) 2>&5 | |
35171 | ac_status=$? | |
35172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35173 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35174 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35175 | (eval $ac_try) 2>&5 | |
35176 | ac_status=$? | |
35177 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35178 | test $ac_status = 0; }; }; then : | |
df9d7621 CIK |
35179 | rc=0 |
35180 | else | |
35181 | $as_echo "$as_me: failed program was:" >&5 | |
35182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35183 | rc=1 | |
87d546d8 | 35184 | |
87d546d8 | 35185 | |
df9d7621 CIK |
35186 | fi |
35187 | rm -Rf build | |
87d546d8 TG |
35188 | |
35189 | ||
df9d7621 | 35190 | if test $rc -ne 0; then : |
87d546d8 | 35191 | |
df9d7621 | 35192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35193 | $as_echo "no" >&6; } |
35194 | ||
df9d7621 CIK |
35195 | else |
35196 | if test "x$enable_linux_builtin" != xyes; then | |
35197 | ||
35198 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35199 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35200 | rc=$? | |
35201 | if test $rc -ne 0; then | |
35202 | export=0 | |
35203 | for file in mm/backing-dev.c; do | |
35204 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35205 | "$LINUX/$file" 2>/dev/null | |
35206 | rc=$? | |
35207 | if test $rc -eq 0; then | |
35208 | export=1 | |
35209 | break; | |
35210 | fi | |
35211 | done | |
35212 | if test $export -eq 0; then : | |
35213 | rc=1 | |
35214 | else : | |
35215 | rc=0 | |
35216 | fi | |
35217 | else : | |
35218 | rc=0 | |
35219 | fi | |
87d546d8 | 35220 | |
df9d7621 CIK |
35221 | fi |
35222 | if test $rc -ne 0; then : | |
87d546d8 | 35223 | |
df9d7621 CIK |
35224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
35225 | $as_echo "no" >&6; } | |
87d546d8 | 35226 | |
df9d7621 CIK |
35227 | else : |
35228 | ||
35229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35230 | $as_echo "yes" >&6; } | |
35231 | ||
35232 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
35233 | ||
35234 | ||
35235 | fi | |
35236 | fi | |
35237 | ||
35238 | ||
35239 | else : | |
35240 | ||
35241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35242 | $as_echo "yes" >&6; } | |
87d546d8 | 35243 | |
df9d7621 CIK |
35244 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h |
35245 | ||
35246 | ||
35247 | fi | |
35248 | fi | |
35249 | ||
35250 | ||
35251 | else | |
35252 | if test "x$enable_linux_builtin" != xyes; then | |
35253 | ||
35254 | grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \ | |
35255 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35256 | rc=$? | |
35257 | if test $rc -ne 0; then | |
35258 | export=0 | |
35259 | for file in fs/super.c; do | |
35260 | grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \ | |
35261 | "$LINUX/$file" 2>/dev/null | |
35262 | rc=$? | |
35263 | if test $rc -eq 0; then | |
35264 | export=1 | |
35265 | break; | |
35266 | fi | |
35267 | done | |
35268 | if test $export -eq 0; then : | |
35269 | rc=1 | |
35270 | else : | |
35271 | rc=0 | |
35272 | fi | |
35273 | else : | |
35274 | rc=0 | |
35275 | fi | |
87d546d8 | 35276 | |
df9d7621 CIK |
35277 | fi |
35278 | if test $rc -ne 0; then : | |
87d546d8 | 35279 | |
df9d7621 CIK |
35280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
35281 | $as_echo "no" >&6; } | |
35282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 | |
87d546d8 TG |
35283 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } |
35284 | ||
35285 | ||
35286 | ||
35287 | cat confdefs.h - <<_ACEOF >conftest.c | |
35288 | ||
35289 | ||
df9d7621 CIK |
35290 | #include <linux/backing-dev.h> |
35291 | struct backing_dev_info bdi; | |
87d546d8 TG |
35292 | |
35293 | int | |
35294 | main (void) | |
35295 | { | |
35296 | ||
df9d7621 CIK |
35297 | char *name = "bdi"; |
35298 | int error __attribute__((unused)) = | |
35299 | bdi_setup_and_register(&bdi, name); | |
87d546d8 TG |
35300 | |
35301 | ; | |
35302 | return 0; | |
35303 | } | |
35304 | ||
35305 | _ACEOF | |
35306 | ||
35307 | ||
35308 | ||
35309 | cat - <<_ACEOF >conftest.h | |
35310 | ||
35311 | _ACEOF | |
35312 | ||
35313 | ||
35314 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35315 | echo "obj-m := conftest.o" >build/Makefile | |
35316 | modpost_flag='' | |
35317 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35318 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35319 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35320 | (eval $ac_try) 2>&5 | |
35321 | ac_status=$? | |
35322 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35323 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35324 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35325 | (eval $ac_try) 2>&5 | |
35326 | ac_status=$? | |
35327 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35328 | test $ac_status = 0; }; }; then : | |
35329 | rc=0 | |
35330 | else | |
35331 | $as_echo "$as_me: failed program was:" >&5 | |
35332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35333 | rc=1 | |
35334 | ||
35335 | ||
35336 | fi | |
35337 | rm -Rf build | |
35338 | ||
35339 | ||
35340 | if test $rc -ne 0; then : | |
35341 | ||
df9d7621 | 35342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 | 35343 | $as_echo "no" >&6; } |
df9d7621 | 35344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 |
87d546d8 TG |
35345 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } |
35346 | ||
35347 | ||
35348 | ||
35349 | cat confdefs.h - <<_ACEOF >conftest.c | |
35350 | ||
35351 | ||
df9d7621 CIK |
35352 | #include <linux/backing-dev.h> |
35353 | struct backing_dev_info bdi; | |
87d546d8 TG |
35354 | |
35355 | int | |
35356 | main (void) | |
35357 | { | |
35358 | ||
df9d7621 CIK |
35359 | char *name = "bdi"; |
35360 | unsigned int cap = BDI_CAP_MAP_COPY; | |
35361 | int error __attribute__((unused)) = | |
35362 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
35363 | |
35364 | ; | |
35365 | return 0; | |
35366 | } | |
35367 | ||
35368 | _ACEOF | |
35369 | ||
35370 | ||
35371 | ||
35372 | cat - <<_ACEOF >conftest.h | |
35373 | ||
35374 | _ACEOF | |
35375 | ||
35376 | ||
35377 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35378 | echo "obj-m := conftest.o" >build/Makefile | |
35379 | modpost_flag='' | |
35380 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35381 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35382 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35383 | (eval $ac_try) 2>&5 | |
35384 | ac_status=$? | |
35385 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35386 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35387 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35388 | (eval $ac_try) 2>&5 | |
35389 | ac_status=$? | |
35390 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35391 | test $ac_status = 0; }; }; then : | |
35392 | rc=0 | |
35393 | else | |
35394 | $as_echo "$as_me: failed program was:" >&5 | |
35395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35396 | rc=1 | |
35397 | ||
35398 | ||
35399 | fi | |
35400 | rm -Rf build | |
35401 | ||
35402 | ||
35403 | if test $rc -ne 0; then : | |
35404 | ||
df9d7621 | 35405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35406 | $as_echo "no" >&6; } |
35407 | ||
35408 | else | |
35409 | if test "x$enable_linux_builtin" != xyes; then | |
35410 | ||
35411 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35412 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35413 | rc=$? | |
35414 | if test $rc -ne 0; then | |
35415 | export=0 | |
35416 | for file in mm/backing-dev.c; do | |
35417 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35418 | "$LINUX/$file" 2>/dev/null | |
35419 | rc=$? | |
35420 | if test $rc -eq 0; then | |
35421 | export=1 | |
35422 | break; | |
35423 | fi | |
35424 | done | |
35425 | if test $export -eq 0; then : | |
35426 | rc=1 | |
35427 | else : | |
35428 | rc=0 | |
35429 | fi | |
35430 | else : | |
35431 | rc=0 | |
35432 | fi | |
35433 | ||
35434 | fi | |
35435 | if test $rc -ne 0; then : | |
35436 | ||
df9d7621 | 35437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35438 | $as_echo "no" >&6; } |
35439 | ||
35440 | else : | |
35441 | ||
df9d7621 | 35442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
35443 | $as_echo "yes" >&6; } |
35444 | ||
35445 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
35446 | ||
35447 | ||
35448 | fi | |
35449 | fi | |
35450 | ||
35451 | ||
35452 | else | |
35453 | if test "x$enable_linux_builtin" != xyes; then | |
35454 | ||
35455 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35456 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35457 | rc=$? | |
35458 | if test $rc -ne 0; then | |
35459 | export=0 | |
35460 | for file in mm/backing-dev.c; do | |
35461 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35462 | "$LINUX/$file" 2>/dev/null | |
35463 | rc=$? | |
35464 | if test $rc -eq 0; then | |
35465 | export=1 | |
35466 | break; | |
35467 | fi | |
35468 | done | |
35469 | if test $export -eq 0; then : | |
35470 | rc=1 | |
35471 | else : | |
35472 | rc=0 | |
35473 | fi | |
35474 | else : | |
35475 | rc=0 | |
35476 | fi | |
35477 | ||
35478 | fi | |
35479 | if test $rc -ne 0; then : | |
35480 | ||
df9d7621 | 35481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 | 35482 | $as_echo "no" >&6; } |
df9d7621 | 35483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 |
87d546d8 TG |
35484 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } |
35485 | ||
35486 | ||
35487 | ||
35488 | cat confdefs.h - <<_ACEOF >conftest.c | |
35489 | ||
35490 | ||
df9d7621 CIK |
35491 | #include <linux/backing-dev.h> |
35492 | struct backing_dev_info bdi; | |
87d546d8 TG |
35493 | |
35494 | int | |
35495 | main (void) | |
35496 | { | |
35497 | ||
df9d7621 CIK |
35498 | char *name = "bdi"; |
35499 | unsigned int cap = BDI_CAP_MAP_COPY; | |
35500 | int error __attribute__((unused)) = | |
35501 | bdi_setup_and_register(&bdi, name, cap); | |
87d546d8 TG |
35502 | |
35503 | ; | |
35504 | return 0; | |
35505 | } | |
35506 | ||
35507 | _ACEOF | |
35508 | ||
35509 | ||
35510 | ||
35511 | cat - <<_ACEOF >conftest.h | |
35512 | ||
35513 | _ACEOF | |
35514 | ||
35515 | ||
35516 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35517 | echo "obj-m := conftest.o" >build/Makefile | |
35518 | modpost_flag='' | |
35519 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35520 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35521 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35522 | (eval $ac_try) 2>&5 | |
35523 | ac_status=$? | |
35524 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35525 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35526 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35527 | (eval $ac_try) 2>&5 | |
35528 | ac_status=$? | |
35529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35530 | test $ac_status = 0; }; }; then : | |
35531 | rc=0 | |
35532 | else | |
35533 | $as_echo "$as_me: failed program was:" >&5 | |
35534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35535 | rc=1 | |
35536 | ||
35537 | ||
35538 | fi | |
35539 | rm -Rf build | |
35540 | ||
35541 | ||
35542 | if test $rc -ne 0; then : | |
35543 | ||
df9d7621 | 35544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35545 | $as_echo "no" >&6; } |
35546 | ||
35547 | else | |
35548 | if test "x$enable_linux_builtin" != xyes; then | |
35549 | ||
35550 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
35551 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35552 | rc=$? | |
35553 | if test $rc -ne 0; then | |
35554 | export=0 | |
35555 | for file in mm/backing-dev.c; do | |
35556 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
35557 | "$LINUX/$file" 2>/dev/null | |
35558 | rc=$? | |
35559 | if test $rc -eq 0; then | |
35560 | export=1 | |
35561 | break; | |
35562 | fi | |
35563 | done | |
35564 | if test $export -eq 0; then : | |
35565 | rc=1 | |
35566 | else : | |
35567 | rc=0 | |
35568 | fi | |
35569 | else : | |
35570 | rc=0 | |
35571 | fi | |
35572 | ||
35573 | fi | |
35574 | if test $rc -ne 0; then : | |
35575 | ||
df9d7621 | 35576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
87d546d8 TG |
35577 | $as_echo "no" >&6; } |
35578 | ||
35579 | else : | |
35580 | ||
df9d7621 | 35581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
35582 | $as_echo "yes" >&6; } |
35583 | ||
35584 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
35585 | ||
35586 | ||
35587 | fi | |
35588 | fi | |
35589 | ||
35590 | ||
35591 | else : | |
35592 | ||
df9d7621 | 35593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
87d546d8 TG |
35594 | $as_echo "yes" >&6; } |
35595 | ||
35596 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
35597 | ||
35598 | ||
35599 | fi | |
35600 | fi | |
35601 | ||
35602 | ||
df9d7621 CIK |
35603 | else : |
35604 | ||
35605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35606 | $as_echo "yes" >&6; } | |
35607 | ||
35608 | $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h | |
35609 | ||
35610 | ||
35611 | fi | |
35612 | fi | |
35613 | ||
35614 | ||
87d546d8 TG |
35615 | |
35616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5 | |
35617 | $as_echo_n "checking whether set_nlink() is available... " >&6; } | |
35618 | ||
35619 | ||
35620 | cat confdefs.h - <<_ACEOF >conftest.c | |
35621 | ||
35622 | ||
35623 | #include <linux/fs.h> | |
35624 | ||
35625 | int | |
35626 | main (void) | |
35627 | { | |
35628 | ||
35629 | struct inode node; | |
35630 | unsigned int link = 0; | |
35631 | (void) set_nlink(&node, link); | |
35632 | ||
35633 | ; | |
35634 | return 0; | |
35635 | } | |
35636 | ||
35637 | _ACEOF | |
35638 | ||
35639 | ||
35640 | ||
35641 | cat - <<_ACEOF >conftest.h | |
35642 | ||
35643 | _ACEOF | |
35644 | ||
35645 | ||
35646 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35647 | echo "obj-m := conftest.o" >build/Makefile | |
35648 | modpost_flag='' | |
35649 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35650 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35651 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35652 | (eval $ac_try) 2>&5 | |
35653 | ac_status=$? | |
35654 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35655 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35656 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35657 | (eval $ac_try) 2>&5 | |
35658 | ac_status=$? | |
35659 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35660 | test $ac_status = 0; }; }; then : | |
35661 | ||
35662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35663 | $as_echo "yes" >&6; } | |
35664 | ||
35665 | $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h | |
35666 | ||
35667 | ||
35668 | else | |
35669 | $as_echo "$as_me: failed program was:" >&5 | |
35670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35671 | ||
35672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35673 | $as_echo "no" >&6; } | |
35674 | ||
35675 | ||
35676 | ||
35677 | fi | |
35678 | rm -Rf build | |
35679 | ||
35680 | ||
35681 | ||
35682 | ||
35683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5 | |
35684 | $as_echo_n "checking whether elevator_change() is available... " >&6; } | |
35685 | tmp_flags="$EXTRA_KCFLAGS" | |
35686 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
35687 | ||
35688 | ||
35689 | cat confdefs.h - <<_ACEOF >conftest.c | |
35690 | ||
35691 | ||
35692 | #include <linux/blkdev.h> | |
35693 | #include <linux/elevator.h> | |
35694 | ||
35695 | int | |
35696 | main (void) | |
35697 | { | |
35698 | ||
35699 | int ret; | |
35700 | struct request_queue *q = NULL; | |
35701 | char *elevator = NULL; | |
35702 | ret = elevator_change(q, elevator); | |
35703 | ||
35704 | ; | |
35705 | return 0; | |
35706 | } | |
35707 | ||
35708 | _ACEOF | |
35709 | ||
35710 | ||
35711 | ||
35712 | cat - <<_ACEOF >conftest.h | |
35713 | ||
35714 | _ACEOF | |
35715 | ||
35716 | ||
35717 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35718 | echo "obj-m := conftest.o" >build/Makefile | |
35719 | modpost_flag='' | |
35720 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35721 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35722 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35723 | (eval $ac_try) 2>&5 | |
35724 | ac_status=$? | |
35725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35726 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35727 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35728 | (eval $ac_try) 2>&5 | |
35729 | ac_status=$? | |
35730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35731 | test $ac_status = 0; }; }; then : | |
35732 | ||
35733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35734 | $as_echo "yes" >&6; } | |
35735 | ||
35736 | $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h | |
35737 | ||
35738 | ||
35739 | else | |
35740 | $as_echo "$as_me: failed program was:" >&5 | |
35741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35742 | ||
35743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35744 | $as_echo "no" >&6; } | |
35745 | ||
35746 | ||
35747 | ||
35748 | fi | |
35749 | rm -Rf build | |
35750 | ||
35751 | ||
35752 | EXTRA_KCFLAGS="$tmp_flags" | |
35753 | ||
35754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5 | |
35755 | $as_echo_n "checking whether sget() wants 5 args... " >&6; } | |
35756 | ||
35757 | ||
35758 | cat confdefs.h - <<_ACEOF >conftest.c | |
35759 | ||
35760 | ||
35761 | #include <linux/fs.h> | |
35762 | ||
35763 | int | |
35764 | main (void) | |
35765 | { | |
35766 | ||
35767 | struct file_system_type *type = NULL; | |
35768 | int (*test)(struct super_block *,void *) = NULL; | |
35769 | int (*set)(struct super_block *,void *) = NULL; | |
35770 | int flags = 0; | |
35771 | void *data = NULL; | |
35772 | (void) sget(type, test, set, flags, data); | |
35773 | ||
35774 | ; | |
35775 | return 0; | |
35776 | } | |
35777 | ||
35778 | _ACEOF | |
35779 | ||
35780 | ||
35781 | ||
35782 | cat - <<_ACEOF >conftest.h | |
35783 | ||
35784 | _ACEOF | |
35785 | ||
35786 | ||
35787 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35788 | echo "obj-m := conftest.o" >build/Makefile | |
35789 | modpost_flag='' | |
35790 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35791 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35792 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35793 | (eval $ac_try) 2>&5 | |
35794 | ac_status=$? | |
35795 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35796 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35797 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35798 | (eval $ac_try) 2>&5 | |
35799 | ac_status=$? | |
35800 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35801 | test $ac_status = 0; }; }; then : | |
35802 | ||
35803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35804 | $as_echo "yes" >&6; } | |
35805 | ||
35806 | $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h | |
35807 | ||
35808 | ||
35809 | else | |
35810 | $as_echo "$as_me: failed program was:" >&5 | |
35811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35812 | ||
35813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35814 | $as_echo "no" >&6; } | |
35815 | ||
35816 | ||
35817 | ||
35818 | fi | |
35819 | rm -Rf build | |
35820 | ||
35821 | ||
35822 | ||
35823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5 | |
35824 | $as_echo_n "checking whether lseek_execute() is available... " >&6; } | |
35825 | ||
35826 | ||
35827 | ||
35828 | cat confdefs.h - <<_ACEOF >conftest.c | |
35829 | ||
35830 | ||
35831 | #include <linux/fs.h> | |
35832 | ||
35833 | int | |
35834 | main (void) | |
35835 | { | |
35836 | ||
35837 | struct file *fp __attribute__ ((unused)) = NULL; | |
35838 | struct inode *ip __attribute__ ((unused)) = NULL; | |
35839 | loff_t offset __attribute__ ((unused)) = 0; | |
35840 | loff_t maxsize __attribute__ ((unused)) = 0; | |
35841 | ||
35842 | lseek_execute(fp, ip, offset, maxsize); | |
35843 | ||
35844 | ; | |
35845 | return 0; | |
35846 | } | |
35847 | ||
35848 | _ACEOF | |
35849 | ||
35850 | ||
35851 | ||
35852 | cat - <<_ACEOF >conftest.h | |
35853 | ||
35854 | _ACEOF | |
35855 | ||
35856 | ||
35857 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35858 | echo "obj-m := conftest.o" >build/Makefile | |
35859 | modpost_flag='' | |
35860 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35861 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35862 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35863 | (eval $ac_try) 2>&5 | |
35864 | ac_status=$? | |
35865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35866 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35867 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35868 | (eval $ac_try) 2>&5 | |
35869 | ac_status=$? | |
35870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35871 | test $ac_status = 0; }; }; then : | |
35872 | rc=0 | |
35873 | else | |
35874 | $as_echo "$as_me: failed program was:" >&5 | |
35875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35876 | rc=1 | |
35877 | ||
35878 | ||
35879 | fi | |
35880 | rm -Rf build | |
35881 | ||
35882 | ||
35883 | if test $rc -ne 0; then : | |
35884 | ||
35885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35886 | $as_echo "no" >&6; } | |
35887 | ||
35888 | else | |
35889 | if test "x$enable_linux_builtin" != xyes; then | |
35890 | ||
35891 | grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \ | |
35892 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35893 | rc=$? | |
35894 | if test $rc -ne 0; then | |
35895 | export=0 | |
35896 | for file in fs/read_write.c; do | |
35897 | grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \ | |
35898 | "$LINUX/$file" 2>/dev/null | |
35899 | rc=$? | |
35900 | if test $rc -eq 0; then | |
35901 | export=1 | |
35902 | break; | |
35903 | fi | |
35904 | done | |
35905 | if test $export -eq 0; then : | |
35906 | rc=1 | |
35907 | else : | |
35908 | rc=0 | |
35909 | fi | |
35910 | else : | |
35911 | rc=0 | |
35912 | fi | |
35913 | ||
35914 | fi | |
35915 | if test $rc -ne 0; then : | |
35916 | ||
35917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35918 | $as_echo "no" >&6; } | |
35919 | ||
35920 | else : | |
35921 | ||
35922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35923 | $as_echo "yes" >&6; } | |
35924 | ||
35925 | $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h | |
35926 | ||
35927 | ||
35928 | fi | |
35929 | fi | |
35930 | ||
35931 | ||
35932 | ||
35933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5 | |
35934 | $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; } | |
35935 | ||
35936 | ||
35937 | cat confdefs.h - <<_ACEOF >conftest.c | |
35938 | ||
35939 | ||
35940 | #include <linux/fs.h> | |
35941 | int iterate(struct file *filp, struct dir_context * context) | |
35942 | { return 0; } | |
35943 | ||
35944 | static const struct file_operations fops | |
35945 | __attribute__ ((unused)) = { | |
35946 | .iterate_shared = iterate, | |
35947 | }; | |
35948 | ||
35949 | int | |
35950 | main (void) | |
35951 | { | |
35952 | ||
35953 | ||
35954 | ; | |
35955 | return 0; | |
35956 | } | |
35957 | ||
35958 | _ACEOF | |
35959 | ||
35960 | ||
35961 | ||
35962 | cat - <<_ACEOF >conftest.h | |
35963 | ||
35964 | _ACEOF | |
35965 | ||
35966 | ||
35967 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35968 | echo "obj-m := conftest.o" >build/Makefile | |
35969 | modpost_flag='' | |
35970 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35971 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35972 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35973 | (eval $ac_try) 2>&5 | |
35974 | ac_status=$? | |
35975 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35976 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35977 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35978 | (eval $ac_try) 2>&5 | |
35979 | ac_status=$? | |
35980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35981 | test $ac_status = 0; }; }; then : | |
35982 | ||
35983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35984 | $as_echo "yes" >&6; } | |
35985 | ||
35986 | $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h | |
35987 | ||
35988 | ||
35989 | else | |
35990 | $as_echo "$as_me: failed program was:" >&5 | |
35991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35992 | ||
35993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35994 | $as_echo "no" >&6; } | |
35995 | ||
35996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5 | |
35997 | $as_echo_n "checking whether fops->iterate() is available... " >&6; } | |
35998 | ||
35999 | ||
36000 | cat confdefs.h - <<_ACEOF >conftest.c | |
36001 | ||
36002 | ||
36003 | #include <linux/fs.h> | |
36004 | int iterate(struct file *filp, struct dir_context * context) | |
36005 | { return 0; } | |
36006 | ||
36007 | static const struct file_operations fops | |
36008 | __attribute__ ((unused)) = { | |
36009 | .iterate = iterate, | |
36010 | }; | |
36011 | ||
36012 | int | |
36013 | main (void) | |
36014 | { | |
36015 | ||
36016 | ||
36017 | ; | |
36018 | return 0; | |
36019 | } | |
36020 | ||
36021 | _ACEOF | |
36022 | ||
36023 | ||
36024 | ||
36025 | cat - <<_ACEOF >conftest.h | |
36026 | ||
36027 | _ACEOF | |
36028 | ||
36029 | ||
36030 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36031 | echo "obj-m := conftest.o" >build/Makefile | |
36032 | modpost_flag='' | |
36033 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36034 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36035 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36036 | (eval $ac_try) 2>&5 | |
36037 | ac_status=$? | |
36038 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36039 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36040 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36041 | (eval $ac_try) 2>&5 | |
36042 | ac_status=$? | |
36043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36044 | test $ac_status = 0; }; }; then : | |
36045 | ||
36046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36047 | $as_echo "yes" >&6; } | |
36048 | ||
36049 | $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h | |
36050 | ||
36051 | ||
36052 | else | |
36053 | $as_echo "$as_me: failed program was:" >&5 | |
36054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36055 | ||
36056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36057 | $as_echo "no" >&6; } | |
36058 | ||
36059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5 | |
36060 | $as_echo_n "checking whether fops->readdir() is available... " >&6; } | |
36061 | ||
36062 | ||
36063 | cat confdefs.h - <<_ACEOF >conftest.c | |
36064 | ||
36065 | ||
36066 | #include <linux/fs.h> | |
36067 | int readdir(struct file *filp, void *entry, filldir_t func) | |
36068 | { return 0; } | |
36069 | ||
36070 | static const struct file_operations fops | |
36071 | __attribute__ ((unused)) = { | |
36072 | .readdir = readdir, | |
36073 | }; | |
36074 | ||
36075 | int | |
36076 | main (void) | |
36077 | { | |
36078 | ||
36079 | ||
36080 | ; | |
36081 | return 0; | |
36082 | } | |
36083 | ||
36084 | _ACEOF | |
36085 | ||
36086 | ||
36087 | ||
36088 | cat - <<_ACEOF >conftest.h | |
36089 | ||
36090 | _ACEOF | |
36091 | ||
36092 | ||
36093 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36094 | echo "obj-m := conftest.o" >build/Makefile | |
36095 | modpost_flag='' | |
36096 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36097 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36098 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36099 | (eval $ac_try) 2>&5 | |
36100 | ac_status=$? | |
36101 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36102 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36103 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36104 | (eval $ac_try) 2>&5 | |
36105 | ac_status=$? | |
36106 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36107 | test $ac_status = 0; }; }; then : | |
36108 | ||
36109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36110 | $as_echo "yes" >&6; } | |
36111 | ||
36112 | $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h | |
36113 | ||
36114 | ||
36115 | else | |
36116 | $as_echo "$as_me: failed program was:" >&5 | |
36117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36118 | ||
36119 | as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5 | |
36120 | ||
36121 | ||
36122 | ||
36123 | fi | |
36124 | rm -Rf build | |
36125 | ||
36126 | ||
36127 | ||
36128 | ||
36129 | ||
36130 | fi | |
36131 | rm -Rf build | |
36132 | ||
36133 | ||
36134 | ||
36135 | ||
36136 | ||
36137 | fi | |
36138 | rm -Rf build | |
36139 | ||
36140 | ||
36141 | ||
36142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5 | |
36143 | $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; } | |
36144 | ||
36145 | ||
36146 | cat confdefs.h - <<_ACEOF >conftest.c | |
36147 | ||
36148 | ||
36149 | #include <linux/fs.h> | |
36150 | ||
36151 | ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to) | |
36152 | { return 0; } | |
36153 | ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from) | |
36154 | { return 0; } | |
36155 | ||
36156 | static const struct file_operations | |
36157 | fops __attribute__ ((unused)) = { | |
36158 | .read_iter = test_read, | |
36159 | .write_iter = test_write, | |
36160 | }; | |
36161 | ||
36162 | int | |
36163 | main (void) | |
36164 | { | |
36165 | ||
36166 | ||
36167 | ; | |
36168 | return 0; | |
36169 | } | |
36170 | ||
36171 | _ACEOF | |
36172 | ||
36173 | ||
36174 | ||
36175 | cat - <<_ACEOF >conftest.h | |
36176 | ||
36177 | _ACEOF | |
36178 | ||
36179 | ||
36180 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36181 | echo "obj-m := conftest.o" >build/Makefile | |
36182 | modpost_flag='' | |
36183 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36184 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36185 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36186 | (eval $ac_try) 2>&5 | |
36187 | ac_status=$? | |
36188 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36189 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36190 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36191 | (eval $ac_try) 2>&5 | |
36192 | ac_status=$? | |
36193 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36194 | test $ac_status = 0; }; }; then : | |
36195 | ||
36196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36197 | $as_echo "yes" >&6; } | |
36198 | ||
36199 | $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h | |
36200 | ||
36201 | ||
5b5f25ca CIK |
36202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5 |
36203 | $as_echo_n "checking whether new_sync_read() is available... " >&6; } | |
36204 | ||
36205 | ||
36206 | cat confdefs.h - <<_ACEOF >conftest.c | |
36207 | ||
36208 | ||
36209 | #include <linux/fs.h> | |
36210 | ||
36211 | int | |
36212 | main (void) | |
36213 | { | |
36214 | ||
36215 | new_sync_read(NULL, NULL, 0, NULL); | |
36216 | ||
36217 | ; | |
36218 | return 0; | |
36219 | } | |
36220 | ||
36221 | _ACEOF | |
36222 | ||
36223 | ||
36224 | ||
36225 | cat - <<_ACEOF >conftest.h | |
36226 | ||
36227 | _ACEOF | |
36228 | ||
36229 | ||
36230 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36231 | echo "obj-m := conftest.o" >build/Makefile | |
36232 | modpost_flag='' | |
36233 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36234 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36235 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36236 | (eval $ac_try) 2>&5 | |
36237 | ac_status=$? | |
36238 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36239 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36240 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36241 | (eval $ac_try) 2>&5 | |
36242 | ac_status=$? | |
36243 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36244 | test $ac_status = 0; }; }; then : | |
36245 | ||
36246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36247 | $as_echo "yes" >&6; } | |
36248 | ||
36249 | $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h | |
36250 | ||
36251 | ||
36252 | else | |
36253 | $as_echo "$as_me: failed program was:" >&5 | |
36254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36255 | ||
36256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36257 | $as_echo "no" >&6; } | |
36258 | ||
36259 | ||
36260 | ||
36261 | fi | |
36262 | rm -Rf build | |
36263 | ||
36264 | ||
36265 | ||
36266 | ||
87d546d8 TG |
36267 | else |
36268 | $as_echo "$as_me: failed program was:" >&5 | |
36269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36270 | ||
36271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36272 | $as_echo "no" >&6; } | |
36273 | ||
36274 | ||
36275 | ||
36276 | fi | |
36277 | rm -Rf build | |
36278 | ||
36279 | ||
36280 | ||
36281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5 | |
36282 | $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; } | |
36283 | ||
36284 | ||
36285 | cat confdefs.h - <<_ACEOF >conftest.c | |
36286 | ||
36287 | ||
36288 | #include <linux/fs.h> | |
36289 | ||
36290 | ||
36291 | int | |
36292 | main (void) | |
36293 | { | |
36294 | ||
36295 | struct kiocb *iocb = NULL; | |
36296 | struct iov_iter *iov = NULL; | |
36297 | generic_write_checks(iocb, iov); | |
36298 | ||
36299 | ; | |
36300 | return 0; | |
36301 | } | |
36302 | ||
36303 | _ACEOF | |
36304 | ||
36305 | ||
36306 | ||
36307 | cat - <<_ACEOF >conftest.h | |
36308 | ||
36309 | _ACEOF | |
36310 | ||
36311 | ||
36312 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36313 | echo "obj-m := conftest.o" >build/Makefile | |
36314 | modpost_flag='' | |
36315 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36316 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36317 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36318 | (eval $ac_try) 2>&5 | |
36319 | ac_status=$? | |
36320 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36321 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36322 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36323 | (eval $ac_try) 2>&5 | |
36324 | ac_status=$? | |
36325 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36326 | test $ac_status = 0; }; }; then : | |
36327 | ||
36328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36329 | $as_echo "yes" >&6; } | |
36330 | ||
36331 | $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h | |
36332 | ||
36333 | ||
36334 | else | |
36335 | $as_echo "$as_me: failed program was:" >&5 | |
36336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36337 | ||
36338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36339 | $as_echo "no" >&6; } | |
36340 | ||
36341 | ||
36342 | ||
36343 | fi | |
36344 | rm -Rf build | |
36345 | ||
36346 | ||
36347 | ||
36348 | ||
36349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5 | |
36350 | $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; } | |
36351 | ||
36352 | ||
36353 | cat confdefs.h - <<_ACEOF >conftest.c | |
36354 | ||
36355 | ||
36356 | #include <linux/pagemap.h> | |
36357 | ||
36358 | int | |
36359 | main (void) | |
36360 | { | |
36361 | ||
36362 | struct page page; | |
36363 | kmap_atomic(&page); | |
36364 | ||
36365 | ; | |
36366 | return 0; | |
36367 | } | |
36368 | ||
36369 | _ACEOF | |
36370 | ||
36371 | ||
36372 | ||
36373 | cat - <<_ACEOF >conftest.h | |
36374 | ||
36375 | _ACEOF | |
36376 | ||
36377 | ||
36378 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36379 | echo "obj-m := conftest.o" >build/Makefile | |
36380 | modpost_flag='' | |
36381 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36382 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36383 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36384 | (eval $ac_try) 2>&5 | |
36385 | ac_status=$? | |
36386 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36387 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36388 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36389 | (eval $ac_try) 2>&5 | |
36390 | ac_status=$? | |
36391 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36392 | test $ac_status = 0; }; }; then : | |
36393 | ||
36394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36395 | $as_echo "yes" >&6; } | |
36396 | ||
36397 | $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h | |
36398 | ||
36399 | ||
36400 | else | |
36401 | $as_echo "$as_me: failed program was:" >&5 | |
36402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36403 | ||
36404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36405 | $as_echo "no" >&6; } | |
36406 | ||
36407 | ||
36408 | ||
36409 | fi | |
36410 | rm -Rf build | |
36411 | ||
36412 | ||
36413 | ||
36414 | ||
36415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5 | |
36416 | $as_echo_n "checking whether follow_down_one() is available... " >&6; } | |
36417 | ||
36418 | ||
36419 | cat confdefs.h - <<_ACEOF >conftest.c | |
36420 | ||
36421 | ||
36422 | #include <linux/namei.h> | |
36423 | ||
36424 | int | |
36425 | main (void) | |
36426 | { | |
36427 | ||
36428 | struct path *p = NULL; | |
36429 | follow_down_one(p); | |
36430 | ||
36431 | ; | |
36432 | return 0; | |
36433 | } | |
36434 | ||
36435 | _ACEOF | |
36436 | ||
36437 | ||
36438 | ||
36439 | cat - <<_ACEOF >conftest.h | |
36440 | ||
36441 | _ACEOF | |
36442 | ||
36443 | ||
36444 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36445 | echo "obj-m := conftest.o" >build/Makefile | |
36446 | modpost_flag='' | |
36447 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36448 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36449 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36450 | (eval $ac_try) 2>&5 | |
36451 | ac_status=$? | |
36452 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36453 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36454 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36455 | (eval $ac_try) 2>&5 | |
36456 | ac_status=$? | |
36457 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36458 | test $ac_status = 0; }; }; then : | |
36459 | ||
36460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36461 | $as_echo "yes" >&6; } | |
36462 | ||
36463 | $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h | |
36464 | ||
36465 | ||
36466 | else | |
36467 | $as_echo "$as_me: failed program was:" >&5 | |
36468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36469 | ||
36470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36471 | $as_echo "no" >&6; } | |
36472 | ||
36473 | ||
36474 | ||
36475 | fi | |
36476 | rm -Rf build | |
36477 | ||
36478 | ||
36479 | ||
36480 | ||
36481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5 | |
36482 | $as_echo_n "checking whether make_request_fn() returns int... " >&6; } | |
36483 | ||
36484 | ||
36485 | cat confdefs.h - <<_ACEOF >conftest.c | |
36486 | ||
36487 | ||
36488 | #include <linux/blkdev.h> | |
36489 | ||
36490 | int make_request(struct request_queue *q, struct bio *bio) | |
36491 | { | |
36492 | return (0); | |
36493 | } | |
36494 | ||
36495 | int | |
36496 | main (void) | |
36497 | { | |
36498 | ||
36499 | blk_queue_make_request(NULL, &make_request); | |
36500 | ||
36501 | ; | |
36502 | return 0; | |
36503 | } | |
36504 | ||
36505 | _ACEOF | |
36506 | ||
36507 | ||
36508 | ||
36509 | cat - <<_ACEOF >conftest.h | |
36510 | ||
36511 | _ACEOF | |
36512 | ||
36513 | ||
36514 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36515 | echo "obj-m := conftest.o" >build/Makefile | |
36516 | modpost_flag='' | |
36517 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36518 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36519 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36520 | (eval $ac_try) 2>&5 | |
36521 | ac_status=$? | |
36522 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36523 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36524 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36525 | (eval $ac_try) 2>&5 | |
36526 | ac_status=$? | |
36527 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36528 | test $ac_status = 0; }; }; then : | |
36529 | ||
36530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36531 | $as_echo "yes" >&6; } | |
36532 | ||
36533 | $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h | |
36534 | ||
36535 | ||
36536 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h | |
36537 | ||
36538 | ||
36539 | else | |
36540 | $as_echo "$as_me: failed program was:" >&5 | |
36541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36542 | ||
36543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36544 | $as_echo "no" >&6; } | |
36545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5 | |
36546 | $as_echo_n "checking whether make_request_fn() returns void... " >&6; } | |
36547 | ||
36548 | ||
36549 | cat confdefs.h - <<_ACEOF >conftest.c | |
36550 | ||
36551 | ||
36552 | #include <linux/blkdev.h> | |
36553 | ||
36554 | void make_request(struct request_queue *q, struct bio *bio) | |
36555 | { | |
36556 | return; | |
36557 | } | |
36558 | ||
36559 | int | |
36560 | main (void) | |
36561 | { | |
36562 | ||
36563 | blk_queue_make_request(NULL, &make_request); | |
36564 | ||
36565 | ; | |
36566 | return 0; | |
36567 | } | |
36568 | ||
36569 | _ACEOF | |
36570 | ||
36571 | ||
36572 | ||
36573 | cat - <<_ACEOF >conftest.h | |
36574 | ||
36575 | _ACEOF | |
36576 | ||
36577 | ||
36578 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36579 | echo "obj-m := conftest.o" >build/Makefile | |
36580 | modpost_flag='' | |
36581 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36582 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36583 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36584 | (eval $ac_try) 2>&5 | |
36585 | ac_status=$? | |
36586 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36587 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36588 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36589 | (eval $ac_try) 2>&5 | |
36590 | ac_status=$? | |
36591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36592 | test $ac_status = 0; }; }; then : | |
36593 | ||
36594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36595 | $as_echo "yes" >&6; } | |
36596 | ||
36597 | $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h | |
36598 | ||
36599 | ||
36600 | else | |
36601 | $as_echo "$as_me: failed program was:" >&5 | |
36602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36603 | ||
36604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36605 | $as_echo "no" >&6; } | |
36606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5 | |
36607 | $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; } | |
36608 | ||
36609 | ||
36610 | cat confdefs.h - <<_ACEOF >conftest.c | |
36611 | ||
36612 | ||
36613 | #include <linux/blkdev.h> | |
36614 | ||
36615 | blk_qc_t make_request(struct request_queue *q, struct bio *bio) | |
36616 | { | |
36617 | return (BLK_QC_T_NONE); | |
36618 | } | |
36619 | ||
36620 | int | |
36621 | main (void) | |
36622 | { | |
36623 | ||
36624 | blk_queue_make_request(NULL, &make_request); | |
36625 | ||
36626 | ; | |
36627 | return 0; | |
36628 | } | |
36629 | ||
36630 | _ACEOF | |
36631 | ||
36632 | ||
36633 | ||
36634 | cat - <<_ACEOF >conftest.h | |
36635 | ||
36636 | _ACEOF | |
36637 | ||
36638 | ||
36639 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36640 | echo "obj-m := conftest.o" >build/Makefile | |
36641 | modpost_flag='' | |
36642 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36643 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36644 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36645 | (eval $ac_try) 2>&5 | |
36646 | ac_status=$? | |
36647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36648 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36649 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36650 | (eval $ac_try) 2>&5 | |
36651 | ac_status=$? | |
36652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36653 | test $ac_status = 0; }; }; then : | |
36654 | ||
36655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36656 | $as_echo "yes" >&6; } | |
36657 | ||
36658 | $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h | |
36659 | ||
36660 | ||
36661 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h | |
36662 | ||
36663 | ||
36664 | else | |
36665 | $as_echo "$as_me: failed program was:" >&5 | |
36666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36667 | ||
36668 | as_fn_error $? "no - Please file a bug report at | |
36669 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
36670 | ||
36671 | ||
36672 | ||
36673 | fi | |
36674 | rm -Rf build | |
36675 | ||
36676 | ||
36677 | ||
36678 | ||
36679 | ||
36680 | fi | |
36681 | rm -Rf build | |
36682 | ||
36683 | ||
36684 | ||
36685 | ||
36686 | ||
36687 | fi | |
36688 | rm -Rf build | |
36689 | ||
36690 | ||
36691 | ||
36692 | ||
36693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5 | |
36694 | $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; } | |
36695 | ||
36696 | ||
36697 | ||
36698 | cat confdefs.h - <<_ACEOF >conftest.c | |
36699 | ||
36700 | ||
36701 | #include <linux/bio.h> | |
36702 | ||
36703 | void (*generic_start_io_acct_f)(int, unsigned long, | |
36704 | struct hd_struct *) = &generic_start_io_acct; | |
36705 | void (*generic_end_io_acct_f)(int, struct hd_struct *, | |
36706 | unsigned long) = &generic_end_io_acct; | |
36707 | ||
36708 | int | |
36709 | main (void) | |
36710 | { | |
36711 | ||
36712 | generic_start_io_acct(0, 0, NULL); | |
36713 | generic_end_io_acct(0, NULL, 0); | |
36714 | ||
36715 | ; | |
36716 | return 0; | |
36717 | } | |
36718 | ||
36719 | _ACEOF | |
36720 | ||
36721 | ||
36722 | ||
36723 | cat - <<_ACEOF >conftest.h | |
36724 | ||
36725 | _ACEOF | |
36726 | ||
36727 | ||
36728 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36729 | echo "obj-m := conftest.o" >build/Makefile | |
36730 | modpost_flag='' | |
36731 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36732 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36733 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36734 | (eval $ac_try) 2>&5 | |
36735 | ac_status=$? | |
36736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36737 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36738 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36739 | (eval $ac_try) 2>&5 | |
36740 | ac_status=$? | |
36741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36742 | test $ac_status = 0; }; }; then : | |
36743 | rc=0 | |
36744 | else | |
36745 | $as_echo "$as_me: failed program was:" >&5 | |
36746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36747 | rc=1 | |
36748 | ||
36749 | ||
36750 | fi | |
36751 | rm -Rf build | |
36752 | ||
36753 | ||
36754 | if test $rc -ne 0; then : | |
36755 | ||
36756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36757 | $as_echo "no" >&6; } | |
36758 | ||
36759 | else | |
36760 | if test "x$enable_linux_builtin" != xyes; then | |
36761 | ||
36762 | grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \ | |
36763 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
36764 | rc=$? | |
36765 | if test $rc -ne 0; then | |
36766 | export=0 | |
36767 | for file in block/bio.c; do | |
36768 | grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \ | |
36769 | "$LINUX/$file" 2>/dev/null | |
36770 | rc=$? | |
36771 | if test $rc -eq 0; then | |
36772 | export=1 | |
36773 | break; | |
36774 | fi | |
36775 | done | |
36776 | if test $export -eq 0; then : | |
36777 | rc=1 | |
36778 | else : | |
36779 | rc=0 | |
36780 | fi | |
36781 | else : | |
36782 | rc=0 | |
36783 | fi | |
36784 | ||
36785 | fi | |
36786 | if test $rc -ne 0; then : | |
36787 | ||
36788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36789 | $as_echo "no" >&6; } | |
36790 | ||
36791 | else : | |
36792 | ||
36793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36794 | $as_echo "yes" >&6; } | |
36795 | ||
36796 | $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h | |
36797 | ||
36798 | ||
36799 | fi | |
36800 | fi | |
36801 | ||
36802 | ||
36803 | ||
36804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5 | |
36805 | $as_echo_n "checking whether iops->rename() wants flags... " >&6; } | |
36806 | ||
36807 | ||
36808 | cat confdefs.h - <<_ACEOF >conftest.c | |
36809 | ||
36810 | ||
36811 | #include <linux/fs.h> | |
36812 | int rename_fn(struct inode *sip, struct dentry *sdp, | |
36813 | struct inode *tip, struct dentry *tdp, | |
36814 | unsigned int flags) { return 0; } | |
36815 | ||
36816 | static const struct inode_operations | |
36817 | iops __attribute__ ((unused)) = { | |
36818 | .rename = rename_fn, | |
36819 | }; | |
36820 | ||
36821 | int | |
36822 | main (void) | |
36823 | { | |
36824 | ||
36825 | ||
36826 | ; | |
36827 | return 0; | |
36828 | } | |
36829 | ||
36830 | _ACEOF | |
36831 | ||
36832 | ||
36833 | ||
36834 | cat - <<_ACEOF >conftest.h | |
36835 | ||
36836 | _ACEOF | |
36837 | ||
36838 | ||
36839 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36840 | echo "obj-m := conftest.o" >build/Makefile | |
36841 | modpost_flag='' | |
36842 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36843 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36844 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36845 | (eval $ac_try) 2>&5 | |
36846 | ac_status=$? | |
36847 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36848 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36849 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36850 | (eval $ac_try) 2>&5 | |
36851 | ac_status=$? | |
36852 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36853 | test $ac_status = 0; }; }; then : | |
36854 | ||
36855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36856 | $as_echo "yes" >&6; } | |
36857 | ||
36858 | $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h | |
36859 | ||
36860 | ||
36861 | else | |
36862 | $as_echo "$as_me: failed program was:" >&5 | |
36863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36864 | ||
36865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36866 | $as_echo "no" >&6; } | |
36867 | ||
36868 | ||
36869 | ||
36870 | fi | |
36871 | rm -Rf build | |
36872 | ||
36873 | ||
36874 | ||
36875 | ||
36876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5 | |
36877 | $as_echo_n "checking whether generic_setxattr() exists... " >&6; } | |
36878 | ||
36879 | ||
36880 | cat confdefs.h - <<_ACEOF >conftest.c | |
36881 | ||
36882 | ||
36883 | #include <linux/fs.h> | |
36884 | #include <linux/xattr.h> | |
36885 | ||
36886 | static const struct inode_operations | |
36887 | iops __attribute__ ((unused)) = { | |
36888 | .setxattr = generic_setxattr | |
36889 | }; | |
36890 | ||
36891 | int | |
36892 | main (void) | |
36893 | { | |
36894 | ||
36895 | ||
36896 | ; | |
36897 | return 0; | |
36898 | } | |
36899 | ||
36900 | _ACEOF | |
36901 | ||
36902 | ||
36903 | ||
36904 | cat - <<_ACEOF >conftest.h | |
36905 | ||
36906 | _ACEOF | |
36907 | ||
36908 | ||
36909 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36910 | echo "obj-m := conftest.o" >build/Makefile | |
36911 | modpost_flag='' | |
36912 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36913 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36914 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36915 | (eval $ac_try) 2>&5 | |
36916 | ac_status=$? | |
36917 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36918 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36919 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36920 | (eval $ac_try) 2>&5 | |
36921 | ac_status=$? | |
36922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36923 | test $ac_status = 0; }; }; then : | |
36924 | ||
36925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36926 | $as_echo "yes" >&6; } | |
36927 | ||
36928 | $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h | |
36929 | ||
36930 | ||
36931 | else | |
36932 | $as_echo "$as_me: failed program was:" >&5 | |
36933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36934 | ||
36935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36936 | $as_echo "no" >&6; } | |
36937 | ||
36938 | ||
36939 | ||
36940 | fi | |
36941 | rm -Rf build | |
36942 | ||
36943 | ||
36944 | ||
df9d7621 CIK |
36945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5 |
36946 | $as_echo_n "checking whether current_time() exists... " >&6; } | |
36947 | ||
36948 | ||
36949 | ||
36950 | cat confdefs.h - <<_ACEOF >conftest.c | |
36951 | ||
36952 | ||
36953 | #include <linux/fs.h> | |
36954 | ||
36955 | int | |
36956 | main (void) | |
36957 | { | |
36958 | ||
36959 | struct inode ip; | |
36960 | struct timespec now __attribute__ ((unused)); | |
36961 | ||
36962 | now = current_time(&ip); | |
36963 | ||
36964 | ; | |
36965 | return 0; | |
36966 | } | |
36967 | ||
36968 | _ACEOF | |
36969 | ||
36970 | ||
36971 | ||
36972 | cat - <<_ACEOF >conftest.h | |
36973 | ||
36974 | _ACEOF | |
36975 | ||
36976 | ||
36977 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
36978 | echo "obj-m := conftest.o" >build/Makefile | |
36979 | modpost_flag='' | |
36980 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
36981 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36982 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36983 | (eval $ac_try) 2>&5 | |
36984 | ac_status=$? | |
36985 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36986 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
36987 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
36988 | (eval $ac_try) 2>&5 | |
36989 | ac_status=$? | |
36990 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
36991 | test $ac_status = 0; }; }; then : | |
36992 | rc=0 | |
36993 | else | |
36994 | $as_echo "$as_me: failed program was:" >&5 | |
36995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36996 | rc=1 | |
36997 | ||
36998 | ||
36999 | fi | |
37000 | rm -Rf build | |
37001 | ||
37002 | ||
37003 | if test $rc -ne 0; then : | |
37004 | ||
37005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37006 | $as_echo "no" >&6; } | |
37007 | ||
37008 | else | |
37009 | if test "x$enable_linux_builtin" != xyes; then | |
37010 | ||
37011 | grep -q -E '[[:space:]]current_time[[:space:]]' \ | |
37012 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
37013 | rc=$? | |
37014 | if test $rc -ne 0; then | |
37015 | export=0 | |
37016 | for file in fs/inode.c; do | |
37017 | grep -q -E "EXPORT_SYMBOL.*(current_time)" \ | |
37018 | "$LINUX/$file" 2>/dev/null | |
37019 | rc=$? | |
37020 | if test $rc -eq 0; then | |
37021 | export=1 | |
37022 | break; | |
37023 | fi | |
37024 | done | |
37025 | if test $export -eq 0; then : | |
37026 | rc=1 | |
37027 | else : | |
37028 | rc=0 | |
37029 | fi | |
37030 | else : | |
37031 | rc=0 | |
37032 | fi | |
37033 | ||
37034 | fi | |
37035 | if test $rc -ne 0; then : | |
37036 | ||
37037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37038 | $as_echo "no" >&6; } | |
37039 | ||
37040 | else : | |
37041 | ||
37042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37043 | $as_echo "yes" >&6; } | |
37044 | ||
37045 | $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h | |
37046 | ||
37047 | ||
37048 | fi | |
37049 | fi | |
37050 | ||
37051 | ||
87d546d8 TG |
37052 | |
37053 | if test "$LINUX_OBJ" != "$LINUX"; then : | |
37054 | ||
37055 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
37056 | ||
37057 | fi | |
37058 | ||
37059 | ||
37060 | ||
37061 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE" | |
37062 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE" | |
37063 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL" | |
37064 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\"" | |
37065 | ||
37066 | ||
37067 | ||
37068 | ||
37069 | ||
37070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5 | |
37071 | $as_echo_n "checking for dkms.conf file... " >&6; } | |
37072 | if test -e dkms.conf; then : | |
37073 | ||
37074 | as_fn_error $? " | |
37075 | *** ZFS should not be manually built in the DKMS source tree. | |
37076 | *** Remove all ZFS packages before compiling the ZoL sources. | |
37077 | *** Running \"make install\" breaks ZFS packages." "$LINENO" 5 | |
37078 | ||
37079 | else | |
37080 | ||
37081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
37082 | $as_echo "not found" >&6; } | |
37083 | ||
37084 | fi | |
37085 | ||
37086 | ||
37087 | ||
37088 | # Check whether --with-mounthelperdir was given. | |
37089 | if test "${with_mounthelperdir+set}" = set; then : | |
37090 | withval=$with_mounthelperdir; mounthelperdir=$withval | |
37091 | else | |
37092 | mounthelperdir=/sbin | |
37093 | fi | |
37094 | ||
37095 | ||
37096 | ||
37097 | ||
37098 | ||
37099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5 | |
37100 | $as_echo_n "checking for udev directories... " >&6; } | |
37101 | ||
37102 | # Check whether --with-udevdir was given. | |
37103 | if test "${with_udevdir+set}" = set; then : | |
37104 | withval=$with_udevdir; udevdir=$withval | |
37105 | else | |
37106 | udevdir=check | |
37107 | fi | |
37108 | ||
37109 | ||
37110 | if test "x$udevdir" = xcheck; then : | |
37111 | ||
37112 | path1=/lib/udev | |
37113 | path2=/usr/lib/udev | |
37114 | default=$path2 | |
37115 | ||
37116 | if test -d "$path1"; then : | |
37117 | udevdir="$path1" | |
37118 | else | |
37119 | ||
37120 | if test -d "$path2"; then : | |
37121 | udevdir="$path2" | |
37122 | else | |
37123 | udevdir="$default" | |
37124 | fi | |
37125 | ||
37126 | fi | |
37127 | ||
37128 | fi | |
37129 | ||
37130 | ||
37131 | # Check whether --with-udevruledir was given. | |
37132 | if test "${with_udevruledir+set}" = set; then : | |
37133 | withval=$with_udevruledir; udevruledir=$withval | |
37134 | else | |
37135 | udevruledir="${udevdir}/rules.d" | |
37136 | fi | |
37137 | ||
37138 | ||
37139 | ||
37140 | ||
37141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5 | |
37142 | $as_echo "$udevdir;$udevruledir" >&6; } | |
37143 | ||
37144 | ||
3f5d8d55 CIK |
37145 | LIBAIO= |
37146 | ||
37147 | ac_fn_c_check_header_mongrel "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default" | |
37148 | if test "x$ac_cv_header_libaio_h" = xyes; then : | |
37149 | ||
37150 | user_libaio=yes | |
37151 | LIBAIO="-laio" | |
37152 | ||
37153 | ||
37154 | $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h | |
37155 | ||
37156 | ||
37157 | else | |
37158 | ||
37159 | user_libaio=no | |
37160 | ||
37161 | fi | |
37162 | ||
37163 | ||
37164 | ||
37165 | ||
87d546d8 TG |
37166 | # Check whether --enable-systemd was given. |
37167 | if test "${enable_systemd+set}" = set; then : | |
37168 | enableval=$enable_systemd; | |
37169 | else | |
37170 | enable_systemd=yes | |
37171 | fi | |
37172 | ||
37173 | ||
37174 | ||
37175 | # Check whether --with-systemdunitdir was given. | |
37176 | if test "${with_systemdunitdir+set}" = set; then : | |
37177 | withval=$with_systemdunitdir; systemdunitdir=$withval | |
37178 | else | |
37179 | systemdunitdir=/usr/lib/systemd/system | |
37180 | fi | |
37181 | ||
37182 | ||
37183 | ||
37184 | # Check whether --with-systemdpresetdir was given. | |
37185 | if test "${with_systemdpresetdir+set}" = set; then : | |
37186 | withval=$with_systemdpresetdir; systemdpresetdir=$withval | |
37187 | else | |
37188 | systemdpresetdir=/usr/lib/systemd/system-preset | |
37189 | fi | |
37190 | ||
37191 | ||
37192 | ||
37193 | # Check whether --with-systemdmodulesloaddir was given. | |
37194 | if test "${with_systemdmodulesloaddir+set}" = set; then : | |
37195 | withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval | |
37196 | else | |
37197 | systemdmodulesloaddir=/usr/lib/modules-load.d | |
37198 | fi | |
37199 | ||
37200 | ||
37201 | ||
37202 | if test "x$enable_systemd" = xyes; then : | |
37203 | ||
37204 | ZFS_INIT_SYSTEMD=systemd | |
37205 | ZFS_MODULE_LOAD=modules-load.d | |
37206 | modulesloaddir=$systemdmodulesloaddir | |
37207 | ||
37208 | fi | |
37209 | ||
37210 | ||
37211 | ||
37212 | ||
37213 | ||
37214 | ||
37215 | ||
37216 | ||
37217 | # Check whether --enable-sysvinit was given. | |
37218 | if test "${enable_sysvinit+set}" = set; then : | |
37219 | enableval=$enable_sysvinit; | |
37220 | else | |
37221 | enable_sysvinit=yes | |
37222 | fi | |
37223 | ||
37224 | ||
37225 | if test "x$enable_sysvinit" = xyes; then : | |
37226 | ZFS_INIT_SYSV=init.d | |
37227 | fi | |
37228 | ||
37229 | ||
37230 | ||
37231 | ||
37232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5 | |
37233 | $as_echo_n "checking for dracut directory... " >&6; } | |
37234 | ||
37235 | # Check whether --with-dracutdir was given. | |
37236 | if test "${with_dracutdir+set}" = set; then : | |
37237 | withval=$with_dracutdir; dracutdir=$withval | |
37238 | else | |
37239 | dracutdir=check | |
37240 | fi | |
37241 | ||
37242 | ||
37243 | if test "x$dracutdir" = xcheck; then : | |
37244 | ||
37245 | path1=/usr/share/dracut | |
37246 | path2=/usr/lib/dracut | |
37247 | default=$path2 | |
37248 | ||
37249 | if test -d "$path1"; then : | |
37250 | dracutdir="$path1" | |
37251 | else | |
37252 | ||
37253 | if test -d "$path2"; then : | |
37254 | dracutdir="$path2" | |
37255 | else | |
37256 | dracutdir="$default" | |
37257 | fi | |
37258 | ||
37259 | fi | |
37260 | ||
37261 | fi | |
37262 | ||
37263 | ||
37264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5 | |
37265 | $as_echo "$dracutdir" >&6; } | |
37266 | ||
37267 | ||
37268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5 | |
37269 | $as_echo_n "checking for target asm dir... " >&6; } | |
37270 | TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/` | |
37271 | ||
37272 | case $TARGET_ARCH in | |
37273 | i386|x86_64) | |
37274 | TARGET_ASM_DIR=asm-${TARGET_ARCH} | |
37275 | ;; | |
37276 | *) | |
37277 | TARGET_ASM_DIR=asm-generic | |
37278 | ;; | |
37279 | esac | |
37280 | ||
37281 | ||
37282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5 | |
37283 | $as_echo "$TARGET_ASM_DIR" >&6; } | |
37284 | ||
37285 | ||
37286 | ZLIB= | |
37287 | ||
37288 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
37289 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
37290 | ||
37291 | else | |
37292 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37293 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37294 | as_fn_error $? " | |
37295 | *** zlib.h missing, zlib-devel package required | |
37296 | See \`config.log' for more details" "$LINENO" 5; } | |
37297 | fi | |
37298 | ||
37299 | ||
37300 | ||
37301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5 | |
37302 | $as_echo_n "checking for compress2 in -lz... " >&6; } | |
37303 | if ${ac_cv_lib_z_compress2+:} false; then : | |
37304 | $as_echo_n "(cached) " >&6 | |
37305 | else | |
37306 | ac_check_lib_save_LIBS=$LIBS | |
37307 | LIBS="-lz $LIBS" | |
37308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37309 | /* end confdefs.h. */ | |
37310 | ||
37311 | /* Override any GCC internal prototype to avoid an error. | |
37312 | Use char because int might match the return type of a GCC | |
37313 | builtin and then its argument prototype would still apply. */ | |
37314 | #ifdef __cplusplus | |
37315 | extern "C" | |
37316 | #endif | |
37317 | char compress2 (); | |
37318 | int | |
37319 | main () | |
37320 | { | |
37321 | return compress2 (); | |
37322 | ; | |
37323 | return 0; | |
37324 | } | |
37325 | _ACEOF | |
37326 | if ac_fn_c_try_link "$LINENO"; then : | |
37327 | ac_cv_lib_z_compress2=yes | |
37328 | else | |
37329 | ac_cv_lib_z_compress2=no | |
37330 | fi | |
37331 | rm -f core conftest.err conftest.$ac_objext \ | |
37332 | conftest$ac_exeext conftest.$ac_ext | |
37333 | LIBS=$ac_check_lib_save_LIBS | |
37334 | fi | |
37335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5 | |
37336 | $as_echo "$ac_cv_lib_z_compress2" >&6; } | |
37337 | if test "x$ac_cv_lib_z_compress2" = xyes; then : | |
37338 | cat >>confdefs.h <<_ACEOF | |
37339 | #define HAVE_LIBZ 1 | |
37340 | _ACEOF | |
37341 | ||
37342 | LIBS="-lz $LIBS" | |
37343 | ||
37344 | else | |
37345 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37346 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37347 | as_fn_error $? " | |
37348 | *** compress2() missing, zlib-devel package required | |
37349 | See \`config.log' for more details" "$LINENO" 5; } | |
37350 | fi | |
37351 | ||
37352 | ||
37353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 | |
37354 | $as_echo_n "checking for uncompress in -lz... " >&6; } | |
37355 | if ${ac_cv_lib_z_uncompress+:} false; then : | |
37356 | $as_echo_n "(cached) " >&6 | |
37357 | else | |
37358 | ac_check_lib_save_LIBS=$LIBS | |
37359 | LIBS="-lz $LIBS" | |
37360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37361 | /* end confdefs.h. */ | |
37362 | ||
37363 | /* Override any GCC internal prototype to avoid an error. | |
37364 | Use char because int might match the return type of a GCC | |
37365 | builtin and then its argument prototype would still apply. */ | |
37366 | #ifdef __cplusplus | |
37367 | extern "C" | |
37368 | #endif | |
37369 | char uncompress (); | |
37370 | int | |
37371 | main () | |
37372 | { | |
37373 | return uncompress (); | |
37374 | ; | |
37375 | return 0; | |
37376 | } | |
37377 | _ACEOF | |
37378 | if ac_fn_c_try_link "$LINENO"; then : | |
37379 | ac_cv_lib_z_uncompress=yes | |
37380 | else | |
37381 | ac_cv_lib_z_uncompress=no | |
37382 | fi | |
37383 | rm -f core conftest.err conftest.$ac_objext \ | |
37384 | conftest$ac_exeext conftest.$ac_ext | |
37385 | LIBS=$ac_check_lib_save_LIBS | |
37386 | fi | |
37387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 | |
37388 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } | |
37389 | if test "x$ac_cv_lib_z_uncompress" = xyes; then : | |
37390 | cat >>confdefs.h <<_ACEOF | |
37391 | #define HAVE_LIBZ 1 | |
37392 | _ACEOF | |
37393 | ||
37394 | LIBS="-lz $LIBS" | |
37395 | ||
37396 | else | |
37397 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37398 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37399 | as_fn_error $? " | |
37400 | *** uncompress() missing, zlib-devel package required | |
37401 | See \`config.log' for more details" "$LINENO" 5; } | |
37402 | fi | |
37403 | ||
37404 | ||
37405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5 | |
37406 | $as_echo_n "checking for crc32 in -lz... " >&6; } | |
37407 | if ${ac_cv_lib_z_crc32+:} false; then : | |
37408 | $as_echo_n "(cached) " >&6 | |
37409 | else | |
37410 | ac_check_lib_save_LIBS=$LIBS | |
37411 | LIBS="-lz $LIBS" | |
37412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37413 | /* end confdefs.h. */ | |
37414 | ||
37415 | /* Override any GCC internal prototype to avoid an error. | |
37416 | Use char because int might match the return type of a GCC | |
37417 | builtin and then its argument prototype would still apply. */ | |
37418 | #ifdef __cplusplus | |
37419 | extern "C" | |
37420 | #endif | |
37421 | char crc32 (); | |
37422 | int | |
37423 | main () | |
37424 | { | |
37425 | return crc32 (); | |
37426 | ; | |
37427 | return 0; | |
37428 | } | |
37429 | _ACEOF | |
37430 | if ac_fn_c_try_link "$LINENO"; then : | |
37431 | ac_cv_lib_z_crc32=yes | |
37432 | else | |
37433 | ac_cv_lib_z_crc32=no | |
37434 | fi | |
37435 | rm -f core conftest.err conftest.$ac_objext \ | |
37436 | conftest$ac_exeext conftest.$ac_ext | |
37437 | LIBS=$ac_check_lib_save_LIBS | |
37438 | fi | |
37439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5 | |
37440 | $as_echo "$ac_cv_lib_z_crc32" >&6; } | |
37441 | if test "x$ac_cv_lib_z_crc32" = xyes; then : | |
37442 | cat >>confdefs.h <<_ACEOF | |
37443 | #define HAVE_LIBZ 1 | |
37444 | _ACEOF | |
37445 | ||
37446 | LIBS="-lz $LIBS" | |
37447 | ||
37448 | else | |
37449 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37450 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37451 | as_fn_error $? " | |
37452 | *** crc32() missing, zlib-devel package required | |
37453 | See \`config.log' for more details" "$LINENO" 5; } | |
37454 | fi | |
37455 | ||
37456 | ||
37457 | ZLIB="-lz" | |
37458 | ||
37459 | ||
37460 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h | |
37461 | ||
37462 | ||
37463 | ||
37464 | LIBUUID= | |
37465 | ||
37466 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" | |
37467 | if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : | |
37468 | ||
37469 | else | |
37470 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37471 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37472 | as_fn_error $? " | |
37473 | *** uuid/uuid.h missing, libuuid-devel package required | |
37474 | See \`config.log' for more details" "$LINENO" 5; } | |
37475 | fi | |
37476 | ||
37477 | ||
37478 | ||
37479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 | |
37480 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
37481 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : | |
37482 | $as_echo_n "(cached) " >&6 | |
37483 | else | |
37484 | ac_check_lib_save_LIBS=$LIBS | |
37485 | LIBS="-luuid $LIBS" | |
37486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37487 | /* end confdefs.h. */ | |
37488 | ||
37489 | /* Override any GCC internal prototype to avoid an error. | |
37490 | Use char because int might match the return type of a GCC | |
37491 | builtin and then its argument prototype would still apply. */ | |
37492 | #ifdef __cplusplus | |
37493 | extern "C" | |
37494 | #endif | |
37495 | char uuid_generate (); | |
37496 | int | |
37497 | main () | |
37498 | { | |
37499 | return uuid_generate (); | |
37500 | ; | |
37501 | return 0; | |
37502 | } | |
37503 | _ACEOF | |
37504 | if ac_fn_c_try_link "$LINENO"; then : | |
37505 | ac_cv_lib_uuid_uuid_generate=yes | |
37506 | else | |
37507 | ac_cv_lib_uuid_uuid_generate=no | |
37508 | fi | |
37509 | rm -f core conftest.err conftest.$ac_objext \ | |
37510 | conftest$ac_exeext conftest.$ac_ext | |
37511 | LIBS=$ac_check_lib_save_LIBS | |
37512 | fi | |
37513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
37514 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
37515 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : | |
37516 | cat >>confdefs.h <<_ACEOF | |
37517 | #define HAVE_LIBUUID 1 | |
37518 | _ACEOF | |
37519 | ||
37520 | LIBS="-luuid $LIBS" | |
37521 | ||
37522 | else | |
37523 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37524 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37525 | as_fn_error $? " | |
37526 | *** uuid_generate() missing, libuuid-devel package required | |
37527 | See \`config.log' for more details" "$LINENO" 5; } | |
37528 | fi | |
37529 | ||
37530 | ||
37531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5 | |
37532 | $as_echo_n "checking for uuid_is_null in -luuid... " >&6; } | |
37533 | if ${ac_cv_lib_uuid_uuid_is_null+:} false; then : | |
37534 | $as_echo_n "(cached) " >&6 | |
37535 | else | |
37536 | ac_check_lib_save_LIBS=$LIBS | |
37537 | LIBS="-luuid $LIBS" | |
37538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37539 | /* end confdefs.h. */ | |
37540 | ||
37541 | /* Override any GCC internal prototype to avoid an error. | |
37542 | Use char because int might match the return type of a GCC | |
37543 | builtin and then its argument prototype would still apply. */ | |
37544 | #ifdef __cplusplus | |
37545 | extern "C" | |
37546 | #endif | |
37547 | char uuid_is_null (); | |
37548 | int | |
37549 | main () | |
37550 | { | |
37551 | return uuid_is_null (); | |
37552 | ; | |
37553 | return 0; | |
37554 | } | |
37555 | _ACEOF | |
37556 | if ac_fn_c_try_link "$LINENO"; then : | |
37557 | ac_cv_lib_uuid_uuid_is_null=yes | |
37558 | else | |
37559 | ac_cv_lib_uuid_uuid_is_null=no | |
37560 | fi | |
37561 | rm -f core conftest.err conftest.$ac_objext \ | |
37562 | conftest$ac_exeext conftest.$ac_ext | |
37563 | LIBS=$ac_check_lib_save_LIBS | |
37564 | fi | |
37565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5 | |
37566 | $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; } | |
37567 | if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then : | |
37568 | cat >>confdefs.h <<_ACEOF | |
37569 | #define HAVE_LIBUUID 1 | |
37570 | _ACEOF | |
37571 | ||
37572 | LIBS="-luuid $LIBS" | |
37573 | ||
37574 | else | |
37575 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37576 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37577 | as_fn_error $? " | |
37578 | *** uuid_is_null() missing, libuuid-devel package required | |
37579 | See \`config.log' for more details" "$LINENO" 5; } | |
37580 | fi | |
37581 | ||
37582 | ||
37583 | LIBUUID="-luuid" | |
37584 | ||
37585 | ||
37586 | $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h | |
37587 | ||
37588 | ||
37589 | ||
37590 | ||
37591 | # Check whether --with-blkid was given. | |
37592 | if test "${with_blkid+set}" = set; then : | |
37593 | withval=$with_blkid; | |
37594 | else | |
37595 | with_blkid=check | |
37596 | fi | |
37597 | ||
37598 | ||
37599 | LIBBLKID= | |
37600 | if test "x$with_blkid" = xyes; then : | |
37601 | ||
37602 | LIBBLKID="-lblkid" | |
37603 | ||
37604 | ||
37605 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
37606 | ||
37607 | ||
37608 | fi | |
37609 | ||
37610 | if test "x$with_blkid" = xcheck; then : | |
37611 | ||
37612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 | |
37613 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
37614 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : | |
37615 | $as_echo_n "(cached) " >&6 | |
37616 | else | |
37617 | ac_check_lib_save_LIBS=$LIBS | |
37618 | LIBS="-lblkid $LIBS" | |
37619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37620 | /* end confdefs.h. */ | |
37621 | ||
37622 | /* Override any GCC internal prototype to avoid an error. | |
37623 | Use char because int might match the return type of a GCC | |
37624 | builtin and then its argument prototype would still apply. */ | |
37625 | #ifdef __cplusplus | |
37626 | extern "C" | |
37627 | #endif | |
37628 | char blkid_get_cache (); | |
37629 | int | |
37630 | main () | |
37631 | { | |
37632 | return blkid_get_cache (); | |
37633 | ; | |
37634 | return 0; | |
37635 | } | |
37636 | _ACEOF | |
37637 | if ac_fn_c_try_link "$LINENO"; then : | |
37638 | ac_cv_lib_blkid_blkid_get_cache=yes | |
37639 | else | |
37640 | ac_cv_lib_blkid_blkid_get_cache=no | |
37641 | fi | |
37642 | rm -f core conftest.err conftest.$ac_objext \ | |
37643 | conftest$ac_exeext conftest.$ac_ext | |
37644 | LIBS=$ac_check_lib_save_LIBS | |
37645 | fi | |
37646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 | |
37647 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
37648 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : | |
37649 | ||
37650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5 | |
37651 | $as_echo_n "checking for blkid zfs support... " >&6; } | |
37652 | ||
37653 | ZFS_DEV=`mktemp` | |
37654 | truncate -s 64M $ZFS_DEV | |
37655 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
37656 | dd of=$ZFS_DEV bs=1k count=8 \ | |
37657 | seek=128 conv=notrunc &>/dev/null \ | |
37658 | >/dev/null 2>/dev/null | |
37659 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
37660 | dd of=$ZFS_DEV bs=1k count=8 \ | |
37661 | seek=132 conv=notrunc &>/dev/null \ | |
37662 | >/dev/null 2>/dev/null | |
37663 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
37664 | dd of=$ZFS_DEV bs=1k count=8 \ | |
37665 | seek=136 conv=notrunc &>/dev/null \ | |
37666 | >/dev/null 2>/dev/null | |
37667 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
37668 | dd of=$ZFS_DEV bs=1k count=8 \ | |
37669 | seek=140 conv=notrunc &>/dev/null \ | |
37670 | >/dev/null 2>/dev/null | |
37671 | ||
37672 | saved_LIBS="$LIBS" | |
37673 | LIBS="-lblkid" | |
37674 | ||
37675 | if test "$cross_compiling" = yes; then : | |
37676 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37677 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37678 | as_fn_error $? "cannot run test program while cross compiling | |
37679 | See \`config.log' for more details" "$LINENO" 5; } | |
37680 | else | |
37681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37682 | /* end confdefs.h. */ | |
37683 | ||
37684 | #include <stdio.h> | |
37685 | #include <stdlib.h> | |
37686 | #include <blkid/blkid.h> | |
37687 | ||
37688 | int | |
37689 | main () | |
37690 | { | |
37691 | ||
37692 | blkid_cache cache; | |
37693 | char *value; | |
37694 | ||
37695 | if (blkid_get_cache(&cache, NULL) < 0) | |
37696 | return 1; | |
37697 | ||
37698 | value = blkid_get_tag_value(cache, "TYPE", | |
37699 | "$ZFS_DEV"); | |
37700 | if (!value) { | |
37701 | blkid_put_cache(cache); | |
37702 | return 2; | |
37703 | } | |
37704 | ||
37705 | if (strcmp(value, "zfs_member")) { | |
37706 | free(value); | |
37707 | blkid_put_cache(cache); | |
37708 | return 0; | |
37709 | } | |
37710 | ||
37711 | free(value); | |
37712 | blkid_put_cache(cache); | |
37713 | ||
37714 | ; | |
37715 | return 0; | |
37716 | } | |
37717 | _ACEOF | |
37718 | if ac_fn_c_try_run "$LINENO"; then : | |
37719 | ||
37720 | rm -f $ZFS_DEV | |
37721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37722 | $as_echo "yes" >&6; } | |
37723 | LIBBLKID="-lblkid" | |
37724 | ||
37725 | ||
37726 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
37727 | ||
37728 | ||
37729 | else | |
37730 | ||
37731 | rm -f $ZFS_DEV | |
37732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37733 | $as_echo "no" >&6; } | |
37734 | if test "x$with_blkid" != xcheck; then : | |
37735 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37736 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37737 | as_fn_error $? "--with-blkid given but unavailable | |
37738 | See \`config.log' for more details" "$LINENO" 5; } | |
37739 | fi | |
37740 | ||
37741 | fi | |
37742 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
37743 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
37744 | fi | |
37745 | ||
37746 | ||
37747 | LIBS="$saved_LIBS" | |
37748 | ||
37749 | else | |
37750 | ||
37751 | if test "x$with_blkid" != xcheck; then : | |
37752 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
37753 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
37754 | as_fn_error $? "--with-blkid given but unavailable | |
37755 | See \`config.log' for more details" "$LINENO" 5; } | |
37756 | fi | |
37757 | ||
37758 | ||
37759 | fi | |
37760 | ||
37761 | ||
37762 | fi | |
37763 | ||
37764 | ||
37765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5 | |
37766 | $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; } | |
37767 | ||
37768 | saved_flags="$CFLAGS" | |
37769 | CFLAGS="$CFLAGS -Wframe-larger-than=1024" | |
37770 | ||
37771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37772 | /* end confdefs.h. */ | |
37773 | ||
37774 | int | |
37775 | main () | |
37776 | { | |
37777 | ||
37778 | ; | |
37779 | return 0; | |
37780 | } | |
37781 | _ACEOF | |
37782 | if ac_fn_c_try_compile "$LINENO"; then : | |
37783 | ||
37784 | FRAME_LARGER_THAN=-Wframe-larger-than=1024 | |
37785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37786 | $as_echo "yes" >&6; } | |
37787 | ||
37788 | else | |
37789 | ||
37790 | FRAME_LARGER_THAN= | |
37791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37792 | $as_echo "no" >&6; } | |
37793 | ||
37794 | fi | |
37795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
37796 | ||
37797 | CFLAGS="$saved_flags" | |
37798 | ||
37799 | ||
37800 | ||
37801 | if test "x$runstatedir" = x; then | |
37802 | runstatedir='${localstatedir}/run' | |
37803 | ||
37804 | fi | |
37805 | ||
1ec59ff7 CIK |
37806 | |
37807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5 | |
37808 | $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; } | |
37809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37810 | /* end confdefs.h. */ | |
37811 | ||
37812 | #include <sys/sysmacros.h> | |
37813 | ||
37814 | int | |
37815 | main () | |
37816 | { | |
37817 | ||
37818 | int k; | |
37819 | k = makedev(0,0); | |
37820 | ||
37821 | ; | |
37822 | return 0; | |
37823 | } | |
37824 | _ACEOF | |
37825 | if ac_fn_c_try_compile "$LINENO"; then : | |
37826 | ||
37827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37828 | $as_echo "yes" >&6; } | |
37829 | ||
37830 | $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h | |
37831 | ||
37832 | ||
37833 | else | |
37834 | ||
37835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37836 | $as_echo "no" >&6; } | |
37837 | ||
37838 | fi | |
37839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
37840 | ||
37841 | ||
37842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5 | |
37843 | $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; } | |
37844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37845 | /* end confdefs.h. */ | |
37846 | ||
37847 | #include <sys/mkdev.h> | |
37848 | ||
37849 | int | |
37850 | main () | |
37851 | { | |
37852 | ||
37853 | int k; | |
37854 | k = makedev(0,0); | |
37855 | ||
37856 | ; | |
37857 | return 0; | |
37858 | } | |
37859 | _ACEOF | |
37860 | if ac_fn_c_try_compile "$LINENO"; then : | |
37861 | ||
37862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37863 | $as_echo "yes" >&6; } | |
37864 | ||
37865 | $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h | |
37866 | ||
37867 | ||
37868 | else | |
37869 | ||
37870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37871 | $as_echo "no" >&6; } | |
37872 | ||
37873 | fi | |
37874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
37875 | ||
37876 | ||
37877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5 | |
37878 | $as_echo_n "checking for -Wno-format-truncation support... " >&6; } | |
37879 | ||
37880 | saved_flags="$CFLAGS" | |
37881 | CFLAGS="$CFLAGS -Wno-format-truncation" | |
37882 | ||
37883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
37884 | /* end confdefs.h. */ | |
37885 | ||
37886 | int | |
37887 | main () | |
37888 | { | |
37889 | ||
37890 | ; | |
37891 | return 0; | |
37892 | } | |
37893 | _ACEOF | |
37894 | if ac_fn_c_try_compile "$LINENO"; then : | |
37895 | ||
37896 | NO_FORMAT_TRUNCATION=-Wno-format-truncation | |
37897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
37898 | $as_echo "yes" >&6; } | |
37899 | ||
37900 | else | |
37901 | ||
37902 | NO_FORMAT_TRUNCATION= | |
37903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
37904 | $as_echo "no" >&6; } | |
37905 | ||
37906 | fi | |
37907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
37908 | ||
37909 | CFLAGS="$saved_flags" | |
37910 | ||
37911 | ||
87d546d8 TG |
37912 | for ac_func in mlockall |
37913 | do : | |
37914 | ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" | |
37915 | if test "x$ac_cv_func_mlockall" = xyes; then : | |
37916 | cat >>confdefs.h <<_ACEOF | |
37917 | #define HAVE_MLOCKALL 1 | |
37918 | _ACEOF | |
37919 | ||
37920 | fi | |
37921 | done | |
37922 | ||
37923 | ;; | |
37924 | srpm) ;; | |
37925 | *) | |
37926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 | |
37927 | $as_echo "Error!" >&6; } | |
37928 | as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config, | |
37929 | user kernel|user|all|srpm" "$LINENO" 5 ;; | |
37930 | esac | |
37931 | ||
37932 | if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then | |
37933 | CONFIG_USER_TRUE= | |
37934 | CONFIG_USER_FALSE='#' | |
37935 | else | |
37936 | CONFIG_USER_TRUE='#' | |
37937 | CONFIG_USER_FALSE= | |
37938 | fi | |
37939 | ||
37940 | if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all && | |
37941 | test "x$enable_linux_builtin" != xyes ; then | |
37942 | CONFIG_KERNEL_TRUE= | |
37943 | CONFIG_KERNEL_FALSE='#' | |
37944 | else | |
37945 | CONFIG_KERNEL_TRUE='#' | |
37946 | CONFIG_KERNEL_FALSE= | |
37947 | fi | |
37948 | ||
3f5d8d55 CIK |
37949 | if test "x$user_libudev" = xyes ; then |
37950 | WANT_DEVNAME2DEVID_TRUE= | |
37951 | WANT_DEVNAME2DEVID_FALSE='#' | |
37952 | else | |
37953 | WANT_DEVNAME2DEVID_TRUE='#' | |
37954 | WANT_DEVNAME2DEVID_FALSE= | |
37955 | fi | |
37956 | ||
37957 | if test "x$user_libaio" = xyes ; then | |
37958 | WANT_MMAP_LIBAIO_TRUE= | |
37959 | WANT_MMAP_LIBAIO_FALSE='#' | |
37960 | else | |
37961 | WANT_MMAP_LIBAIO_TRUE='#' | |
37962 | WANT_MMAP_LIBAIO_FALSE= | |
37963 | fi | |
37964 | ||
87d546d8 TG |
37965 | |
37966 | ||
37967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5 | |
37968 | $as_echo_n "checking whether debugging is enabled... " >&6; } | |
37969 | # Check whether --enable-debug was given. | |
37970 | if test "${enable_debug+set}" = set; then : | |
37971 | enableval=$enable_debug; | |
37972 | else | |
37973 | enable_debug=no | |
37974 | fi | |
37975 | ||
37976 | ||
37977 | if test "x$enable_debug" = xyes; then : | |
37978 | ||
37979 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror" | |
37980 | HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror" | |
37981 | DEBUG_CFLAGS="-DDEBUG -Werror" | |
37982 | DEBUG_STACKFLAGS="-fstack-check" | |
37983 | DEBUG_ZFS="_with_debug" | |
37984 | ||
37985 | $as_echo "#define ZFS_DEBUG 1" >>confdefs.h | |
37986 | ||
37987 | ||
37988 | else | |
37989 | ||
37990 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG " | |
37991 | HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG " | |
37992 | DEBUG_CFLAGS="-DNDEBUG" | |
37993 | DEBUG_STACKFLAGS="" | |
37994 | DEBUG_ZFS="_without_debug" | |
37995 | ||
37996 | fi | |
37997 | ||
37998 | ||
37999 | ||
38000 | ||
38001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 | |
38002 | $as_echo "$enable_debug" >&6; } | |
38003 | ||
38004 | ||
38005 | # Check whether --enable-debug-dmu-tx was given. | |
38006 | if test "${enable_debug_dmu_tx+set}" = set; then : | |
38007 | enableval=$enable_debug_dmu_tx; | |
38008 | else | |
38009 | enable_debug_dmu_tx=no | |
38010 | fi | |
38011 | ||
38012 | ||
38013 | if test "x$enable_debug_dmu_tx" = xyes; then : | |
38014 | ||
38015 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX" | |
38016 | DEBUG_DMU_TX="_with_debug_dmu_tx" | |
38017 | ||
38018 | $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h | |
38019 | ||
38020 | ||
38021 | else | |
38022 | ||
38023 | DEBUG_DMU_TX="_without_debug_dmu_tx" | |
38024 | ||
38025 | fi | |
38026 | ||
38027 | ||
38028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5 | |
38029 | $as_echo_n "checking whether dmu tx validation is enabled... " >&6; } | |
38030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5 | |
38031 | $as_echo "$enable_debug_dmu_tx" >&6; } | |
38032 | ||
38033 | ||
38034 | ac_config_files="$ac_config_files 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 zfs.release" | |
38035 | ||
38036 | ||
38037 | cat >confcache <<\_ACEOF | |
38038 | # This file is a shell script that caches the results of configure | |
38039 | # tests run on this system so they can be shared between configure | |
38040 | # scripts and configure runs, see configure's option --config-cache. | |
38041 | # It is not useful on other systems. If it contains results you don't | |
38042 | # want to keep, you may remove or edit it. | |
38043 | # | |
38044 | # config.status only pays attention to the cache file if you give it | |
38045 | # the --recheck option to rerun configure. | |
38046 | # | |
38047 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
38048 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
38049 | # following values. | |
38050 | ||
38051 | _ACEOF | |
38052 | ||
38053 | # The following way of writing the cache mishandles newlines in values, | |
38054 | # but we know of no workaround that is simple, portable, and efficient. | |
38055 | # So, we kill variables containing newlines. | |
38056 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
38057 | # and sets the high bit in the cache file unless we assign to the vars. | |
38058 | ( | |
38059 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
38060 | eval ac_val=\$$ac_var | |
38061 | case $ac_val in #( | |
38062 | *${as_nl}*) | |
38063 | case $ac_var in #( | |
38064 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
38065 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
38066 | esac | |
38067 | case $ac_var in #( | |
38068 | _ | IFS | as_nl) ;; #( | |
38069 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
38070 | *) { eval $ac_var=; unset $ac_var;} ;; | |
38071 | esac ;; | |
38072 | esac | |
38073 | done | |
38074 | ||
38075 | (set) 2>&1 | | |
38076 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
38077 | *${as_nl}ac_space=\ *) | |
38078 | # `set' does not quote correctly, so add quotes: double-quote | |
38079 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
38080 | sed -n \ | |
38081 | "s/'/'\\\\''/g; | |
38082 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
38083 | ;; #( | |
38084 | *) | |
38085 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
38086 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
38087 | ;; | |
38088 | esac | | |
38089 | sort | |
38090 | ) | | |
38091 | sed ' | |
38092 | /^ac_cv_env_/b end | |
38093 | t clear | |
38094 | :clear | |
38095 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
38096 | t end | |
38097 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
38098 | :end' >>confcache | |
38099 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
38100 | if test -w "$cache_file"; then | |
38101 | if test "x$cache_file" != "x/dev/null"; then | |
38102 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
38103 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
38104 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
38105 | cat confcache >"$cache_file" | |
38106 | else | |
38107 | case $cache_file in #( | |
38108 | */* | ?:*) | |
38109 | mv -f confcache "$cache_file"$$ && | |
38110 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
38111 | *) | |
38112 | mv -f confcache "$cache_file" ;; | |
38113 | esac | |
38114 | fi | |
38115 | fi | |
38116 | else | |
38117 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
38118 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
38119 | fi | |
38120 | fi | |
38121 | rm -f confcache | |
38122 | ||
38123 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
38124 | # Let make expand exec_prefix. | |
38125 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
38126 | ||
38127 | DEFS=-DHAVE_CONFIG_H | |
38128 | ||
38129 | ac_libobjs= | |
38130 | ac_ltlibobjs= | |
38131 | U= | |
38132 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
38133 | # 1. Remove the extension, and $U if already installed. | |
38134 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
38135 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
38136 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
38137 | # will be set to the directory where LIBOBJS objects are built. | |
38138 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
38139 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
38140 | done | |
38141 | LIBOBJS=$ac_libobjs | |
38142 | ||
38143 | LTLIBOBJS=$ac_ltlibobjs | |
38144 | ||
38145 | ||
38146 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
38147 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
38148 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
38149 | fi | |
38150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
38151 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
38152 | if test -n "$am_sleep_pid"; then | |
38153 | # Hide warnings about reused PIDs. | |
38154 | wait $am_sleep_pid 2>/dev/null | |
38155 | fi | |
38156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
38157 | $as_echo "done" >&6; } | |
38158 | if test -n "$EXEEXT"; then | |
38159 | am__EXEEXT_TRUE= | |
38160 | am__EXEEXT_FALSE='#' | |
38161 | else | |
38162 | am__EXEEXT_TRUE='#' | |
38163 | am__EXEEXT_FALSE= | |
38164 | fi | |
38165 | ||
38166 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
38167 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
38168 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
38169 | fi | |
38170 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
38171 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
38172 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
38173 | fi | |
38174 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then | |
38175 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. | |
38176 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
38177 | fi | |
38178 | if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then | |
38179 | as_fn_error $? "conditional \"CONFIG_USER\" was never defined. | |
38180 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
38181 | fi | |
38182 | if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then | |
38183 | as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined. | |
38184 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
38185 | fi | |
3f5d8d55 CIK |
38186 | if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then |
38187 | as_fn_error $? "conditional \"WANT_DEVNAME2DEVID\" was never defined. | |
38188 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
38189 | fi | |
38190 | if test -z "${WANT_MMAP_LIBAIO_TRUE}" && test -z "${WANT_MMAP_LIBAIO_FALSE}"; then | |
38191 | as_fn_error $? "conditional \"WANT_MMAP_LIBAIO\" was never defined. | |
38192 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
38193 | fi | |
87d546d8 TG |
38194 | |
38195 | : "${CONFIG_STATUS=./config.status}" | |
38196 | ac_write_fail=0 | |
38197 | ac_clean_files_save=$ac_clean_files | |
38198 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
38199 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
38200 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
38201 | as_write_fail=0 | |
38202 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
38203 | #! $SHELL | |
38204 | # Generated by $as_me. | |
38205 | # Run this file to recreate the current configuration. | |
38206 | # Compiler output produced by configure, useful for debugging | |
38207 | # configure, is in config.log if it exists. | |
38208 | ||
38209 | debug=false | |
38210 | ac_cs_recheck=false | |
38211 | ac_cs_silent=false | |
38212 | ||
38213 | SHELL=\${CONFIG_SHELL-$SHELL} | |
38214 | export SHELL | |
38215 | _ASEOF | |
38216 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
38217 | ## -------------------- ## | |
38218 | ## M4sh Initialization. ## | |
38219 | ## -------------------- ## | |
38220 | ||
38221 | # Be more Bourne compatible | |
38222 | DUALCASE=1; export DUALCASE # for MKS sh | |
38223 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
38224 | emulate sh | |
38225 | NULLCMD=: | |
38226 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
38227 | # is contrary to our usage. Disable this feature. | |
38228 | alias -g '${1+"$@"}'='"$@"' | |
38229 | setopt NO_GLOB_SUBST | |
38230 | else | |
38231 | case `(set -o) 2>/dev/null` in #( | |
38232 | *posix*) : | |
38233 | set -o posix ;; #( | |
38234 | *) : | |
38235 | ;; | |
38236 | esac | |
38237 | fi | |
38238 | ||
38239 | ||
38240 | as_nl=' | |
38241 | ' | |
38242 | export as_nl | |
38243 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38244 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
38245 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
38246 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
38247 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
38248 | # but without wasting forks for bash or zsh. | |
38249 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
38250 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
38251 | as_echo='print -r --' | |
38252 | as_echo_n='print -rn --' | |
38253 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
38254 | as_echo='printf %s\n' | |
38255 | as_echo_n='printf %s' | |
38256 | else | |
38257 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
38258 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
38259 | as_echo_n='/usr/ucb/echo -n' | |
38260 | else | |
38261 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
38262 | as_echo_n_body='eval | |
38263 | arg=$1; | |
38264 | case $arg in #( | |
38265 | *"$as_nl"*) | |
38266 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
38267 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
38268 | esac; | |
38269 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
38270 | ' | |
38271 | export as_echo_n_body | |
38272 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
38273 | fi | |
38274 | export as_echo_body | |
38275 | as_echo='sh -c $as_echo_body as_echo' | |
38276 | fi | |
38277 | ||
38278 | # The user is always right. | |
38279 | if test "${PATH_SEPARATOR+set}" != set; then | |
38280 | PATH_SEPARATOR=: | |
38281 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
38282 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
38283 | PATH_SEPARATOR=';' | |
38284 | } | |
38285 | fi | |
38286 | ||
38287 | ||
38288 | # IFS | |
38289 | # We need space, tab and new line, in precisely that order. Quoting is | |
38290 | # there to prevent editors from complaining about space-tab. | |
38291 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
38292 | # splitting by setting IFS to empty value.) | |
38293 | IFS=" "" $as_nl" | |
38294 | ||
38295 | # Find who we are. Look in the path if we contain no directory separator. | |
38296 | as_myself= | |
38297 | case $0 in #(( | |
38298 | *[\\/]* ) as_myself=$0 ;; | |
38299 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38300 | for as_dir in $PATH | |
38301 | do | |
38302 | IFS=$as_save_IFS | |
38303 | test -z "$as_dir" && as_dir=. | |
38304 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
38305 | done | |
38306 | IFS=$as_save_IFS | |
38307 | ||
38308 | ;; | |
38309 | esac | |
38310 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
38311 | # in which case we are not to be found in the path. | |
38312 | if test "x$as_myself" = x; then | |
38313 | as_myself=$0 | |
38314 | fi | |
38315 | if test ! -f "$as_myself"; then | |
38316 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
38317 | exit 1 | |
38318 | fi | |
38319 | ||
38320 | # Unset variables that we do not need and which cause bugs (e.g. in | |
38321 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
38322 | # suppresses any "Segmentation fault" message there. '((' could | |
38323 | # trigger a bug in pdksh 5.2.14. | |
38324 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
38325 | do eval test x\${$as_var+set} = xset \ | |
38326 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
38327 | done | |
38328 | PS1='$ ' | |
38329 | PS2='> ' | |
38330 | PS4='+ ' | |
38331 | ||
38332 | # NLS nuisances. | |
38333 | LC_ALL=C | |
38334 | export LC_ALL | |
38335 | LANGUAGE=C | |
38336 | export LANGUAGE | |
38337 | ||
38338 | # CDPATH. | |
38339 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
38340 | ||
38341 | ||
38342 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
38343 | # ---------------------------------------- | |
38344 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
38345 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
38346 | # script with STATUS, using 1 if that was 0. | |
38347 | as_fn_error () | |
38348 | { | |
38349 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
38350 | if test "$4"; then | |
38351 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
38352 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
38353 | fi | |
38354 | $as_echo "$as_me: error: $2" >&2 | |
38355 | as_fn_exit $as_status | |
38356 | } # as_fn_error | |
38357 | ||
38358 | ||
38359 | # as_fn_set_status STATUS | |
38360 | # ----------------------- | |
38361 | # Set $? to STATUS, without forking. | |
38362 | as_fn_set_status () | |
38363 | { | |
38364 | return $1 | |
38365 | } # as_fn_set_status | |
38366 | ||
38367 | # as_fn_exit STATUS | |
38368 | # ----------------- | |
38369 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
38370 | as_fn_exit () | |
38371 | { | |
38372 | set +e | |
38373 | as_fn_set_status $1 | |
38374 | exit $1 | |
38375 | } # as_fn_exit | |
38376 | ||
38377 | # as_fn_unset VAR | |
38378 | # --------------- | |
38379 | # Portably unset VAR. | |
38380 | as_fn_unset () | |
38381 | { | |
38382 | { eval $1=; unset $1;} | |
38383 | } | |
38384 | as_unset=as_fn_unset | |
38385 | # as_fn_append VAR VALUE | |
38386 | # ---------------------- | |
38387 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
38388 | # advantage of any shell optimizations that allow amortized linear growth over | |
38389 | # repeated appends, instead of the typical quadratic growth present in naive | |
38390 | # implementations. | |
38391 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
38392 | eval 'as_fn_append () | |
38393 | { | |
38394 | eval $1+=\$2 | |
38395 | }' | |
38396 | else | |
38397 | as_fn_append () | |
38398 | { | |
38399 | eval $1=\$$1\$2 | |
38400 | } | |
38401 | fi # as_fn_append | |
38402 | ||
38403 | # as_fn_arith ARG... | |
38404 | # ------------------ | |
38405 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
38406 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
38407 | # must be portable across $(()) and expr. | |
38408 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
38409 | eval 'as_fn_arith () | |
38410 | { | |
38411 | as_val=$(( $* )) | |
38412 | }' | |
38413 | else | |
38414 | as_fn_arith () | |
38415 | { | |
38416 | as_val=`expr "$@" || test $? -eq 1` | |
38417 | } | |
38418 | fi # as_fn_arith | |
38419 | ||
38420 | ||
38421 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
38422 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
38423 | as_expr=expr | |
38424 | else | |
38425 | as_expr=false | |
38426 | fi | |
38427 | ||
38428 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
38429 | as_basename=basename | |
38430 | else | |
38431 | as_basename=false | |
38432 | fi | |
38433 | ||
38434 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
38435 | as_dirname=dirname | |
38436 | else | |
38437 | as_dirname=false | |
38438 | fi | |
38439 | ||
38440 | as_me=`$as_basename -- "$0" || | |
38441 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
38442 | X"$0" : 'X\(//\)$' \| \ | |
38443 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
38444 | $as_echo X/"$0" | | |
38445 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
38446 | s//\1/ | |
38447 | q | |
38448 | } | |
38449 | /^X\/\(\/\/\)$/{ | |
38450 | s//\1/ | |
38451 | q | |
38452 | } | |
38453 | /^X\/\(\/\).*/{ | |
38454 | s//\1/ | |
38455 | q | |
38456 | } | |
38457 | s/.*/./; q'` | |
38458 | ||
38459 | # Avoid depending upon Character Ranges. | |
38460 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
38461 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38462 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
38463 | as_cr_digits='0123456789' | |
38464 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
38465 | ||
38466 | ECHO_C= ECHO_N= ECHO_T= | |
38467 | case `echo -n x` in #((((( | |
38468 | -n*) | |
38469 | case `echo 'xy\c'` in | |
38470 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
38471 | xy) ECHO_C='\c';; | |
38472 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
38473 | ECHO_T=' ';; | |
38474 | esac;; | |
38475 | *) | |
38476 | ECHO_N='-n';; | |
38477 | esac | |
38478 | ||
38479 | rm -f conf$$ conf$$.exe conf$$.file | |
38480 | if test -d conf$$.dir; then | |
38481 | rm -f conf$$.dir/conf$$.file | |
38482 | else | |
38483 | rm -f conf$$.dir | |
38484 | mkdir conf$$.dir 2>/dev/null | |
38485 | fi | |
38486 | if (echo >conf$$.file) 2>/dev/null; then | |
38487 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
38488 | as_ln_s='ln -s' | |
38489 | # ... but there are two gotchas: | |
38490 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
38491 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
38492 | # In both cases, we have to default to `cp -pR'. | |
38493 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
38494 | as_ln_s='cp -pR' | |
38495 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
38496 | as_ln_s=ln | |
38497 | else | |
38498 | as_ln_s='cp -pR' | |
38499 | fi | |
38500 | else | |
38501 | as_ln_s='cp -pR' | |
38502 | fi | |
38503 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
38504 | rmdir conf$$.dir 2>/dev/null | |
38505 | ||
38506 | ||
38507 | # as_fn_mkdir_p | |
38508 | # ------------- | |
38509 | # Create "$as_dir" as a directory, including parents if necessary. | |
38510 | as_fn_mkdir_p () | |
38511 | { | |
38512 | ||
38513 | case $as_dir in #( | |
38514 | -*) as_dir=./$as_dir;; | |
38515 | esac | |
38516 | test -d "$as_dir" || eval $as_mkdir_p || { | |
38517 | as_dirs= | |
38518 | while :; do | |
38519 | case $as_dir in #( | |
38520 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
38521 | *) as_qdir=$as_dir;; | |
38522 | esac | |
38523 | as_dirs="'$as_qdir' $as_dirs" | |
38524 | as_dir=`$as_dirname -- "$as_dir" || | |
38525 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
38526 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
38527 | X"$as_dir" : 'X\(//\)$' \| \ | |
38528 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
38529 | $as_echo X"$as_dir" | | |
38530 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
38531 | s//\1/ | |
38532 | q | |
38533 | } | |
38534 | /^X\(\/\/\)[^/].*/{ | |
38535 | s//\1/ | |
38536 | q | |
38537 | } | |
38538 | /^X\(\/\/\)$/{ | |
38539 | s//\1/ | |
38540 | q | |
38541 | } | |
38542 | /^X\(\/\).*/{ | |
38543 | s//\1/ | |
38544 | q | |
38545 | } | |
38546 | s/.*/./; q'` | |
38547 | test -d "$as_dir" && break | |
38548 | done | |
38549 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
38550 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
38551 | ||
38552 | ||
38553 | } # as_fn_mkdir_p | |
38554 | if mkdir -p . 2>/dev/null; then | |
38555 | as_mkdir_p='mkdir -p "$as_dir"' | |
38556 | else | |
38557 | test -d ./-p && rmdir ./-p | |
38558 | as_mkdir_p=false | |
38559 | fi | |
38560 | ||
38561 | ||
38562 | # as_fn_executable_p FILE | |
38563 | # ----------------------- | |
38564 | # Test if FILE is an executable regular file. | |
38565 | as_fn_executable_p () | |
38566 | { | |
38567 | test -f "$1" && test -x "$1" | |
38568 | } # as_fn_executable_p | |
38569 | as_test_x='test -x' | |
38570 | as_executable_p=as_fn_executable_p | |
38571 | ||
38572 | # Sed expression to map a string onto a valid CPP name. | |
38573 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
38574 | ||
38575 | # Sed expression to map a string onto a valid variable name. | |
38576 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
38577 | ||
38578 | ||
38579 | exec 6>&1 | |
38580 | ## ----------------------------------- ## | |
38581 | ## Main body of $CONFIG_STATUS script. ## | |
38582 | ## ----------------------------------- ## | |
38583 | _ASEOF | |
38584 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
38585 | ||
38586 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
38587 | # Save the log message, to keep $0 and so on meaningful, and to | |
38588 | # report actual input values of CONFIG_FILES etc. instead of their | |
38589 | # values after options handling. | |
38590 | ac_log=" | |
1ec59ff7 | 38591 | This file was extended by zfs $as_me 0.6.5.11, which was |
87d546d8 TG |
38592 | generated by GNU Autoconf 2.69. Invocation command line was |
38593 | ||
38594 | CONFIG_FILES = $CONFIG_FILES | |
38595 | CONFIG_HEADERS = $CONFIG_HEADERS | |
38596 | CONFIG_LINKS = $CONFIG_LINKS | |
38597 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
38598 | $ $0 $@ | |
38599 | ||
38600 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
38601 | " | |
38602 | ||
38603 | _ACEOF | |
38604 | ||
38605 | case $ac_config_files in *" | |
38606 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
38607 | esac | |
38608 | ||
38609 | case $ac_config_headers in *" | |
38610 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
38611 | esac | |
38612 | ||
38613 | ||
38614 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
38615 | # Files that config.status was made for. | |
38616 | config_files="$ac_config_files" | |
38617 | config_headers="$ac_config_headers" | |
38618 | config_commands="$ac_config_commands" | |
38619 | ||
38620 | _ACEOF | |
38621 | ||
38622 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
38623 | ac_cs_usage="\ | |
38624 | \`$as_me' instantiates files and other configuration actions | |
38625 | from templates according to the current configuration. Unless the files | |
38626 | and actions are specified as TAGs, all are instantiated by default. | |
38627 | ||
38628 | Usage: $0 [OPTION]... [TAG]... | |
38629 | ||
38630 | -h, --help print this help, then exit | |
38631 | -V, --version print version number and configuration settings, then exit | |
38632 | --config print configuration, then exit | |
38633 | -q, --quiet, --silent | |
38634 | do not print progress messages | |
38635 | -d, --debug don't remove temporary files | |
38636 | --recheck update $as_me by reconfiguring in the same conditions | |
38637 | --file=FILE[:TEMPLATE] | |
38638 | instantiate the configuration file FILE | |
38639 | --header=FILE[:TEMPLATE] | |
38640 | instantiate the configuration header FILE | |
38641 | ||
38642 | Configuration files: | |
38643 | $config_files | |
38644 | ||
38645 | Configuration headers: | |
38646 | $config_headers | |
38647 | ||
38648 | Configuration commands: | |
38649 | $config_commands | |
38650 | ||
38651 | Report bugs to the package provider." | |
38652 | ||
38653 | _ACEOF | |
38654 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
38655 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
38656 | ac_cs_version="\\ | |
1ec59ff7 | 38657 | zfs config.status 0.6.5.11 |
87d546d8 TG |
38658 | configured by $0, generated by GNU Autoconf 2.69, |
38659 | with options \\"\$ac_cs_config\\" | |
38660 | ||
38661 | Copyright (C) 2012 Free Software Foundation, Inc. | |
38662 | This config.status script is free software; the Free Software Foundation | |
38663 | gives unlimited permission to copy, distribute and modify it." | |
38664 | ||
38665 | ac_pwd='$ac_pwd' | |
38666 | srcdir='$srcdir' | |
38667 | INSTALL='$INSTALL' | |
38668 | MKDIR_P='$MKDIR_P' | |
38669 | AWK='$AWK' | |
38670 | test -n "\$AWK" || AWK=awk | |
38671 | _ACEOF | |
38672 | ||
38673 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
38674 | # The default lists apply if the user does not specify any file. | |
38675 | ac_need_defaults=: | |
38676 | while test $# != 0 | |
38677 | do | |
38678 | case $1 in | |
38679 | --*=?*) | |
38680 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
38681 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
38682 | ac_shift=: | |
38683 | ;; | |
38684 | --*=) | |
38685 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
38686 | ac_optarg= | |
38687 | ac_shift=: | |
38688 | ;; | |
38689 | *) | |
38690 | ac_option=$1 | |
38691 | ac_optarg=$2 | |
38692 | ac_shift=shift | |
38693 | ;; | |
38694 | esac | |
38695 | ||
38696 | case $ac_option in | |
38697 | # Handling of the options. | |
38698 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
38699 | ac_cs_recheck=: ;; | |
38700 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
38701 | $as_echo "$ac_cs_version"; exit ;; | |
38702 | --config | --confi | --conf | --con | --co | --c ) | |
38703 | $as_echo "$ac_cs_config"; exit ;; | |
38704 | --debug | --debu | --deb | --de | --d | -d ) | |
38705 | debug=: ;; | |
38706 | --file | --fil | --fi | --f ) | |
38707 | $ac_shift | |
38708 | case $ac_optarg in | |
38709 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
38710 | '') as_fn_error $? "missing file argument" ;; | |
38711 | esac | |
38712 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
38713 | ac_need_defaults=false;; | |
38714 | --header | --heade | --head | --hea ) | |
38715 | $ac_shift | |
38716 | case $ac_optarg in | |
38717 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
38718 | esac | |
38719 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
38720 | ac_need_defaults=false;; | |
38721 | --he | --h) | |
38722 | # Conflict between --help and --header | |
38723 | as_fn_error $? "ambiguous option: \`$1' | |
38724 | Try \`$0 --help' for more information.";; | |
38725 | --help | --hel | -h ) | |
38726 | $as_echo "$ac_cs_usage"; exit ;; | |
38727 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
38728 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
38729 | ac_cs_silent=: ;; | |
38730 | ||
38731 | # This is an error. | |
38732 | -*) as_fn_error $? "unrecognized option: \`$1' | |
38733 | Try \`$0 --help' for more information." ;; | |
38734 | ||
38735 | *) as_fn_append ac_config_targets " $1" | |
38736 | ac_need_defaults=false ;; | |
38737 | ||
38738 | esac | |
38739 | shift | |
38740 | done | |
38741 | ||
38742 | ac_configure_extra_args= | |
38743 | ||
38744 | if $ac_cs_silent; then | |
38745 | exec 6>/dev/null | |
38746 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
38747 | fi | |
38748 | ||
38749 | _ACEOF | |
38750 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
38751 | if \$ac_cs_recheck; then | |
38752 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
38753 | shift | |
38754 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
38755 | CONFIG_SHELL='$SHELL' | |
38756 | export CONFIG_SHELL | |
38757 | exec "\$@" | |
38758 | fi | |
38759 | ||
38760 | _ACEOF | |
38761 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
38762 | exec 5>>config.log | |
38763 | { | |
38764 | echo | |
38765 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
38766 | ## Running $as_me. ## | |
38767 | _ASBOX | |
38768 | $as_echo "$ac_log" | |
38769 | } >&5 | |
38770 | ||
38771 | _ACEOF | |
38772 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
38773 | # | |
38774 | # INIT-COMMANDS | |
38775 | # | |
38776 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
38777 | ||
38778 | ||
38779 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
38780 | # if CDPATH is set. | |
38781 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
38782 | ||
38783 | sed_quote_subst='$sed_quote_subst' | |
38784 | double_quote_subst='$double_quote_subst' | |
38785 | delay_variable_subst='$delay_variable_subst' | |
38786 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
38787 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
38788 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
38789 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
38790 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
38791 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
38792 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' | |
38793 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
38794 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
38795 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
38796 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
38797 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
38798 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
38799 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
38800 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
38801 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
38802 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
38803 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
38804 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
38805 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
38806 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
38807 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
38808 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
38809 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
38810 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
38811 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
38812 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
38813 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
38814 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
38815 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
38816 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
38817 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
38818 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
38819 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
38820 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
38821 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
38822 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
38823 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
38824 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
38825 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
38826 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
38827 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
38828 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
38829 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
38830 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
38831 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
38832 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
38833 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
38834 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
38835 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
38836 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
38837 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
38838 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
38839 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
38840 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
38841 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
38842 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' | |
38843 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
38844 | 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"`' | |
38845 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' | |
38846 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
38847 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
38848 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' | |
38849 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
38850 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
38851 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
38852 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
38853 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
38854 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
38855 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
38856 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
38857 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
38858 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
38859 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
38860 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
38861 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
38862 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
38863 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
38864 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
38865 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
38866 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
38867 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
38868 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
38869 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
38870 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
38871 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
38872 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
38873 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
38874 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
38875 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
38876 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
38877 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
38878 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
38879 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
38880 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
38881 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
38882 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
38883 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
38884 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
38885 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
38886 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
38887 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
38888 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
38889 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
38890 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
38891 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
38892 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
38893 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
38894 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
38895 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
38896 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
38897 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
38898 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
38899 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
38900 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
38901 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
38902 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
38903 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
38904 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
38905 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
38906 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
38907 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
38908 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
38909 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
38910 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
38911 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
38912 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
38913 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' | |
38914 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
38915 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
38916 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
38917 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
38918 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
38919 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
38920 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
38921 | ||
38922 | LTCC='$LTCC' | |
38923 | LTCFLAGS='$LTCFLAGS' | |
38924 | compiler='$compiler_DEFAULT' | |
38925 | ||
38926 | # A function that is used when there is no print builtin or printf. | |
38927 | func_fallback_echo () | |
38928 | { | |
38929 | eval 'cat <<_LTECHO_EOF | |
38930 | \$1 | |
38931 | _LTECHO_EOF' | |
38932 | } | |
38933 | ||
38934 | # Quote evaled strings. | |
38935 | for var in SHELL \ | |
38936 | ECHO \ | |
38937 | PATH_SEPARATOR \ | |
38938 | SED \ | |
38939 | GREP \ | |
38940 | EGREP \ | |
38941 | FGREP \ | |
38942 | LD \ | |
38943 | NM \ | |
38944 | LN_S \ | |
38945 | lt_SP2NL \ | |
38946 | lt_NL2SP \ | |
38947 | reload_flag \ | |
38948 | OBJDUMP \ | |
38949 | deplibs_check_method \ | |
38950 | file_magic_cmd \ | |
38951 | file_magic_glob \ | |
38952 | want_nocaseglob \ | |
38953 | DLLTOOL \ | |
38954 | sharedlib_from_linklib_cmd \ | |
38955 | AR \ | |
38956 | AR_FLAGS \ | |
38957 | archiver_list_spec \ | |
38958 | STRIP \ | |
38959 | RANLIB \ | |
38960 | CC \ | |
38961 | CFLAGS \ | |
38962 | compiler \ | |
38963 | lt_cv_sys_global_symbol_pipe \ | |
38964 | lt_cv_sys_global_symbol_to_cdecl \ | |
38965 | lt_cv_sys_global_symbol_to_import \ | |
38966 | lt_cv_sys_global_symbol_to_c_name_address \ | |
38967 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
38968 | lt_cv_nm_interface \ | |
38969 | nm_file_list_spec \ | |
38970 | lt_cv_truncate_bin \ | |
38971 | lt_prog_compiler_no_builtin_flag \ | |
38972 | lt_prog_compiler_pic \ | |
38973 | lt_prog_compiler_wl \ | |
38974 | lt_prog_compiler_static \ | |
38975 | lt_cv_prog_compiler_c_o \ | |
38976 | need_locks \ | |
38977 | MANIFEST_TOOL \ | |
38978 | DSYMUTIL \ | |
38979 | NMEDIT \ | |
38980 | LIPO \ | |
38981 | OTOOL \ | |
38982 | OTOOL64 \ | |
38983 | shrext_cmds \ | |
38984 | export_dynamic_flag_spec \ | |
38985 | whole_archive_flag_spec \ | |
38986 | compiler_needs_object \ | |
38987 | with_gnu_ld \ | |
38988 | allow_undefined_flag \ | |
38989 | no_undefined_flag \ | |
38990 | hardcode_libdir_flag_spec \ | |
38991 | hardcode_libdir_separator \ | |
38992 | exclude_expsyms \ | |
38993 | include_expsyms \ | |
38994 | file_list_spec \ | |
38995 | variables_saved_for_relink \ | |
38996 | libname_spec \ | |
38997 | library_names_spec \ | |
38998 | soname_spec \ | |
38999 | install_override_mode \ | |
39000 | finish_eval \ | |
39001 | old_striplib \ | |
39002 | striplib; do | |
39003 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
39004 | *[\\\\\\\`\\"\\\$]*) | |
39005 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
39006 | ;; | |
39007 | *) | |
39008 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
39009 | ;; | |
39010 | esac | |
39011 | done | |
39012 | ||
39013 | # Double-quote double-evaled strings. | |
39014 | for var in reload_cmds \ | |
39015 | old_postinstall_cmds \ | |
39016 | old_postuninstall_cmds \ | |
39017 | old_archive_cmds \ | |
39018 | extract_expsyms_cmds \ | |
39019 | old_archive_from_new_cmds \ | |
39020 | old_archive_from_expsyms_cmds \ | |
39021 | archive_cmds \ | |
39022 | archive_expsym_cmds \ | |
39023 | module_cmds \ | |
39024 | module_expsym_cmds \ | |
39025 | export_symbols_cmds \ | |
39026 | prelink_cmds \ | |
39027 | postlink_cmds \ | |
39028 | postinstall_cmds \ | |
39029 | postuninstall_cmds \ | |
39030 | finish_cmds \ | |
39031 | sys_lib_search_path_spec \ | |
39032 | configure_time_dlsearch_path \ | |
39033 | configure_time_lt_sys_library_path; do | |
39034 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
39035 | *[\\\\\\\`\\"\\\$]*) | |
39036 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
39037 | ;; | |
39038 | *) | |
39039 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
39040 | ;; | |
39041 | esac | |
39042 | done | |
39043 | ||
39044 | ac_aux_dir='$ac_aux_dir' | |
39045 | ||
39046 | # See if we are running on zsh, and set the options that allow our | |
39047 | # commands through without removal of \ escapes INIT. | |
39048 | if test -n "\${ZSH_VERSION+set}"; then | |
39049 | setopt NO_GLOB_SUBST | |
39050 | fi | |
39051 | ||
39052 | ||
39053 | PACKAGE='$PACKAGE' | |
39054 | VERSION='$VERSION' | |
39055 | RM='$RM' | |
39056 | ofile='$ofile' | |
39057 | ||
39058 | ||
39059 | ||
39060 | ||
39061 | _ACEOF | |
39062 | ||
39063 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39064 | ||
39065 | # Handling of arguments. | |
39066 | for ac_config_target in $ac_config_targets | |
39067 | do | |
39068 | case $ac_config_target in | |
39069 | "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;; | |
39070 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
39071 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
39072 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
39073 | "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;; | |
39074 | "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;; | |
39075 | "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;; | |
39076 | "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;; | |
39077 | "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;; | |
39078 | "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;; | |
39079 | "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;; | |
39080 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
39081 | "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;; | |
39082 | "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;; | |
39083 | "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;; | |
39084 | "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;; | |
39085 | "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;; | |
39086 | "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;; | |
39087 | ||
39088 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
39089 | esac | |
39090 | done | |
39091 | ||
39092 | ||
39093 | # If the user did not use the arguments to specify the items to instantiate, | |
39094 | # then the envvar interface is used. Set only those that are not. | |
39095 | # We use the long form for the default assignment because of an extremely | |
39096 | # bizarre bug on SunOS 4.1.3. | |
39097 | if $ac_need_defaults; then | |
39098 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
39099 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
39100 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
39101 | fi | |
39102 | ||
39103 | # Have a temporary directory for convenience. Make it in the build tree | |
39104 | # simply because there is no reason against having it here, and in addition, | |
39105 | # creating and moving files from /tmp can sometimes cause problems. | |
39106 | # Hook for its removal unless debugging. | |
39107 | # Note that there is a small window in which the directory will not be cleaned: | |
39108 | # after its creation but before its name has been assigned to `$tmp'. | |
39109 | $debug || | |
39110 | { | |
39111 | tmp= ac_tmp= | |
39112 | trap 'exit_status=$? | |
39113 | : "${ac_tmp:=$tmp}" | |
39114 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
39115 | ' 0 | |
39116 | trap 'as_fn_exit 1' 1 2 13 15 | |
39117 | } | |
39118 | # Create a (secure) tmp directory for tmp files. | |
39119 | ||
39120 | { | |
39121 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
39122 | test -d "$tmp" | |
39123 | } || | |
39124 | { | |
39125 | tmp=./conf$$-$RANDOM | |
39126 | (umask 077 && mkdir "$tmp") | |
39127 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
39128 | ac_tmp=$tmp | |
39129 | ||
39130 | # Set up the scripts for CONFIG_FILES section. | |
39131 | # No need to generate them if there are no CONFIG_FILES. | |
39132 | # This happens for instance with `./config.status config.h'. | |
39133 | if test -n "$CONFIG_FILES"; then | |
39134 | ||
39135 | ||
39136 | ac_cr=`echo X | tr X '\015'` | |
39137 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
39138 | # But we know of no other shell where ac_cr would be empty at this | |
39139 | # point, so we can use a bashism as a fallback. | |
39140 | if test "x$ac_cr" = x; then | |
39141 | eval ac_cr=\$\'\\r\' | |
39142 | fi | |
39143 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
39144 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
39145 | ac_cs_awk_cr='\\r' | |
39146 | else | |
39147 | ac_cs_awk_cr=$ac_cr | |
39148 | fi | |
39149 | ||
39150 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
39151 | _ACEOF | |
39152 | ||
39153 | ||
39154 | { | |
39155 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
39156 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
39157 | echo "_ACEOF" | |
39158 | } >conf$$subs.sh || | |
39159 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
39160 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
39161 | ac_delim='%!_!# ' | |
39162 | for ac_last_try in false false false false false :; do | |
39163 | . ./conf$$subs.sh || | |
39164 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
39165 | ||
39166 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
39167 | if test $ac_delim_n = $ac_delim_num; then | |
39168 | break | |
39169 | elif $ac_last_try; then | |
39170 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
39171 | else | |
39172 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
39173 | fi | |
39174 | done | |
39175 | rm -f conf$$subs.sh | |
39176 | ||
39177 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
39178 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
39179 | _ACEOF | |
39180 | sed -n ' | |
39181 | h | |
39182 | s/^/S["/; s/!.*/"]=/ | |
39183 | p | |
39184 | g | |
39185 | s/^[^!]*!// | |
39186 | :repl | |
39187 | t repl | |
39188 | s/'"$ac_delim"'$// | |
39189 | t delim | |
39190 | :nl | |
39191 | h | |
39192 | s/\(.\{148\}\)..*/\1/ | |
39193 | t more1 | |
39194 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
39195 | p | |
39196 | n | |
39197 | b repl | |
39198 | :more1 | |
39199 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
39200 | p | |
39201 | g | |
39202 | s/.\{148\}// | |
39203 | t nl | |
39204 | :delim | |
39205 | h | |
39206 | s/\(.\{148\}\)..*/\1/ | |
39207 | t more2 | |
39208 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
39209 | p | |
39210 | b | |
39211 | :more2 | |
39212 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
39213 | p | |
39214 | g | |
39215 | s/.\{148\}// | |
39216 | t delim | |
39217 | ' <conf$$subs.awk | sed ' | |
39218 | /^[^""]/{ | |
39219 | N | |
39220 | s/\n// | |
39221 | } | |
39222 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
39223 | rm -f conf$$subs.awk | |
39224 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
39225 | _ACAWK | |
39226 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
39227 | for (key in S) S_is_set[key] = 1 | |
39228 | FS = "\a" | |
39229 | ||
39230 | } | |
39231 | { | |
39232 | line = $ 0 | |
39233 | nfields = split(line, field, "@") | |
39234 | substed = 0 | |
39235 | len = length(field[1]) | |
39236 | for (i = 2; i < nfields; i++) { | |
39237 | key = field[i] | |
39238 | keylen = length(key) | |
39239 | if (S_is_set[key]) { | |
39240 | value = S[key] | |
39241 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
39242 | len += length(value) + length(field[++i]) | |
39243 | substed = 1 | |
39244 | } else | |
39245 | len += 1 + keylen | |
39246 | } | |
39247 | ||
39248 | print line | |
39249 | } | |
39250 | ||
39251 | _ACAWK | |
39252 | _ACEOF | |
39253 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39254 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
39255 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
39256 | else | |
39257 | cat | |
39258 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
39259 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
39260 | _ACEOF | |
39261 | ||
39262 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
39263 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
39264 | # trailing colons and then remove the whole line if VPATH becomes empty | |
39265 | # (actually we leave an empty line to preserve line numbers). | |
39266 | if test "x$srcdir" = x.; then | |
39267 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
39268 | h | |
39269 | s/// | |
39270 | s/^/:/ | |
39271 | s/[ ]*$/:/ | |
39272 | s/:\$(srcdir):/:/g | |
39273 | s/:\${srcdir}:/:/g | |
39274 | s/:@srcdir@:/:/g | |
39275 | s/^:*// | |
39276 | s/:*$// | |
39277 | x | |
39278 | s/\(=[ ]*\).*/\1/ | |
39279 | G | |
39280 | s/\n// | |
39281 | s/^[^=]*=[ ]*$// | |
39282 | }' | |
39283 | fi | |
39284 | ||
39285 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39286 | fi # test -n "$CONFIG_FILES" | |
39287 | ||
39288 | # Set up the scripts for CONFIG_HEADERS section. | |
39289 | # No need to generate them if there are no CONFIG_HEADERS. | |
39290 | # This happens for instance with `./config.status Makefile'. | |
39291 | if test -n "$CONFIG_HEADERS"; then | |
39292 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
39293 | BEGIN { | |
39294 | _ACEOF | |
39295 | ||
39296 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
39297 | # here-document in config.status, that substitutes the proper values into | |
39298 | # config.h.in to produce config.h. | |
39299 | ||
39300 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
39301 | # handling of long lines. | |
39302 | ac_delim='%!_!# ' | |
39303 | for ac_last_try in false false :; do | |
39304 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
39305 | if test -z "$ac_tt"; then | |
39306 | break | |
39307 | elif $ac_last_try; then | |
39308 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
39309 | else | |
39310 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
39311 | fi | |
39312 | done | |
39313 | ||
39314 | # For the awk script, D is an array of macro values keyed by name, | |
39315 | # likewise P contains macro parameters if any. Preserve backslash | |
39316 | # newline sequences. | |
39317 | ||
39318 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
39319 | sed -n ' | |
39320 | s/.\{148\}/&'"$ac_delim"'/g | |
39321 | t rset | |
39322 | :rset | |
39323 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
39324 | t def | |
39325 | d | |
39326 | :def | |
39327 | s/\\$// | |
39328 | t bsnl | |
39329 | s/["\\]/\\&/g | |
39330 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
39331 | D["\1"]=" \3"/p | |
39332 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
39333 | d | |
39334 | :bsnl | |
39335 | s/["\\]/\\&/g | |
39336 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
39337 | D["\1"]=" \3\\\\\\n"\\/p | |
39338 | t cont | |
39339 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
39340 | t cont | |
39341 | d | |
39342 | :cont | |
39343 | n | |
39344 | s/.\{148\}/&'"$ac_delim"'/g | |
39345 | t clear | |
39346 | :clear | |
39347 | s/\\$// | |
39348 | t bsnlc | |
39349 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
39350 | d | |
39351 | :bsnlc | |
39352 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
39353 | b cont | |
39354 | ' <confdefs.h | sed ' | |
39355 | s/'"$ac_delim"'/"\\\ | |
39356 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
39357 | ||
39358 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
39359 | for (key in D) D_is_set[key] = 1 | |
39360 | FS = "\a" | |
39361 | } | |
39362 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
39363 | line = \$ 0 | |
39364 | split(line, arg, " ") | |
39365 | if (arg[1] == "#") { | |
39366 | defundef = arg[2] | |
39367 | mac1 = arg[3] | |
39368 | } else { | |
39369 | defundef = substr(arg[1], 2) | |
39370 | mac1 = arg[2] | |
39371 | } | |
39372 | split(mac1, mac2, "(") #) | |
39373 | macro = mac2[1] | |
39374 | prefix = substr(line, 1, index(line, defundef) - 1) | |
39375 | if (D_is_set[macro]) { | |
39376 | # Preserve the white space surrounding the "#". | |
39377 | print prefix "define", macro P[macro] D[macro] | |
39378 | next | |
39379 | } else { | |
39380 | # Replace #undef with comments. This is necessary, for example, | |
39381 | # in the case of _POSIX_SOURCE, which is predefined and required | |
39382 | # on some systems where configure will not decide to define it. | |
39383 | if (defundef == "undef") { | |
39384 | print "/*", prefix defundef, macro, "*/" | |
39385 | next | |
39386 | } | |
39387 | } | |
39388 | } | |
39389 | { print } | |
39390 | _ACAWK | |
39391 | _ACEOF | |
39392 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39393 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
39394 | fi # test -n "$CONFIG_HEADERS" | |
39395 | ||
39396 | ||
39397 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
39398 | shift | |
39399 | for ac_tag | |
39400 | do | |
39401 | case $ac_tag in | |
39402 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
39403 | esac | |
39404 | case $ac_mode$ac_tag in | |
39405 | :[FHL]*:*);; | |
39406 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
39407 | :[FH]-) ac_tag=-:-;; | |
39408 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
39409 | esac | |
39410 | ac_save_IFS=$IFS | |
39411 | IFS=: | |
39412 | set x $ac_tag | |
39413 | IFS=$ac_save_IFS | |
39414 | shift | |
39415 | ac_file=$1 | |
39416 | shift | |
39417 | ||
39418 | case $ac_mode in | |
39419 | :L) ac_source=$1;; | |
39420 | :[FH]) | |
39421 | ac_file_inputs= | |
39422 | for ac_f | |
39423 | do | |
39424 | case $ac_f in | |
39425 | -) ac_f="$ac_tmp/stdin";; | |
39426 | *) # Look for the file first in the build tree, then in the source tree | |
39427 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
39428 | # because $ac_f cannot contain `:'. | |
39429 | test -f "$ac_f" || | |
39430 | case $ac_f in | |
39431 | [\\/$]*) false;; | |
39432 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
39433 | esac || | |
39434 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
39435 | esac | |
39436 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
39437 | as_fn_append ac_file_inputs " '$ac_f'" | |
39438 | done | |
39439 | ||
39440 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
39441 | # use $as_me), people would be surprised to read: | |
39442 | # /* config.h. Generated by config.status. */ | |
39443 | configure_input='Generated from '` | |
39444 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
39445 | `' by configure.' | |
39446 | if test x"$ac_file" != x-; then | |
39447 | configure_input="$ac_file. $configure_input" | |
39448 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
39449 | $as_echo "$as_me: creating $ac_file" >&6;} | |
39450 | fi | |
39451 | # Neutralize special characters interpreted by sed in replacement strings. | |
39452 | case $configure_input in #( | |
39453 | *\&* | *\|* | *\\* ) | |
39454 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
39455 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
39456 | *) ac_sed_conf_input=$configure_input;; | |
39457 | esac | |
39458 | ||
39459 | case $ac_tag in | |
39460 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
39461 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
39462 | esac | |
39463 | ;; | |
39464 | esac | |
39465 | ||
39466 | ac_dir=`$as_dirname -- "$ac_file" || | |
39467 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
39468 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
39469 | X"$ac_file" : 'X\(//\)$' \| \ | |
39470 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
39471 | $as_echo X"$ac_file" | | |
39472 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
39473 | s//\1/ | |
39474 | q | |
39475 | } | |
39476 | /^X\(\/\/\)[^/].*/{ | |
39477 | s//\1/ | |
39478 | q | |
39479 | } | |
39480 | /^X\(\/\/\)$/{ | |
39481 | s//\1/ | |
39482 | q | |
39483 | } | |
39484 | /^X\(\/\).*/{ | |
39485 | s//\1/ | |
39486 | q | |
39487 | } | |
39488 | s/.*/./; q'` | |
39489 | as_dir="$ac_dir"; as_fn_mkdir_p | |
39490 | ac_builddir=. | |
39491 | ||
39492 | case "$ac_dir" in | |
39493 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
39494 | *) | |
39495 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
39496 | # A ".." for each directory in $ac_dir_suffix. | |
39497 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
39498 | case $ac_top_builddir_sub in | |
39499 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
39500 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
39501 | esac ;; | |
39502 | esac | |
39503 | ac_abs_top_builddir=$ac_pwd | |
39504 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
39505 | # for backward compatibility: | |
39506 | ac_top_builddir=$ac_top_build_prefix | |
39507 | ||
39508 | case $srcdir in | |
39509 | .) # We are building in place. | |
39510 | ac_srcdir=. | |
39511 | ac_top_srcdir=$ac_top_builddir_sub | |
39512 | ac_abs_top_srcdir=$ac_pwd ;; | |
39513 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
39514 | ac_srcdir=$srcdir$ac_dir_suffix; | |
39515 | ac_top_srcdir=$srcdir | |
39516 | ac_abs_top_srcdir=$srcdir ;; | |
39517 | *) # Relative name. | |
39518 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
39519 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
39520 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
39521 | esac | |
39522 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
39523 | ||
39524 | ||
39525 | case $ac_mode in | |
39526 | :F) | |
39527 | # | |
39528 | # CONFIG_FILE | |
39529 | # | |
39530 | ||
39531 | case $INSTALL in | |
39532 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
39533 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
39534 | esac | |
39535 | ac_MKDIR_P=$MKDIR_P | |
39536 | case $MKDIR_P in | |
39537 | [\\/$]* | ?:[\\/]* ) ;; | |
39538 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
39539 | esac | |
39540 | _ACEOF | |
39541 | ||
39542 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39543 | # If the template does not know about datarootdir, expand it. | |
39544 | # FIXME: This hack should be removed a few years after 2.60. | |
39545 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
39546 | ac_sed_dataroot=' | |
39547 | /datarootdir/ { | |
39548 | p | |
39549 | q | |
39550 | } | |
39551 | /@datadir@/p | |
39552 | /@docdir@/p | |
39553 | /@infodir@/p | |
39554 | /@localedir@/p | |
39555 | /@mandir@/p' | |
39556 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
39557 | *datarootdir*) ac_datarootdir_seen=yes;; | |
39558 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
39559 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
39560 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
39561 | _ACEOF | |
39562 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
39563 | ac_datarootdir_hack=' | |
39564 | s&@datadir@&$datadir&g | |
39565 | s&@docdir@&$docdir&g | |
39566 | s&@infodir@&$infodir&g | |
39567 | s&@localedir@&$localedir&g | |
39568 | s&@mandir@&$mandir&g | |
39569 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
39570 | esac | |
39571 | _ACEOF | |
39572 | ||
39573 | # Neutralize VPATH when `$srcdir' = `.'. | |
39574 | # Shell code in configure.ac might set extrasub. | |
39575 | # FIXME: do we really want to maintain this feature? | |
39576 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
39577 | ac_sed_extra="$ac_vpsub | |
39578 | $extrasub | |
39579 | _ACEOF | |
39580 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
39581 | :t | |
39582 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
39583 | s|@configure_input@|$ac_sed_conf_input|;t t | |
39584 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
39585 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
39586 | s&@srcdir@&$ac_srcdir&;t t | |
39587 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
39588 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
39589 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
39590 | s&@builddir@&$ac_builddir&;t t | |
39591 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
39592 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
39593 | s&@INSTALL@&$ac_INSTALL&;t t | |
39594 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
39595 | $ac_datarootdir_hack | |
39596 | " | |
39597 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
39598 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
39599 | ||
39600 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
39601 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
39602 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
39603 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
39604 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
39605 | which seems to be undefined. Please make sure it is defined" >&5 | |
39606 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
39607 | which seems to be undefined. Please make sure it is defined" >&2;} | |
39608 | ||
39609 | rm -f "$ac_tmp/stdin" | |
39610 | case $ac_file in | |
39611 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
39612 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
39613 | esac \ | |
39614 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
39615 | ;; | |
39616 | :H) | |
39617 | # | |
39618 | # CONFIG_HEADER | |
39619 | # | |
39620 | if test x"$ac_file" != x-; then | |
39621 | { | |
39622 | $as_echo "/* $configure_input */" \ | |
39623 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
39624 | } >"$ac_tmp/config.h" \ | |
39625 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
39626 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
39627 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
39628 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
39629 | else | |
39630 | rm -f "$ac_file" | |
39631 | mv "$ac_tmp/config.h" "$ac_file" \ | |
39632 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
39633 | fi | |
39634 | else | |
39635 | $as_echo "/* $configure_input */" \ | |
39636 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
39637 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
39638 | fi | |
39639 | # Compute "$ac_file"'s index in $config_headers. | |
39640 | _am_arg="$ac_file" | |
39641 | _am_stamp_count=1 | |
39642 | for _am_header in $config_headers :; do | |
39643 | case $_am_header in | |
39644 | $_am_arg | $_am_arg:* ) | |
39645 | break ;; | |
39646 | * ) | |
39647 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
39648 | esac | |
39649 | done | |
39650 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
39651 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
39652 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
39653 | X"$_am_arg" : 'X\(//\)$' \| \ | |
39654 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
39655 | $as_echo X"$_am_arg" | | |
39656 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
39657 | s//\1/ | |
39658 | q | |
39659 | } | |
39660 | /^X\(\/\/\)[^/].*/{ | |
39661 | s//\1/ | |
39662 | q | |
39663 | } | |
39664 | /^X\(\/\/\)$/{ | |
39665 | s//\1/ | |
39666 | q | |
39667 | } | |
39668 | /^X\(\/\).*/{ | |
39669 | s//\1/ | |
39670 | q | |
39671 | } | |
39672 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
39673 | ;; | |
39674 | ||
39675 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
39676 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
39677 | ;; | |
39678 | esac | |
39679 | ||
39680 | ||
39681 | case $ac_file$ac_mode in | |
39682 | "zfs_config.h":H) | |
39683 | (mv zfs_config.h zfs_config.h.tmp && | |
39684 | awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h && | |
39685 | rm zfs_config.h.tmp) || exit 1 ;; | |
39686 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
39687 | # Older Autoconf quotes --file arguments for eval, but not when files | |
39688 | # are listed without --file. Let's play safe and only enable the eval | |
39689 | # if we detect the quoting. | |
39690 | case $CONFIG_FILES in | |
39691 | *\'*) eval set x "$CONFIG_FILES" ;; | |
39692 | *) set x $CONFIG_FILES ;; | |
39693 | esac | |
39694 | shift | |
39695 | for mf | |
39696 | do | |
39697 | # Strip MF so we end up with the name of the file. | |
39698 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
39699 | # Check whether this is an Automake generated Makefile or not. | |
39700 | # We used to match only the files named 'Makefile.in', but | |
39701 | # some people rename them; so instead we look at the file content. | |
39702 | # Grep'ing the first line is not enough: some people post-process | |
39703 | # each Makefile.in and add a new line on top of each file to say so. | |
39704 | # Grep'ing the whole file is not good either: AIX grep has a line | |
39705 | # limit of 2048, but all sed's we know have understand at least 4000. | |
39706 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
39707 | dirpart=`$as_dirname -- "$mf" || | |
39708 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
39709 | X"$mf" : 'X\(//\)[^/]' \| \ | |
39710 | X"$mf" : 'X\(//\)$' \| \ | |
39711 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
39712 | $as_echo X"$mf" | | |
39713 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
39714 | s//\1/ | |
39715 | q | |
39716 | } | |
39717 | /^X\(\/\/\)[^/].*/{ | |
39718 | s//\1/ | |
39719 | q | |
39720 | } | |
39721 | /^X\(\/\/\)$/{ | |
39722 | s//\1/ | |
39723 | q | |
39724 | } | |
39725 | /^X\(\/\).*/{ | |
39726 | s//\1/ | |
39727 | q | |
39728 | } | |
39729 | s/.*/./; q'` | |
39730 | else | |
39731 | continue | |
39732 | fi | |
39733 | # Extract the definition of DEPDIR, am__include, and am__quote | |
39734 | # from the Makefile without running 'make'. | |
39735 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
39736 | test -z "$DEPDIR" && continue | |
39737 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
39738 | test -z "$am__include" && continue | |
39739 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
39740 | # Find all dependency output files, they are included files with | |
39741 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
39742 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
39743 | # expansion. | |
39744 | for file in `sed -n " | |
39745 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
39746 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
39747 | # Make sure the directory exists. | |
39748 | test -f "$dirpart/$file" && continue | |
39749 | fdir=`$as_dirname -- "$file" || | |
39750 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
39751 | X"$file" : 'X\(//\)[^/]' \| \ | |
39752 | X"$file" : 'X\(//\)$' \| \ | |
39753 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
39754 | $as_echo X"$file" | | |
39755 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
39756 | s//\1/ | |
39757 | q | |
39758 | } | |
39759 | /^X\(\/\/\)[^/].*/{ | |
39760 | s//\1/ | |
39761 | q | |
39762 | } | |
39763 | /^X\(\/\/\)$/{ | |
39764 | s//\1/ | |
39765 | q | |
39766 | } | |
39767 | /^X\(\/\).*/{ | |
39768 | s//\1/ | |
39769 | q | |
39770 | } | |
39771 | s/.*/./; q'` | |
39772 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
39773 | # echo "creating $dirpart/$file" | |
39774 | echo '# dummy' > "$dirpart/$file" | |
39775 | done | |
39776 | done | |
39777 | } | |
39778 | ;; | |
39779 | "libtool":C) | |
39780 | ||
39781 | # See if we are running on zsh, and set the options that allow our | |
39782 | # commands through without removal of \ escapes. | |
39783 | if test -n "${ZSH_VERSION+set}"; then | |
39784 | setopt NO_GLOB_SUBST | |
39785 | fi | |
39786 | ||
39787 | cfgfile=${ofile}T | |
39788 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
39789 | $RM "$cfgfile" | |
39790 | ||
39791 | cat <<_LT_EOF >> "$cfgfile" | |
39792 | #! $SHELL | |
39793 | # Generated automatically by $as_me ($PACKAGE) $VERSION | |
39794 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
39795 | ||
39796 | # Provide generalized library-building support services. | |
39797 | # Written by Gordon Matzigkeit, 1996 | |
39798 | ||
39799 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
39800 | # This is free software; see the source for copying conditions. There is NO | |
39801 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
39802 | ||
39803 | # GNU Libtool is free software; you can redistribute it and/or modify | |
39804 | # it under the terms of the GNU General Public License as published by | |
39805 | # the Free Software Foundation; either version 2 of of the License, or | |
39806 | # (at your option) any later version. | |
39807 | # | |
39808 | # As a special exception to the GNU General Public License, if you | |
39809 | # distribute this file as part of a program or library that is built | |
39810 | # using GNU Libtool, you may include this file under the same | |
39811 | # distribution terms that you use for the rest of that program. | |
39812 | # | |
39813 | # GNU Libtool is distributed in the hope that it will be useful, but | |
39814 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
39815 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
39816 | # GNU General Public License for more details. | |
39817 | # | |
39818 | # You should have received a copy of the GNU General Public License | |
39819 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
39820 | ||
39821 | ||
39822 | # The names of the tagged configurations supported by this script. | |
39823 | available_tags='' | |
39824 | ||
39825 | # Configured defaults for sys_lib_dlsearch_path munging. | |
39826 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
39827 | ||
39828 | # ### BEGIN LIBTOOL CONFIG | |
39829 | ||
39830 | # Which release of libtool.m4 was used? | |
39831 | macro_version=$macro_version | |
39832 | macro_revision=$macro_revision | |
39833 | ||
39834 | # Whether or not to build shared libraries. | |
39835 | build_libtool_libs=$enable_shared | |
39836 | ||
39837 | # Whether or not to build static libraries. | |
39838 | build_old_libs=$enable_static | |
39839 | ||
39840 | # What type of objects to build. | |
39841 | pic_mode=$pic_mode | |
39842 | ||
39843 | # Whether or not to optimize for fast installation. | |
39844 | fast_install=$enable_fast_install | |
39845 | ||
39846 | # Shared archive member basename,for filename based shared library versioning on AIX. | |
39847 | shared_archive_member_spec=$shared_archive_member_spec | |
39848 | ||
39849 | # Shell to use when invoking shell scripts. | |
39850 | SHELL=$lt_SHELL | |
39851 | ||
39852 | # An echo program that protects backslashes. | |
39853 | ECHO=$lt_ECHO | |
39854 | ||
39855 | # The PATH separator for the build system. | |
39856 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
39857 | ||
39858 | # The host system. | |
39859 | host_alias=$host_alias | |
39860 | host=$host | |
39861 | host_os=$host_os | |
39862 | ||
39863 | # The build system. | |
39864 | build_alias=$build_alias | |
39865 | build=$build | |
39866 | build_os=$build_os | |
39867 | ||
39868 | # A sed program that does not truncate output. | |
39869 | SED=$lt_SED | |
39870 | ||
39871 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
39872 | Xsed="\$SED -e 1s/^X//" | |
39873 | ||
39874 | # A grep program that handles long lines. | |
39875 | GREP=$lt_GREP | |
39876 | ||
39877 | # An ERE matcher. | |
39878 | EGREP=$lt_EGREP | |
39879 | ||
39880 | # A literal string matcher. | |
39881 | FGREP=$lt_FGREP | |
39882 | ||
39883 | # A BSD- or MS-compatible name lister. | |
39884 | NM=$lt_NM | |
39885 | ||
39886 | # Whether we need soft or hard links. | |
39887 | LN_S=$lt_LN_S | |
39888 | ||
39889 | # What is the maximum length of a command? | |
39890 | max_cmd_len=$max_cmd_len | |
39891 | ||
39892 | # Object file suffix (normally "o"). | |
39893 | objext=$ac_objext | |
39894 | ||
39895 | # Executable file suffix (normally ""). | |
39896 | exeext=$exeext | |
39897 | ||
39898 | # whether the shell understands "unset". | |
39899 | lt_unset=$lt_unset | |
39900 | ||
39901 | # turn spaces into newlines. | |
39902 | SP2NL=$lt_lt_SP2NL | |
39903 | ||
39904 | # turn newlines into spaces. | |
39905 | NL2SP=$lt_lt_NL2SP | |
39906 | ||
39907 | # convert \$build file names to \$host format. | |
39908 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
39909 | ||
39910 | # convert \$build files to toolchain format. | |
39911 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
39912 | ||
39913 | # An object symbol dumper. | |
39914 | OBJDUMP=$lt_OBJDUMP | |
39915 | ||
39916 | # Method to check whether dependent libraries are shared objects. | |
39917 | deplibs_check_method=$lt_deplibs_check_method | |
39918 | ||
39919 | # Command to use when deplibs_check_method = "file_magic". | |
39920 | file_magic_cmd=$lt_file_magic_cmd | |
39921 | ||
39922 | # How to find potential files when deplibs_check_method = "file_magic". | |
39923 | file_magic_glob=$lt_file_magic_glob | |
39924 | ||
39925 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
39926 | want_nocaseglob=$lt_want_nocaseglob | |
39927 | ||
39928 | # DLL creation program. | |
39929 | DLLTOOL=$lt_DLLTOOL | |
39930 | ||
39931 | # Command to associate shared and link libraries. | |
39932 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
39933 | ||
39934 | # The archiver. | |
39935 | AR=$lt_AR | |
39936 | ||
39937 | # Flags to create an archive. | |
39938 | AR_FLAGS=$lt_AR_FLAGS | |
39939 | ||
39940 | # How to feed a file listing to the archiver. | |
39941 | archiver_list_spec=$lt_archiver_list_spec | |
39942 | ||
39943 | # A symbol stripping program. | |
39944 | STRIP=$lt_STRIP | |
39945 | ||
39946 | # Commands used to install an old-style archive. | |
39947 | RANLIB=$lt_RANLIB | |
39948 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
39949 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
39950 | ||
39951 | # Whether to use a lock for old archive extraction. | |
39952 | lock_old_archive_extraction=$lock_old_archive_extraction | |
39953 | ||
39954 | # A C compiler. | |
39955 | LTCC=$lt_CC | |
39956 | ||
39957 | # LTCC compiler flags. | |
39958 | LTCFLAGS=$lt_CFLAGS | |
39959 | ||
39960 | # Take the output of nm and produce a listing of raw symbols and C names. | |
39961 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
39962 | ||
39963 | # Transform the output of nm in a proper C declaration. | |
39964 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
39965 | ||
39966 | # Transform the output of nm into a list of symbols to manually relocate. | |
39967 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
39968 | ||
39969 | # Transform the output of nm in a C name address pair. | |
39970 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
39971 | ||
39972 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
39973 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
39974 | ||
39975 | # The name lister interface. | |
39976 | nm_interface=$lt_lt_cv_nm_interface | |
39977 | ||
39978 | # Specify filename containing input files for \$NM. | |
39979 | nm_file_list_spec=$lt_nm_file_list_spec | |
39980 | ||
39981 | # The root where to search for dependent libraries,and where our libraries should be installed. | |
39982 | lt_sysroot=$lt_sysroot | |
39983 | ||
39984 | # Command to truncate a binary pipe. | |
39985 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
39986 | ||
39987 | # The name of the directory that contains temporary libtool files. | |
39988 | objdir=$objdir | |
39989 | ||
39990 | # Used to examine libraries when file_magic_cmd begins with "file". | |
39991 | MAGIC_CMD=$MAGIC_CMD | |
39992 | ||
39993 | # Must we lock files when doing compilation? | |
39994 | need_locks=$lt_need_locks | |
39995 | ||
39996 | # Manifest tool. | |
39997 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
39998 | ||
39999 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
40000 | DSYMUTIL=$lt_DSYMUTIL | |
40001 | ||
40002 | # Tool to change global to local symbols on Mac OS X. | |
40003 | NMEDIT=$lt_NMEDIT | |
40004 | ||
40005 | # Tool to manipulate fat objects and archives on Mac OS X. | |
40006 | LIPO=$lt_LIPO | |
40007 | ||
40008 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
40009 | OTOOL=$lt_OTOOL | |
40010 | ||
40011 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
40012 | OTOOL64=$lt_OTOOL64 | |
40013 | ||
40014 | # Old archive suffix (normally "a"). | |
40015 | libext=$libext | |
40016 | ||
40017 | # Shared library suffix (normally ".so"). | |
40018 | shrext_cmds=$lt_shrext_cmds | |
40019 | ||
40020 | # The commands to extract the exported symbol list from a shared archive. | |
40021 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
40022 | ||
40023 | # Variables whose values should be saved in libtool wrapper scripts and | |
40024 | # restored at link time. | |
40025 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
40026 | ||
40027 | # Do we need the "lib" prefix for modules? | |
40028 | need_lib_prefix=$need_lib_prefix | |
40029 | ||
40030 | # Do we need a version for libraries? | |
40031 | need_version=$need_version | |
40032 | ||
40033 | # Library versioning type. | |
40034 | version_type=$version_type | |
40035 | ||
40036 | # Shared library runtime path variable. | |
40037 | runpath_var=$runpath_var | |
40038 | ||
40039 | # Shared library path variable. | |
40040 | shlibpath_var=$shlibpath_var | |
40041 | ||
40042 | # Is shlibpath searched before the hard-coded library search path? | |
40043 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
40044 | ||
40045 | # Format of library name prefix. | |
40046 | libname_spec=$lt_libname_spec | |
40047 | ||
40048 | # List of archive names. First name is the real one, the rest are links. | |
40049 | # The last name is the one that the linker finds with -lNAME | |
40050 | library_names_spec=$lt_library_names_spec | |
40051 | ||
40052 | # The coded name of the library, if different from the real name. | |
40053 | soname_spec=$lt_soname_spec | |
40054 | ||
40055 | # Permission mode override for installation of shared libraries. | |
40056 | install_override_mode=$lt_install_override_mode | |
40057 | ||
40058 | # Command to use after installation of a shared archive. | |
40059 | postinstall_cmds=$lt_postinstall_cmds | |
40060 | ||
40061 | # Command to use after uninstallation of a shared archive. | |
40062 | postuninstall_cmds=$lt_postuninstall_cmds | |
40063 | ||
40064 | # Commands used to finish a libtool library installation in a directory. | |
40065 | finish_cmds=$lt_finish_cmds | |
40066 | ||
40067 | # As "finish_cmds", except a single script fragment to be evaled but | |
40068 | # not shown. | |
40069 | finish_eval=$lt_finish_eval | |
40070 | ||
40071 | # Whether we should hardcode library paths into libraries. | |
40072 | hardcode_into_libs=$hardcode_into_libs | |
40073 | ||
40074 | # Compile-time system search path for libraries. | |
40075 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
40076 | ||
40077 | # Detected run-time system search path for libraries. | |
40078 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
40079 | ||
40080 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
40081 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
40082 | ||
40083 | # Whether dlopen is supported. | |
40084 | dlopen_support=$enable_dlopen | |
40085 | ||
40086 | # Whether dlopen of programs is supported. | |
40087 | dlopen_self=$enable_dlopen_self | |
40088 | ||
40089 | # Whether dlopen of statically linked programs is supported. | |
40090 | dlopen_self_static=$enable_dlopen_self_static | |
40091 | ||
40092 | # Commands to strip libraries. | |
40093 | old_striplib=$lt_old_striplib | |
40094 | striplib=$lt_striplib | |
40095 | ||
40096 | ||
40097 | # The linker used to build libraries. | |
40098 | LD=$lt_LD | |
40099 | ||
40100 | # How to create reloadable object files. | |
40101 | reload_flag=$lt_reload_flag | |
40102 | reload_cmds=$lt_reload_cmds | |
40103 | ||
40104 | # Commands used to build an old-style archive. | |
40105 | old_archive_cmds=$lt_old_archive_cmds | |
40106 | ||
40107 | # A language specific compiler. | |
40108 | CC=$lt_compiler | |
40109 | ||
40110 | # Is the compiler the GNU compiler? | |
40111 | with_gcc=$GCC | |
40112 | ||
40113 | # Compiler flag to turn off builtin functions. | |
40114 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
40115 | ||
40116 | # Additional compiler flags for building library objects. | |
40117 | pic_flag=$lt_lt_prog_compiler_pic | |
40118 | ||
40119 | # How to pass a linker flag through the compiler. | |
40120 | wl=$lt_lt_prog_compiler_wl | |
40121 | ||
40122 | # Compiler flag to prevent dynamic linking. | |
40123 | link_static_flag=$lt_lt_prog_compiler_static | |
40124 | ||
40125 | # Does compiler simultaneously support -c and -o options? | |
40126 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
40127 | ||
40128 | # Whether or not to add -lc for building shared libraries. | |
40129 | build_libtool_need_lc=$archive_cmds_need_lc | |
40130 | ||
40131 | # Whether or not to disallow shared libs when runtime libs are static. | |
40132 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
40133 | ||
40134 | # Compiler flag to allow reflexive dlopens. | |
40135 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
40136 | ||
40137 | # Compiler flag to generate shared objects directly from archives. | |
40138 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
40139 | ||
40140 | # Whether the compiler copes with passing no objects directly. | |
40141 | compiler_needs_object=$lt_compiler_needs_object | |
40142 | ||
40143 | # Create an old-style archive from a shared archive. | |
40144 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
40145 | ||
40146 | # Create a temporary old-style archive to link instead of a shared archive. | |
40147 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
40148 | ||
40149 | # Commands used to build a shared archive. | |
40150 | archive_cmds=$lt_archive_cmds | |
40151 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
40152 | ||
40153 | # Commands used to build a loadable module if different from building | |
40154 | # a shared archive. | |
40155 | module_cmds=$lt_module_cmds | |
40156 | module_expsym_cmds=$lt_module_expsym_cmds | |
40157 | ||
40158 | # Whether we are building with GNU ld or not. | |
40159 | with_gnu_ld=$lt_with_gnu_ld | |
40160 | ||
40161 | # Flag that allows shared libraries with undefined symbols to be built. | |
40162 | allow_undefined_flag=$lt_allow_undefined_flag | |
40163 | ||
40164 | # Flag that enforces no undefined symbols. | |
40165 | no_undefined_flag=$lt_no_undefined_flag | |
40166 | ||
40167 | # Flag to hardcode \$libdir into a binary during linking. | |
40168 | # This must work even if \$libdir does not exist | |
40169 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
40170 | ||
40171 | # Whether we need a single "-rpath" flag with a separated argument. | |
40172 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
40173 | ||
40174 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
40175 | # DIR into the resulting binary. | |
40176 | hardcode_direct=$hardcode_direct | |
40177 | ||
40178 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
40179 | # DIR into the resulting binary and the resulting library dependency is | |
40180 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the | |
40181 | # library is relocated. | |
40182 | hardcode_direct_absolute=$hardcode_direct_absolute | |
40183 | ||
40184 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
40185 | # into the resulting binary. | |
40186 | hardcode_minus_L=$hardcode_minus_L | |
40187 | ||
40188 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
40189 | # into the resulting binary. | |
40190 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
40191 | ||
40192 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
40193 | # into the library and all subsequent libraries and executables linked | |
40194 | # against it. | |
40195 | hardcode_automatic=$hardcode_automatic | |
40196 | ||
40197 | # Set to yes if linker adds runtime paths of dependent libraries | |
40198 | # to runtime path list. | |
40199 | inherit_rpath=$inherit_rpath | |
40200 | ||
40201 | # Whether libtool must link a program against all its dependency libraries. | |
40202 | link_all_deplibs=$link_all_deplibs | |
40203 | ||
40204 | # Set to "yes" if exported symbols are required. | |
40205 | always_export_symbols=$always_export_symbols | |
40206 | ||
40207 | # The commands to list exported symbols. | |
40208 | export_symbols_cmds=$lt_export_symbols_cmds | |
40209 | ||
40210 | # Symbols that should not be listed in the preloaded symbols. | |
40211 | exclude_expsyms=$lt_exclude_expsyms | |
40212 | ||
40213 | # Symbols that must always be exported. | |
40214 | include_expsyms=$lt_include_expsyms | |
40215 | ||
40216 | # Commands necessary for linking programs (against libraries) with templates. | |
40217 | prelink_cmds=$lt_prelink_cmds | |
40218 | ||
40219 | # Commands necessary for finishing linking programs. | |
40220 | postlink_cmds=$lt_postlink_cmds | |
40221 | ||
40222 | # Specify filename containing input files. | |
40223 | file_list_spec=$lt_file_list_spec | |
40224 | ||
40225 | # How to hardcode a shared library path into an executable. | |
40226 | hardcode_action=$hardcode_action | |
40227 | ||
40228 | # ### END LIBTOOL CONFIG | |
40229 | ||
40230 | _LT_EOF | |
40231 | ||
40232 | cat <<'_LT_EOF' >> "$cfgfile" | |
40233 | ||
40234 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
40235 | ||
40236 | # func_munge_path_list VARIABLE PATH | |
40237 | # ----------------------------------- | |
40238 | # VARIABLE is name of variable containing _space_ separated list of | |
40239 | # directories to be munged by the contents of PATH, which is string | |
40240 | # having a format: | |
40241 | # "DIR[:DIR]:" | |
40242 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
40243 | # ":DIR[:DIR]" | |
40244 | # string "DIR[ DIR]" will be appended to VARIABLE | |
40245 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
40246 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
40247 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
40248 | # "DIR[:DIR]" | |
40249 | # VARIABLE will be replaced by "DIR[ DIR]" | |
40250 | func_munge_path_list () | |
40251 | { | |
40252 | case x$2 in | |
40253 | x) | |
40254 | ;; | |
40255 | *:) | |
40256 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
40257 | ;; | |
40258 | x:*) | |
40259 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
40260 | ;; | |
40261 | *::*) | |
40262 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
40263 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
40264 | ;; | |
40265 | *) | |
40266 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
40267 | ;; | |
40268 | esac | |
40269 | } | |
40270 | ||
40271 | ||
40272 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
40273 | func_cc_basename () | |
40274 | { | |
40275 | for cc_temp in $*""; do | |
40276 | case $cc_temp in | |
40277 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
40278 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
40279 | \-*) ;; | |
40280 | *) break;; | |
40281 | esac | |
40282 | done | |
40283 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
40284 | } | |
40285 | ||
40286 | ||
40287 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
40288 | ||
40289 | _LT_EOF | |
40290 | ||
40291 | case $host_os in | |
40292 | aix3*) | |
40293 | cat <<\_LT_EOF >> "$cfgfile" | |
40294 | # AIX sometimes has problems with the GCC collect2 program. For some | |
40295 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
40296 | # vanish in a puff of smoke. | |
40297 | if test set != "${COLLECT_NAMES+set}"; then | |
40298 | COLLECT_NAMES= | |
40299 | export COLLECT_NAMES | |
40300 | fi | |
40301 | _LT_EOF | |
40302 | ;; | |
40303 | esac | |
40304 | ||
40305 | ||
40306 | ltmain=$ac_aux_dir/ltmain.sh | |
40307 | ||
40308 | ||
40309 | # We use sed instead of cat because bash on DJGPP gets confused if | |
40310 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
40311 | # text mode, it properly converts lines to CR/LF. This bash problem | |
40312 | # is reportedly fixed, but why not run on old versions too? | |
40313 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
40314 | || (rm -f "$cfgfile"; exit 1) | |
40315 | ||
40316 | mv -f "$cfgfile" "$ofile" || | |
40317 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
40318 | chmod +x "$ofile" | |
40319 | ||
40320 | ;; | |
40321 | ||
40322 | esac | |
40323 | done # for ac_tag | |
40324 | ||
40325 | ||
40326 | as_fn_exit 0 | |
40327 | _ACEOF | |
40328 | ac_clean_files=$ac_clean_files_save | |
40329 | ||
40330 | test $ac_write_fail = 0 || | |
40331 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
40332 | ||
40333 | ||
40334 | # configure is writing to config.log, and then calls config.status. | |
40335 | # config.status does its own redirection, appending to config.log. | |
40336 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
40337 | # by configure, so config.status won't be able to write to it; its | |
40338 | # output is simply discarded. So we exec the FD to /dev/null, | |
40339 | # effectively closing config.log, so it can be properly (re)opened and | |
40340 | # appended to by config.status. When coming back to configure, we | |
40341 | # need to make the FD available again. | |
40342 | if test "$no_create" != yes; then | |
40343 | ac_cs_success=: | |
40344 | ac_config_status_args= | |
40345 | test "$silent" = yes && | |
40346 | ac_config_status_args="$ac_config_status_args --quiet" | |
40347 | exec 5>/dev/null | |
40348 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
40349 | exec 5>>config.log | |
40350 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
40351 | # would make configure fail if this is the last instruction. | |
40352 | $ac_cs_success || as_fn_exit 1 | |
40353 | fi | |
40354 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
40355 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
40356 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
40357 | fi | |
40358 |