]>
Commit | Line | Data |
---|---|---|
0bd31011 TG |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
d177712e | 3 | # Generated by GNU Autoconf 2.69 for zfs 0.6.5.9. |
0bd31011 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' | |
d177712e CIK |
590 | PACKAGE_VERSION='0.6.5.9' |
591 | PACKAGE_STRING='zfs 0.6.5.9' | |
0bd31011 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 | |
639 | CONFIG_KERNEL_FALSE | |
640 | CONFIG_KERNEL_TRUE | |
641 | CONFIG_USER_FALSE | |
642 | CONFIG_USER_TRUE | |
643 | KERNELCPPFLAGS | |
644 | KERNELMAKE_PARAMS | |
645 | SPL_SYMBOLS | |
646 | SPL_VERSION | |
647 | SPL_OBJ | |
648 | SPL | |
649 | LINUX_SYMBOLS | |
650 | LINUX_VERSION | |
651 | LINUX_OBJ | |
652 | LINUX | |
653 | FRAME_LARGER_THAN | |
654 | LIBBLKID | |
655 | LIBUUID | |
656 | ZLIB | |
657 | dracutdir | |
658 | ZFS_INIT_SYSV | |
659 | modulesloaddir | |
660 | systemdpresetdir | |
661 | systemdunitdir | |
662 | ZFS_MODULE_LOAD | |
663 | ZFS_INIT_SYSTEMD | |
664 | udevruledir | |
665 | udevdir | |
666 | mounthelperdir | |
667 | NO_BOOL_COMPARE | |
668 | NO_UNUSED_BUT_SET_VARIABLE | |
669 | ZFS_CONFIG | |
670 | TARGET_ASM_DIR | |
671 | ALIEN_VERSION | |
672 | ALIEN | |
673 | HAVE_ALIEN | |
674 | DPKGBUILD_VERSION | |
675 | DPKGBUILD | |
676 | HAVE_DPKGBUILD | |
677 | DPKG_VERSION | |
678 | DPKG | |
679 | HAVE_DPKG | |
680 | SRPM_DEFINE_COMMON | |
681 | SRPM_DEFINE_DKMS | |
682 | SRPM_DEFINE_KMOD | |
683 | SRPM_DEFINE_UTIL | |
684 | RPM_DEFINE_COMMON | |
685 | RPM_DEFINE_DKMS | |
686 | RPM_DEFINE_KMOD | |
687 | RPM_DEFINE_UTIL | |
688 | RPM_SPEC_DIR | |
689 | RPMBUILD_VERSION | |
690 | RPMBUILD | |
691 | HAVE_RPMBUILD | |
692 | RPM_VERSION | |
693 | RPM | |
694 | HAVE_RPM | |
695 | DEFINE_INITRAMFS | |
696 | DEFAULT_INITCONF_DIR | |
697 | DEFAULT_INIT_SCRIPT | |
698 | DEFAULT_INIT_DIR | |
699 | DEFAULT_PACKAGE | |
700 | VENDOR | |
701 | am__fastdepCCAS_FALSE | |
702 | am__fastdepCCAS_TRUE | |
703 | CCASDEPMODE | |
704 | CCASFLAGS | |
705 | CCAS | |
706 | CPP | |
707 | LT_SYS_LIBRARY_PATH | |
708 | OTOOL64 | |
709 | OTOOL | |
710 | LIPO | |
711 | NMEDIT | |
712 | DSYMUTIL | |
713 | MANIFEST_TOOL | |
714 | RANLIB | |
715 | ac_ct_AR | |
716 | AR | |
717 | DLLTOOL | |
718 | OBJDUMP | |
719 | LN_S | |
720 | NM | |
721 | ac_ct_DUMPBIN | |
722 | DUMPBIN | |
723 | LD | |
724 | FGREP | |
725 | EGREP | |
726 | GREP | |
727 | SED | |
728 | LIBTOOL | |
729 | am__fastdepCC_FALSE | |
730 | am__fastdepCC_TRUE | |
731 | CCDEPMODE | |
732 | am__nodep | |
733 | AMDEPBACKSLASH | |
734 | AMDEP_FALSE | |
735 | AMDEP_TRUE | |
736 | am__quote | |
737 | am__include | |
738 | DEPDIR | |
739 | OBJEXT | |
740 | EXEEXT | |
741 | ac_ct_CC | |
742 | CPPFLAGS | |
743 | LDFLAGS | |
744 | CFLAGS | |
745 | CC | |
746 | am__untar | |
747 | am__tar | |
748 | AMTAR | |
749 | am__leading_dot | |
750 | SET_MAKE | |
751 | mkdir_p | |
752 | MKDIR_P | |
753 | INSTALL_STRIP_PROGRAM | |
754 | STRIP | |
755 | install_sh | |
756 | MAKEINFO | |
757 | AUTOHEADER | |
758 | AUTOMAKE | |
759 | AUTOCONF | |
760 | ACLOCAL | |
761 | VERSION | |
762 | PACKAGE | |
763 | CYGPATH_W | |
764 | am__isrc | |
765 | INSTALL_DATA | |
766 | INSTALL_SCRIPT | |
767 | INSTALL_PROGRAM | |
768 | AM_BACKSLASH | |
769 | AM_DEFAULT_VERBOSITY | |
770 | AM_DEFAULT_V | |
771 | AM_V | |
772 | MAINT | |
773 | MAINTAINER_MODE_FALSE | |
774 | MAINTAINER_MODE_TRUE | |
775 | target_os | |
776 | target_vendor | |
777 | target_cpu | |
778 | target | |
779 | host_os | |
780 | host_vendor | |
781 | host_cpu | |
782 | host | |
783 | build_os | |
784 | build_vendor | |
785 | build_cpu | |
786 | build | |
787 | ZFS_META_LT_AGE | |
788 | ZFS_META_LT_REVISION | |
789 | ZFS_META_LT_CURRENT | |
790 | ZFS_META_AUTHOR | |
791 | ZFS_META_DATA | |
792 | ZFS_META_ALIAS | |
793 | ZFS_META_LICENSE | |
794 | RELEASE | |
795 | ZFS_META_RELEASE | |
796 | ZFS_META_VERSION | |
797 | ZFS_META_NAME | |
798 | AWK | |
799 | target_alias | |
800 | host_alias | |
801 | build_alias | |
802 | LIBS | |
803 | ECHO_T | |
804 | ECHO_N | |
805 | ECHO_C | |
806 | DEFS | |
807 | mandir | |
808 | localedir | |
809 | libdir | |
810 | psdir | |
811 | pdfdir | |
812 | dvidir | |
813 | htmldir | |
814 | infodir | |
815 | docdir | |
816 | oldincludedir | |
817 | includedir | |
818 | runstatedir | |
819 | localstatedir | |
820 | sharedstatedir | |
821 | sysconfdir | |
822 | datadir | |
823 | datarootdir | |
824 | libexecdir | |
825 | sbindir | |
826 | bindir | |
827 | program_transform_name | |
828 | prefix | |
829 | exec_prefix | |
830 | PACKAGE_URL | |
831 | PACKAGE_BUGREPORT | |
832 | PACKAGE_STRING | |
833 | PACKAGE_VERSION | |
834 | PACKAGE_TARNAME | |
835 | PACKAGE_NAME | |
836 | PATH_SEPARATOR | |
837 | SHELL' | |
838 | ac_subst_files='' | |
839 | ac_user_opts=' | |
840 | enable_option_checking | |
841 | enable_maintainer_mode | |
842 | enable_silent_rules | |
843 | enable_dependency_tracking | |
844 | enable_shared | |
845 | enable_static | |
846 | with_pic | |
847 | enable_fast_install | |
848 | with_aix_soname | |
849 | with_gnu_ld | |
850 | with_sysroot | |
851 | enable_libtool_lock | |
852 | with_spec | |
853 | with_config | |
854 | enable_linux_builtin | |
855 | with_mounthelperdir | |
856 | with_udevdir | |
857 | with_udevruledir | |
858 | enable_systemd | |
859 | with_systemdunitdir | |
860 | with_systemdpresetdir | |
861 | with_systemdmodulesloaddir | |
862 | enable_sysvinit | |
863 | with_dracutdir | |
864 | with_blkid | |
865 | with_linux | |
866 | with_linux_obj | |
867 | with_spl | |
868 | with_spl_obj | |
869 | with_spl_timeout | |
870 | enable_debug | |
871 | enable_debug_dmu_tx | |
872 | ' | |
873 | ac_precious_vars='build_alias | |
874 | host_alias | |
875 | target_alias | |
876 | CC | |
877 | CFLAGS | |
878 | LDFLAGS | |
879 | LIBS | |
880 | CPPFLAGS | |
881 | LT_SYS_LIBRARY_PATH | |
882 | CPP | |
883 | CCAS | |
884 | CCASFLAGS' | |
885 | ||
886 | ||
887 | # Initialize some variables set by options. | |
888 | ac_init_help= | |
889 | ac_init_version=false | |
890 | ac_unrecognized_opts= | |
891 | ac_unrecognized_sep= | |
892 | # The variables have the same names as the options, with | |
893 | # dashes changed to underlines. | |
894 | cache_file=/dev/null | |
895 | exec_prefix=NONE | |
896 | no_create= | |
897 | no_recursion= | |
898 | prefix=NONE | |
899 | program_prefix=NONE | |
900 | program_suffix=NONE | |
901 | program_transform_name=s,x,x, | |
902 | silent= | |
903 | site= | |
904 | srcdir= | |
905 | verbose= | |
906 | x_includes=NONE | |
907 | x_libraries=NONE | |
908 | ||
909 | # Installation directory options. | |
910 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
911 | # and all the variables that are supposed to be based on exec_prefix | |
912 | # by default will actually change. | |
913 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
914 | # (The list follows the same order as the GNU Coding Standards.) | |
915 | bindir='${exec_prefix}/bin' | |
916 | sbindir='${exec_prefix}/sbin' | |
917 | libexecdir='${exec_prefix}/libexec' | |
918 | datarootdir='${prefix}/share' | |
919 | datadir='${datarootdir}' | |
920 | sysconfdir='${prefix}/etc' | |
921 | sharedstatedir='${prefix}/com' | |
922 | localstatedir='${prefix}/var' | |
923 | runstatedir='${localstatedir}/run' | |
924 | includedir='${prefix}/include' | |
925 | oldincludedir='/usr/include' | |
926 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
927 | infodir='${datarootdir}/info' | |
928 | htmldir='${docdir}' | |
929 | dvidir='${docdir}' | |
930 | pdfdir='${docdir}' | |
931 | psdir='${docdir}' | |
932 | libdir='${exec_prefix}/lib' | |
933 | localedir='${datarootdir}/locale' | |
934 | mandir='${datarootdir}/man' | |
935 | ||
936 | ac_prev= | |
937 | ac_dashdash= | |
938 | for ac_option | |
939 | do | |
940 | # If the previous option needs an argument, assign it. | |
941 | if test -n "$ac_prev"; then | |
942 | eval $ac_prev=\$ac_option | |
943 | ac_prev= | |
944 | continue | |
945 | fi | |
946 | ||
947 | case $ac_option in | |
948 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
949 | *=) ac_optarg= ;; | |
950 | *) ac_optarg=yes ;; | |
951 | esac | |
952 | ||
953 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
954 | ||
955 | case $ac_dashdash$ac_option in | |
956 | --) | |
957 | ac_dashdash=yes ;; | |
958 | ||
959 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
960 | ac_prev=bindir ;; | |
961 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
962 | bindir=$ac_optarg ;; | |
963 | ||
964 | -build | --build | --buil | --bui | --bu) | |
965 | ac_prev=build_alias ;; | |
966 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
967 | build_alias=$ac_optarg ;; | |
968 | ||
969 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
970 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
971 | ac_prev=cache_file ;; | |
972 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
973 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
974 | cache_file=$ac_optarg ;; | |
975 | ||
976 | --config-cache | -C) | |
977 | cache_file=config.cache ;; | |
978 | ||
979 | -datadir | --datadir | --datadi | --datad) | |
980 | ac_prev=datadir ;; | |
981 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
982 | datadir=$ac_optarg ;; | |
983 | ||
984 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
985 | | --dataroo | --dataro | --datar) | |
986 | ac_prev=datarootdir ;; | |
987 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
988 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
989 | datarootdir=$ac_optarg ;; | |
990 | ||
991 | -disable-* | --disable-*) | |
992 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
993 | # Reject names that are not valid shell variable names. | |
994 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
995 | as_fn_error $? "invalid feature name: $ac_useropt" | |
996 | ac_useropt_orig=$ac_useropt | |
997 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
998 | case $ac_user_opts in | |
999 | *" | |
1000 | "enable_$ac_useropt" | |
1001 | "*) ;; | |
1002 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1003 | ac_unrecognized_sep=', ';; | |
1004 | esac | |
1005 | eval enable_$ac_useropt=no ;; | |
1006 | ||
1007 | -docdir | --docdir | --docdi | --doc | --do) | |
1008 | ac_prev=docdir ;; | |
1009 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1010 | docdir=$ac_optarg ;; | |
1011 | ||
1012 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1013 | ac_prev=dvidir ;; | |
1014 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1015 | dvidir=$ac_optarg ;; | |
1016 | ||
1017 | -enable-* | --enable-*) | |
1018 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1019 | # Reject names that are not valid shell variable names. | |
1020 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1021 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1022 | ac_useropt_orig=$ac_useropt | |
1023 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1024 | case $ac_user_opts in | |
1025 | *" | |
1026 | "enable_$ac_useropt" | |
1027 | "*) ;; | |
1028 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1029 | ac_unrecognized_sep=', ';; | |
1030 | esac | |
1031 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1032 | ||
1033 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1034 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1035 | | --exec | --exe | --ex) | |
1036 | ac_prev=exec_prefix ;; | |
1037 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1038 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1039 | | --exec=* | --exe=* | --ex=*) | |
1040 | exec_prefix=$ac_optarg ;; | |
1041 | ||
1042 | -gas | --gas | --ga | --g) | |
1043 | # Obsolete; use --with-gas. | |
1044 | with_gas=yes ;; | |
1045 | ||
1046 | -help | --help | --hel | --he | -h) | |
1047 | ac_init_help=long ;; | |
1048 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1049 | ac_init_help=recursive ;; | |
1050 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1051 | ac_init_help=short ;; | |
1052 | ||
1053 | -host | --host | --hos | --ho) | |
1054 | ac_prev=host_alias ;; | |
1055 | -host=* | --host=* | --hos=* | --ho=*) | |
1056 | host_alias=$ac_optarg ;; | |
1057 | ||
1058 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1059 | ac_prev=htmldir ;; | |
1060 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1061 | | --ht=*) | |
1062 | htmldir=$ac_optarg ;; | |
1063 | ||
1064 | -includedir | --includedir | --includedi | --included | --include \ | |
1065 | | --includ | --inclu | --incl | --inc) | |
1066 | ac_prev=includedir ;; | |
1067 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1068 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1069 | includedir=$ac_optarg ;; | |
1070 | ||
1071 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1072 | ac_prev=infodir ;; | |
1073 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1074 | infodir=$ac_optarg ;; | |
1075 | ||
1076 | -libdir | --libdir | --libdi | --libd) | |
1077 | ac_prev=libdir ;; | |
1078 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1079 | libdir=$ac_optarg ;; | |
1080 | ||
1081 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1082 | | --libexe | --libex | --libe) | |
1083 | ac_prev=libexecdir ;; | |
1084 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1085 | | --libexe=* | --libex=* | --libe=*) | |
1086 | libexecdir=$ac_optarg ;; | |
1087 | ||
1088 | -localedir | --localedir | --localedi | --localed | --locale) | |
1089 | ac_prev=localedir ;; | |
1090 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1091 | localedir=$ac_optarg ;; | |
1092 | ||
1093 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1094 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1095 | ac_prev=localstatedir ;; | |
1096 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1097 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1098 | localstatedir=$ac_optarg ;; | |
1099 | ||
1100 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1101 | ac_prev=mandir ;; | |
1102 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1103 | mandir=$ac_optarg ;; | |
1104 | ||
1105 | -nfp | --nfp | --nf) | |
1106 | # Obsolete; use --without-fp. | |
1107 | with_fp=no ;; | |
1108 | ||
1109 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1110 | | --no-cr | --no-c | -n) | |
1111 | no_create=yes ;; | |
1112 | ||
1113 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1114 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1115 | no_recursion=yes ;; | |
1116 | ||
1117 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1118 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1119 | | --oldin | --oldi | --old | --ol | --o) | |
1120 | ac_prev=oldincludedir ;; | |
1121 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1122 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1123 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1124 | oldincludedir=$ac_optarg ;; | |
1125 | ||
1126 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1127 | ac_prev=prefix ;; | |
1128 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1129 | prefix=$ac_optarg ;; | |
1130 | ||
1131 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1132 | | --program-pre | --program-pr | --program-p) | |
1133 | ac_prev=program_prefix ;; | |
1134 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1135 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1136 | program_prefix=$ac_optarg ;; | |
1137 | ||
1138 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1139 | | --program-suf | --program-su | --program-s) | |
1140 | ac_prev=program_suffix ;; | |
1141 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1142 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1143 | program_suffix=$ac_optarg ;; | |
1144 | ||
1145 | -program-transform-name | --program-transform-name \ | |
1146 | | --program-transform-nam | --program-transform-na \ | |
1147 | | --program-transform-n | --program-transform- \ | |
1148 | | --program-transform | --program-transfor \ | |
1149 | | --program-transfo | --program-transf \ | |
1150 | | --program-trans | --program-tran \ | |
1151 | | --progr-tra | --program-tr | --program-t) | |
1152 | ac_prev=program_transform_name ;; | |
1153 | -program-transform-name=* | --program-transform-name=* \ | |
1154 | | --program-transform-nam=* | --program-transform-na=* \ | |
1155 | | --program-transform-n=* | --program-transform-=* \ | |
1156 | | --program-transform=* | --program-transfor=* \ | |
1157 | | --program-transfo=* | --program-transf=* \ | |
1158 | | --program-trans=* | --program-tran=* \ | |
1159 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1160 | program_transform_name=$ac_optarg ;; | |
1161 | ||
1162 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1163 | ac_prev=pdfdir ;; | |
1164 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1165 | pdfdir=$ac_optarg ;; | |
1166 | ||
1167 | -psdir | --psdir | --psdi | --psd | --ps) | |
1168 | ac_prev=psdir ;; | |
1169 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1170 | psdir=$ac_optarg ;; | |
1171 | ||
1172 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1173 | | -silent | --silent | --silen | --sile | --sil) | |
1174 | silent=yes ;; | |
1175 | ||
1176 | -runstatedir | --runstatedir | --runstatedi | --runstated \ | |
1177 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1178 | | --run | --ru | --r) | |
1179 | ac_prev=runstatedir ;; | |
1180 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1181 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1182 | | --run=* | --ru=* | --r=*) | |
1183 | runstatedir=$ac_optarg ;; | |
1184 | ||
1185 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1186 | ac_prev=sbindir ;; | |
1187 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1188 | | --sbi=* | --sb=*) | |
1189 | sbindir=$ac_optarg ;; | |
1190 | ||
1191 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1192 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1193 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1194 | | --sha | --sh) | |
1195 | ac_prev=sharedstatedir ;; | |
1196 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1197 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1198 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1199 | | --sha=* | --sh=*) | |
1200 | sharedstatedir=$ac_optarg ;; | |
1201 | ||
1202 | -site | --site | --sit) | |
1203 | ac_prev=site ;; | |
1204 | -site=* | --site=* | --sit=*) | |
1205 | site=$ac_optarg ;; | |
1206 | ||
1207 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1208 | ac_prev=srcdir ;; | |
1209 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1210 | srcdir=$ac_optarg ;; | |
1211 | ||
1212 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1213 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1214 | ac_prev=sysconfdir ;; | |
1215 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1216 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1217 | sysconfdir=$ac_optarg ;; | |
1218 | ||
1219 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1220 | ac_prev=target_alias ;; | |
1221 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1222 | target_alias=$ac_optarg ;; | |
1223 | ||
1224 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1225 | verbose=yes ;; | |
1226 | ||
1227 | -version | --version | --versio | --versi | --vers | -V) | |
1228 | ac_init_version=: ;; | |
1229 | ||
1230 | -with-* | --with-*) | |
1231 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1232 | # Reject names that are not valid shell variable names. | |
1233 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1234 | as_fn_error $? "invalid package name: $ac_useropt" | |
1235 | ac_useropt_orig=$ac_useropt | |
1236 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1237 | case $ac_user_opts in | |
1238 | *" | |
1239 | "with_$ac_useropt" | |
1240 | "*) ;; | |
1241 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1242 | ac_unrecognized_sep=', ';; | |
1243 | esac | |
1244 | eval with_$ac_useropt=\$ac_optarg ;; | |
1245 | ||
1246 | -without-* | --without-*) | |
1247 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1248 | # Reject names that are not valid shell variable names. | |
1249 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1250 | as_fn_error $? "invalid package name: $ac_useropt" | |
1251 | ac_useropt_orig=$ac_useropt | |
1252 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1253 | case $ac_user_opts in | |
1254 | *" | |
1255 | "with_$ac_useropt" | |
1256 | "*) ;; | |
1257 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1258 | ac_unrecognized_sep=', ';; | |
1259 | esac | |
1260 | eval with_$ac_useropt=no ;; | |
1261 | ||
1262 | --x) | |
1263 | # Obsolete; use --with-x. | |
1264 | with_x=yes ;; | |
1265 | ||
1266 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1267 | | --x-incl | --x-inc | --x-in | --x-i) | |
1268 | ac_prev=x_includes ;; | |
1269 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1270 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1271 | x_includes=$ac_optarg ;; | |
1272 | ||
1273 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1274 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1275 | ac_prev=x_libraries ;; | |
1276 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1277 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1278 | x_libraries=$ac_optarg ;; | |
1279 | ||
1280 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1281 | Try \`$0 --help' for more information" | |
1282 | ;; | |
1283 | ||
1284 | *=*) | |
1285 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1286 | # Reject names that are not valid shell variable names. | |
1287 | case $ac_envvar in #( | |
1288 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1289 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1290 | esac | |
1291 | eval $ac_envvar=\$ac_optarg | |
1292 | export $ac_envvar ;; | |
1293 | ||
1294 | *) | |
1295 | # FIXME: should be removed in autoconf 3.0. | |
1296 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1297 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1298 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1299 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1300 | ;; | |
1301 | ||
1302 | esac | |
1303 | done | |
1304 | ||
1305 | if test -n "$ac_prev"; then | |
1306 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1307 | as_fn_error $? "missing argument to $ac_option" | |
1308 | fi | |
1309 | ||
1310 | if test -n "$ac_unrecognized_opts"; then | |
1311 | case $enable_option_checking in | |
1312 | no) ;; | |
1313 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1314 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1315 | esac | |
1316 | fi | |
1317 | ||
1318 | # Check all directory arguments for consistency. | |
1319 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1320 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1321 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1322 | libdir localedir mandir runstatedir | |
1323 | do | |
1324 | eval ac_val=\$$ac_var | |
1325 | # Remove trailing slashes. | |
1326 | case $ac_val in | |
1327 | */ ) | |
1328 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1329 | eval $ac_var=\$ac_val;; | |
1330 | esac | |
1331 | # Be sure to have absolute directory names. | |
1332 | case $ac_val in | |
1333 | [\\/$]* | ?:[\\/]* ) continue;; | |
1334 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1335 | esac | |
1336 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1337 | done | |
1338 | ||
1339 | # There might be people who depend on the old broken behavior: `$host' | |
1340 | # used to hold the argument of --host etc. | |
1341 | # FIXME: To remove some day. | |
1342 | build=$build_alias | |
1343 | host=$host_alias | |
1344 | target=$target_alias | |
1345 | ||
1346 | # FIXME: To remove some day. | |
1347 | if test "x$host_alias" != x; then | |
1348 | if test "x$build_alias" = x; then | |
1349 | cross_compiling=maybe | |
1350 | elif test "x$build_alias" != "x$host_alias"; then | |
1351 | cross_compiling=yes | |
1352 | fi | |
1353 | fi | |
1354 | ||
1355 | ac_tool_prefix= | |
1356 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1357 | ||
1358 | test "$silent" = yes && exec 6>/dev/null | |
1359 | ||
1360 | ||
1361 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1362 | ac_ls_di=`ls -di .` && | |
1363 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1364 | as_fn_error $? "working directory cannot be determined" | |
1365 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1366 | as_fn_error $? "pwd does not report name of working directory" | |
1367 | ||
1368 | ||
1369 | # Find the source files, if location was not specified. | |
1370 | if test -z "$srcdir"; then | |
1371 | ac_srcdir_defaulted=yes | |
1372 | # Try the directory containing this script, then the parent directory. | |
1373 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1374 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1375 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1376 | X"$as_myself" : 'X\(//\)$' \| \ | |
1377 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1378 | $as_echo X"$as_myself" | | |
1379 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1380 | s//\1/ | |
1381 | q | |
1382 | } | |
1383 | /^X\(\/\/\)[^/].*/{ | |
1384 | s//\1/ | |
1385 | q | |
1386 | } | |
1387 | /^X\(\/\/\)$/{ | |
1388 | s//\1/ | |
1389 | q | |
1390 | } | |
1391 | /^X\(\/\).*/{ | |
1392 | s//\1/ | |
1393 | q | |
1394 | } | |
1395 | s/.*/./; q'` | |
1396 | srcdir=$ac_confdir | |
1397 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1398 | srcdir=.. | |
1399 | fi | |
1400 | else | |
1401 | ac_srcdir_defaulted=no | |
1402 | fi | |
1403 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1404 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1405 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1406 | fi | |
1407 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1408 | ac_abs_confdir=`( | |
1409 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1410 | pwd)` | |
1411 | # When building in place, set srcdir=. | |
1412 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1413 | srcdir=. | |
1414 | fi | |
1415 | # Remove unnecessary trailing slashes from srcdir. | |
1416 | # Double slashes in file names in object file debugging info | |
1417 | # mess up M-x gdb in Emacs. | |
1418 | case $srcdir in | |
1419 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1420 | esac | |
1421 | for ac_var in $ac_precious_vars; do | |
1422 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1423 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1424 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1425 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1426 | done | |
1427 | ||
1428 | # | |
1429 | # Report the --help message. | |
1430 | # | |
1431 | if test "$ac_init_help" = "long"; then | |
1432 | # Omit some internal or obsolete options to make the list less imposing. | |
1433 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1434 | cat <<_ACEOF | |
d177712e | 1435 | \`configure' configures zfs 0.6.5.9 to adapt to many kinds of systems. |
0bd31011 TG |
1436 | |
1437 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1438 | ||
1439 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1440 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1441 | ||
1442 | Defaults for the options are specified in brackets. | |
1443 | ||
1444 | Configuration: | |
1445 | -h, --help display this help and exit | |
1446 | --help=short display options specific to this package | |
1447 | --help=recursive display the short help of all the included packages | |
1448 | -V, --version display version information and exit | |
1449 | -q, --quiet, --silent do not print \`checking ...' messages | |
1450 | --cache-file=FILE cache test results in FILE [disabled] | |
1451 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1452 | -n, --no-create do not create output files | |
1453 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1454 | ||
1455 | Installation directories: | |
1456 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1457 | [$ac_default_prefix] | |
1458 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1459 | [PREFIX] | |
1460 | ||
1461 | By default, \`make install' will install all the files in | |
1462 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1463 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1464 | for instance \`--prefix=\$HOME'. | |
1465 | ||
1466 | For better control, use the options below. | |
1467 | ||
1468 | Fine tuning of the installation directories: | |
1469 | --bindir=DIR user executables [EPREFIX/bin] | |
1470 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1471 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1472 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1473 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1474 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1475 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] | |
1476 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1477 | --includedir=DIR C header files [PREFIX/include] | |
1478 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1479 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1480 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1481 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1482 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1483 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1484 | --docdir=DIR documentation root [DATAROOTDIR/doc/zfs] | |
1485 | --htmldir=DIR html documentation [DOCDIR] | |
1486 | --dvidir=DIR dvi documentation [DOCDIR] | |
1487 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1488 | --psdir=DIR ps documentation [DOCDIR] | |
1489 | _ACEOF | |
1490 | ||
1491 | cat <<\_ACEOF | |
1492 | ||
1493 | Program names: | |
1494 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1495 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1496 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1497 | ||
1498 | System types: | |
1499 | --build=BUILD configure for building on BUILD [guessed] | |
1500 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1501 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1502 | _ACEOF | |
1503 | fi | |
1504 | ||
1505 | if test -n "$ac_init_help"; then | |
1506 | case $ac_init_help in | |
d177712e | 1507 | short | recursive ) echo "Configuration of zfs 0.6.5.9:";; |
0bd31011 TG |
1508 | esac |
1509 | cat <<\_ACEOF | |
1510 | ||
1511 | Optional Features: | |
1512 | --disable-option-checking ignore unrecognized --enable/--with options | |
1513 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1514 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1515 | --enable-maintainer-mode | |
1516 | enable make rules and dependencies not useful (and | |
1517 | sometimes confusing) to the casual installer | |
1518 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1519 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1520 | --enable-dependency-tracking | |
1521 | do not reject slow dependency extractors | |
1522 | --disable-dependency-tracking | |
1523 | speeds up one-time build | |
1524 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1525 | --enable-static[=PKGS] build static libraries [default=yes] | |
1526 | --enable-fast-install[=PKGS] | |
1527 | optimize for fast installation [default=yes] | |
1528 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1529 | --enable-linux-builtin Configure for builtin in-tree kernel modules | |
1530 | [default=no] | |
1531 | --enable-systemd install systemd unit/preset files [[default: yes]] | |
1532 | --enable-sysvinit install SysV init scripts [default: yes] | |
1533 | --enable-debug Enable generic debug support [default=no] | |
1534 | --enable-debug-dmu-tx Enable dmu tx validation [default=no] | |
1535 | ||
1536 | Optional Packages: | |
1537 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1538 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1539 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
1540 | both] | |
1541 | --with-aix-soname=aix|svr4|both | |
1542 | shared library versioning (aka "SONAME") variant to | |
1543 | provide on AIX, [default=aix]. | |
1544 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1545 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the | |
1546 | compiler's sysroot if not specified). | |
1547 | --with-spec=SPEC Spec files 'generic|redhat' | |
1548 | --with-config=CONFIG Config file 'kernel|user|all|srpm' | |
1549 | --with-mounthelperdir=DIR | |
1550 | install mount.zfs in dir [[/sbin]] | |
1551 | --with-udevdir=DIR install udev helpers [default=check] | |
1552 | --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]] | |
1553 | --with-systemdunitdir=DIR | |
1554 | install systemd unit files in dir | |
1555 | [[/usr/lib/systemd/system]] | |
1556 | --with-systemdpresetdir=DIR | |
1557 | install systemd preset files in dir | |
1558 | [[/usr/lib/systemd/system-preset]] | |
1559 | --with-systemdmodulesloaddir=DIR | |
1560 | install systemd module load files into dir | |
1561 | [[/usr/lib/modules-load.d]] | |
1562 | --with-dracutdir=DIR install dracut helpers [default=check] | |
1563 | --with-blkid support blkid caching [default=check] | |
1564 | --with-linux=PATH Path to kernel source | |
1565 | --with-linux-obj=PATH Path to kernel build objects | |
1566 | --with-spl=PATH Path to spl source | |
1567 | --with-spl-obj=PATH Path to spl build objects | |
1568 | --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0] | |
1569 | ||
1570 | Some influential environment variables: | |
1571 | CC C compiler command | |
1572 | CFLAGS C compiler flags | |
1573 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1574 | nonstandard directory <lib dir> | |
1575 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1576 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1577 | you have headers in a nonstandard directory <include dir> | |
1578 | LT_SYS_LIBRARY_PATH | |
1579 | User-defined run-time library search path. | |
1580 | CPP C preprocessor | |
1581 | CCAS assembler compiler command (defaults to CC) | |
1582 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
1583 | ||
1584 | Use these variables to override the choices made by `configure' or to help | |
1585 | it to find libraries and programs with nonstandard names/locations. | |
1586 | ||
1587 | Report bugs to the package provider. | |
1588 | _ACEOF | |
1589 | ac_status=$? | |
1590 | fi | |
1591 | ||
1592 | if test "$ac_init_help" = "recursive"; then | |
1593 | # If there are subdirs, report their specific --help. | |
1594 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1595 | test -d "$ac_dir" || | |
1596 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1597 | continue | |
1598 | ac_builddir=. | |
1599 | ||
1600 | case "$ac_dir" in | |
1601 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1602 | *) | |
1603 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1604 | # A ".." for each directory in $ac_dir_suffix. | |
1605 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1606 | case $ac_top_builddir_sub in | |
1607 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1608 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1609 | esac ;; | |
1610 | esac | |
1611 | ac_abs_top_builddir=$ac_pwd | |
1612 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1613 | # for backward compatibility: | |
1614 | ac_top_builddir=$ac_top_build_prefix | |
1615 | ||
1616 | case $srcdir in | |
1617 | .) # We are building in place. | |
1618 | ac_srcdir=. | |
1619 | ac_top_srcdir=$ac_top_builddir_sub | |
1620 | ac_abs_top_srcdir=$ac_pwd ;; | |
1621 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1622 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1623 | ac_top_srcdir=$srcdir | |
1624 | ac_abs_top_srcdir=$srcdir ;; | |
1625 | *) # Relative name. | |
1626 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1627 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1628 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1629 | esac | |
1630 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1631 | ||
1632 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1633 | # Check for guested configure. | |
1634 | if test -f "$ac_srcdir/configure.gnu"; then | |
1635 | echo && | |
1636 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1637 | elif test -f "$ac_srcdir/configure"; then | |
1638 | echo && | |
1639 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1640 | else | |
1641 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1642 | fi || ac_status=$? | |
1643 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1644 | done | |
1645 | fi | |
1646 | ||
1647 | test -n "$ac_init_help" && exit $ac_status | |
1648 | if $ac_init_version; then | |
1649 | cat <<\_ACEOF | |
d177712e | 1650 | zfs configure 0.6.5.9 |
0bd31011 TG |
1651 | generated by GNU Autoconf 2.69 |
1652 | ||
1653 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1654 | This configure script is free software; the Free Software Foundation | |
1655 | gives unlimited permission to copy, distribute and modify it. | |
1656 | _ACEOF | |
1657 | exit | |
1658 | fi | |
1659 | ||
1660 | ## ------------------------ ## | |
1661 | ## Autoconf initialization. ## | |
1662 | ## ------------------------ ## | |
1663 | ||
1664 | # ac_fn_c_try_compile LINENO | |
1665 | # -------------------------- | |
1666 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1667 | ac_fn_c_try_compile () | |
1668 | { | |
1669 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1670 | rm -f conftest.$ac_objext | |
1671 | if { { ac_try="$ac_compile" | |
1672 | case "(($ac_try" in | |
1673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1674 | *) ac_try_echo=$ac_try;; | |
1675 | esac | |
1676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1677 | $as_echo "$ac_try_echo"; } >&5 | |
1678 | (eval "$ac_compile") 2>conftest.err | |
1679 | ac_status=$? | |
1680 | if test -s conftest.err; then | |
1681 | grep -v '^ *+' conftest.err >conftest.er1 | |
1682 | cat conftest.er1 >&5 | |
1683 | mv -f conftest.er1 conftest.err | |
1684 | fi | |
1685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1686 | test $ac_status = 0; } && { | |
1687 | test -z "$ac_c_werror_flag" || | |
1688 | test ! -s conftest.err | |
1689 | } && test -s conftest.$ac_objext; then : | |
1690 | ac_retval=0 | |
1691 | else | |
1692 | $as_echo "$as_me: failed program was:" >&5 | |
1693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1694 | ||
1695 | ac_retval=1 | |
1696 | fi | |
1697 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1698 | as_fn_set_status $ac_retval | |
1699 | ||
1700 | } # ac_fn_c_try_compile | |
1701 | ||
1702 | # ac_fn_c_try_link LINENO | |
1703 | # ----------------------- | |
1704 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1705 | ac_fn_c_try_link () | |
1706 | { | |
1707 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1708 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1709 | if { { ac_try="$ac_link" | |
1710 | case "(($ac_try" in | |
1711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1712 | *) ac_try_echo=$ac_try;; | |
1713 | esac | |
1714 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1715 | $as_echo "$ac_try_echo"; } >&5 | |
1716 | (eval "$ac_link") 2>conftest.err | |
1717 | ac_status=$? | |
1718 | if test -s conftest.err; then | |
1719 | grep -v '^ *+' conftest.err >conftest.er1 | |
1720 | cat conftest.er1 >&5 | |
1721 | mv -f conftest.er1 conftest.err | |
1722 | fi | |
1723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1724 | test $ac_status = 0; } && { | |
1725 | test -z "$ac_c_werror_flag" || | |
1726 | test ! -s conftest.err | |
1727 | } && test -s conftest$ac_exeext && { | |
1728 | test "$cross_compiling" = yes || | |
1729 | test -x conftest$ac_exeext | |
1730 | }; then : | |
1731 | ac_retval=0 | |
1732 | else | |
1733 | $as_echo "$as_me: failed program was:" >&5 | |
1734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1735 | ||
1736 | ac_retval=1 | |
1737 | fi | |
1738 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1739 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1740 | # interfere with the next link command; also delete a directory that is | |
1741 | # left behind by Apple's compiler. We do this before executing the actions. | |
1742 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1743 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1744 | as_fn_set_status $ac_retval | |
1745 | ||
1746 | } # ac_fn_c_try_link | |
1747 | ||
1748 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1749 | # ------------------------------------------------------- | |
1750 | # Tests whether HEADER exists and can be compiled using the include files in | |
1751 | # INCLUDES, setting the cache variable VAR accordingly. | |
1752 | ac_fn_c_check_header_compile () | |
1753 | { | |
1754 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1756 | $as_echo_n "checking for $2... " >&6; } | |
1757 | if eval \${$3+:} false; then : | |
1758 | $as_echo_n "(cached) " >&6 | |
1759 | else | |
1760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1761 | /* end confdefs.h. */ | |
1762 | $4 | |
1763 | #include <$2> | |
1764 | _ACEOF | |
1765 | if ac_fn_c_try_compile "$LINENO"; then : | |
1766 | eval "$3=yes" | |
1767 | else | |
1768 | eval "$3=no" | |
1769 | fi | |
1770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1771 | fi | |
1772 | eval ac_res=\$$3 | |
1773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1774 | $as_echo "$ac_res" >&6; } | |
1775 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1776 | ||
1777 | } # ac_fn_c_check_header_compile | |
1778 | ||
1779 | # ac_fn_c_try_cpp LINENO | |
1780 | # ---------------------- | |
1781 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1782 | ac_fn_c_try_cpp () | |
1783 | { | |
1784 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1785 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1786 | case "(($ac_try" in | |
1787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1788 | *) ac_try_echo=$ac_try;; | |
1789 | esac | |
1790 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1791 | $as_echo "$ac_try_echo"; } >&5 | |
1792 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1793 | ac_status=$? | |
1794 | if test -s conftest.err; then | |
1795 | grep -v '^ *+' conftest.err >conftest.er1 | |
1796 | cat conftest.er1 >&5 | |
1797 | mv -f conftest.er1 conftest.err | |
1798 | fi | |
1799 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1800 | test $ac_status = 0; } > conftest.i && { | |
1801 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1802 | test ! -s conftest.err | |
1803 | }; then : | |
1804 | ac_retval=0 | |
1805 | else | |
1806 | $as_echo "$as_me: failed program was:" >&5 | |
1807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1808 | ||
1809 | ac_retval=1 | |
1810 | fi | |
1811 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1812 | as_fn_set_status $ac_retval | |
1813 | ||
1814 | } # ac_fn_c_try_cpp | |
1815 | ||
1816 | # ac_fn_c_try_run LINENO | |
1817 | # ---------------------- | |
1818 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1819 | # that executables *can* be run. | |
1820 | ac_fn_c_try_run () | |
1821 | { | |
1822 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1823 | if { { ac_try="$ac_link" | |
1824 | case "(($ac_try" in | |
1825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1826 | *) ac_try_echo=$ac_try;; | |
1827 | esac | |
1828 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1829 | $as_echo "$ac_try_echo"; } >&5 | |
1830 | (eval "$ac_link") 2>&5 | |
1831 | ac_status=$? | |
1832 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1833 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1834 | { { case "(($ac_try" in | |
1835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1836 | *) ac_try_echo=$ac_try;; | |
1837 | esac | |
1838 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1839 | $as_echo "$ac_try_echo"; } >&5 | |
1840 | (eval "$ac_try") 2>&5 | |
1841 | ac_status=$? | |
1842 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1843 | test $ac_status = 0; }; }; then : | |
1844 | ac_retval=0 | |
1845 | else | |
1846 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1847 | $as_echo "$as_me: failed program was:" >&5 | |
1848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1849 | ||
1850 | ac_retval=$ac_status | |
1851 | fi | |
1852 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1853 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1854 | as_fn_set_status $ac_retval | |
1855 | ||
1856 | } # ac_fn_c_try_run | |
1857 | ||
1858 | # ac_fn_c_check_func LINENO FUNC VAR | |
1859 | # ---------------------------------- | |
1860 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1861 | ac_fn_c_check_func () | |
1862 | { | |
1863 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1865 | $as_echo_n "checking for $2... " >&6; } | |
1866 | if eval \${$3+:} false; then : | |
1867 | $as_echo_n "(cached) " >&6 | |
1868 | else | |
1869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1870 | /* end confdefs.h. */ | |
1871 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1872 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1873 | #define $2 innocuous_$2 | |
1874 | ||
1875 | /* System header to define __stub macros and hopefully few prototypes, | |
1876 | which can conflict with char $2 (); below. | |
1877 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1878 | <limits.h> exists even on freestanding compilers. */ | |
1879 | ||
1880 | #ifdef __STDC__ | |
1881 | # include <limits.h> | |
1882 | #else | |
1883 | # include <assert.h> | |
1884 | #endif | |
1885 | ||
1886 | #undef $2 | |
1887 | ||
1888 | /* Override any GCC internal prototype to avoid an error. | |
1889 | Use char because int might match the return type of a GCC | |
1890 | builtin and then its argument prototype would still apply. */ | |
1891 | #ifdef __cplusplus | |
1892 | extern "C" | |
1893 | #endif | |
1894 | char $2 (); | |
1895 | /* The GNU C library defines this for functions which it implements | |
1896 | to always fail with ENOSYS. Some functions are actually named | |
1897 | something starting with __ and the normal name is an alias. */ | |
1898 | #if defined __stub_$2 || defined __stub___$2 | |
1899 | choke me | |
1900 | #endif | |
1901 | ||
1902 | int | |
1903 | main () | |
1904 | { | |
1905 | return $2 (); | |
1906 | ; | |
1907 | return 0; | |
1908 | } | |
1909 | _ACEOF | |
1910 | if ac_fn_c_try_link "$LINENO"; then : | |
1911 | eval "$3=yes" | |
1912 | else | |
1913 | eval "$3=no" | |
1914 | fi | |
1915 | rm -f core conftest.err conftest.$ac_objext \ | |
1916 | conftest$ac_exeext conftest.$ac_ext | |
1917 | fi | |
1918 | eval ac_res=\$$3 | |
1919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1920 | $as_echo "$ac_res" >&6; } | |
1921 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1922 | ||
1923 | } # ac_fn_c_check_func | |
1924 | ||
1925 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1926 | # ------------------------------------------------------- | |
1927 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1928 | # the include files in INCLUDES and setting the cache variable VAR | |
1929 | # accordingly. | |
1930 | ac_fn_c_check_header_mongrel () | |
1931 | { | |
1932 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1933 | if eval \${$3+:} false; then : | |
1934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1935 | $as_echo_n "checking for $2... " >&6; } | |
1936 | if eval \${$3+:} false; then : | |
1937 | $as_echo_n "(cached) " >&6 | |
1938 | fi | |
1939 | eval ac_res=\$$3 | |
1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1941 | $as_echo "$ac_res" >&6; } | |
1942 | else | |
1943 | # Is the header compilable? | |
1944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1945 | $as_echo_n "checking $2 usability... " >&6; } | |
1946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1947 | /* end confdefs.h. */ | |
1948 | $4 | |
1949 | #include <$2> | |
1950 | _ACEOF | |
1951 | if ac_fn_c_try_compile "$LINENO"; then : | |
1952 | ac_header_compiler=yes | |
1953 | else | |
1954 | ac_header_compiler=no | |
1955 | fi | |
1956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1958 | $as_echo "$ac_header_compiler" >&6; } | |
1959 | ||
1960 | # Is the header present? | |
1961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1962 | $as_echo_n "checking $2 presence... " >&6; } | |
1963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1964 | /* end confdefs.h. */ | |
1965 | #include <$2> | |
1966 | _ACEOF | |
1967 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1968 | ac_header_preproc=yes | |
1969 | else | |
1970 | ac_header_preproc=no | |
1971 | fi | |
1972 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1974 | $as_echo "$ac_header_preproc" >&6; } | |
1975 | ||
1976 | # So? What about this header? | |
1977 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1978 | yes:no: ) | |
1979 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1980 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1981 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1982 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1983 | ;; | |
1984 | no:yes:* ) | |
1985 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1986 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1987 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1988 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1990 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1991 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1992 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1993 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1994 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1995 | ;; | |
1996 | esac | |
1997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1998 | $as_echo_n "checking for $2... " >&6; } | |
1999 | if eval \${$3+:} false; then : | |
2000 | $as_echo_n "(cached) " >&6 | |
2001 | else | |
2002 | eval "$3=\$ac_header_compiler" | |
2003 | fi | |
2004 | eval ac_res=\$$3 | |
2005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2006 | $as_echo "$ac_res" >&6; } | |
2007 | fi | |
2008 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2009 | ||
2010 | } # ac_fn_c_check_header_mongrel | |
2011 | cat >config.log <<_ACEOF | |
2012 | This file contains any messages produced by compilers while | |
2013 | running configure, to aid debugging if configure makes a mistake. | |
2014 | ||
d177712e | 2015 | It was created by zfs $as_me 0.6.5.9, which was |
0bd31011 TG |
2016 | generated by GNU Autoconf 2.69. Invocation command line was |
2017 | ||
2018 | $ $0 $@ | |
2019 | ||
2020 | _ACEOF | |
2021 | exec 5>>config.log | |
2022 | { | |
2023 | cat <<_ASUNAME | |
2024 | ## --------- ## | |
2025 | ## Platform. ## | |
2026 | ## --------- ## | |
2027 | ||
2028 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2029 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2030 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2031 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2032 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2033 | ||
2034 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2035 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2036 | ||
2037 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2038 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2039 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2040 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2041 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2042 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2043 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2044 | ||
2045 | _ASUNAME | |
2046 | ||
2047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2048 | for as_dir in $PATH | |
2049 | do | |
2050 | IFS=$as_save_IFS | |
2051 | test -z "$as_dir" && as_dir=. | |
2052 | $as_echo "PATH: $as_dir" | |
2053 | done | |
2054 | IFS=$as_save_IFS | |
2055 | ||
2056 | } >&5 | |
2057 | ||
2058 | cat >&5 <<_ACEOF | |
2059 | ||
2060 | ||
2061 | ## ----------- ## | |
2062 | ## Core tests. ## | |
2063 | ## ----------- ## | |
2064 | ||
2065 | _ACEOF | |
2066 | ||
2067 | ||
2068 | # Keep a trace of the command line. | |
2069 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2070 | # Strip out --silent because we don't want to record it for future runs. | |
2071 | # Also quote any args containing shell meta-characters. | |
2072 | # Make two passes to allow for proper duplicate-argument suppression. | |
2073 | ac_configure_args= | |
2074 | ac_configure_args0= | |
2075 | ac_configure_args1= | |
2076 | ac_must_keep_next=false | |
2077 | for ac_pass in 1 2 | |
2078 | do | |
2079 | for ac_arg | |
2080 | do | |
2081 | case $ac_arg in | |
2082 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2083 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2084 | | -silent | --silent | --silen | --sile | --sil) | |
2085 | continue ;; | |
2086 | *\'*) | |
2087 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2088 | esac | |
2089 | case $ac_pass in | |
2090 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2091 | 2) | |
2092 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2093 | if test $ac_must_keep_next = true; then | |
2094 | ac_must_keep_next=false # Got value, back to normal. | |
2095 | else | |
2096 | case $ac_arg in | |
2097 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2098 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2099 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2100 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2101 | case "$ac_configure_args0 " in | |
2102 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2103 | esac | |
2104 | ;; | |
2105 | -* ) ac_must_keep_next=true ;; | |
2106 | esac | |
2107 | fi | |
2108 | as_fn_append ac_configure_args " '$ac_arg'" | |
2109 | ;; | |
2110 | esac | |
2111 | done | |
2112 | done | |
2113 | { ac_configure_args0=; unset ac_configure_args0;} | |
2114 | { ac_configure_args1=; unset ac_configure_args1;} | |
2115 | ||
2116 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2117 | # config.log. We remove comments because anyway the quotes in there | |
2118 | # would cause problems or look ugly. | |
2119 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2120 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2121 | trap 'exit_status=$? | |
2122 | # Save into config.log some information that might help in debugging. | |
2123 | { | |
2124 | echo | |
2125 | ||
2126 | $as_echo "## ---------------- ## | |
2127 | ## Cache variables. ## | |
2128 | ## ---------------- ##" | |
2129 | echo | |
2130 | # The following way of writing the cache mishandles newlines in values, | |
2131 | ( | |
2132 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2133 | eval ac_val=\$$ac_var | |
2134 | case $ac_val in #( | |
2135 | *${as_nl}*) | |
2136 | case $ac_var in #( | |
2137 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2138 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2139 | esac | |
2140 | case $ac_var in #( | |
2141 | _ | IFS | as_nl) ;; #( | |
2142 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2143 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2144 | esac ;; | |
2145 | esac | |
2146 | done | |
2147 | (set) 2>&1 | | |
2148 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2149 | *${as_nl}ac_space=\ *) | |
2150 | sed -n \ | |
2151 | "s/'\''/'\''\\\\'\'''\''/g; | |
2152 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2153 | ;; #( | |
2154 | *) | |
2155 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2156 | ;; | |
2157 | esac | | |
2158 | sort | |
2159 | ) | |
2160 | echo | |
2161 | ||
2162 | $as_echo "## ----------------- ## | |
2163 | ## Output variables. ## | |
2164 | ## ----------------- ##" | |
2165 | echo | |
2166 | for ac_var in $ac_subst_vars | |
2167 | do | |
2168 | eval ac_val=\$$ac_var | |
2169 | case $ac_val in | |
2170 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2171 | esac | |
2172 | $as_echo "$ac_var='\''$ac_val'\''" | |
2173 | done | sort | |
2174 | echo | |
2175 | ||
2176 | if test -n "$ac_subst_files"; then | |
2177 | $as_echo "## ------------------- ## | |
2178 | ## File substitutions. ## | |
2179 | ## ------------------- ##" | |
2180 | echo | |
2181 | for ac_var in $ac_subst_files | |
2182 | do | |
2183 | eval ac_val=\$$ac_var | |
2184 | case $ac_val in | |
2185 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2186 | esac | |
2187 | $as_echo "$ac_var='\''$ac_val'\''" | |
2188 | done | sort | |
2189 | echo | |
2190 | fi | |
2191 | ||
2192 | if test -s confdefs.h; then | |
2193 | $as_echo "## ----------- ## | |
2194 | ## confdefs.h. ## | |
2195 | ## ----------- ##" | |
2196 | echo | |
2197 | cat confdefs.h | |
2198 | echo | |
2199 | fi | |
2200 | test "$ac_signal" != 0 && | |
2201 | $as_echo "$as_me: caught signal $ac_signal" | |
2202 | $as_echo "$as_me: exit $exit_status" | |
2203 | } >&5 | |
2204 | rm -f core *.core core.conftest.* && | |
2205 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2206 | exit $exit_status | |
2207 | ' 0 | |
2208 | for ac_signal in 1 2 13 15; do | |
2209 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2210 | done | |
2211 | ac_signal=0 | |
2212 | ||
2213 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2214 | rm -f -r conftest* confdefs.h | |
2215 | ||
2216 | $as_echo "/* confdefs.h */" > confdefs.h | |
2217 | ||
2218 | # Predefined preprocessor variables. | |
2219 | ||
2220 | cat >>confdefs.h <<_ACEOF | |
2221 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2222 | _ACEOF | |
2223 | ||
2224 | cat >>confdefs.h <<_ACEOF | |
2225 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2226 | _ACEOF | |
2227 | ||
2228 | cat >>confdefs.h <<_ACEOF | |
2229 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2230 | _ACEOF | |
2231 | ||
2232 | cat >>confdefs.h <<_ACEOF | |
2233 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2234 | _ACEOF | |
2235 | ||
2236 | cat >>confdefs.h <<_ACEOF | |
2237 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2238 | _ACEOF | |
2239 | ||
2240 | cat >>confdefs.h <<_ACEOF | |
2241 | #define PACKAGE_URL "$PACKAGE_URL" | |
2242 | _ACEOF | |
2243 | ||
2244 | ||
2245 | # Let the site file select an alternate cache file if it wants to. | |
2246 | # Prefer an explicitly selected file to automatically selected ones. | |
2247 | ac_site_file1=NONE | |
2248 | ac_site_file2=NONE | |
2249 | if test -n "$CONFIG_SITE"; then | |
2250 | # We do not want a PATH search for config.site. | |
2251 | case $CONFIG_SITE in #(( | |
2252 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2253 | */*) ac_site_file1=$CONFIG_SITE;; | |
2254 | *) ac_site_file1=./$CONFIG_SITE;; | |
2255 | esac | |
2256 | elif test "x$prefix" != xNONE; then | |
2257 | ac_site_file1=$prefix/share/config.site | |
2258 | ac_site_file2=$prefix/etc/config.site | |
2259 | else | |
2260 | ac_site_file1=$ac_default_prefix/share/config.site | |
2261 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2262 | fi | |
2263 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2264 | do | |
2265 | test "x$ac_site_file" = xNONE && continue | |
2266 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2267 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2268 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2269 | sed 's/^/| /' "$ac_site_file" >&5 | |
2270 | . "$ac_site_file" \ | |
2271 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2272 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2273 | as_fn_error $? "failed to load site script $ac_site_file | |
2274 | See \`config.log' for more details" "$LINENO" 5; } | |
2275 | fi | |
2276 | done | |
2277 | ||
2278 | if test -r "$cache_file"; then | |
2279 | # Some versions of bash will fail to source /dev/null (special files | |
2280 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2281 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2282 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2283 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2284 | case $cache_file in | |
2285 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2286 | *) . "./$cache_file";; | |
2287 | esac | |
2288 | fi | |
2289 | else | |
2290 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2291 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2292 | >$cache_file | |
2293 | fi | |
2294 | ||
2295 | # Check that the precious variables saved in the cache have kept the same | |
2296 | # value. | |
2297 | ac_cache_corrupted=false | |
2298 | for ac_var in $ac_precious_vars; do | |
2299 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2300 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2301 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2302 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2303 | case $ac_old_set,$ac_new_set in | |
2304 | set,) | |
2305 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2306 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2307 | ac_cache_corrupted=: ;; | |
2308 | ,set) | |
2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2310 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2311 | ac_cache_corrupted=: ;; | |
2312 | ,);; | |
2313 | *) | |
2314 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2315 | # differences in whitespace do not lead to failure. | |
2316 | ac_old_val_w=`echo x $ac_old_val` | |
2317 | ac_new_val_w=`echo x $ac_new_val` | |
2318 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2319 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2320 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2321 | ac_cache_corrupted=: | |
2322 | else | |
2323 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2324 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2325 | eval $ac_var=\$ac_old_val | |
2326 | fi | |
2327 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2328 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2330 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2331 | fi;; | |
2332 | esac | |
2333 | # Pass precious variables to config.status. | |
2334 | if test "$ac_new_set" = set; then | |
2335 | case $ac_new_val in | |
2336 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2337 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2338 | esac | |
2339 | case " $ac_configure_args " in | |
2340 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2341 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2342 | esac | |
2343 | fi | |
2344 | done | |
2345 | if $ac_cache_corrupted; then | |
2346 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2347 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2348 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2349 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2350 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2351 | fi | |
2352 | ## -------------------- ## | |
2353 | ## Main body of script. ## | |
2354 | ## -------------------- ## | |
2355 | ||
2356 | ac_ext=c | |
2357 | ac_cpp='$CPP $CPPFLAGS' | |
2358 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2359 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2360 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2361 | ||
2362 | ||
2363 | ac_ext=c | |
2364 | ac_cpp='$CPP $CPPFLAGS' | |
2365 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2366 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2367 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2368 | ||
2369 | ||
2370 | ||
2371 | ||
2372 | ||
2373 | for ac_prog in gawk mawk nawk awk | |
2374 | do | |
2375 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2376 | set dummy $ac_prog; ac_word=$2 | |
2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2378 | $as_echo_n "checking for $ac_word... " >&6; } | |
2379 | if ${ac_cv_prog_AWK+:} false; then : | |
2380 | $as_echo_n "(cached) " >&6 | |
2381 | else | |
2382 | if test -n "$AWK"; then | |
2383 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2384 | else | |
2385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2386 | for as_dir in $PATH | |
2387 | do | |
2388 | IFS=$as_save_IFS | |
2389 | test -z "$as_dir" && as_dir=. | |
2390 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2392 | ac_cv_prog_AWK="$ac_prog" | |
2393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2394 | break 2 | |
2395 | fi | |
2396 | done | |
2397 | done | |
2398 | IFS=$as_save_IFS | |
2399 | ||
2400 | fi | |
2401 | fi | |
2402 | AWK=$ac_cv_prog_AWK | |
2403 | if test -n "$AWK"; then | |
2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2405 | $as_echo "$AWK" >&6; } | |
2406 | else | |
2407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2408 | $as_echo "no" >&6; } | |
2409 | fi | |
2410 | ||
2411 | ||
2412 | test -n "$AWK" && break | |
2413 | done | |
2414 | ||
2415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5 | |
2416 | $as_echo_n "checking metadata... " >&6; } | |
2417 | ||
2418 | META="$srcdir/META" | |
2419 | _zfs_ac_meta_type="none" | |
2420 | if test -f "$META"; then | |
2421 | _zfs_ac_meta_type="META file" | |
2422 | _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null) | |
2423 | ||
2424 | ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`; | |
2425 | if test -n "$ZFS_META_NAME"; then | |
2426 | ||
2427 | cat >>confdefs.h <<_ACEOF | |
2428 | #define ZFS_META_NAME "$ZFS_META_NAME" | |
2429 | _ACEOF | |
2430 | ||
2431 | ||
2432 | fi | |
2433 | ||
2434 | ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`; | |
2435 | if test -n "$ZFS_META_VERSION"; then | |
2436 | ||
2437 | cat >>confdefs.h <<_ACEOF | |
2438 | #define ZFS_META_VERSION "$ZFS_META_VERSION" | |
2439 | _ACEOF | |
2440 | ||
2441 | ||
2442 | fi | |
2443 | ||
2444 | if test -n "${_dpkg_parsechangelog}"; then | |
2445 | _dpkg_version=$(echo "${_dpkg_parsechangelog}" \ | |
2446 | | $AWK '$1 == "Version:" { print $2; }' \ | |
2447 | | cut -d- -f1) | |
2448 | if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then | |
2449 | as_fn_error $? " | |
2450 | *** Version $ZFS_META_VERSION in the META file is different than | |
2451 | *** version $_dpkg_version in the debian/changelog file. DKMS and DEB | |
2452 | *** packaging require that these files have the same version. | |
2453 | " "$LINENO" 5 | |
2454 | fi | |
2455 | fi | |
2456 | ||
2457 | ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`; | |
2458 | ||
2459 | if test -n "${_dpkg_parsechangelog}"; then | |
2460 | _dpkg_release=$(echo "${_dpkg_parsechangelog}" \ | |
2461 | | $AWK '$1 == "Version:" { print $2; }' \ | |
2462 | | cut -d- -f2-) | |
2463 | if test -n "${_dpkg_release}"; then | |
2464 | ZFS_META_RELEASE=${_dpkg_release} | |
2465 | _zfs_ac_meta_type="dpkg-parsechangelog" | |
2466 | fi | |
2467 | elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then | |
2468 | _match="${ZFS_META_NAME}-${ZFS_META_VERSION}" | |
2469 | _alias=$(git describe --match=${_match} 2>/dev/null) | |
2470 | _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g') | |
2471 | if test -n "${_release}"; then | |
2472 | ZFS_META_RELEASE=${_release} | |
2473 | _zfs_ac_meta_type="git describe" | |
2474 | fi | |
2475 | fi | |
2476 | ||
2477 | if test -n "$ZFS_META_RELEASE"; then | |
2478 | ||
2479 | cat >>confdefs.h <<_ACEOF | |
2480 | #define ZFS_META_RELEASE "$ZFS_META_RELEASE" | |
2481 | _ACEOF | |
2482 | ||
2483 | ||
2484 | ||
2485 | RELEASE="$ZFS_META_RELEASE" | |
2486 | ||
2487 | fi | |
2488 | ||
2489 | ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`; | |
2490 | if test -n "$ZFS_META_LICENSE"; then | |
2491 | ||
2492 | cat >>confdefs.h <<_ACEOF | |
2493 | #define ZFS_META_LICENSE "$ZFS_META_LICENSE" | |
2494 | _ACEOF | |
2495 | ||
2496 | ||
2497 | fi | |
2498 | ||
2499 | if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then | |
2500 | ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION" | |
2501 | test -n "$ZFS_META_RELEASE" && | |
2502 | ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE" | |
2503 | ||
2504 | cat >>confdefs.h <<_ACEOF | |
2505 | #define ZFS_META_ALIAS "$ZFS_META_ALIAS" | |
2506 | _ACEOF | |
2507 | ||
2508 | ||
2509 | fi | |
2510 | ||
2511 | ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`; | |
2512 | if test -n "$ZFS_META_DATA"; then | |
2513 | ||
2514 | cat >>confdefs.h <<_ACEOF | |
2515 | #define ZFS_META_DATA "$ZFS_META_DATA" | |
2516 | _ACEOF | |
2517 | ||
2518 | ||
2519 | fi | |
2520 | ||
2521 | ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`; | |
2522 | if test -n "$ZFS_META_AUTHOR"; then | |
2523 | ||
2524 | cat >>confdefs.h <<_ACEOF | |
2525 | #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR" | |
2526 | _ACEOF | |
2527 | ||
2528 | ||
2529 | fi | |
2530 | ||
2531 | ||
2532 | ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`; | |
2533 | ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`; | |
2534 | ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`; | |
2535 | if test -n "$ZFS_META_LT_CURRENT" \ | |
2536 | -o -n "$ZFS_META_LT_REVISION" \ | |
2537 | -o -n "$ZFS_META_LT_AGE"; then | |
2538 | test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0" | |
2539 | test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0" | |
2540 | test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0" | |
2541 | ||
2542 | cat >>confdefs.h <<_ACEOF | |
2543 | #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT" | |
2544 | _ACEOF | |
2545 | ||
2546 | ||
2547 | cat >>confdefs.h <<_ACEOF | |
2548 | #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION" | |
2549 | _ACEOF | |
2550 | ||
2551 | ||
2552 | cat >>confdefs.h <<_ACEOF | |
2553 | #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE" | |
2554 | _ACEOF | |
2555 | ||
2556 | ||
2557 | ||
2558 | ||
2559 | fi | |
2560 | fi | |
2561 | ||
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5 | |
2563 | $as_echo "$_zfs_ac_meta_type" >&6; } | |
2564 | ||
2565 | ||
2566 | ac_aux_dir= | |
2567 | for ac_dir in config "$srcdir"/config; do | |
2568 | if test -f "$ac_dir/install-sh"; then | |
2569 | ac_aux_dir=$ac_dir | |
2570 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2571 | break | |
2572 | elif test -f "$ac_dir/install.sh"; then | |
2573 | ac_aux_dir=$ac_dir | |
2574 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2575 | break | |
2576 | elif test -f "$ac_dir/shtool"; then | |
2577 | ac_aux_dir=$ac_dir | |
2578 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2579 | break | |
2580 | fi | |
2581 | done | |
2582 | if test -z "$ac_aux_dir"; then | |
2583 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 | |
2584 | fi | |
2585 | ||
2586 | # These three variables are undocumented and unsupported, | |
2587 | # and are intended to be withdrawn in a future Autoconf release. | |
2588 | # They can cause serious problems if a builder's source tree is in a directory | |
2589 | # whose full name contains unusual characters. | |
2590 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2591 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2592 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2593 | ||
2594 | ||
2595 | ||
2596 | # Make sure we can run config.sub. | |
2597 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2598 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2599 | ||
2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2601 | $as_echo_n "checking build system type... " >&6; } | |
2602 | if ${ac_cv_build+:} false; then : | |
2603 | $as_echo_n "(cached) " >&6 | |
2604 | else | |
2605 | ac_build_alias=$build_alias | |
2606 | test "x$ac_build_alias" = x && | |
2607 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2608 | test "x$ac_build_alias" = x && | |
2609 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2610 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2611 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2612 | ||
2613 | fi | |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2615 | $as_echo "$ac_cv_build" >&6; } | |
2616 | case $ac_cv_build in | |
2617 | *-*-*) ;; | |
2618 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2619 | esac | |
2620 | build=$ac_cv_build | |
2621 | ac_save_IFS=$IFS; IFS='-' | |
2622 | set x $ac_cv_build | |
2623 | shift | |
2624 | build_cpu=$1 | |
2625 | build_vendor=$2 | |
2626 | shift; shift | |
2627 | # Remember, the first character of IFS is used to create $*, | |
2628 | # except with old shells: | |
2629 | build_os=$* | |
2630 | IFS=$ac_save_IFS | |
2631 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2632 | ||
2633 | ||
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2635 | $as_echo_n "checking host system type... " >&6; } | |
2636 | if ${ac_cv_host+:} false; then : | |
2637 | $as_echo_n "(cached) " >&6 | |
2638 | else | |
2639 | if test "x$host_alias" = x; then | |
2640 | ac_cv_host=$ac_cv_build | |
2641 | else | |
2642 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2643 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2644 | fi | |
2645 | ||
2646 | fi | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2648 | $as_echo "$ac_cv_host" >&6; } | |
2649 | case $ac_cv_host in | |
2650 | *-*-*) ;; | |
2651 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2652 | esac | |
2653 | host=$ac_cv_host | |
2654 | ac_save_IFS=$IFS; IFS='-' | |
2655 | set x $ac_cv_host | |
2656 | shift | |
2657 | host_cpu=$1 | |
2658 | host_vendor=$2 | |
2659 | shift; shift | |
2660 | # Remember, the first character of IFS is used to create $*, | |
2661 | # except with old shells: | |
2662 | host_os=$* | |
2663 | IFS=$ac_save_IFS | |
2664 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2665 | ||
2666 | ||
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2668 | $as_echo_n "checking target system type... " >&6; } | |
2669 | if ${ac_cv_target+:} false; then : | |
2670 | $as_echo_n "(cached) " >&6 | |
2671 | else | |
2672 | if test "x$target_alias" = x; then | |
2673 | ac_cv_target=$ac_cv_host | |
2674 | else | |
2675 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2676 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2677 | fi | |
2678 | ||
2679 | fi | |
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2681 | $as_echo "$ac_cv_target" >&6; } | |
2682 | case $ac_cv_target in | |
2683 | *-*-*) ;; | |
2684 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2685 | esac | |
2686 | target=$ac_cv_target | |
2687 | ac_save_IFS=$IFS; IFS='-' | |
2688 | set x $ac_cv_target | |
2689 | shift | |
2690 | target_cpu=$1 | |
2691 | target_vendor=$2 | |
2692 | shift; shift | |
2693 | # Remember, the first character of IFS is used to create $*, | |
2694 | # except with old shells: | |
2695 | target_os=$* | |
2696 | IFS=$ac_save_IFS | |
2697 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2698 | ||
2699 | ||
2700 | # The aliases save the names the user supplied, while $host etc. | |
2701 | # will get canonicalized. | |
2702 | test -n "$target_alias" && | |
2703 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2704 | NONENONEs,x,x, && | |
2705 | program_prefix=${target_alias}- | |
2706 | ||
2707 | ||
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2709 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2710 | # Check whether --enable-maintainer-mode was given. | |
2711 | if test "${enable_maintainer_mode+set}" = set; then : | |
2712 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2713 | else | |
2714 | USE_MAINTAINER_MODE=no | |
2715 | fi | |
2716 | ||
2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
2718 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2719 | if test $USE_MAINTAINER_MODE = yes; then | |
2720 | MAINTAINER_MODE_TRUE= | |
2721 | MAINTAINER_MODE_FALSE='#' | |
2722 | else | |
2723 | MAINTAINER_MODE_TRUE='#' | |
2724 | MAINTAINER_MODE_FALSE= | |
2725 | fi | |
2726 | ||
2727 | MAINT=$MAINTAINER_MODE_TRUE | |
2728 | ||
2729 | ||
2730 | # Check whether --enable-silent-rules was given. | |
2731 | if test "${enable_silent_rules+set}" = set; then : | |
2732 | enableval=$enable_silent_rules; | |
2733 | fi | |
2734 | ||
2735 | case $enable_silent_rules in # ((( | |
2736 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2737 | no) AM_DEFAULT_VERBOSITY=1;; | |
2738 | *) AM_DEFAULT_VERBOSITY=0;; | |
2739 | esac | |
2740 | am_make=${MAKE-make} | |
2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2742 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2743 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2744 | $as_echo_n "(cached) " >&6 | |
2745 | else | |
2746 | if $as_echo 'TRUE=$(BAR$(V)) | |
2747 | BAR0=false | |
2748 | BAR1=true | |
2749 | V=1 | |
2750 | am__doit: | |
2751 | @$(TRUE) | |
2752 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2753 | am_cv_make_support_nested_variables=yes | |
2754 | else | |
2755 | am_cv_make_support_nested_variables=no | |
2756 | fi | |
2757 | fi | |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2759 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2760 | if test $am_cv_make_support_nested_variables = yes; then | |
2761 | AM_V='$(V)' | |
2762 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2763 | else | |
2764 | AM_V=$AM_DEFAULT_VERBOSITY | |
2765 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2766 | fi | |
2767 | AM_BACKSLASH='\' | |
2768 | ||
2769 | am__api_version='1.15' | |
2770 | ||
2771 | # Find a good install program. We prefer a C program (faster), | |
2772 | # so one script is as good as another. But avoid the broken or | |
2773 | # incompatible versions: | |
2774 | # SysV /etc/install, /usr/sbin/install | |
2775 | # SunOS /usr/etc/install | |
2776 | # IRIX /sbin/install | |
2777 | # AIX /bin/install | |
2778 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2779 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2780 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2781 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2782 | # OS/2's system install, which has a completely different semantic | |
2783 | # ./install, which can be erroneously created by make from ./install.sh. | |
2784 | # Reject install programs that cannot install multiple files. | |
2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2786 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2787 | if test -z "$INSTALL"; then | |
2788 | if ${ac_cv_path_install+:} false; then : | |
2789 | $as_echo_n "(cached) " >&6 | |
2790 | else | |
2791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2792 | for as_dir in $PATH | |
2793 | do | |
2794 | IFS=$as_save_IFS | |
2795 | test -z "$as_dir" && as_dir=. | |
2796 | # Account for people who put trailing slashes in PATH elements. | |
2797 | case $as_dir/ in #(( | |
2798 | ./ | .// | /[cC]/* | \ | |
2799 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2800 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2801 | /usr/ucb/* ) ;; | |
2802 | *) | |
2803 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2804 | # Don't use installbsd from OSF since it installs stuff as root | |
2805 | # by default. | |
2806 | for ac_prog in ginstall scoinst install; do | |
2807 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2808 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2809 | if test $ac_prog = install && | |
2810 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2811 | # AIX install. It has an incompatible calling convention. | |
2812 | : | |
2813 | elif test $ac_prog = install && | |
2814 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2815 | # program-specific install script used by HP pwplus--don't use. | |
2816 | : | |
2817 | else | |
2818 | rm -rf conftest.one conftest.two conftest.dir | |
2819 | echo one > conftest.one | |
2820 | echo two > conftest.two | |
2821 | mkdir conftest.dir | |
2822 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2823 | test -s conftest.one && test -s conftest.two && | |
2824 | test -s conftest.dir/conftest.one && | |
2825 | test -s conftest.dir/conftest.two | |
2826 | then | |
2827 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2828 | break 3 | |
2829 | fi | |
2830 | fi | |
2831 | fi | |
2832 | done | |
2833 | done | |
2834 | ;; | |
2835 | esac | |
2836 | ||
2837 | done | |
2838 | IFS=$as_save_IFS | |
2839 | ||
2840 | rm -rf conftest.one conftest.two conftest.dir | |
2841 | ||
2842 | fi | |
2843 | if test "${ac_cv_path_install+set}" = set; then | |
2844 | INSTALL=$ac_cv_path_install | |
2845 | else | |
2846 | # As a last resort, use the slow shell script. Don't cache a | |
2847 | # value for INSTALL within a source directory, because that will | |
2848 | # break other packages using the cache if that directory is | |
2849 | # removed, or if the value is a relative name. | |
2850 | INSTALL=$ac_install_sh | |
2851 | fi | |
2852 | fi | |
2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2854 | $as_echo "$INSTALL" >&6; } | |
2855 | ||
2856 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2857 | # It thinks the first close brace ends the variable substitution. | |
2858 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2859 | ||
2860 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2861 | ||
2862 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2863 | ||
2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2865 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2866 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2867 | # name. Accept space and tab only in the latter. | |
2868 | am_lf=' | |
2869 | ' | |
2870 | case `pwd` in | |
2871 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2872 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2873 | esac | |
2874 | case $srcdir in | |
2875 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2876 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2877 | esac | |
2878 | ||
2879 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2880 | # arguments. Must try -L first in case configure is actually a | |
2881 | # symlink; some systems play weird games with the mod time of symlinks | |
2882 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2883 | # directory). | |
2884 | if ( | |
2885 | am_has_slept=no | |
2886 | for am_try in 1 2; do | |
2887 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2888 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2889 | if test "$*" = "X"; then | |
2890 | # -L didn't work. | |
2891 | set X `ls -t "$srcdir/configure" conftest.file` | |
2892 | fi | |
2893 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2894 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2895 | ||
2896 | # If neither matched, then we have a broken ls. This can happen | |
2897 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2898 | # broken ls alias from the environment. This has actually | |
2899 | # happened. Such a system could not be considered "sane". | |
2900 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2901 | alias in your environment" "$LINENO" 5 | |
2902 | fi | |
2903 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2904 | break | |
2905 | fi | |
2906 | # Just in case. | |
2907 | sleep 1 | |
2908 | am_has_slept=yes | |
2909 | done | |
2910 | test "$2" = conftest.file | |
2911 | ) | |
2912 | then | |
2913 | # Ok. | |
2914 | : | |
2915 | else | |
2916 | as_fn_error $? "newly created file is older than distributed files! | |
2917 | Check your system clock" "$LINENO" 5 | |
2918 | fi | |
2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2920 | $as_echo "yes" >&6; } | |
2921 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2922 | # generated files are strictly newer. | |
2923 | am_sleep_pid= | |
2924 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2925 | ( sleep 1 ) & | |
2926 | am_sleep_pid=$! | |
2927 | fi | |
2928 | ||
2929 | rm -f conftest.file | |
2930 | ||
2931 | test "$program_prefix" != NONE && | |
2932 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2933 | # Use a double $ so make ignores it. | |
2934 | test "$program_suffix" != NONE && | |
2935 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2936 | # Double any \ or $. | |
2937 | # By default was `s,x,x', remove it if useless. | |
2938 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2939 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2940 | ||
2941 | # Expand $ac_aux_dir to an absolute path. | |
2942 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2943 | ||
2944 | if test x"${MISSING+set}" != xset; then | |
2945 | case $am_aux_dir in | |
2946 | *\ * | *\ *) | |
2947 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2948 | *) | |
2949 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2950 | esac | |
2951 | fi | |
2952 | # Use eval to expand $SHELL | |
2953 | if eval "$MISSING --is-lightweight"; then | |
2954 | am_missing_run="$MISSING " | |
2955 | else | |
2956 | am_missing_run= | |
2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2958 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2959 | fi | |
2960 | ||
2961 | if test x"${install_sh+set}" != xset; then | |
2962 | case $am_aux_dir in | |
2963 | *\ * | *\ *) | |
2964 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2965 | *) | |
2966 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2967 | esac | |
2968 | fi | |
2969 | ||
2970 | # Installed binaries are usually stripped using 'strip' when the user | |
2971 | # run "make install-strip". However 'strip' might not be the right | |
2972 | # tool to use in cross-compilation environments, therefore Automake | |
2973 | # will honor the 'STRIP' environment variable to overrule this program. | |
2974 | if test "$cross_compiling" != no; then | |
2975 | if test -n "$ac_tool_prefix"; then | |
2976 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2977 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2979 | $as_echo_n "checking for $ac_word... " >&6; } | |
2980 | if ${ac_cv_prog_STRIP+:} false; then : | |
2981 | $as_echo_n "(cached) " >&6 | |
2982 | else | |
2983 | if test -n "$STRIP"; then | |
2984 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2985 | else | |
2986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2987 | for as_dir in $PATH | |
2988 | do | |
2989 | IFS=$as_save_IFS | |
2990 | test -z "$as_dir" && as_dir=. | |
2991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2992 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2993 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2995 | break 2 | |
2996 | fi | |
2997 | done | |
2998 | done | |
2999 | IFS=$as_save_IFS | |
3000 | ||
3001 | fi | |
3002 | fi | |
3003 | STRIP=$ac_cv_prog_STRIP | |
3004 | if test -n "$STRIP"; then | |
3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3006 | $as_echo "$STRIP" >&6; } | |
3007 | else | |
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3009 | $as_echo "no" >&6; } | |
3010 | fi | |
3011 | ||
3012 | ||
3013 | fi | |
3014 | if test -z "$ac_cv_prog_STRIP"; then | |
3015 | ac_ct_STRIP=$STRIP | |
3016 | # Extract the first word of "strip", so it can be a program name with args. | |
3017 | set dummy strip; ac_word=$2 | |
3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3019 | $as_echo_n "checking for $ac_word... " >&6; } | |
3020 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
3021 | $as_echo_n "(cached) " >&6 | |
3022 | else | |
3023 | if test -n "$ac_ct_STRIP"; then | |
3024 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3025 | else | |
3026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3027 | for as_dir in $PATH | |
3028 | do | |
3029 | IFS=$as_save_IFS | |
3030 | test -z "$as_dir" && as_dir=. | |
3031 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3032 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3033 | ac_cv_prog_ac_ct_STRIP="strip" | |
3034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3035 | break 2 | |
3036 | fi | |
3037 | done | |
3038 | done | |
3039 | IFS=$as_save_IFS | |
3040 | ||
3041 | fi | |
3042 | fi | |
3043 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3044 | if test -n "$ac_ct_STRIP"; then | |
3045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3046 | $as_echo "$ac_ct_STRIP" >&6; } | |
3047 | else | |
3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3049 | $as_echo "no" >&6; } | |
3050 | fi | |
3051 | ||
3052 | if test "x$ac_ct_STRIP" = x; then | |
3053 | STRIP=":" | |
3054 | else | |
3055 | case $cross_compiling:$ac_tool_warned in | |
3056 | yes:) | |
3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3058 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3059 | ac_tool_warned=yes ;; | |
3060 | esac | |
3061 | STRIP=$ac_ct_STRIP | |
3062 | fi | |
3063 | else | |
3064 | STRIP="$ac_cv_prog_STRIP" | |
3065 | fi | |
3066 | ||
3067 | fi | |
3068 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3069 | ||
3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3071 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3072 | if test -z "$MKDIR_P"; then | |
3073 | if ${ac_cv_path_mkdir+:} false; then : | |
3074 | $as_echo_n "(cached) " >&6 | |
3075 | else | |
3076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3077 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3078 | do | |
3079 | IFS=$as_save_IFS | |
3080 | test -z "$as_dir" && as_dir=. | |
3081 | for ac_prog in mkdir gmkdir; do | |
3082 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3083 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
3084 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3085 | 'mkdir (GNU coreutils) '* | \ | |
3086 | 'mkdir (coreutils) '* | \ | |
3087 | 'mkdir (fileutils) '4.1*) | |
3088 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3089 | break 3;; | |
3090 | esac | |
3091 | done | |
3092 | done | |
3093 | done | |
3094 | IFS=$as_save_IFS | |
3095 | ||
3096 | fi | |
3097 | ||
3098 | test -d ./--version && rmdir ./--version | |
3099 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3100 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3101 | else | |
3102 | # As a last resort, use the slow shell script. Don't cache a | |
3103 | # value for MKDIR_P within a source directory, because that will | |
3104 | # break other packages using the cache if that directory is | |
3105 | # removed, or if the value is a relative name. | |
3106 | MKDIR_P="$ac_install_sh -d" | |
3107 | fi | |
3108 | fi | |
3109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3110 | $as_echo "$MKDIR_P" >&6; } | |
3111 | ||
3112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3113 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3114 | set x ${MAKE-make} | |
3115 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3116 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
3117 | $as_echo_n "(cached) " >&6 | |
3118 | else | |
3119 | cat >conftest.make <<\_ACEOF | |
3120 | SHELL = /bin/sh | |
3121 | all: | |
3122 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3123 | _ACEOF | |
3124 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3125 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3126 | *@@@%%%=?*=@@@%%%*) | |
3127 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3128 | *) | |
3129 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3130 | esac | |
3131 | rm -f conftest.make | |
3132 | fi | |
3133 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3135 | $as_echo "yes" >&6; } | |
3136 | SET_MAKE= | |
3137 | else | |
3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3139 | $as_echo "no" >&6; } | |
3140 | SET_MAKE="MAKE=${MAKE-make}" | |
3141 | fi | |
3142 | ||
3143 | rm -rf .tst 2>/dev/null | |
3144 | mkdir .tst 2>/dev/null | |
3145 | if test -d .tst; then | |
3146 | am__leading_dot=. | |
3147 | else | |
3148 | am__leading_dot=_ | |
3149 | fi | |
3150 | rmdir .tst 2>/dev/null | |
3151 | ||
3152 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3153 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3154 | # is not polluted with repeated "-I." | |
3155 | am__isrc=' -I$(srcdir)' | |
3156 | # test to see if srcdir already configured | |
3157 | if test -f $srcdir/config.status; then | |
3158 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3159 | fi | |
3160 | fi | |
3161 | ||
3162 | # test whether we have cygpath | |
3163 | if test -z "$CYGPATH_W"; then | |
3164 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3165 | CYGPATH_W='cygpath -w' | |
3166 | else | |
3167 | CYGPATH_W=echo | |
3168 | fi | |
3169 | fi | |
3170 | ||
3171 | ||
3172 | # Define the identity of the package. | |
3173 | PACKAGE='zfs' | |
d177712e | 3174 | VERSION='0.6.5.9' |
0bd31011 TG |
3175 | |
3176 | ||
3177 | cat >>confdefs.h <<_ACEOF | |
3178 | #define PACKAGE "$PACKAGE" | |
3179 | _ACEOF | |
3180 | ||
3181 | ||
3182 | cat >>confdefs.h <<_ACEOF | |
3183 | #define VERSION "$VERSION" | |
3184 | _ACEOF | |
3185 | ||
3186 | # Some tools Automake needs. | |
3187 | ||
3188 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3189 | ||
3190 | ||
3191 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3192 | ||
3193 | ||
3194 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3195 | ||
3196 | ||
3197 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3198 | ||
3199 | ||
3200 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3201 | ||
3202 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3203 | # dies out for good. For more background, see: | |
3204 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3205 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3206 | mkdir_p='$(MKDIR_P)' | |
3207 | ||
3208 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3209 | # system "awk" is bad on some platforms. | |
3210 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3211 | # in the wild :-( We should find a proper way to deprecate it ... | |
3212 | AMTAR='$${TAR-tar}' | |
3213 | ||
3214 | ||
3215 | # We'll loop over all known methods to create a tar archive until one works. | |
3216 | _am_tools='gnutar pax cpio none' | |
3217 | ||
3218 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3219 | ||
3220 | ||
3221 | ||
3222 | ||
3223 | ||
3224 | ||
3225 | # POSIX will say in a future version that running "rm -f" with no argument | |
3226 | # is OK; and we want to be able to make that assumption in our Makefile | |
3227 | # recipes. So use an aggressive probe to check that the usage we want is | |
3228 | # actually supported "in the wild" to an acceptable degree. | |
3229 | # See automake bug#10828. | |
3230 | # To make any issue more visible, cause the running configure to be aborted | |
3231 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3232 | # user can still override this though. | |
3233 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3234 | cat >&2 <<'END' | |
3235 | Oops! | |
3236 | ||
3237 | Your 'rm' program seems unable to run without file operands specified | |
3238 | on the command line, even when the '-f' option is present. This is contrary | |
3239 | to the behaviour of most rm programs out there, and not conforming with | |
3240 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3241 | ||
3242 | Please tell bug-automake@gnu.org about your system, including the value | |
3243 | of your $PATH and any error possibly output before this message. This | |
3244 | can help us improve future automake versions. | |
3245 | ||
3246 | END | |
3247 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3248 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3249 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3250 | echo >&2 | |
3251 | else | |
3252 | cat >&2 <<'END' | |
3253 | Aborting the configuration process, to ensure you take notice of the issue. | |
3254 | ||
3255 | You can download and install GNU coreutils to get an 'rm' implementation | |
3256 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3257 | ||
3258 | If you want to complete the configuration process using your problematic | |
3259 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3260 | to "yes", and re-run configure. | |
3261 | ||
3262 | END | |
3263 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3264 | fi | |
3265 | fi | |
3266 | ||
3267 | ac_config_headers="$ac_config_headers zfs_config.h" | |
3268 | ||
3269 | ||
3270 | ||
3271 | ac_ext=c | |
3272 | ac_cpp='$CPP $CPPFLAGS' | |
3273 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3274 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3275 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3276 | if test -n "$ac_tool_prefix"; then | |
3277 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3278 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3280 | $as_echo_n "checking for $ac_word... " >&6; } | |
3281 | if ${ac_cv_prog_CC+:} false; then : | |
3282 | $as_echo_n "(cached) " >&6 | |
3283 | else | |
3284 | if test -n "$CC"; then | |
3285 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3286 | else | |
3287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3288 | for as_dir in $PATH | |
3289 | do | |
3290 | IFS=$as_save_IFS | |
3291 | test -z "$as_dir" && as_dir=. | |
3292 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3293 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3294 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3296 | break 2 | |
3297 | fi | |
3298 | done | |
3299 | done | |
3300 | IFS=$as_save_IFS | |
3301 | ||
3302 | fi | |
3303 | fi | |
3304 | CC=$ac_cv_prog_CC | |
3305 | if test -n "$CC"; then | |
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3307 | $as_echo "$CC" >&6; } | |
3308 | else | |
3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3310 | $as_echo "no" >&6; } | |
3311 | fi | |
3312 | ||
3313 | ||
3314 | fi | |
3315 | if test -z "$ac_cv_prog_CC"; then | |
3316 | ac_ct_CC=$CC | |
3317 | # Extract the first word of "gcc", so it can be a program name with args. | |
3318 | set dummy gcc; ac_word=$2 | |
3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3320 | $as_echo_n "checking for $ac_word... " >&6; } | |
3321 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3322 | $as_echo_n "(cached) " >&6 | |
3323 | else | |
3324 | if test -n "$ac_ct_CC"; then | |
3325 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3326 | else | |
3327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3328 | for as_dir in $PATH | |
3329 | do | |
3330 | IFS=$as_save_IFS | |
3331 | test -z "$as_dir" && as_dir=. | |
3332 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3333 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3334 | ac_cv_prog_ac_ct_CC="gcc" | |
3335 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3336 | break 2 | |
3337 | fi | |
3338 | done | |
3339 | done | |
3340 | IFS=$as_save_IFS | |
3341 | ||
3342 | fi | |
3343 | fi | |
3344 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3345 | if test -n "$ac_ct_CC"; then | |
3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3347 | $as_echo "$ac_ct_CC" >&6; } | |
3348 | else | |
3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3350 | $as_echo "no" >&6; } | |
3351 | fi | |
3352 | ||
3353 | if test "x$ac_ct_CC" = x; then | |
3354 | CC="" | |
3355 | else | |
3356 | case $cross_compiling:$ac_tool_warned in | |
3357 | yes:) | |
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3359 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3360 | ac_tool_warned=yes ;; | |
3361 | esac | |
3362 | CC=$ac_ct_CC | |
3363 | fi | |
3364 | else | |
3365 | CC="$ac_cv_prog_CC" | |
3366 | fi | |
3367 | ||
3368 | if test -z "$CC"; then | |
3369 | if test -n "$ac_tool_prefix"; then | |
3370 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3371 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3373 | $as_echo_n "checking for $ac_word... " >&6; } | |
3374 | if ${ac_cv_prog_CC+:} false; then : | |
3375 | $as_echo_n "(cached) " >&6 | |
3376 | else | |
3377 | if test -n "$CC"; then | |
3378 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3379 | else | |
3380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3381 | for as_dir in $PATH | |
3382 | do | |
3383 | IFS=$as_save_IFS | |
3384 | test -z "$as_dir" && as_dir=. | |
3385 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3386 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3387 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3388 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3389 | break 2 | |
3390 | fi | |
3391 | done | |
3392 | done | |
3393 | IFS=$as_save_IFS | |
3394 | ||
3395 | fi | |
3396 | fi | |
3397 | CC=$ac_cv_prog_CC | |
3398 | if test -n "$CC"; then | |
3399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3400 | $as_echo "$CC" >&6; } | |
3401 | else | |
3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3403 | $as_echo "no" >&6; } | |
3404 | fi | |
3405 | ||
3406 | ||
3407 | fi | |
3408 | fi | |
3409 | if test -z "$CC"; then | |
3410 | # Extract the first word of "cc", so it can be a program name with args. | |
3411 | set dummy cc; ac_word=$2 | |
3412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3413 | $as_echo_n "checking for $ac_word... " >&6; } | |
3414 | if ${ac_cv_prog_CC+:} false; then : | |
3415 | $as_echo_n "(cached) " >&6 | |
3416 | else | |
3417 | if test -n "$CC"; then | |
3418 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3419 | else | |
3420 | ac_prog_rejected=no | |
3421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3422 | for as_dir in $PATH | |
3423 | do | |
3424 | IFS=$as_save_IFS | |
3425 | test -z "$as_dir" && as_dir=. | |
3426 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3427 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3428 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3429 | ac_prog_rejected=yes | |
3430 | continue | |
3431 | fi | |
3432 | ac_cv_prog_CC="cc" | |
3433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3434 | break 2 | |
3435 | fi | |
3436 | done | |
3437 | done | |
3438 | IFS=$as_save_IFS | |
3439 | ||
3440 | if test $ac_prog_rejected = yes; then | |
3441 | # We found a bogon in the path, so make sure we never use it. | |
3442 | set dummy $ac_cv_prog_CC | |
3443 | shift | |
3444 | if test $# != 0; then | |
3445 | # We chose a different compiler from the bogus one. | |
3446 | # However, it has the same basename, so the bogon will be chosen | |
3447 | # first if we set CC to just the basename; use the full file name. | |
3448 | shift | |
3449 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3450 | fi | |
3451 | fi | |
3452 | fi | |
3453 | fi | |
3454 | CC=$ac_cv_prog_CC | |
3455 | if test -n "$CC"; then | |
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3457 | $as_echo "$CC" >&6; } | |
3458 | else | |
3459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3460 | $as_echo "no" >&6; } | |
3461 | fi | |
3462 | ||
3463 | ||
3464 | fi | |
3465 | if test -z "$CC"; then | |
3466 | if test -n "$ac_tool_prefix"; then | |
3467 | for ac_prog in cl.exe | |
3468 | do | |
3469 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3470 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3472 | $as_echo_n "checking for $ac_word... " >&6; } | |
3473 | if ${ac_cv_prog_CC+:} false; then : | |
3474 | $as_echo_n "(cached) " >&6 | |
3475 | else | |
3476 | if test -n "$CC"; then | |
3477 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3478 | else | |
3479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3480 | for as_dir in $PATH | |
3481 | do | |
3482 | IFS=$as_save_IFS | |
3483 | test -z "$as_dir" && as_dir=. | |
3484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3485 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3486 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3488 | break 2 | |
3489 | fi | |
3490 | done | |
3491 | done | |
3492 | IFS=$as_save_IFS | |
3493 | ||
3494 | fi | |
3495 | fi | |
3496 | CC=$ac_cv_prog_CC | |
3497 | if test -n "$CC"; then | |
3498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3499 | $as_echo "$CC" >&6; } | |
3500 | else | |
3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3502 | $as_echo "no" >&6; } | |
3503 | fi | |
3504 | ||
3505 | ||
3506 | test -n "$CC" && break | |
3507 | done | |
3508 | fi | |
3509 | if test -z "$CC"; then | |
3510 | ac_ct_CC=$CC | |
3511 | for ac_prog in cl.exe | |
3512 | do | |
3513 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3514 | set dummy $ac_prog; ac_word=$2 | |
3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3516 | $as_echo_n "checking for $ac_word... " >&6; } | |
3517 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3518 | $as_echo_n "(cached) " >&6 | |
3519 | else | |
3520 | if test -n "$ac_ct_CC"; then | |
3521 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3522 | else | |
3523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3524 | for as_dir in $PATH | |
3525 | do | |
3526 | IFS=$as_save_IFS | |
3527 | test -z "$as_dir" && as_dir=. | |
3528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3529 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3530 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3532 | break 2 | |
3533 | fi | |
3534 | done | |
3535 | done | |
3536 | IFS=$as_save_IFS | |
3537 | ||
3538 | fi | |
3539 | fi | |
3540 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3541 | if test -n "$ac_ct_CC"; then | |
3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3543 | $as_echo "$ac_ct_CC" >&6; } | |
3544 | else | |
3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3546 | $as_echo "no" >&6; } | |
3547 | fi | |
3548 | ||
3549 | ||
3550 | test -n "$ac_ct_CC" && break | |
3551 | done | |
3552 | ||
3553 | if test "x$ac_ct_CC" = x; then | |
3554 | CC="" | |
3555 | else | |
3556 | case $cross_compiling:$ac_tool_warned in | |
3557 | yes:) | |
3558 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3559 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3560 | ac_tool_warned=yes ;; | |
3561 | esac | |
3562 | CC=$ac_ct_CC | |
3563 | fi | |
3564 | fi | |
3565 | ||
3566 | fi | |
3567 | ||
3568 | ||
3569 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3570 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3571 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3572 | See \`config.log' for more details" "$LINENO" 5; } | |
3573 | ||
3574 | # Provide some information about the compiler. | |
3575 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3576 | set X $ac_compile | |
3577 | ac_compiler=$2 | |
3578 | for ac_option in --version -v -V -qversion; do | |
3579 | { { ac_try="$ac_compiler $ac_option >&5" | |
3580 | case "(($ac_try" in | |
3581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3582 | *) ac_try_echo=$ac_try;; | |
3583 | esac | |
3584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3585 | $as_echo "$ac_try_echo"; } >&5 | |
3586 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3587 | ac_status=$? | |
3588 | if test -s conftest.err; then | |
3589 | sed '10a\ | |
3590 | ... rest of stderr output deleted ... | |
3591 | 10q' conftest.err >conftest.er1 | |
3592 | cat conftest.er1 >&5 | |
3593 | fi | |
3594 | rm -f conftest.er1 conftest.err | |
3595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3596 | test $ac_status = 0; } | |
3597 | done | |
3598 | ||
3599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3600 | /* end confdefs.h. */ | |
3601 | ||
3602 | int | |
3603 | main () | |
3604 | { | |
3605 | ||
3606 | ; | |
3607 | return 0; | |
3608 | } | |
3609 | _ACEOF | |
3610 | ac_clean_files_save=$ac_clean_files | |
3611 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3612 | # Try to create an executable without -o first, disregard a.out. | |
3613 | # It will help us diagnose broken compilers, and finding out an intuition | |
3614 | # of exeext. | |
3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3616 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3617 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3618 | ||
3619 | # The possible output files: | |
3620 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3621 | ||
3622 | ac_rmfiles= | |
3623 | for ac_file in $ac_files | |
3624 | do | |
3625 | case $ac_file in | |
3626 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3627 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3628 | esac | |
3629 | done | |
3630 | rm -f $ac_rmfiles | |
3631 | ||
3632 | if { { ac_try="$ac_link_default" | |
3633 | case "(($ac_try" in | |
3634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3635 | *) ac_try_echo=$ac_try;; | |
3636 | esac | |
3637 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3638 | $as_echo "$ac_try_echo"; } >&5 | |
3639 | (eval "$ac_link_default") 2>&5 | |
3640 | ac_status=$? | |
3641 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3642 | test $ac_status = 0; }; then : | |
3643 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3644 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3645 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3646 | # so that the user can short-circuit this test for compilers unknown to | |
3647 | # Autoconf. | |
3648 | for ac_file in $ac_files '' | |
3649 | do | |
3650 | test -f "$ac_file" || continue | |
3651 | case $ac_file in | |
3652 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3653 | ;; | |
3654 | [ab].out ) | |
3655 | # We found the default executable, but exeext='' is most | |
3656 | # certainly right. | |
3657 | break;; | |
3658 | *.* ) | |
3659 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3660 | then :; else | |
3661 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3662 | fi | |
3663 | # We set ac_cv_exeext here because the later test for it is not | |
3664 | # safe: cross compilers may not add the suffix if given an `-o' | |
3665 | # argument, so we may need to know it at that point already. | |
3666 | # Even if this section looks crufty: it has the advantage of | |
3667 | # actually working. | |
3668 | break;; | |
3669 | * ) | |
3670 | break;; | |
3671 | esac | |
3672 | done | |
3673 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3674 | ||
3675 | else | |
3676 | ac_file='' | |
3677 | fi | |
3678 | if test -z "$ac_file"; then : | |
3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3680 | $as_echo "no" >&6; } | |
3681 | $as_echo "$as_me: failed program was:" >&5 | |
3682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3683 | ||
3684 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3685 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3686 | as_fn_error 77 "C compiler cannot create executables | |
3687 | See \`config.log' for more details" "$LINENO" 5; } | |
3688 | else | |
3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3690 | $as_echo "yes" >&6; } | |
3691 | fi | |
3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3693 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3695 | $as_echo "$ac_file" >&6; } | |
3696 | ac_exeext=$ac_cv_exeext | |
3697 | ||
3698 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3699 | ac_clean_files=$ac_clean_files_save | |
3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3701 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3702 | if { { ac_try="$ac_link" | |
3703 | case "(($ac_try" in | |
3704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3705 | *) ac_try_echo=$ac_try;; | |
3706 | esac | |
3707 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3708 | $as_echo "$ac_try_echo"; } >&5 | |
3709 | (eval "$ac_link") 2>&5 | |
3710 | ac_status=$? | |
3711 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3712 | test $ac_status = 0; }; then : | |
3713 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3714 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3715 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3716 | # `rm'. | |
3717 | for ac_file in conftest.exe conftest conftest.*; do | |
3718 | test -f "$ac_file" || continue | |
3719 | case $ac_file in | |
3720 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3721 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3722 | break;; | |
3723 | * ) break;; | |
3724 | esac | |
3725 | done | |
3726 | else | |
3727 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3728 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3729 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3730 | See \`config.log' for more details" "$LINENO" 5; } | |
3731 | fi | |
3732 | rm -f conftest conftest$ac_cv_exeext | |
3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3734 | $as_echo "$ac_cv_exeext" >&6; } | |
3735 | ||
3736 | rm -f conftest.$ac_ext | |
3737 | EXEEXT=$ac_cv_exeext | |
3738 | ac_exeext=$EXEEXT | |
3739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3740 | /* end confdefs.h. */ | |
3741 | #include <stdio.h> | |
3742 | int | |
3743 | main () | |
3744 | { | |
3745 | FILE *f = fopen ("conftest.out", "w"); | |
3746 | return ferror (f) || fclose (f) != 0; | |
3747 | ||
3748 | ; | |
3749 | return 0; | |
3750 | } | |
3751 | _ACEOF | |
3752 | ac_clean_files="$ac_clean_files conftest.out" | |
3753 | # Check that the compiler produces executables we can run. If not, either | |
3754 | # the compiler is broken, or we cross compile. | |
3755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3756 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3757 | if test "$cross_compiling" != yes; then | |
3758 | { { ac_try="$ac_link" | |
3759 | case "(($ac_try" in | |
3760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3761 | *) ac_try_echo=$ac_try;; | |
3762 | esac | |
3763 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3764 | $as_echo "$ac_try_echo"; } >&5 | |
3765 | (eval "$ac_link") 2>&5 | |
3766 | ac_status=$? | |
3767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3768 | test $ac_status = 0; } | |
3769 | if { ac_try='./conftest$ac_cv_exeext' | |
3770 | { { case "(($ac_try" in | |
3771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3772 | *) ac_try_echo=$ac_try;; | |
3773 | esac | |
3774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3775 | $as_echo "$ac_try_echo"; } >&5 | |
3776 | (eval "$ac_try") 2>&5 | |
3777 | ac_status=$? | |
3778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3779 | test $ac_status = 0; }; }; then | |
3780 | cross_compiling=no | |
3781 | else | |
3782 | if test "$cross_compiling" = maybe; then | |
3783 | cross_compiling=yes | |
3784 | else | |
3785 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3786 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3787 | as_fn_error $? "cannot run C compiled programs. | |
3788 | If you meant to cross compile, use \`--host'. | |
3789 | See \`config.log' for more details" "$LINENO" 5; } | |
3790 | fi | |
3791 | fi | |
3792 | fi | |
3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3794 | $as_echo "$cross_compiling" >&6; } | |
3795 | ||
3796 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3797 | ac_clean_files=$ac_clean_files_save | |
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3799 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3800 | if ${ac_cv_objext+:} false; then : | |
3801 | $as_echo_n "(cached) " >&6 | |
3802 | else | |
3803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3804 | /* end confdefs.h. */ | |
3805 | ||
3806 | int | |
3807 | main () | |
3808 | { | |
3809 | ||
3810 | ; | |
3811 | return 0; | |
3812 | } | |
3813 | _ACEOF | |
3814 | rm -f conftest.o conftest.obj | |
3815 | if { { ac_try="$ac_compile" | |
3816 | case "(($ac_try" in | |
3817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3818 | *) ac_try_echo=$ac_try;; | |
3819 | esac | |
3820 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3821 | $as_echo "$ac_try_echo"; } >&5 | |
3822 | (eval "$ac_compile") 2>&5 | |
3823 | ac_status=$? | |
3824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3825 | test $ac_status = 0; }; then : | |
3826 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3827 | test -f "$ac_file" || continue; | |
3828 | case $ac_file in | |
3829 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3830 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3831 | break;; | |
3832 | esac | |
3833 | done | |
3834 | else | |
3835 | $as_echo "$as_me: failed program was:" >&5 | |
3836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3837 | ||
3838 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3839 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3840 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3841 | See \`config.log' for more details" "$LINENO" 5; } | |
3842 | fi | |
3843 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3844 | fi | |
3845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3846 | $as_echo "$ac_cv_objext" >&6; } | |
3847 | OBJEXT=$ac_cv_objext | |
3848 | ac_objext=$OBJEXT | |
3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3850 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3851 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3852 | $as_echo_n "(cached) " >&6 | |
3853 | else | |
3854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3855 | /* end confdefs.h. */ | |
3856 | ||
3857 | int | |
3858 | main () | |
3859 | { | |
3860 | #ifndef __GNUC__ | |
3861 | choke me | |
3862 | #endif | |
3863 | ||
3864 | ; | |
3865 | return 0; | |
3866 | } | |
3867 | _ACEOF | |
3868 | if ac_fn_c_try_compile "$LINENO"; then : | |
3869 | ac_compiler_gnu=yes | |
3870 | else | |
3871 | ac_compiler_gnu=no | |
3872 | fi | |
3873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3874 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3875 | ||
3876 | fi | |
3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3878 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3879 | if test $ac_compiler_gnu = yes; then | |
3880 | GCC=yes | |
3881 | else | |
3882 | GCC= | |
3883 | fi | |
3884 | ac_test_CFLAGS=${CFLAGS+set} | |
3885 | ac_save_CFLAGS=$CFLAGS | |
3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3887 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3888 | if ${ac_cv_prog_cc_g+:} false; then : | |
3889 | $as_echo_n "(cached) " >&6 | |
3890 | else | |
3891 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3892 | ac_c_werror_flag=yes | |
3893 | ac_cv_prog_cc_g=no | |
3894 | CFLAGS="-g" | |
3895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3896 | /* end confdefs.h. */ | |
3897 | ||
3898 | int | |
3899 | main () | |
3900 | { | |
3901 | ||
3902 | ; | |
3903 | return 0; | |
3904 | } | |
3905 | _ACEOF | |
3906 | if ac_fn_c_try_compile "$LINENO"; then : | |
3907 | ac_cv_prog_cc_g=yes | |
3908 | else | |
3909 | CFLAGS="" | |
3910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3911 | /* end confdefs.h. */ | |
3912 | ||
3913 | int | |
3914 | main () | |
3915 | { | |
3916 | ||
3917 | ; | |
3918 | return 0; | |
3919 | } | |
3920 | _ACEOF | |
3921 | if ac_fn_c_try_compile "$LINENO"; then : | |
3922 | ||
3923 | else | |
3924 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3925 | CFLAGS="-g" | |
3926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3927 | /* end confdefs.h. */ | |
3928 | ||
3929 | int | |
3930 | main () | |
3931 | { | |
3932 | ||
3933 | ; | |
3934 | return 0; | |
3935 | } | |
3936 | _ACEOF | |
3937 | if ac_fn_c_try_compile "$LINENO"; then : | |
3938 | ac_cv_prog_cc_g=yes | |
3939 | fi | |
3940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3941 | fi | |
3942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3943 | fi | |
3944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3945 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3946 | fi | |
3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3948 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3949 | if test "$ac_test_CFLAGS" = set; then | |
3950 | CFLAGS=$ac_save_CFLAGS | |
3951 | elif test $ac_cv_prog_cc_g = yes; then | |
3952 | if test "$GCC" = yes; then | |
3953 | CFLAGS="-g -O2" | |
3954 | else | |
3955 | CFLAGS="-g" | |
3956 | fi | |
3957 | else | |
3958 | if test "$GCC" = yes; then | |
3959 | CFLAGS="-O2" | |
3960 | else | |
3961 | CFLAGS= | |
3962 | fi | |
3963 | fi | |
3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3965 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3966 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3967 | $as_echo_n "(cached) " >&6 | |
3968 | else | |
3969 | ac_cv_prog_cc_c89=no | |
3970 | ac_save_CC=$CC | |
3971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3972 | /* end confdefs.h. */ | |
3973 | #include <stdarg.h> | |
3974 | #include <stdio.h> | |
3975 | struct stat; | |
3976 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3977 | struct buf { int x; }; | |
3978 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3979 | static char *e (p, i) | |
3980 | char **p; | |
3981 | int i; | |
3982 | { | |
3983 | return p[i]; | |
3984 | } | |
3985 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3986 | { | |
3987 | char *s; | |
3988 | va_list v; | |
3989 | va_start (v,p); | |
3990 | s = g (p, va_arg (v,int)); | |
3991 | va_end (v); | |
3992 | return s; | |
3993 | } | |
3994 | ||
3995 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3996 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3997 | These don't provoke an error unfortunately, instead are silently treated | |
3998 | as 'x'. The following induces an error, until -std is added to get | |
3999 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4000 | array size at least. It's necessary to write '\x00'==0 to get something | |
4001 | that's true only with -std. */ | |
4002 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4003 | ||
4004 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4005 | inside strings and character constants. */ | |
4006 | #define FOO(x) 'x' | |
4007 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4008 | ||
4009 | int test (int i, double x); | |
4010 | struct s1 {int (*f) (int a);}; | |
4011 | struct s2 {int (*f) (double a);}; | |
4012 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4013 | int argc; | |
4014 | char **argv; | |
4015 | int | |
4016 | main () | |
4017 | { | |
4018 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4019 | ; | |
4020 | return 0; | |
4021 | } | |
4022 | _ACEOF | |
4023 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4024 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4025 | do | |
4026 | CC="$ac_save_CC $ac_arg" | |
4027 | if ac_fn_c_try_compile "$LINENO"; then : | |
4028 | ac_cv_prog_cc_c89=$ac_arg | |
4029 | fi | |
4030 | rm -f core conftest.err conftest.$ac_objext | |
4031 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4032 | done | |
4033 | rm -f conftest.$ac_ext | |
4034 | CC=$ac_save_CC | |
4035 | ||
4036 | fi | |
4037 | # AC_CACHE_VAL | |
4038 | case "x$ac_cv_prog_cc_c89" in | |
4039 | x) | |
4040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4041 | $as_echo "none needed" >&6; } ;; | |
4042 | xno) | |
4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4044 | $as_echo "unsupported" >&6; } ;; | |
4045 | *) | |
4046 | CC="$CC $ac_cv_prog_cc_c89" | |
4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4048 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4049 | esac | |
4050 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4051 | ||
4052 | fi | |
4053 | ||
4054 | ac_ext=c | |
4055 | ac_cpp='$CPP $CPPFLAGS' | |
4056 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4057 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4058 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4066 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4067 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4068 | $as_echo_n "(cached) " >&6 | |
4069 | else | |
4070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4071 | /* end confdefs.h. */ | |
4072 | ||
4073 | int | |
4074 | main () | |
4075 | { | |
4076 | ||
4077 | ; | |
4078 | return 0; | |
4079 | } | |
4080 | _ACEOF | |
4081 | # Make sure it works both with $CC and with simple cc. | |
4082 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4083 | # compilers refuse to overwrite an existing .o file with -o, | |
4084 | # though they will create one. | |
4085 | am_cv_prog_cc_c_o=yes | |
4086 | for am_i in 1 2; do | |
4087 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4088 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4089 | ac_status=$? | |
4090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4091 | (exit $ac_status); } \ | |
4092 | && test -f conftest2.$ac_objext; then | |
4093 | : OK | |
4094 | else | |
4095 | am_cv_prog_cc_c_o=no | |
4096 | break | |
4097 | fi | |
4098 | done | |
4099 | rm -f core conftest* | |
4100 | unset am_i | |
4101 | fi | |
4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4103 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4104 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4105 | # Losing compiler, so override with the script. | |
4106 | # FIXME: It is wrong to rewrite CC. | |
4107 | # But if we don't then we get into trouble of one sort or another. | |
4108 | # A longer-term fix would be to have automake use am__CC in this case, | |
4109 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4110 | CC="$am_aux_dir/compile $CC" | |
4111 | fi | |
4112 | ac_ext=c | |
4113 | ac_cpp='$CPP $CPPFLAGS' | |
4114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4117 | ||
4118 | DEPDIR="${am__leading_dot}deps" | |
4119 | ||
4120 | ac_config_commands="$ac_config_commands depfiles" | |
4121 | ||
4122 | ||
4123 | am_make=${MAKE-make} | |
4124 | cat > confinc << 'END' | |
4125 | am__doit: | |
4126 | @echo this is the am__doit target | |
4127 | .PHONY: am__doit | |
4128 | END | |
4129 | # If we don't find an include directive, just comment out the code. | |
4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4131 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4132 | am__include="#" | |
4133 | am__quote= | |
4134 | _am_result=none | |
4135 | # First try GNU make style include. | |
4136 | echo "include confinc" > confmf | |
4137 | # Ignore all kinds of additional output from 'make'. | |
4138 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4139 | *the\ am__doit\ target*) | |
4140 | am__include=include | |
4141 | am__quote= | |
4142 | _am_result=GNU | |
4143 | ;; | |
4144 | esac | |
4145 | # Now try BSD make style include. | |
4146 | if test "$am__include" = "#"; then | |
4147 | echo '.include "confinc"' > confmf | |
4148 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4149 | *the\ am__doit\ target*) | |
4150 | am__include=.include | |
4151 | am__quote="\"" | |
4152 | _am_result=BSD | |
4153 | ;; | |
4154 | esac | |
4155 | fi | |
4156 | ||
4157 | ||
4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4159 | $as_echo "$_am_result" >&6; } | |
4160 | rm -f confinc confmf | |
4161 | ||
4162 | # Check whether --enable-dependency-tracking was given. | |
4163 | if test "${enable_dependency_tracking+set}" = set; then : | |
4164 | enableval=$enable_dependency_tracking; | |
4165 | fi | |
4166 | ||
4167 | if test "x$enable_dependency_tracking" != xno; then | |
4168 | am_depcomp="$ac_aux_dir/depcomp" | |
4169 | AMDEPBACKSLASH='\' | |
4170 | am__nodep='_no' | |
4171 | fi | |
4172 | if test "x$enable_dependency_tracking" != xno; then | |
4173 | AMDEP_TRUE= | |
4174 | AMDEP_FALSE='#' | |
4175 | else | |
4176 | AMDEP_TRUE='#' | |
4177 | AMDEP_FALSE= | |
4178 | fi | |
4179 | ||
4180 | ||
4181 | ||
4182 | depcc="$CC" am_compiler_list= | |
4183 | ||
4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4185 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4186 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4187 | $as_echo_n "(cached) " >&6 | |
4188 | else | |
4189 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4190 | # We make a subdir and do the tests there. Otherwise we can end up | |
4191 | # making bogus files that we don't know about and never remove. For | |
4192 | # instance it was reported that on HP-UX the gcc test will end up | |
4193 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4194 | # in D". | |
4195 | rm -rf conftest.dir | |
4196 | mkdir conftest.dir | |
4197 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4198 | # using a relative directory. | |
4199 | cp "$am_depcomp" conftest.dir | |
4200 | cd conftest.dir | |
4201 | # We will build objects and dependencies in a subdirectory because | |
4202 | # it helps to detect inapplicable dependency modes. For instance | |
4203 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4204 | # side effect of compilation, but ICC will put the dependencies in | |
4205 | # the current directory while Tru64 will put them in the object | |
4206 | # directory. | |
4207 | mkdir sub | |
4208 | ||
4209 | am_cv_CC_dependencies_compiler_type=none | |
4210 | if test "$am_compiler_list" = ""; then | |
4211 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4212 | fi | |
4213 | am__universal=false | |
4214 | case " $depcc " in #( | |
4215 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4216 | esac | |
4217 | ||
4218 | for depmode in $am_compiler_list; do | |
4219 | # Setup a source with many dependencies, because some compilers | |
4220 | # like to wrap large dependency lists on column 80 (with \), and | |
4221 | # we should not choose a depcomp mode which is confused by this. | |
4222 | # | |
4223 | # We need to recreate these files for each test, as the compiler may | |
4224 | # overwrite some of them when testing with obscure command lines. | |
4225 | # This happens at least with the AIX C compiler. | |
4226 | : > sub/conftest.c | |
4227 | for i in 1 2 3 4 5 6; do | |
4228 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4229 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4230 | # Solaris 10 /bin/sh. | |
4231 | echo '/* dummy */' > sub/conftst$i.h | |
4232 | done | |
4233 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4234 | ||
4235 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4236 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4237 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4238 | # versions had trouble with output in subdirs. | |
4239 | am__obj=sub/conftest.${OBJEXT-o} | |
4240 | am__minus_obj="-o $am__obj" | |
4241 | case $depmode in | |
4242 | gcc) | |
4243 | # This depmode causes a compiler race in universal mode. | |
4244 | test "$am__universal" = false || continue | |
4245 | ;; | |
4246 | nosideeffect) | |
4247 | # After this tag, mechanisms are not by side-effect, so they'll | |
4248 | # only be used when explicitly requested. | |
4249 | if test "x$enable_dependency_tracking" = xyes; then | |
4250 | continue | |
4251 | else | |
4252 | break | |
4253 | fi | |
4254 | ;; | |
4255 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4256 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4257 | # not run yet. These depmodes are late enough in the game, and | |
4258 | # so weak that their functioning should not be impacted. | |
4259 | am__obj=conftest.${OBJEXT-o} | |
4260 | am__minus_obj= | |
4261 | ;; | |
4262 | none) break ;; | |
4263 | esac | |
4264 | if depmode=$depmode \ | |
4265 | source=sub/conftest.c object=$am__obj \ | |
4266 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4267 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4268 | >/dev/null 2>conftest.err && | |
4269 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4270 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4271 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4272 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4273 | # icc doesn't choke on unknown options, it will just issue warnings | |
4274 | # or remarks (even with -Werror). So we grep stderr for any message | |
4275 | # that says an option was ignored or not supported. | |
4276 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4277 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4278 | # The diagnosis changed in icc 8.0: | |
4279 | # icc: Command line remark: option '-MP' not supported | |
4280 | if (grep 'ignoring option' conftest.err || | |
4281 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4282 | am_cv_CC_dependencies_compiler_type=$depmode | |
4283 | break | |
4284 | fi | |
4285 | fi | |
4286 | done | |
4287 | ||
4288 | cd .. | |
4289 | rm -rf conftest.dir | |
4290 | else | |
4291 | am_cv_CC_dependencies_compiler_type=none | |
4292 | fi | |
4293 | ||
4294 | fi | |
4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4296 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4297 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4298 | ||
4299 | if | |
4300 | test "x$enable_dependency_tracking" != xno \ | |
4301 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4302 | am__fastdepCC_TRUE= | |
4303 | am__fastdepCC_FALSE='#' | |
4304 | else | |
4305 | am__fastdepCC_TRUE='#' | |
4306 | am__fastdepCC_FALSE= | |
4307 | fi | |
4308 | ||
4309 | ||
4310 | case `pwd` in | |
4311 | *\ * | *\ *) | |
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4313 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4314 | esac | |
4315 | ||
4316 | ||
4317 | ||
4318 | macro_version='2.4.6' | |
4319 | macro_revision='2.4.6' | |
4320 | ||
4321 | ||
4322 | ||
4323 | ||
4324 | ||
4325 | ||
4326 | ||
4327 | ||
4328 | ||
4329 | ||
4330 | ||
4331 | ||
4332 | ||
4333 | ltmain=$ac_aux_dir/ltmain.sh | |
4334 | ||
4335 | # Backslashify metacharacters that are still active within | |
4336 | # double-quoted strings. | |
4337 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4338 | ||
4339 | # Same as above, but do not quote variable references. | |
4340 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4341 | ||
4342 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4343 | # double_quote_subst'ed string. | |
4344 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4345 | ||
4346 | # Sed substitution to delay expansion of an escaped single quote. | |
4347 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4348 | ||
4349 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4350 | no_glob_subst='s/\*/\\\*/g' | |
4351 | ||
4352 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4353 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4354 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4355 | ||
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4357 | $as_echo_n "checking how to print strings... " >&6; } | |
4358 | # Test print first, because it will be a builtin if present. | |
4359 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4360 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4361 | ECHO='print -r --' | |
4362 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4363 | ECHO='printf %s\n' | |
4364 | else | |
4365 | # Use this function as a fallback that always works. | |
4366 | func_fallback_echo () | |
4367 | { | |
4368 | eval 'cat <<_LTECHO_EOF | |
4369 | $1 | |
4370 | _LTECHO_EOF' | |
4371 | } | |
4372 | ECHO='func_fallback_echo' | |
4373 | fi | |
4374 | ||
4375 | # func_echo_all arg... | |
4376 | # Invoke $ECHO with all args, space-separated. | |
4377 | func_echo_all () | |
4378 | { | |
4379 | $ECHO "" | |
4380 | } | |
4381 | ||
4382 | case $ECHO in | |
4383 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4384 | $as_echo "printf" >&6; } ;; | |
4385 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4386 | $as_echo "print -r" >&6; } ;; | |
4387 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4388 | $as_echo "cat" >&6; } ;; | |
4389 | esac | |
4390 | ||
4391 | ||
4392 | ||
4393 | ||
4394 | ||
4395 | ||
4396 | ||
4397 | ||
4398 | ||
4399 | ||
4400 | ||
4401 | ||
4402 | ||
4403 | ||
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4405 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4406 | if ${ac_cv_path_SED+:} false; then : | |
4407 | $as_echo_n "(cached) " >&6 | |
4408 | else | |
4409 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4410 | for ac_i in 1 2 3 4 5 6 7; do | |
4411 | ac_script="$ac_script$as_nl$ac_script" | |
4412 | done | |
4413 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4414 | { ac_script=; unset ac_script;} | |
4415 | if test -z "$SED"; then | |
4416 | ac_path_SED_found=false | |
4417 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4419 | for as_dir in $PATH | |
4420 | do | |
4421 | IFS=$as_save_IFS | |
4422 | test -z "$as_dir" && as_dir=. | |
4423 | for ac_prog in sed gsed; do | |
4424 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4425 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4426 | as_fn_executable_p "$ac_path_SED" || continue | |
4427 | # Check for GNU ac_path_SED and select it if it is found. | |
4428 | # Check for GNU $ac_path_SED | |
4429 | case `"$ac_path_SED" --version 2>&1` in | |
4430 | *GNU*) | |
4431 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4432 | *) | |
4433 | ac_count=0 | |
4434 | $as_echo_n 0123456789 >"conftest.in" | |
4435 | while : | |
4436 | do | |
4437 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4438 | mv "conftest.tmp" "conftest.in" | |
4439 | cp "conftest.in" "conftest.nl" | |
4440 | $as_echo '' >> "conftest.nl" | |
4441 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4442 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4443 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4444 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4445 | # Best one so far, save it but keep looking for a better one | |
4446 | ac_cv_path_SED="$ac_path_SED" | |
4447 | ac_path_SED_max=$ac_count | |
4448 | fi | |
4449 | # 10*(2^10) chars as input seems more than enough | |
4450 | test $ac_count -gt 10 && break | |
4451 | done | |
4452 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4453 | esac | |
4454 | ||
4455 | $ac_path_SED_found && break 3 | |
4456 | done | |
4457 | done | |
4458 | done | |
4459 | IFS=$as_save_IFS | |
4460 | if test -z "$ac_cv_path_SED"; then | |
4461 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
4462 | fi | |
4463 | else | |
4464 | ac_cv_path_SED=$SED | |
4465 | fi | |
4466 | ||
4467 | fi | |
4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4469 | $as_echo "$ac_cv_path_SED" >&6; } | |
4470 | SED="$ac_cv_path_SED" | |
4471 | rm -f conftest.sed | |
4472 | ||
4473 | test -z "$SED" && SED=sed | |
4474 | Xsed="$SED -e 1s/^X//" | |
4475 | ||
4476 | ||
4477 | ||
4478 | ||
4479 | ||
4480 | ||
4481 | ||
4482 | ||
4483 | ||
4484 | ||
4485 | ||
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4487 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4488 | if ${ac_cv_path_GREP+:} false; then : | |
4489 | $as_echo_n "(cached) " >&6 | |
4490 | else | |
4491 | if test -z "$GREP"; then | |
4492 | ac_path_GREP_found=false | |
4493 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4495 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4496 | do | |
4497 | IFS=$as_save_IFS | |
4498 | test -z "$as_dir" && as_dir=. | |
4499 | for ac_prog in grep ggrep; do | |
4500 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4501 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4502 | as_fn_executable_p "$ac_path_GREP" || continue | |
4503 | # Check for GNU ac_path_GREP and select it if it is found. | |
4504 | # Check for GNU $ac_path_GREP | |
4505 | case `"$ac_path_GREP" --version 2>&1` in | |
4506 | *GNU*) | |
4507 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4508 | *) | |
4509 | ac_count=0 | |
4510 | $as_echo_n 0123456789 >"conftest.in" | |
4511 | while : | |
4512 | do | |
4513 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4514 | mv "conftest.tmp" "conftest.in" | |
4515 | cp "conftest.in" "conftest.nl" | |
4516 | $as_echo 'GREP' >> "conftest.nl" | |
4517 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4518 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4519 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4520 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4521 | # Best one so far, save it but keep looking for a better one | |
4522 | ac_cv_path_GREP="$ac_path_GREP" | |
4523 | ac_path_GREP_max=$ac_count | |
4524 | fi | |
4525 | # 10*(2^10) chars as input seems more than enough | |
4526 | test $ac_count -gt 10 && break | |
4527 | done | |
4528 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4529 | esac | |
4530 | ||
4531 | $ac_path_GREP_found && break 3 | |
4532 | done | |
4533 | done | |
4534 | done | |
4535 | IFS=$as_save_IFS | |
4536 | if test -z "$ac_cv_path_GREP"; then | |
4537 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4538 | fi | |
4539 | else | |
4540 | ac_cv_path_GREP=$GREP | |
4541 | fi | |
4542 | ||
4543 | fi | |
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4545 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4546 | GREP="$ac_cv_path_GREP" | |
4547 | ||
4548 | ||
4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4550 | $as_echo_n "checking for egrep... " >&6; } | |
4551 | if ${ac_cv_path_EGREP+:} false; then : | |
4552 | $as_echo_n "(cached) " >&6 | |
4553 | else | |
4554 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4555 | then ac_cv_path_EGREP="$GREP -E" | |
4556 | else | |
4557 | if test -z "$EGREP"; then | |
4558 | ac_path_EGREP_found=false | |
4559 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4561 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4562 | do | |
4563 | IFS=$as_save_IFS | |
4564 | test -z "$as_dir" && as_dir=. | |
4565 | for ac_prog in egrep; do | |
4566 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4567 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4568 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4569 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4570 | # Check for GNU $ac_path_EGREP | |
4571 | case `"$ac_path_EGREP" --version 2>&1` in | |
4572 | *GNU*) | |
4573 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4574 | *) | |
4575 | ac_count=0 | |
4576 | $as_echo_n 0123456789 >"conftest.in" | |
4577 | while : | |
4578 | do | |
4579 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4580 | mv "conftest.tmp" "conftest.in" | |
4581 | cp "conftest.in" "conftest.nl" | |
4582 | $as_echo 'EGREP' >> "conftest.nl" | |
4583 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4584 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4585 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4586 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4587 | # Best one so far, save it but keep looking for a better one | |
4588 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4589 | ac_path_EGREP_max=$ac_count | |
4590 | fi | |
4591 | # 10*(2^10) chars as input seems more than enough | |
4592 | test $ac_count -gt 10 && break | |
4593 | done | |
4594 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4595 | esac | |
4596 | ||
4597 | $ac_path_EGREP_found && break 3 | |
4598 | done | |
4599 | done | |
4600 | done | |
4601 | IFS=$as_save_IFS | |
4602 | if test -z "$ac_cv_path_EGREP"; then | |
4603 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4604 | fi | |
4605 | else | |
4606 | ac_cv_path_EGREP=$EGREP | |
4607 | fi | |
4608 | ||
4609 | fi | |
4610 | fi | |
4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4612 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4613 | EGREP="$ac_cv_path_EGREP" | |
4614 | ||
4615 | ||
4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
4617 | $as_echo_n "checking for fgrep... " >&6; } | |
4618 | if ${ac_cv_path_FGREP+:} false; then : | |
4619 | $as_echo_n "(cached) " >&6 | |
4620 | else | |
4621 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4622 | then ac_cv_path_FGREP="$GREP -F" | |
4623 | else | |
4624 | if test -z "$FGREP"; then | |
4625 | ac_path_FGREP_found=false | |
4626 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4628 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4629 | do | |
4630 | IFS=$as_save_IFS | |
4631 | test -z "$as_dir" && as_dir=. | |
4632 | for ac_prog in fgrep; do | |
4633 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4634 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4635 | as_fn_executable_p "$ac_path_FGREP" || continue | |
4636 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4637 | # Check for GNU $ac_path_FGREP | |
4638 | case `"$ac_path_FGREP" --version 2>&1` in | |
4639 | *GNU*) | |
4640 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4641 | *) | |
4642 | ac_count=0 | |
4643 | $as_echo_n 0123456789 >"conftest.in" | |
4644 | while : | |
4645 | do | |
4646 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4647 | mv "conftest.tmp" "conftest.in" | |
4648 | cp "conftest.in" "conftest.nl" | |
4649 | $as_echo 'FGREP' >> "conftest.nl" | |
4650 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4651 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4652 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4653 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4654 | # Best one so far, save it but keep looking for a better one | |
4655 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4656 | ac_path_FGREP_max=$ac_count | |
4657 | fi | |
4658 | # 10*(2^10) chars as input seems more than enough | |
4659 | test $ac_count -gt 10 && break | |
4660 | done | |
4661 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4662 | esac | |
4663 | ||
4664 | $ac_path_FGREP_found && break 3 | |
4665 | done | |
4666 | done | |
4667 | done | |
4668 | IFS=$as_save_IFS | |
4669 | if test -z "$ac_cv_path_FGREP"; then | |
4670 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4671 | fi | |
4672 | else | |
4673 | ac_cv_path_FGREP=$FGREP | |
4674 | fi | |
4675 | ||
4676 | fi | |
4677 | fi | |
4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4679 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4680 | FGREP="$ac_cv_path_FGREP" | |
4681 | ||
4682 | ||
4683 | test -z "$GREP" && GREP=grep | |
4684 | ||
4685 | ||
4686 | ||
4687 | ||
4688 | ||
4689 | ||
4690 | ||
4691 | ||
4692 | ||
4693 | ||
4694 | ||
4695 | ||
4696 | ||
4697 | ||
4698 | ||
4699 | ||
4700 | ||
4701 | ||
4702 | ||
4703 | # Check whether --with-gnu-ld was given. | |
4704 | if test "${with_gnu_ld+set}" = set; then : | |
4705 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes | |
4706 | else | |
4707 | with_gnu_ld=no | |
4708 | fi | |
4709 | ||
4710 | ac_prog=ld | |
4711 | if test yes = "$GCC"; then | |
4712 | # Check if gcc -print-prog-name=ld gives a path. | |
4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
4714 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
4715 | case $host in | |
4716 | *-*-mingw*) | |
4717 | # gcc leaves a trailing carriage return, which upsets mingw | |
4718 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4719 | *) | |
4720 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4721 | esac | |
4722 | case $ac_prog in | |
4723 | # Accept absolute paths. | |
4724 | [\\/]* | ?:[\\/]*) | |
4725 | re_direlt='/[^/][^/]*/\.\./' | |
4726 | # Canonicalize the pathname of ld | |
4727 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4728 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4729 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4730 | done | |
4731 | test -z "$LD" && LD=$ac_prog | |
4732 | ;; | |
4733 | "") | |
4734 | # If it fails, then pretend we aren't using GCC. | |
4735 | ac_prog=ld | |
4736 | ;; | |
4737 | *) | |
4738 | # If it is relative, then search for the first ld in PATH. | |
4739 | with_gnu_ld=unknown | |
4740 | ;; | |
4741 | esac | |
4742 | elif test yes = "$with_gnu_ld"; then | |
4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
4744 | $as_echo_n "checking for GNU ld... " >&6; } | |
4745 | else | |
4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
4747 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
4748 | fi | |
4749 | if ${lt_cv_path_LD+:} false; then : | |
4750 | $as_echo_n "(cached) " >&6 | |
4751 | else | |
4752 | if test -z "$LD"; then | |
4753 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
4754 | for ac_dir in $PATH; do | |
4755 | IFS=$lt_save_ifs | |
4756 | test -z "$ac_dir" && ac_dir=. | |
4757 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4758 | lt_cv_path_LD=$ac_dir/$ac_prog | |
4759 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4760 | # but apparently some variants of GNU ld only accept -v. | |
4761 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4762 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4763 | *GNU* | *'with BFD'*) | |
4764 | test no != "$with_gnu_ld" && break | |
4765 | ;; | |
4766 | *) | |
4767 | test yes != "$with_gnu_ld" && break | |
4768 | ;; | |
4769 | esac | |
4770 | fi | |
4771 | done | |
4772 | IFS=$lt_save_ifs | |
4773 | else | |
4774 | lt_cv_path_LD=$LD # Let the user override the test with a path. | |
4775 | fi | |
4776 | fi | |
4777 | ||
4778 | LD=$lt_cv_path_LD | |
4779 | if test -n "$LD"; then | |
4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4781 | $as_echo "$LD" >&6; } | |
4782 | else | |
4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4784 | $as_echo "no" >&6; } | |
4785 | fi | |
4786 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
4788 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4789 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
4790 | $as_echo_n "(cached) " >&6 | |
4791 | else | |
4792 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4793 | case `$LD -v 2>&1 </dev/null` in | |
4794 | *GNU* | *'with BFD'*) | |
4795 | lt_cv_prog_gnu_ld=yes | |
4796 | ;; | |
4797 | *) | |
4798 | lt_cv_prog_gnu_ld=no | |
4799 | ;; | |
4800 | esac | |
4801 | fi | |
4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
4803 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
4804 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
4805 | ||
4806 | ||
4807 | ||
4808 | ||
4809 | ||
4810 | ||
4811 | ||
4812 | ||
4813 | ||
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4815 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
4816 | if ${lt_cv_path_NM+:} false; then : | |
4817 | $as_echo_n "(cached) " >&6 | |
4818 | else | |
4819 | if test -n "$NM"; then | |
4820 | # Let the user override the test. | |
4821 | lt_cv_path_NM=$NM | |
4822 | else | |
4823 | lt_nm_to_check=${ac_tool_prefix}nm | |
4824 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4825 | lt_nm_to_check="$lt_nm_to_check nm" | |
4826 | fi | |
4827 | for lt_tmp_nm in $lt_nm_to_check; do | |
4828 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
4829 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4830 | IFS=$lt_save_ifs | |
4831 | test -z "$ac_dir" && ac_dir=. | |
4832 | tmp_nm=$ac_dir/$lt_tmp_nm | |
4833 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
4834 | # Check to see if the nm accepts a BSD-compat flag. | |
4835 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: | |
4836 | # nm: unknown option "B" ignored | |
4837 | # Tru64's nm complains that /dev/null is an invalid object file | |
4838 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty | |
4839 | case $build_os in | |
4840 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
4841 | *) lt_bad_file=/dev/null ;; | |
4842 | esac | |
4843 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
4844 | *$lt_bad_file* | *'Invalid file or object type'*) | |
4845 | lt_cv_path_NM="$tmp_nm -B" | |
4846 | break 2 | |
4847 | ;; | |
4848 | *) | |
4849 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4850 | */dev/null*) | |
4851 | lt_cv_path_NM="$tmp_nm -p" | |
4852 | break 2 | |
4853 | ;; | |
4854 | *) | |
4855 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4856 | continue # so that we can try to find one that supports BSD flags | |
4857 | ;; | |
4858 | esac | |
4859 | ;; | |
4860 | esac | |
4861 | fi | |
4862 | done | |
4863 | IFS=$lt_save_ifs | |
4864 | done | |
4865 | : ${lt_cv_path_NM=no} | |
4866 | fi | |
4867 | fi | |
4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
4869 | $as_echo "$lt_cv_path_NM" >&6; } | |
4870 | if test no != "$lt_cv_path_NM"; then | |
4871 | NM=$lt_cv_path_NM | |
4872 | else | |
4873 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4874 | if test -n "$DUMPBIN"; then : | |
4875 | # Let the user override the test. | |
4876 | else | |
4877 | if test -n "$ac_tool_prefix"; then | |
4878 | for ac_prog in dumpbin "link -dump" | |
4879 | do | |
4880 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4881 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4883 | $as_echo_n "checking for $ac_word... " >&6; } | |
4884 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
4885 | $as_echo_n "(cached) " >&6 | |
4886 | else | |
4887 | if test -n "$DUMPBIN"; then | |
4888 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4889 | else | |
4890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4891 | for as_dir in $PATH | |
4892 | do | |
4893 | IFS=$as_save_IFS | |
4894 | test -z "$as_dir" && as_dir=. | |
4895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4896 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4897 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4899 | break 2 | |
4900 | fi | |
4901 | done | |
4902 | done | |
4903 | IFS=$as_save_IFS | |
4904 | ||
4905 | fi | |
4906 | fi | |
4907 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4908 | if test -n "$DUMPBIN"; then | |
4909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
4910 | $as_echo "$DUMPBIN" >&6; } | |
4911 | else | |
4912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4913 | $as_echo "no" >&6; } | |
4914 | fi | |
4915 | ||
4916 | ||
4917 | test -n "$DUMPBIN" && break | |
4918 | done | |
4919 | fi | |
4920 | if test -z "$DUMPBIN"; then | |
4921 | ac_ct_DUMPBIN=$DUMPBIN | |
4922 | for ac_prog in dumpbin "link -dump" | |
4923 | do | |
4924 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4925 | set dummy $ac_prog; ac_word=$2 | |
4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4927 | $as_echo_n "checking for $ac_word... " >&6; } | |
4928 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
4929 | $as_echo_n "(cached) " >&6 | |
4930 | else | |
4931 | if test -n "$ac_ct_DUMPBIN"; then | |
4932 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4933 | else | |
4934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4935 | for as_dir in $PATH | |
4936 | do | |
4937 | IFS=$as_save_IFS | |
4938 | test -z "$as_dir" && as_dir=. | |
4939 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4940 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4941 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4942 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4943 | break 2 | |
4944 | fi | |
4945 | done | |
4946 | done | |
4947 | IFS=$as_save_IFS | |
4948 | ||
4949 | fi | |
4950 | fi | |
4951 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4952 | if test -n "$ac_ct_DUMPBIN"; then | |
4953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4954 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4955 | else | |
4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4957 | $as_echo "no" >&6; } | |
4958 | fi | |
4959 | ||
4960 | ||
4961 | test -n "$ac_ct_DUMPBIN" && break | |
4962 | done | |
4963 | ||
4964 | if test "x$ac_ct_DUMPBIN" = x; then | |
4965 | DUMPBIN=":" | |
4966 | else | |
4967 | case $cross_compiling:$ac_tool_warned in | |
4968 | yes:) | |
4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4970 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4971 | ac_tool_warned=yes ;; | |
4972 | esac | |
4973 | DUMPBIN=$ac_ct_DUMPBIN | |
4974 | fi | |
4975 | fi | |
4976 | ||
4977 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in | |
4978 | *COFF*) | |
4979 | DUMPBIN="$DUMPBIN -symbols -headers" | |
4980 | ;; | |
4981 | *) | |
4982 | DUMPBIN=: | |
4983 | ;; | |
4984 | esac | |
4985 | fi | |
4986 | ||
4987 | if test : != "$DUMPBIN"; then | |
4988 | NM=$DUMPBIN | |
4989 | fi | |
4990 | fi | |
4991 | test -z "$NM" && NM=nm | |
4992 | ||
4993 | ||
4994 | ||
4995 | ||
4996 | ||
4997 | ||
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4999 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5000 | if ${lt_cv_nm_interface+:} false; then : | |
5001 | $as_echo_n "(cached) " >&6 | |
5002 | else | |
5003 | lt_cv_nm_interface="BSD nm" | |
5004 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5005 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5006 | (eval "$ac_compile" 2>conftest.err) | |
5007 | cat conftest.err >&5 | |
5008 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5009 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5010 | cat conftest.err >&5 | |
5011 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5012 | cat conftest.out >&5 | |
5013 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5014 | lt_cv_nm_interface="MS dumpbin" | |
5015 | fi | |
5016 | rm -f conftest* | |
5017 | fi | |
5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5019 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5020 | ||
5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5022 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5023 | LN_S=$as_ln_s | |
5024 | if test "$LN_S" = "ln -s"; then | |
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5026 | $as_echo "yes" >&6; } | |
5027 | else | |
5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5029 | $as_echo "no, using $LN_S" >&6; } | |
5030 | fi | |
5031 | ||
5032 | # find the maximum length of command line arguments | |
5033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5034 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5035 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5036 | $as_echo_n "(cached) " >&6 | |
5037 | else | |
5038 | i=0 | |
5039 | teststring=ABCD | |
5040 | ||
5041 | case $build_os in | |
5042 | msdosdjgpp*) | |
5043 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5044 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5045 | # during glob expansion). Even if it were fixed, the result of this | |
5046 | # check would be larger than it should be. | |
5047 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5048 | ;; | |
5049 | ||
5050 | gnu*) | |
5051 | # Under GNU Hurd, this test is not required because there is | |
5052 | # no limit to the length of command line arguments. | |
5053 | # Libtool will interpret -1 as no limit whatsoever | |
5054 | lt_cv_sys_max_cmd_len=-1; | |
5055 | ;; | |
5056 | ||
5057 | cygwin* | mingw* | cegcc*) | |
5058 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5059 | # about 5 minutes as the teststring grows exponentially. | |
5060 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5061 | # you end up with a "frozen" computer, even though with patience | |
5062 | # the test eventually succeeds (with a max line length of 256k). | |
5063 | # Instead, let's just punt: use the minimum linelength reported by | |
5064 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5065 | lt_cv_sys_max_cmd_len=8192; | |
5066 | ;; | |
5067 | ||
5068 | mint*) | |
5069 | # On MiNT this can take a long time and run out of memory. | |
5070 | lt_cv_sys_max_cmd_len=8192; | |
5071 | ;; | |
5072 | ||
5073 | amigaos*) | |
5074 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5075 | # So we just punt and use a minimum line length of 8192. | |
5076 | lt_cv_sys_max_cmd_len=8192; | |
5077 | ;; | |
5078 | ||
5079 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) | |
5080 | # This has been around since 386BSD, at least. Likely further. | |
5081 | if test -x /sbin/sysctl; then | |
5082 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5083 | elif test -x /usr/sbin/sysctl; then | |
5084 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5085 | else | |
5086 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5087 | fi | |
5088 | # And add a safety zone | |
5089 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5090 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5091 | ;; | |
5092 | ||
5093 | interix*) | |
5094 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5095 | lt_cv_sys_max_cmd_len=196608 | |
5096 | ;; | |
5097 | ||
5098 | os2*) | |
5099 | # The test takes a long time on OS/2. | |
5100 | lt_cv_sys_max_cmd_len=8192 | |
5101 | ;; | |
5102 | ||
5103 | osf*) | |
5104 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5105 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5106 | # nice to cause kernel panics so lets avoid the loop below. | |
5107 | # First set a reasonable default. | |
5108 | lt_cv_sys_max_cmd_len=16384 | |
5109 | # | |
5110 | if test -x /sbin/sysconfig; then | |
5111 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5112 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5113 | esac | |
5114 | fi | |
5115 | ;; | |
5116 | sco3.2v5*) | |
5117 | lt_cv_sys_max_cmd_len=102400 | |
5118 | ;; | |
5119 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5120 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5121 | if test -n "$kargmax"; then | |
5122 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5123 | else | |
5124 | lt_cv_sys_max_cmd_len=32768 | |
5125 | fi | |
5126 | ;; | |
5127 | *) | |
5128 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5129 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
5130 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
5131 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5132 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5133 | else | |
5134 | # Make teststring a little bigger before we do anything with it. | |
5135 | # a 1K string should be a reasonable start. | |
5136 | for i in 1 2 3 4 5 6 7 8; do | |
5137 | teststring=$teststring$teststring | |
5138 | done | |
5139 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5140 | # If test is not a shell built-in, we'll probably end up computing a | |
5141 | # maximum length that is only half of the actual maximum length, but | |
5142 | # we can't tell. | |
5143 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ | |
5144 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5145 | test 17 != "$i" # 1/2 MB should be enough | |
5146 | do | |
5147 | i=`expr $i + 1` | |
5148 | teststring=$teststring$teststring | |
5149 | done | |
5150 | # Only check the string length outside the loop. | |
5151 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5152 | teststring= | |
5153 | # Add a significant safety factor because C++ compilers can tack on | |
5154 | # massive amounts of additional arguments before passing them to the | |
5155 | # linker. It appears as though 1/2 is a usable value. | |
5156 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5157 | fi | |
5158 | ;; | |
5159 | esac | |
5160 | ||
5161 | fi | |
5162 | ||
5163 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5165 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5166 | else | |
5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5168 | $as_echo "none" >&6; } | |
5169 | fi | |
5170 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5171 | ||
5172 | ||
5173 | ||
5174 | ||
5175 | ||
5176 | ||
5177 | : ${CP="cp -f"} | |
5178 | : ${MV="mv -f"} | |
5179 | : ${RM="rm -f"} | |
5180 | ||
5181 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5182 | lt_unset=unset | |
5183 | else | |
5184 | lt_unset=false | |
5185 | fi | |
5186 | ||
5187 | ||
5188 | ||
5189 | ||
5190 | ||
5191 | # test EBCDIC or ASCII | |
5192 | case `echo X|tr X '\101'` in | |
5193 | A) # ASCII based system | |
5194 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5195 | lt_SP2NL='tr \040 \012' | |
5196 | lt_NL2SP='tr \015\012 \040\040' | |
5197 | ;; | |
5198 | *) # EBCDIC based system | |
5199 | lt_SP2NL='tr \100 \n' | |
5200 | lt_NL2SP='tr \r\n \100\100' | |
5201 | ;; | |
5202 | esac | |
5203 | ||
5204 | ||
5205 | ||
5206 | ||
5207 | ||
5208 | ||
5209 | ||
5210 | ||
5211 | ||
5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
5213 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5214 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5215 | $as_echo_n "(cached) " >&6 | |
5216 | else | |
5217 | case $host in | |
5218 | *-*-mingw* ) | |
5219 | case $build in | |
5220 | *-*-mingw* ) # actually msys | |
5221 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5222 | ;; | |
5223 | *-*-cygwin* ) | |
5224 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5225 | ;; | |
5226 | * ) # otherwise, assume *nix | |
5227 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5228 | ;; | |
5229 | esac | |
5230 | ;; | |
5231 | *-*-cygwin* ) | |
5232 | case $build in | |
5233 | *-*-mingw* ) # actually msys | |
5234 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5235 | ;; | |
5236 | *-*-cygwin* ) | |
5237 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5238 | ;; | |
5239 | * ) # otherwise, assume *nix | |
5240 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5241 | ;; | |
5242 | esac | |
5243 | ;; | |
5244 | * ) # unhandled hosts (and "normal" native builds) | |
5245 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5246 | ;; | |
5247 | esac | |
5248 | ||
5249 | fi | |
5250 | ||
5251 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5253 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5254 | ||
5255 | ||
5256 | ||
5257 | ||
5258 | ||
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5260 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5261 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5262 | $as_echo_n "(cached) " >&6 | |
5263 | else | |
5264 | #assume ordinary cross tools, or native build. | |
5265 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5266 | case $host in | |
5267 | *-*-mingw* ) | |
5268 | case $build in | |
5269 | *-*-mingw* ) # actually msys | |
5270 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5271 | ;; | |
5272 | esac | |
5273 | ;; | |
5274 | esac | |
5275 | ||
5276 | fi | |
5277 | ||
5278 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5280 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5281 | ||
5282 | ||
5283 | ||
5284 | ||
5285 | ||
5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5287 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5288 | if ${lt_cv_ld_reload_flag+:} false; then : | |
5289 | $as_echo_n "(cached) " >&6 | |
5290 | else | |
5291 | lt_cv_ld_reload_flag='-r' | |
5292 | fi | |
5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5294 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5295 | reload_flag=$lt_cv_ld_reload_flag | |
5296 | case $reload_flag in | |
5297 | "" | " "*) ;; | |
5298 | *) reload_flag=" $reload_flag" ;; | |
5299 | esac | |
5300 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5301 | case $host_os in | |
5302 | cygwin* | mingw* | pw32* | cegcc*) | |
5303 | if test yes != "$GCC"; then | |
5304 | reload_cmds=false | |
5305 | fi | |
5306 | ;; | |
5307 | darwin*) | |
5308 | if test yes = "$GCC"; then | |
5309 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
5310 | else | |
5311 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5312 | fi | |
5313 | ;; | |
5314 | esac | |
5315 | ||
5316 | ||
5317 | ||
5318 | ||
5319 | ||
5320 | ||
5321 | ||
5322 | ||
5323 | ||
5324 | if test -n "$ac_tool_prefix"; then | |
5325 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5326 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5328 | $as_echo_n "checking for $ac_word... " >&6; } | |
5329 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5330 | $as_echo_n "(cached) " >&6 | |
5331 | else | |
5332 | if test -n "$OBJDUMP"; then | |
5333 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5334 | else | |
5335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5336 | for as_dir in $PATH | |
5337 | do | |
5338 | IFS=$as_save_IFS | |
5339 | test -z "$as_dir" && as_dir=. | |
5340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5341 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5342 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5344 | break 2 | |
5345 | fi | |
5346 | done | |
5347 | done | |
5348 | IFS=$as_save_IFS | |
5349 | ||
5350 | fi | |
5351 | fi | |
5352 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5353 | if test -n "$OBJDUMP"; then | |
5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5355 | $as_echo "$OBJDUMP" >&6; } | |
5356 | else | |
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5358 | $as_echo "no" >&6; } | |
5359 | fi | |
5360 | ||
5361 | ||
5362 | fi | |
5363 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5364 | ac_ct_OBJDUMP=$OBJDUMP | |
5365 | # Extract the first word of "objdump", so it can be a program name with args. | |
5366 | set dummy objdump; ac_word=$2 | |
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5368 | $as_echo_n "checking for $ac_word... " >&6; } | |
5369 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5370 | $as_echo_n "(cached) " >&6 | |
5371 | else | |
5372 | if test -n "$ac_ct_OBJDUMP"; then | |
5373 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5374 | else | |
5375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5376 | for as_dir in $PATH | |
5377 | do | |
5378 | IFS=$as_save_IFS | |
5379 | test -z "$as_dir" && as_dir=. | |
5380 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5381 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5382 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5384 | break 2 | |
5385 | fi | |
5386 | done | |
5387 | done | |
5388 | IFS=$as_save_IFS | |
5389 | ||
5390 | fi | |
5391 | fi | |
5392 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5393 | if test -n "$ac_ct_OBJDUMP"; then | |
5394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5395 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5396 | else | |
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5398 | $as_echo "no" >&6; } | |
5399 | fi | |
5400 | ||
5401 | if test "x$ac_ct_OBJDUMP" = x; then | |
5402 | OBJDUMP="false" | |
5403 | else | |
5404 | case $cross_compiling:$ac_tool_warned in | |
5405 | yes:) | |
5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5407 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5408 | ac_tool_warned=yes ;; | |
5409 | esac | |
5410 | OBJDUMP=$ac_ct_OBJDUMP | |
5411 | fi | |
5412 | else | |
5413 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5414 | fi | |
5415 | ||
5416 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5417 | ||
5418 | ||
5419 | ||
5420 | ||
5421 | ||
5422 | ||
5423 | ||
5424 | ||
5425 | ||
5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5427 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5428 | if ${lt_cv_deplibs_check_method+:} false; then : | |
5429 | $as_echo_n "(cached) " >&6 | |
5430 | else | |
5431 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5432 | lt_cv_file_magic_test_file= | |
5433 | lt_cv_deplibs_check_method='unknown' | |
5434 | # Need to set the preceding variable on all platforms that support | |
5435 | # interlibrary dependencies. | |
5436 | # 'none' -- dependencies not supported. | |
5437 | # 'unknown' -- same as none, but documents that we really don't know. | |
5438 | # 'pass_all' -- all dependencies passed with no checks. | |
5439 | # 'test_compile' -- check by making test program. | |
5440 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5441 | # that responds to the $file_magic_cmd with a given extended regex. | |
5442 | # If you have 'file' or equivalent on your system and you're not sure | |
5443 | # whether 'pass_all' will *always* work, you probably want this one. | |
5444 | ||
5445 | case $host_os in | |
5446 | aix[4-9]*) | |
5447 | lt_cv_deplibs_check_method=pass_all | |
5448 | ;; | |
5449 | ||
5450 | beos*) | |
5451 | lt_cv_deplibs_check_method=pass_all | |
5452 | ;; | |
5453 | ||
5454 | bsdi[45]*) | |
5455 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5456 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5457 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5458 | ;; | |
5459 | ||
5460 | cygwin*) | |
5461 | # func_win32_libid is a shell function defined in ltmain.sh | |
5462 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5463 | lt_cv_file_magic_cmd='func_win32_libid' | |
5464 | ;; | |
5465 | ||
5466 | mingw* | pw32*) | |
5467 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5468 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5469 | # unless we find 'file', for example because we are cross-compiling. | |
5470 | if ( file / ) >/dev/null 2>&1; then | |
5471 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5472 | lt_cv_file_magic_cmd='func_win32_libid' | |
5473 | else | |
5474 | # Keep this pattern in sync with the one in func_win32_libid. | |
5475 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
5476 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5477 | fi | |
5478 | ;; | |
5479 | ||
5480 | cegcc*) | |
5481 | # use the weaker test based on 'objdump'. See mingw*. | |
5482 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5483 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5484 | ;; | |
5485 | ||
5486 | darwin* | rhapsody*) | |
5487 | lt_cv_deplibs_check_method=pass_all | |
5488 | ;; | |
5489 | ||
5490 | freebsd* | dragonfly*) | |
5491 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5492 | case $host_cpu in | |
5493 | i*86 ) | |
5494 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5495 | # Let's accept both of them until this is cleared up. | |
5496 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5497 | lt_cv_file_magic_cmd=/usr/bin/file | |
5498 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5499 | ;; | |
5500 | esac | |
5501 | else | |
5502 | lt_cv_deplibs_check_method=pass_all | |
5503 | fi | |
5504 | ;; | |
5505 | ||
5506 | haiku*) | |
5507 | lt_cv_deplibs_check_method=pass_all | |
5508 | ;; | |
5509 | ||
5510 | hpux10.20* | hpux11*) | |
5511 | lt_cv_file_magic_cmd=/usr/bin/file | |
5512 | case $host_cpu in | |
5513 | ia64*) | |
5514 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5515 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5516 | ;; | |
5517 | hppa*64*) | |
5518 | 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]' | |
5519 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5520 | ;; | |
5521 | *) | |
5522 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
5523 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5524 | ;; | |
5525 | esac | |
5526 | ;; | |
5527 | ||
5528 | interix[3-9]*) | |
5529 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5530 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5531 | ;; | |
5532 | ||
5533 | irix5* | irix6* | nonstopux*) | |
5534 | case $LD in | |
5535 | *-32|*"-32 ") libmagic=32-bit;; | |
5536 | *-n32|*"-n32 ") libmagic=N32;; | |
5537 | *-64|*"-64 ") libmagic=64-bit;; | |
5538 | *) libmagic=never-match;; | |
5539 | esac | |
5540 | lt_cv_deplibs_check_method=pass_all | |
5541 | ;; | |
5542 | ||
5543 | # This must be glibc/ELF. | |
5544 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
5545 | lt_cv_deplibs_check_method=pass_all | |
5546 | ;; | |
5547 | ||
5548 | netbsd* | netbsdelf*-gnu) | |
5549 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5550 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5551 | else | |
5552 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5553 | fi | |
5554 | ;; | |
5555 | ||
5556 | newos6*) | |
5557 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5558 | lt_cv_file_magic_cmd=/usr/bin/file | |
5559 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5560 | ;; | |
5561 | ||
5562 | *nto* | *qnx*) | |
5563 | lt_cv_deplibs_check_method=pass_all | |
5564 | ;; | |
5565 | ||
5566 | openbsd* | bitrig*) | |
5567 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
5568 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5569 | else | |
5570 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5571 | fi | |
5572 | ;; | |
5573 | ||
5574 | osf3* | osf4* | osf5*) | |
5575 | lt_cv_deplibs_check_method=pass_all | |
5576 | ;; | |
5577 | ||
5578 | rdos*) | |
5579 | lt_cv_deplibs_check_method=pass_all | |
5580 | ;; | |
5581 | ||
5582 | solaris*) | |
5583 | lt_cv_deplibs_check_method=pass_all | |
5584 | ;; | |
5585 | ||
5586 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5587 | lt_cv_deplibs_check_method=pass_all | |
5588 | ;; | |
5589 | ||
5590 | sysv4 | sysv4.3*) | |
5591 | case $host_vendor in | |
5592 | motorola) | |
5593 | 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]' | |
5594 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5595 | ;; | |
5596 | ncr) | |
5597 | lt_cv_deplibs_check_method=pass_all | |
5598 | ;; | |
5599 | sequent) | |
5600 | lt_cv_file_magic_cmd='/bin/file' | |
5601 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5602 | ;; | |
5603 | sni) | |
5604 | lt_cv_file_magic_cmd='/bin/file' | |
5605 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5606 | lt_cv_file_magic_test_file=/lib/libc.so | |
5607 | ;; | |
5608 | siemens) | |
5609 | lt_cv_deplibs_check_method=pass_all | |
5610 | ;; | |
5611 | pc) | |
5612 | lt_cv_deplibs_check_method=pass_all | |
5613 | ;; | |
5614 | esac | |
5615 | ;; | |
5616 | ||
5617 | tpf*) | |
5618 | lt_cv_deplibs_check_method=pass_all | |
5619 | ;; | |
5620 | os2*) | |
5621 | lt_cv_deplibs_check_method=pass_all | |
5622 | ;; | |
5623 | esac | |
5624 | ||
5625 | fi | |
5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5627 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5628 | ||
5629 | file_magic_glob= | |
5630 | want_nocaseglob=no | |
5631 | if test "$build" = "$host"; then | |
5632 | case $host_os in | |
5633 | mingw* | pw32*) | |
5634 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5635 | want_nocaseglob=yes | |
5636 | else | |
5637 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5638 | fi | |
5639 | ;; | |
5640 | esac | |
5641 | fi | |
5642 | ||
5643 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5644 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5645 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5646 | ||
5647 | ||
5648 | ||
5649 | ||
5650 | ||
5651 | ||
5652 | ||
5653 | ||
5654 | ||
5655 | ||
5656 | ||
5657 | ||
5658 | ||
5659 | ||
5660 | ||
5661 | ||
5662 | ||
5663 | ||
5664 | ||
5665 | ||
5666 | ||
5667 | ||
5668 | if test -n "$ac_tool_prefix"; then | |
5669 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5670 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5672 | $as_echo_n "checking for $ac_word... " >&6; } | |
5673 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5674 | $as_echo_n "(cached) " >&6 | |
5675 | else | |
5676 | if test -n "$DLLTOOL"; then | |
5677 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5678 | else | |
5679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5680 | for as_dir in $PATH | |
5681 | do | |
5682 | IFS=$as_save_IFS | |
5683 | test -z "$as_dir" && as_dir=. | |
5684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5686 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5688 | break 2 | |
5689 | fi | |
5690 | done | |
5691 | done | |
5692 | IFS=$as_save_IFS | |
5693 | ||
5694 | fi | |
5695 | fi | |
5696 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5697 | if test -n "$DLLTOOL"; then | |
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5699 | $as_echo "$DLLTOOL" >&6; } | |
5700 | else | |
5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5702 | $as_echo "no" >&6; } | |
5703 | fi | |
5704 | ||
5705 | ||
5706 | fi | |
5707 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5708 | ac_ct_DLLTOOL=$DLLTOOL | |
5709 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5710 | set dummy dlltool; ac_word=$2 | |
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5712 | $as_echo_n "checking for $ac_word... " >&6; } | |
5713 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5714 | $as_echo_n "(cached) " >&6 | |
5715 | else | |
5716 | if test -n "$ac_ct_DLLTOOL"; then | |
5717 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5718 | else | |
5719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5720 | for as_dir in $PATH | |
5721 | do | |
5722 | IFS=$as_save_IFS | |
5723 | test -z "$as_dir" && as_dir=. | |
5724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5725 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5726 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5728 | break 2 | |
5729 | fi | |
5730 | done | |
5731 | done | |
5732 | IFS=$as_save_IFS | |
5733 | ||
5734 | fi | |
5735 | fi | |
5736 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5737 | if test -n "$ac_ct_DLLTOOL"; then | |
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5739 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5740 | else | |
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5742 | $as_echo "no" >&6; } | |
5743 | fi | |
5744 | ||
5745 | if test "x$ac_ct_DLLTOOL" = x; then | |
5746 | DLLTOOL="false" | |
5747 | else | |
5748 | case $cross_compiling:$ac_tool_warned in | |
5749 | yes:) | |
5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5751 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5752 | ac_tool_warned=yes ;; | |
5753 | esac | |
5754 | DLLTOOL=$ac_ct_DLLTOOL | |
5755 | fi | |
5756 | else | |
5757 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5758 | fi | |
5759 | ||
5760 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5761 | ||
5762 | ||
5763 | ||
5764 | ||
5765 | ||
5766 | ||
5767 | ||
5768 | ||
5769 | ||
5770 | ||
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5772 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5773 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5774 | $as_echo_n "(cached) " >&6 | |
5775 | else | |
5776 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5777 | ||
5778 | case $host_os in | |
5779 | cygwin* | mingw* | pw32* | cegcc*) | |
5780 | # two different shell functions defined in ltmain.sh; | |
5781 | # decide which one to use based on capabilities of $DLLTOOL | |
5782 | case `$DLLTOOL --help 2>&1` in | |
5783 | *--identify-strict*) | |
5784 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5785 | ;; | |
5786 | *) | |
5787 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5788 | ;; | |
5789 | esac | |
5790 | ;; | |
5791 | *) | |
5792 | # fallback: assume linklib IS sharedlib | |
5793 | lt_cv_sharedlib_from_linklib_cmd=$ECHO | |
5794 | ;; | |
5795 | esac | |
5796 | ||
5797 | fi | |
5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5799 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5800 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5801 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5802 | ||
5803 | ||
5804 | ||
5805 | ||
5806 | ||
5807 | ||
5808 | ||
5809 | ||
5810 | if test -n "$ac_tool_prefix"; then | |
5811 | for ac_prog in ar | |
5812 | do | |
5813 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5814 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5816 | $as_echo_n "checking for $ac_word... " >&6; } | |
5817 | if ${ac_cv_prog_AR+:} false; then : | |
5818 | $as_echo_n "(cached) " >&6 | |
5819 | else | |
5820 | if test -n "$AR"; then | |
5821 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5822 | else | |
5823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5824 | for as_dir in $PATH | |
5825 | do | |
5826 | IFS=$as_save_IFS | |
5827 | test -z "$as_dir" && as_dir=. | |
5828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5829 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5830 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5832 | break 2 | |
5833 | fi | |
5834 | done | |
5835 | done | |
5836 | IFS=$as_save_IFS | |
5837 | ||
5838 | fi | |
5839 | fi | |
5840 | AR=$ac_cv_prog_AR | |
5841 | if test -n "$AR"; then | |
5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5843 | $as_echo "$AR" >&6; } | |
5844 | else | |
5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5846 | $as_echo "no" >&6; } | |
5847 | fi | |
5848 | ||
5849 | ||
5850 | test -n "$AR" && break | |
5851 | done | |
5852 | fi | |
5853 | if test -z "$AR"; then | |
5854 | ac_ct_AR=$AR | |
5855 | for ac_prog in ar | |
5856 | do | |
5857 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5858 | set dummy $ac_prog; ac_word=$2 | |
5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5860 | $as_echo_n "checking for $ac_word... " >&6; } | |
5861 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5862 | $as_echo_n "(cached) " >&6 | |
5863 | else | |
5864 | if test -n "$ac_ct_AR"; then | |
5865 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5866 | else | |
5867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5868 | for as_dir in $PATH | |
5869 | do | |
5870 | IFS=$as_save_IFS | |
5871 | test -z "$as_dir" && as_dir=. | |
5872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5873 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5874 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5876 | break 2 | |
5877 | fi | |
5878 | done | |
5879 | done | |
5880 | IFS=$as_save_IFS | |
5881 | ||
5882 | fi | |
5883 | fi | |
5884 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5885 | if test -n "$ac_ct_AR"; then | |
5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5887 | $as_echo "$ac_ct_AR" >&6; } | |
5888 | else | |
5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5890 | $as_echo "no" >&6; } | |
5891 | fi | |
5892 | ||
5893 | ||
5894 | test -n "$ac_ct_AR" && break | |
5895 | done | |
5896 | ||
5897 | if test "x$ac_ct_AR" = x; then | |
5898 | AR="false" | |
5899 | else | |
5900 | case $cross_compiling:$ac_tool_warned in | |
5901 | yes:) | |
5902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5903 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5904 | ac_tool_warned=yes ;; | |
5905 | esac | |
5906 | AR=$ac_ct_AR | |
5907 | fi | |
5908 | fi | |
5909 | ||
5910 | : ${AR=ar} | |
5911 | : ${AR_FLAGS=cru} | |
5912 | ||
5913 | ||
5914 | ||
5915 | ||
5916 | ||
5917 | ||
5918 | ||
5919 | ||
5920 | ||
5921 | ||
5922 | ||
5923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
5924 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5925 | if ${lt_cv_ar_at_file+:} false; then : | |
5926 | $as_echo_n "(cached) " >&6 | |
5927 | else | |
5928 | lt_cv_ar_at_file=no | |
5929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5930 | /* end confdefs.h. */ | |
5931 | ||
5932 | int | |
5933 | main () | |
5934 | { | |
5935 | ||
5936 | ; | |
5937 | return 0; | |
5938 | } | |
5939 | _ACEOF | |
5940 | if ac_fn_c_try_compile "$LINENO"; then : | |
5941 | echo conftest.$ac_objext > conftest.lst | |
5942 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5943 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5944 | (eval $lt_ar_try) 2>&5 | |
5945 | ac_status=$? | |
5946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5947 | test $ac_status = 0; } | |
5948 | if test 0 -eq "$ac_status"; then | |
5949 | # Ensure the archiver fails upon bogus file names. | |
5950 | rm -f conftest.$ac_objext libconftest.a | |
5951 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5952 | (eval $lt_ar_try) 2>&5 | |
5953 | ac_status=$? | |
5954 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5955 | test $ac_status = 0; } | |
5956 | if test 0 -ne "$ac_status"; then | |
5957 | lt_cv_ar_at_file=@ | |
5958 | fi | |
5959 | fi | |
5960 | rm -f conftest.* libconftest.a | |
5961 | ||
5962 | fi | |
5963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5964 | ||
5965 | fi | |
5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5967 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
5968 | ||
5969 | if test no = "$lt_cv_ar_at_file"; then | |
5970 | archiver_list_spec= | |
5971 | else | |
5972 | archiver_list_spec=$lt_cv_ar_at_file | |
5973 | fi | |
5974 | ||
5975 | ||
5976 | ||
5977 | ||
5978 | ||
5979 | ||
5980 | ||
5981 | if test -n "$ac_tool_prefix"; then | |
5982 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5983 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5985 | $as_echo_n "checking for $ac_word... " >&6; } | |
5986 | if ${ac_cv_prog_STRIP+:} false; then : | |
5987 | $as_echo_n "(cached) " >&6 | |
5988 | else | |
5989 | if test -n "$STRIP"; then | |
5990 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5991 | else | |
5992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5993 | for as_dir in $PATH | |
5994 | do | |
5995 | IFS=$as_save_IFS | |
5996 | test -z "$as_dir" && as_dir=. | |
5997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5998 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5999 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6001 | break 2 | |
6002 | fi | |
6003 | done | |
6004 | done | |
6005 | IFS=$as_save_IFS | |
6006 | ||
6007 | fi | |
6008 | fi | |
6009 | STRIP=$ac_cv_prog_STRIP | |
6010 | if test -n "$STRIP"; then | |
6011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6012 | $as_echo "$STRIP" >&6; } | |
6013 | else | |
6014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6015 | $as_echo "no" >&6; } | |
6016 | fi | |
6017 | ||
6018 | ||
6019 | fi | |
6020 | if test -z "$ac_cv_prog_STRIP"; then | |
6021 | ac_ct_STRIP=$STRIP | |
6022 | # Extract the first word of "strip", so it can be a program name with args. | |
6023 | set dummy strip; ac_word=$2 | |
6024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6025 | $as_echo_n "checking for $ac_word... " >&6; } | |
6026 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
6027 | $as_echo_n "(cached) " >&6 | |
6028 | else | |
6029 | if test -n "$ac_ct_STRIP"; then | |
6030 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6031 | else | |
6032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6033 | for as_dir in $PATH | |
6034 | do | |
6035 | IFS=$as_save_IFS | |
6036 | test -z "$as_dir" && as_dir=. | |
6037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6038 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6039 | ac_cv_prog_ac_ct_STRIP="strip" | |
6040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6041 | break 2 | |
6042 | fi | |
6043 | done | |
6044 | done | |
6045 | IFS=$as_save_IFS | |
6046 | ||
6047 | fi | |
6048 | fi | |
6049 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6050 | if test -n "$ac_ct_STRIP"; then | |
6051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6052 | $as_echo "$ac_ct_STRIP" >&6; } | |
6053 | else | |
6054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6055 | $as_echo "no" >&6; } | |
6056 | fi | |
6057 | ||
6058 | if test "x$ac_ct_STRIP" = x; then | |
6059 | STRIP=":" | |
6060 | else | |
6061 | case $cross_compiling:$ac_tool_warned in | |
6062 | yes:) | |
6063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6064 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6065 | ac_tool_warned=yes ;; | |
6066 | esac | |
6067 | STRIP=$ac_ct_STRIP | |
6068 | fi | |
6069 | else | |
6070 | STRIP="$ac_cv_prog_STRIP" | |
6071 | fi | |
6072 | ||
6073 | test -z "$STRIP" && STRIP=: | |
6074 | ||
6075 | ||
6076 | ||
6077 | ||
6078 | ||
6079 | ||
6080 | if test -n "$ac_tool_prefix"; then | |
6081 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6082 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6084 | $as_echo_n "checking for $ac_word... " >&6; } | |
6085 | if ${ac_cv_prog_RANLIB+:} false; then : | |
6086 | $as_echo_n "(cached) " >&6 | |
6087 | else | |
6088 | if test -n "$RANLIB"; then | |
6089 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6090 | else | |
6091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6092 | for as_dir in $PATH | |
6093 | do | |
6094 | IFS=$as_save_IFS | |
6095 | test -z "$as_dir" && as_dir=. | |
6096 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6097 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6098 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6100 | break 2 | |
6101 | fi | |
6102 | done | |
6103 | done | |
6104 | IFS=$as_save_IFS | |
6105 | ||
6106 | fi | |
6107 | fi | |
6108 | RANLIB=$ac_cv_prog_RANLIB | |
6109 | if test -n "$RANLIB"; then | |
6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6111 | $as_echo "$RANLIB" >&6; } | |
6112 | else | |
6113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6114 | $as_echo "no" >&6; } | |
6115 | fi | |
6116 | ||
6117 | ||
6118 | fi | |
6119 | if test -z "$ac_cv_prog_RANLIB"; then | |
6120 | ac_ct_RANLIB=$RANLIB | |
6121 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6122 | set dummy ranlib; ac_word=$2 | |
6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6124 | $as_echo_n "checking for $ac_word... " >&6; } | |
6125 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
6126 | $as_echo_n "(cached) " >&6 | |
6127 | else | |
6128 | if test -n "$ac_ct_RANLIB"; then | |
6129 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6130 | else | |
6131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6132 | for as_dir in $PATH | |
6133 | do | |
6134 | IFS=$as_save_IFS | |
6135 | test -z "$as_dir" && as_dir=. | |
6136 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6137 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6138 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6140 | break 2 | |
6141 | fi | |
6142 | done | |
6143 | done | |
6144 | IFS=$as_save_IFS | |
6145 | ||
6146 | fi | |
6147 | fi | |
6148 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6149 | if test -n "$ac_ct_RANLIB"; then | |
6150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6151 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6152 | else | |
6153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6154 | $as_echo "no" >&6; } | |
6155 | fi | |
6156 | ||
6157 | if test "x$ac_ct_RANLIB" = x; then | |
6158 | RANLIB=":" | |
6159 | else | |
6160 | case $cross_compiling:$ac_tool_warned in | |
6161 | yes:) | |
6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6163 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6164 | ac_tool_warned=yes ;; | |
6165 | esac | |
6166 | RANLIB=$ac_ct_RANLIB | |
6167 | fi | |
6168 | else | |
6169 | RANLIB="$ac_cv_prog_RANLIB" | |
6170 | fi | |
6171 | ||
6172 | test -z "$RANLIB" && RANLIB=: | |
6173 | ||
6174 | ||
6175 | ||
6176 | ||
6177 | ||
6178 | ||
6179 | # Determine commands to create old-style static archives. | |
6180 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6181 | old_postinstall_cmds='chmod 644 $oldlib' | |
6182 | old_postuninstall_cmds= | |
6183 | ||
6184 | if test -n "$RANLIB"; then | |
6185 | case $host_os in | |
6186 | bitrig* | openbsd*) | |
6187 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
6188 | ;; | |
6189 | *) | |
6190 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
6191 | ;; | |
6192 | esac | |
6193 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
6194 | fi | |
6195 | ||
6196 | case $host_os in | |
6197 | darwin*) | |
6198 | lock_old_archive_extraction=yes ;; | |
6199 | *) | |
6200 | lock_old_archive_extraction=no ;; | |
6201 | esac | |
6202 | ||
6203 | ||
6204 | ||
6205 | ||
6206 | ||
6207 | ||
6208 | ||
6209 | ||
6210 | ||
6211 | ||
6212 | ||
6213 | ||
6214 | ||
6215 | ||
6216 | ||
6217 | ||
6218 | ||
6219 | ||
6220 | ||
6221 | ||
6222 | ||
6223 | ||
6224 | ||
6225 | ||
6226 | ||
6227 | ||
6228 | ||
6229 | ||
6230 | ||
6231 | ||
6232 | ||
6233 | ||
6234 | ||
6235 | ||
6236 | ||
6237 | ||
6238 | ||
6239 | ||
6240 | ||
6241 | # If no C compiler was specified, use CC. | |
6242 | LTCC=${LTCC-"$CC"} | |
6243 | ||
6244 | # If no C compiler flags were specified, use CFLAGS. | |
6245 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6246 | ||
6247 | # Allow CC to be a program name with arguments. | |
6248 | compiler=$CC | |
6249 | ||
6250 | ||
6251 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6253 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6254 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
6255 | $as_echo_n "(cached) " >&6 | |
6256 | else | |
6257 | ||
6258 | # These are sane defaults that work on at least a few old systems. | |
6259 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6260 | ||
6261 | # Character class describing NM global symbol codes. | |
6262 | symcode='[BCDEGRST]' | |
6263 | ||
6264 | # Regexp to match symbols that can be accessed directly from C. | |
6265 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6266 | ||
6267 | # Define system-specific variables. | |
6268 | case $host_os in | |
6269 | aix*) | |
6270 | symcode='[BCDT]' | |
6271 | ;; | |
6272 | cygwin* | mingw* | pw32* | cegcc*) | |
6273 | symcode='[ABCDGISTW]' | |
6274 | ;; | |
6275 | hpux*) | |
6276 | if test ia64 = "$host_cpu"; then | |
6277 | symcode='[ABCDEGRST]' | |
6278 | fi | |
6279 | ;; | |
6280 | irix* | nonstopux*) | |
6281 | symcode='[BCDEGRST]' | |
6282 | ;; | |
6283 | osf*) | |
6284 | symcode='[BCDEGQRST]' | |
6285 | ;; | |
6286 | solaris*) | |
6287 | symcode='[BDRT]' | |
6288 | ;; | |
6289 | sco3.2v5*) | |
6290 | symcode='[DT]' | |
6291 | ;; | |
6292 | sysv4.2uw2*) | |
6293 | symcode='[DT]' | |
6294 | ;; | |
6295 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6296 | symcode='[ABDT]' | |
6297 | ;; | |
6298 | sysv4) | |
6299 | symcode='[DFNSTU]' | |
6300 | ;; | |
6301 | esac | |
6302 | ||
6303 | # If we're using GNU nm, then use its standard symbol codes. | |
6304 | case `$NM -V 2>&1` in | |
6305 | *GNU* | *'with BFD'*) | |
6306 | symcode='[ABCDGIRSTW]' ;; | |
6307 | esac | |
6308 | ||
6309 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6310 | # Gets list of data symbols to import. | |
6311 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
6312 | # Adjust the below global symbol transforms to fixup imported variables. | |
6313 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
6314 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
6315 | lt_c_name_lib_hook="\ | |
6316 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
6317 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
6318 | else | |
6319 | # Disable hooks by default. | |
6320 | lt_cv_sys_global_symbol_to_import= | |
6321 | lt_cdecl_hook= | |
6322 | lt_c_name_hook= | |
6323 | lt_c_name_lib_hook= | |
6324 | fi | |
6325 | ||
6326 | # Transform an extracted symbol line into a proper C declaration. | |
6327 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6328 | # so use this general approach. | |
6329 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ | |
6330 | $lt_cdecl_hook\ | |
6331 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
6332 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
6333 | ||
6334 | # Transform an extracted symbol line into symbol name and symbol address | |
6335 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ | |
6336 | $lt_c_name_hook\ | |
6337 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6338 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
6339 | ||
6340 | # Transform an extracted symbol line into symbol name with lib prefix and | |
6341 | # symbol address. | |
6342 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
6343 | $lt_c_name_lib_hook\ | |
6344 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6345 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
6346 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
6347 | ||
6348 | # Handle CRLF in mingw tool chain | |
6349 | opt_cr= | |
6350 | case $build_os in | |
6351 | mingw*) | |
6352 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6353 | ;; | |
6354 | esac | |
6355 | ||
6356 | # Try without a prefix underscore, then with it. | |
6357 | for ac_symprfx in "" "_"; do | |
6358 | ||
6359 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6360 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6361 | ||
6362 | # Write the raw and C identifiers. | |
6363 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6364 | # Fake it for dumpbin and say T for any non-static function, | |
6365 | # D for any global variable and I for any imported variable. | |
6366 | # Also find C++ and __fastcall symbols from MSVC++, | |
6367 | # which start with @ or ?. | |
6368 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6369 | " {last_section=section; section=\$ 3};"\ | |
6370 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
6371 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6372 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ | |
6373 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
6374 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
6375 | " \$ 0!~/External *\|/{next};"\ | |
6376 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6377 | " {if(hide[section]) next};"\ | |
6378 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ | |
6379 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
6380 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
6381 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
6382 | " ' prfx=^$ac_symprfx" | |
6383 | else | |
6384 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6385 | fi | |
6386 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
6387 | ||
6388 | # Check to see that the pipe works correctly. | |
6389 | pipe_works=no | |
6390 | ||
6391 | rm -f conftest* | |
6392 | cat > conftest.$ac_ext <<_LT_EOF | |
6393 | #ifdef __cplusplus | |
6394 | extern "C" { | |
6395 | #endif | |
6396 | char nm_test_var; | |
6397 | void nm_test_func(void); | |
6398 | void nm_test_func(void){} | |
6399 | #ifdef __cplusplus | |
6400 | } | |
6401 | #endif | |
6402 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6403 | _LT_EOF | |
6404 | ||
6405 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6406 | (eval $ac_compile) 2>&5 | |
6407 | ac_status=$? | |
6408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6409 | test $ac_status = 0; }; then | |
6410 | # Now try to grab the symbols. | |
6411 | nlist=conftest.nm | |
6412 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6413 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6414 | ac_status=$? | |
6415 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6416 | test $ac_status = 0; } && test -s "$nlist"; then | |
6417 | # Try sorting and uniquifying the output. | |
6418 | if sort "$nlist" | uniq > "$nlist"T; then | |
6419 | mv -f "$nlist"T "$nlist" | |
6420 | else | |
6421 | rm -f "$nlist"T | |
6422 | fi | |
6423 | ||
6424 | # Make sure that we snagged all the symbols we need. | |
6425 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6426 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6427 | cat <<_LT_EOF > conftest.$ac_ext | |
6428 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
6429 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE | |
6430 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
6431 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
6432 | # define LT_DLSYM_CONST | |
6433 | #elif defined __osf__ | |
6434 | /* This system does not cope well with relocations in const data. */ | |
6435 | # define LT_DLSYM_CONST | |
6436 | #else | |
6437 | # define LT_DLSYM_CONST const | |
6438 | #endif | |
6439 | ||
6440 | #ifdef __cplusplus | |
6441 | extern "C" { | |
6442 | #endif | |
6443 | ||
6444 | _LT_EOF | |
6445 | # Now generate the symbol file. | |
6446 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6447 | ||
6448 | cat <<_LT_EOF >> conftest.$ac_ext | |
6449 | ||
6450 | /* The mapping between symbol names and symbols. */ | |
6451 | LT_DLSYM_CONST struct { | |
6452 | const char *name; | |
6453 | void *address; | |
6454 | } | |
6455 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6456 | { | |
6457 | { "@PROGRAM@", (void *) 0 }, | |
6458 | _LT_EOF | |
6459 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6460 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6461 | {0, (void *) 0} | |
6462 | }; | |
6463 | ||
6464 | /* This works around a problem in FreeBSD linker */ | |
6465 | #ifdef FREEBSD_WORKAROUND | |
6466 | static const void *lt_preloaded_setup() { | |
6467 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6468 | } | |
6469 | #endif | |
6470 | ||
6471 | #ifdef __cplusplus | |
6472 | } | |
6473 | #endif | |
6474 | _LT_EOF | |
6475 | # Now try linking the two files. | |
6476 | mv conftest.$ac_objext conftstm.$ac_objext | |
6477 | lt_globsym_save_LIBS=$LIBS | |
6478 | lt_globsym_save_CFLAGS=$CFLAGS | |
6479 | LIBS=conftstm.$ac_objext | |
6480 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6481 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6482 | (eval $ac_link) 2>&5 | |
6483 | ac_status=$? | |
6484 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6485 | test $ac_status = 0; } && test -s conftest$ac_exeext; then | |
6486 | pipe_works=yes | |
6487 | fi | |
6488 | LIBS=$lt_globsym_save_LIBS | |
6489 | CFLAGS=$lt_globsym_save_CFLAGS | |
6490 | else | |
6491 | echo "cannot find nm_test_func in $nlist" >&5 | |
6492 | fi | |
6493 | else | |
6494 | echo "cannot find nm_test_var in $nlist" >&5 | |
6495 | fi | |
6496 | else | |
6497 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6498 | fi | |
6499 | else | |
6500 | echo "$progname: failed program was:" >&5 | |
6501 | cat conftest.$ac_ext >&5 | |
6502 | fi | |
6503 | rm -rf conftest* conftst* | |
6504 | ||
6505 | # Do not use the global_symbol_pipe unless it works. | |
6506 | if test yes = "$pipe_works"; then | |
6507 | break | |
6508 | else | |
6509 | lt_cv_sys_global_symbol_pipe= | |
6510 | fi | |
6511 | done | |
6512 | ||
6513 | fi | |
6514 | ||
6515 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6516 | lt_cv_sys_global_symbol_to_cdecl= | |
6517 | fi | |
6518 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6520 | $as_echo "failed" >&6; } | |
6521 | else | |
6522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6523 | $as_echo "ok" >&6; } | |
6524 | fi | |
6525 | ||
6526 | # Response file support. | |
6527 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6528 | nm_file_list_spec='@' | |
6529 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6530 | nm_file_list_spec='@' | |
6531 | fi | |
6532 | ||
6533 | ||
6534 | ||
6535 | ||
6536 | ||
6537 | ||
6538 | ||
6539 | ||
6540 | ||
6541 | ||
6542 | ||
6543 | ||
6544 | ||
6545 | ||
6546 | ||
6547 | ||
6548 | ||
6549 | ||
6550 | ||
6551 | ||
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | ||
6557 | ||
6558 | ||
6559 | ||
6560 | ||
6561 | ||
6562 | ||
6563 | ||
6564 | ||
6565 | ||
6566 | ||
6567 | ||
6568 | ||
6569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6570 | $as_echo_n "checking for sysroot... " >&6; } | |
6571 | ||
6572 | # Check whether --with-sysroot was given. | |
6573 | if test "${with_sysroot+set}" = set; then : | |
6574 | withval=$with_sysroot; | |
6575 | else | |
6576 | with_sysroot=no | |
6577 | fi | |
6578 | ||
6579 | ||
6580 | lt_sysroot= | |
6581 | case $with_sysroot in #( | |
6582 | yes) | |
6583 | if test yes = "$GCC"; then | |
6584 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
6585 | fi | |
6586 | ;; #( | |
6587 | /*) | |
6588 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6589 | ;; #( | |
6590 | no|'') | |
6591 | ;; #( | |
6592 | *) | |
6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 | |
6594 | $as_echo "$with_sysroot" >&6; } | |
6595 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
6596 | ;; | |
6597 | esac | |
6598 | ||
6599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6600 | $as_echo "${lt_sysroot:-no}" >&6; } | |
6601 | ||
6602 | ||
6603 | ||
6604 | ||
6605 | ||
6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 | |
6607 | $as_echo_n "checking for a working dd... " >&6; } | |
6608 | if ${ac_cv_path_lt_DD+:} false; then : | |
6609 | $as_echo_n "(cached) " >&6 | |
6610 | else | |
6611 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6612 | cat conftest.i conftest.i >conftest2.i | |
6613 | : ${lt_DD:=$DD} | |
6614 | if test -z "$lt_DD"; then | |
6615 | ac_path_lt_DD_found=false | |
6616 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6618 | for as_dir in $PATH | |
6619 | do | |
6620 | IFS=$as_save_IFS | |
6621 | test -z "$as_dir" && as_dir=. | |
6622 | for ac_prog in dd; do | |
6623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6624 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
6625 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
6626 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6627 | cmp -s conftest.i conftest.out \ | |
6628 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
6629 | fi | |
6630 | $ac_path_lt_DD_found && break 3 | |
6631 | done | |
6632 | done | |
6633 | done | |
6634 | IFS=$as_save_IFS | |
6635 | if test -z "$ac_cv_path_lt_DD"; then | |
6636 | : | |
6637 | fi | |
6638 | else | |
6639 | ac_cv_path_lt_DD=$lt_DD | |
6640 | fi | |
6641 | ||
6642 | rm -f conftest.i conftest2.i conftest.out | |
6643 | fi | |
6644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
6645 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
6646 | ||
6647 | ||
6648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
6649 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
6650 | if ${lt_cv_truncate_bin+:} false; then : | |
6651 | $as_echo_n "(cached) " >&6 | |
6652 | else | |
6653 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6654 | cat conftest.i conftest.i >conftest2.i | |
6655 | lt_cv_truncate_bin= | |
6656 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6657 | cmp -s conftest.i conftest.out \ | |
6658 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
6659 | fi | |
6660 | rm -f conftest.i conftest2.i conftest.out | |
6661 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
6662 | fi | |
6663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
6664 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
6665 | ||
6666 | ||
6667 | ||
6668 | ||
6669 | ||
6670 | ||
6671 | ||
6672 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
6673 | func_cc_basename () | |
6674 | { | |
6675 | for cc_temp in $*""; do | |
6676 | case $cc_temp in | |
6677 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6678 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6679 | \-*) ;; | |
6680 | *) break;; | |
6681 | esac | |
6682 | done | |
6683 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
6684 | } | |
6685 | ||
6686 | # Check whether --enable-libtool-lock was given. | |
6687 | if test "${enable_libtool_lock+set}" = set; then : | |
6688 | enableval=$enable_libtool_lock; | |
6689 | fi | |
6690 | ||
6691 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes | |
6692 | ||
6693 | # Some flags need to be propagated to the compiler or linker for good | |
6694 | # libtool support. | |
6695 | case $host in | |
6696 | ia64-*-hpux*) | |
6697 | # Find out what ABI is being produced by ac_compile, and set mode | |
6698 | # options accordingly. | |
6699 | echo 'int i;' > conftest.$ac_ext | |
6700 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6701 | (eval $ac_compile) 2>&5 | |
6702 | ac_status=$? | |
6703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6704 | test $ac_status = 0; }; then | |
6705 | case `/usr/bin/file conftest.$ac_objext` in | |
6706 | *ELF-32*) | |
6707 | HPUX_IA64_MODE=32 | |
6708 | ;; | |
6709 | *ELF-64*) | |
6710 | HPUX_IA64_MODE=64 | |
6711 | ;; | |
6712 | esac | |
6713 | fi | |
6714 | rm -rf conftest* | |
6715 | ;; | |
6716 | *-*-irix6*) | |
6717 | # Find out what ABI is being produced by ac_compile, and set linker | |
6718 | # options accordingly. | |
6719 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6720 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6721 | (eval $ac_compile) 2>&5 | |
6722 | ac_status=$? | |
6723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6724 | test $ac_status = 0; }; then | |
6725 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
6726 | case `/usr/bin/file conftest.$ac_objext` in | |
6727 | *32-bit*) | |
6728 | LD="${LD-ld} -melf32bsmip" | |
6729 | ;; | |
6730 | *N32*) | |
6731 | LD="${LD-ld} -melf32bmipn32" | |
6732 | ;; | |
6733 | *64-bit*) | |
6734 | LD="${LD-ld} -melf64bmip" | |
6735 | ;; | |
6736 | esac | |
6737 | else | |
6738 | case `/usr/bin/file conftest.$ac_objext` in | |
6739 | *32-bit*) | |
6740 | LD="${LD-ld} -32" | |
6741 | ;; | |
6742 | *N32*) | |
6743 | LD="${LD-ld} -n32" | |
6744 | ;; | |
6745 | *64-bit*) | |
6746 | LD="${LD-ld} -64" | |
6747 | ;; | |
6748 | esac | |
6749 | fi | |
6750 | fi | |
6751 | rm -rf conftest* | |
6752 | ;; | |
6753 | ||
6754 | mips64*-*linux*) | |
6755 | # Find out what ABI is being produced by ac_compile, and set linker | |
6756 | # options accordingly. | |
6757 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6758 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6759 | (eval $ac_compile) 2>&5 | |
6760 | ac_status=$? | |
6761 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6762 | test $ac_status = 0; }; then | |
6763 | emul=elf | |
6764 | case `/usr/bin/file conftest.$ac_objext` in | |
6765 | *32-bit*) | |
6766 | emul="${emul}32" | |
6767 | ;; | |
6768 | *64-bit*) | |
6769 | emul="${emul}64" | |
6770 | ;; | |
6771 | esac | |
6772 | case `/usr/bin/file conftest.$ac_objext` in | |
6773 | *MSB*) | |
6774 | emul="${emul}btsmip" | |
6775 | ;; | |
6776 | *LSB*) | |
6777 | emul="${emul}ltsmip" | |
6778 | ;; | |
6779 | esac | |
6780 | case `/usr/bin/file conftest.$ac_objext` in | |
6781 | *N32*) | |
6782 | emul="${emul}n32" | |
6783 | ;; | |
6784 | esac | |
6785 | LD="${LD-ld} -m $emul" | |
6786 | fi | |
6787 | rm -rf conftest* | |
6788 | ;; | |
6789 | ||
6790 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
6791 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6792 | # Find out what ABI is being produced by ac_compile, and set linker | |
6793 | # options accordingly. Note that the listed cases only cover the | |
6794 | # situations where additional linker options are needed (such as when | |
6795 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
6796 | # vice versa); the common cases where no linker options are needed do | |
6797 | # not appear in the list. | |
6798 | echo 'int i;' > conftest.$ac_ext | |
6799 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6800 | (eval $ac_compile) 2>&5 | |
6801 | ac_status=$? | |
6802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6803 | test $ac_status = 0; }; then | |
6804 | case `/usr/bin/file conftest.o` in | |
6805 | *32-bit*) | |
6806 | case $host in | |
6807 | x86_64-*kfreebsd*-gnu) | |
6808 | LD="${LD-ld} -m elf_i386_fbsd" | |
6809 | ;; | |
6810 | x86_64-*linux*) | |
6811 | case `/usr/bin/file conftest.o` in | |
6812 | *x86-64*) | |
6813 | LD="${LD-ld} -m elf32_x86_64" | |
6814 | ;; | |
6815 | *) | |
6816 | LD="${LD-ld} -m elf_i386" | |
6817 | ;; | |
6818 | esac | |
6819 | ;; | |
6820 | powerpc64le-*linux*) | |
6821 | LD="${LD-ld} -m elf32lppclinux" | |
6822 | ;; | |
6823 | powerpc64-*linux*) | |
6824 | LD="${LD-ld} -m elf32ppclinux" | |
6825 | ;; | |
6826 | s390x-*linux*) | |
6827 | LD="${LD-ld} -m elf_s390" | |
6828 | ;; | |
6829 | sparc64-*linux*) | |
6830 | LD="${LD-ld} -m elf32_sparc" | |
6831 | ;; | |
6832 | esac | |
6833 | ;; | |
6834 | *64-bit*) | |
6835 | case $host in | |
6836 | x86_64-*kfreebsd*-gnu) | |
6837 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6838 | ;; | |
6839 | x86_64-*linux*) | |
6840 | LD="${LD-ld} -m elf_x86_64" | |
6841 | ;; | |
6842 | powerpcle-*linux*) | |
6843 | LD="${LD-ld} -m elf64lppc" | |
6844 | ;; | |
6845 | powerpc-*linux*) | |
6846 | LD="${LD-ld} -m elf64ppc" | |
6847 | ;; | |
6848 | s390*-*linux*|s390*-*tpf*) | |
6849 | LD="${LD-ld} -m elf64_s390" | |
6850 | ;; | |
6851 | sparc*-*linux*) | |
6852 | LD="${LD-ld} -m elf64_sparc" | |
6853 | ;; | |
6854 | esac | |
6855 | ;; | |
6856 | esac | |
6857 | fi | |
6858 | rm -rf conftest* | |
6859 | ;; | |
6860 | ||
6861 | *-*-sco3.2v5*) | |
6862 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6863 | SAVE_CFLAGS=$CFLAGS | |
6864 | CFLAGS="$CFLAGS -belf" | |
6865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6866 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6867 | if ${lt_cv_cc_needs_belf+:} false; then : | |
6868 | $as_echo_n "(cached) " >&6 | |
6869 | else | |
6870 | ac_ext=c | |
6871 | ac_cpp='$CPP $CPPFLAGS' | |
6872 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6873 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6874 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6875 | ||
6876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6877 | /* end confdefs.h. */ | |
6878 | ||
6879 | int | |
6880 | main () | |
6881 | { | |
6882 | ||
6883 | ; | |
6884 | return 0; | |
6885 | } | |
6886 | _ACEOF | |
6887 | if ac_fn_c_try_link "$LINENO"; then : | |
6888 | lt_cv_cc_needs_belf=yes | |
6889 | else | |
6890 | lt_cv_cc_needs_belf=no | |
6891 | fi | |
6892 | rm -f core conftest.err conftest.$ac_objext \ | |
6893 | conftest$ac_exeext conftest.$ac_ext | |
6894 | ac_ext=c | |
6895 | ac_cpp='$CPP $CPPFLAGS' | |
6896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6899 | ||
6900 | fi | |
6901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6902 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6903 | if test yes != "$lt_cv_cc_needs_belf"; then | |
6904 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6905 | CFLAGS=$SAVE_CFLAGS | |
6906 | fi | |
6907 | ;; | |
6908 | *-*solaris*) | |
6909 | # Find out what ABI is being produced by ac_compile, and set linker | |
6910 | # options accordingly. | |
6911 | echo 'int i;' > conftest.$ac_ext | |
6912 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6913 | (eval $ac_compile) 2>&5 | |
6914 | ac_status=$? | |
6915 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6916 | test $ac_status = 0; }; then | |
6917 | case `/usr/bin/file conftest.o` in | |
6918 | *64-bit*) | |
6919 | case $lt_cv_prog_gnu_ld in | |
6920 | yes*) | |
6921 | case $host in | |
6922 | i?86-*-solaris*|x86_64-*-solaris*) | |
6923 | LD="${LD-ld} -m elf_x86_64" | |
6924 | ;; | |
6925 | sparc*-*-solaris*) | |
6926 | LD="${LD-ld} -m elf64_sparc" | |
6927 | ;; | |
6928 | esac | |
6929 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6930 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
6931 | LD=${LD-ld}_sol2 | |
6932 | fi | |
6933 | ;; | |
6934 | *) | |
6935 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6936 | LD="${LD-ld} -64" | |
6937 | fi | |
6938 | ;; | |
6939 | esac | |
6940 | ;; | |
6941 | esac | |
6942 | fi | |
6943 | rm -rf conftest* | |
6944 | ;; | |
6945 | esac | |
6946 | ||
6947 | need_locks=$enable_libtool_lock | |
6948 | ||
6949 | if test -n "$ac_tool_prefix"; then | |
6950 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6951 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6953 | $as_echo_n "checking for $ac_word... " >&6; } | |
6954 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6955 | $as_echo_n "(cached) " >&6 | |
6956 | else | |
6957 | if test -n "$MANIFEST_TOOL"; then | |
6958 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6959 | else | |
6960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6961 | for as_dir in $PATH | |
6962 | do | |
6963 | IFS=$as_save_IFS | |
6964 | test -z "$as_dir" && as_dir=. | |
6965 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6966 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6967 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6969 | break 2 | |
6970 | fi | |
6971 | done | |
6972 | done | |
6973 | IFS=$as_save_IFS | |
6974 | ||
6975 | fi | |
6976 | fi | |
6977 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6978 | if test -n "$MANIFEST_TOOL"; then | |
6979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6980 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6981 | else | |
6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6983 | $as_echo "no" >&6; } | |
6984 | fi | |
6985 | ||
6986 | ||
6987 | fi | |
6988 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6989 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6990 | # Extract the first word of "mt", so it can be a program name with args. | |
6991 | set dummy mt; ac_word=$2 | |
6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6993 | $as_echo_n "checking for $ac_word... " >&6; } | |
6994 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6995 | $as_echo_n "(cached) " >&6 | |
6996 | else | |
6997 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6998 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6999 | else | |
7000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7001 | for as_dir in $PATH | |
7002 | do | |
7003 | IFS=$as_save_IFS | |
7004 | test -z "$as_dir" && as_dir=. | |
7005 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7006 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7007 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7009 | break 2 | |
7010 | fi | |
7011 | done | |
7012 | done | |
7013 | IFS=$as_save_IFS | |
7014 | ||
7015 | fi | |
7016 | fi | |
7017 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7018 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7020 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7021 | else | |
7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7023 | $as_echo "no" >&6; } | |
7024 | fi | |
7025 | ||
7026 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
7027 | MANIFEST_TOOL=":" | |
7028 | else | |
7029 | case $cross_compiling:$ac_tool_warned in | |
7030 | yes:) | |
7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7032 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7033 | ac_tool_warned=yes ;; | |
7034 | esac | |
7035 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7036 | fi | |
7037 | else | |
7038 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7039 | fi | |
7040 | ||
7041 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7043 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7044 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7045 | $as_echo_n "(cached) " >&6 | |
7046 | else | |
7047 | lt_cv_path_mainfest_tool=no | |
7048 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7049 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7050 | cat conftest.err >&5 | |
7051 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7052 | lt_cv_path_mainfest_tool=yes | |
7053 | fi | |
7054 | rm -f conftest* | |
7055 | fi | |
7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7057 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7058 | if test yes != "$lt_cv_path_mainfest_tool"; then | |
7059 | MANIFEST_TOOL=: | |
7060 | fi | |
7061 | ||
7062 | ||
7063 | ||
7064 | ||
7065 | ||
7066 | ||
7067 | case $host_os in | |
7068 | rhapsody* | darwin*) | |
7069 | if test -n "$ac_tool_prefix"; then | |
7070 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7071 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7073 | $as_echo_n "checking for $ac_word... " >&6; } | |
7074 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7075 | $as_echo_n "(cached) " >&6 | |
7076 | else | |
7077 | if test -n "$DSYMUTIL"; then | |
7078 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7079 | else | |
7080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7081 | for as_dir in $PATH | |
7082 | do | |
7083 | IFS=$as_save_IFS | |
7084 | test -z "$as_dir" && as_dir=. | |
7085 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7086 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7087 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7089 | break 2 | |
7090 | fi | |
7091 | done | |
7092 | done | |
7093 | IFS=$as_save_IFS | |
7094 | ||
7095 | fi | |
7096 | fi | |
7097 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7098 | if test -n "$DSYMUTIL"; then | |
7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7100 | $as_echo "$DSYMUTIL" >&6; } | |
7101 | else | |
7102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7103 | $as_echo "no" >&6; } | |
7104 | fi | |
7105 | ||
7106 | ||
7107 | fi | |
7108 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7109 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7110 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7111 | set dummy dsymutil; ac_word=$2 | |
7112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7113 | $as_echo_n "checking for $ac_word... " >&6; } | |
7114 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7115 | $as_echo_n "(cached) " >&6 | |
7116 | else | |
7117 | if test -n "$ac_ct_DSYMUTIL"; then | |
7118 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7119 | else | |
7120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7121 | for as_dir in $PATH | |
7122 | do | |
7123 | IFS=$as_save_IFS | |
7124 | test -z "$as_dir" && as_dir=. | |
7125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7126 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7127 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7129 | break 2 | |
7130 | fi | |
7131 | done | |
7132 | done | |
7133 | IFS=$as_save_IFS | |
7134 | ||
7135 | fi | |
7136 | fi | |
7137 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7138 | if test -n "$ac_ct_DSYMUTIL"; then | |
7139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7140 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7141 | else | |
7142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7143 | $as_echo "no" >&6; } | |
7144 | fi | |
7145 | ||
7146 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7147 | DSYMUTIL=":" | |
7148 | else | |
7149 | case $cross_compiling:$ac_tool_warned in | |
7150 | yes:) | |
7151 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7152 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7153 | ac_tool_warned=yes ;; | |
7154 | esac | |
7155 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7156 | fi | |
7157 | else | |
7158 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7159 | fi | |
7160 | ||
7161 | if test -n "$ac_tool_prefix"; then | |
7162 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7163 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7165 | $as_echo_n "checking for $ac_word... " >&6; } | |
7166 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
7167 | $as_echo_n "(cached) " >&6 | |
7168 | else | |
7169 | if test -n "$NMEDIT"; then | |
7170 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7171 | else | |
7172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7173 | for as_dir in $PATH | |
7174 | do | |
7175 | IFS=$as_save_IFS | |
7176 | test -z "$as_dir" && as_dir=. | |
7177 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7178 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7179 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7180 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7181 | break 2 | |
7182 | fi | |
7183 | done | |
7184 | done | |
7185 | IFS=$as_save_IFS | |
7186 | ||
7187 | fi | |
7188 | fi | |
7189 | NMEDIT=$ac_cv_prog_NMEDIT | |
7190 | if test -n "$NMEDIT"; then | |
7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7192 | $as_echo "$NMEDIT" >&6; } | |
7193 | else | |
7194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7195 | $as_echo "no" >&6; } | |
7196 | fi | |
7197 | ||
7198 | ||
7199 | fi | |
7200 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7201 | ac_ct_NMEDIT=$NMEDIT | |
7202 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7203 | set dummy nmedit; ac_word=$2 | |
7204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7205 | $as_echo_n "checking for $ac_word... " >&6; } | |
7206 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7207 | $as_echo_n "(cached) " >&6 | |
7208 | else | |
7209 | if test -n "$ac_ct_NMEDIT"; then | |
7210 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7211 | else | |
7212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7213 | for as_dir in $PATH | |
7214 | do | |
7215 | IFS=$as_save_IFS | |
7216 | test -z "$as_dir" && as_dir=. | |
7217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7219 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7221 | break 2 | |
7222 | fi | |
7223 | done | |
7224 | done | |
7225 | IFS=$as_save_IFS | |
7226 | ||
7227 | fi | |
7228 | fi | |
7229 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7230 | if test -n "$ac_ct_NMEDIT"; then | |
7231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7232 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7233 | else | |
7234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7235 | $as_echo "no" >&6; } | |
7236 | fi | |
7237 | ||
7238 | if test "x$ac_ct_NMEDIT" = x; then | |
7239 | NMEDIT=":" | |
7240 | else | |
7241 | case $cross_compiling:$ac_tool_warned in | |
7242 | yes:) | |
7243 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7244 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7245 | ac_tool_warned=yes ;; | |
7246 | esac | |
7247 | NMEDIT=$ac_ct_NMEDIT | |
7248 | fi | |
7249 | else | |
7250 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7251 | fi | |
7252 | ||
7253 | if test -n "$ac_tool_prefix"; then | |
7254 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7255 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7257 | $as_echo_n "checking for $ac_word... " >&6; } | |
7258 | if ${ac_cv_prog_LIPO+:} false; then : | |
7259 | $as_echo_n "(cached) " >&6 | |
7260 | else | |
7261 | if test -n "$LIPO"; then | |
7262 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7263 | else | |
7264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7265 | for as_dir in $PATH | |
7266 | do | |
7267 | IFS=$as_save_IFS | |
7268 | test -z "$as_dir" && as_dir=. | |
7269 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7270 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7271 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7273 | break 2 | |
7274 | fi | |
7275 | done | |
7276 | done | |
7277 | IFS=$as_save_IFS | |
7278 | ||
7279 | fi | |
7280 | fi | |
7281 | LIPO=$ac_cv_prog_LIPO | |
7282 | if test -n "$LIPO"; then | |
7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7284 | $as_echo "$LIPO" >&6; } | |
7285 | else | |
7286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7287 | $as_echo "no" >&6; } | |
7288 | fi | |
7289 | ||
7290 | ||
7291 | fi | |
7292 | if test -z "$ac_cv_prog_LIPO"; then | |
7293 | ac_ct_LIPO=$LIPO | |
7294 | # Extract the first word of "lipo", so it can be a program name with args. | |
7295 | set dummy lipo; ac_word=$2 | |
7296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7297 | $as_echo_n "checking for $ac_word... " >&6; } | |
7298 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7299 | $as_echo_n "(cached) " >&6 | |
7300 | else | |
7301 | if test -n "$ac_ct_LIPO"; then | |
7302 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7303 | else | |
7304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7305 | for as_dir in $PATH | |
7306 | do | |
7307 | IFS=$as_save_IFS | |
7308 | test -z "$as_dir" && as_dir=. | |
7309 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7310 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7311 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7312 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7313 | break 2 | |
7314 | fi | |
7315 | done | |
7316 | done | |
7317 | IFS=$as_save_IFS | |
7318 | ||
7319 | fi | |
7320 | fi | |
7321 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7322 | if test -n "$ac_ct_LIPO"; then | |
7323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7324 | $as_echo "$ac_ct_LIPO" >&6; } | |
7325 | else | |
7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7327 | $as_echo "no" >&6; } | |
7328 | fi | |
7329 | ||
7330 | if test "x$ac_ct_LIPO" = x; then | |
7331 | LIPO=":" | |
7332 | else | |
7333 | case $cross_compiling:$ac_tool_warned in | |
7334 | yes:) | |
7335 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7336 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7337 | ac_tool_warned=yes ;; | |
7338 | esac | |
7339 | LIPO=$ac_ct_LIPO | |
7340 | fi | |
7341 | else | |
7342 | LIPO="$ac_cv_prog_LIPO" | |
7343 | fi | |
7344 | ||
7345 | if test -n "$ac_tool_prefix"; then | |
7346 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7347 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7349 | $as_echo_n "checking for $ac_word... " >&6; } | |
7350 | if ${ac_cv_prog_OTOOL+:} false; then : | |
7351 | $as_echo_n "(cached) " >&6 | |
7352 | else | |
7353 | if test -n "$OTOOL"; then | |
7354 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7355 | else | |
7356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357 | for as_dir in $PATH | |
7358 | do | |
7359 | IFS=$as_save_IFS | |
7360 | test -z "$as_dir" && as_dir=. | |
7361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7362 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7363 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7365 | break 2 | |
7366 | fi | |
7367 | done | |
7368 | done | |
7369 | IFS=$as_save_IFS | |
7370 | ||
7371 | fi | |
7372 | fi | |
7373 | OTOOL=$ac_cv_prog_OTOOL | |
7374 | if test -n "$OTOOL"; then | |
7375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7376 | $as_echo "$OTOOL" >&6; } | |
7377 | else | |
7378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7379 | $as_echo "no" >&6; } | |
7380 | fi | |
7381 | ||
7382 | ||
7383 | fi | |
7384 | if test -z "$ac_cv_prog_OTOOL"; then | |
7385 | ac_ct_OTOOL=$OTOOL | |
7386 | # Extract the first word of "otool", so it can be a program name with args. | |
7387 | set dummy otool; ac_word=$2 | |
7388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7389 | $as_echo_n "checking for $ac_word... " >&6; } | |
7390 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7391 | $as_echo_n "(cached) " >&6 | |
7392 | else | |
7393 | if test -n "$ac_ct_OTOOL"; then | |
7394 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7395 | else | |
7396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7397 | for as_dir in $PATH | |
7398 | do | |
7399 | IFS=$as_save_IFS | |
7400 | test -z "$as_dir" && as_dir=. | |
7401 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7402 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7403 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7404 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7405 | break 2 | |
7406 | fi | |
7407 | done | |
7408 | done | |
7409 | IFS=$as_save_IFS | |
7410 | ||
7411 | fi | |
7412 | fi | |
7413 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7414 | if test -n "$ac_ct_OTOOL"; then | |
7415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7416 | $as_echo "$ac_ct_OTOOL" >&6; } | |
7417 | else | |
7418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7419 | $as_echo "no" >&6; } | |
7420 | fi | |
7421 | ||
7422 | if test "x$ac_ct_OTOOL" = x; then | |
7423 | OTOOL=":" | |
7424 | else | |
7425 | case $cross_compiling:$ac_tool_warned in | |
7426 | yes:) | |
7427 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7428 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7429 | ac_tool_warned=yes ;; | |
7430 | esac | |
7431 | OTOOL=$ac_ct_OTOOL | |
7432 | fi | |
7433 | else | |
7434 | OTOOL="$ac_cv_prog_OTOOL" | |
7435 | fi | |
7436 | ||
7437 | if test -n "$ac_tool_prefix"; then | |
7438 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7439 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7441 | $as_echo_n "checking for $ac_word... " >&6; } | |
7442 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
7443 | $as_echo_n "(cached) " >&6 | |
7444 | else | |
7445 | if test -n "$OTOOL64"; then | |
7446 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7447 | else | |
7448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7449 | for as_dir in $PATH | |
7450 | do | |
7451 | IFS=$as_save_IFS | |
7452 | test -z "$as_dir" && as_dir=. | |
7453 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7454 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7455 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7457 | break 2 | |
7458 | fi | |
7459 | done | |
7460 | done | |
7461 | IFS=$as_save_IFS | |
7462 | ||
7463 | fi | |
7464 | fi | |
7465 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7466 | if test -n "$OTOOL64"; then | |
7467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7468 | $as_echo "$OTOOL64" >&6; } | |
7469 | else | |
7470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7471 | $as_echo "no" >&6; } | |
7472 | fi | |
7473 | ||
7474 | ||
7475 | fi | |
7476 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7477 | ac_ct_OTOOL64=$OTOOL64 | |
7478 | # Extract the first word of "otool64", so it can be a program name with args. | |
7479 | set dummy otool64; ac_word=$2 | |
7480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7481 | $as_echo_n "checking for $ac_word... " >&6; } | |
7482 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
7483 | $as_echo_n "(cached) " >&6 | |
7484 | else | |
7485 | if test -n "$ac_ct_OTOOL64"; then | |
7486 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7487 | else | |
7488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7489 | for as_dir in $PATH | |
7490 | do | |
7491 | IFS=$as_save_IFS | |
7492 | test -z "$as_dir" && as_dir=. | |
7493 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7494 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7495 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7496 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7497 | break 2 | |
7498 | fi | |
7499 | done | |
7500 | done | |
7501 | IFS=$as_save_IFS | |
7502 | ||
7503 | fi | |
7504 | fi | |
7505 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7506 | if test -n "$ac_ct_OTOOL64"; then | |
7507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7508 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
7509 | else | |
7510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7511 | $as_echo "no" >&6; } | |
7512 | fi | |
7513 | ||
7514 | if test "x$ac_ct_OTOOL64" = x; then | |
7515 | OTOOL64=":" | |
7516 | else | |
7517 | case $cross_compiling:$ac_tool_warned in | |
7518 | yes:) | |
7519 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7520 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7521 | ac_tool_warned=yes ;; | |
7522 | esac | |
7523 | OTOOL64=$ac_ct_OTOOL64 | |
7524 | fi | |
7525 | else | |
7526 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7527 | fi | |
7528 | ||
7529 | ||
7530 | ||
7531 | ||
7532 | ||
7533 | ||
7534 | ||
7535 | ||
7536 | ||
7537 | ||
7538 | ||
7539 | ||
7540 | ||
7541 | ||
7542 | ||
7543 | ||
7544 | ||
7545 | ||
7546 | ||
7547 | ||
7548 | ||
7549 | ||
7550 | ||
7551 | ||
7552 | ||
7553 | ||
7554 | ||
7555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7556 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7557 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
7558 | $as_echo_n "(cached) " >&6 | |
7559 | else | |
7560 | lt_cv_apple_cc_single_mod=no | |
7561 | if test -z "$LT_MULTI_MODULE"; then | |
7562 | # By default we will add the -single_module flag. You can override | |
7563 | # by either setting the environment variable LT_MULTI_MODULE | |
7564 | # non-empty at configure time, or by adding -multi_module to the | |
7565 | # link flags. | |
7566 | rm -rf libconftest.dylib* | |
7567 | echo "int foo(void){return 1;}" > conftest.c | |
7568 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7569 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7570 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7571 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7572 | _lt_result=$? | |
7573 | # If there is a non-empty error log, and "single_module" | |
7574 | # appears in it, assume the flag caused a linker warning | |
7575 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7576 | cat conftest.err >&5 | |
7577 | # Otherwise, if the output was created with a 0 exit code from | |
7578 | # the compiler, it worked. | |
7579 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then | |
7580 | lt_cv_apple_cc_single_mod=yes | |
7581 | else | |
7582 | cat conftest.err >&5 | |
7583 | fi | |
7584 | rm -rf libconftest.dylib* | |
7585 | rm -f conftest.* | |
7586 | fi | |
7587 | fi | |
7588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7589 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7590 | ||
7591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7592 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7593 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
7594 | $as_echo_n "(cached) " >&6 | |
7595 | else | |
7596 | lt_cv_ld_exported_symbols_list=no | |
7597 | save_LDFLAGS=$LDFLAGS | |
7598 | echo "_main" > conftest.sym | |
7599 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7601 | /* end confdefs.h. */ | |
7602 | ||
7603 | int | |
7604 | main () | |
7605 | { | |
7606 | ||
7607 | ; | |
7608 | return 0; | |
7609 | } | |
7610 | _ACEOF | |
7611 | if ac_fn_c_try_link "$LINENO"; then : | |
7612 | lt_cv_ld_exported_symbols_list=yes | |
7613 | else | |
7614 | lt_cv_ld_exported_symbols_list=no | |
7615 | fi | |
7616 | rm -f core conftest.err conftest.$ac_objext \ | |
7617 | conftest$ac_exeext conftest.$ac_ext | |
7618 | LDFLAGS=$save_LDFLAGS | |
7619 | ||
7620 | fi | |
7621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7622 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7623 | ||
7624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7625 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7626 | if ${lt_cv_ld_force_load+:} false; then : | |
7627 | $as_echo_n "(cached) " >&6 | |
7628 | else | |
7629 | lt_cv_ld_force_load=no | |
7630 | cat > conftest.c << _LT_EOF | |
7631 | int forced_loaded() { return 2;} | |
7632 | _LT_EOF | |
7633 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7634 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7635 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7636 | $AR cru libconftest.a conftest.o 2>&5 | |
7637 | echo "$RANLIB libconftest.a" >&5 | |
7638 | $RANLIB libconftest.a 2>&5 | |
7639 | cat > conftest.c << _LT_EOF | |
7640 | int main() { return 0;} | |
7641 | _LT_EOF | |
7642 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7643 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7644 | _lt_result=$? | |
7645 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7646 | cat conftest.err >&5 | |
7647 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then | |
7648 | lt_cv_ld_force_load=yes | |
7649 | else | |
7650 | cat conftest.err >&5 | |
7651 | fi | |
7652 | rm -f conftest.err libconftest.a conftest conftest.c | |
7653 | rm -rf conftest.dSYM | |
7654 | ||
7655 | fi | |
7656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7657 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
7658 | case $host_os in | |
7659 | rhapsody* | darwin1.[012]) | |
7660 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; | |
7661 | darwin1.*) | |
7662 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
7663 | darwin*) # darwin 5.x on | |
7664 | # if running on 10.5 or later, the deployment target defaults | |
7665 | # to the OS version, if on x86, and 10.4, the deployment | |
7666 | # target defaults to 10.4. Don't you love it? | |
7667 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7668 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7669 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
7670 | 10.[012][,.]*) | |
7671 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
7672 | 10.*) | |
7673 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
7674 | esac | |
7675 | ;; | |
7676 | esac | |
7677 | if test yes = "$lt_cv_apple_cc_single_mod"; then | |
7678 | _lt_dar_single_mod='$single_module' | |
7679 | fi | |
7680 | if test yes = "$lt_cv_ld_exported_symbols_list"; then | |
7681 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
7682 | else | |
7683 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' | |
7684 | fi | |
7685 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then | |
7686 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7687 | else | |
7688 | _lt_dsymutil= | |
7689 | fi | |
7690 | ;; | |
7691 | esac | |
7692 | ||
7693 | # func_munge_path_list VARIABLE PATH | |
7694 | # ----------------------------------- | |
7695 | # VARIABLE is name of variable containing _space_ separated list of | |
7696 | # directories to be munged by the contents of PATH, which is string | |
7697 | # having a format: | |
7698 | # "DIR[:DIR]:" | |
7699 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
7700 | # ":DIR[:DIR]" | |
7701 | # string "DIR[ DIR]" will be appended to VARIABLE | |
7702 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
7703 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
7704 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
7705 | # "DIR[:DIR]" | |
7706 | # VARIABLE will be replaced by "DIR[ DIR]" | |
7707 | func_munge_path_list () | |
7708 | { | |
7709 | case x$2 in | |
7710 | x) | |
7711 | ;; | |
7712 | *:) | |
7713 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
7714 | ;; | |
7715 | x:*) | |
7716 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
7717 | ;; | |
7718 | *::*) | |
7719 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
7720 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
7721 | ;; | |
7722 | *) | |
7723 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
7724 | ;; | |
7725 | esac | |
7726 | } | |
7727 | ||
7728 | ac_ext=c | |
7729 | ac_cpp='$CPP $CPPFLAGS' | |
7730 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7731 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7732 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
7734 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7735 | # On Suns, sometimes $CPP names a directory. | |
7736 | if test -n "$CPP" && test -d "$CPP"; then | |
7737 | CPP= | |
7738 | fi | |
7739 | if test -z "$CPP"; then | |
7740 | if ${ac_cv_prog_CPP+:} false; then : | |
7741 | $as_echo_n "(cached) " >&6 | |
7742 | else | |
7743 | # Double quotes because CPP needs to be expanded | |
7744 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7745 | do | |
7746 | ac_preproc_ok=false | |
7747 | for ac_c_preproc_warn_flag in '' yes | |
7748 | do | |
7749 | # Use a header file that comes with gcc, so configuring glibc | |
7750 | # with a fresh cross-compiler works. | |
7751 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7752 | # <limits.h> exists even on freestanding compilers. | |
7753 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7754 | # not just through cpp. "Syntax error" is here to catch this case. | |
7755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7756 | /* end confdefs.h. */ | |
7757 | #ifdef __STDC__ | |
7758 | # include <limits.h> | |
7759 | #else | |
7760 | # include <assert.h> | |
7761 | #endif | |
7762 | Syntax error | |
7763 | _ACEOF | |
7764 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7765 | ||
7766 | else | |
7767 | # Broken: fails on valid input. | |
7768 | continue | |
7769 | fi | |
7770 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7771 | ||
7772 | # OK, works on sane cases. Now check whether nonexistent headers | |
7773 | # can be detected and how. | |
7774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7775 | /* end confdefs.h. */ | |
7776 | #include <ac_nonexistent.h> | |
7777 | _ACEOF | |
7778 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7779 | # Broken: success on invalid input. | |
7780 | continue | |
7781 | else | |
7782 | # Passes both tests. | |
7783 | ac_preproc_ok=: | |
7784 | break | |
7785 | fi | |
7786 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7787 | ||
7788 | done | |
7789 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7790 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7791 | if $ac_preproc_ok; then : | |
7792 | break | |
7793 | fi | |
7794 | ||
7795 | done | |
7796 | ac_cv_prog_CPP=$CPP | |
7797 | ||
7798 | fi | |
7799 | CPP=$ac_cv_prog_CPP | |
7800 | else | |
7801 | ac_cv_prog_CPP=$CPP | |
7802 | fi | |
7803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
7804 | $as_echo "$CPP" >&6; } | |
7805 | ac_preproc_ok=false | |
7806 | for ac_c_preproc_warn_flag in '' yes | |
7807 | do | |
7808 | # Use a header file that comes with gcc, so configuring glibc | |
7809 | # with a fresh cross-compiler works. | |
7810 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7811 | # <limits.h> exists even on freestanding compilers. | |
7812 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7813 | # not just through cpp. "Syntax error" is here to catch this case. | |
7814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7815 | /* end confdefs.h. */ | |
7816 | #ifdef __STDC__ | |
7817 | # include <limits.h> | |
7818 | #else | |
7819 | # include <assert.h> | |
7820 | #endif | |
7821 | Syntax error | |
7822 | _ACEOF | |
7823 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7824 | ||
7825 | else | |
7826 | # Broken: fails on valid input. | |
7827 | continue | |
7828 | fi | |
7829 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7830 | ||
7831 | # OK, works on sane cases. Now check whether nonexistent headers | |
7832 | # can be detected and how. | |
7833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7834 | /* end confdefs.h. */ | |
7835 | #include <ac_nonexistent.h> | |
7836 | _ACEOF | |
7837 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7838 | # Broken: success on invalid input. | |
7839 | continue | |
7840 | else | |
7841 | # Passes both tests. | |
7842 | ac_preproc_ok=: | |
7843 | break | |
7844 | fi | |
7845 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7846 | ||
7847 | done | |
7848 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7849 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7850 | if $ac_preproc_ok; then : | |
7851 | ||
7852 | else | |
7853 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7854 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7855 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
7856 | See \`config.log' for more details" "$LINENO" 5; } | |
7857 | fi | |
7858 | ||
7859 | ac_ext=c | |
7860 | ac_cpp='$CPP $CPPFLAGS' | |
7861 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7862 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7863 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7864 | ||
7865 | ||
7866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
7867 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7868 | if ${ac_cv_header_stdc+:} false; then : | |
7869 | $as_echo_n "(cached) " >&6 | |
7870 | else | |
7871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7872 | /* end confdefs.h. */ | |
7873 | #include <stdlib.h> | |
7874 | #include <stdarg.h> | |
7875 | #include <string.h> | |
7876 | #include <float.h> | |
7877 | ||
7878 | int | |
7879 | main () | |
7880 | { | |
7881 | ||
7882 | ; | |
7883 | return 0; | |
7884 | } | |
7885 | _ACEOF | |
7886 | if ac_fn_c_try_compile "$LINENO"; then : | |
7887 | ac_cv_header_stdc=yes | |
7888 | else | |
7889 | ac_cv_header_stdc=no | |
7890 | fi | |
7891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7892 | ||
7893 | if test $ac_cv_header_stdc = yes; then | |
7894 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7896 | /* end confdefs.h. */ | |
7897 | #include <string.h> | |
7898 | ||
7899 | _ACEOF | |
7900 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7901 | $EGREP "memchr" >/dev/null 2>&1; then : | |
7902 | ||
7903 | else | |
7904 | ac_cv_header_stdc=no | |
7905 | fi | |
7906 | rm -f conftest* | |
7907 | ||
7908 | fi | |
7909 | ||
7910 | if test $ac_cv_header_stdc = yes; then | |
7911 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7913 | /* end confdefs.h. */ | |
7914 | #include <stdlib.h> | |
7915 | ||
7916 | _ACEOF | |
7917 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7918 | $EGREP "free" >/dev/null 2>&1; then : | |
7919 | ||
7920 | else | |
7921 | ac_cv_header_stdc=no | |
7922 | fi | |
7923 | rm -f conftest* | |
7924 | ||
7925 | fi | |
7926 | ||
7927 | if test $ac_cv_header_stdc = yes; then | |
7928 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7929 | if test "$cross_compiling" = yes; then : | |
7930 | : | |
7931 | else | |
7932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7933 | /* end confdefs.h. */ | |
7934 | #include <ctype.h> | |
7935 | #include <stdlib.h> | |
7936 | #if ((' ' & 0x0FF) == 0x020) | |
7937 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7938 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7939 | #else | |
7940 | # define ISLOWER(c) \ | |
7941 | (('a' <= (c) && (c) <= 'i') \ | |
7942 | || ('j' <= (c) && (c) <= 'r') \ | |
7943 | || ('s' <= (c) && (c) <= 'z')) | |
7944 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7945 | #endif | |
7946 | ||
7947 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7948 | int | |
7949 | main () | |
7950 | { | |
7951 | int i; | |
7952 | for (i = 0; i < 256; i++) | |
7953 | if (XOR (islower (i), ISLOWER (i)) | |
7954 | || toupper (i) != TOUPPER (i)) | |
7955 | return 2; | |
7956 | return 0; | |
7957 | } | |
7958 | _ACEOF | |
7959 | if ac_fn_c_try_run "$LINENO"; then : | |
7960 | ||
7961 | else | |
7962 | ac_cv_header_stdc=no | |
7963 | fi | |
7964 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7965 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7966 | fi | |
7967 | ||
7968 | fi | |
7969 | fi | |
7970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7971 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7972 | if test $ac_cv_header_stdc = yes; then | |
7973 | ||
7974 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
7975 | ||
7976 | fi | |
7977 | ||
7978 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7979 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7980 | inttypes.h stdint.h unistd.h | |
7981 | do : | |
7982 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7983 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7984 | " | |
7985 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
7986 | cat >>confdefs.h <<_ACEOF | |
7987 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7988 | _ACEOF | |
7989 | ||
7990 | fi | |
7991 | ||
7992 | done | |
7993 | ||
7994 | ||
7995 | for ac_header in dlfcn.h | |
7996 | do : | |
7997 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7998 | " | |
7999 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8000 | cat >>confdefs.h <<_ACEOF | |
8001 | #define HAVE_DLFCN_H 1 | |
8002 | _ACEOF | |
8003 | ||
8004 | fi | |
8005 | ||
8006 | done | |
8007 | ||
8008 | ||
8009 | ||
8010 | ||
8011 | ||
8012 | # Set options | |
8013 | ||
8014 | ||
8015 | ||
8016 | enable_dlopen=no | |
8017 | ||
8018 | ||
8019 | enable_win32_dll=no | |
8020 | ||
8021 | ||
8022 | # Check whether --enable-shared was given. | |
8023 | if test "${enable_shared+set}" = set; then : | |
8024 | enableval=$enable_shared; p=${PACKAGE-default} | |
8025 | case $enableval in | |
8026 | yes) enable_shared=yes ;; | |
8027 | no) enable_shared=no ;; | |
8028 | *) | |
8029 | enable_shared=no | |
8030 | # Look at the argument we got. We use all the common list separators. | |
8031 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8032 | for pkg in $enableval; do | |
8033 | IFS=$lt_save_ifs | |
8034 | if test "X$pkg" = "X$p"; then | |
8035 | enable_shared=yes | |
8036 | fi | |
8037 | done | |
8038 | IFS=$lt_save_ifs | |
8039 | ;; | |
8040 | esac | |
8041 | else | |
8042 | enable_shared=yes | |
8043 | fi | |
8044 | ||
8045 | ||
8046 | ||
8047 | ||
8048 | ||
8049 | ||
8050 | ||
8051 | ||
8052 | ||
8053 | # Check whether --enable-static was given. | |
8054 | if test "${enable_static+set}" = set; then : | |
8055 | enableval=$enable_static; p=${PACKAGE-default} | |
8056 | case $enableval in | |
8057 | yes) enable_static=yes ;; | |
8058 | no) enable_static=no ;; | |
8059 | *) | |
8060 | enable_static=no | |
8061 | # Look at the argument we got. We use all the common list separators. | |
8062 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8063 | for pkg in $enableval; do | |
8064 | IFS=$lt_save_ifs | |
8065 | if test "X$pkg" = "X$p"; then | |
8066 | enable_static=yes | |
8067 | fi | |
8068 | done | |
8069 | IFS=$lt_save_ifs | |
8070 | ;; | |
8071 | esac | |
8072 | else | |
8073 | enable_static=yes | |
8074 | fi | |
8075 | ||
8076 | ||
8077 | ||
8078 | ||
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | ||
8084 | ||
8085 | # Check whether --with-pic was given. | |
8086 | if test "${with_pic+set}" = set; then : | |
8087 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8088 | case $withval in | |
8089 | yes|no) pic_mode=$withval ;; | |
8090 | *) | |
8091 | pic_mode=default | |
8092 | # Look at the argument we got. We use all the common list separators. | |
8093 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8094 | for lt_pkg in $withval; do | |
8095 | IFS=$lt_save_ifs | |
8096 | if test "X$lt_pkg" = "X$lt_p"; then | |
8097 | pic_mode=yes | |
8098 | fi | |
8099 | done | |
8100 | IFS=$lt_save_ifs | |
8101 | ;; | |
8102 | esac | |
8103 | else | |
8104 | pic_mode=default | |
8105 | fi | |
8106 | ||
8107 | ||
8108 | ||
8109 | ||
8110 | ||
8111 | ||
8112 | ||
8113 | ||
8114 | # Check whether --enable-fast-install was given. | |
8115 | if test "${enable_fast_install+set}" = set; then : | |
8116 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8117 | case $enableval in | |
8118 | yes) enable_fast_install=yes ;; | |
8119 | no) enable_fast_install=no ;; | |
8120 | *) | |
8121 | enable_fast_install=no | |
8122 | # Look at the argument we got. We use all the common list separators. | |
8123 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8124 | for pkg in $enableval; do | |
8125 | IFS=$lt_save_ifs | |
8126 | if test "X$pkg" = "X$p"; then | |
8127 | enable_fast_install=yes | |
8128 | fi | |
8129 | done | |
8130 | IFS=$lt_save_ifs | |
8131 | ;; | |
8132 | esac | |
8133 | else | |
8134 | enable_fast_install=yes | |
8135 | fi | |
8136 | ||
8137 | ||
8138 | ||
8139 | ||
8140 | ||
8141 | ||
8142 | ||
8143 | ||
8144 | shared_archive_member_spec= | |
8145 | case $host,$enable_shared in | |
8146 | power*-*-aix[5-9]*,yes) | |
8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
8148 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
8149 | ||
8150 | # Check whether --with-aix-soname was given. | |
8151 | if test "${with_aix_soname+set}" = set; then : | |
8152 | withval=$with_aix_soname; case $withval in | |
8153 | aix|svr4|both) | |
8154 | ;; | |
8155 | *) | |
8156 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
8157 | ;; | |
8158 | esac | |
8159 | lt_cv_with_aix_soname=$with_aix_soname | |
8160 | else | |
8161 | if ${lt_cv_with_aix_soname+:} false; then : | |
8162 | $as_echo_n "(cached) " >&6 | |
8163 | else | |
8164 | lt_cv_with_aix_soname=aix | |
8165 | fi | |
8166 | ||
8167 | with_aix_soname=$lt_cv_with_aix_soname | |
8168 | fi | |
8169 | ||
8170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
8171 | $as_echo "$with_aix_soname" >&6; } | |
8172 | if test aix != "$with_aix_soname"; then | |
8173 | # For the AIX way of multilib, we name the shared archive member | |
8174 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
8175 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
8176 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
8177 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
8178 | if test 64 = "${OBJECT_MODE-32}"; then | |
8179 | shared_archive_member_spec=shr_64 | |
8180 | else | |
8181 | shared_archive_member_spec=shr | |
8182 | fi | |
8183 | fi | |
8184 | ;; | |
8185 | *) | |
8186 | with_aix_soname=aix | |
8187 | ;; | |
8188 | esac | |
8189 | ||
8190 | ||
8191 | ||
8192 | ||
8193 | ||
8194 | ||
8195 | ||
8196 | ||
8197 | ||
8198 | ||
8199 | # This can be used to rebuild libtool when needed | |
8200 | LIBTOOL_DEPS=$ltmain | |
8201 | ||
8202 | # Always use our own libtool. | |
8203 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8204 | ||
8205 | ||
8206 | ||
8207 | ||
8208 | ||
8209 | ||
8210 | ||
8211 | ||
8212 | ||
8213 | ||
8214 | ||
8215 | ||
8216 | ||
8217 | ||
8218 | ||
8219 | ||
8220 | ||
8221 | ||
8222 | ||
8223 | ||
8224 | ||
8225 | ||
8226 | ||
8227 | ||
8228 | ||
8229 | ||
8230 | ||
8231 | ||
8232 | ||
8233 | ||
8234 | test -z "$LN_S" && LN_S="ln -s" | |
8235 | ||
8236 | ||
8237 | ||
8238 | ||
8239 | ||
8240 | ||
8241 | ||
8242 | ||
8243 | ||
8244 | ||
8245 | ||
8246 | ||
8247 | ||
8248 | ||
8249 | if test -n "${ZSH_VERSION+set}"; then | |
8250 | setopt NO_GLOB_SUBST | |
8251 | fi | |
8252 | ||
8253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8254 | $as_echo_n "checking for objdir... " >&6; } | |
8255 | if ${lt_cv_objdir+:} false; then : | |
8256 | $as_echo_n "(cached) " >&6 | |
8257 | else | |
8258 | rm -f .libs 2>/dev/null | |
8259 | mkdir .libs 2>/dev/null | |
8260 | if test -d .libs; then | |
8261 | lt_cv_objdir=.libs | |
8262 | else | |
8263 | # MS-DOS does not allow filenames that begin with a dot. | |
8264 | lt_cv_objdir=_libs | |
8265 | fi | |
8266 | rmdir .libs 2>/dev/null | |
8267 | fi | |
8268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8269 | $as_echo "$lt_cv_objdir" >&6; } | |
8270 | objdir=$lt_cv_objdir | |
8271 | ||
8272 | ||
8273 | ||
8274 | ||
8275 | ||
8276 | cat >>confdefs.h <<_ACEOF | |
8277 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8278 | _ACEOF | |
8279 | ||
8280 | ||
8281 | ||
8282 | ||
8283 | case $host_os in | |
8284 | aix3*) | |
8285 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8286 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8287 | # vanish in a puff of smoke. | |
8288 | if test set != "${COLLECT_NAMES+set}"; then | |
8289 | COLLECT_NAMES= | |
8290 | export COLLECT_NAMES | |
8291 | fi | |
8292 | ;; | |
8293 | esac | |
8294 | ||
8295 | # Global variables: | |
8296 | ofile=libtool | |
8297 | can_build_shared=yes | |
8298 | ||
8299 | # All known linkers require a '.a' archive for static linking (except MSVC, | |
8300 | # which needs '.lib'). | |
8301 | libext=a | |
8302 | ||
8303 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
8304 | ||
8305 | old_CC=$CC | |
8306 | old_CFLAGS=$CFLAGS | |
8307 | ||
8308 | # Set sane defaults for various variables | |
8309 | test -z "$CC" && CC=cc | |
8310 | test -z "$LTCC" && LTCC=$CC | |
8311 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8312 | test -z "$LD" && LD=ld | |
8313 | test -z "$ac_objext" && ac_objext=o | |
8314 | ||
8315 | func_cc_basename $compiler | |
8316 | cc_basename=$func_cc_basename_result | |
8317 | ||
8318 | ||
8319 | # Only perform the check for file, if the check method requires it | |
8320 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8321 | case $deplibs_check_method in | |
8322 | file_magic*) | |
8323 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8325 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8326 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8327 | $as_echo_n "(cached) " >&6 | |
8328 | else | |
8329 | case $MAGIC_CMD in | |
8330 | [\\/*] | ?:[\\/]*) | |
8331 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
8332 | ;; | |
8333 | *) | |
8334 | lt_save_MAGIC_CMD=$MAGIC_CMD | |
8335 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8336 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8337 | for ac_dir in $ac_dummy; do | |
8338 | IFS=$lt_save_ifs | |
8339 | test -z "$ac_dir" && ac_dir=. | |
8340 | if test -f "$ac_dir/${ac_tool_prefix}file"; then | |
8341 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
8342 | if test -n "$file_magic_test_file"; then | |
8343 | case $deplibs_check_method in | |
8344 | "file_magic "*) | |
8345 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8346 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8347 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8348 | $EGREP "$file_magic_regex" > /dev/null; then | |
8349 | : | |
8350 | else | |
8351 | cat <<_LT_EOF 1>&2 | |
8352 | ||
8353 | *** Warning: the command libtool uses to detect shared libraries, | |
8354 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8355 | *** The result is that libtool may fail to recognize shared libraries | |
8356 | *** as such. This will affect the creation of libtool libraries that | |
8357 | *** depend on shared libraries, but programs linked with such libtool | |
8358 | *** libraries will work regardless of this problem. Nevertheless, you | |
8359 | *** may want to report the problem to your system manager and/or to | |
8360 | *** bug-libtool@gnu.org | |
8361 | ||
8362 | _LT_EOF | |
8363 | fi ;; | |
8364 | esac | |
8365 | fi | |
8366 | break | |
8367 | fi | |
8368 | done | |
8369 | IFS=$lt_save_ifs | |
8370 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8371 | ;; | |
8372 | esac | |
8373 | fi | |
8374 | ||
8375 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8376 | if test -n "$MAGIC_CMD"; then | |
8377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8378 | $as_echo "$MAGIC_CMD" >&6; } | |
8379 | else | |
8380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8381 | $as_echo "no" >&6; } | |
8382 | fi | |
8383 | ||
8384 | ||
8385 | ||
8386 | ||
8387 | ||
8388 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8389 | if test -n "$ac_tool_prefix"; then | |
8390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8391 | $as_echo_n "checking for file... " >&6; } | |
8392 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8393 | $as_echo_n "(cached) " >&6 | |
8394 | else | |
8395 | case $MAGIC_CMD in | |
8396 | [\\/*] | ?:[\\/]*) | |
8397 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
8398 | ;; | |
8399 | *) | |
8400 | lt_save_MAGIC_CMD=$MAGIC_CMD | |
8401 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8402 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8403 | for ac_dir in $ac_dummy; do | |
8404 | IFS=$lt_save_ifs | |
8405 | test -z "$ac_dir" && ac_dir=. | |
8406 | if test -f "$ac_dir/file"; then | |
8407 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
8408 | if test -n "$file_magic_test_file"; then | |
8409 | case $deplibs_check_method in | |
8410 | "file_magic "*) | |
8411 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8412 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8413 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8414 | $EGREP "$file_magic_regex" > /dev/null; then | |
8415 | : | |
8416 | else | |
8417 | cat <<_LT_EOF 1>&2 | |
8418 | ||
8419 | *** Warning: the command libtool uses to detect shared libraries, | |
8420 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8421 | *** The result is that libtool may fail to recognize shared libraries | |
8422 | *** as such. This will affect the creation of libtool libraries that | |
8423 | *** depend on shared libraries, but programs linked with such libtool | |
8424 | *** libraries will work regardless of this problem. Nevertheless, you | |
8425 | *** may want to report the problem to your system manager and/or to | |
8426 | *** bug-libtool@gnu.org | |
8427 | ||
8428 | _LT_EOF | |
8429 | fi ;; | |
8430 | esac | |
8431 | fi | |
8432 | break | |
8433 | fi | |
8434 | done | |
8435 | IFS=$lt_save_ifs | |
8436 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8437 | ;; | |
8438 | esac | |
8439 | fi | |
8440 | ||
8441 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8442 | if test -n "$MAGIC_CMD"; then | |
8443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8444 | $as_echo "$MAGIC_CMD" >&6; } | |
8445 | else | |
8446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8447 | $as_echo "no" >&6; } | |
8448 | fi | |
8449 | ||
8450 | ||
8451 | else | |
8452 | MAGIC_CMD=: | |
8453 | fi | |
8454 | fi | |
8455 | ||
8456 | fi | |
8457 | ;; | |
8458 | esac | |
8459 | ||
8460 | # Use C for the default configuration in the libtool script | |
8461 | ||
8462 | lt_save_CC=$CC | |
8463 | ac_ext=c | |
8464 | ac_cpp='$CPP $CPPFLAGS' | |
8465 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8466 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8467 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8468 | ||
8469 | ||
8470 | # Source file extension for C test sources. | |
8471 | ac_ext=c | |
8472 | ||
8473 | # Object file extension for compiled C test sources. | |
8474 | objext=o | |
8475 | objext=$objext | |
8476 | ||
8477 | # Code to be used in simple compile tests | |
8478 | lt_simple_compile_test_code="int some_variable = 0;" | |
8479 | ||
8480 | # Code to be used in simple link tests | |
8481 | lt_simple_link_test_code='int main(){return(0);}' | |
8482 | ||
8483 | ||
8484 | ||
8485 | ||
8486 | ||
8487 | ||
8488 | ||
8489 | # If no C compiler was specified, use CC. | |
8490 | LTCC=${LTCC-"$CC"} | |
8491 | ||
8492 | # If no C compiler flags were specified, use CFLAGS. | |
8493 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8494 | ||
8495 | # Allow CC to be a program name with arguments. | |
8496 | compiler=$CC | |
8497 | ||
8498 | # Save the default compiler, since it gets overwritten when the other | |
8499 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8500 | compiler_DEFAULT=$CC | |
8501 | ||
8502 | # save warnings/boilerplate of simple test code | |
8503 | ac_outfile=conftest.$ac_objext | |
8504 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8505 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8506 | _lt_compiler_boilerplate=`cat conftest.err` | |
8507 | $RM conftest* | |
8508 | ||
8509 | ac_outfile=conftest.$ac_objext | |
8510 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8511 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8512 | _lt_linker_boilerplate=`cat conftest.err` | |
8513 | $RM -r conftest* | |
8514 | ||
8515 | ||
8516 | ## CAVEAT EMPTOR: | |
8517 | ## There is no encapsulation within the following macros, do not change | |
8518 | ## the running order or otherwise move them around unless you know exactly | |
8519 | ## what you are doing... | |
8520 | if test -n "$compiler"; then | |
8521 | ||
8522 | lt_prog_compiler_no_builtin_flag= | |
8523 | ||
8524 | if test yes = "$GCC"; then | |
8525 | case $cc_basename in | |
8526 | nvcc*) | |
8527 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8528 | *) | |
8529 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8530 | esac | |
8531 | ||
8532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8533 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8534 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8535 | $as_echo_n "(cached) " >&6 | |
8536 | else | |
8537 | lt_cv_prog_compiler_rtti_exceptions=no | |
8538 | ac_outfile=conftest.$ac_objext | |
8539 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8540 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment | |
8541 | # Insert the option either (1) after the last *FLAGS variable, or | |
8542 | # (2) before a word containing "conftest.", or (3) at the end. | |
8543 | # Note that $ac_compile itself does not contain backslashes and begins | |
8544 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8545 | # The option is referenced via a variable to avoid confusing sed. | |
8546 | lt_compile=`echo "$ac_compile" | $SED \ | |
8547 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8548 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8549 | -e 's:$: $lt_compiler_flag:'` | |
8550 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8551 | (eval "$lt_compile" 2>conftest.err) | |
8552 | ac_status=$? | |
8553 | cat conftest.err >&5 | |
8554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8555 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8556 | # The compiler can only warn and ignore the option if not recognized | |
8557 | # So say no if there are warnings other than the usual output. | |
8558 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8559 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8560 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8561 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8562 | fi | |
8563 | fi | |
8564 | $RM conftest* | |
8565 | ||
8566 | fi | |
8567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8568 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8569 | ||
8570 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then | |
8571 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8572 | else | |
8573 | : | |
8574 | fi | |
8575 | ||
8576 | fi | |
8577 | ||
8578 | ||
8579 | ||
8580 | ||
8581 | ||
8582 | ||
8583 | lt_prog_compiler_wl= | |
8584 | lt_prog_compiler_pic= | |
8585 | lt_prog_compiler_static= | |
8586 | ||
8587 | ||
8588 | if test yes = "$GCC"; then | |
8589 | lt_prog_compiler_wl='-Wl,' | |
8590 | lt_prog_compiler_static='-static' | |
8591 | ||
8592 | case $host_os in | |
8593 | aix*) | |
8594 | # All AIX code is PIC. | |
8595 | if test ia64 = "$host_cpu"; then | |
8596 | # AIX 5 now supports IA64 processor | |
8597 | lt_prog_compiler_static='-Bstatic' | |
8598 | fi | |
8599 | lt_prog_compiler_pic='-fPIC' | |
8600 | ;; | |
8601 | ||
8602 | amigaos*) | |
8603 | case $host_cpu in | |
8604 | powerpc) | |
8605 | # see comment about AmigaOS4 .so support | |
8606 | lt_prog_compiler_pic='-fPIC' | |
8607 | ;; | |
8608 | m68k) | |
8609 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8610 | # adding the '-m68020' flag to GCC prevents building anything better, | |
8611 | # like '-m68040'. | |
8612 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8613 | ;; | |
8614 | esac | |
8615 | ;; | |
8616 | ||
8617 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8618 | # PIC is the default for these OSes. | |
8619 | ;; | |
8620 | ||
8621 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8622 | # This hack is so that the source file can tell whether it is being | |
8623 | # built for inclusion in a dll (and should export symbols for example). | |
8624 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8625 | # (--disable-auto-import) libraries | |
8626 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8627 | case $host_os in | |
8628 | os2*) | |
8629 | lt_prog_compiler_static='$wl-static' | |
8630 | ;; | |
8631 | esac | |
8632 | ;; | |
8633 | ||
8634 | darwin* | rhapsody*) | |
8635 | # PIC is the default on this platform | |
8636 | # Common symbols not allowed in MH_DYLIB files | |
8637 | lt_prog_compiler_pic='-fno-common' | |
8638 | ;; | |
8639 | ||
8640 | haiku*) | |
8641 | # PIC is the default for Haiku. | |
8642 | # The "-static" flag exists, but is broken. | |
8643 | lt_prog_compiler_static= | |
8644 | ;; | |
8645 | ||
8646 | hpux*) | |
8647 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8648 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8649 | # sets the default TLS model and affects inlining. | |
8650 | case $host_cpu in | |
8651 | hppa*64*) | |
8652 | # +Z the default | |
8653 | ;; | |
8654 | *) | |
8655 | lt_prog_compiler_pic='-fPIC' | |
8656 | ;; | |
8657 | esac | |
8658 | ;; | |
8659 | ||
8660 | interix[3-9]*) | |
8661 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8662 | # Instead, we relocate shared libraries at runtime. | |
8663 | ;; | |
8664 | ||
8665 | msdosdjgpp*) | |
8666 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8667 | # on systems that don't support them. | |
8668 | lt_prog_compiler_can_build_shared=no | |
8669 | enable_shared=no | |
8670 | ;; | |
8671 | ||
8672 | *nto* | *qnx*) | |
8673 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8674 | # it will coredump. | |
8675 | lt_prog_compiler_pic='-fPIC -shared' | |
8676 | ;; | |
8677 | ||
8678 | sysv4*MP*) | |
8679 | if test -d /usr/nec; then | |
8680 | lt_prog_compiler_pic=-Kconform_pic | |
8681 | fi | |
8682 | ;; | |
8683 | ||
8684 | *) | |
8685 | lt_prog_compiler_pic='-fPIC' | |
8686 | ;; | |
8687 | esac | |
8688 | ||
8689 | case $cc_basename in | |
8690 | nvcc*) # Cuda Compiler Driver 2.2 | |
8691 | lt_prog_compiler_wl='-Xlinker ' | |
8692 | if test -n "$lt_prog_compiler_pic"; then | |
8693 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8694 | fi | |
8695 | ;; | |
8696 | esac | |
8697 | else | |
8698 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8699 | case $host_os in | |
8700 | aix*) | |
8701 | lt_prog_compiler_wl='-Wl,' | |
8702 | if test ia64 = "$host_cpu"; then | |
8703 | # AIX 5 now supports IA64 processor | |
8704 | lt_prog_compiler_static='-Bstatic' | |
8705 | else | |
8706 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8707 | fi | |
8708 | ;; | |
8709 | ||
8710 | darwin* | rhapsody*) | |
8711 | # PIC is the default on this platform | |
8712 | # Common symbols not allowed in MH_DYLIB files | |
8713 | lt_prog_compiler_pic='-fno-common' | |
8714 | case $cc_basename in | |
8715 | nagfor*) | |
8716 | # NAG Fortran compiler | |
8717 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8718 | lt_prog_compiler_pic='-PIC' | |
8719 | lt_prog_compiler_static='-Bstatic' | |
8720 | ;; | |
8721 | esac | |
8722 | ;; | |
8723 | ||
8724 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8725 | # This hack is so that the source file can tell whether it is being | |
8726 | # built for inclusion in a dll (and should export symbols for example). | |
8727 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8728 | case $host_os in | |
8729 | os2*) | |
8730 | lt_prog_compiler_static='$wl-static' | |
8731 | ;; | |
8732 | esac | |
8733 | ;; | |
8734 | ||
8735 | hpux9* | hpux10* | hpux11*) | |
8736 | lt_prog_compiler_wl='-Wl,' | |
8737 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8738 | # not for PA HP-UX. | |
8739 | case $host_cpu in | |
8740 | hppa*64*|ia64*) | |
8741 | # +Z the default | |
8742 | ;; | |
8743 | *) | |
8744 | lt_prog_compiler_pic='+Z' | |
8745 | ;; | |
8746 | esac | |
8747 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8748 | lt_prog_compiler_static='$wl-a ${wl}archive' | |
8749 | ;; | |
8750 | ||
8751 | irix5* | irix6* | nonstopux*) | |
8752 | lt_prog_compiler_wl='-Wl,' | |
8753 | # PIC (with -KPIC) is the default. | |
8754 | lt_prog_compiler_static='-non_shared' | |
8755 | ;; | |
8756 | ||
8757 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
8758 | case $cc_basename in | |
8759 | # old Intel for x86_64, which still supported -KPIC. | |
8760 | ecc*) | |
8761 | lt_prog_compiler_wl='-Wl,' | |
8762 | lt_prog_compiler_pic='-KPIC' | |
8763 | lt_prog_compiler_static='-static' | |
8764 | ;; | |
8765 | # icc used to be incompatible with GCC. | |
8766 | # ICC 10 doesn't accept -KPIC any more. | |
8767 | icc* | ifort*) | |
8768 | lt_prog_compiler_wl='-Wl,' | |
8769 | lt_prog_compiler_pic='-fPIC' | |
8770 | lt_prog_compiler_static='-static' | |
8771 | ;; | |
8772 | # Lahey Fortran 8.1. | |
8773 | lf95*) | |
8774 | lt_prog_compiler_wl='-Wl,' | |
8775 | lt_prog_compiler_pic='--shared' | |
8776 | lt_prog_compiler_static='--static' | |
8777 | ;; | |
8778 | nagfor*) | |
8779 | # NAG Fortran compiler | |
8780 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8781 | lt_prog_compiler_pic='-PIC' | |
8782 | lt_prog_compiler_static='-Bstatic' | |
8783 | ;; | |
8784 | tcc*) | |
8785 | # Fabrice Bellard et al's Tiny C Compiler | |
8786 | lt_prog_compiler_wl='-Wl,' | |
8787 | lt_prog_compiler_pic='-fPIC' | |
8788 | lt_prog_compiler_static='-static' | |
8789 | ;; | |
8790 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8791 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8792 | # which looks to be a dead project) | |
8793 | lt_prog_compiler_wl='-Wl,' | |
8794 | lt_prog_compiler_pic='-fpic' | |
8795 | lt_prog_compiler_static='-Bstatic' | |
8796 | ;; | |
8797 | ccc*) | |
8798 | lt_prog_compiler_wl='-Wl,' | |
8799 | # All Alpha code is PIC. | |
8800 | lt_prog_compiler_static='-non_shared' | |
8801 | ;; | |
8802 | xl* | bgxl* | bgf* | mpixl*) | |
8803 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8804 | lt_prog_compiler_wl='-Wl,' | |
8805 | lt_prog_compiler_pic='-qpic' | |
8806 | lt_prog_compiler_static='-qstaticlink' | |
8807 | ;; | |
8808 | *) | |
8809 | case `$CC -V 2>&1 | sed 5q` in | |
8810 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
8811 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8812 | lt_prog_compiler_pic='-KPIC' | |
8813 | lt_prog_compiler_static='-Bstatic' | |
8814 | lt_prog_compiler_wl='' | |
8815 | ;; | |
8816 | *Sun\ F* | *Sun*Fortran*) | |
8817 | lt_prog_compiler_pic='-KPIC' | |
8818 | lt_prog_compiler_static='-Bstatic' | |
8819 | lt_prog_compiler_wl='-Qoption ld ' | |
8820 | ;; | |
8821 | *Sun\ C*) | |
8822 | # Sun C 5.9 | |
8823 | lt_prog_compiler_pic='-KPIC' | |
8824 | lt_prog_compiler_static='-Bstatic' | |
8825 | lt_prog_compiler_wl='-Wl,' | |
8826 | ;; | |
8827 | *Intel*\ [CF]*Compiler*) | |
8828 | lt_prog_compiler_wl='-Wl,' | |
8829 | lt_prog_compiler_pic='-fPIC' | |
8830 | lt_prog_compiler_static='-static' | |
8831 | ;; | |
8832 | *Portland\ Group*) | |
8833 | lt_prog_compiler_wl='-Wl,' | |
8834 | lt_prog_compiler_pic='-fpic' | |
8835 | lt_prog_compiler_static='-Bstatic' | |
8836 | ;; | |
8837 | esac | |
8838 | ;; | |
8839 | esac | |
8840 | ;; | |
8841 | ||
8842 | newsos6) | |
8843 | lt_prog_compiler_pic='-KPIC' | |
8844 | lt_prog_compiler_static='-Bstatic' | |
8845 | ;; | |
8846 | ||
8847 | *nto* | *qnx*) | |
8848 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8849 | # it will coredump. | |
8850 | lt_prog_compiler_pic='-fPIC -shared' | |
8851 | ;; | |
8852 | ||
8853 | osf3* | osf4* | osf5*) | |
8854 | lt_prog_compiler_wl='-Wl,' | |
8855 | # All OSF/1 code is PIC. | |
8856 | lt_prog_compiler_static='-non_shared' | |
8857 | ;; | |
8858 | ||
8859 | rdos*) | |
8860 | lt_prog_compiler_static='-non_shared' | |
8861 | ;; | |
8862 | ||
8863 | solaris*) | |
8864 | lt_prog_compiler_pic='-KPIC' | |
8865 | lt_prog_compiler_static='-Bstatic' | |
8866 | case $cc_basename in | |
8867 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
8868 | lt_prog_compiler_wl='-Qoption ld ';; | |
8869 | *) | |
8870 | lt_prog_compiler_wl='-Wl,';; | |
8871 | esac | |
8872 | ;; | |
8873 | ||
8874 | sunos4*) | |
8875 | lt_prog_compiler_wl='-Qoption ld ' | |
8876 | lt_prog_compiler_pic='-PIC' | |
8877 | lt_prog_compiler_static='-Bstatic' | |
8878 | ;; | |
8879 | ||
8880 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8881 | lt_prog_compiler_wl='-Wl,' | |
8882 | lt_prog_compiler_pic='-KPIC' | |
8883 | lt_prog_compiler_static='-Bstatic' | |
8884 | ;; | |
8885 | ||
8886 | sysv4*MP*) | |
8887 | if test -d /usr/nec; then | |
8888 | lt_prog_compiler_pic='-Kconform_pic' | |
8889 | lt_prog_compiler_static='-Bstatic' | |
8890 | fi | |
8891 | ;; | |
8892 | ||
8893 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8894 | lt_prog_compiler_wl='-Wl,' | |
8895 | lt_prog_compiler_pic='-KPIC' | |
8896 | lt_prog_compiler_static='-Bstatic' | |
8897 | ;; | |
8898 | ||
8899 | unicos*) | |
8900 | lt_prog_compiler_wl='-Wl,' | |
8901 | lt_prog_compiler_can_build_shared=no | |
8902 | ;; | |
8903 | ||
8904 | uts4*) | |
8905 | lt_prog_compiler_pic='-pic' | |
8906 | lt_prog_compiler_static='-Bstatic' | |
8907 | ;; | |
8908 | ||
8909 | *) | |
8910 | lt_prog_compiler_can_build_shared=no | |
8911 | ;; | |
8912 | esac | |
8913 | fi | |
8914 | ||
8915 | case $host_os in | |
8916 | # For platforms that do not support PIC, -DPIC is meaningless: | |
8917 | *djgpp*) | |
8918 | lt_prog_compiler_pic= | |
8919 | ;; | |
8920 | *) | |
8921 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8922 | ;; | |
8923 | esac | |
8924 | ||
8925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8926 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8927 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8928 | $as_echo_n "(cached) " >&6 | |
8929 | else | |
8930 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8931 | fi | |
8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8933 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8934 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
8935 | ||
8936 | # | |
8937 | # Check to make sure the PIC flag actually works. | |
8938 | # | |
8939 | if test -n "$lt_prog_compiler_pic"; then | |
8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8941 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8942 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
8943 | $as_echo_n "(cached) " >&6 | |
8944 | else | |
8945 | lt_cv_prog_compiler_pic_works=no | |
8946 | ac_outfile=conftest.$ac_objext | |
8947 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8948 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment | |
8949 | # Insert the option either (1) after the last *FLAGS variable, or | |
8950 | # (2) before a word containing "conftest.", or (3) at the end. | |
8951 | # Note that $ac_compile itself does not contain backslashes and begins | |
8952 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8953 | # The option is referenced via a variable to avoid confusing sed. | |
8954 | lt_compile=`echo "$ac_compile" | $SED \ | |
8955 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8956 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8957 | -e 's:$: $lt_compiler_flag:'` | |
8958 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8959 | (eval "$lt_compile" 2>conftest.err) | |
8960 | ac_status=$? | |
8961 | cat conftest.err >&5 | |
8962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8963 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8964 | # The compiler can only warn and ignore the option if not recognized | |
8965 | # So say no if there are warnings other than the usual output. | |
8966 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8967 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8968 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8969 | lt_cv_prog_compiler_pic_works=yes | |
8970 | fi | |
8971 | fi | |
8972 | $RM conftest* | |
8973 | ||
8974 | fi | |
8975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8976 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8977 | ||
8978 | if test yes = "$lt_cv_prog_compiler_pic_works"; then | |
8979 | case $lt_prog_compiler_pic in | |
8980 | "" | " "*) ;; | |
8981 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8982 | esac | |
8983 | else | |
8984 | lt_prog_compiler_pic= | |
8985 | lt_prog_compiler_can_build_shared=no | |
8986 | fi | |
8987 | ||
8988 | fi | |
8989 | ||
8990 | ||
8991 | ||
8992 | ||
8993 | ||
8994 | ||
8995 | ||
8996 | ||
8997 | ||
8998 | ||
8999 | ||
9000 | # | |
9001 | # Check to make sure the static flag actually works. | |
9002 | # | |
9003 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9005 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9006 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9007 | $as_echo_n "(cached) " >&6 | |
9008 | else | |
9009 | lt_cv_prog_compiler_static_works=no | |
9010 | save_LDFLAGS=$LDFLAGS | |
9011 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9012 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9013 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9014 | # The linker can only warn and ignore the option if not recognized | |
9015 | # So say no if there are warnings | |
9016 | if test -s conftest.err; then | |
9017 | # Append any errors to the config.log. | |
9018 | cat conftest.err 1>&5 | |
9019 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9020 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9021 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9022 | lt_cv_prog_compiler_static_works=yes | |
9023 | fi | |
9024 | else | |
9025 | lt_cv_prog_compiler_static_works=yes | |
9026 | fi | |
9027 | fi | |
9028 | $RM -r conftest* | |
9029 | LDFLAGS=$save_LDFLAGS | |
9030 | ||
9031 | fi | |
9032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9033 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9034 | ||
9035 | if test yes = "$lt_cv_prog_compiler_static_works"; then | |
9036 | : | |
9037 | else | |
9038 | lt_prog_compiler_static= | |
9039 | fi | |
9040 | ||
9041 | ||
9042 | ||
9043 | ||
9044 | ||
9045 | ||
9046 | ||
9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9048 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9049 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9050 | $as_echo_n "(cached) " >&6 | |
9051 | else | |
9052 | lt_cv_prog_compiler_c_o=no | |
9053 | $RM -r conftest 2>/dev/null | |
9054 | mkdir conftest | |
9055 | cd conftest | |
9056 | mkdir out | |
9057 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9058 | ||
9059 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9060 | # Insert the option either (1) after the last *FLAGS variable, or | |
9061 | # (2) before a word containing "conftest.", or (3) at the end. | |
9062 | # Note that $ac_compile itself does not contain backslashes and begins | |
9063 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9064 | lt_compile=`echo "$ac_compile" | $SED \ | |
9065 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9066 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9067 | -e 's:$: $lt_compiler_flag:'` | |
9068 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9069 | (eval "$lt_compile" 2>out/conftest.err) | |
9070 | ac_status=$? | |
9071 | cat out/conftest.err >&5 | |
9072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9073 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9074 | then | |
9075 | # The compiler can only warn and ignore the option if not recognized | |
9076 | # So say no if there are warnings | |
9077 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9078 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9079 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9080 | lt_cv_prog_compiler_c_o=yes | |
9081 | fi | |
9082 | fi | |
9083 | chmod u+w . 2>&5 | |
9084 | $RM conftest* | |
9085 | # SGI C++ compiler will create directory out/ii_files/ for | |
9086 | # template instantiation | |
9087 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9088 | $RM out/* && rmdir out | |
9089 | cd .. | |
9090 | $RM -r conftest | |
9091 | $RM conftest* | |
9092 | ||
9093 | fi | |
9094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9095 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9096 | ||
9097 | ||
9098 | ||
9099 | ||
9100 | ||
9101 | ||
9102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9103 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9104 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9105 | $as_echo_n "(cached) " >&6 | |
9106 | else | |
9107 | lt_cv_prog_compiler_c_o=no | |
9108 | $RM -r conftest 2>/dev/null | |
9109 | mkdir conftest | |
9110 | cd conftest | |
9111 | mkdir out | |
9112 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9113 | ||
9114 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9115 | # Insert the option either (1) after the last *FLAGS variable, or | |
9116 | # (2) before a word containing "conftest.", or (3) at the end. | |
9117 | # Note that $ac_compile itself does not contain backslashes and begins | |
9118 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9119 | lt_compile=`echo "$ac_compile" | $SED \ | |
9120 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9121 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9122 | -e 's:$: $lt_compiler_flag:'` | |
9123 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9124 | (eval "$lt_compile" 2>out/conftest.err) | |
9125 | ac_status=$? | |
9126 | cat out/conftest.err >&5 | |
9127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9128 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9129 | then | |
9130 | # The compiler can only warn and ignore the option if not recognized | |
9131 | # So say no if there are warnings | |
9132 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9133 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9134 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9135 | lt_cv_prog_compiler_c_o=yes | |
9136 | fi | |
9137 | fi | |
9138 | chmod u+w . 2>&5 | |
9139 | $RM conftest* | |
9140 | # SGI C++ compiler will create directory out/ii_files/ for | |
9141 | # template instantiation | |
9142 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9143 | $RM out/* && rmdir out | |
9144 | cd .. | |
9145 | $RM -r conftest | |
9146 | $RM conftest* | |
9147 | ||
9148 | fi | |
9149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9150 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9151 | ||
9152 | ||
9153 | ||
9154 | ||
9155 | hard_links=nottested | |
9156 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
9157 | # do not overwrite the value of need_locks provided by the user | |
9158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9159 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9160 | hard_links=yes | |
9161 | $RM conftest* | |
9162 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9163 | touch conftest.a | |
9164 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9165 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9167 | $as_echo "$hard_links" >&6; } | |
9168 | if test no = "$hard_links"; then | |
9169 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
9170 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
9171 | need_locks=warn | |
9172 | fi | |
9173 | else | |
9174 | need_locks=no | |
9175 | fi | |
9176 | ||
9177 | ||
9178 | ||
9179 | ||
9180 | ||
9181 | ||
9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9183 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9184 | ||
9185 | runpath_var= | |
9186 | allow_undefined_flag= | |
9187 | always_export_symbols=no | |
9188 | archive_cmds= | |
9189 | archive_expsym_cmds= | |
9190 | compiler_needs_object=no | |
9191 | enable_shared_with_static_runtimes=no | |
9192 | export_dynamic_flag_spec= | |
9193 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9194 | hardcode_automatic=no | |
9195 | hardcode_direct=no | |
9196 | hardcode_direct_absolute=no | |
9197 | hardcode_libdir_flag_spec= | |
9198 | hardcode_libdir_separator= | |
9199 | hardcode_minus_L=no | |
9200 | hardcode_shlibpath_var=unsupported | |
9201 | inherit_rpath=no | |
9202 | link_all_deplibs=unknown | |
9203 | module_cmds= | |
9204 | module_expsym_cmds= | |
9205 | old_archive_from_new_cmds= | |
9206 | old_archive_from_expsyms_cmds= | |
9207 | thread_safe_flag_spec= | |
9208 | whole_archive_flag_spec= | |
9209 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9210 | # included in the symbol list | |
9211 | include_expsyms= | |
9212 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9213 | # it will be wrapped by ' (' and ')$', so one must not match beginning or | |
9214 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
9215 | # as well as any symbol that contains 'd'. | |
9216 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9217 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9218 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9219 | # the symbol is explicitly referenced. Since portable code cannot | |
9220 | # rely on this symbol name, it's probably fine to never include it in | |
9221 | # preloaded symbol tables. | |
9222 | # Exclude shared library initialization/finalization symbols. | |
9223 | extract_expsyms_cmds= | |
9224 | ||
9225 | case $host_os in | |
9226 | cygwin* | mingw* | pw32* | cegcc*) | |
9227 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9228 | # When not using gcc, we currently assume that we are using | |
9229 | # Microsoft Visual C++. | |
9230 | if test yes != "$GCC"; then | |
9231 | with_gnu_ld=no | |
9232 | fi | |
9233 | ;; | |
9234 | interix*) | |
9235 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9236 | with_gnu_ld=yes | |
9237 | ;; | |
9238 | openbsd* | bitrig*) | |
9239 | with_gnu_ld=no | |
9240 | ;; | |
9241 | linux* | k*bsd*-gnu | gnu*) | |
9242 | link_all_deplibs=no | |
9243 | ;; | |
9244 | esac | |
9245 | ||
9246 | ld_shlibs=yes | |
9247 | ||
9248 | # On some targets, GNU ld is compatible enough with the native linker | |
9249 | # that we're better off using the native interface for both. | |
9250 | lt_use_gnu_ld_interface=no | |
9251 | if test yes = "$with_gnu_ld"; then | |
9252 | case $host_os in | |
9253 | aix*) | |
9254 | # The AIX port of GNU ld has always aspired to compatibility | |
9255 | # with the native linker. However, as the warning in the GNU ld | |
9256 | # block says, versions before 2.19.5* couldn't really create working | |
9257 | # shared libraries, regardless of the interface used. | |
9258 | case `$LD -v 2>&1` in | |
9259 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9260 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9261 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9262 | *) | |
9263 | lt_use_gnu_ld_interface=yes | |
9264 | ;; | |
9265 | esac | |
9266 | ;; | |
9267 | *) | |
9268 | lt_use_gnu_ld_interface=yes | |
9269 | ;; | |
9270 | esac | |
9271 | fi | |
9272 | ||
9273 | if test yes = "$lt_use_gnu_ld_interface"; then | |
9274 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9275 | wlarc='$wl' | |
9276 | ||
9277 | # Set some defaults for GNU ld with shared library support. These | |
9278 | # are reset later if shared libraries are not supported. Putting them | |
9279 | # here allows them to be overridden if necessary. | |
9280 | runpath_var=LD_RUN_PATH | |
9281 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9282 | export_dynamic_flag_spec='$wl--export-dynamic' | |
9283 | # ancient GNU ld didn't support --whole-archive et. al. | |
9284 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9285 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
9286 | else | |
9287 | whole_archive_flag_spec= | |
9288 | fi | |
9289 | supports_anon_versioning=no | |
9290 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in | |
9291 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9292 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9293 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9294 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9295 | *\ 2.11.*) ;; # other 2.11 versions | |
9296 | *) supports_anon_versioning=yes ;; | |
9297 | esac | |
9298 | ||
9299 | # See if GNU ld supports shared libraries. | |
9300 | case $host_os in | |
9301 | aix[3-9]*) | |
9302 | # On AIX/PPC, the GNU linker is very broken | |
9303 | if test ia64 != "$host_cpu"; then | |
9304 | ld_shlibs=no | |
9305 | cat <<_LT_EOF 1>&2 | |
9306 | ||
9307 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9308 | *** to be unable to reliably create shared libraries on AIX. | |
9309 | *** Therefore, libtool is disabling shared libraries support. If you | |
9310 | *** really care for shared libraries, you may want to install binutils | |
9311 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9312 | *** You will then need to restart the configuration process. | |
9313 | ||
9314 | _LT_EOF | |
9315 | fi | |
9316 | ;; | |
9317 | ||
9318 | amigaos*) | |
9319 | case $host_cpu in | |
9320 | powerpc) | |
9321 | # see comment about AmigaOS4 .so support | |
9322 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9323 | archive_expsym_cmds='' | |
9324 | ;; | |
9325 | m68k) | |
9326 | 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)' | |
9327 | hardcode_libdir_flag_spec='-L$libdir' | |
9328 | hardcode_minus_L=yes | |
9329 | ;; | |
9330 | esac | |
9331 | ;; | |
9332 | ||
9333 | beos*) | |
9334 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9335 | allow_undefined_flag=unsupported | |
9336 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9337 | # support --undefined. This deserves some investigation. FIXME | |
9338 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9339 | else | |
9340 | ld_shlibs=no | |
9341 | fi | |
9342 | ;; | |
9343 | ||
9344 | cygwin* | mingw* | pw32* | cegcc*) | |
9345 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9346 | # as there is no search path for DLLs. | |
9347 | hardcode_libdir_flag_spec='-L$libdir' | |
9348 | export_dynamic_flag_spec='$wl--export-all-symbols' | |
9349 | allow_undefined_flag=unsupported | |
9350 | always_export_symbols=no | |
9351 | enable_shared_with_static_runtimes=yes | |
9352 | 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' | |
9353 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9354 | ||
9355 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9356 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9357 | # If the export-symbols file already is a .def file, use it as | |
9358 | # is; otherwise, prepend EXPORTS... | |
9359 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9360 | cp $export_symbols $output_objdir/$soname.def; | |
9361 | else | |
9362 | echo EXPORTS > $output_objdir/$soname.def; | |
9363 | cat $export_symbols >> $output_objdir/$soname.def; | |
9364 | fi~ | |
9365 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9366 | else | |
9367 | ld_shlibs=no | |
9368 | fi | |
9369 | ;; | |
9370 | ||
9371 | haiku*) | |
9372 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9373 | link_all_deplibs=yes | |
9374 | ;; | |
9375 | ||
9376 | os2*) | |
9377 | hardcode_libdir_flag_spec='-L$libdir' | |
9378 | hardcode_minus_L=yes | |
9379 | allow_undefined_flag=unsupported | |
9380 | shrext_cmds=.dll | |
9381 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9382 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9383 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9384 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9385 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9386 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9387 | emximp -o $lib $output_objdir/$libname.def' | |
9388 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9389 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9390 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9391 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9392 | prefix_cmds="$SED"~ | |
9393 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9394 | prefix_cmds="$prefix_cmds -e 1d"; | |
9395 | fi~ | |
9396 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9397 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9398 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9399 | emximp -o $lib $output_objdir/$libname.def' | |
9400 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9401 | enable_shared_with_static_runtimes=yes | |
9402 | ;; | |
9403 | ||
9404 | interix[3-9]*) | |
9405 | hardcode_direct=no | |
9406 | hardcode_shlibpath_var=no | |
9407 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
9408 | export_dynamic_flag_spec='$wl-E' | |
9409 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9410 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9411 | # default) and relocated if they conflict, which is a slow very memory | |
9412 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9413 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9414 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9415 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9416 | 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' | |
9417 | ;; | |
9418 | ||
9419 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9420 | tmp_diet=no | |
9421 | if test linux-dietlibc = "$host_os"; then | |
9422 | case $cc_basename in | |
9423 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9424 | esac | |
9425 | fi | |
9426 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9427 | && test no = "$tmp_diet" | |
9428 | then | |
9429 | tmp_addflag=' $pic_flag' | |
9430 | tmp_sharedflag='-shared' | |
9431 | case $cc_basename,$host_cpu in | |
9432 | pgcc*) # Portland Group C compiler | |
9433 | 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' | |
9434 | tmp_addflag=' $pic_flag' | |
9435 | ;; | |
9436 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9437 | # Portland Group f77 and f90 compilers | |
9438 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
9439 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9440 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9441 | tmp_addflag=' -i_dynamic' ;; | |
9442 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9443 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9444 | ifc* | ifort*) # Intel Fortran compiler | |
9445 | tmp_addflag=' -nofor_main' ;; | |
9446 | lf95*) # Lahey Fortran 8.1 | |
9447 | whole_archive_flag_spec= | |
9448 | tmp_sharedflag='--shared' ;; | |
9449 | nagfor*) # NAGFOR 5.3 | |
9450 | tmp_sharedflag='-Wl,-shared' ;; | |
9451 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9452 | tmp_sharedflag='-qmkshrobj' | |
9453 | tmp_addflag= ;; | |
9454 | nvcc*) # Cuda Compiler Driver 2.2 | |
9455 | 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' | |
9456 | compiler_needs_object=yes | |
9457 | ;; | |
9458 | esac | |
9459 | case `$CC -V 2>&1 | sed 5q` in | |
9460 | *Sun\ C*) # Sun C 5.9 | |
9461 | 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' | |
9462 | compiler_needs_object=yes | |
9463 | tmp_sharedflag='-G' ;; | |
9464 | *Sun\ F*) # Sun Fortran 8.3 | |
9465 | tmp_sharedflag='-G' ;; | |
9466 | esac | |
9467 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9468 | ||
9469 | if test yes = "$supports_anon_versioning"; then | |
9470 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9471 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9472 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9473 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
9474 | fi | |
9475 | ||
9476 | case $cc_basename in | |
9477 | tcc*) | |
9478 | export_dynamic_flag_spec='-rdynamic' | |
9479 | ;; | |
9480 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9481 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9482 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9483 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9484 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9485 | if test yes = "$supports_anon_versioning"; then | |
9486 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9487 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9488 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9489 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9490 | fi | |
9491 | ;; | |
9492 | esac | |
9493 | else | |
9494 | ld_shlibs=no | |
9495 | fi | |
9496 | ;; | |
9497 | ||
9498 | netbsd* | netbsdelf*-gnu) | |
9499 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9500 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9501 | wlarc= | |
9502 | else | |
9503 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9504 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9505 | fi | |
9506 | ;; | |
9507 | ||
9508 | solaris*) | |
9509 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9510 | ld_shlibs=no | |
9511 | cat <<_LT_EOF 1>&2 | |
9512 | ||
9513 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9514 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9515 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9516 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9517 | *** your PATH or compiler configuration so that the native linker is | |
9518 | *** used, and then restart. | |
9519 | ||
9520 | _LT_EOF | |
9521 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9522 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9523 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9524 | else | |
9525 | ld_shlibs=no | |
9526 | fi | |
9527 | ;; | |
9528 | ||
9529 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9530 | case `$LD -v 2>&1` in | |
9531 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9532 | ld_shlibs=no | |
9533 | cat <<_LT_EOF 1>&2 | |
9534 | ||
9535 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot | |
9536 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9537 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9538 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9539 | *** your PATH or compiler configuration so that the native linker is | |
9540 | *** used, and then restart. | |
9541 | ||
9542 | _LT_EOF | |
9543 | ;; | |
9544 | *) | |
9545 | # For security reasons, it is highly recommended that you always | |
9546 | # use absolute paths for naming shared libraries, and exclude the | |
9547 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9548 | # requires that you compile everything twice, which is a pain. | |
9549 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9550 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9551 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9552 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9553 | else | |
9554 | ld_shlibs=no | |
9555 | fi | |
9556 | ;; | |
9557 | esac | |
9558 | ;; | |
9559 | ||
9560 | sunos4*) | |
9561 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9562 | wlarc= | |
9563 | hardcode_direct=yes | |
9564 | hardcode_shlibpath_var=no | |
9565 | ;; | |
9566 | ||
9567 | *) | |
9568 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9569 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9570 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9571 | else | |
9572 | ld_shlibs=no | |
9573 | fi | |
9574 | ;; | |
9575 | esac | |
9576 | ||
9577 | if test no = "$ld_shlibs"; then | |
9578 | runpath_var= | |
9579 | hardcode_libdir_flag_spec= | |
9580 | export_dynamic_flag_spec= | |
9581 | whole_archive_flag_spec= | |
9582 | fi | |
9583 | else | |
9584 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9585 | case $host_os in | |
9586 | aix3*) | |
9587 | allow_undefined_flag=unsupported | |
9588 | always_export_symbols=yes | |
9589 | 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' | |
9590 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9591 | # are no directories specified by -L. | |
9592 | hardcode_minus_L=yes | |
9593 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then | |
9594 | # Neither direct hardcoding nor static linking is supported with a | |
9595 | # broken collect2. | |
9596 | hardcode_direct=unsupported | |
9597 | fi | |
9598 | ;; | |
9599 | ||
9600 | aix[4-9]*) | |
9601 | if test ia64 = "$host_cpu"; then | |
9602 | # On IA64, the linker does run time linking by default, so we don't | |
9603 | # have to do anything special. | |
9604 | aix_use_runtimelinking=no | |
9605 | exp_sym_flag='-Bexport' | |
9606 | no_entry_flag= | |
9607 | else | |
9608 | # If we're using GNU nm, then we don't want the "-C" option. | |
9609 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. | |
9610 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
9611 | # weak defined symbols like other global defined symbols, whereas | |
9612 | # GNU nm marks them as "W". | |
9613 | # While the 'weak' keyword is ignored in the Export File, we need | |
9614 | # it in the Import File for the 'aix-soname' feature, so we have | |
9615 | # to replace the "-B" option with "-P" for AIX nm. | |
9616 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9617 | 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' | |
9618 | else | |
9619 | 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' | |
9620 | fi | |
9621 | aix_use_runtimelinking=no | |
9622 | ||
9623 | # Test if we are trying to use run time linking or normal | |
9624 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9625 | # have runtime linking enabled, and use it for executables. | |
9626 | # For shared libraries, we enable/disable runtime linking | |
9627 | # depending on the kind of the shared library created - | |
9628 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
9629 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
9630 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
9631 | # lib.a static archive | |
9632 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
9633 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
9634 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9635 | # lib.a(lib.so.V) shared, rtl:no | |
9636 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9637 | # lib.a static archive | |
9638 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9639 | for ld_flag in $LDFLAGS; do | |
9640 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then | |
9641 | aix_use_runtimelinking=yes | |
9642 | break | |
9643 | fi | |
9644 | done | |
9645 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then | |
9646 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
9647 | # so we don't have lib.a shared libs to link our executables. | |
9648 | # We have to force runtime linking in this case. | |
9649 | aix_use_runtimelinking=yes | |
9650 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
9651 | fi | |
9652 | ;; | |
9653 | esac | |
9654 | ||
9655 | exp_sym_flag='-bexport' | |
9656 | no_entry_flag='-bnoentry' | |
9657 | fi | |
9658 | ||
9659 | # When large executables or shared objects are built, AIX ld can | |
9660 | # have problems creating the table of contents. If linking a library | |
9661 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9662 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9663 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9664 | ||
9665 | archive_cmds='' | |
9666 | hardcode_direct=yes | |
9667 | hardcode_direct_absolute=yes | |
9668 | hardcode_libdir_separator=':' | |
9669 | link_all_deplibs=yes | |
9670 | file_list_spec='$wl-f,' | |
9671 | case $with_aix_soname,$aix_use_runtimelinking in | |
9672 | aix,*) ;; # traditional, no import file | |
9673 | svr4,* | *,yes) # use import file | |
9674 | # The Import File defines what to hardcode. | |
9675 | hardcode_direct=no | |
9676 | hardcode_direct_absolute=no | |
9677 | ;; | |
9678 | esac | |
9679 | ||
9680 | if test yes = "$GCC"; then | |
9681 | case $host_os in aix4.[012]|aix4.[012].*) | |
9682 | # We only want to do this on AIX 4.2 and lower, the check | |
9683 | # below for broken collect2 doesn't work under 4.3+ | |
9684 | collect2name=`$CC -print-prog-name=collect2` | |
9685 | if test -f "$collect2name" && | |
9686 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9687 | then | |
9688 | # We have reworked collect2 | |
9689 | : | |
9690 | else | |
9691 | # We have old collect2 | |
9692 | hardcode_direct=unsupported | |
9693 | # It fails to find uninstalled libraries when the uninstalled | |
9694 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9695 | # to unsupported forces relinking | |
9696 | hardcode_minus_L=yes | |
9697 | hardcode_libdir_flag_spec='-L$libdir' | |
9698 | hardcode_libdir_separator= | |
9699 | fi | |
9700 | ;; | |
9701 | esac | |
9702 | shared_flag='-shared' | |
9703 | if test yes = "$aix_use_runtimelinking"; then | |
9704 | shared_flag="$shared_flag "'$wl-G' | |
9705 | fi | |
9706 | # Need to ensure runtime linking is disabled for the traditional | |
9707 | # shared library, or the linker may eventually find shared libraries | |
9708 | # /with/ Import File - we do not want to mix them. | |
9709 | shared_flag_aix='-shared' | |
9710 | shared_flag_svr4='-shared $wl-G' | |
9711 | else | |
9712 | # not using gcc | |
9713 | if test ia64 = "$host_cpu"; then | |
9714 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9715 | # chokes on -Wl,-G. The following line is correct: | |
9716 | shared_flag='-G' | |
9717 | else | |
9718 | if test yes = "$aix_use_runtimelinking"; then | |
9719 | shared_flag='$wl-G' | |
9720 | else | |
9721 | shared_flag='$wl-bM:SRE' | |
9722 | fi | |
9723 | shared_flag_aix='$wl-bM:SRE' | |
9724 | shared_flag_svr4='$wl-G' | |
9725 | fi | |
9726 | fi | |
9727 | ||
9728 | export_dynamic_flag_spec='$wl-bexpall' | |
9729 | # It seems that -bexpall does not export symbols beginning with | |
9730 | # underscore (_), so it is better to generate a list of symbols to export. | |
9731 | always_export_symbols=yes | |
9732 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then | |
9733 | # Warning - without using the other runtime loading flags (-brtl), | |
9734 | # -berok will link without error, but may produce a broken library. | |
9735 | allow_undefined_flag='-berok' | |
9736 | # Determine the default libpath from the value encoded in an | |
9737 | # empty executable. | |
9738 | if test set = "${lt_cv_aix_libpath+set}"; then | |
9739 | aix_libpath=$lt_cv_aix_libpath | |
9740 | else | |
9741 | if ${lt_cv_aix_libpath_+:} false; then : | |
9742 | $as_echo_n "(cached) " >&6 | |
9743 | else | |
9744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9745 | /* end confdefs.h. */ | |
9746 | ||
9747 | int | |
9748 | main () | |
9749 | { | |
9750 | ||
9751 | ; | |
9752 | return 0; | |
9753 | } | |
9754 | _ACEOF | |
9755 | if ac_fn_c_try_link "$LINENO"; then : | |
9756 | ||
9757 | lt_aix_libpath_sed=' | |
9758 | /Import File Strings/,/^$/ { | |
9759 | /^0/ { | |
9760 | s/^0 *\([^ ]*\) *$/\1/ | |
9761 | p | |
9762 | } | |
9763 | }' | |
9764 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9765 | # Check for a 64-bit object if we didn't find anything. | |
9766 | if test -z "$lt_cv_aix_libpath_"; then | |
9767 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9768 | fi | |
9769 | fi | |
9770 | rm -f core conftest.err conftest.$ac_objext \ | |
9771 | conftest$ac_exeext conftest.$ac_ext | |
9772 | if test -z "$lt_cv_aix_libpath_"; then | |
9773 | lt_cv_aix_libpath_=/usr/lib:/lib | |
9774 | fi | |
9775 | ||
9776 | fi | |
9777 | ||
9778 | aix_libpath=$lt_cv_aix_libpath_ | |
9779 | fi | |
9780 | ||
9781 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
9782 | 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 | |
9783 | else | |
9784 | if test ia64 = "$host_cpu"; then | |
9785 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
9786 | allow_undefined_flag="-z nodefs" | |
9787 | 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" | |
9788 | else | |
9789 | # Determine the default libpath from the value encoded in an | |
9790 | # empty executable. | |
9791 | if test set = "${lt_cv_aix_libpath+set}"; then | |
9792 | aix_libpath=$lt_cv_aix_libpath | |
9793 | else | |
9794 | if ${lt_cv_aix_libpath_+:} false; then : | |
9795 | $as_echo_n "(cached) " >&6 | |
9796 | else | |
9797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9798 | /* end confdefs.h. */ | |
9799 | ||
9800 | int | |
9801 | main () | |
9802 | { | |
9803 | ||
9804 | ; | |
9805 | return 0; | |
9806 | } | |
9807 | _ACEOF | |
9808 | if ac_fn_c_try_link "$LINENO"; then : | |
9809 | ||
9810 | lt_aix_libpath_sed=' | |
9811 | /Import File Strings/,/^$/ { | |
9812 | /^0/ { | |
9813 | s/^0 *\([^ ]*\) *$/\1/ | |
9814 | p | |
9815 | } | |
9816 | }' | |
9817 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9818 | # Check for a 64-bit object if we didn't find anything. | |
9819 | if test -z "$lt_cv_aix_libpath_"; then | |
9820 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9821 | fi | |
9822 | fi | |
9823 | rm -f core conftest.err conftest.$ac_objext \ | |
9824 | conftest$ac_exeext conftest.$ac_ext | |
9825 | if test -z "$lt_cv_aix_libpath_"; then | |
9826 | lt_cv_aix_libpath_=/usr/lib:/lib | |
9827 | fi | |
9828 | ||
9829 | fi | |
9830 | ||
9831 | aix_libpath=$lt_cv_aix_libpath_ | |
9832 | fi | |
9833 | ||
9834 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
9835 | # Warning - without using the other run time loading flags, | |
9836 | # -berok will link without error, but may produce a broken library. | |
9837 | no_undefined_flag=' $wl-bernotok' | |
9838 | allow_undefined_flag=' $wl-berok' | |
9839 | if test yes = "$with_gnu_ld"; then | |
9840 | # We only use this code for GNU lds that support --whole-archive. | |
9841 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' | |
9842 | else | |
9843 | # Exported symbols can be pulled into shared objects from archives | |
9844 | whole_archive_flag_spec='$convenience' | |
9845 | fi | |
9846 | archive_cmds_need_lc=yes | |
9847 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' | |
9848 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
9849 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
9850 | if test svr4 != "$with_aix_soname"; then | |
9851 | # This is similar to how AIX traditionally builds its shared libraries. | |
9852 | 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' | |
9853 | fi | |
9854 | if test aix != "$with_aix_soname"; then | |
9855 | 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' | |
9856 | else | |
9857 | # used by -dlpreopen to get the symbols | |
9858 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
9859 | fi | |
9860 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
9861 | fi | |
9862 | fi | |
9863 | ;; | |
9864 | ||
9865 | amigaos*) | |
9866 | case $host_cpu in | |
9867 | powerpc) | |
9868 | # see comment about AmigaOS4 .so support | |
9869 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9870 | archive_expsym_cmds='' | |
9871 | ;; | |
9872 | m68k) | |
9873 | 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)' | |
9874 | hardcode_libdir_flag_spec='-L$libdir' | |
9875 | hardcode_minus_L=yes | |
9876 | ;; | |
9877 | esac | |
9878 | ;; | |
9879 | ||
9880 | bsdi[45]*) | |
9881 | export_dynamic_flag_spec=-rdynamic | |
9882 | ;; | |
9883 | ||
9884 | cygwin* | mingw* | pw32* | cegcc*) | |
9885 | # When not using gcc, we currently assume that we are using | |
9886 | # Microsoft Visual C++. | |
9887 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9888 | # no search path for DLLs. | |
9889 | case $cc_basename in | |
9890 | cl*) | |
9891 | # Native MSVC | |
9892 | hardcode_libdir_flag_spec=' ' | |
9893 | allow_undefined_flag=unsupported | |
9894 | always_export_symbols=yes | |
9895 | file_list_spec='@' | |
9896 | # Tell ltmain to make .lib files, not .a files. | |
9897 | libext=lib | |
9898 | # Tell ltmain to make .dll files, not .so files. | |
9899 | shrext_cmds=.dll | |
9900 | # FIXME: Setting linknames here is a bad hack. | |
9901 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' | |
9902 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9903 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
9904 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
9905 | else | |
9906 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
9907 | fi~ | |
9908 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9909 | linknames=' | |
9910 | # The linker will not automatically build a static lib if we build a DLL. | |
9911 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9912 | enable_shared_with_static_runtimes=yes | |
9913 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9914 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9915 | # Don't use ranlib | |
9916 | old_postinstall_cmds='chmod 644 $oldlib' | |
9917 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9918 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
9919 | case $lt_outputfile in | |
9920 | *.exe|*.EXE) ;; | |
9921 | *) | |
9922 | lt_outputfile=$lt_outputfile.exe | |
9923 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
9924 | ;; | |
9925 | esac~ | |
9926 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
9927 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9928 | $RM "$lt_outputfile.manifest"; | |
9929 | fi' | |
9930 | ;; | |
9931 | *) | |
9932 | # Assume MSVC wrapper | |
9933 | hardcode_libdir_flag_spec=' ' | |
9934 | allow_undefined_flag=unsupported | |
9935 | # Tell ltmain to make .lib files, not .a files. | |
9936 | libext=lib | |
9937 | # Tell ltmain to make .dll files, not .so files. | |
9938 | shrext_cmds=.dll | |
9939 | # FIXME: Setting linknames here is a bad hack. | |
9940 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9941 | # The linker will automatically build a .lib file if we build a DLL. | |
9942 | old_archive_from_new_cmds='true' | |
9943 | # FIXME: Should let the user specify the lib program. | |
9944 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9945 | enable_shared_with_static_runtimes=yes | |
9946 | ;; | |
9947 | esac | |
9948 | ;; | |
9949 | ||
9950 | darwin* | rhapsody*) | |
9951 | ||
9952 | ||
9953 | archive_cmds_need_lc=no | |
9954 | hardcode_direct=no | |
9955 | hardcode_automatic=yes | |
9956 | hardcode_shlibpath_var=unsupported | |
9957 | if test yes = "$lt_cv_ld_force_load"; then | |
9958 | 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\"`' | |
9959 | ||
9960 | else | |
9961 | whole_archive_flag_spec='' | |
9962 | fi | |
9963 | link_all_deplibs=yes | |
9964 | allow_undefined_flag=$_lt_dar_allow_undefined | |
9965 | case $cc_basename in | |
9966 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; | |
9967 | *) _lt_dar_can_shared=$GCC ;; | |
9968 | esac | |
9969 | if test yes = "$_lt_dar_can_shared"; then | |
9970 | output_verbose_link_cmd=func_echo_all | |
9971 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" | |
9972 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
9973 | 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" | |
9974 | 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" | |
9975 | ||
9976 | else | |
9977 | ld_shlibs=no | |
9978 | fi | |
9979 | ||
9980 | ;; | |
9981 | ||
9982 | dgux*) | |
9983 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9984 | hardcode_libdir_flag_spec='-L$libdir' | |
9985 | hardcode_shlibpath_var=no | |
9986 | ;; | |
9987 | ||
9988 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9989 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9990 | # does not break anything, and helps significantly (at the cost of a little | |
9991 | # extra space). | |
9992 | freebsd2.2*) | |
9993 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9994 | hardcode_libdir_flag_spec='-R$libdir' | |
9995 | hardcode_direct=yes | |
9996 | hardcode_shlibpath_var=no | |
9997 | ;; | |
9998 | ||
9999 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10000 | freebsd2.*) | |
10001 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10002 | hardcode_direct=yes | |
10003 | hardcode_minus_L=yes | |
10004 | hardcode_shlibpath_var=no | |
10005 | ;; | |
10006 | ||
10007 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10008 | freebsd* | dragonfly*) | |
10009 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10010 | hardcode_libdir_flag_spec='-R$libdir' | |
10011 | hardcode_direct=yes | |
10012 | hardcode_shlibpath_var=no | |
10013 | ;; | |
10014 | ||
10015 | hpux9*) | |
10016 | if test yes = "$GCC"; then | |
10017 | 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' | |
10018 | else | |
10019 | 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' | |
10020 | fi | |
10021 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
10022 | hardcode_libdir_separator=: | |
10023 | hardcode_direct=yes | |
10024 | ||
10025 | # hardcode_minus_L: Not really in the search PATH, | |
10026 | # but as the default location of the library. | |
10027 | hardcode_minus_L=yes | |
10028 | export_dynamic_flag_spec='$wl-E' | |
10029 | ;; | |
10030 | ||
10031 | hpux10*) | |
10032 | if test yes,no = "$GCC,$with_gnu_ld"; then | |
10033 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10034 | else | |
10035 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10036 | fi | |
10037 | if test no = "$with_gnu_ld"; then | |
10038 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
10039 | hardcode_libdir_separator=: | |
10040 | hardcode_direct=yes | |
10041 | hardcode_direct_absolute=yes | |
10042 | export_dynamic_flag_spec='$wl-E' | |
10043 | # hardcode_minus_L: Not really in the search PATH, | |
10044 | # but as the default location of the library. | |
10045 | hardcode_minus_L=yes | |
10046 | fi | |
10047 | ;; | |
10048 | ||
10049 | hpux11*) | |
10050 | if test yes,no = "$GCC,$with_gnu_ld"; then | |
10051 | case $host_cpu in | |
10052 | hppa*64*) | |
10053 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10054 | ;; | |
10055 | ia64*) | |
10056 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10057 | ;; | |
10058 | *) | |
10059 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10060 | ;; | |
10061 | esac | |
10062 | else | |
10063 | case $host_cpu in | |
10064 | hppa*64*) | |
10065 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10066 | ;; | |
10067 | ia64*) | |
10068 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10069 | ;; | |
10070 | *) | |
10071 | ||
10072 | # Older versions of the 11.00 compiler do not understand -b yet | |
10073 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10075 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10076 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10077 | $as_echo_n "(cached) " >&6 | |
10078 | else | |
10079 | lt_cv_prog_compiler__b=no | |
10080 | save_LDFLAGS=$LDFLAGS | |
10081 | LDFLAGS="$LDFLAGS -b" | |
10082 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10083 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10084 | # The linker can only warn and ignore the option if not recognized | |
10085 | # So say no if there are warnings | |
10086 | if test -s conftest.err; then | |
10087 | # Append any errors to the config.log. | |
10088 | cat conftest.err 1>&5 | |
10089 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10090 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10091 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10092 | lt_cv_prog_compiler__b=yes | |
10093 | fi | |
10094 | else | |
10095 | lt_cv_prog_compiler__b=yes | |
10096 | fi | |
10097 | fi | |
10098 | $RM -r conftest* | |
10099 | LDFLAGS=$save_LDFLAGS | |
10100 | ||
10101 | fi | |
10102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10103 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10104 | ||
10105 | if test yes = "$lt_cv_prog_compiler__b"; then | |
10106 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10107 | else | |
10108 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10109 | fi | |
10110 | ||
10111 | ;; | |
10112 | esac | |
10113 | fi | |
10114 | if test no = "$with_gnu_ld"; then | |
10115 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
10116 | hardcode_libdir_separator=: | |
10117 | ||
10118 | case $host_cpu in | |
10119 | hppa*64*|ia64*) | |
10120 | hardcode_direct=no | |
10121 | hardcode_shlibpath_var=no | |
10122 | ;; | |
10123 | *) | |
10124 | hardcode_direct=yes | |
10125 | hardcode_direct_absolute=yes | |
10126 | export_dynamic_flag_spec='$wl-E' | |
10127 | ||
10128 | # hardcode_minus_L: Not really in the search PATH, | |
10129 | # but as the default location of the library. | |
10130 | hardcode_minus_L=yes | |
10131 | ;; | |
10132 | esac | |
10133 | fi | |
10134 | ;; | |
10135 | ||
10136 | irix5* | irix6* | nonstopux*) | |
10137 | if test yes = "$GCC"; then | |
10138 | 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' | |
10139 | # Try to use the -exported_symbol ld option, if it does not | |
10140 | # work, assume that -exports_file does not work either and | |
10141 | # implicitly export all symbols. | |
10142 | # This should be the same for all languages, so no per-tag cache variable. | |
10143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10144 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10145 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10146 | $as_echo_n "(cached) " >&6 | |
10147 | else | |
10148 | save_LDFLAGS=$LDFLAGS | |
10149 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
10150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10151 | /* end confdefs.h. */ | |
10152 | int foo (void) { return 0; } | |
10153 | _ACEOF | |
10154 | if ac_fn_c_try_link "$LINENO"; then : | |
10155 | lt_cv_irix_exported_symbol=yes | |
10156 | else | |
10157 | lt_cv_irix_exported_symbol=no | |
10158 | fi | |
10159 | rm -f core conftest.err conftest.$ac_objext \ | |
10160 | conftest$ac_exeext conftest.$ac_ext | |
10161 | LDFLAGS=$save_LDFLAGS | |
10162 | fi | |
10163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10164 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10165 | if test yes = "$lt_cv_irix_exported_symbol"; then | |
10166 | 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' | |
10167 | fi | |
10168 | link_all_deplibs=no | |
10169 | else | |
10170 | 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' | |
10171 | 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' | |
10172 | fi | |
10173 | archive_cmds_need_lc='no' | |
10174 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10175 | hardcode_libdir_separator=: | |
10176 | inherit_rpath=yes | |
10177 | link_all_deplibs=yes | |
10178 | ;; | |
10179 | ||
10180 | linux*) | |
10181 | case $cc_basename in | |
10182 | tcc*) | |
10183 | # Fabrice Bellard et al's Tiny C Compiler | |
10184 | ld_shlibs=yes | |
10185 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10186 | ;; | |
10187 | esac | |
10188 | ;; | |
10189 | ||
10190 | netbsd* | netbsdelf*-gnu) | |
10191 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10192 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10193 | else | |
10194 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10195 | fi | |
10196 | hardcode_libdir_flag_spec='-R$libdir' | |
10197 | hardcode_direct=yes | |
10198 | hardcode_shlibpath_var=no | |
10199 | ;; | |
10200 | ||
10201 | newsos6) | |
10202 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10203 | hardcode_direct=yes | |
10204 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10205 | hardcode_libdir_separator=: | |
10206 | hardcode_shlibpath_var=no | |
10207 | ;; | |
10208 | ||
10209 | *nto* | *qnx*) | |
10210 | ;; | |
10211 | ||
10212 | openbsd* | bitrig*) | |
10213 | if test -f /usr/libexec/ld.so; then | |
10214 | hardcode_direct=yes | |
10215 | hardcode_shlibpath_var=no | |
10216 | hardcode_direct_absolute=yes | |
10217 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
10218 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10219 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' | |
10220 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10221 | export_dynamic_flag_spec='$wl-E' | |
10222 | else | |
10223 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10224 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10225 | fi | |
10226 | else | |
10227 | ld_shlibs=no | |
10228 | fi | |
10229 | ;; | |
10230 | ||
10231 | os2*) | |
10232 | hardcode_libdir_flag_spec='-L$libdir' | |
10233 | hardcode_minus_L=yes | |
10234 | allow_undefined_flag=unsupported | |
10235 | shrext_cmds=.dll | |
10236 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10237 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10238 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10239 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10240 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
10241 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10242 | emximp -o $lib $output_objdir/$libname.def' | |
10243 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10244 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10245 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10246 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10247 | prefix_cmds="$SED"~ | |
10248 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
10249 | prefix_cmds="$prefix_cmds -e 1d"; | |
10250 | fi~ | |
10251 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10252 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10253 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10254 | emximp -o $lib $output_objdir/$libname.def' | |
10255 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10256 | enable_shared_with_static_runtimes=yes | |
10257 | ;; | |
10258 | ||
10259 | osf3*) | |
10260 | if test yes = "$GCC"; then | |
10261 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10262 | 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' | |
10263 | else | |
10264 | allow_undefined_flag=' -expect_unresolved \*' | |
10265 | 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' | |
10266 | fi | |
10267 | archive_cmds_need_lc='no' | |
10268 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10269 | hardcode_libdir_separator=: | |
10270 | ;; | |
10271 | ||
10272 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10273 | if test yes = "$GCC"; then | |
10274 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10275 | 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' | |
10276 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10277 | else | |
10278 | allow_undefined_flag=' -expect_unresolved \*' | |
10279 | 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' | |
10280 | 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~ | |
10281 | $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' | |
10282 | ||
10283 | # Both c and cxx compiler support -rpath directly | |
10284 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10285 | fi | |
10286 | archive_cmds_need_lc='no' | |
10287 | hardcode_libdir_separator=: | |
10288 | ;; | |
10289 | ||
10290 | solaris*) | |
10291 | no_undefined_flag=' -z defs' | |
10292 | if test yes = "$GCC"; then | |
10293 | wlarc='$wl' | |
10294 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10295 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10296 | $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' | |
10297 | else | |
10298 | case `$CC -V 2>&1` in | |
10299 | *"Compilers 5.0"*) | |
10300 | wlarc='' | |
10301 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10302 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10303 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10304 | ;; | |
10305 | *) | |
10306 | wlarc='$wl' | |
10307 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10308 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10309 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10310 | ;; | |
10311 | esac | |
10312 | fi | |
10313 | hardcode_libdir_flag_spec='-R$libdir' | |
10314 | hardcode_shlibpath_var=no | |
10315 | case $host_os in | |
10316 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10317 | *) | |
10318 | # The compiler driver will combine and reorder linker options, | |
10319 | # but understands '-z linker_flag'. GCC discards it without '$wl', | |
10320 | # but is careful enough not to reorder. | |
10321 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10322 | if test yes = "$GCC"; then | |
10323 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
10324 | else | |
10325 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10326 | fi | |
10327 | ;; | |
10328 | esac | |
10329 | link_all_deplibs=yes | |
10330 | ;; | |
10331 | ||
10332 | sunos4*) | |
10333 | if test sequent = "$host_vendor"; then | |
10334 | # Use $CC to link under sequent, because it throws in some extra .o | |
10335 | # files that make .init and .fini sections work. | |
10336 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10337 | else | |
10338 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10339 | fi | |
10340 | hardcode_libdir_flag_spec='-L$libdir' | |
10341 | hardcode_direct=yes | |
10342 | hardcode_minus_L=yes | |
10343 | hardcode_shlibpath_var=no | |
10344 | ;; | |
10345 | ||
10346 | sysv4) | |
10347 | case $host_vendor in | |
10348 | sni) | |
10349 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10350 | hardcode_direct=yes # is this really true??? | |
10351 | ;; | |
10352 | siemens) | |
10353 | ## LD is ld it makes a PLAMLIB | |
10354 | ## CC just makes a GrossModule. | |
10355 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10356 | reload_cmds='$CC -r -o $output$reload_objs' | |
10357 | hardcode_direct=no | |
10358 | ;; | |
10359 | motorola) | |
10360 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10361 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10362 | ;; | |
10363 | esac | |
10364 | runpath_var='LD_RUN_PATH' | |
10365 | hardcode_shlibpath_var=no | |
10366 | ;; | |
10367 | ||
10368 | sysv4.3*) | |
10369 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10370 | hardcode_shlibpath_var=no | |
10371 | export_dynamic_flag_spec='-Bexport' | |
10372 | ;; | |
10373 | ||
10374 | sysv4*MP*) | |
10375 | if test -d /usr/nec; then | |
10376 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10377 | hardcode_shlibpath_var=no | |
10378 | runpath_var=LD_RUN_PATH | |
10379 | hardcode_runpath_var=yes | |
10380 | ld_shlibs=yes | |
10381 | fi | |
10382 | ;; | |
10383 | ||
10384 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10385 | no_undefined_flag='$wl-z,text' | |
10386 | archive_cmds_need_lc=no | |
10387 | hardcode_shlibpath_var=no | |
10388 | runpath_var='LD_RUN_PATH' | |
10389 | ||
10390 | if test yes = "$GCC"; then | |
10391 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10392 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10393 | else | |
10394 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10395 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10396 | fi | |
10397 | ;; | |
10398 | ||
10399 | sysv5* | sco3.2v5* | sco5v6*) | |
10400 | # Note: We CANNOT use -z defs as we might desire, because we do not | |
10401 | # link with -lc, and that would cause any symbols used from libc to | |
10402 | # always be unresolved, which means just about no library would | |
10403 | # ever link correctly. If we're not using GNU ld we use -z text | |
10404 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10405 | # as -z defs. | |
10406 | no_undefined_flag='$wl-z,text' | |
10407 | allow_undefined_flag='$wl-z,nodefs' | |
10408 | archive_cmds_need_lc=no | |
10409 | hardcode_shlibpath_var=no | |
10410 | hardcode_libdir_flag_spec='$wl-R,$libdir' | |
10411 | hardcode_libdir_separator=':' | |
10412 | link_all_deplibs=yes | |
10413 | export_dynamic_flag_spec='$wl-Bexport' | |
10414 | runpath_var='LD_RUN_PATH' | |
10415 | ||
10416 | if test yes = "$GCC"; then | |
10417 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10418 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10419 | else | |
10420 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10421 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10422 | fi | |
10423 | ;; | |
10424 | ||
10425 | uts4*) | |
10426 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10427 | hardcode_libdir_flag_spec='-L$libdir' | |
10428 | hardcode_shlibpath_var=no | |
10429 | ;; | |
10430 | ||
10431 | *) | |
10432 | ld_shlibs=no | |
10433 | ;; | |
10434 | esac | |
10435 | ||
10436 | if test sni = "$host_vendor"; then | |
10437 | case $host in | |
10438 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10439 | export_dynamic_flag_spec='$wl-Blargedynsym' | |
10440 | ;; | |
10441 | esac | |
10442 | fi | |
10443 | fi | |
10444 | ||
10445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10446 | $as_echo "$ld_shlibs" >&6; } | |
10447 | test no = "$ld_shlibs" && can_build_shared=no | |
10448 | ||
10449 | with_gnu_ld=$with_gnu_ld | |
10450 | ||
10451 | ||
10452 | ||
10453 | ||
10454 | ||
10455 | ||
10456 | ||
10457 | ||
10458 | ||
10459 | ||
10460 | ||
10461 | ||
10462 | ||
10463 | ||
10464 | ||
10465 | # | |
10466 | # Do we need to explicitly link libc? | |
10467 | # | |
10468 | case "x$archive_cmds_need_lc" in | |
10469 | x|xyes) | |
10470 | # Assume -lc should be added | |
10471 | archive_cmds_need_lc=yes | |
10472 | ||
10473 | if test yes,yes = "$GCC,$enable_shared"; then | |
10474 | case $archive_cmds in | |
10475 | *'~'*) | |
10476 | # FIXME: we may have to deal with multi-command sequences. | |
10477 | ;; | |
10478 | '$CC '*) | |
10479 | # Test whether the compiler implicitly links with -lc since on some | |
10480 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10481 | # to ld, don't add -lc before -lgcc. | |
10482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10483 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10484 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10485 | $as_echo_n "(cached) " >&6 | |
10486 | else | |
10487 | $RM conftest* | |
10488 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10489 | ||
10490 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10491 | (eval $ac_compile) 2>&5 | |
10492 | ac_status=$? | |
10493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10494 | test $ac_status = 0; } 2>conftest.err; then | |
10495 | soname=conftest | |
10496 | lib=conftest | |
10497 | libobjs=conftest.$ac_objext | |
10498 | deplibs= | |
10499 | wl=$lt_prog_compiler_wl | |
10500 | pic_flag=$lt_prog_compiler_pic | |
10501 | compiler_flags=-v | |
10502 | linker_flags=-v | |
10503 | verstring= | |
10504 | output_objdir=. | |
10505 | libname=conftest | |
10506 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10507 | allow_undefined_flag= | |
10508 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10509 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10510 | ac_status=$? | |
10511 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10512 | test $ac_status = 0; } | |
10513 | then | |
10514 | lt_cv_archive_cmds_need_lc=no | |
10515 | else | |
10516 | lt_cv_archive_cmds_need_lc=yes | |
10517 | fi | |
10518 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10519 | else | |
10520 | cat conftest.err 1>&5 | |
10521 | fi | |
10522 | $RM conftest* | |
10523 | ||
10524 | fi | |
10525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10526 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10527 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10528 | ;; | |
10529 | esac | |
10530 | fi | |
10531 | ;; | |
10532 | esac | |
10533 | ||
10534 | ||
10535 | ||
10536 | ||
10537 | ||
10538 | ||
10539 | ||
10540 | ||
10541 | ||
10542 | ||
10543 | ||
10544 | ||
10545 | ||
10546 | ||
10547 | ||
10548 | ||
10549 | ||
10550 | ||
10551 | ||
10552 | ||
10553 | ||
10554 | ||
10555 | ||
10556 | ||
10557 | ||
10558 | ||
10559 | ||
10560 | ||
10561 | ||
10562 | ||
10563 | ||
10564 | ||
10565 | ||
10566 | ||
10567 | ||
10568 | ||
10569 | ||
10570 | ||
10571 | ||
10572 | ||
10573 | ||
10574 | ||
10575 | ||
10576 | ||
10577 | ||
10578 | ||
10579 | ||
10580 | ||
10581 | ||
10582 | ||
10583 | ||
10584 | ||
10585 | ||
10586 | ||
10587 | ||
10588 | ||
10589 | ||
10590 | ||
10591 | ||
10592 | ||
10593 | ||
10594 | ||
10595 | ||
10596 | ||
10597 | ||
10598 | ||
10599 | ||
10600 | ||
10601 | ||
10602 | ||
10603 | ||
10604 | ||
10605 | ||
10606 | ||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10686 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10687 | ||
10688 | if test yes = "$GCC"; then | |
10689 | case $host_os in | |
10690 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; | |
10691 | *) lt_awk_arg='/^libraries:/' ;; | |
10692 | esac | |
10693 | case $host_os in | |
10694 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; | |
10695 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
10696 | esac | |
10697 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10698 | case $lt_search_path_spec in | |
10699 | *\;*) | |
10700 | # if the path contains ";" then we assume it to be the separator | |
10701 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10702 | # assumed that no part of a normal pathname contains ";" but that should | |
10703 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10704 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10705 | ;; | |
10706 | *) | |
10707 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10708 | ;; | |
10709 | esac | |
10710 | # Ok, now we have the path, separated by spaces, we can step through it | |
10711 | # and add multilib dir if necessary... | |
10712 | lt_tmp_lt_search_path_spec= | |
10713 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10714 | # ...but if some path component already ends with the multilib dir we assume | |
10715 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
10716 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
10717 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
10718 | lt_multi_os_dir= | |
10719 | ;; | |
10720 | esac | |
10721 | for lt_sys_path in $lt_search_path_spec; do | |
10722 | if test -d "$lt_sys_path$lt_multi_os_dir"; then | |
10723 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
10724 | elif test -n "$lt_multi_os_dir"; then | |
10725 | test -d "$lt_sys_path" && \ | |
10726 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10727 | fi | |
10728 | done | |
10729 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10730 | BEGIN {RS = " "; FS = "/|\n";} { | |
10731 | lt_foo = ""; | |
10732 | lt_count = 0; | |
10733 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10734 | if ($lt_i != "" && $lt_i != ".") { | |
10735 | if ($lt_i == "..") { | |
10736 | lt_count++; | |
10737 | } else { | |
10738 | if (lt_count == 0) { | |
10739 | lt_foo = "/" $lt_i lt_foo; | |
10740 | } else { | |
10741 | lt_count--; | |
10742 | } | |
10743 | } | |
10744 | } | |
10745 | } | |
10746 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10747 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10748 | }'` | |
10749 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10750 | # for these hosts. | |
10751 | case $host_os in | |
10752 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10753 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; | |
10754 | esac | |
10755 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10756 | else | |
10757 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10758 | fi | |
10759 | library_names_spec= | |
10760 | libname_spec='lib$name' | |
10761 | soname_spec= | |
10762 | shrext_cmds=.so | |
10763 | postinstall_cmds= | |
10764 | postuninstall_cmds= | |
10765 | finish_cmds= | |
10766 | finish_eval= | |
10767 | shlibpath_var= | |
10768 | shlibpath_overrides_runpath=unknown | |
10769 | version_type=none | |
10770 | dynamic_linker="$host_os ld.so" | |
10771 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10772 | need_lib_prefix=unknown | |
10773 | hardcode_into_libs=no | |
10774 | ||
10775 | # when you set need_version to no, make sure it does not cause -set_version | |
10776 | # flags to be left without arguments | |
10777 | need_version=unknown | |
10778 | ||
10779 | ||
10780 | ||
10781 | case $host_os in | |
10782 | aix3*) | |
10783 | version_type=linux # correct to gnu/linux during the next big refactor | |
10784 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' | |
10785 | shlibpath_var=LIBPATH | |
10786 | ||
10787 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10788 | soname_spec='$libname$release$shared_ext$major' | |
10789 | ;; | |
10790 | ||
10791 | aix[4-9]*) | |
10792 | version_type=linux # correct to gnu/linux during the next big refactor | |
10793 | need_lib_prefix=no | |
10794 | need_version=no | |
10795 | hardcode_into_libs=yes | |
10796 | if test ia64 = "$host_cpu"; then | |
10797 | # AIX 5 supports IA64 | |
10798 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' | |
10799 | shlibpath_var=LD_LIBRARY_PATH | |
10800 | else | |
10801 | # With GCC up to 2.95.x, collect2 would create an import file | |
10802 | # for dependence libraries. The import file would start with | |
10803 | # the line '#! .'. This would cause the generated library to | |
10804 | # depend on '.', always an invalid library. This was fixed in | |
10805 | # development snapshots of GCC prior to 3.0. | |
10806 | case $host_os in | |
10807 | aix4 | aix4.[01] | aix4.[01].*) | |
10808 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10809 | echo ' yes ' | |
10810 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then | |
10811 | : | |
10812 | else | |
10813 | can_build_shared=no | |
10814 | fi | |
10815 | ;; | |
10816 | esac | |
10817 | # Using Import Files as archive members, it is possible to support | |
10818 | # filename-based versioning of shared library archives on AIX. While | |
10819 | # this would work for both with and without runtime linking, it will | |
10820 | # prevent static linking of such archives. So we do filename-based | |
10821 | # shared library versioning with .so extension only, which is used | |
10822 | # when both runtime linking and shared linking is enabled. | |
10823 | # Unfortunately, runtime linking may impact performance, so we do | |
10824 | # not want this to be the default eventually. Also, we use the | |
10825 | # versioned .so libs for executables only if there is the -brtl | |
10826 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
10827 | # To allow for filename-based versioning support, we need to create | |
10828 | # libNAME.so.V as an archive file, containing: | |
10829 | # *) an Import File, referring to the versioned filename of the | |
10830 | # archive as well as the shared archive member, telling the | |
10831 | # bitwidth (32 or 64) of that shared object, and providing the | |
10832 | # list of exported symbols of that shared object, eventually | |
10833 | # decorated with the 'weak' keyword | |
10834 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
10835 | # it being seen by the linker. | |
10836 | # At run time we better use the real file rather than another symlink, | |
10837 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
10838 | ||
10839 | case $with_aix_soname,$aix_use_runtimelinking in | |
10840 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
10841 | # soname into executable. Probably we can add versioning support to | |
10842 | # collect2, so additional links can be useful in future. | |
10843 | aix,yes) # traditional libtool | |
10844 | dynamic_linker='AIX unversionable lib.so' | |
10845 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10846 | # instead of lib<name>.a to let people know that these are not | |
10847 | # typical AIX shared libraries. | |
10848 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10849 | ;; | |
10850 | aix,no) # traditional AIX only | |
10851 | dynamic_linker='AIX lib.a(lib.so.V)' | |
10852 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10853 | # and later when we are not doing run time linking. | |
10854 | library_names_spec='$libname$release.a $libname.a' | |
10855 | soname_spec='$libname$release$shared_ext$major' | |
10856 | ;; | |
10857 | svr4,*) # full svr4 only | |
10858 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
10859 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10860 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10861 | shlibpath_overrides_runpath=yes | |
10862 | ;; | |
10863 | *,yes) # both, prefer svr4 | |
10864 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
10865 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10866 | # unpreferred sharedlib libNAME.a needs extra handling | |
10867 | 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"' | |
10868 | 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"' | |
10869 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10870 | shlibpath_overrides_runpath=yes | |
10871 | ;; | |
10872 | *,no) # both, prefer aix | |
10873 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
10874 | library_names_spec='$libname$release.a $libname.a' | |
10875 | soname_spec='$libname$release$shared_ext$major' | |
10876 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
10877 | 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)' | |
10878 | 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"' | |
10879 | ;; | |
10880 | esac | |
10881 | shlibpath_var=LIBPATH | |
10882 | fi | |
10883 | ;; | |
10884 | ||
10885 | amigaos*) | |
10886 | case $host_cpu in | |
10887 | powerpc) | |
10888 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10889 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10890 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10891 | ;; | |
10892 | m68k) | |
10893 | library_names_spec='$libname.ixlibrary $libname.a' | |
10894 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10895 | 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' | |
10896 | ;; | |
10897 | esac | |
10898 | ;; | |
10899 | ||
10900 | beos*) | |
10901 | library_names_spec='$libname$shared_ext' | |
10902 | dynamic_linker="$host_os ld.so" | |
10903 | shlibpath_var=LIBRARY_PATH | |
10904 | ;; | |
10905 | ||
10906 | bsdi[45]*) | |
10907 | version_type=linux # correct to gnu/linux during the next big refactor | |
10908 | need_version=no | |
10909 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10910 | soname_spec='$libname$release$shared_ext$major' | |
10911 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10912 | shlibpath_var=LD_LIBRARY_PATH | |
10913 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10914 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10915 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10916 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10917 | # libtool to hard-code these into programs | |
10918 | ;; | |
10919 | ||
10920 | cygwin* | mingw* | pw32* | cegcc*) | |
10921 | version_type=windows | |
10922 | shrext_cmds=.dll | |
10923 | need_version=no | |
10924 | need_lib_prefix=no | |
10925 | ||
10926 | case $GCC,$cc_basename in | |
10927 | yes,*) | |
10928 | # gcc | |
10929 | library_names_spec='$libname.dll.a' | |
10930 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10931 | postinstall_cmds='base_file=`basename \$file`~ | |
10932 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
10933 | dldir=$destdir/`dirname \$dlpath`~ | |
10934 | test -d \$dldir || mkdir -p \$dldir~ | |
10935 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10936 | chmod a+x \$dldir/$dlname~ | |
10937 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10938 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10939 | fi' | |
10940 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10941 | dlpath=$dir/\$dldll~ | |
10942 | $RM \$dlpath' | |
10943 | shlibpath_overrides_runpath=yes | |
10944 | ||
10945 | case $host_os in | |
10946 | cygwin*) | |
10947 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10948 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10949 | ||
10950 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10951 | ;; | |
10952 | mingw* | cegcc*) | |
10953 | # MinGW DLLs use traditional 'lib' prefix | |
10954 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10955 | ;; | |
10956 | pw32*) | |
10957 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10958 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10959 | ;; | |
10960 | esac | |
10961 | dynamic_linker='Win32 ld.exe' | |
10962 | ;; | |
10963 | ||
10964 | *,cl*) | |
10965 | # Native MSVC | |
10966 | libname_spec='$name' | |
10967 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10968 | library_names_spec='$libname.dll.lib' | |
10969 | ||
10970 | case $build_os in | |
10971 | mingw*) | |
10972 | sys_lib_search_path_spec= | |
10973 | lt_save_ifs=$IFS | |
10974 | IFS=';' | |
10975 | for lt_path in $LIB | |
10976 | do | |
10977 | IFS=$lt_save_ifs | |
10978 | # Let DOS variable expansion print the short 8.3 style file name. | |
10979 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10980 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10981 | done | |
10982 | IFS=$lt_save_ifs | |
10983 | # Convert to MSYS style. | |
10984 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10985 | ;; | |
10986 | cygwin*) | |
10987 | # Convert to unix form, then to dos form, then back to unix form | |
10988 | # but this time dos style (no spaces!) so that the unix form looks | |
10989 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10990 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10991 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10992 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10993 | ;; | |
10994 | *) | |
10995 | sys_lib_search_path_spec=$LIB | |
10996 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10997 | # It is most probably a Windows format PATH. | |
10998 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10999 | else | |
11000 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11001 | fi | |
11002 | # FIXME: find the short name or the path components, as spaces are | |
11003 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11004 | ;; | |
11005 | esac | |
11006 | ||
11007 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11008 | postinstall_cmds='base_file=`basename \$file`~ | |
11009 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
11010 | dldir=$destdir/`dirname \$dlpath`~ | |
11011 | test -d \$dldir || mkdir -p \$dldir~ | |
11012 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11013 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11014 | dlpath=$dir/\$dldll~ | |
11015 | $RM \$dlpath' | |
11016 | shlibpath_overrides_runpath=yes | |
11017 | dynamic_linker='Win32 link.exe' | |
11018 | ;; | |
11019 | ||
11020 | *) | |
11021 | # Assume MSVC wrapper | |
11022 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' | |
11023 | dynamic_linker='Win32 ld.exe' | |
11024 | ;; | |
11025 | esac | |
11026 | # FIXME: first we should search . and the directory the executable is in | |
11027 | shlibpath_var=PATH | |
11028 | ;; | |
11029 | ||
11030 | darwin* | rhapsody*) | |
11031 | dynamic_linker="$host_os dyld" | |
11032 | version_type=darwin | |
11033 | need_lib_prefix=no | |
11034 | need_version=no | |
11035 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' | |
11036 | soname_spec='$libname$release$major$shared_ext' | |
11037 | shlibpath_overrides_runpath=yes | |
11038 | shlibpath_var=DYLD_LIBRARY_PATH | |
11039 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11040 | ||
11041 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11042 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11043 | ;; | |
11044 | ||
11045 | dgux*) | |
11046 | version_type=linux # correct to gnu/linux during the next big refactor | |
11047 | need_lib_prefix=no | |
11048 | need_version=no | |
11049 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11050 | soname_spec='$libname$release$shared_ext$major' | |
11051 | shlibpath_var=LD_LIBRARY_PATH | |
11052 | ;; | |
11053 | ||
11054 | freebsd* | dragonfly*) | |
11055 | # DragonFly does not have aout. When/if they implement a new | |
11056 | # versioning mechanism, adjust this. | |
11057 | if test -x /usr/bin/objformat; then | |
11058 | objformat=`/usr/bin/objformat` | |
11059 | else | |
11060 | case $host_os in | |
11061 | freebsd[23].*) objformat=aout ;; | |
11062 | *) objformat=elf ;; | |
11063 | esac | |
11064 | fi | |
11065 | version_type=freebsd-$objformat | |
11066 | case $version_type in | |
11067 | freebsd-elf*) | |
11068 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11069 | soname_spec='$libname$release$shared_ext$major' | |
11070 | need_version=no | |
11071 | need_lib_prefix=no | |
11072 | ;; | |
11073 | freebsd-*) | |
11074 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11075 | need_version=yes | |
11076 | ;; | |
11077 | esac | |
11078 | shlibpath_var=LD_LIBRARY_PATH | |
11079 | case $host_os in | |
11080 | freebsd2.*) | |
11081 | shlibpath_overrides_runpath=yes | |
11082 | ;; | |
11083 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11084 | shlibpath_overrides_runpath=yes | |
11085 | hardcode_into_libs=yes | |
11086 | ;; | |
11087 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11088 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11089 | shlibpath_overrides_runpath=no | |
11090 | hardcode_into_libs=yes | |
11091 | ;; | |
11092 | *) # from 4.6 on, and DragonFly | |
11093 | shlibpath_overrides_runpath=yes | |
11094 | hardcode_into_libs=yes | |
11095 | ;; | |
11096 | esac | |
11097 | ;; | |
11098 | ||
11099 | haiku*) | |
11100 | version_type=linux # correct to gnu/linux during the next big refactor | |
11101 | need_lib_prefix=no | |
11102 | need_version=no | |
11103 | dynamic_linker="$host_os runtime_loader" | |
11104 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11105 | soname_spec='$libname$release$shared_ext$major' | |
11106 | shlibpath_var=LIBRARY_PATH | |
11107 | shlibpath_overrides_runpath=no | |
11108 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11109 | hardcode_into_libs=yes | |
11110 | ;; | |
11111 | ||
11112 | hpux9* | hpux10* | hpux11*) | |
11113 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11114 | # link against other versions. | |
11115 | version_type=sunos | |
11116 | need_lib_prefix=no | |
11117 | need_version=no | |
11118 | case $host_cpu in | |
11119 | ia64*) | |
11120 | shrext_cmds='.so' | |
11121 | hardcode_into_libs=yes | |
11122 | dynamic_linker="$host_os dld.so" | |
11123 | shlibpath_var=LD_LIBRARY_PATH | |
11124 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11125 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11126 | soname_spec='$libname$release$shared_ext$major' | |
11127 | if test 32 = "$HPUX_IA64_MODE"; then | |
11128 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11129 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 | |
11130 | else | |
11131 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11132 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 | |
11133 | fi | |
11134 | ;; | |
11135 | hppa*64*) | |
11136 | shrext_cmds='.sl' | |
11137 | hardcode_into_libs=yes | |
11138 | dynamic_linker="$host_os dld.sl" | |
11139 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11140 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11141 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11142 | soname_spec='$libname$release$shared_ext$major' | |
11143 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11144 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11145 | ;; | |
11146 | *) | |
11147 | shrext_cmds='.sl' | |
11148 | dynamic_linker="$host_os dld.sl" | |
11149 | shlibpath_var=SHLIB_PATH | |
11150 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11151 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11152 | soname_spec='$libname$release$shared_ext$major' | |
11153 | ;; | |
11154 | esac | |
11155 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11156 | postinstall_cmds='chmod 555 $lib' | |
11157 | # or fails outright, so override atomically: | |
11158 | install_override_mode=555 | |
11159 | ;; | |
11160 | ||
11161 | interix[3-9]*) | |
11162 | version_type=linux # correct to gnu/linux during the next big refactor | |
11163 | need_lib_prefix=no | |
11164 | need_version=no | |
11165 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11166 | soname_spec='$libname$release$shared_ext$major' | |
11167 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11168 | shlibpath_var=LD_LIBRARY_PATH | |
11169 | shlibpath_overrides_runpath=no | |
11170 | hardcode_into_libs=yes | |
11171 | ;; | |
11172 | ||
11173 | irix5* | irix6* | nonstopux*) | |
11174 | case $host_os in | |
11175 | nonstopux*) version_type=nonstopux ;; | |
11176 | *) | |
11177 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
11178 | version_type=linux # correct to gnu/linux during the next big refactor | |
11179 | else | |
11180 | version_type=irix | |
11181 | fi ;; | |
11182 | esac | |
11183 | need_lib_prefix=no | |
11184 | need_version=no | |
11185 | soname_spec='$libname$release$shared_ext$major' | |
11186 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
11187 | case $host_os in | |
11188 | irix5* | nonstopux*) | |
11189 | libsuff= shlibsuff= | |
11190 | ;; | |
11191 | *) | |
11192 | case $LD in # libtool.m4 will add one of these switches to LD | |
11193 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11194 | libsuff= shlibsuff= libmagic=32-bit;; | |
11195 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11196 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11197 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11198 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11199 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11200 | esac | |
11201 | ;; | |
11202 | esac | |
11203 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11204 | shlibpath_overrides_runpath=no | |
11205 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" | |
11206 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
11207 | hardcode_into_libs=yes | |
11208 | ;; | |
11209 | ||
11210 | # No shared lib support for Linux oldld, aout, or coff. | |
11211 | linux*oldld* | linux*aout* | linux*coff*) | |
11212 | dynamic_linker=no | |
11213 | ;; | |
11214 | ||
11215 | linux*android*) | |
11216 | version_type=none # Android doesn't support versioned libraries. | |
11217 | need_lib_prefix=no | |
11218 | need_version=no | |
11219 | library_names_spec='$libname$release$shared_ext' | |
11220 | soname_spec='$libname$release$shared_ext' | |
11221 | finish_cmds= | |
11222 | shlibpath_var=LD_LIBRARY_PATH | |
11223 | shlibpath_overrides_runpath=yes | |
11224 | ||
11225 | # This implies no fast_install, which is unacceptable. | |
11226 | # Some rework will be needed to allow for fast_install | |
11227 | # before this can be enabled. | |
11228 | hardcode_into_libs=yes | |
11229 | ||
11230 | dynamic_linker='Android linker' | |
11231 | # Don't embed -rpath directories since the linker doesn't support them. | |
11232 | hardcode_libdir_flag_spec='-L$libdir' | |
11233 | ;; | |
11234 | ||
11235 | # This must be glibc/ELF. | |
11236 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11237 | version_type=linux # correct to gnu/linux during the next big refactor | |
11238 | need_lib_prefix=no | |
11239 | need_version=no | |
11240 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11241 | soname_spec='$libname$release$shared_ext$major' | |
11242 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11243 | shlibpath_var=LD_LIBRARY_PATH | |
11244 | shlibpath_overrides_runpath=no | |
11245 | ||
11246 | # Some binutils ld are patched to set DT_RUNPATH | |
11247 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
11248 | $as_echo_n "(cached) " >&6 | |
11249 | else | |
11250 | lt_cv_shlibpath_overrides_runpath=no | |
11251 | save_LDFLAGS=$LDFLAGS | |
11252 | save_libdir=$libdir | |
11253 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11254 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11256 | /* end confdefs.h. */ | |
11257 | ||
11258 | int | |
11259 | main () | |
11260 | { | |
11261 | ||
11262 | ; | |
11263 | return 0; | |
11264 | } | |
11265 | _ACEOF | |
11266 | if ac_fn_c_try_link "$LINENO"; then : | |
11267 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11268 | lt_cv_shlibpath_overrides_runpath=yes | |
11269 | fi | |
11270 | fi | |
11271 | rm -f core conftest.err conftest.$ac_objext \ | |
11272 | conftest$ac_exeext conftest.$ac_ext | |
11273 | LDFLAGS=$save_LDFLAGS | |
11274 | libdir=$save_libdir | |
11275 | ||
11276 | fi | |
11277 | ||
11278 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11279 | ||
11280 | # This implies no fast_install, which is unacceptable. | |
11281 | # Some rework will be needed to allow for fast_install | |
11282 | # before this can be enabled. | |
11283 | hardcode_into_libs=yes | |
11284 | ||
11285 | # Ideally, we could use ldconfig to report *all* directores which are | |
11286 | # searched for libraries, however this is still not possible. Aside from not | |
11287 | # being certain /sbin/ldconfig is available, command | |
11288 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11289 | # even though it is searched at run-time. Try to do the best guess by | |
11290 | # appending ld.so.conf contents (and includes) to the search path. | |
11291 | if test -f /etc/ld.so.conf; then | |
11292 | 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' ' '` | |
11293 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11294 | fi | |
11295 | ||
11296 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11297 | # powerpc, because MkLinux only supported shared libraries with the | |
11298 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11299 | # most powerpc-linux boxes support dynamic linking these days and | |
11300 | # people can always --disable-shared, the test was removed, and we | |
11301 | # assume the GNU/Linux dynamic linker is in use. | |
11302 | dynamic_linker='GNU/Linux ld.so' | |
11303 | ;; | |
11304 | ||
11305 | netbsdelf*-gnu) | |
11306 | version_type=linux | |
11307 | need_lib_prefix=no | |
11308 | need_version=no | |
11309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11310 | soname_spec='${libname}${release}${shared_ext}$major' | |
11311 | shlibpath_var=LD_LIBRARY_PATH | |
11312 | shlibpath_overrides_runpath=no | |
11313 | hardcode_into_libs=yes | |
11314 | dynamic_linker='NetBSD ld.elf_so' | |
11315 | ;; | |
11316 | ||
11317 | netbsd*) | |
11318 | version_type=sunos | |
11319 | need_lib_prefix=no | |
11320 | need_version=no | |
11321 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11322 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11323 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11324 | dynamic_linker='NetBSD (a.out) ld.so' | |
11325 | else | |
11326 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11327 | soname_spec='$libname$release$shared_ext$major' | |
11328 | dynamic_linker='NetBSD ld.elf_so' | |
11329 | fi | |
11330 | shlibpath_var=LD_LIBRARY_PATH | |
11331 | shlibpath_overrides_runpath=yes | |
11332 | hardcode_into_libs=yes | |
11333 | ;; | |
11334 | ||
11335 | newsos6) | |
11336 | version_type=linux # correct to gnu/linux during the next big refactor | |
11337 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11338 | shlibpath_var=LD_LIBRARY_PATH | |
11339 | shlibpath_overrides_runpath=yes | |
11340 | ;; | |
11341 | ||
11342 | *nto* | *qnx*) | |
11343 | version_type=qnx | |
11344 | need_lib_prefix=no | |
11345 | need_version=no | |
11346 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11347 | soname_spec='$libname$release$shared_ext$major' | |
11348 | shlibpath_var=LD_LIBRARY_PATH | |
11349 | shlibpath_overrides_runpath=no | |
11350 | hardcode_into_libs=yes | |
11351 | dynamic_linker='ldqnx.so' | |
11352 | ;; | |
11353 | ||
11354 | openbsd* | bitrig*) | |
11355 | version_type=sunos | |
11356 | sys_lib_dlsearch_path_spec=/usr/lib | |
11357 | need_lib_prefix=no | |
11358 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
11359 | need_version=no | |
11360 | else | |
11361 | need_version=yes | |
11362 | fi | |
11363 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11364 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11365 | shlibpath_var=LD_LIBRARY_PATH | |
11366 | shlibpath_overrides_runpath=yes | |
11367 | ;; | |
11368 | ||
11369 | os2*) | |
11370 | libname_spec='$name' | |
11371 | version_type=windows | |
11372 | shrext_cmds=.dll | |
11373 | need_version=no | |
11374 | need_lib_prefix=no | |
11375 | # OS/2 can only load a DLL with a base name of 8 characters or less. | |
11376 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11377 | v=$($ECHO $release$versuffix | tr -d .-); | |
11378 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11379 | $ECHO $n$v`$shared_ext' | |
11380 | library_names_spec='${libname}_dll.$libext' | |
11381 | dynamic_linker='OS/2 ld.exe' | |
11382 | shlibpath_var=BEGINLIBPATH | |
11383 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11384 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11385 | postinstall_cmds='base_file=`basename \$file`~ | |
11386 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11387 | dldir=$destdir/`dirname \$dlpath`~ | |
11388 | test -d \$dldir || mkdir -p \$dldir~ | |
11389 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11390 | chmod a+x \$dldir/$dlname~ | |
11391 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11392 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11393 | fi' | |
11394 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11395 | dlpath=$dir/\$dldll~ | |
11396 | $RM \$dlpath' | |
11397 | ;; | |
11398 | ||
11399 | osf3* | osf4* | osf5*) | |
11400 | version_type=osf | |
11401 | need_lib_prefix=no | |
11402 | need_version=no | |
11403 | soname_spec='$libname$release$shared_ext$major' | |
11404 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11405 | shlibpath_var=LD_LIBRARY_PATH | |
11406 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11407 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11408 | ;; | |
11409 | ||
11410 | rdos*) | |
11411 | dynamic_linker=no | |
11412 | ;; | |
11413 | ||
11414 | solaris*) | |
11415 | version_type=linux # correct to gnu/linux during the next big refactor | |
11416 | need_lib_prefix=no | |
11417 | need_version=no | |
11418 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11419 | soname_spec='$libname$release$shared_ext$major' | |
11420 | shlibpath_var=LD_LIBRARY_PATH | |
11421 | shlibpath_overrides_runpath=yes | |
11422 | hardcode_into_libs=yes | |
11423 | # ldd complains unless libraries are executable | |
11424 | postinstall_cmds='chmod +x $lib' | |
11425 | ;; | |
11426 | ||
11427 | sunos4*) | |
11428 | version_type=sunos | |
11429 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11430 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11431 | shlibpath_var=LD_LIBRARY_PATH | |
11432 | shlibpath_overrides_runpath=yes | |
11433 | if test yes = "$with_gnu_ld"; then | |
11434 | need_lib_prefix=no | |
11435 | fi | |
11436 | need_version=yes | |
11437 | ;; | |
11438 | ||
11439 | sysv4 | sysv4.3*) | |
11440 | version_type=linux # correct to gnu/linux during the next big refactor | |
11441 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11442 | soname_spec='$libname$release$shared_ext$major' | |
11443 | shlibpath_var=LD_LIBRARY_PATH | |
11444 | case $host_vendor in | |
11445 | sni) | |
11446 | shlibpath_overrides_runpath=no | |
11447 | need_lib_prefix=no | |
11448 | runpath_var=LD_RUN_PATH | |
11449 | ;; | |
11450 | siemens) | |
11451 | need_lib_prefix=no | |
11452 | ;; | |
11453 | motorola) | |
11454 | need_lib_prefix=no | |
11455 | need_version=no | |
11456 | shlibpath_overrides_runpath=no | |
11457 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11458 | ;; | |
11459 | esac | |
11460 | ;; | |
11461 | ||
11462 | sysv4*MP*) | |
11463 | if test -d /usr/nec; then | |
11464 | version_type=linux # correct to gnu/linux during the next big refactor | |
11465 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' | |
11466 | soname_spec='$libname$shared_ext.$major' | |
11467 | shlibpath_var=LD_LIBRARY_PATH | |
11468 | fi | |
11469 | ;; | |
11470 | ||
11471 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11472 | version_type=sco | |
11473 | need_lib_prefix=no | |
11474 | need_version=no | |
11475 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' | |
11476 | soname_spec='$libname$release$shared_ext$major' | |
11477 | shlibpath_var=LD_LIBRARY_PATH | |
11478 | shlibpath_overrides_runpath=yes | |
11479 | hardcode_into_libs=yes | |
11480 | if test yes = "$with_gnu_ld"; then | |
11481 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11482 | else | |
11483 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11484 | case $host_os in | |
11485 | sco3.2v5*) | |
11486 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11487 | ;; | |
11488 | esac | |
11489 | fi | |
11490 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11491 | ;; | |
11492 | ||
11493 | tpf*) | |
11494 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11495 | version_type=linux # correct to gnu/linux during the next big refactor | |
11496 | need_lib_prefix=no | |
11497 | need_version=no | |
11498 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11499 | shlibpath_var=LD_LIBRARY_PATH | |
11500 | shlibpath_overrides_runpath=no | |
11501 | hardcode_into_libs=yes | |
11502 | ;; | |
11503 | ||
11504 | uts4*) | |
11505 | version_type=linux # correct to gnu/linux during the next big refactor | |
11506 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11507 | soname_spec='$libname$release$shared_ext$major' | |
11508 | shlibpath_var=LD_LIBRARY_PATH | |
11509 | ;; | |
11510 | ||
11511 | *) | |
11512 | dynamic_linker=no | |
11513 | ;; | |
11514 | esac | |
11515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11516 | $as_echo "$dynamic_linker" >&6; } | |
11517 | test no = "$dynamic_linker" && can_build_shared=no | |
11518 | ||
11519 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11520 | if test yes = "$GCC"; then | |
11521 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11522 | fi | |
11523 | ||
11524 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then | |
11525 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
11526 | fi | |
11527 | ||
11528 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
11529 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
11530 | fi | |
11531 | ||
11532 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... | |
11533 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
11534 | ||
11535 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
11536 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
11537 | ||
11538 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
11539 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
11540 | ||
11541 | ||
11542 | ||
11543 | ||
11544 | ||
11545 | ||
11546 | ||
11547 | ||
11548 | ||
11549 | ||
11550 | ||
11551 | ||
11552 | ||
11553 | ||
11554 | ||
11555 | ||
11556 | ||
11557 | ||
11558 | ||
11559 | ||
11560 | ||
11561 | ||
11562 | ||
11563 | ||
11564 | ||
11565 | ||
11566 | ||
11567 | ||
11568 | ||
11569 | ||
11570 | ||
11571 | ||
11572 | ||
11573 | ||
11574 | ||
11575 | ||
11576 | ||
11577 | ||
11578 | ||
11579 | ||
11580 | ||
11581 | ||
11582 | ||
11583 | ||
11584 | ||
11585 | ||
11586 | ||
11587 | ||
11588 | ||
11589 | ||
11590 | ||
11591 | ||
11592 | ||
11593 | ||
11594 | ||
11595 | ||
11596 | ||
11597 | ||
11598 | ||
11599 | ||
11600 | ||
11601 | ||
11602 | ||
11603 | ||
11604 | ||
11605 | ||
11606 | ||
11607 | ||
11608 | ||
11609 | ||
11610 | ||
11611 | ||
11612 | ||
11613 | ||
11614 | ||
11615 | ||
11616 | ||
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | ||
11633 | ||
11634 | ||
11635 | ||
11636 | ||
11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11638 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11639 | hardcode_action= | |
11640 | if test -n "$hardcode_libdir_flag_spec" || | |
11641 | test -n "$runpath_var" || | |
11642 | test yes = "$hardcode_automatic"; then | |
11643 | ||
11644 | # We can hardcode non-existent directories. | |
11645 | if test no != "$hardcode_direct" && | |
11646 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11647 | # have to relink, otherwise we might link with an installed library | |
11648 | # when we should be linking with a yet-to-be-installed one | |
11649 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && | |
11650 | test no != "$hardcode_minus_L"; then | |
11651 | # Linking always hardcodes the temporary library directory. | |
11652 | hardcode_action=relink | |
11653 | else | |
11654 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11655 | hardcode_action=immediate | |
11656 | fi | |
11657 | else | |
11658 | # We cannot hardcode anything, or else we can only hardcode existing | |
11659 | # directories. | |
11660 | hardcode_action=unsupported | |
11661 | fi | |
11662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11663 | $as_echo "$hardcode_action" >&6; } | |
11664 | ||
11665 | if test relink = "$hardcode_action" || | |
11666 | test yes = "$inherit_rpath"; then | |
11667 | # Fast installation is not supported | |
11668 | enable_fast_install=no | |
11669 | elif test yes = "$shlibpath_overrides_runpath" || | |
11670 | test no = "$enable_shared"; then | |
11671 | # Fast installation is not necessary | |
11672 | enable_fast_install=needless | |
11673 | fi | |
11674 | ||
11675 | ||
11676 | ||
11677 | ||
11678 | ||
11679 | ||
11680 | if test yes != "$enable_dlopen"; then | |
11681 | enable_dlopen=unknown | |
11682 | enable_dlopen_self=unknown | |
11683 | enable_dlopen_self_static=unknown | |
11684 | else | |
11685 | lt_cv_dlopen=no | |
11686 | lt_cv_dlopen_libs= | |
11687 | ||
11688 | case $host_os in | |
11689 | beos*) | |
11690 | lt_cv_dlopen=load_add_on | |
11691 | lt_cv_dlopen_libs= | |
11692 | lt_cv_dlopen_self=yes | |
11693 | ;; | |
11694 | ||
11695 | mingw* | pw32* | cegcc*) | |
11696 | lt_cv_dlopen=LoadLibrary | |
11697 | lt_cv_dlopen_libs= | |
11698 | ;; | |
11699 | ||
11700 | cygwin*) | |
11701 | lt_cv_dlopen=dlopen | |
11702 | lt_cv_dlopen_libs= | |
11703 | ;; | |
11704 | ||
11705 | darwin*) | |
11706 | # if libdl is installed we need to link against it | |
11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11708 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11709 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11710 | $as_echo_n "(cached) " >&6 | |
11711 | else | |
11712 | ac_check_lib_save_LIBS=$LIBS | |
11713 | LIBS="-ldl $LIBS" | |
11714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11715 | /* end confdefs.h. */ | |
11716 | ||
11717 | /* Override any GCC internal prototype to avoid an error. | |
11718 | Use char because int might match the return type of a GCC | |
11719 | builtin and then its argument prototype would still apply. */ | |
11720 | #ifdef __cplusplus | |
11721 | extern "C" | |
11722 | #endif | |
11723 | char dlopen (); | |
11724 | int | |
11725 | main () | |
11726 | { | |
11727 | return dlopen (); | |
11728 | ; | |
11729 | return 0; | |
11730 | } | |
11731 | _ACEOF | |
11732 | if ac_fn_c_try_link "$LINENO"; then : | |
11733 | ac_cv_lib_dl_dlopen=yes | |
11734 | else | |
11735 | ac_cv_lib_dl_dlopen=no | |
11736 | fi | |
11737 | rm -f core conftest.err conftest.$ac_objext \ | |
11738 | conftest$ac_exeext conftest.$ac_ext | |
11739 | LIBS=$ac_check_lib_save_LIBS | |
11740 | fi | |
11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11742 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11743 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11744 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
11745 | else | |
11746 | ||
11747 | lt_cv_dlopen=dyld | |
11748 | lt_cv_dlopen_libs= | |
11749 | lt_cv_dlopen_self=yes | |
11750 | ||
11751 | fi | |
11752 | ||
11753 | ;; | |
11754 | ||
11755 | tpf*) | |
11756 | # Don't try to run any link tests for TPF. We know it's impossible | |
11757 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
11758 | lt_cv_dlopen=dlopen | |
11759 | lt_cv_dlopen_libs= | |
11760 | lt_cv_dlopen_self=no | |
11761 | ;; | |
11762 | ||
11763 | *) | |
11764 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11765 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11766 | lt_cv_dlopen=shl_load | |
11767 | else | |
11768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11769 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11770 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11771 | $as_echo_n "(cached) " >&6 | |
11772 | else | |
11773 | ac_check_lib_save_LIBS=$LIBS | |
11774 | LIBS="-ldld $LIBS" | |
11775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11776 | /* end confdefs.h. */ | |
11777 | ||
11778 | /* Override any GCC internal prototype to avoid an error. | |
11779 | Use char because int might match the return type of a GCC | |
11780 | builtin and then its argument prototype would still apply. */ | |
11781 | #ifdef __cplusplus | |
11782 | extern "C" | |
11783 | #endif | |
11784 | char shl_load (); | |
11785 | int | |
11786 | main () | |
11787 | { | |
11788 | return shl_load (); | |
11789 | ; | |
11790 | return 0; | |
11791 | } | |
11792 | _ACEOF | |
11793 | if ac_fn_c_try_link "$LINENO"; then : | |
11794 | ac_cv_lib_dld_shl_load=yes | |
11795 | else | |
11796 | ac_cv_lib_dld_shl_load=no | |
11797 | fi | |
11798 | rm -f core conftest.err conftest.$ac_objext \ | |
11799 | conftest$ac_exeext conftest.$ac_ext | |
11800 | LIBS=$ac_check_lib_save_LIBS | |
11801 | fi | |
11802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11803 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11804 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11805 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld | |
11806 | else | |
11807 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11808 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11809 | lt_cv_dlopen=dlopen | |
11810 | else | |
11811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11812 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11813 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11814 | $as_echo_n "(cached) " >&6 | |
11815 | else | |
11816 | ac_check_lib_save_LIBS=$LIBS | |
11817 | LIBS="-ldl $LIBS" | |
11818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11819 | /* end confdefs.h. */ | |
11820 | ||
11821 | /* Override any GCC internal prototype to avoid an error. | |
11822 | Use char because int might match the return type of a GCC | |
11823 | builtin and then its argument prototype would still apply. */ | |
11824 | #ifdef __cplusplus | |
11825 | extern "C" | |
11826 | #endif | |
11827 | char dlopen (); | |
11828 | int | |
11829 | main () | |
11830 | { | |
11831 | return dlopen (); | |
11832 | ; | |
11833 | return 0; | |
11834 | } | |
11835 | _ACEOF | |
11836 | if ac_fn_c_try_link "$LINENO"; then : | |
11837 | ac_cv_lib_dl_dlopen=yes | |
11838 | else | |
11839 | ac_cv_lib_dl_dlopen=no | |
11840 | fi | |
11841 | rm -f core conftest.err conftest.$ac_objext \ | |
11842 | conftest$ac_exeext conftest.$ac_ext | |
11843 | LIBS=$ac_check_lib_save_LIBS | |
11844 | fi | |
11845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11846 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11847 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11848 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
11849 | else | |
11850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11851 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11852 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11853 | $as_echo_n "(cached) " >&6 | |
11854 | else | |
11855 | ac_check_lib_save_LIBS=$LIBS | |
11856 | LIBS="-lsvld $LIBS" | |
11857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11858 | /* end confdefs.h. */ | |
11859 | ||
11860 | /* Override any GCC internal prototype to avoid an error. | |
11861 | Use char because int might match the return type of a GCC | |
11862 | builtin and then its argument prototype would still apply. */ | |
11863 | #ifdef __cplusplus | |
11864 | extern "C" | |
11865 | #endif | |
11866 | char dlopen (); | |
11867 | int | |
11868 | main () | |
11869 | { | |
11870 | return dlopen (); | |
11871 | ; | |
11872 | return 0; | |
11873 | } | |
11874 | _ACEOF | |
11875 | if ac_fn_c_try_link "$LINENO"; then : | |
11876 | ac_cv_lib_svld_dlopen=yes | |
11877 | else | |
11878 | ac_cv_lib_svld_dlopen=no | |
11879 | fi | |
11880 | rm -f core conftest.err conftest.$ac_objext \ | |
11881 | conftest$ac_exeext conftest.$ac_ext | |
11882 | LIBS=$ac_check_lib_save_LIBS | |
11883 | fi | |
11884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11885 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11886 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11887 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld | |
11888 | else | |
11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11890 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11891 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11892 | $as_echo_n "(cached) " >&6 | |
11893 | else | |
11894 | ac_check_lib_save_LIBS=$LIBS | |
11895 | LIBS="-ldld $LIBS" | |
11896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11897 | /* end confdefs.h. */ | |
11898 | ||
11899 | /* Override any GCC internal prototype to avoid an error. | |
11900 | Use char because int might match the return type of a GCC | |
11901 | builtin and then its argument prototype would still apply. */ | |
11902 | #ifdef __cplusplus | |
11903 | extern "C" | |
11904 | #endif | |
11905 | char dld_link (); | |
11906 | int | |
11907 | main () | |
11908 | { | |
11909 | return dld_link (); | |
11910 | ; | |
11911 | return 0; | |
11912 | } | |
11913 | _ACEOF | |
11914 | if ac_fn_c_try_link "$LINENO"; then : | |
11915 | ac_cv_lib_dld_dld_link=yes | |
11916 | else | |
11917 | ac_cv_lib_dld_dld_link=no | |
11918 | fi | |
11919 | rm -f core conftest.err conftest.$ac_objext \ | |
11920 | conftest$ac_exeext conftest.$ac_ext | |
11921 | LIBS=$ac_check_lib_save_LIBS | |
11922 | fi | |
11923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11924 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11925 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
11926 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld | |
11927 | fi | |
11928 | ||
11929 | ||
11930 | fi | |
11931 | ||
11932 | ||
11933 | fi | |
11934 | ||
11935 | ||
11936 | fi | |
11937 | ||
11938 | ||
11939 | fi | |
11940 | ||
11941 | ||
11942 | fi | |
11943 | ||
11944 | ;; | |
11945 | esac | |
11946 | ||
11947 | if test no = "$lt_cv_dlopen"; then | |
11948 | enable_dlopen=no | |
11949 | else | |
11950 | enable_dlopen=yes | |
11951 | fi | |
11952 | ||
11953 | case $lt_cv_dlopen in | |
11954 | dlopen) | |
11955 | save_CPPFLAGS=$CPPFLAGS | |
11956 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11957 | ||
11958 | save_LDFLAGS=$LDFLAGS | |
11959 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11960 | ||
11961 | save_LIBS=$LIBS | |
11962 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11963 | ||
11964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11965 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11966 | if ${lt_cv_dlopen_self+:} false; then : | |
11967 | $as_echo_n "(cached) " >&6 | |
11968 | else | |
11969 | if test yes = "$cross_compiling"; then : | |
11970 | lt_cv_dlopen_self=cross | |
11971 | else | |
11972 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11973 | lt_status=$lt_dlunknown | |
11974 | cat > conftest.$ac_ext <<_LT_EOF | |
11975 | #line $LINENO "configure" | |
11976 | #include "confdefs.h" | |
11977 | ||
11978 | #if HAVE_DLFCN_H | |
11979 | #include <dlfcn.h> | |
11980 | #endif | |
11981 | ||
11982 | #include <stdio.h> | |
11983 | ||
11984 | #ifdef RTLD_GLOBAL | |
11985 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11986 | #else | |
11987 | # ifdef DL_GLOBAL | |
11988 | # define LT_DLGLOBAL DL_GLOBAL | |
11989 | # else | |
11990 | # define LT_DLGLOBAL 0 | |
11991 | # endif | |
11992 | #endif | |
11993 | ||
11994 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11995 | find out it does not work in some platform. */ | |
11996 | #ifndef LT_DLLAZY_OR_NOW | |
11997 | # ifdef RTLD_LAZY | |
11998 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11999 | # else | |
12000 | # ifdef DL_LAZY | |
12001 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12002 | # else | |
12003 | # ifdef RTLD_NOW | |
12004 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12005 | # else | |
12006 | # ifdef DL_NOW | |
12007 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12008 | # else | |
12009 | # define LT_DLLAZY_OR_NOW 0 | |
12010 | # endif | |
12011 | # endif | |
12012 | # endif | |
12013 | # endif | |
12014 | #endif | |
12015 | ||
12016 | /* When -fvisibility=hidden is used, assume the code has been annotated | |
12017 | correspondingly for the symbols needed. */ | |
12018 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12019 | int fnord () __attribute__((visibility("default"))); | |
12020 | #endif | |
12021 | ||
12022 | int fnord () { return 42; } | |
12023 | int main () | |
12024 | { | |
12025 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12026 | int status = $lt_dlunknown; | |
12027 | ||
12028 | if (self) | |
12029 | { | |
12030 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12031 | else | |
12032 | { | |
12033 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12034 | else puts (dlerror ()); | |
12035 | } | |
12036 | /* dlclose (self); */ | |
12037 | } | |
12038 | else | |
12039 | puts (dlerror ()); | |
12040 | ||
12041 | return status; | |
12042 | } | |
12043 | _LT_EOF | |
12044 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12045 | (eval $ac_link) 2>&5 | |
12046 | ac_status=$? | |
12047 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12048 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
12049 | (./conftest; exit; ) >&5 2>/dev/null | |
12050 | lt_status=$? | |
12051 | case x$lt_status in | |
12052 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12053 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12054 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12055 | esac | |
12056 | else : | |
12057 | # compilation failed | |
12058 | lt_cv_dlopen_self=no | |
12059 | fi | |
12060 | fi | |
12061 | rm -fr conftest* | |
12062 | ||
12063 | ||
12064 | fi | |
12065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12066 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12067 | ||
12068 | if test yes = "$lt_cv_dlopen_self"; then | |
12069 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12071 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12072 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12073 | $as_echo_n "(cached) " >&6 | |
12074 | else | |
12075 | if test yes = "$cross_compiling"; then : | |
12076 | lt_cv_dlopen_self_static=cross | |
12077 | else | |
12078 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12079 | lt_status=$lt_dlunknown | |
12080 | cat > conftest.$ac_ext <<_LT_EOF | |
12081 | #line $LINENO "configure" | |
12082 | #include "confdefs.h" | |
12083 | ||
12084 | #if HAVE_DLFCN_H | |
12085 | #include <dlfcn.h> | |
12086 | #endif | |
12087 | ||
12088 | #include <stdio.h> | |
12089 | ||
12090 | #ifdef RTLD_GLOBAL | |
12091 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12092 | #else | |
12093 | # ifdef DL_GLOBAL | |
12094 | # define LT_DLGLOBAL DL_GLOBAL | |
12095 | # else | |
12096 | # define LT_DLGLOBAL 0 | |
12097 | # endif | |
12098 | #endif | |
12099 | ||
12100 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12101 | find out it does not work in some platform. */ | |
12102 | #ifndef LT_DLLAZY_OR_NOW | |
12103 | # ifdef RTLD_LAZY | |
12104 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12105 | # else | |
12106 | # ifdef DL_LAZY | |
12107 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12108 | # else | |
12109 | # ifdef RTLD_NOW | |
12110 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12111 | # else | |
12112 | # ifdef DL_NOW | |
12113 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12114 | # else | |
12115 | # define LT_DLLAZY_OR_NOW 0 | |
12116 | # endif | |
12117 | # endif | |
12118 | # endif | |
12119 | # endif | |
12120 | #endif | |
12121 | ||
12122 | /* When -fvisibility=hidden is used, assume the code has been annotated | |
12123 | correspondingly for the symbols needed. */ | |
12124 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12125 | int fnord () __attribute__((visibility("default"))); | |
12126 | #endif | |
12127 | ||
12128 | int fnord () { return 42; } | |
12129 | int main () | |
12130 | { | |
12131 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12132 | int status = $lt_dlunknown; | |
12133 | ||
12134 | if (self) | |
12135 | { | |
12136 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12137 | else | |
12138 | { | |
12139 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12140 | else puts (dlerror ()); | |
12141 | } | |
12142 | /* dlclose (self); */ | |
12143 | } | |
12144 | else | |
12145 | puts (dlerror ()); | |
12146 | ||
12147 | return status; | |
12148 | } | |
12149 | _LT_EOF | |
12150 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12151 | (eval $ac_link) 2>&5 | |
12152 | ac_status=$? | |
12153 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12154 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
12155 | (./conftest; exit; ) >&5 2>/dev/null | |
12156 | lt_status=$? | |
12157 | case x$lt_status in | |
12158 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12159 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12160 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12161 | esac | |
12162 | else : | |
12163 | # compilation failed | |
12164 | lt_cv_dlopen_self_static=no | |
12165 | fi | |
12166 | fi | |
12167 | rm -fr conftest* | |
12168 | ||
12169 | ||
12170 | fi | |
12171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12172 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12173 | fi | |
12174 | ||
12175 | CPPFLAGS=$save_CPPFLAGS | |
12176 | LDFLAGS=$save_LDFLAGS | |
12177 | LIBS=$save_LIBS | |
12178 | ;; | |
12179 | esac | |
12180 | ||
12181 | case $lt_cv_dlopen_self in | |
12182 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12183 | *) enable_dlopen_self=unknown ;; | |
12184 | esac | |
12185 | ||
12186 | case $lt_cv_dlopen_self_static in | |
12187 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12188 | *) enable_dlopen_self_static=unknown ;; | |
12189 | esac | |
12190 | fi | |
12191 | ||
12192 | ||
12193 | ||
12194 | ||
12195 | ||
12196 | ||
12197 | ||
12198 | ||
12199 | ||
12200 | ||
12201 | ||
12202 | ||
12203 | ||
12204 | ||
12205 | ||
12206 | ||
12207 | ||
12208 | striplib= | |
12209 | old_striplib= | |
12210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12211 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12212 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12213 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12214 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12216 | $as_echo "yes" >&6; } | |
12217 | else | |
12218 | # FIXME - insert some real tests, host_os isn't really good enough | |
12219 | case $host_os in | |
12220 | darwin*) | |
12221 | if test -n "$STRIP"; then | |
12222 | striplib="$STRIP -x" | |
12223 | old_striplib="$STRIP -S" | |
12224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12225 | $as_echo "yes" >&6; } | |
12226 | else | |
12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12228 | $as_echo "no" >&6; } | |
12229 | fi | |
12230 | ;; | |
12231 | *) | |
12232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12233 | $as_echo "no" >&6; } | |
12234 | ;; | |
12235 | esac | |
12236 | fi | |
12237 | ||
12238 | ||
12239 | ||
12240 | ||
12241 | ||
12242 | ||
12243 | ||
12244 | ||
12245 | ||
12246 | ||
12247 | ||
12248 | ||
12249 | # Report what library types will actually be built | |
12250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12251 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12253 | $as_echo "$can_build_shared" >&6; } | |
12254 | ||
12255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12256 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12257 | test no = "$can_build_shared" && enable_shared=no | |
12258 | ||
12259 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12260 | # are all built from PIC. | |
12261 | case $host_os in | |
12262 | aix3*) | |
12263 | test yes = "$enable_shared" && enable_static=no | |
12264 | if test -n "$RANLIB"; then | |
12265 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12266 | postinstall_cmds='$RANLIB $lib' | |
12267 | fi | |
12268 | ;; | |
12269 | ||
12270 | aix[4-9]*) | |
12271 | if test ia64 != "$host_cpu"; then | |
12272 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
12273 | yes,aix,yes) ;; # shared object as lib.so file only | |
12274 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
12275 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
12276 | esac | |
12277 | fi | |
12278 | ;; | |
12279 | esac | |
12280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12281 | $as_echo "$enable_shared" >&6; } | |
12282 | ||
12283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12284 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12285 | # Make sure either enable_shared or enable_static is yes. | |
12286 | test yes = "$enable_shared" || enable_static=yes | |
12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12288 | $as_echo "$enable_static" >&6; } | |
12289 | ||
12290 | ||
12291 | ||
12292 | ||
12293 | fi | |
12294 | ac_ext=c | |
12295 | ac_cpp='$CPP $CPPFLAGS' | |
12296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12299 | ||
12300 | CC=$lt_save_CC | |
12301 | ||
12302 | ||
12303 | ||
12304 | ||
12305 | ||
12306 | ||
12307 | ||
12308 | ||
12309 | ||
12310 | ||
12311 | ||
12312 | ||
12313 | ||
12314 | ||
12315 | ||
12316 | ac_config_commands="$ac_config_commands libtool" | |
12317 | ||
12318 | ||
12319 | ||
12320 | ||
12321 | # Only expand once: | |
12322 | ||
12323 | ||
12324 | # By default we simply use the C compiler to build assembly code. | |
12325 | ||
12326 | test "${CCAS+set}" = set || CCAS=$CC | |
12327 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
12328 | ||
12329 | ||
12330 | ||
12331 | depcc="$CCAS" am_compiler_list= | |
12332 | ||
12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
12334 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
12335 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : | |
12336 | $as_echo_n "(cached) " >&6 | |
12337 | else | |
12338 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
12339 | # We make a subdir and do the tests there. Otherwise we can end up | |
12340 | # making bogus files that we don't know about and never remove. For | |
12341 | # instance it was reported that on HP-UX the gcc test will end up | |
12342 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
12343 | # in D". | |
12344 | rm -rf conftest.dir | |
12345 | mkdir conftest.dir | |
12346 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
12347 | # using a relative directory. | |
12348 | cp "$am_depcomp" conftest.dir | |
12349 | cd conftest.dir | |
12350 | # We will build objects and dependencies in a subdirectory because | |
12351 | # it helps to detect inapplicable dependency modes. For instance | |
12352 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
12353 | # side effect of compilation, but ICC will put the dependencies in | |
12354 | # the current directory while Tru64 will put them in the object | |
12355 | # directory. | |
12356 | mkdir sub | |
12357 | ||
12358 | am_cv_CCAS_dependencies_compiler_type=none | |
12359 | if test "$am_compiler_list" = ""; then | |
12360 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
12361 | fi | |
12362 | am__universal=false | |
12363 | ||
12364 | ||
12365 | for depmode in $am_compiler_list; do | |
12366 | # Setup a source with many dependencies, because some compilers | |
12367 | # like to wrap large dependency lists on column 80 (with \), and | |
12368 | # we should not choose a depcomp mode which is confused by this. | |
12369 | # | |
12370 | # We need to recreate these files for each test, as the compiler may | |
12371 | # overwrite some of them when testing with obscure command lines. | |
12372 | # This happens at least with the AIX C compiler. | |
12373 | : > sub/conftest.c | |
12374 | for i in 1 2 3 4 5 6; do | |
12375 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
12376 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
12377 | # Solaris 10 /bin/sh. | |
12378 | echo '/* dummy */' > sub/conftst$i.h | |
12379 | done | |
12380 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
12381 | ||
12382 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
12383 | # mode. It turns out that the SunPro C++ compiler does not properly | |
12384 | # handle '-M -o', and we need to detect this. Also, some Intel | |
12385 | # versions had trouble with output in subdirs. | |
12386 | am__obj=sub/conftest.${OBJEXT-o} | |
12387 | am__minus_obj="-o $am__obj" | |
12388 | case $depmode in | |
12389 | gcc) | |
12390 | # This depmode causes a compiler race in universal mode. | |
12391 | test "$am__universal" = false || continue | |
12392 | ;; | |
12393 | nosideeffect) | |
12394 | # After this tag, mechanisms are not by side-effect, so they'll | |
12395 | # only be used when explicitly requested. | |
12396 | if test "x$enable_dependency_tracking" = xyes; then | |
12397 | continue | |
12398 | else | |
12399 | break | |
12400 | fi | |
12401 | ;; | |
12402 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
12403 | # This compiler won't grok '-c -o', but also, the minuso test has | |
12404 | # not run yet. These depmodes are late enough in the game, and | |
12405 | # so weak that their functioning should not be impacted. | |
12406 | am__obj=conftest.${OBJEXT-o} | |
12407 | am__minus_obj= | |
12408 | ;; | |
12409 | none) break ;; | |
12410 | esac | |
12411 | if depmode=$depmode \ | |
12412 | source=sub/conftest.c object=$am__obj \ | |
12413 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
12414 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
12415 | >/dev/null 2>conftest.err && | |
12416 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
12417 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
12418 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
12419 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
12420 | # icc doesn't choke on unknown options, it will just issue warnings | |
12421 | # or remarks (even with -Werror). So we grep stderr for any message | |
12422 | # that says an option was ignored or not supported. | |
12423 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
12424 | # icc: Command line warning: ignoring option '-M'; no argument required | |
12425 | # The diagnosis changed in icc 8.0: | |
12426 | # icc: Command line remark: option '-MP' not supported | |
12427 | if (grep 'ignoring option' conftest.err || | |
12428 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
12429 | am_cv_CCAS_dependencies_compiler_type=$depmode | |
12430 | break | |
12431 | fi | |
12432 | fi | |
12433 | done | |
12434 | ||
12435 | cd .. | |
12436 | rm -rf conftest.dir | |
12437 | else | |
12438 | am_cv_CCAS_dependencies_compiler_type=none | |
12439 | fi | |
12440 | ||
12441 | fi | |
12442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 | |
12443 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } | |
12444 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type | |
12445 | ||
12446 | if | |
12447 | test "x$enable_dependency_tracking" != xno \ | |
12448 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then | |
12449 | am__fastdepCCAS_TRUE= | |
12450 | am__fastdepCCAS_FALSE='#' | |
12451 | else | |
12452 | am__fastdepCCAS_TRUE='#' | |
12453 | am__fastdepCCAS_FALSE= | |
12454 | fi | |
12455 | ||
12456 | ||
12457 | ||
12458 | ||
12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5 | |
12460 | $as_echo_n "checking zfs author... " >&6; } | |
12461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5 | |
12462 | $as_echo "$ZFS_META_AUTHOR" >&6; } | |
12463 | ||
12464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5 | |
12465 | $as_echo_n "checking zfs license... " >&6; } | |
12466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5 | |
12467 | $as_echo "$ZFS_META_LICENSE" >&6; } | |
12468 | ||
12469 | ||
12470 | ||
12471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5 | |
12472 | $as_echo_n "checking linux distribution... " >&6; } | |
12473 | if test -f /etc/toss-release ; then | |
12474 | VENDOR=toss ; | |
12475 | elif test -f /etc/fedora-release ; then | |
12476 | VENDOR=fedora ; | |
12477 | elif test -f /etc/redhat-release ; then | |
12478 | VENDOR=redhat ; | |
12479 | elif test -f /etc/gentoo-release ; then | |
12480 | VENDOR=gentoo ; | |
12481 | elif test -f /etc/arch-release ; then | |
12482 | VENDOR=arch ; | |
12483 | elif test -f /etc/SuSE-release ; then | |
12484 | VENDOR=sles ; | |
12485 | elif test -f /etc/slackware-version ; then | |
12486 | VENDOR=slackware ; | |
12487 | elif test -f /etc/lunar.release ; then | |
12488 | VENDOR=lunar ; | |
12489 | elif test -f /etc/lsb-release ; then | |
12490 | VENDOR=ubuntu ; | |
12491 | elif test -f /etc/debian_version ; then | |
12492 | VENDOR=debian ; | |
12493 | else | |
12494 | VENDOR= ; | |
12495 | fi | |
12496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5 | |
12497 | $as_echo "$VENDOR" >&6; } | |
12498 | ||
12499 | ||
12500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5 | |
12501 | $as_echo_n "checking default package type... " >&6; } | |
12502 | case "$VENDOR" in | |
12503 | toss) DEFAULT_PACKAGE=rpm ;; | |
12504 | redhat) DEFAULT_PACKAGE=rpm ;; | |
12505 | fedora) DEFAULT_PACKAGE=rpm ;; | |
12506 | gentoo) DEFAULT_PACKAGE=tgz ;; | |
12507 | arch) DEFAULT_PACKAGE=tgz ;; | |
12508 | sles) DEFAULT_PACKAGE=rpm ;; | |
12509 | slackware) DEFAULT_PACKAGE=tgz ;; | |
12510 | lunar) DEFAULT_PACKAGE=tgz ;; | |
12511 | ubuntu) DEFAULT_PACKAGE=deb ;; | |
12512 | debian) DEFAULT_PACKAGE=deb ;; | |
12513 | *) DEFAULT_PACKAGE=rpm ;; | |
12514 | esac | |
12515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5 | |
12516 | $as_echo "$DEFAULT_PACKAGE" >&6; } | |
12517 | ||
12518 | ||
12519 | DEFAULT_INIT_DIR=$sysconfdir/init.d | |
12520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5 | |
12521 | $as_echo_n "checking default init directory... " >&6; } | |
12522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5 | |
12523 | $as_echo "$DEFAULT_INIT_DIR" >&6; } | |
12524 | ||
12525 | ||
12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5 | |
12527 | $as_echo_n "checking default init script type... " >&6; } | |
12528 | case "$VENDOR" in | |
12529 | toss) DEFAULT_INIT_SCRIPT=redhat ;; | |
12530 | redhat) DEFAULT_INIT_SCRIPT=redhat ;; | |
12531 | fedora) DEFAULT_INIT_SCRIPT=fedora ;; | |
12532 | gentoo) DEFAULT_INIT_SCRIPT=gentoo ;; | |
12533 | arch) DEFAULT_INIT_SCRIPT=lsb ;; | |
12534 | sles) DEFAULT_INIT_SCRIPT=lsb ;; | |
12535 | slackware) DEFAULT_INIT_SCRIPT=lsb ;; | |
12536 | lunar) DEFAULT_INIT_SCRIPT=lunar ;; | |
12537 | ubuntu) DEFAULT_INIT_SCRIPT=lsb ;; | |
12538 | debian) DEFAULT_INIT_SCRIPT=lsb ;; | |
12539 | *) DEFAULT_INIT_SCRIPT=lsb ;; | |
12540 | esac | |
12541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5 | |
12542 | $as_echo "$DEFAULT_INIT_SCRIPT" >&6; } | |
12543 | ||
12544 | ||
12545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5 | |
12546 | $as_echo_n "checking default init config direectory... " >&6; } | |
12547 | case "$VENDOR" in | |
12548 | gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;; | |
12549 | toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12550 | redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12551 | fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12552 | sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;; | |
12553 | ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;; | |
12554 | debian) DEFAULT_INITCONF_DIR=/etc/default ;; | |
12555 | *) DEFAULT_INITCONF_DIR=/etc/default ;; | |
12556 | esac | |
12557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5 | |
12558 | $as_echo "$DEFAULT_INITCONF_DIR" >&6; } | |
12559 | ||
12560 | ||
12561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5 | |
12562 | $as_echo_n "checking whether initramfs-tools is available... " >&6; } | |
12563 | if test -d /usr/share/initramfs-tools ; then | |
12564 | DEFINE_INITRAMFS='--define "_initramfs 1"' | |
12565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12566 | $as_echo "yes" >&6; } | |
12567 | else | |
12568 | DEFINE_INITRAMFS='' | |
12569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12570 | $as_echo "no" >&6; } | |
12571 | fi | |
12572 | ||
12573 | ||
12574 | ||
12575 | RPM=rpm | |
12576 | RPMBUILD=rpmbuild | |
12577 | ||
12578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5 | |
12579 | $as_echo_n "checking whether $RPM is available... " >&6; } | |
12580 | if tmp=$($RPM --version 2>/dev/null); then : | |
12581 | ||
12582 | RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
12583 | HAVE_RPM=yes | |
12584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5 | |
12585 | $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; } | |
12586 | ||
12587 | else | |
12588 | ||
12589 | HAVE_RPM=no | |
12590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5 | |
12591 | $as_echo "$HAVE_RPM" >&6; } | |
12592 | ||
12593 | fi | |
12594 | ||
12595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5 | |
12596 | $as_echo_n "checking whether $RPMBUILD is available... " >&6; } | |
12597 | if tmp=$($RPMBUILD --version 2>/dev/null); then : | |
12598 | ||
12599 | RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
12600 | HAVE_RPMBUILD=yes | |
12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5 | |
12602 | $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; } | |
12603 | ||
12604 | else | |
12605 | ||
12606 | HAVE_RPMBUILD=no | |
12607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5 | |
12608 | $as_echo "$HAVE_RPMBUILD" >&6; } | |
12609 | ||
12610 | fi | |
12611 | ||
12612 | RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"' | |
12613 | RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)' | |
12614 | RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"' | |
12615 | RPM_DEFINE_DKMS= | |
12616 | ||
12617 | SRPM_DEFINE_COMMON='--define "build_src_rpm 1"' | |
12618 | SRPM_DEFINE_UTIL= | |
12619 | SRPM_DEFINE_KMOD= | |
12620 | SRPM_DEFINE_DKMS= | |
12621 | ||
12622 | RPM_SPEC_DIR="rpm/generic" | |
12623 | ||
12624 | # Check whether --with-spec was given. | |
12625 | if test "${with_spec+set}" = set; then : | |
12626 | withval=$with_spec; RPM_SPEC_DIR="rpm/$withval" | |
12627 | fi | |
12628 | ||
12629 | ||
12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5 | |
12631 | $as_echo_n "checking whether spec files are available... " >&6; } | |
12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5 | |
12633 | $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; } | |
12634 | ||
12635 | ||
12636 | ||
12637 | ||
12638 | ||
12639 | ||
12640 | ||
12641 | ||
12642 | ||
12643 | ||
12644 | ||
12645 | ||
12646 | ||
12647 | ||
12648 | ||
12649 | ||
12650 | ||
12651 | ||
12652 | ||
12653 | ||
12654 | DPKG=dpkg | |
12655 | DPKGBUILD=dpkg-buildpackage | |
12656 | ||
12657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5 | |
12658 | $as_echo_n "checking whether $DPKG is available... " >&6; } | |
12659 | if tmp=$($DPKG --version 2>/dev/null); then : | |
12660 | ||
12661 | DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }') | |
12662 | HAVE_DPKG=yes | |
12663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5 | |
12664 | $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; } | |
12665 | ||
12666 | else | |
12667 | ||
12668 | HAVE_DPKG=no | |
12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5 | |
12670 | $as_echo "$HAVE_DPKG" >&6; } | |
12671 | ||
12672 | fi | |
12673 | ||
12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5 | |
12675 | $as_echo_n "checking whether $DPKGBUILD is available... " >&6; } | |
12676 | if tmp=$($DPKGBUILD --version 2>/dev/null); then : | |
12677 | ||
12678 | DPKGBUILD_VERSION=$(echo $tmp | \ | |
12679 | $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.') | |
12680 | HAVE_DPKGBUILD=yes | |
12681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5 | |
12682 | $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; } | |
12683 | ||
12684 | else | |
12685 | ||
12686 | HAVE_DPKGBUILD=no | |
12687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5 | |
12688 | $as_echo "$HAVE_DPKGBUILD" >&6; } | |
12689 | ||
12690 | fi | |
12691 | ||
12692 | ||
12693 | ||
12694 | ||
12695 | ||
12696 | ||
12697 | ||
12698 | ||
12699 | ||
12700 | ||
12701 | ALIEN=alien | |
12702 | ||
12703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5 | |
12704 | $as_echo_n "checking whether $ALIEN is available... " >&6; } | |
12705 | if tmp=$($ALIEN --version 2>/dev/null); then : | |
12706 | ||
12707 | ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }') | |
12708 | HAVE_ALIEN=yes | |
12709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5 | |
12710 | $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; } | |
12711 | ||
12712 | else | |
12713 | ||
12714 | HAVE_ALIEN=no | |
12715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5 | |
12716 | $as_echo "$HAVE_ALIEN" >&6; } | |
12717 | ||
12718 | fi | |
12719 | ||
12720 | ||
12721 | ||
12722 | ||
12723 | ||
12724 | ||
12725 | ||
12726 | TARGET_ASM_DIR=asm-generic | |
12727 | ||
12728 | ||
12729 | ZFS_CONFIG=all | |
12730 | ||
12731 | # Check whether --with-config was given. | |
12732 | if test "${with_config+set}" = set; then : | |
12733 | withval=$with_config; ZFS_CONFIG="$withval" | |
12734 | fi | |
12735 | ||
12736 | # Check whether --enable-linux-builtin was given. | |
12737 | if test "${enable_linux_builtin+set}" = set; then : | |
12738 | enableval=$enable_linux_builtin; | |
12739 | else | |
12740 | enable_linux_builtin=no | |
12741 | fi | |
12742 | ||
12743 | ||
12744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5 | |
12745 | $as_echo_n "checking zfs config... " >&6; } | |
12746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5 | |
12747 | $as_echo "$ZFS_CONFIG" >&6; }; | |
12748 | ||
12749 | ||
12750 | ||
12751 | ||
12752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5 | |
12753 | $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; } | |
12754 | ||
12755 | saved_flags="$CFLAGS" | |
12756 | CFLAGS="$CFLAGS -Wunused-but-set-variable" | |
12757 | ||
12758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12759 | /* end confdefs.h. */ | |
12760 | ||
12761 | int | |
12762 | main () | |
12763 | { | |
12764 | ||
12765 | ; | |
12766 | return 0; | |
12767 | } | |
12768 | _ACEOF | |
12769 | if ac_fn_c_try_compile "$LINENO"; then : | |
12770 | ||
12771 | NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable | |
12772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12773 | $as_echo "yes" >&6; } | |
12774 | ||
12775 | else | |
12776 | ||
12777 | NO_UNUSED_BUT_SET_VARIABLE= | |
12778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12779 | $as_echo "no" >&6; } | |
12780 | ||
12781 | fi | |
12782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12783 | ||
12784 | CFLAGS="$saved_flags" | |
12785 | ||
12786 | ||
12787 | ||
12788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5 | |
12789 | $as_echo_n "checking for -Wno-bool-compare support... " >&6; } | |
12790 | ||
12791 | saved_flags="$CFLAGS" | |
12792 | CFLAGS="$CFLAGS -Wbool-compare" | |
12793 | ||
12794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12795 | /* end confdefs.h. */ | |
12796 | ||
12797 | int | |
12798 | main () | |
12799 | { | |
12800 | ||
12801 | ; | |
12802 | return 0; | |
12803 | } | |
12804 | _ACEOF | |
12805 | if ac_fn_c_try_compile "$LINENO"; then : | |
12806 | ||
12807 | NO_BOOL_COMPARE=-Wno-bool-compare | |
12808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12809 | $as_echo "yes" >&6; } | |
12810 | ||
12811 | else | |
12812 | ||
12813 | NO_BOOL_COMPARE= | |
12814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12815 | $as_echo "no" >&6; } | |
12816 | ||
12817 | fi | |
12818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12819 | ||
12820 | CFLAGS="$saved_flags" | |
12821 | ||
12822 | ||
12823 | ||
12824 | ||
12825 | case "$ZFS_CONFIG" in | |
12826 | user) | |
12827 | ||
12828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5 | |
12829 | $as_echo_n "checking for dkms.conf file... " >&6; } | |
12830 | if test -e dkms.conf; then : | |
12831 | ||
12832 | as_fn_error $? " | |
12833 | *** ZFS should not be manually built in the DKMS source tree. | |
12834 | *** Remove all ZFS packages before compiling the ZoL sources. | |
12835 | *** Running \"make install\" breaks ZFS packages." "$LINENO" 5 | |
12836 | ||
12837 | else | |
12838 | ||
12839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
12840 | $as_echo "not found" >&6; } | |
12841 | ||
12842 | fi | |
12843 | ||
12844 | ||
12845 | ||
12846 | # Check whether --with-mounthelperdir was given. | |
12847 | if test "${with_mounthelperdir+set}" = set; then : | |
12848 | withval=$with_mounthelperdir; mounthelperdir=$withval | |
12849 | else | |
12850 | mounthelperdir=/sbin | |
12851 | fi | |
12852 | ||
12853 | ||
12854 | ||
12855 | ||
12856 | ||
12857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5 | |
12858 | $as_echo_n "checking for udev directories... " >&6; } | |
12859 | ||
12860 | # Check whether --with-udevdir was given. | |
12861 | if test "${with_udevdir+set}" = set; then : | |
12862 | withval=$with_udevdir; udevdir=$withval | |
12863 | else | |
12864 | udevdir=check | |
12865 | fi | |
12866 | ||
12867 | ||
12868 | if test "x$udevdir" = xcheck; then : | |
12869 | ||
12870 | path1=/lib/udev | |
12871 | path2=/usr/lib/udev | |
12872 | default=$path2 | |
12873 | ||
12874 | if test -d "$path1"; then : | |
12875 | udevdir="$path1" | |
12876 | else | |
12877 | ||
12878 | if test -d "$path2"; then : | |
12879 | udevdir="$path2" | |
12880 | else | |
12881 | udevdir="$default" | |
12882 | fi | |
12883 | ||
12884 | fi | |
12885 | ||
12886 | fi | |
12887 | ||
12888 | ||
12889 | # Check whether --with-udevruledir was given. | |
12890 | if test "${with_udevruledir+set}" = set; then : | |
12891 | withval=$with_udevruledir; udevruledir=$withval | |
12892 | else | |
12893 | udevruledir="${udevdir}/rules.d" | |
12894 | fi | |
12895 | ||
12896 | ||
12897 | ||
12898 | ||
12899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5 | |
12900 | $as_echo "$udevdir;$udevruledir" >&6; } | |
12901 | ||
12902 | ||
12903 | # Check whether --enable-systemd was given. | |
12904 | if test "${enable_systemd+set}" = set; then : | |
12905 | enableval=$enable_systemd; | |
12906 | else | |
12907 | enable_systemd=yes | |
12908 | fi | |
12909 | ||
12910 | ||
12911 | ||
12912 | # Check whether --with-systemdunitdir was given. | |
12913 | if test "${with_systemdunitdir+set}" = set; then : | |
12914 | withval=$with_systemdunitdir; systemdunitdir=$withval | |
12915 | else | |
12916 | systemdunitdir=/usr/lib/systemd/system | |
12917 | fi | |
12918 | ||
12919 | ||
12920 | ||
12921 | # Check whether --with-systemdpresetdir was given. | |
12922 | if test "${with_systemdpresetdir+set}" = set; then : | |
12923 | withval=$with_systemdpresetdir; systemdpresetdir=$withval | |
12924 | else | |
12925 | systemdpresetdir=/usr/lib/systemd/system-preset | |
12926 | fi | |
12927 | ||
12928 | ||
12929 | ||
12930 | # Check whether --with-systemdmodulesloaddir was given. | |
12931 | if test "${with_systemdmodulesloaddir+set}" = set; then : | |
12932 | withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval | |
12933 | else | |
12934 | systemdmodulesloaddir=/usr/lib/modules-load.d | |
12935 | fi | |
12936 | ||
12937 | ||
12938 | ||
12939 | if test "x$enable_systemd" = xyes; then : | |
12940 | ||
12941 | ZFS_INIT_SYSTEMD=systemd | |
12942 | ZFS_MODULE_LOAD=modules-load.d | |
12943 | modulesloaddir=$systemdmodulesloaddir | |
12944 | ||
12945 | fi | |
12946 | ||
12947 | ||
12948 | ||
12949 | ||
12950 | ||
12951 | ||
12952 | ||
12953 | ||
12954 | # Check whether --enable-sysvinit was given. | |
12955 | if test "${enable_sysvinit+set}" = set; then : | |
12956 | enableval=$enable_sysvinit; | |
12957 | else | |
12958 | enable_sysvinit=yes | |
12959 | fi | |
12960 | ||
12961 | ||
12962 | if test "x$enable_sysvinit" = xyes; then : | |
12963 | ZFS_INIT_SYSV=init.d | |
12964 | fi | |
12965 | ||
12966 | ||
12967 | ||
12968 | ||
12969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5 | |
12970 | $as_echo_n "checking for dracut directory... " >&6; } | |
12971 | ||
12972 | # Check whether --with-dracutdir was given. | |
12973 | if test "${with_dracutdir+set}" = set; then : | |
12974 | withval=$with_dracutdir; dracutdir=$withval | |
12975 | else | |
12976 | dracutdir=check | |
12977 | fi | |
12978 | ||
12979 | ||
12980 | if test "x$dracutdir" = xcheck; then : | |
12981 | ||
12982 | path1=/usr/share/dracut | |
12983 | path2=/usr/lib/dracut | |
12984 | default=$path2 | |
12985 | ||
12986 | if test -d "$path1"; then : | |
12987 | dracutdir="$path1" | |
12988 | else | |
12989 | ||
12990 | if test -d "$path2"; then : | |
12991 | dracutdir="$path2" | |
12992 | else | |
12993 | dracutdir="$default" | |
12994 | fi | |
12995 | ||
12996 | fi | |
12997 | ||
12998 | fi | |
12999 | ||
13000 | ||
13001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5 | |
13002 | $as_echo "$dracutdir" >&6; } | |
13003 | ||
13004 | ||
13005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5 | |
13006 | $as_echo_n "checking for target asm dir... " >&6; } | |
13007 | TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/` | |
13008 | ||
13009 | case $TARGET_ARCH in | |
13010 | i386|x86_64) | |
13011 | TARGET_ASM_DIR=asm-${TARGET_ARCH} | |
13012 | ;; | |
13013 | *) | |
13014 | TARGET_ASM_DIR=asm-generic | |
13015 | ;; | |
13016 | esac | |
13017 | ||
13018 | ||
13019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5 | |
13020 | $as_echo "$TARGET_ASM_DIR" >&6; } | |
13021 | ||
13022 | ||
13023 | ZLIB= | |
13024 | ||
13025 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
13026 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
13027 | ||
13028 | else | |
13029 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13030 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13031 | as_fn_error $? " | |
13032 | *** zlib.h missing, zlib-devel package required | |
13033 | See \`config.log' for more details" "$LINENO" 5; } | |
13034 | fi | |
13035 | ||
13036 | ||
13037 | ||
13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5 | |
13039 | $as_echo_n "checking for compress2 in -lz... " >&6; } | |
13040 | if ${ac_cv_lib_z_compress2+:} false; then : | |
13041 | $as_echo_n "(cached) " >&6 | |
13042 | else | |
13043 | ac_check_lib_save_LIBS=$LIBS | |
13044 | LIBS="-lz $LIBS" | |
13045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13046 | /* end confdefs.h. */ | |
13047 | ||
13048 | /* Override any GCC internal prototype to avoid an error. | |
13049 | Use char because int might match the return type of a GCC | |
13050 | builtin and then its argument prototype would still apply. */ | |
13051 | #ifdef __cplusplus | |
13052 | extern "C" | |
13053 | #endif | |
13054 | char compress2 (); | |
13055 | int | |
13056 | main () | |
13057 | { | |
13058 | return compress2 (); | |
13059 | ; | |
13060 | return 0; | |
13061 | } | |
13062 | _ACEOF | |
13063 | if ac_fn_c_try_link "$LINENO"; then : | |
13064 | ac_cv_lib_z_compress2=yes | |
13065 | else | |
13066 | ac_cv_lib_z_compress2=no | |
13067 | fi | |
13068 | rm -f core conftest.err conftest.$ac_objext \ | |
13069 | conftest$ac_exeext conftest.$ac_ext | |
13070 | LIBS=$ac_check_lib_save_LIBS | |
13071 | fi | |
13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5 | |
13073 | $as_echo "$ac_cv_lib_z_compress2" >&6; } | |
13074 | if test "x$ac_cv_lib_z_compress2" = xyes; then : | |
13075 | cat >>confdefs.h <<_ACEOF | |
13076 | #define HAVE_LIBZ 1 | |
13077 | _ACEOF | |
13078 | ||
13079 | LIBS="-lz $LIBS" | |
13080 | ||
13081 | else | |
13082 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13083 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13084 | as_fn_error $? " | |
13085 | *** compress2() missing, zlib-devel package required | |
13086 | See \`config.log' for more details" "$LINENO" 5; } | |
13087 | fi | |
13088 | ||
13089 | ||
13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 | |
13091 | $as_echo_n "checking for uncompress in -lz... " >&6; } | |
13092 | if ${ac_cv_lib_z_uncompress+:} false; then : | |
13093 | $as_echo_n "(cached) " >&6 | |
13094 | else | |
13095 | ac_check_lib_save_LIBS=$LIBS | |
13096 | LIBS="-lz $LIBS" | |
13097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13098 | /* end confdefs.h. */ | |
13099 | ||
13100 | /* Override any GCC internal prototype to avoid an error. | |
13101 | Use char because int might match the return type of a GCC | |
13102 | builtin and then its argument prototype would still apply. */ | |
13103 | #ifdef __cplusplus | |
13104 | extern "C" | |
13105 | #endif | |
13106 | char uncompress (); | |
13107 | int | |
13108 | main () | |
13109 | { | |
13110 | return uncompress (); | |
13111 | ; | |
13112 | return 0; | |
13113 | } | |
13114 | _ACEOF | |
13115 | if ac_fn_c_try_link "$LINENO"; then : | |
13116 | ac_cv_lib_z_uncompress=yes | |
13117 | else | |
13118 | ac_cv_lib_z_uncompress=no | |
13119 | fi | |
13120 | rm -f core conftest.err conftest.$ac_objext \ | |
13121 | conftest$ac_exeext conftest.$ac_ext | |
13122 | LIBS=$ac_check_lib_save_LIBS | |
13123 | fi | |
13124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 | |
13125 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } | |
13126 | if test "x$ac_cv_lib_z_uncompress" = xyes; then : | |
13127 | cat >>confdefs.h <<_ACEOF | |
13128 | #define HAVE_LIBZ 1 | |
13129 | _ACEOF | |
13130 | ||
13131 | LIBS="-lz $LIBS" | |
13132 | ||
13133 | else | |
13134 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13135 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13136 | as_fn_error $? " | |
13137 | *** uncompress() missing, zlib-devel package required | |
13138 | See \`config.log' for more details" "$LINENO" 5; } | |
13139 | fi | |
13140 | ||
13141 | ||
13142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5 | |
13143 | $as_echo_n "checking for crc32 in -lz... " >&6; } | |
13144 | if ${ac_cv_lib_z_crc32+:} false; then : | |
13145 | $as_echo_n "(cached) " >&6 | |
13146 | else | |
13147 | ac_check_lib_save_LIBS=$LIBS | |
13148 | LIBS="-lz $LIBS" | |
13149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13150 | /* end confdefs.h. */ | |
13151 | ||
13152 | /* Override any GCC internal prototype to avoid an error. | |
13153 | Use char because int might match the return type of a GCC | |
13154 | builtin and then its argument prototype would still apply. */ | |
13155 | #ifdef __cplusplus | |
13156 | extern "C" | |
13157 | #endif | |
13158 | char crc32 (); | |
13159 | int | |
13160 | main () | |
13161 | { | |
13162 | return crc32 (); | |
13163 | ; | |
13164 | return 0; | |
13165 | } | |
13166 | _ACEOF | |
13167 | if ac_fn_c_try_link "$LINENO"; then : | |
13168 | ac_cv_lib_z_crc32=yes | |
13169 | else | |
13170 | ac_cv_lib_z_crc32=no | |
13171 | fi | |
13172 | rm -f core conftest.err conftest.$ac_objext \ | |
13173 | conftest$ac_exeext conftest.$ac_ext | |
13174 | LIBS=$ac_check_lib_save_LIBS | |
13175 | fi | |
13176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5 | |
13177 | $as_echo "$ac_cv_lib_z_crc32" >&6; } | |
13178 | if test "x$ac_cv_lib_z_crc32" = xyes; then : | |
13179 | cat >>confdefs.h <<_ACEOF | |
13180 | #define HAVE_LIBZ 1 | |
13181 | _ACEOF | |
13182 | ||
13183 | LIBS="-lz $LIBS" | |
13184 | ||
13185 | else | |
13186 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13187 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13188 | as_fn_error $? " | |
13189 | *** crc32() missing, zlib-devel package required | |
13190 | See \`config.log' for more details" "$LINENO" 5; } | |
13191 | fi | |
13192 | ||
13193 | ||
13194 | ZLIB="-lz" | |
13195 | ||
13196 | ||
13197 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h | |
13198 | ||
13199 | ||
13200 | ||
13201 | LIBUUID= | |
13202 | ||
13203 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" | |
13204 | if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : | |
13205 | ||
13206 | else | |
13207 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13208 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13209 | as_fn_error $? " | |
13210 | *** uuid/uuid.h missing, libuuid-devel package required | |
13211 | See \`config.log' for more details" "$LINENO" 5; } | |
13212 | fi | |
13213 | ||
13214 | ||
13215 | ||
13216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 | |
13217 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
13218 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : | |
13219 | $as_echo_n "(cached) " >&6 | |
13220 | else | |
13221 | ac_check_lib_save_LIBS=$LIBS | |
13222 | LIBS="-luuid $LIBS" | |
13223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13224 | /* end confdefs.h. */ | |
13225 | ||
13226 | /* Override any GCC internal prototype to avoid an error. | |
13227 | Use char because int might match the return type of a GCC | |
13228 | builtin and then its argument prototype would still apply. */ | |
13229 | #ifdef __cplusplus | |
13230 | extern "C" | |
13231 | #endif | |
13232 | char uuid_generate (); | |
13233 | int | |
13234 | main () | |
13235 | { | |
13236 | return uuid_generate (); | |
13237 | ; | |
13238 | return 0; | |
13239 | } | |
13240 | _ACEOF | |
13241 | if ac_fn_c_try_link "$LINENO"; then : | |
13242 | ac_cv_lib_uuid_uuid_generate=yes | |
13243 | else | |
13244 | ac_cv_lib_uuid_uuid_generate=no | |
13245 | fi | |
13246 | rm -f core conftest.err conftest.$ac_objext \ | |
13247 | conftest$ac_exeext conftest.$ac_ext | |
13248 | LIBS=$ac_check_lib_save_LIBS | |
13249 | fi | |
13250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
13251 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
13252 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : | |
13253 | cat >>confdefs.h <<_ACEOF | |
13254 | #define HAVE_LIBUUID 1 | |
13255 | _ACEOF | |
13256 | ||
13257 | LIBS="-luuid $LIBS" | |
13258 | ||
13259 | else | |
13260 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13261 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13262 | as_fn_error $? " | |
13263 | *** uuid_generate() missing, libuuid-devel package required | |
13264 | See \`config.log' for more details" "$LINENO" 5; } | |
13265 | fi | |
13266 | ||
13267 | ||
13268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5 | |
13269 | $as_echo_n "checking for uuid_is_null in -luuid... " >&6; } | |
13270 | if ${ac_cv_lib_uuid_uuid_is_null+:} false; then : | |
13271 | $as_echo_n "(cached) " >&6 | |
13272 | else | |
13273 | ac_check_lib_save_LIBS=$LIBS | |
13274 | LIBS="-luuid $LIBS" | |
13275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13276 | /* end confdefs.h. */ | |
13277 | ||
13278 | /* Override any GCC internal prototype to avoid an error. | |
13279 | Use char because int might match the return type of a GCC | |
13280 | builtin and then its argument prototype would still apply. */ | |
13281 | #ifdef __cplusplus | |
13282 | extern "C" | |
13283 | #endif | |
13284 | char uuid_is_null (); | |
13285 | int | |
13286 | main () | |
13287 | { | |
13288 | return uuid_is_null (); | |
13289 | ; | |
13290 | return 0; | |
13291 | } | |
13292 | _ACEOF | |
13293 | if ac_fn_c_try_link "$LINENO"; then : | |
13294 | ac_cv_lib_uuid_uuid_is_null=yes | |
13295 | else | |
13296 | ac_cv_lib_uuid_uuid_is_null=no | |
13297 | fi | |
13298 | rm -f core conftest.err conftest.$ac_objext \ | |
13299 | conftest$ac_exeext conftest.$ac_ext | |
13300 | LIBS=$ac_check_lib_save_LIBS | |
13301 | fi | |
13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5 | |
13303 | $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; } | |
13304 | if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then : | |
13305 | cat >>confdefs.h <<_ACEOF | |
13306 | #define HAVE_LIBUUID 1 | |
13307 | _ACEOF | |
13308 | ||
13309 | LIBS="-luuid $LIBS" | |
13310 | ||
13311 | else | |
13312 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13313 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13314 | as_fn_error $? " | |
13315 | *** uuid_is_null() missing, libuuid-devel package required | |
13316 | See \`config.log' for more details" "$LINENO" 5; } | |
13317 | fi | |
13318 | ||
13319 | ||
13320 | LIBUUID="-luuid" | |
13321 | ||
13322 | ||
13323 | $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h | |
13324 | ||
13325 | ||
13326 | ||
13327 | ||
13328 | # Check whether --with-blkid was given. | |
13329 | if test "${with_blkid+set}" = set; then : | |
13330 | withval=$with_blkid; | |
13331 | else | |
13332 | with_blkid=check | |
13333 | fi | |
13334 | ||
13335 | ||
13336 | LIBBLKID= | |
13337 | if test "x$with_blkid" = xyes; then : | |
13338 | ||
13339 | LIBBLKID="-lblkid" | |
13340 | ||
13341 | ||
13342 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
13343 | ||
13344 | ||
13345 | fi | |
13346 | ||
13347 | if test "x$with_blkid" = xcheck; then : | |
13348 | ||
13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 | |
13350 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
13351 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : | |
13352 | $as_echo_n "(cached) " >&6 | |
13353 | else | |
13354 | ac_check_lib_save_LIBS=$LIBS | |
13355 | LIBS="-lblkid $LIBS" | |
13356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13357 | /* end confdefs.h. */ | |
13358 | ||
13359 | /* Override any GCC internal prototype to avoid an error. | |
13360 | Use char because int might match the return type of a GCC | |
13361 | builtin and then its argument prototype would still apply. */ | |
13362 | #ifdef __cplusplus | |
13363 | extern "C" | |
13364 | #endif | |
13365 | char blkid_get_cache (); | |
13366 | int | |
13367 | main () | |
13368 | { | |
13369 | return blkid_get_cache (); | |
13370 | ; | |
13371 | return 0; | |
13372 | } | |
13373 | _ACEOF | |
13374 | if ac_fn_c_try_link "$LINENO"; then : | |
13375 | ac_cv_lib_blkid_blkid_get_cache=yes | |
13376 | else | |
13377 | ac_cv_lib_blkid_blkid_get_cache=no | |
13378 | fi | |
13379 | rm -f core conftest.err conftest.$ac_objext \ | |
13380 | conftest$ac_exeext conftest.$ac_ext | |
13381 | LIBS=$ac_check_lib_save_LIBS | |
13382 | fi | |
13383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 | |
13384 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
13385 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : | |
13386 | ||
13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5 | |
13388 | $as_echo_n "checking for blkid zfs support... " >&6; } | |
13389 | ||
13390 | ZFS_DEV=`mktemp` | |
13391 | truncate -s 64M $ZFS_DEV | |
13392 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13393 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13394 | seek=128 conv=notrunc &>/dev/null \ | |
13395 | >/dev/null 2>/dev/null | |
13396 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13397 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13398 | seek=132 conv=notrunc &>/dev/null \ | |
13399 | >/dev/null 2>/dev/null | |
13400 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13401 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13402 | seek=136 conv=notrunc &>/dev/null \ | |
13403 | >/dev/null 2>/dev/null | |
13404 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
13405 | dd of=$ZFS_DEV bs=1k count=8 \ | |
13406 | seek=140 conv=notrunc &>/dev/null \ | |
13407 | >/dev/null 2>/dev/null | |
13408 | ||
13409 | saved_LIBS="$LIBS" | |
13410 | LIBS="-lblkid" | |
13411 | ||
13412 | if test "$cross_compiling" = yes; then : | |
13413 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13414 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13415 | as_fn_error $? "cannot run test program while cross compiling | |
13416 | See \`config.log' for more details" "$LINENO" 5; } | |
13417 | else | |
13418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13419 | /* end confdefs.h. */ | |
13420 | ||
13421 | #include <stdio.h> | |
13422 | #include <stdlib.h> | |
13423 | #include <blkid/blkid.h> | |
13424 | ||
13425 | int | |
13426 | main () | |
13427 | { | |
13428 | ||
13429 | blkid_cache cache; | |
13430 | char *value; | |
13431 | ||
13432 | if (blkid_get_cache(&cache, NULL) < 0) | |
13433 | return 1; | |
13434 | ||
13435 | value = blkid_get_tag_value(cache, "TYPE", | |
13436 | "$ZFS_DEV"); | |
13437 | if (!value) { | |
13438 | blkid_put_cache(cache); | |
13439 | return 2; | |
13440 | } | |
13441 | ||
13442 | if (strcmp(value, "zfs_member")) { | |
13443 | free(value); | |
13444 | blkid_put_cache(cache); | |
13445 | return 0; | |
13446 | } | |
13447 | ||
13448 | free(value); | |
13449 | blkid_put_cache(cache); | |
13450 | ||
13451 | ; | |
13452 | return 0; | |
13453 | } | |
13454 | _ACEOF | |
13455 | if ac_fn_c_try_run "$LINENO"; then : | |
13456 | ||
13457 | rm -f $ZFS_DEV | |
13458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13459 | $as_echo "yes" >&6; } | |
13460 | LIBBLKID="-lblkid" | |
13461 | ||
13462 | ||
13463 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
13464 | ||
13465 | ||
13466 | else | |
13467 | ||
13468 | rm -f $ZFS_DEV | |
13469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13470 | $as_echo "no" >&6; } | |
13471 | if test "x$with_blkid" != xcheck; then : | |
13472 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13473 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13474 | as_fn_error $? "--with-blkid given but unavailable | |
13475 | See \`config.log' for more details" "$LINENO" 5; } | |
13476 | fi | |
13477 | ||
13478 | fi | |
13479 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13480 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13481 | fi | |
13482 | ||
13483 | ||
13484 | LIBS="$saved_LIBS" | |
13485 | ||
13486 | else | |
13487 | ||
13488 | if test "x$with_blkid" != xcheck; then : | |
13489 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13490 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13491 | as_fn_error $? "--with-blkid given but unavailable | |
13492 | See \`config.log' for more details" "$LINENO" 5; } | |
13493 | fi | |
13494 | ||
13495 | ||
13496 | fi | |
13497 | ||
13498 | ||
13499 | fi | |
13500 | ||
13501 | ||
13502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5 | |
13503 | $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; } | |
13504 | ||
13505 | saved_flags="$CFLAGS" | |
13506 | CFLAGS="$CFLAGS -Wframe-larger-than=1024" | |
13507 | ||
13508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13509 | /* end confdefs.h. */ | |
13510 | ||
13511 | int | |
13512 | main () | |
13513 | { | |
13514 | ||
13515 | ; | |
13516 | return 0; | |
13517 | } | |
13518 | _ACEOF | |
13519 | if ac_fn_c_try_compile "$LINENO"; then : | |
13520 | ||
13521 | FRAME_LARGER_THAN=-Wframe-larger-than=1024 | |
13522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13523 | $as_echo "yes" >&6; } | |
13524 | ||
13525 | else | |
13526 | ||
13527 | FRAME_LARGER_THAN= | |
13528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13529 | $as_echo "no" >&6; } | |
13530 | ||
13531 | fi | |
13532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13533 | ||
13534 | CFLAGS="$saved_flags" | |
13535 | ||
13536 | ||
13537 | ||
13538 | if test "x$runstatedir" = x; then | |
13539 | runstatedir='${localstatedir}/run' | |
13540 | ||
13541 | fi | |
13542 | ||
13543 | for ac_func in mlockall | |
13544 | do : | |
13545 | ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" | |
13546 | if test "x$ac_cv_func_mlockall" = xyes; then : | |
13547 | cat >>confdefs.h <<_ACEOF | |
13548 | #define HAVE_MLOCKALL 1 | |
13549 | _ACEOF | |
13550 | ||
13551 | fi | |
13552 | done | |
13553 | ||
13554 | ;; | |
13555 | kernel) | |
13556 | ||
13557 | ||
13558 | # Check whether --with-linux was given. | |
13559 | if test "${with_linux+set}" = set; then : | |
13560 | withval=$with_linux; kernelsrc="$withval" | |
13561 | fi | |
13562 | ||
13563 | ||
13564 | ||
13565 | # Check whether --with-linux-obj was given. | |
13566 | if test "${with_linux_obj+set}" = set; then : | |
13567 | withval=$with_linux_obj; kernelbuild="$withval" | |
13568 | fi | |
13569 | ||
13570 | ||
13571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5 | |
13572 | $as_echo_n "checking kernel source directory... " >&6; } | |
13573 | if test -z "$kernelsrc"; then : | |
13574 | ||
13575 | if test -e "/lib/modules/$(uname -r)/source"; then : | |
13576 | ||
13577 | headersdir="/lib/modules/$(uname -r)/source" | |
13578 | sourcelink=$(readlink -f "$headersdir") | |
13579 | ||
13580 | elif test -e "/lib/modules/$(uname -r)/build"; then : | |
13581 | ||
13582 | headersdir="/lib/modules/$(uname -r)/build" | |
13583 | sourcelink=$(readlink -f "$headersdir") | |
13584 | ||
13585 | else | |
13586 | ||
13587 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
13588 | /usr/src/linux-* \ | |
13589 | 2>/dev/null | grep -v obj | tail -1) | |
13590 | ||
13591 | fi | |
13592 | ||
13593 | if test -n "$sourcelink" && test -e ${sourcelink}; then : | |
13594 | ||
13595 | kernelsrc=`readlink -f ${sourcelink}` | |
13596 | ||
13597 | else | |
13598 | ||
13599 | kernelsrc="Not found" | |
13600 | ||
13601 | fi | |
13602 | ||
13603 | else | |
13604 | ||
13605 | if test "$kernelsrc" = "NONE"; then : | |
13606 | ||
13607 | kernsrcver=NONE | |
13608 | ||
13609 | fi | |
13610 | ||
13611 | fi | |
13612 | ||
13613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5 | |
13614 | $as_echo "$kernelsrc" >&6; } | |
13615 | if test ! -d "$kernelsrc"; then : | |
13616 | ||
13617 | as_fn_error $? " | |
13618 | *** Please make sure the kernel devel package for your distribution | |
13619 | *** is installed and then try again. If that fails, you can specify the | |
13620 | *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5 | |
13621 | ||
13622 | fi | |
13623 | ||
13624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5 | |
13625 | $as_echo_n "checking kernel build directory... " >&6; } | |
13626 | if test -z "$kernelbuild"; then : | |
13627 | ||
13628 | if test -e "/lib/modules/$(uname -r)/build"; then : | |
13629 | ||
13630 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` | |
13631 | ||
13632 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then : | |
13633 | ||
13634 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
13635 | ||
13636 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then : | |
13637 | ||
13638 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
13639 | ||
13640 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then : | |
13641 | ||
13642 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
13643 | ||
13644 | else | |
13645 | ||
13646 | kernelbuild=${kernelsrc} | |
13647 | ||
13648 | fi | |
13649 | ||
13650 | fi | |
13651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5 | |
13652 | $as_echo "$kernelbuild" >&6; } | |
13653 | ||
13654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5 | |
13655 | $as_echo_n "checking kernel source version... " >&6; } | |
13656 | utsrelease1=$kernelbuild/include/linux/version.h | |
13657 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
13658 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
13659 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then : | |
13660 | ||
13661 | utsrelease=linux/version.h | |
13662 | ||
13663 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then : | |
13664 | ||
13665 | utsrelease=linux/utsrelease.h | |
13666 | ||
13667 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then : | |
13668 | ||
13669 | utsrelease=generated/utsrelease.h | |
13670 | ||
13671 | fi | |
13672 | ||
13673 | if test "$utsrelease"; then : | |
13674 | ||
13675 | kernsrcver=`(echo "#include <$utsrelease>"; | |
13676 | echo "kernsrcver=UTS_RELEASE") | | |
13677 | cpp -I $kernelbuild/include | | |
13678 | grep "^kernsrcver=" | cut -d \" -f 2` | |
13679 | ||
13680 | if test -z "$kernsrcver"; then : | |
13681 | ||
13682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
13683 | $as_echo "Not found" >&6; } | |
13684 | as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5 | |
13685 | ||
13686 | fi | |
13687 | ||
13688 | else | |
13689 | ||
13690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
13691 | $as_echo "Not found" >&6; } | |
13692 | if test "x$enable_linux_builtin" != xyes; then | |
13693 | as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5 | |
13694 | else | |
13695 | as_fn_error $? " | |
13696 | *** Cannot find UTS_RELEASE definition. | |
13697 | *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5 | |
13698 | fi | |
13699 | ||
13700 | fi | |
13701 | ||
13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5 | |
13703 | $as_echo "$kernsrcver" >&6; } | |
13704 | ||
13705 | LINUX=${kernelsrc} | |
13706 | LINUX_OBJ=${kernelbuild} | |
13707 | LINUX_VERSION=${kernsrcver} | |
13708 | ||
13709 | ||
13710 | ||
13711 | ||
13712 | ||
13713 | ||
13714 | modpost=$LINUX/scripts/Makefile.modpost | |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5 | |
13716 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
13717 | if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then : | |
13718 | ||
13719 | if grep -q Modules.symvers $modpost; then : | |
13720 | ||
13721 | LINUX_SYMBOLS=Modules.symvers | |
13722 | ||
13723 | else | |
13724 | ||
13725 | LINUX_SYMBOLS=Module.symvers | |
13726 | ||
13727 | fi | |
13728 | ||
13729 | if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then : | |
13730 | ||
13731 | as_fn_error $? " | |
13732 | *** Please make sure the kernel devel package for your distribution | |
13733 | *** is installed. If you are building with a custom kernel, make sure the | |
13734 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
13735 | *** option refers to the location of the kernel source." "$LINENO" 5 | |
13736 | ||
13737 | fi | |
13738 | ||
13739 | else | |
13740 | ||
13741 | LINUX_SYMBOLS=NONE | |
13742 | ||
13743 | fi | |
13744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5 | |
13745 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
13746 | ||
13747 | ||
13748 | ||
13749 | ||
13750 | ||
13751 | # Check whether --with-spl was given. | |
13752 | if test "${with_spl+set}" = set; then : | |
13753 | withval=$with_spl; splsrc="$withval" | |
13754 | fi | |
13755 | ||
13756 | ||
13757 | ||
13758 | # Check whether --with-spl-obj was given. | |
13759 | if test "${with_spl_obj+set}" = set; then : | |
13760 | withval=$with_spl_obj; splbuild="$withval" | |
13761 | fi | |
13762 | ||
13763 | ||
13764 | ||
13765 | # Check whether --with-spl-timeout was given. | |
13766 | if test "${with_spl_timeout+set}" = set; then : | |
13767 | withval=$with_spl_timeout; timeout="$withval" | |
13768 | else | |
13769 | timeout=0 | |
13770 | fi | |
13771 | ||
13772 | ||
13773 | splsrc0="/var/lib/dkms/spl/${VERSION}/build" | |
13774 | splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}" | |
13775 | splsrc2="/usr/local/src/spl-${VERSION}" | |
13776 | splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}" | |
13777 | splsrc4="/usr/src/spl-${VERSION}" | |
13778 | splsrc5="../spl/" | |
13779 | splsrc6="$LINUX" | |
13780 | ||
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5 | |
13782 | $as_echo_n "checking spl source directory... " >&6; } | |
13783 | if test -z "${splsrc}"; then : | |
13784 | ||
13785 | if test -e "${splsrc0}/spl.release.in"; then : | |
13786 | ||
13787 | splsrc=${splsrc0} | |
13788 | ||
13789 | elif test -e "${splsrc1}/spl.release.in"; then : | |
13790 | ||
13791 | splsrc=${splsrc1} | |
13792 | ||
13793 | elif test -e "${splsrc2}/spl.release.in"; then : | |
13794 | ||
13795 | splsrc=${splsrc2} | |
13796 | ||
13797 | elif test -e "${splsrc3}/spl.release.in"; then : | |
13798 | ||
13799 | splsrc=$(readlink -f "${splsrc3}") | |
13800 | ||
13801 | elif test -e "${splsrc4}/spl.release.in" ; then : | |
13802 | ||
13803 | splsrc=${splsrc4} | |
13804 | ||
13805 | elif test -e "${splsrc5}/spl.release.in"; then : | |
13806 | ||
13807 | splsrc=$(readlink -f "${splsrc5}") | |
13808 | ||
13809 | elif test -e "${splsrc6}/spl.release.in" ; then : | |
13810 | ||
13811 | splsrc=${splsrc6} | |
13812 | ||
13813 | else | |
13814 | ||
13815 | splsrc="Not found" | |
13816 | ||
13817 | fi | |
13818 | ||
13819 | else | |
13820 | ||
13821 | if test "$splsrc" = "NONE"; then : | |
13822 | ||
13823 | splbuild=NONE | |
13824 | splsrcver=NONE | |
13825 | ||
13826 | fi | |
13827 | ||
13828 | fi | |
13829 | ||
13830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5 | |
13831 | $as_echo "$splsrc" >&6; } | |
13832 | if test ! -e "$splsrc/spl.release.in"; then : | |
13833 | ||
13834 | as_fn_error $? " | |
13835 | *** Please make sure the kmod spl devel package for your distribution | |
13836 | *** is installed then try again. If that fails you can specify the | |
13837 | *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5 | |
13838 | ||
13839 | fi | |
13840 | ||
13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5 | |
13842 | $as_echo_n "checking spl build directory... " >&6; } | |
13843 | while true; do | |
13844 | if test -z "$splbuild"; then : | |
13845 | ||
13846 | if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then : | |
13847 | ||
13848 | splbuild="${splsrc}/${LINUX_VERSION}" | |
13849 | ||
13850 | elif test -e "${splsrc}/spl_config.h" ; then : | |
13851 | ||
13852 | splbuild="${splsrc}" | |
13853 | ||
13854 | elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then : | |
13855 | ||
13856 | splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,') | |
13857 | ||
13858 | else | |
13859 | ||
13860 | splbuild="Not found" | |
13861 | ||
13862 | fi | |
13863 | ||
13864 | fi | |
13865 | if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then : | |
13866 | ||
13867 | break; | |
13868 | ||
13869 | else | |
13870 | ||
13871 | sleep 1 | |
13872 | timeout=$((timeout-1)) | |
13873 | ||
13874 | fi | |
13875 | done | |
13876 | ||
13877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5 | |
13878 | $as_echo "$splbuild" >&6; } | |
13879 | if ! test -e "$splbuild/spl_config.h"; then : | |
13880 | ||
13881 | as_fn_error $? " | |
13882 | *** Please make sure the kmod spl devel <kernel> package for your | |
13883 | *** distribution is installed then try again. If that fails you | |
13884 | *** can specify the location of the spl objects with the | |
13885 | *** '--with-spl-obj=PATH' option." "$LINENO" 5 | |
13886 | ||
13887 | fi | |
13888 | ||
13889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5 | |
13890 | $as_echo_n "checking spl source version... " >&6; } | |
13891 | if test -r $splbuild/spl_config.h && | |
13892 | fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then : | |
13893 | ||
13894 | ||
13895 | splsrcver=`(echo "#include <spl_config.h>"; | |
13896 | echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") | | |
13897 | cpp -I $splbuild | | |
13898 | grep "^splsrcver=" | tr -d \" | cut -d= -f2` | |
13899 | ||
13900 | fi | |
13901 | ||
13902 | if test -z "$splsrcver"; then : | |
13903 | ||
13904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
13905 | $as_echo "Not found" >&6; } | |
13906 | as_fn_error $? " | |
13907 | *** Cannot determine the version of the spl source. | |
13908 | *** Please prepare the spl source before running this script" "$LINENO" 5 | |
13909 | ||
13910 | fi | |
13911 | ||
13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5 | |
13913 | $as_echo "$splsrcver" >&6; } | |
13914 | ||
13915 | SPL=${splsrc} | |
13916 | SPL_OBJ=${splbuild} | |
13917 | SPL_VERSION=${splsrcver} | |
13918 | ||
13919 | ||
13920 | ||
13921 | ||
13922 | ||
13923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5 | |
13924 | $as_echo_n "checking spl file name for module symbols... " >&6; } | |
13925 | SPL_SYMBOLS=NONE | |
13926 | ||
13927 | while true; do | |
13928 | if test -r $SPL_OBJ/Module.symvers; then : | |
13929 | ||
13930 | SPL_SYMBOLS=Module.symvers | |
13931 | ||
13932 | elif test -r $SPL_OBJ/Modules.symvers; then : | |
13933 | ||
13934 | SPL_SYMBOLS=Modules.symvers | |
13935 | ||
13936 | elif test -r $SPL_OBJ/module/Module.symvers; then : | |
13937 | ||
13938 | SPL_SYMBOLS=Module.symvers | |
13939 | ||
13940 | elif test -r $SPL_OBJ/module/Modules.symvers; then : | |
13941 | ||
13942 | SPL_SYMBOLS=Modules.symvers | |
13943 | ||
13944 | fi | |
13945 | ||
13946 | if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then : | |
13947 | ||
13948 | break; | |
13949 | ||
13950 | else | |
13951 | ||
13952 | sleep 1 | |
13953 | timeout=$((timeout-1)) | |
13954 | ||
13955 | fi | |
13956 | done | |
13957 | ||
13958 | if test "$SPL_SYMBOLS" = NONE; then : | |
13959 | ||
13960 | SPL_SYMBOLS=$LINUX_SYMBOLS | |
13961 | ||
13962 | fi | |
13963 | ||
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5 | |
13965 | $as_echo "$SPL_SYMBOLS" >&6; } | |
13966 | ||
13967 | ||
13968 | ||
13969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5 | |
13970 | $as_echo_n "checking whether modules can be built... " >&6; } | |
13971 | ||
13972 | ||
13973 | cat confdefs.h - <<_ACEOF >conftest.c | |
13974 | ||
13975 | ||
13976 | int | |
13977 | main (void) | |
13978 | { | |
13979 | ||
13980 | ; | |
13981 | return 0; | |
13982 | } | |
13983 | ||
13984 | _ACEOF | |
13985 | ||
13986 | ||
13987 | ||
13988 | cat - <<_ACEOF >conftest.h | |
13989 | ||
13990 | _ACEOF | |
13991 | ||
13992 | ||
13993 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13994 | echo "obj-m := conftest.o" >build/Makefile | |
13995 | modpost_flag='' | |
13996 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13997 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13998 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13999 | (eval $ac_try) 2>&5 | |
14000 | ac_status=$? | |
14001 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14002 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14003 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14004 | (eval $ac_try) 2>&5 | |
14005 | ac_status=$? | |
14006 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14007 | test $ac_status = 0; }; }; then : | |
14008 | ||
14009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14010 | $as_echo "yes" >&6; } | |
14011 | ||
14012 | else | |
14013 | $as_echo "$as_me: failed program was:" >&5 | |
14014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14015 | ||
14016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14017 | $as_echo "no" >&6; } | |
14018 | if test "x$enable_linux_builtin" != xyes; then | |
14019 | as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5 | |
14020 | else | |
14021 | as_fn_error $? " | |
14022 | *** Unable to build an empty module. | |
14023 | *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5 | |
14024 | fi | |
14025 | ||
14026 | ||
14027 | ||
14028 | fi | |
14029 | rm -Rf build | |
14030 | ||
14031 | ||
14032 | ||
14033 | ||
14034 | if test "x$cross_compiling" != xyes; then : | |
14035 | ||
14036 | if test "$cross_compiling" = yes; then : | |
14037 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14038 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14039 | as_fn_error $? "cannot run test program while cross compiling | |
14040 | See \`config.log' for more details" "$LINENO" 5; } | |
14041 | else | |
14042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14043 | /* end confdefs.h. */ | |
14044 | ||
14045 | ||
14046 | #include "$LINUX/include/linux/license.h" | |
14047 | ||
14048 | int | |
14049 | main () | |
14050 | { | |
14051 | ||
14052 | return !license_is_gpl_compatible("$ZFS_META_LICENSE"); | |
14053 | ||
14054 | ; | |
14055 | return 0; | |
14056 | } | |
14057 | ||
14058 | _ACEOF | |
14059 | if ac_fn_c_try_run "$LINENO"; then : | |
14060 | ||
14061 | ||
14062 | $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h | |
14063 | ||
14064 | ||
14065 | fi | |
14066 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14067 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14068 | fi | |
14069 | ||
14070 | ||
14071 | fi | |
14072 | ||
14073 | ||
d177712e CIK |
14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5 |
14075 | $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; } | |
0bd31011 | 14076 | |
d177712e CIK |
14077 | |
14078 | cat confdefs.h - <<_ACEOF >conftest.c | |
14079 | ||
14080 | ||
14081 | #include <linux/module.h> | |
14082 | ||
14083 | int | |
14084 | main (void) | |
14085 | { | |
14086 | ||
14087 | #if (THREAD_SIZE < 16384) | |
14088 | #error "THREAD_SIZE is less than 16K" | |
14089 | #endif | |
14090 | ||
14091 | ; | |
14092 | return 0; | |
14093 | } | |
14094 | ||
14095 | _ACEOF | |
14096 | ||
14097 | ||
14098 | ||
14099 | cat - <<_ACEOF >conftest.h | |
14100 | ||
14101 | _ACEOF | |
14102 | ||
14103 | ||
14104 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14105 | echo "obj-m := conftest.o" >build/Makefile | |
14106 | modpost_flag='' | |
14107 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14108 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14109 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14110 | (eval $ac_try) 2>&5 | |
14111 | ac_status=$? | |
14112 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14113 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14114 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14115 | (eval $ac_try) 2>&5 | |
14116 | ac_status=$? | |
14117 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14118 | test $ac_status = 0; }; }; then : | |
14119 | ||
14120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14121 | $as_echo "yes" >&6; } | |
14122 | ||
14123 | $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h | |
14124 | ||
14125 | ||
14126 | else | |
14127 | $as_echo "$as_me: failed program was:" >&5 | |
14128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14129 | ||
14130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14131 | $as_echo "no" >&6; } | |
14132 | ||
14133 | ||
14134 | ||
14135 | fi | |
14136 | rm -Rf build | |
14137 | ||
14138 | ||
14139 | ||
14140 | ||
14141 | ||
14142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5 | |
14143 | $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; } | |
0bd31011 TG |
14144 | |
14145 | ||
14146 | cat confdefs.h - <<_ACEOF >conftest.c | |
14147 | ||
14148 | ||
14149 | #include <linux/module.h> | |
14150 | ||
14151 | int | |
14152 | main (void) | |
14153 | { | |
14154 | ||
14155 | #ifndef CONFIG_DEBUG_LOCK_ALLOC | |
14156 | #error CONFIG_DEBUG_LOCK_ALLOC not #defined | |
14157 | #endif | |
14158 | ||
14159 | ; | |
14160 | return 0; | |
14161 | } | |
14162 | ||
14163 | _ACEOF | |
14164 | ||
14165 | ||
14166 | ||
14167 | cat - <<_ACEOF >conftest.h | |
14168 | ||
14169 | _ACEOF | |
14170 | ||
14171 | ||
14172 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14173 | echo "obj-m := conftest.o" >build/Makefile | |
14174 | modpost_flag='' | |
14175 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14176 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14177 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14178 | (eval $ac_try) 2>&5 | |
14179 | ac_status=$? | |
14180 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14181 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14182 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14183 | (eval $ac_try) 2>&5 | |
14184 | ac_status=$? | |
14185 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14186 | test $ac_status = 0; }; }; then : | |
14187 | ||
14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14189 | $as_echo "yes" >&6; } | |
14190 | ||
14191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5 | |
14192 | $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; } | |
14193 | tmp_flags="$EXTRA_KCFLAGS" | |
14194 | ||
14195 | ||
14196 | cat confdefs.h - <<_ACEOF >conftest.c | |
14197 | ||
14198 | ||
14199 | #include <linux/module.h> | |
14200 | #include <linux/mutex.h> | |
14201 | ||
14202 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
14203 | ||
14204 | int | |
14205 | main (void) | |
14206 | { | |
14207 | ||
14208 | struct mutex lock; | |
14209 | ||
14210 | mutex_init(&lock); | |
14211 | mutex_lock(&lock); | |
14212 | mutex_unlock(&lock); | |
14213 | ||
14214 | ; | |
14215 | return 0; | |
14216 | } | |
14217 | ||
14218 | _ACEOF | |
14219 | ||
14220 | ||
14221 | ||
14222 | cat - <<_ACEOF >conftest.h | |
14223 | ||
14224 | _ACEOF | |
14225 | ||
14226 | ||
14227 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14228 | echo "obj-m := conftest.o" >build/Makefile | |
14229 | modpost_flag='' | |
14230 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14231 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14232 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14233 | (eval $ac_try) 2>&5 | |
14234 | ac_status=$? | |
14235 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14236 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14237 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14238 | (eval $ac_try) 2>&5 | |
14239 | ac_status=$? | |
14240 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14241 | test $ac_status = 0; }; }; then : | |
14242 | ||
14243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14244 | $as_echo "no" >&6; } | |
14245 | ||
14246 | else | |
14247 | $as_echo "$as_me: failed program was:" >&5 | |
14248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14249 | ||
14250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14251 | $as_echo "yes" >&6; } | |
14252 | as_fn_error $? " | |
14253 | *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible | |
14254 | *** with the CDDL license and will prevent the module linking stage | |
14255 | *** from succeeding. You must rebuild your kernel without this | |
14256 | *** option enabled." "$LINENO" 5 | |
14257 | ||
14258 | ||
14259 | ||
14260 | fi | |
14261 | rm -Rf build | |
14262 | ||
14263 | ||
14264 | EXTRA_KCFLAGS="$tmp_flags" | |
14265 | ||
14266 | ||
14267 | else | |
14268 | $as_echo "$as_me: failed program was:" >&5 | |
14269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14270 | ||
14271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14272 | $as_echo "no" >&6; } | |
14273 | ||
14274 | ||
14275 | ||
14276 | ||
14277 | fi | |
14278 | rm -Rf build | |
14279 | ||
14280 | ||
14281 | ||
14282 | ||
14283 | ||
14284 | ||
14285 | tmp_flags="$EXTRA_KCFLAGS" | |
14286 | EXTRA_KCFLAGS="-I\$(src)" | |
14287 | ||
14288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5 | |
14289 | $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; } | |
14290 | ||
14291 | ||
14292 | cat confdefs.h - <<_ACEOF >conftest.c | |
14293 | ||
14294 | ||
14295 | #include <linux/module.h> | |
14296 | MODULE_LICENSE(ZFS_META_LICENSE); | |
14297 | ||
14298 | #define CREATE_TRACE_POINTS | |
14299 | #include "conftest.h" | |
14300 | ||
14301 | int | |
14302 | main (void) | |
14303 | { | |
14304 | ||
14305 | trace_zfs_autoconf_event_one(1UL); | |
14306 | trace_zfs_autoconf_event_two(2UL); | |
14307 | ||
14308 | ; | |
14309 | return 0; | |
14310 | } | |
14311 | ||
14312 | _ACEOF | |
14313 | ||
14314 | ||
14315 | ||
14316 | cat - <<_ACEOF >conftest.h | |
14317 | ||
14318 | #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ) | |
14319 | #define _CONFTEST_H | |
14320 | ||
14321 | #undef TRACE_SYSTEM | |
14322 | #define TRACE_SYSTEM zfs | |
14323 | #include <linux/tracepoint.h> | |
14324 | ||
14325 | DECLARE_EVENT_CLASS(zfs_autoconf_event_class, | |
14326 | TP_PROTO(unsigned long i), | |
14327 | TP_ARGS(i), | |
14328 | TP_STRUCT__entry( | |
14329 | __field(unsigned long, i) | |
14330 | ), | |
14331 | TP_fast_assign( | |
14332 | __entry->i = i; | |
14333 | ), | |
14334 | TP_printk("i = %lu", __entry->i) | |
14335 | ); | |
14336 | ||
14337 | #define DEFINE_AUTOCONF_EVENT(name) \ | |
14338 | DEFINE_EVENT(zfs_autoconf_event_class, name, \ | |
14339 | TP_PROTO(unsigned long i), \ | |
14340 | TP_ARGS(i)) | |
14341 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one); | |
14342 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two); | |
14343 | ||
14344 | #endif /* _CONFTEST_H */ | |
14345 | ||
14346 | #undef TRACE_INCLUDE_PATH | |
14347 | #define TRACE_INCLUDE_PATH . | |
14348 | #define TRACE_INCLUDE_FILE conftest | |
14349 | #include <trace/define_trace.h> | |
14350 | ||
14351 | _ACEOF | |
14352 | ||
14353 | ||
14354 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14355 | echo "obj-m := conftest.o" >build/Makefile | |
14356 | modpost_flag='' | |
14357 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14358 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14359 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14360 | (eval $ac_try) 2>&5 | |
14361 | ac_status=$? | |
14362 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14363 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14364 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14365 | (eval $ac_try) 2>&5 | |
14366 | ac_status=$? | |
14367 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14368 | test $ac_status = 0; }; }; then : | |
14369 | ||
14370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14371 | $as_echo "yes" >&6; } | |
14372 | ||
14373 | $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h | |
14374 | ||
14375 | ||
14376 | else | |
14377 | $as_echo "$as_me: failed program was:" >&5 | |
14378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14379 | ||
14380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14381 | $as_echo "no" >&6; } | |
14382 | ||
14383 | ||
14384 | ||
14385 | fi | |
14386 | rm -Rf build | |
14387 | ||
14388 | ||
14389 | EXTRA_KCFLAGS="$tmp_flags" | |
14390 | ||
14391 | ||
14392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5 | |
14393 | $as_echo_n "checking whether current->bio_tail exists... " >&6; } | |
14394 | ||
14395 | ||
14396 | cat confdefs.h - <<_ACEOF >conftest.c | |
14397 | ||
14398 | ||
14399 | #include <linux/sched.h> | |
14400 | ||
14401 | int | |
14402 | main (void) | |
14403 | { | |
14404 | ||
14405 | current->bio_tail = (struct bio **) NULL; | |
14406 | ||
14407 | ; | |
14408 | return 0; | |
14409 | } | |
14410 | ||
14411 | _ACEOF | |
14412 | ||
14413 | ||
14414 | ||
14415 | cat - <<_ACEOF >conftest.h | |
14416 | ||
14417 | _ACEOF | |
14418 | ||
14419 | ||
14420 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14421 | echo "obj-m := conftest.o" >build/Makefile | |
14422 | modpost_flag='' | |
14423 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14424 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14425 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14426 | (eval $ac_try) 2>&5 | |
14427 | ac_status=$? | |
14428 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14429 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14430 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14431 | (eval $ac_try) 2>&5 | |
14432 | ac_status=$? | |
14433 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14434 | test $ac_status = 0; }; }; then : | |
14435 | ||
14436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14437 | $as_echo "yes" >&6; } | |
14438 | ||
14439 | $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h | |
14440 | ||
14441 | ||
14442 | else | |
14443 | $as_echo "$as_me: failed program was:" >&5 | |
14444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14445 | ||
14446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14447 | $as_echo "no" >&6; } | |
14448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5 | |
14449 | $as_echo_n "checking whether current->bio_list exists... " >&6; } | |
14450 | ||
14451 | ||
14452 | cat confdefs.h - <<_ACEOF >conftest.c | |
14453 | ||
14454 | ||
14455 | #include <linux/sched.h> | |
14456 | ||
14457 | int | |
14458 | main (void) | |
14459 | { | |
14460 | ||
14461 | current->bio_list = (struct bio_list *) NULL; | |
14462 | ||
14463 | ; | |
14464 | return 0; | |
14465 | } | |
14466 | ||
14467 | _ACEOF | |
14468 | ||
14469 | ||
14470 | ||
14471 | cat - <<_ACEOF >conftest.h | |
14472 | ||
14473 | _ACEOF | |
14474 | ||
14475 | ||
14476 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14477 | echo "obj-m := conftest.o" >build/Makefile | |
14478 | modpost_flag='' | |
14479 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14480 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14481 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14482 | (eval $ac_try) 2>&5 | |
14483 | ac_status=$? | |
14484 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14485 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14486 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14487 | (eval $ac_try) 2>&5 | |
14488 | ac_status=$? | |
14489 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14490 | test $ac_status = 0; }; }; then : | |
14491 | ||
14492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14493 | $as_echo "yes" >&6; } | |
14494 | ||
14495 | $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h | |
14496 | ||
14497 | ||
14498 | else | |
14499 | $as_echo "$as_me: failed program was:" >&5 | |
14500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14501 | ||
14502 | as_fn_error $? "no - Please file a bug report at | |
14503 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
14504 | ||
14505 | ||
14506 | ||
14507 | fi | |
14508 | rm -Rf build | |
14509 | ||
14510 | ||
14511 | ||
14512 | ||
14513 | ||
14514 | fi | |
14515 | rm -Rf build | |
14516 | ||
14517 | ||
14518 | ||
14519 | ||
14520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5 | |
14521 | $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; } | |
14522 | ||
14523 | ||
14524 | cat confdefs.h - <<_ACEOF >conftest.c | |
14525 | ||
14526 | ||
14527 | #include <linux/bio.h> | |
14528 | ||
14529 | int | |
14530 | main (void) | |
14531 | { | |
14532 | ||
14533 | blk_qc_t blk_qc; | |
14534 | struct bio *bio = NULL; | |
14535 | blk_qc = submit_bio(bio); | |
14536 | ||
14537 | ; | |
14538 | return 0; | |
14539 | } | |
14540 | ||
14541 | _ACEOF | |
14542 | ||
14543 | ||
14544 | ||
14545 | cat - <<_ACEOF >conftest.h | |
14546 | ||
14547 | _ACEOF | |
14548 | ||
14549 | ||
14550 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14551 | echo "obj-m := conftest.o" >build/Makefile | |
14552 | modpost_flag='' | |
14553 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14554 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14555 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14556 | (eval $ac_try) 2>&5 | |
14557 | ac_status=$? | |
14558 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14559 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14560 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14561 | (eval $ac_try) 2>&5 | |
14562 | ac_status=$? | |
14563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14564 | test $ac_status = 0; }; }; then : | |
14565 | ||
14566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14567 | $as_echo "yes" >&6; } | |
14568 | ||
14569 | $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h | |
14570 | ||
14571 | ||
14572 | else | |
14573 | $as_echo "$as_me: failed program was:" >&5 | |
14574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14575 | ||
14576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14577 | $as_echo "no" >&6; } | |
14578 | ||
14579 | ||
14580 | ||
14581 | fi | |
14582 | rm -Rf build | |
14583 | ||
14584 | ||
14585 | ||
14586 | ||
14587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5 | |
14588 | $as_echo_n "checking block device operation prototypes... " >&6; } | |
14589 | tmp_flags="$EXTRA_KCFLAGS" | |
14590 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
14591 | ||
14592 | ||
14593 | cat confdefs.h - <<_ACEOF >conftest.c | |
14594 | ||
14595 | ||
14596 | #include <linux/blkdev.h> | |
14597 | ||
14598 | int blk_open(struct block_device *bdev, fmode_t mode) | |
14599 | { return 0; } | |
14600 | int blk_ioctl(struct block_device *bdev, fmode_t mode, | |
14601 | unsigned x, unsigned long y) { return 0; } | |
14602 | int blk_compat_ioctl(struct block_device * bdev, fmode_t mode, | |
14603 | unsigned x, unsigned long y) { return 0; } | |
14604 | ||
14605 | static const struct block_device_operations | |
14606 | bops __attribute__ ((unused)) = { | |
14607 | .open = blk_open, | |
14608 | .release = NULL, | |
14609 | .ioctl = blk_ioctl, | |
14610 | .compat_ioctl = blk_compat_ioctl, | |
14611 | }; | |
14612 | ||
14613 | int | |
14614 | main (void) | |
14615 | { | |
14616 | ||
14617 | ||
14618 | ; | |
14619 | return 0; | |
14620 | } | |
14621 | ||
14622 | _ACEOF | |
14623 | ||
14624 | ||
14625 | ||
14626 | cat - <<_ACEOF >conftest.h | |
14627 | ||
14628 | _ACEOF | |
14629 | ||
14630 | ||
14631 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14632 | echo "obj-m := conftest.o" >build/Makefile | |
14633 | modpost_flag='' | |
14634 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14635 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14636 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14637 | (eval $ac_try) 2>&5 | |
14638 | ac_status=$? | |
14639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14640 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14641 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14642 | (eval $ac_try) 2>&5 | |
14643 | ac_status=$? | |
14644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14645 | test $ac_status = 0; }; }; then : | |
14646 | ||
14647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5 | |
14648 | $as_echo "struct block_device" >&6; } | |
14649 | ||
14650 | $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h | |
14651 | ||
14652 | ||
14653 | else | |
14654 | $as_echo "$as_me: failed program was:" >&5 | |
14655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14656 | ||
14657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5 | |
14658 | $as_echo "struct inode" >&6; } | |
14659 | ||
14660 | ||
14661 | ||
14662 | fi | |
14663 | rm -Rf build | |
14664 | ||
14665 | ||
14666 | EXTRA_KCFLAGS="$tmp_flags" | |
14667 | ||
14668 | ||
14669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5 | |
14670 | $as_echo_n "checking whether block_device_operations.release is void... " >&6; } | |
14671 | tmp_flags="$EXTRA_KCFLAGS" | |
14672 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
14673 | ||
14674 | ||
14675 | cat confdefs.h - <<_ACEOF >conftest.c | |
14676 | ||
14677 | ||
14678 | #include <linux/blkdev.h> | |
14679 | ||
14680 | void blk_release(struct gendisk *g, fmode_t mode) { return; } | |
14681 | ||
14682 | static const struct block_device_operations | |
14683 | bops __attribute__ ((unused)) = { | |
14684 | .open = NULL, | |
14685 | .release = blk_release, | |
14686 | .ioctl = NULL, | |
14687 | .compat_ioctl = NULL, | |
14688 | }; | |
14689 | ||
14690 | int | |
14691 | main (void) | |
14692 | { | |
14693 | ||
14694 | ||
14695 | ; | |
14696 | return 0; | |
14697 | } | |
14698 | ||
14699 | _ACEOF | |
14700 | ||
14701 | ||
14702 | ||
14703 | cat - <<_ACEOF >conftest.h | |
14704 | ||
14705 | _ACEOF | |
14706 | ||
14707 | ||
14708 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14709 | echo "obj-m := conftest.o" >build/Makefile | |
14710 | modpost_flag='' | |
14711 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14712 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14713 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14714 | (eval $ac_try) 2>&5 | |
14715 | ac_status=$? | |
14716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14717 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14718 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14719 | (eval $ac_try) 2>&5 | |
14720 | ac_status=$? | |
14721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14722 | test $ac_status = 0; }; }; then : | |
14723 | ||
14724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5 | |
14725 | $as_echo "void" >&6; } | |
14726 | ||
14727 | $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h | |
14728 | ||
14729 | ||
14730 | else | |
14731 | $as_echo "$as_me: failed program was:" >&5 | |
14732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14733 | ||
14734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 | |
14735 | $as_echo "int" >&6; } | |
14736 | ||
14737 | ||
14738 | ||
14739 | fi | |
14740 | rm -Rf build | |
14741 | ||
14742 | ||
14743 | EXTRA_KCFLAGS="$tmp_flags" | |
14744 | ||
14745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5 | |
14746 | $as_echo_n "checking whether kernel defines fmode_t... " >&6; } | |
14747 | ||
14748 | ||
14749 | cat confdefs.h - <<_ACEOF >conftest.c | |
14750 | ||
14751 | ||
14752 | #include <linux/types.h> | |
14753 | ||
14754 | int | |
14755 | main (void) | |
14756 | { | |
14757 | ||
14758 | fmode_t *ptr __attribute__ ((unused)); | |
14759 | ||
14760 | ; | |
14761 | return 0; | |
14762 | } | |
14763 | ||
14764 | _ACEOF | |
14765 | ||
14766 | ||
14767 | ||
14768 | cat - <<_ACEOF >conftest.h | |
14769 | ||
14770 | _ACEOF | |
14771 | ||
14772 | ||
14773 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14774 | echo "obj-m := conftest.o" >build/Makefile | |
14775 | modpost_flag='' | |
14776 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14777 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14778 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14779 | (eval $ac_try) 2>&5 | |
14780 | ac_status=$? | |
14781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14782 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14783 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14784 | (eval $ac_try) 2>&5 | |
14785 | ac_status=$? | |
14786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14787 | test $ac_status = 0; }; }; then : | |
14788 | ||
14789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14790 | $as_echo "yes" >&6; } | |
14791 | ||
14792 | $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h | |
14793 | ||
14794 | ||
14795 | else | |
14796 | $as_echo "$as_me: failed program was:" >&5 | |
14797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14798 | ||
14799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14800 | $as_echo "no" >&6; } | |
14801 | ||
14802 | ||
14803 | ||
14804 | fi | |
14805 | rm -Rf build | |
14806 | ||
14807 | ||
14808 | ||
14809 | ||
14810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5 | |
14811 | $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; } | |
14812 | ||
14813 | ||
14814 | cat confdefs.h - <<_ACEOF >conftest.c | |
14815 | ||
14816 | ||
14817 | #include <linux/kobject.h> | |
14818 | ||
14819 | int | |
14820 | main (void) | |
14821 | { | |
14822 | ||
14823 | int val __attribute__ ((unused)); | |
14824 | val = KOBJ_NAME_LEN; | |
14825 | ||
14826 | ; | |
14827 | return 0; | |
14828 | } | |
14829 | ||
14830 | _ACEOF | |
14831 | ||
14832 | ||
14833 | ||
14834 | cat - <<_ACEOF >conftest.h | |
14835 | ||
14836 | _ACEOF | |
14837 | ||
14838 | ||
14839 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14840 | echo "obj-m := conftest.o" >build/Makefile | |
14841 | modpost_flag='' | |
14842 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14843 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14844 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14845 | (eval $ac_try) 2>&5 | |
14846 | ac_status=$? | |
14847 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14848 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14849 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14850 | (eval $ac_try) 2>&5 | |
14851 | ac_status=$? | |
14852 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14853 | test $ac_status = 0; }; }; then : | |
14854 | ||
14855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14856 | $as_echo "yes" >&6; } | |
14857 | ||
14858 | $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h | |
14859 | ||
14860 | ||
14861 | else | |
14862 | $as_echo "$as_me: failed program was:" >&5 | |
14863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14864 | ||
14865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14866 | $as_echo "no" >&6; } | |
14867 | ||
14868 | ||
14869 | ||
14870 | fi | |
14871 | rm -Rf build | |
14872 | ||
14873 | ||
14874 | ||
14875 | ||
14876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5 | |
14877 | $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; } | |
14878 | ||
14879 | ||
14880 | cat confdefs.h - <<_ACEOF >conftest.c | |
14881 | ||
14882 | ||
14883 | #include <linux/fs.h> | |
14884 | ||
14885 | int | |
14886 | main (void) | |
14887 | { | |
14888 | ||
14889 | struct block_device *bdev = NULL; | |
14890 | (void) blkdev_get(bdev, 0, NULL); | |
14891 | ||
14892 | ; | |
14893 | return 0; | |
14894 | } | |
14895 | ||
14896 | _ACEOF | |
14897 | ||
14898 | ||
14899 | ||
14900 | cat - <<_ACEOF >conftest.h | |
14901 | ||
14902 | _ACEOF | |
14903 | ||
14904 | ||
14905 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14906 | echo "obj-m := conftest.o" >build/Makefile | |
14907 | modpost_flag='' | |
14908 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14909 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14910 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14911 | (eval $ac_try) 2>&5 | |
14912 | ac_status=$? | |
14913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14914 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14915 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14916 | (eval $ac_try) 2>&5 | |
14917 | ac_status=$? | |
14918 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14919 | test $ac_status = 0; }; }; then : | |
14920 | ||
14921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14922 | $as_echo "yes" >&6; } | |
14923 | ||
14924 | $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h | |
14925 | ||
14926 | ||
14927 | else | |
14928 | $as_echo "$as_me: failed program was:" >&5 | |
14929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14930 | ||
14931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14932 | $as_echo "no" >&6; } | |
14933 | ||
14934 | ||
14935 | ||
14936 | fi | |
14937 | rm -Rf build | |
14938 | ||
14939 | ||
14940 | ||
14941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5 | |
14942 | $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; } | |
14943 | ||
14944 | ||
14945 | ||
14946 | cat confdefs.h - <<_ACEOF >conftest.c | |
14947 | ||
14948 | ||
14949 | #include <linux/fs.h> | |
14950 | ||
14951 | int | |
14952 | main (void) | |
14953 | { | |
14954 | ||
14955 | blkdev_get_by_path(NULL, 0, NULL); | |
14956 | ||
14957 | ; | |
14958 | return 0; | |
14959 | } | |
14960 | ||
14961 | _ACEOF | |
14962 | ||
14963 | ||
14964 | ||
14965 | cat - <<_ACEOF >conftest.h | |
14966 | ||
14967 | _ACEOF | |
14968 | ||
14969 | ||
14970 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14971 | echo "obj-m := conftest.o" >build/Makefile | |
14972 | modpost_flag='' | |
14973 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14974 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14975 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14976 | (eval $ac_try) 2>&5 | |
14977 | ac_status=$? | |
14978 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14979 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14980 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14981 | (eval $ac_try) 2>&5 | |
14982 | ac_status=$? | |
14983 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14984 | test $ac_status = 0; }; }; then : | |
14985 | rc=0 | |
14986 | else | |
14987 | $as_echo "$as_me: failed program was:" >&5 | |
14988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14989 | rc=1 | |
14990 | ||
14991 | ||
14992 | fi | |
14993 | rm -Rf build | |
14994 | ||
14995 | ||
14996 | if test $rc -ne 0; then : | |
14997 | ||
14998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14999 | $as_echo "no" >&6; } | |
15000 | ||
15001 | else | |
15002 | if test "x$enable_linux_builtin" != xyes; then | |
15003 | ||
15004 | grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \ | |
15005 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15006 | rc=$? | |
15007 | if test $rc -ne 0; then | |
15008 | export=0 | |
15009 | for file in fs/block_dev.c; do | |
15010 | grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \ | |
15011 | "$LINUX/$file" 2>/dev/null | |
15012 | rc=$? | |
15013 | if test $rc -eq 0; then | |
15014 | export=1 | |
15015 | break; | |
15016 | fi | |
15017 | done | |
15018 | if test $export -eq 0; then : | |
15019 | rc=1 | |
15020 | else : | |
15021 | rc=0 | |
15022 | fi | |
15023 | else : | |
15024 | rc=0 | |
15025 | fi | |
15026 | ||
15027 | fi | |
15028 | if test $rc -ne 0; then : | |
15029 | ||
15030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15031 | $as_echo "no" >&6; } | |
15032 | ||
15033 | else : | |
15034 | ||
15035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15036 | $as_echo "yes" >&6; } | |
15037 | ||
15038 | $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h | |
15039 | ||
15040 | ||
15041 | fi | |
15042 | fi | |
15043 | ||
15044 | ||
15045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5 | |
15046 | $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; } | |
15047 | ||
15048 | ||
15049 | ||
15050 | cat confdefs.h - <<_ACEOF >conftest.c | |
15051 | ||
15052 | ||
15053 | #include <linux/fs.h> | |
15054 | ||
15055 | int | |
15056 | main (void) | |
15057 | { | |
15058 | ||
15059 | open_bdev_exclusive(NULL, 0, NULL); | |
15060 | ||
15061 | ; | |
15062 | return 0; | |
15063 | } | |
15064 | ||
15065 | _ACEOF | |
15066 | ||
15067 | ||
15068 | ||
15069 | cat - <<_ACEOF >conftest.h | |
15070 | ||
15071 | _ACEOF | |
15072 | ||
15073 | ||
15074 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15075 | echo "obj-m := conftest.o" >build/Makefile | |
15076 | modpost_flag='' | |
15077 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15078 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15079 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15080 | (eval $ac_try) 2>&5 | |
15081 | ac_status=$? | |
15082 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15083 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15084 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15085 | (eval $ac_try) 2>&5 | |
15086 | ac_status=$? | |
15087 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15088 | test $ac_status = 0; }; }; then : | |
15089 | rc=0 | |
15090 | else | |
15091 | $as_echo "$as_me: failed program was:" >&5 | |
15092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15093 | rc=1 | |
15094 | ||
15095 | ||
15096 | fi | |
15097 | rm -Rf build | |
15098 | ||
15099 | ||
15100 | if test $rc -ne 0; then : | |
15101 | ||
15102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15103 | $as_echo "no" >&6; } | |
15104 | ||
15105 | else | |
15106 | if test "x$enable_linux_builtin" != xyes; then | |
15107 | ||
15108 | grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \ | |
15109 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15110 | rc=$? | |
15111 | if test $rc -ne 0; then | |
15112 | export=0 | |
15113 | for file in fs/block_dev.c; do | |
15114 | grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \ | |
15115 | "$LINUX/$file" 2>/dev/null | |
15116 | rc=$? | |
15117 | if test $rc -eq 0; then | |
15118 | export=1 | |
15119 | break; | |
15120 | fi | |
15121 | done | |
15122 | if test $export -eq 0; then : | |
15123 | rc=1 | |
15124 | else : | |
15125 | rc=0 | |
15126 | fi | |
15127 | else : | |
15128 | rc=0 | |
15129 | fi | |
15130 | ||
15131 | fi | |
15132 | if test $rc -ne 0; then : | |
15133 | ||
15134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15135 | $as_echo "no" >&6; } | |
15136 | ||
15137 | else : | |
15138 | ||
15139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15140 | $as_echo "yes" >&6; } | |
15141 | ||
15142 | $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h | |
15143 | ||
15144 | ||
15145 | fi | |
15146 | fi | |
15147 | ||
15148 | ||
d177712e CIK |
15149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5 |
15150 | $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; } | |
0bd31011 TG |
15151 | |
15152 | ||
15153 | ||
15154 | cat confdefs.h - <<_ACEOF >conftest.c | |
15155 | ||
15156 | ||
15157 | #include <linux/fs.h> | |
15158 | ||
15159 | int | |
15160 | main (void) | |
15161 | { | |
15162 | ||
15163 | lookup_bdev(NULL); | |
15164 | ||
15165 | ; | |
15166 | return 0; | |
15167 | } | |
15168 | ||
15169 | _ACEOF | |
15170 | ||
15171 | ||
15172 | ||
15173 | cat - <<_ACEOF >conftest.h | |
15174 | ||
15175 | _ACEOF | |
15176 | ||
15177 | ||
15178 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15179 | echo "obj-m := conftest.o" >build/Makefile | |
15180 | modpost_flag='' | |
15181 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15182 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15183 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15184 | (eval $ac_try) 2>&5 | |
15185 | ac_status=$? | |
15186 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15187 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15188 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15189 | (eval $ac_try) 2>&5 | |
15190 | ac_status=$? | |
15191 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15192 | test $ac_status = 0; }; }; then : | |
15193 | rc=0 | |
15194 | else | |
15195 | $as_echo "$as_me: failed program was:" >&5 | |
15196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15197 | rc=1 | |
15198 | ||
15199 | ||
15200 | fi | |
15201 | rm -Rf build | |
15202 | ||
15203 | ||
15204 | if test $rc -ne 0; then : | |
15205 | ||
15206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15207 | $as_echo "no" >&6; } | |
d177712e CIK |
15208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5 |
15209 | $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; } | |
0bd31011 TG |
15210 | |
15211 | ||
15212 | ||
15213 | cat confdefs.h - <<_ACEOF >conftest.c | |
15214 | ||
15215 | ||
15216 | #include <linux/fs.h> | |
15217 | ||
15218 | int | |
15219 | main (void) | |
15220 | { | |
15221 | ||
d177712e | 15222 | lookup_bdev(NULL, FMODE_READ); |
0bd31011 TG |
15223 | |
15224 | ; | |
15225 | return 0; | |
15226 | } | |
15227 | ||
15228 | _ACEOF | |
15229 | ||
15230 | ||
15231 | ||
15232 | cat - <<_ACEOF >conftest.h | |
15233 | ||
15234 | _ACEOF | |
15235 | ||
15236 | ||
15237 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15238 | echo "obj-m := conftest.o" >build/Makefile | |
15239 | modpost_flag='' | |
15240 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15241 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15242 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15243 | (eval $ac_try) 2>&5 | |
15244 | ac_status=$? | |
15245 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15246 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15247 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15248 | (eval $ac_try) 2>&5 | |
15249 | ac_status=$? | |
15250 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15251 | test $ac_status = 0; }; }; then : | |
15252 | rc=0 | |
15253 | else | |
15254 | $as_echo "$as_me: failed program was:" >&5 | |
15255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15256 | rc=1 | |
15257 | ||
15258 | ||
15259 | fi | |
15260 | rm -Rf build | |
15261 | ||
15262 | ||
15263 | if test $rc -ne 0; then : | |
15264 | ||
15265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15266 | $as_echo "no" >&6; } | |
15267 | ||
15268 | else | |
15269 | if test "x$enable_linux_builtin" != xyes; then | |
15270 | ||
15271 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
15272 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15273 | rc=$? | |
15274 | if test $rc -ne 0; then | |
15275 | export=0 | |
15276 | for file in fs/block_dev.c; do | |
15277 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
15278 | "$LINUX/$file" 2>/dev/null | |
15279 | rc=$? | |
15280 | if test $rc -eq 0; then | |
15281 | export=1 | |
15282 | break; | |
15283 | fi | |
15284 | done | |
15285 | if test $export -eq 0; then : | |
15286 | rc=1 | |
15287 | else : | |
15288 | rc=0 | |
15289 | fi | |
15290 | else : | |
15291 | rc=0 | |
15292 | fi | |
15293 | ||
15294 | fi | |
15295 | if test $rc -ne 0; then : | |
15296 | ||
15297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15298 | $as_echo "no" >&6; } | |
15299 | ||
15300 | else : | |
15301 | ||
15302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15303 | $as_echo "yes" >&6; } | |
15304 | ||
d177712e | 15305 | $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h |
0bd31011 TG |
15306 | |
15307 | ||
15308 | fi | |
15309 | fi | |
15310 | ||
15311 | ||
15312 | else | |
15313 | if test "x$enable_linux_builtin" != xyes; then | |
15314 | ||
15315 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
15316 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15317 | rc=$? | |
15318 | if test $rc -ne 0; then | |
15319 | export=0 | |
15320 | for file in fs/block_dev.c; do | |
15321 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
15322 | "$LINUX/$file" 2>/dev/null | |
15323 | rc=$? | |
15324 | if test $rc -eq 0; then | |
15325 | export=1 | |
15326 | break; | |
15327 | fi | |
15328 | done | |
15329 | if test $export -eq 0; then : | |
15330 | rc=1 | |
15331 | else : | |
15332 | rc=0 | |
15333 | fi | |
15334 | else : | |
15335 | rc=0 | |
15336 | fi | |
15337 | ||
15338 | fi | |
15339 | if test $rc -ne 0; then : | |
15340 | ||
15341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15342 | $as_echo "no" >&6; } | |
d177712e CIK |
15343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5 |
15344 | $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; } | |
0bd31011 TG |
15345 | |
15346 | ||
15347 | ||
15348 | cat confdefs.h - <<_ACEOF >conftest.c | |
15349 | ||
15350 | ||
15351 | #include <linux/fs.h> | |
15352 | ||
15353 | int | |
15354 | main (void) | |
15355 | { | |
15356 | ||
d177712e | 15357 | lookup_bdev(NULL, FMODE_READ); |
0bd31011 TG |
15358 | |
15359 | ; | |
15360 | return 0; | |
15361 | } | |
15362 | ||
15363 | _ACEOF | |
15364 | ||
15365 | ||
15366 | ||
15367 | cat - <<_ACEOF >conftest.h | |
15368 | ||
15369 | _ACEOF | |
15370 | ||
15371 | ||
15372 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15373 | echo "obj-m := conftest.o" >build/Makefile | |
15374 | modpost_flag='' | |
15375 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15376 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15377 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15378 | (eval $ac_try) 2>&5 | |
15379 | ac_status=$? | |
15380 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15381 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15382 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15383 | (eval $ac_try) 2>&5 | |
15384 | ac_status=$? | |
15385 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15386 | test $ac_status = 0; }; }; then : | |
15387 | rc=0 | |
15388 | else | |
15389 | $as_echo "$as_me: failed program was:" >&5 | |
15390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15391 | rc=1 | |
15392 | ||
15393 | ||
15394 | fi | |
15395 | rm -Rf build | |
15396 | ||
15397 | ||
15398 | if test $rc -ne 0; then : | |
15399 | ||
15400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15401 | $as_echo "no" >&6; } | |
15402 | ||
15403 | else | |
15404 | if test "x$enable_linux_builtin" != xyes; then | |
15405 | ||
15406 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
15407 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
15408 | rc=$? | |
15409 | if test $rc -ne 0; then | |
15410 | export=0 | |
15411 | for file in fs/block_dev.c; do | |
15412 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
15413 | "$LINUX/$file" 2>/dev/null | |
15414 | rc=$? | |
15415 | if test $rc -eq 0; then | |
15416 | export=1 | |
15417 | break; | |
15418 | fi | |
15419 | done | |
15420 | if test $export -eq 0; then : | |
15421 | rc=1 | |
15422 | else : | |
15423 | rc=0 | |
15424 | fi | |
15425 | else : | |
15426 | rc=0 | |
15427 | fi | |
15428 | ||
15429 | fi | |
15430 | if test $rc -ne 0; then : | |
15431 | ||
15432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15433 | $as_echo "no" >&6; } | |
15434 | ||
15435 | else : | |
15436 | ||
15437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15438 | $as_echo "yes" >&6; } | |
15439 | ||
d177712e | 15440 | $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h |
0bd31011 TG |
15441 | |
15442 | ||
15443 | fi | |
15444 | fi | |
15445 | ||
15446 | ||
15447 | else : | |
15448 | ||
15449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15450 | $as_echo "yes" >&6; } | |
15451 | ||
d177712e | 15452 | $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h |
0bd31011 TG |
15453 | |
15454 | ||
15455 | fi | |
15456 | fi | |
15457 | ||
15458 | ||
15459 | ||
15460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5 | |
15461 | $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; } | |
15462 | ||
15463 | ||
15464 | cat confdefs.h - <<_ACEOF >conftest.c | |
15465 | ||
15466 | ||
15467 | #include <linux/buffer_head.h> | |
15468 | ||
15469 | int | |
15470 | main (void) | |
15471 | { | |
15472 | ||
15473 | struct block_device *bdev = NULL; | |
15474 | invalidate_bdev(bdev); | |
15475 | ||
15476 | ; | |
15477 | return 0; | |
15478 | } | |
15479 | ||
15480 | _ACEOF | |
15481 | ||
15482 | ||
15483 | ||
15484 | cat - <<_ACEOF >conftest.h | |
15485 | ||
15486 | _ACEOF | |
15487 | ||
15488 | ||
15489 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15490 | echo "obj-m := conftest.o" >build/Makefile | |
15491 | modpost_flag='' | |
15492 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15493 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15494 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15495 | (eval $ac_try) 2>&5 | |
15496 | ac_status=$? | |
15497 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15498 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15499 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15500 | (eval $ac_try) 2>&5 | |
15501 | ac_status=$? | |
15502 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15503 | test $ac_status = 0; }; }; then : | |
15504 | ||
15505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15506 | $as_echo "yes" >&6; } | |
15507 | ||
15508 | $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h | |
15509 | ||
15510 | ||
15511 | else | |
15512 | $as_echo "$as_me: failed program was:" >&5 | |
15513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15514 | ||
15515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15516 | $as_echo "no" >&6; } | |
15517 | ||
15518 | ||
15519 | ||
15520 | fi | |
15521 | rm -Rf build | |
15522 | ||
15523 | ||
15524 | ||
15525 | ||
15526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5 | |
15527 | $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; } | |
15528 | tmp_flags="$EXTRA_KCFLAGS" | |
15529 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
15530 | ||
15531 | ||
15532 | cat confdefs.h - <<_ACEOF >conftest.c | |
15533 | ||
15534 | ||
15535 | #include <linux/blkdev.h> | |
15536 | ||
15537 | int | |
15538 | main (void) | |
15539 | { | |
15540 | ||
15541 | struct block_device *bdev = NULL; | |
15542 | bdev_logical_block_size(bdev); | |
15543 | ||
15544 | ; | |
15545 | return 0; | |
15546 | } | |
15547 | ||
15548 | _ACEOF | |
15549 | ||
15550 | ||
15551 | ||
15552 | cat - <<_ACEOF >conftest.h | |
15553 | ||
15554 | _ACEOF | |
15555 | ||
15556 | ||
15557 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15558 | echo "obj-m := conftest.o" >build/Makefile | |
15559 | modpost_flag='' | |
15560 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15561 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15562 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15563 | (eval $ac_try) 2>&5 | |
15564 | ac_status=$? | |
15565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15566 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15567 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15568 | (eval $ac_try) 2>&5 | |
15569 | ac_status=$? | |
15570 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15571 | test $ac_status = 0; }; }; then : | |
15572 | ||
15573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15574 | $as_echo "yes" >&6; } | |
15575 | ||
15576 | $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h | |
15577 | ||
15578 | ||
15579 | else | |
15580 | $as_echo "$as_me: failed program was:" >&5 | |
15581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15582 | ||
15583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15584 | $as_echo "no" >&6; } | |
15585 | ||
15586 | ||
15587 | ||
15588 | fi | |
15589 | rm -Rf build | |
15590 | ||
15591 | ||
15592 | EXTRA_KCFLAGS="$tmp_flags" | |
15593 | ||
15594 | ||
15595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5 | |
15596 | $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; } | |
15597 | tmp_flags="$EXTRA_KCFLAGS" | |
15598 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
15599 | ||
15600 | ||
15601 | cat confdefs.h - <<_ACEOF >conftest.c | |
15602 | ||
15603 | ||
15604 | #include <linux/blkdev.h> | |
15605 | ||
15606 | int | |
15607 | main (void) | |
15608 | { | |
15609 | ||
15610 | struct block_device *bdev = NULL; | |
15611 | bdev_physical_block_size(bdev); | |
15612 | ||
15613 | ; | |
15614 | return 0; | |
15615 | } | |
15616 | ||
15617 | _ACEOF | |
15618 | ||
15619 | ||
15620 | ||
15621 | cat - <<_ACEOF >conftest.h | |
15622 | ||
15623 | _ACEOF | |
15624 | ||
15625 | ||
15626 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15627 | echo "obj-m := conftest.o" >build/Makefile | |
15628 | modpost_flag='' | |
15629 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15630 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15631 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15632 | (eval $ac_try) 2>&5 | |
15633 | ac_status=$? | |
15634 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15635 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15636 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15637 | (eval $ac_try) 2>&5 | |
15638 | ac_status=$? | |
15639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15640 | test $ac_status = 0; }; }; then : | |
15641 | ||
15642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15643 | $as_echo "yes" >&6; } | |
15644 | ||
15645 | $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h | |
15646 | ||
15647 | ||
15648 | else | |
15649 | $as_echo "$as_me: failed program was:" >&5 | |
15650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15651 | ||
15652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15653 | $as_echo "no" >&6; } | |
15654 | ||
15655 | ||
15656 | ||
15657 | fi | |
15658 | rm -Rf build | |
15659 | ||
15660 | ||
15661 | EXTRA_KCFLAGS="$tmp_flags" | |
15662 | ||
15663 | ||
15664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5 | |
15665 | $as_echo_n "checking whether bio has bi_iter... " >&6; } | |
15666 | ||
15667 | ||
15668 | cat confdefs.h - <<_ACEOF >conftest.c | |
15669 | ||
15670 | ||
15671 | #include <linux/bio.h> | |
15672 | ||
15673 | int | |
15674 | main (void) | |
15675 | { | |
15676 | ||
15677 | struct bio bio; | |
15678 | bio.bi_iter.bi_sector = 0; | |
15679 | ||
15680 | ; | |
15681 | return 0; | |
15682 | } | |
15683 | ||
15684 | _ACEOF | |
15685 | ||
15686 | ||
15687 | ||
15688 | cat - <<_ACEOF >conftest.h | |
15689 | ||
15690 | _ACEOF | |
15691 | ||
15692 | ||
15693 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15694 | echo "obj-m := conftest.o" >build/Makefile | |
15695 | modpost_flag='' | |
15696 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15697 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15698 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15699 | (eval $ac_try) 2>&5 | |
15700 | ac_status=$? | |
15701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15702 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15703 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15704 | (eval $ac_try) 2>&5 | |
15705 | ac_status=$? | |
15706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15707 | test $ac_status = 0; }; }; then : | |
15708 | ||
15709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15710 | $as_echo "yes" >&6; } | |
15711 | ||
15712 | $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h | |
15713 | ||
15714 | ||
15715 | else | |
15716 | $as_echo "$as_me: failed program was:" >&5 | |
15717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15718 | ||
15719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15720 | $as_echo "no" >&6; } | |
15721 | ||
15722 | ||
15723 | ||
15724 | fi | |
15725 | rm -Rf build | |
15726 | ||
15727 | ||
15728 | ||
15729 | ||
15730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5 | |
15731 | $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; } | |
15732 | ||
15733 | ||
15734 | cat confdefs.h - <<_ACEOF >conftest.c | |
15735 | ||
15736 | ||
15737 | #include <linux/bio.h> | |
15738 | ||
15739 | int | |
15740 | main (void) | |
15741 | { | |
15742 | ||
15743 | int flags __attribute__ ((unused)); | |
15744 | flags = ((1 << BIO_RW_FAILFAST_DEV) | | |
15745 | (1 << BIO_RW_FAILFAST_TRANSPORT) | | |
15746 | (1 << BIO_RW_FAILFAST_DRIVER)); | |
15747 | ||
15748 | ; | |
15749 | return 0; | |
15750 | } | |
15751 | ||
15752 | _ACEOF | |
15753 | ||
15754 | ||
15755 | ||
15756 | cat - <<_ACEOF >conftest.h | |
15757 | ||
15758 | _ACEOF | |
15759 | ||
15760 | ||
15761 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15762 | echo "obj-m := conftest.o" >build/Makefile | |
15763 | modpost_flag='' | |
15764 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15765 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15766 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15767 | (eval $ac_try) 2>&5 | |
15768 | ac_status=$? | |
15769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15770 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15771 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15772 | (eval $ac_try) 2>&5 | |
15773 | ac_status=$? | |
15774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15775 | test $ac_status = 0; }; }; then : | |
15776 | ||
15777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15778 | $as_echo "yes" >&6; } | |
15779 | ||
15780 | $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h | |
15781 | ||
15782 | ||
15783 | else | |
15784 | $as_echo "$as_me: failed program was:" >&5 | |
15785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15786 | ||
15787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15788 | $as_echo "no" >&6; } | |
15789 | ||
15790 | ||
15791 | ||
15792 | fi | |
15793 | rm -Rf build | |
15794 | ||
15795 | ||
15796 | ||
15797 | ||
15798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5 | |
15799 | $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; } | |
15800 | ||
15801 | ||
15802 | cat confdefs.h - <<_ACEOF >conftest.c | |
15803 | ||
15804 | ||
15805 | #include <linux/bio.h> | |
15806 | ||
15807 | int | |
15808 | main (void) | |
15809 | { | |
15810 | ||
15811 | int flags __attribute__ ((unused)); | |
15812 | flags = REQ_FAILFAST_MASK; | |
15813 | ||
15814 | ; | |
15815 | return 0; | |
15816 | } | |
15817 | ||
15818 | _ACEOF | |
15819 | ||
15820 | ||
15821 | ||
15822 | cat - <<_ACEOF >conftest.h | |
15823 | ||
15824 | _ACEOF | |
15825 | ||
15826 | ||
15827 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15828 | echo "obj-m := conftest.o" >build/Makefile | |
15829 | modpost_flag='' | |
15830 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15831 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15832 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15833 | (eval $ac_try) 2>&5 | |
15834 | ac_status=$? | |
15835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15836 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15837 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15838 | (eval $ac_try) 2>&5 | |
15839 | ac_status=$? | |
15840 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15841 | test $ac_status = 0; }; }; then : | |
15842 | ||
15843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15844 | $as_echo "yes" >&6; } | |
15845 | ||
15846 | $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h | |
15847 | ||
15848 | ||
15849 | else | |
15850 | $as_echo "$as_me: failed program was:" >&5 | |
15851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15852 | ||
15853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15854 | $as_echo "no" >&6; } | |
15855 | ||
15856 | ||
15857 | ||
15858 | fi | |
15859 | rm -Rf build | |
15860 | ||
15861 | ||
15862 | ||
15863 | ||
15864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5 | |
15865 | $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; } | |
15866 | ||
15867 | ||
15868 | cat confdefs.h - <<_ACEOF >conftest.c | |
15869 | ||
15870 | ||
15871 | #include <linux/blk_types.h> | |
15872 | ||
15873 | int | |
15874 | main (void) | |
15875 | { | |
15876 | ||
441f6008 | 15877 | int op __attribute__ ((unused)) = REQ_OP_DISCARD; |
0bd31011 TG |
15878 | |
15879 | ; | |
15880 | return 0; | |
15881 | } | |
15882 | ||
15883 | _ACEOF | |
15884 | ||
15885 | ||
15886 | ||
15887 | cat - <<_ACEOF >conftest.h | |
15888 | ||
15889 | _ACEOF | |
15890 | ||
15891 | ||
15892 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15893 | echo "obj-m := conftest.o" >build/Makefile | |
15894 | modpost_flag='' | |
15895 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15896 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15897 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15898 | (eval $ac_try) 2>&5 | |
15899 | ac_status=$? | |
15900 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15901 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15902 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15903 | (eval $ac_try) 2>&5 | |
15904 | ac_status=$? | |
15905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15906 | test $ac_status = 0; }; }; then : | |
15907 | ||
15908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15909 | $as_echo "yes" >&6; } | |
15910 | ||
15911 | $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h | |
15912 | ||
15913 | ||
15914 | else | |
15915 | $as_echo "$as_me: failed program was:" >&5 | |
15916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15917 | ||
15918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15919 | $as_echo "no" >&6; } | |
15920 | ||
15921 | ||
15922 | ||
15923 | fi | |
15924 | rm -Rf build | |
15925 | ||
15926 | ||
15927 | ||
15928 | ||
15929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5 | |
15930 | $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; } | |
15931 | ||
15932 | ||
15933 | cat confdefs.h - <<_ACEOF >conftest.c | |
15934 | ||
15935 | ||
15936 | #include <linux/blk_types.h> | |
15937 | ||
15938 | int | |
15939 | main (void) | |
15940 | { | |
15941 | ||
441f6008 | 15942 | int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE; |
0bd31011 TG |
15943 | |
15944 | ; | |
15945 | return 0; | |
15946 | } | |
15947 | ||
15948 | _ACEOF | |
15949 | ||
15950 | ||
15951 | ||
15952 | cat - <<_ACEOF >conftest.h | |
15953 | ||
15954 | _ACEOF | |
15955 | ||
15956 | ||
15957 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15958 | echo "obj-m := conftest.o" >build/Makefile | |
15959 | modpost_flag='' | |
15960 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15961 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15962 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15963 | (eval $ac_try) 2>&5 | |
15964 | ac_status=$? | |
15965 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15966 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15967 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15968 | (eval $ac_try) 2>&5 | |
15969 | ac_status=$? | |
15970 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15971 | test $ac_status = 0; }; }; then : | |
15972 | ||
15973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15974 | $as_echo "yes" >&6; } | |
15975 | ||
441f6008 | 15976 | $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h |
0bd31011 TG |
15977 | |
15978 | ||
15979 | else | |
15980 | $as_echo "$as_me: failed program was:" >&5 | |
15981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15982 | ||
15983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15984 | $as_echo "no" >&6; } | |
15985 | ||
15986 | ||
15987 | ||
15988 | fi | |
15989 | rm -Rf build | |
15990 | ||
15991 | ||
15992 | ||
15993 | ||
15994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5 | |
15995 | $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; } | |
15996 | ||
15997 | ||
15998 | cat confdefs.h - <<_ACEOF >conftest.c | |
15999 | ||
16000 | ||
16001 | #include <linux/blk_types.h> | |
16002 | ||
16003 | int | |
16004 | main (void) | |
16005 | { | |
16006 | ||
441f6008 | 16007 | int op __attribute__ ((unused)) = REQ_OP_FLUSH; |
0bd31011 TG |
16008 | |
16009 | ; | |
16010 | return 0; | |
16011 | } | |
16012 | ||
16013 | _ACEOF | |
16014 | ||
16015 | ||
16016 | ||
16017 | cat - <<_ACEOF >conftest.h | |
16018 | ||
16019 | _ACEOF | |
16020 | ||
16021 | ||
16022 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16023 | echo "obj-m := conftest.o" >build/Makefile | |
16024 | modpost_flag='' | |
16025 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16026 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16027 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16028 | (eval $ac_try) 2>&5 | |
16029 | ac_status=$? | |
16030 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16031 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16032 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16033 | (eval $ac_try) 2>&5 | |
16034 | ac_status=$? | |
16035 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16036 | test $ac_status = 0; }; }; then : | |
16037 | ||
16038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16039 | $as_echo "yes" >&6; } | |
16040 | ||
16041 | $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h | |
16042 | ||
16043 | ||
16044 | else | |
16045 | $as_echo "$as_me: failed program was:" >&5 | |
16046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16047 | ||
16048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16049 | $as_echo "no" >&6; } | |
16050 | ||
16051 | ||
16052 | ||
16053 | fi | |
16054 | rm -Rf build | |
16055 | ||
16056 | ||
16057 | ||
16058 | ||
16059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5 | |
16060 | $as_echo_n "checking whether bio->bi_opf is defined... " >&6; } | |
16061 | ||
16062 | ||
16063 | cat confdefs.h - <<_ACEOF >conftest.c | |
16064 | ||
16065 | ||
16066 | #include <linux/bio.h> | |
16067 | ||
16068 | int | |
16069 | main (void) | |
16070 | { | |
16071 | ||
16072 | struct bio bio __attribute__ ((unused)); | |
16073 | bio.bi_opf = 0; | |
16074 | ||
16075 | ; | |
16076 | return 0; | |
16077 | } | |
16078 | ||
16079 | _ACEOF | |
16080 | ||
16081 | ||
16082 | ||
16083 | cat - <<_ACEOF >conftest.h | |
16084 | ||
16085 | _ACEOF | |
16086 | ||
16087 | ||
16088 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16089 | echo "obj-m := conftest.o" >build/Makefile | |
16090 | modpost_flag='' | |
16091 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16092 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16093 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16094 | (eval $ac_try) 2>&5 | |
16095 | ac_status=$? | |
16096 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16097 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16098 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16099 | (eval $ac_try) 2>&5 | |
16100 | ac_status=$? | |
16101 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16102 | test $ac_status = 0; }; }; then : | |
16103 | ||
16104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16105 | $as_echo "yes" >&6; } | |
16106 | ||
16107 | $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h | |
16108 | ||
16109 | ||
16110 | else | |
16111 | $as_echo "$as_me: failed program was:" >&5 | |
16112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16113 | ||
16114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16115 | $as_echo "no" >&6; } | |
16116 | ||
16117 | ||
16118 | ||
16119 | fi | |
16120 | rm -Rf build | |
16121 | ||
16122 | ||
16123 | ||
16124 | ||
16125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5 | |
16126 | $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; } | |
16127 | ||
16128 | ||
16129 | cat confdefs.h - <<_ACEOF >conftest.c | |
16130 | ||
16131 | ||
16132 | #include <linux/bio.h> | |
16133 | ||
16134 | void wanted_end_io(struct bio *bio) { return; } | |
16135 | ||
16136 | bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io; | |
16137 | ||
16138 | int | |
16139 | main (void) | |
16140 | { | |
16141 | ||
16142 | ||
16143 | ; | |
16144 | return 0; | |
16145 | } | |
16146 | ||
16147 | _ACEOF | |
16148 | ||
16149 | ||
16150 | ||
16151 | cat - <<_ACEOF >conftest.h | |
16152 | ||
16153 | _ACEOF | |
16154 | ||
16155 | ||
16156 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16157 | echo "obj-m := conftest.o" >build/Makefile | |
16158 | modpost_flag='' | |
16159 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16160 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16161 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16162 | (eval $ac_try) 2>&5 | |
16163 | ac_status=$? | |
16164 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16165 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16166 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16167 | (eval $ac_try) 2>&5 | |
16168 | ac_status=$? | |
16169 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16170 | test $ac_status = 0; }; }; then : | |
16171 | ||
16172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16173 | $as_echo "yes" >&6; } | |
16174 | ||
16175 | $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h | |
16176 | ||
16177 | ||
16178 | else | |
16179 | $as_echo "$as_me: failed program was:" >&5 | |
16180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16181 | ||
16182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16183 | $as_echo "no" >&6; } | |
16184 | ||
16185 | ||
16186 | ||
16187 | fi | |
16188 | rm -Rf build | |
16189 | ||
16190 | ||
16191 | ||
16192 | ||
16193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5 | |
16194 | $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; } | |
16195 | ||
16196 | ||
16197 | cat confdefs.h - <<_ACEOF >conftest.c | |
16198 | ||
16199 | ||
16200 | #include <linux/bio.h> | |
16201 | ||
16202 | int | |
16203 | main (void) | |
16204 | { | |
16205 | ||
16206 | int flags __attribute__ ((unused)); | |
16207 | flags = BIO_RW_BARRIER; | |
16208 | ||
16209 | ; | |
16210 | return 0; | |
16211 | } | |
16212 | ||
16213 | _ACEOF | |
16214 | ||
16215 | ||
16216 | ||
16217 | cat - <<_ACEOF >conftest.h | |
16218 | ||
16219 | _ACEOF | |
16220 | ||
16221 | ||
16222 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16223 | echo "obj-m := conftest.o" >build/Makefile | |
16224 | modpost_flag='' | |
16225 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16226 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16227 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16228 | (eval $ac_try) 2>&5 | |
16229 | ac_status=$? | |
16230 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16231 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16232 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16233 | (eval $ac_try) 2>&5 | |
16234 | ac_status=$? | |
16235 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16236 | test $ac_status = 0; }; }; then : | |
16237 | ||
16238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16239 | $as_echo "yes" >&6; } | |
16240 | ||
16241 | $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h | |
16242 | ||
16243 | ||
16244 | else | |
16245 | $as_echo "$as_me: failed program was:" >&5 | |
16246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16247 | ||
16248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16249 | $as_echo "no" >&6; } | |
16250 | ||
16251 | ||
16252 | ||
16253 | fi | |
16254 | rm -Rf build | |
16255 | ||
16256 | ||
16257 | ||
16258 | ||
16259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5 | |
16260 | $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; } | |
16261 | ||
16262 | ||
16263 | cat confdefs.h - <<_ACEOF >conftest.c | |
16264 | ||
16265 | ||
16266 | #include <linux/bio.h> | |
16267 | ||
16268 | int | |
16269 | main (void) | |
16270 | { | |
16271 | ||
16272 | int flags __attribute__ ((unused)); | |
16273 | flags = BIO_RW_DISCARD; | |
16274 | ||
16275 | ; | |
16276 | return 0; | |
16277 | } | |
16278 | ||
16279 | _ACEOF | |
16280 | ||
16281 | ||
16282 | ||
16283 | cat - <<_ACEOF >conftest.h | |
16284 | ||
16285 | _ACEOF | |
16286 | ||
16287 | ||
16288 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16289 | echo "obj-m := conftest.o" >build/Makefile | |
16290 | modpost_flag='' | |
16291 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16292 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16293 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16294 | (eval $ac_try) 2>&5 | |
16295 | ac_status=$? | |
16296 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16297 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16298 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16299 | (eval $ac_try) 2>&5 | |
16300 | ac_status=$? | |
16301 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16302 | test $ac_status = 0; }; }; then : | |
16303 | ||
16304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16305 | $as_echo "yes" >&6; } | |
16306 | ||
16307 | $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h | |
16308 | ||
16309 | ||
16310 | else | |
16311 | $as_echo "$as_me: failed program was:" >&5 | |
16312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16313 | ||
16314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16315 | $as_echo "no" >&6; } | |
16316 | ||
16317 | ||
16318 | ||
16319 | fi | |
16320 | rm -Rf build | |
16321 | ||
16322 | ||
16323 | ||
16324 | ||
16325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5 | |
16326 | $as_echo_n "checking whether blk_queue_flush() is available... " >&6; } | |
16327 | tmp_flags="$EXTRA_KCFLAGS" | |
16328 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16329 | ||
16330 | ||
16331 | cat confdefs.h - <<_ACEOF >conftest.c | |
16332 | ||
16333 | ||
16334 | #include <linux/blkdev.h> | |
16335 | ||
16336 | int | |
16337 | main (void) | |
16338 | { | |
16339 | ||
16340 | struct request_queue *q = NULL; | |
16341 | (void) blk_queue_flush(q, REQ_FLUSH); | |
16342 | ||
16343 | ; | |
16344 | return 0; | |
16345 | } | |
16346 | ||
16347 | _ACEOF | |
16348 | ||
16349 | ||
16350 | ||
16351 | cat - <<_ACEOF >conftest.h | |
16352 | ||
16353 | _ACEOF | |
16354 | ||
16355 | ||
16356 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16357 | echo "obj-m := conftest.o" >build/Makefile | |
16358 | modpost_flag='' | |
16359 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16360 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16361 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16362 | (eval $ac_try) 2>&5 | |
16363 | ac_status=$? | |
16364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16365 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16366 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16367 | (eval $ac_try) 2>&5 | |
16368 | ac_status=$? | |
16369 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16370 | test $ac_status = 0; }; }; then : | |
16371 | ||
16372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16373 | $as_echo "yes" >&6; } | |
16374 | ||
16375 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h | |
16376 | ||
16377 | ||
16378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5 | |
16379 | $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; } | |
16380 | ||
16381 | ||
16382 | cat confdefs.h - <<_ACEOF >conftest.c | |
16383 | ||
16384 | ||
16385 | #include <linux/module.h> | |
16386 | #include <linux/blkdev.h> | |
16387 | ||
16388 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
16389 | ||
16390 | int | |
16391 | main (void) | |
16392 | { | |
16393 | ||
16394 | struct request_queue *q = NULL; | |
16395 | (void) blk_queue_flush(q, REQ_FLUSH); | |
16396 | ||
16397 | ; | |
16398 | return 0; | |
16399 | } | |
16400 | ||
16401 | _ACEOF | |
16402 | ||
16403 | ||
16404 | ||
16405 | cat - <<_ACEOF >conftest.h | |
16406 | ||
16407 | _ACEOF | |
16408 | ||
16409 | ||
16410 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16411 | echo "obj-m := conftest.o" >build/Makefile | |
16412 | modpost_flag='' | |
16413 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16414 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16415 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16416 | (eval $ac_try) 2>&5 | |
16417 | ac_status=$? | |
16418 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16419 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16420 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16421 | (eval $ac_try) 2>&5 | |
16422 | ac_status=$? | |
16423 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16424 | test $ac_status = 0; }; }; then : | |
16425 | ||
16426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16427 | $as_echo "no" >&6; } | |
16428 | ||
16429 | else | |
16430 | $as_echo "$as_me: failed program was:" >&5 | |
16431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16432 | ||
16433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16434 | $as_echo "yes" >&6; } | |
16435 | ||
16436 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h | |
16437 | ||
16438 | ||
16439 | ||
16440 | ||
16441 | fi | |
16442 | rm -Rf build | |
16443 | ||
16444 | ||
16445 | ||
16446 | else | |
16447 | $as_echo "$as_me: failed program was:" >&5 | |
16448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16449 | ||
16450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16451 | $as_echo "no" >&6; } | |
16452 | ||
16453 | ||
16454 | ||
16455 | fi | |
16456 | rm -Rf build | |
16457 | ||
16458 | ||
16459 | ||
16460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5 | |
16461 | $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; } | |
16462 | ||
16463 | ||
16464 | cat confdefs.h - <<_ACEOF >conftest.c | |
16465 | ||
16466 | ||
16467 | #include <linux/kernel.h> | |
16468 | #include <linux/blkdev.h> | |
16469 | ||
16470 | ||
16471 | int | |
16472 | main (void) | |
16473 | { | |
16474 | ||
16475 | struct request_queue *q = NULL; | |
16476 | blk_queue_write_cache(q, true, true); | |
16477 | ||
16478 | ; | |
16479 | return 0; | |
16480 | } | |
16481 | ||
16482 | _ACEOF | |
16483 | ||
16484 | ||
16485 | ||
16486 | cat - <<_ACEOF >conftest.h | |
16487 | ||
16488 | _ACEOF | |
16489 | ||
16490 | ||
16491 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16492 | echo "obj-m := conftest.o" >build/Makefile | |
16493 | modpost_flag='' | |
16494 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16495 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16496 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16497 | (eval $ac_try) 2>&5 | |
16498 | ac_status=$? | |
16499 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16500 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16501 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16502 | (eval $ac_try) 2>&5 | |
16503 | ac_status=$? | |
16504 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16505 | test $ac_status = 0; }; }; then : | |
16506 | ||
16507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16508 | $as_echo "yes" >&6; } | |
16509 | ||
16510 | $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h | |
16511 | ||
16512 | ||
16513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5 | |
16514 | $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; } | |
16515 | ||
16516 | ||
16517 | cat confdefs.h - <<_ACEOF >conftest.c | |
16518 | ||
16519 | ||
16520 | #include <linux/kernel.h> | |
16521 | #include <linux/module.h> | |
16522 | #include <linux/blkdev.h> | |
16523 | ||
16524 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
16525 | ||
16526 | int | |
16527 | main (void) | |
16528 | { | |
16529 | ||
16530 | struct request_queue *q = NULL; | |
16531 | blk_queue_write_cache(q, true, true); | |
16532 | ||
16533 | ; | |
16534 | return 0; | |
16535 | } | |
16536 | ||
16537 | _ACEOF | |
16538 | ||
16539 | ||
16540 | ||
16541 | cat - <<_ACEOF >conftest.h | |
16542 | ||
16543 | _ACEOF | |
16544 | ||
16545 | ||
16546 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16547 | echo "obj-m := conftest.o" >build/Makefile | |
16548 | modpost_flag='' | |
16549 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16550 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16551 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16552 | (eval $ac_try) 2>&5 | |
16553 | ac_status=$? | |
16554 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16555 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16556 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16557 | (eval $ac_try) 2>&5 | |
16558 | ac_status=$? | |
16559 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16560 | test $ac_status = 0; }; }; then : | |
16561 | ||
16562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16563 | $as_echo "no" >&6; } | |
16564 | ||
16565 | else | |
16566 | $as_echo "$as_me: failed program was:" >&5 | |
16567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16568 | ||
16569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16570 | $as_echo "yes" >&6; } | |
16571 | ||
16572 | $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h | |
16573 | ||
16574 | ||
16575 | ||
16576 | ||
16577 | fi | |
16578 | rm -Rf build | |
16579 | ||
16580 | ||
16581 | ||
16582 | else | |
16583 | $as_echo "$as_me: failed program was:" >&5 | |
16584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16585 | ||
16586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16587 | $as_echo "no" >&6; } | |
16588 | ||
16589 | ||
16590 | ||
16591 | fi | |
16592 | rm -Rf build | |
16593 | ||
16594 | ||
16595 | ||
16596 | EXTRA_KCFLAGS="$tmp_flags" | |
16597 | ||
16598 | ||
16599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5 | |
16600 | $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; } | |
16601 | tmp_flags="$EXTRA_KCFLAGS" | |
16602 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16603 | ||
16604 | ||
16605 | cat confdefs.h - <<_ACEOF >conftest.c | |
16606 | ||
16607 | ||
16608 | #include <linux/blkdev.h> | |
16609 | ||
16610 | int | |
16611 | main (void) | |
16612 | { | |
16613 | ||
16614 | struct request_queue *q = NULL; | |
16615 | (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS); | |
16616 | ||
16617 | ; | |
16618 | return 0; | |
16619 | } | |
16620 | ||
16621 | _ACEOF | |
16622 | ||
16623 | ||
16624 | ||
16625 | cat - <<_ACEOF >conftest.h | |
16626 | ||
16627 | _ACEOF | |
16628 | ||
16629 | ||
16630 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16631 | echo "obj-m := conftest.o" >build/Makefile | |
16632 | modpost_flag='' | |
16633 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16634 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16635 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16636 | (eval $ac_try) 2>&5 | |
16637 | ac_status=$? | |
16638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16639 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16640 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16641 | (eval $ac_try) 2>&5 | |
16642 | ac_status=$? | |
16643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16644 | test $ac_status = 0; }; }; then : | |
16645 | ||
16646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16647 | $as_echo "yes" >&6; } | |
16648 | ||
16649 | $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h | |
16650 | ||
16651 | ||
16652 | else | |
16653 | $as_echo "$as_me: failed program was:" >&5 | |
16654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16655 | ||
16656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16657 | $as_echo "no" >&6; } | |
16658 | ||
16659 | ||
16660 | ||
16661 | fi | |
16662 | rm -Rf build | |
16663 | ||
16664 | ||
16665 | EXTRA_KCFLAGS="$tmp_flags" | |
16666 | ||
16667 | ||
16668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5 | |
16669 | $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; } | |
16670 | tmp_flags="$EXTRA_KCFLAGS" | |
16671 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16672 | ||
16673 | ||
16674 | cat confdefs.h - <<_ACEOF >conftest.c | |
16675 | ||
16676 | ||
16677 | #include <linux/blkdev.h> | |
16678 | ||
16679 | int | |
16680 | main (void) | |
16681 | { | |
16682 | ||
16683 | struct request_queue *q = NULL; | |
16684 | (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS); | |
16685 | ||
16686 | ; | |
16687 | return 0; | |
16688 | } | |
16689 | ||
16690 | _ACEOF | |
16691 | ||
16692 | ||
16693 | ||
16694 | cat - <<_ACEOF >conftest.h | |
16695 | ||
16696 | _ACEOF | |
16697 | ||
16698 | ||
16699 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16700 | echo "obj-m := conftest.o" >build/Makefile | |
16701 | modpost_flag='' | |
16702 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16703 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16704 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16705 | (eval $ac_try) 2>&5 | |
16706 | ac_status=$? | |
16707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16708 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16709 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16710 | (eval $ac_try) 2>&5 | |
16711 | ac_status=$? | |
16712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16713 | test $ac_status = 0; }; }; then : | |
16714 | ||
16715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16716 | $as_echo "yes" >&6; } | |
16717 | ||
16718 | $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h | |
16719 | ||
16720 | ||
16721 | else | |
16722 | $as_echo "$as_me: failed program was:" >&5 | |
16723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16724 | ||
16725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16726 | $as_echo "no" >&6; } | |
16727 | ||
16728 | ||
16729 | ||
d177712e CIK |
16730 | fi |
16731 | rm -Rf build | |
16732 | ||
16733 | ||
16734 | EXTRA_KCFLAGS="$tmp_flags" | |
16735 | ||
16736 | ||
16737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5 | |
16738 | $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; } | |
16739 | tmp_flags="$EXTRA_KCFLAGS" | |
16740 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16741 | ||
16742 | ||
16743 | cat confdefs.h - <<_ACEOF >conftest.c | |
16744 | ||
16745 | ||
16746 | #include <linux/blkdev.h> | |
16747 | ||
16748 | int | |
16749 | main (void) | |
16750 | { | |
16751 | ||
16752 | extern enum bio_rw_flags rw; | |
16753 | ||
16754 | rw = BIO_RW_UNPLUG; | |
16755 | ||
16756 | ; | |
16757 | return 0; | |
16758 | } | |
16759 | ||
16760 | _ACEOF | |
16761 | ||
16762 | ||
16763 | ||
16764 | cat - <<_ACEOF >conftest.h | |
16765 | ||
16766 | _ACEOF | |
16767 | ||
16768 | ||
16769 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16770 | echo "obj-m := conftest.o" >build/Makefile | |
16771 | modpost_flag='' | |
16772 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16773 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16774 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16775 | (eval $ac_try) 2>&5 | |
16776 | ac_status=$? | |
16777 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16778 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16779 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16780 | (eval $ac_try) 2>&5 | |
16781 | ac_status=$? | |
16782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16783 | test $ac_status = 0; }; }; then : | |
16784 | ||
16785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16786 | $as_echo "yes" >&6; } | |
16787 | ||
16788 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h | |
16789 | ||
16790 | ||
16791 | else | |
16792 | $as_echo "$as_me: failed program was:" >&5 | |
16793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16794 | ||
16795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16796 | $as_echo "no" >&6; } | |
16797 | ||
16798 | ||
16799 | ||
16800 | fi | |
16801 | rm -Rf build | |
16802 | ||
16803 | ||
16804 | EXTRA_KCFLAGS="$tmp_flags" | |
16805 | ||
16806 | ||
16807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5 | |
16808 | $as_echo_n "checking whether struct blk_plug is available... " >&6; } | |
16809 | tmp_flags="$EXTRA_KCFLAGS" | |
16810 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16811 | ||
16812 | ||
16813 | cat confdefs.h - <<_ACEOF >conftest.c | |
16814 | ||
16815 | ||
16816 | #include <linux/blkdev.h> | |
16817 | ||
16818 | int | |
16819 | main (void) | |
16820 | { | |
16821 | ||
16822 | struct blk_plug plug; | |
16823 | ||
16824 | blk_start_plug(&plug); | |
16825 | blk_finish_plug(&plug); | |
16826 | ||
16827 | ; | |
16828 | return 0; | |
16829 | } | |
16830 | ||
16831 | _ACEOF | |
16832 | ||
16833 | ||
16834 | ||
16835 | cat - <<_ACEOF >conftest.h | |
16836 | ||
16837 | _ACEOF | |
16838 | ||
16839 | ||
16840 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16841 | echo "obj-m := conftest.o" >build/Makefile | |
16842 | modpost_flag='' | |
16843 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16844 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16845 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16846 | (eval $ac_try) 2>&5 | |
16847 | ac_status=$? | |
16848 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16849 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16850 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16851 | (eval $ac_try) 2>&5 | |
16852 | ac_status=$? | |
16853 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16854 | test $ac_status = 0; }; }; then : | |
16855 | ||
16856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16857 | $as_echo "yes" >&6; } | |
16858 | ||
16859 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h | |
16860 | ||
16861 | ||
16862 | else | |
16863 | $as_echo "$as_me: failed program was:" >&5 | |
16864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16865 | ||
16866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16867 | $as_echo "no" >&6; } | |
16868 | ||
16869 | ||
16870 | ||
0bd31011 TG |
16871 | fi |
16872 | rm -Rf build | |
16873 | ||
16874 | ||
16875 | EXTRA_KCFLAGS="$tmp_flags" | |
16876 | ||
16877 | ||
16878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5 | |
16879 | $as_echo_n "checking whether get_disk_ro() is available... " >&6; } | |
16880 | tmp_flags="$EXTRA_KCFLAGS" | |
16881 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
16882 | ||
16883 | ||
16884 | cat confdefs.h - <<_ACEOF >conftest.c | |
16885 | ||
16886 | ||
16887 | #include <linux/blkdev.h> | |
16888 | ||
16889 | int | |
16890 | main (void) | |
16891 | { | |
16892 | ||
16893 | struct gendisk *disk = NULL; | |
16894 | (void) get_disk_ro(disk); | |
16895 | ||
16896 | ; | |
16897 | return 0; | |
16898 | } | |
16899 | ||
16900 | _ACEOF | |
16901 | ||
16902 | ||
16903 | ||
16904 | cat - <<_ACEOF >conftest.h | |
16905 | ||
16906 | _ACEOF | |
16907 | ||
16908 | ||
16909 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16910 | echo "obj-m := conftest.o" >build/Makefile | |
16911 | modpost_flag='' | |
16912 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16913 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16914 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16915 | (eval $ac_try) 2>&5 | |
16916 | ac_status=$? | |
16917 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16918 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16919 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16920 | (eval $ac_try) 2>&5 | |
16921 | ac_status=$? | |
16922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16923 | test $ac_status = 0; }; }; then : | |
16924 | ||
16925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16926 | $as_echo "yes" >&6; } | |
16927 | ||
16928 | $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h | |
16929 | ||
16930 | ||
16931 | else | |
16932 | $as_echo "$as_me: failed program was:" >&5 | |
16933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16934 | ||
16935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16936 | $as_echo "no" >&6; } | |
16937 | ||
16938 | ||
16939 | ||
16940 | fi | |
16941 | rm -Rf build | |
16942 | ||
16943 | ||
16944 | EXTRA_KCFLAGS="$tmp_flags" | |
16945 | ||
16946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5 | |
16947 | $as_echo_n "checking whether get_gendisk() is available... " >&6; } | |
16948 | ||
16949 | ||
16950 | ||
16951 | cat confdefs.h - <<_ACEOF >conftest.c | |
16952 | ||
16953 | ||
16954 | #include <linux/genhd.h> | |
16955 | ||
16956 | int | |
16957 | main (void) | |
16958 | { | |
16959 | ||
16960 | get_gendisk(0, NULL); | |
16961 | ||
16962 | ; | |
16963 | return 0; | |
16964 | } | |
16965 | ||
16966 | _ACEOF | |
16967 | ||
16968 | ||
16969 | ||
16970 | cat - <<_ACEOF >conftest.h | |
16971 | ||
16972 | _ACEOF | |
16973 | ||
16974 | ||
16975 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16976 | echo "obj-m := conftest.o" >build/Makefile | |
16977 | modpost_flag='' | |
16978 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16979 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16985 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16986 | (eval $ac_try) 2>&5 | |
16987 | ac_status=$? | |
16988 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16989 | test $ac_status = 0; }; }; then : | |
16990 | rc=0 | |
16991 | else | |
16992 | $as_echo "$as_me: failed program was:" >&5 | |
16993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16994 | rc=1 | |
16995 | ||
16996 | ||
16997 | fi | |
16998 | rm -Rf build | |
16999 | ||
17000 | ||
17001 | if test $rc -ne 0; then : | |
17002 | ||
17003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17004 | $as_echo "no" >&6; } | |
17005 | ||
17006 | else | |
17007 | if test "x$enable_linux_builtin" != xyes; then | |
17008 | ||
17009 | grep -q -E '[[:space:]]get_gendisk[[:space:]]' \ | |
17010 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
17011 | rc=$? | |
17012 | if test $rc -ne 0; then | |
17013 | export=0 | |
17014 | for file in block/genhd.c; do | |
17015 | grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \ | |
17016 | "$LINUX/$file" 2>/dev/null | |
17017 | rc=$? | |
17018 | if test $rc -eq 0; then | |
17019 | export=1 | |
17020 | break; | |
17021 | fi | |
17022 | done | |
17023 | if test $export -eq 0; then : | |
17024 | rc=1 | |
17025 | else : | |
17026 | rc=0 | |
17027 | fi | |
17028 | else : | |
17029 | rc=0 | |
17030 | fi | |
17031 | ||
17032 | fi | |
17033 | if test $rc -ne 0; then : | |
17034 | ||
17035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17036 | $as_echo "no" >&6; } | |
17037 | ||
17038 | else : | |
17039 | ||
17040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17041 | $as_echo "yes" >&6; } | |
17042 | ||
17043 | $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h | |
17044 | ||
17045 | ||
17046 | fi | |
17047 | fi | |
17048 | ||
17049 | ||
17050 | ||
441f6008 SF |
17051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5 |
17052 | $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; } | |
17053 | ||
17054 | ||
17055 | cat confdefs.h - <<_ACEOF >conftest.c | |
17056 | ||
17057 | ||
17058 | #include <linux/blk_types.h> | |
17059 | ||
17060 | int | |
17061 | main (void) | |
17062 | { | |
17063 | ||
17064 | struct bio *bio __attribute__ ((unused)) = NULL; | |
17065 | ||
17066 | bio_set_op_attrs(bio, 0, 0); | |
17067 | ||
17068 | ; | |
17069 | return 0; | |
17070 | } | |
17071 | ||
17072 | _ACEOF | |
17073 | ||
17074 | ||
17075 | ||
17076 | cat - <<_ACEOF >conftest.h | |
17077 | ||
17078 | _ACEOF | |
17079 | ||
17080 | ||
17081 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17082 | echo "obj-m := conftest.o" >build/Makefile | |
17083 | modpost_flag='' | |
17084 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17085 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17086 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17087 | (eval $ac_try) 2>&5 | |
17088 | ac_status=$? | |
17089 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17090 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17091 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17092 | (eval $ac_try) 2>&5 | |
17093 | ac_status=$? | |
17094 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17095 | test $ac_status = 0; }; }; then : | |
17096 | ||
17097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17098 | $as_echo "yes" >&6; } | |
17099 | ||
17100 | $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h | |
17101 | ||
17102 | ||
17103 | else | |
17104 | $as_echo "$as_me: failed program was:" >&5 | |
17105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17106 | ||
17107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17108 | $as_echo "no" >&6; } | |
17109 | ||
17110 | ||
17111 | ||
17112 | fi | |
17113 | rm -Rf build | |
17114 | ||
17115 | ||
17116 | ||
17117 | ||
17118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5 | |
17119 | $as_echo_n "checking whether generic_readlink is global... " >&6; } | |
17120 | ||
17121 | ||
17122 | cat confdefs.h - <<_ACEOF >conftest.c | |
17123 | ||
17124 | ||
17125 | #include <linux/fs.h> | |
17126 | ||
17127 | int | |
17128 | main (void) | |
17129 | { | |
17130 | ||
17131 | int i __attribute__ ((unused)); | |
17132 | ||
17133 | i = generic_readlink(NULL, NULL, 0); | |
17134 | ||
17135 | ; | |
17136 | return 0; | |
17137 | } | |
17138 | ||
17139 | _ACEOF | |
17140 | ||
17141 | ||
17142 | ||
17143 | cat - <<_ACEOF >conftest.h | |
17144 | ||
17145 | _ACEOF | |
17146 | ||
17147 | ||
17148 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17149 | echo "obj-m := conftest.o" >build/Makefile | |
17150 | modpost_flag='' | |
17151 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17152 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17153 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17154 | (eval $ac_try) 2>&5 | |
17155 | ac_status=$? | |
17156 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17157 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17158 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17159 | (eval $ac_try) 2>&5 | |
17160 | ac_status=$? | |
17161 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17162 | test $ac_status = 0; }; }; then : | |
17163 | ||
17164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17165 | $as_echo "yes" >&6; } | |
17166 | ||
17167 | $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h | |
17168 | ||
17169 | ||
17170 | else | |
17171 | $as_echo "$as_me: failed program was:" >&5 | |
17172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17173 | ||
17174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17175 | $as_echo "no" >&6; } | |
17176 | ||
17177 | ||
17178 | ||
17179 | fi | |
17180 | rm -Rf build | |
17181 | ||
17182 | ||
17183 | ||
17184 | ||
0bd31011 TG |
17185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5 |
17186 | $as_echo_n "checking whether ql->discard_granularity is available... " >&6; } | |
17187 | ||
17188 | ||
17189 | cat confdefs.h - <<_ACEOF >conftest.c | |
17190 | ||
17191 | ||
17192 | #include <linux/blkdev.h> | |
17193 | ||
17194 | int | |
17195 | main (void) | |
17196 | { | |
17197 | ||
17198 | struct queue_limits ql __attribute__ ((unused)); | |
17199 | ||
17200 | ql.discard_granularity = 0; | |
17201 | ||
17202 | ; | |
17203 | return 0; | |
17204 | } | |
17205 | ||
17206 | _ACEOF | |
17207 | ||
17208 | ||
17209 | ||
17210 | cat - <<_ACEOF >conftest.h | |
17211 | ||
17212 | _ACEOF | |
17213 | ||
17214 | ||
17215 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17216 | echo "obj-m := conftest.o" >build/Makefile | |
17217 | modpost_flag='' | |
17218 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17219 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17220 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17221 | (eval $ac_try) 2>&5 | |
17222 | ac_status=$? | |
17223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17224 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17225 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17226 | (eval $ac_try) 2>&5 | |
17227 | ac_status=$? | |
17228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17229 | test $ac_status = 0; }; }; then : | |
17230 | ||
17231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17232 | $as_echo "yes" >&6; } | |
17233 | ||
17234 | $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h | |
17235 | ||
17236 | ||
17237 | else | |
17238 | $as_echo "$as_me: failed program was:" >&5 | |
17239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17240 | ||
17241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17242 | $as_echo "no" >&6; } | |
17243 | ||
17244 | ||
17245 | ||
17246 | fi | |
17247 | rm -Rf build | |
17248 | ||
17249 | ||
17250 | ||
17251 | ||
17252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5 | |
17253 | $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; } | |
17254 | ||
17255 | ||
17256 | cat confdefs.h - <<_ACEOF >conftest.c | |
17257 | ||
17258 | ||
17259 | #include <linux/fs.h> | |
17260 | #include <linux/xattr.h> | |
17261 | ||
17262 | const struct xattr_handler xattr_test_handler = { | |
17263 | .prefix = "test", | |
17264 | .get = NULL, | |
17265 | .set = NULL, | |
17266 | }; | |
17267 | ||
17268 | const struct xattr_handler *xattr_handlers[] = { | |
17269 | &xattr_test_handler, | |
17270 | }; | |
17271 | ||
17272 | const struct super_block sb __attribute__ ((unused)) = { | |
17273 | .s_xattr = xattr_handlers, | |
17274 | }; | |
17275 | ||
17276 | int | |
17277 | main (void) | |
17278 | { | |
17279 | ||
17280 | ||
17281 | ; | |
17282 | return 0; | |
17283 | } | |
17284 | ||
17285 | _ACEOF | |
17286 | ||
17287 | ||
17288 | ||
17289 | cat - <<_ACEOF >conftest.h | |
17290 | ||
17291 | _ACEOF | |
17292 | ||
17293 | ||
17294 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17295 | echo "obj-m := conftest.o" >build/Makefile | |
17296 | modpost_flag='' | |
17297 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17298 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17299 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17300 | (eval $ac_try) 2>&5 | |
17301 | ac_status=$? | |
17302 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17303 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17304 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17305 | (eval $ac_try) 2>&5 | |
17306 | ac_status=$? | |
17307 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17308 | test $ac_status = 0; }; }; then : | |
17309 | ||
17310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17311 | $as_echo "yes" >&6; } | |
17312 | ||
17313 | $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h | |
17314 | ||
17315 | ||
17316 | else | |
17317 | $as_echo "$as_me: failed program was:" >&5 | |
17318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17319 | ||
17320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17321 | $as_echo "no" >&6; } | |
17322 | ||
17323 | ||
17324 | ||
17325 | fi | |
17326 | rm -Rf build | |
17327 | ||
17328 | ||
17329 | ||
17330 | ||
17331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5 | |
17332 | $as_echo_n "checking whether xattr_handler has name... " >&6; } | |
17333 | ||
17334 | ||
17335 | cat confdefs.h - <<_ACEOF >conftest.c | |
17336 | ||
17337 | ||
17338 | #include <linux/xattr.h> | |
17339 | ||
17340 | static const struct xattr_handler | |
17341 | xops __attribute__ ((unused)) = { | |
17342 | .name = XATTR_NAME_POSIX_ACL_ACCESS, | |
17343 | }; | |
17344 | ||
17345 | int | |
17346 | main (void) | |
17347 | { | |
17348 | ||
17349 | ||
17350 | ; | |
17351 | return 0; | |
17352 | } | |
17353 | ||
17354 | _ACEOF | |
17355 | ||
17356 | ||
17357 | ||
17358 | cat - <<_ACEOF >conftest.h | |
17359 | ||
17360 | _ACEOF | |
17361 | ||
17362 | ||
17363 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17364 | echo "obj-m := conftest.o" >build/Makefile | |
17365 | modpost_flag='' | |
17366 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17367 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17368 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17369 | (eval $ac_try) 2>&5 | |
17370 | ac_status=$? | |
17371 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17372 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17373 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17374 | (eval $ac_try) 2>&5 | |
17375 | ac_status=$? | |
17376 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17377 | test $ac_status = 0; }; }; then : | |
17378 | ||
17379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17380 | $as_echo "yes" >&6; } | |
17381 | ||
17382 | $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h | |
17383 | ||
17384 | ||
17385 | else | |
17386 | $as_echo "$as_me: failed program was:" >&5 | |
17387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17388 | ||
17389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17390 | $as_echo "no" >&6; } | |
17391 | ||
17392 | ||
17393 | ||
17394 | fi | |
17395 | rm -Rf build | |
17396 | ||
17397 | ||
17398 | ||
17399 | ||
17400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5 | |
17401 | $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; } | |
17402 | ||
17403 | ||
17404 | cat confdefs.h - <<_ACEOF >conftest.c | |
17405 | ||
17406 | ||
17407 | #include <linux/xattr.h> | |
17408 | ||
17409 | int get(const struct xattr_handler *handler, | |
17410 | struct dentry *dentry, struct inode *inode, | |
17411 | const char *name, void *buffer, size_t size) { return 0; } | |
17412 | static const struct xattr_handler | |
17413 | xops __attribute__ ((unused)) = { | |
17414 | .get = get, | |
17415 | }; | |
17416 | ||
17417 | int | |
17418 | main (void) | |
17419 | { | |
17420 | ||
17421 | ||
17422 | ; | |
17423 | return 0; | |
17424 | } | |
17425 | ||
17426 | _ACEOF | |
17427 | ||
17428 | ||
17429 | ||
17430 | cat - <<_ACEOF >conftest.h | |
17431 | ||
17432 | _ACEOF | |
17433 | ||
17434 | ||
17435 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17436 | echo "obj-m := conftest.o" >build/Makefile | |
17437 | modpost_flag='' | |
17438 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17439 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17440 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17441 | (eval $ac_try) 2>&5 | |
17442 | ac_status=$? | |
17443 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17444 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17445 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17446 | (eval $ac_try) 2>&5 | |
17447 | ac_status=$? | |
17448 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17449 | test $ac_status = 0; }; }; then : | |
17450 | ||
17451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17452 | $as_echo "yes" >&6; } | |
17453 | ||
17454 | $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h | |
17455 | ||
17456 | ||
17457 | else | |
17458 | $as_echo "$as_me: failed program was:" >&5 | |
17459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17460 | ||
17461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5 | |
17462 | $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; } | |
17463 | ||
17464 | ||
17465 | cat confdefs.h - <<_ACEOF >conftest.c | |
17466 | ||
17467 | ||
17468 | #include <linux/xattr.h> | |
17469 | ||
17470 | int get(const struct xattr_handler *handler, | |
17471 | struct dentry *dentry, const char *name, | |
17472 | void *buffer, size_t size) { return 0; } | |
17473 | static const struct xattr_handler | |
17474 | xops __attribute__ ((unused)) = { | |
17475 | .get = get, | |
17476 | }; | |
17477 | ||
17478 | int | |
17479 | main (void) | |
17480 | { | |
17481 | ||
17482 | ||
17483 | ; | |
17484 | return 0; | |
17485 | } | |
17486 | ||
17487 | _ACEOF | |
17488 | ||
17489 | ||
17490 | ||
17491 | cat - <<_ACEOF >conftest.h | |
17492 | ||
17493 | _ACEOF | |
17494 | ||
17495 | ||
17496 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17497 | echo "obj-m := conftest.o" >build/Makefile | |
17498 | modpost_flag='' | |
17499 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17500 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17501 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17502 | (eval $ac_try) 2>&5 | |
17503 | ac_status=$? | |
17504 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17505 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17506 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17507 | (eval $ac_try) 2>&5 | |
17508 | ac_status=$? | |
17509 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17510 | test $ac_status = 0; }; }; then : | |
17511 | ||
17512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17513 | $as_echo "yes" >&6; } | |
17514 | ||
17515 | $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h | |
17516 | ||
17517 | ||
17518 | else | |
17519 | $as_echo "$as_me: failed program was:" >&5 | |
17520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17521 | ||
17522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17523 | $as_echo "no" >&6; } | |
17524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5 | |
17525 | $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; } | |
17526 | ||
17527 | ||
17528 | cat confdefs.h - <<_ACEOF >conftest.c | |
17529 | ||
17530 | ||
17531 | #include <linux/xattr.h> | |
17532 | ||
17533 | int get(struct dentry *dentry, const char *name, | |
17534 | void *buffer, size_t size, int handler_flags) | |
17535 | { return 0; } | |
17536 | static const struct xattr_handler | |
17537 | xops __attribute__ ((unused)) = { | |
17538 | .get = get, | |
17539 | }; | |
17540 | ||
17541 | int | |
17542 | main (void) | |
17543 | { | |
17544 | ||
17545 | ||
17546 | ; | |
17547 | return 0; | |
17548 | } | |
17549 | ||
17550 | _ACEOF | |
17551 | ||
17552 | ||
17553 | ||
17554 | cat - <<_ACEOF >conftest.h | |
17555 | ||
17556 | _ACEOF | |
17557 | ||
17558 | ||
17559 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17560 | echo "obj-m := conftest.o" >build/Makefile | |
17561 | modpost_flag='' | |
17562 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17563 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17564 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17565 | (eval $ac_try) 2>&5 | |
17566 | ac_status=$? | |
17567 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17568 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
17574 | ||
17575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17576 | $as_echo "yes" >&6; } | |
17577 | ||
17578 | $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h | |
17579 | ||
17580 | ||
17581 | else | |
17582 | $as_echo "$as_me: failed program was:" >&5 | |
17583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17584 | ||
17585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17586 | $as_echo "no" >&6; } | |
17587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5 | |
17588 | $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; } | |
17589 | ||
17590 | ||
17591 | cat confdefs.h - <<_ACEOF >conftest.c | |
17592 | ||
17593 | ||
17594 | #include <linux/xattr.h> | |
17595 | ||
17596 | int get(struct inode *ip, const char *name, | |
17597 | void *buffer, size_t size) { return 0; } | |
17598 | static const struct xattr_handler | |
17599 | xops __attribute__ ((unused)) = { | |
17600 | .get = get, | |
17601 | }; | |
17602 | ||
17603 | int | |
17604 | main (void) | |
17605 | { | |
17606 | ||
17607 | ||
17608 | ; | |
17609 | return 0; | |
17610 | } | |
17611 | ||
17612 | _ACEOF | |
17613 | ||
17614 | ||
17615 | ||
17616 | cat - <<_ACEOF >conftest.h | |
17617 | ||
17618 | _ACEOF | |
17619 | ||
17620 | ||
17621 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17622 | echo "obj-m := conftest.o" >build/Makefile | |
17623 | modpost_flag='' | |
17624 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17625 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17626 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17627 | (eval $ac_try) 2>&5 | |
17628 | ac_status=$? | |
17629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17630 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17631 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17632 | (eval $ac_try) 2>&5 | |
17633 | ac_status=$? | |
17634 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17635 | test $ac_status = 0; }; }; then : | |
17636 | ||
17637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17638 | $as_echo "yes" >&6; } | |
17639 | ||
17640 | $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h | |
17641 | ||
17642 | ||
17643 | else | |
17644 | $as_echo "$as_me: failed program was:" >&5 | |
17645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17646 | ||
17647 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
17648 | ||
17649 | ||
17650 | ||
17651 | fi | |
17652 | rm -Rf build | |
17653 | ||
17654 | ||
17655 | ||
17656 | ||
17657 | ||
17658 | fi | |
17659 | rm -Rf build | |
17660 | ||
17661 | ||
17662 | ||
17663 | ||
17664 | ||
17665 | fi | |
17666 | rm -Rf build | |
17667 | ||
17668 | ||
17669 | ||
17670 | ||
17671 | ||
17672 | fi | |
17673 | rm -Rf build | |
17674 | ||
17675 | ||
17676 | ||
17677 | ||
17678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5 | |
17679 | $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; } | |
17680 | ||
17681 | ||
17682 | cat confdefs.h - <<_ACEOF >conftest.c | |
17683 | ||
17684 | ||
17685 | #include <linux/xattr.h> | |
17686 | ||
17687 | int set(const struct xattr_handler *handler, | |
17688 | struct dentry *dentry, struct inode *inode, | |
17689 | const char *name, const void *buffer, | |
17690 | size_t size, int flags) | |
17691 | { return 0; } | |
17692 | static const struct xattr_handler | |
17693 | xops __attribute__ ((unused)) = { | |
17694 | .set = set, | |
17695 | }; | |
17696 | ||
17697 | int | |
17698 | main (void) | |
17699 | { | |
17700 | ||
17701 | ||
17702 | ; | |
17703 | return 0; | |
17704 | } | |
17705 | ||
17706 | _ACEOF | |
17707 | ||
17708 | ||
17709 | ||
17710 | cat - <<_ACEOF >conftest.h | |
17711 | ||
17712 | _ACEOF | |
17713 | ||
17714 | ||
17715 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17716 | echo "obj-m := conftest.o" >build/Makefile | |
17717 | modpost_flag='' | |
17718 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17719 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17720 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17721 | (eval $ac_try) 2>&5 | |
17722 | ac_status=$? | |
17723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17724 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17725 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17726 | (eval $ac_try) 2>&5 | |
17727 | ac_status=$? | |
17728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17729 | test $ac_status = 0; }; }; then : | |
17730 | ||
17731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17732 | $as_echo "yes" >&6; } | |
17733 | ||
17734 | $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h | |
17735 | ||
17736 | ||
17737 | else | |
17738 | $as_echo "$as_me: failed program was:" >&5 | |
17739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17740 | ||
17741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5 | |
17742 | $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; } | |
17743 | ||
17744 | ||
17745 | cat confdefs.h - <<_ACEOF >conftest.c | |
17746 | ||
17747 | ||
17748 | #include <linux/xattr.h> | |
17749 | ||
17750 | int set(const struct xattr_handler *handler, | |
17751 | struct dentry *dentry, const char *name, | |
17752 | const void *buffer, size_t size, int flags) | |
17753 | { return 0; } | |
17754 | static const struct xattr_handler | |
17755 | xops __attribute__ ((unused)) = { | |
17756 | .set = set, | |
17757 | }; | |
17758 | ||
17759 | int | |
17760 | main (void) | |
17761 | { | |
17762 | ||
17763 | ||
17764 | ; | |
17765 | return 0; | |
17766 | } | |
17767 | ||
17768 | _ACEOF | |
17769 | ||
17770 | ||
17771 | ||
17772 | cat - <<_ACEOF >conftest.h | |
17773 | ||
17774 | _ACEOF | |
17775 | ||
17776 | ||
17777 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17778 | echo "obj-m := conftest.o" >build/Makefile | |
17779 | modpost_flag='' | |
17780 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17781 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17782 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17783 | (eval $ac_try) 2>&5 | |
17784 | ac_status=$? | |
17785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17786 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17787 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17788 | (eval $ac_try) 2>&5 | |
17789 | ac_status=$? | |
17790 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17791 | test $ac_status = 0; }; }; then : | |
17792 | ||
17793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17794 | $as_echo "yes" >&6; } | |
17795 | ||
17796 | $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h | |
17797 | ||
17798 | ||
17799 | else | |
17800 | $as_echo "$as_me: failed program was:" >&5 | |
17801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17802 | ||
17803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17804 | $as_echo "no" >&6; } | |
17805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5 | |
17806 | $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; } | |
17807 | ||
17808 | ||
17809 | cat confdefs.h - <<_ACEOF >conftest.c | |
17810 | ||
17811 | ||
17812 | #include <linux/xattr.h> | |
17813 | ||
17814 | int set(struct dentry *dentry, const char *name, | |
17815 | const void *buffer, size_t size, int flags, | |
17816 | int handler_flags) { return 0; } | |
17817 | static const struct xattr_handler | |
17818 | xops __attribute__ ((unused)) = { | |
17819 | .set = set, | |
17820 | }; | |
17821 | ||
17822 | int | |
17823 | main (void) | |
17824 | { | |
17825 | ||
17826 | ||
17827 | ; | |
17828 | return 0; | |
17829 | } | |
17830 | ||
17831 | _ACEOF | |
17832 | ||
17833 | ||
17834 | ||
17835 | cat - <<_ACEOF >conftest.h | |
17836 | ||
17837 | _ACEOF | |
17838 | ||
17839 | ||
17840 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17841 | echo "obj-m := conftest.o" >build/Makefile | |
17842 | modpost_flag='' | |
17843 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17844 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17845 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17846 | (eval $ac_try) 2>&5 | |
17847 | ac_status=$? | |
17848 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17849 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17850 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17851 | (eval $ac_try) 2>&5 | |
17852 | ac_status=$? | |
17853 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17854 | test $ac_status = 0; }; }; then : | |
17855 | ||
17856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17857 | $as_echo "yes" >&6; } | |
17858 | ||
17859 | $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h | |
17860 | ||
17861 | ||
17862 | else | |
17863 | $as_echo "$as_me: failed program was:" >&5 | |
17864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17865 | ||
17866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17867 | $as_echo "no" >&6; } | |
17868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5 | |
17869 | $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; } | |
17870 | ||
17871 | ||
17872 | cat confdefs.h - <<_ACEOF >conftest.c | |
17873 | ||
17874 | ||
17875 | #include <linux/xattr.h> | |
17876 | ||
17877 | int set(struct inode *ip, const char *name, | |
17878 | const void *buffer, size_t size, int flags) | |
17879 | { return 0; } | |
17880 | static const struct xattr_handler | |
17881 | xops __attribute__ ((unused)) = { | |
17882 | .set = set, | |
17883 | }; | |
17884 | ||
17885 | int | |
17886 | main (void) | |
17887 | { | |
17888 | ||
17889 | ||
17890 | ; | |
17891 | return 0; | |
17892 | } | |
17893 | ||
17894 | _ACEOF | |
17895 | ||
17896 | ||
17897 | ||
17898 | cat - <<_ACEOF >conftest.h | |
17899 | ||
17900 | _ACEOF | |
17901 | ||
17902 | ||
17903 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17904 | echo "obj-m := conftest.o" >build/Makefile | |
17905 | modpost_flag='' | |
17906 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17907 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17908 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17909 | (eval $ac_try) 2>&5 | |
17910 | ac_status=$? | |
17911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17912 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17913 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17914 | (eval $ac_try) 2>&5 | |
17915 | ac_status=$? | |
17916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17917 | test $ac_status = 0; }; }; then : | |
17918 | ||
17919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17920 | $as_echo "yes" >&6; } | |
17921 | ||
17922 | $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h | |
17923 | ||
17924 | ||
17925 | else | |
17926 | $as_echo "$as_me: failed program was:" >&5 | |
17927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17928 | ||
17929 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
17930 | ||
17931 | ||
17932 | ||
17933 | fi | |
17934 | rm -Rf build | |
17935 | ||
17936 | ||
17937 | ||
17938 | ||
17939 | ||
17940 | fi | |
17941 | rm -Rf build | |
17942 | ||
17943 | ||
17944 | ||
17945 | ||
17946 | ||
17947 | fi | |
17948 | rm -Rf build | |
17949 | ||
17950 | ||
17951 | ||
17952 | ||
17953 | ||
17954 | fi | |
17955 | rm -Rf build | |
17956 | ||
17957 | ||
17958 | ||
17959 | ||
17960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5 | |
17961 | $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; } | |
17962 | ||
17963 | ||
17964 | cat confdefs.h - <<_ACEOF >conftest.c | |
17965 | ||
17966 | ||
17967 | #include <linux/xattr.h> | |
17968 | ||
17969 | bool list(struct dentry *dentry) { return 0; } | |
17970 | static const struct xattr_handler | |
17971 | xops __attribute__ ((unused)) = { | |
17972 | .list = list, | |
17973 | }; | |
17974 | ||
17975 | int | |
17976 | main (void) | |
17977 | { | |
17978 | ||
17979 | ||
17980 | ; | |
17981 | return 0; | |
17982 | } | |
17983 | ||
17984 | _ACEOF | |
17985 | ||
17986 | ||
17987 | ||
17988 | cat - <<_ACEOF >conftest.h | |
17989 | ||
17990 | _ACEOF | |
17991 | ||
17992 | ||
17993 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17994 | echo "obj-m := conftest.o" >build/Makefile | |
17995 | modpost_flag='' | |
17996 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17997 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17998 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17999 | (eval $ac_try) 2>&5 | |
18000 | ac_status=$? | |
18001 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18002 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18003 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18004 | (eval $ac_try) 2>&5 | |
18005 | ac_status=$? | |
18006 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18007 | test $ac_status = 0; }; }; then : | |
18008 | ||
18009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18010 | $as_echo "yes" >&6; } | |
18011 | ||
18012 | $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h | |
18013 | ||
18014 | ||
18015 | else | |
18016 | $as_echo "$as_me: failed program was:" >&5 | |
18017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18018 | ||
18019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18020 | $as_echo "no" >&6; } | |
18021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5 | |
18022 | $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; } | |
18023 | ||
18024 | ||
18025 | cat confdefs.h - <<_ACEOF >conftest.c | |
18026 | ||
18027 | ||
18028 | #include <linux/xattr.h> | |
18029 | ||
18030 | size_t list(const struct xattr_handler *handler, | |
18031 | struct dentry *dentry, char *list, size_t list_size, | |
18032 | const char *name, size_t name_len) { return 0; } | |
18033 | static const struct xattr_handler | |
18034 | xops __attribute__ ((unused)) = { | |
18035 | .list = list, | |
18036 | }; | |
18037 | ||
18038 | int | |
18039 | main (void) | |
18040 | { | |
18041 | ||
18042 | ||
18043 | ; | |
18044 | return 0; | |
18045 | } | |
18046 | ||
18047 | _ACEOF | |
18048 | ||
18049 | ||
18050 | ||
18051 | cat - <<_ACEOF >conftest.h | |
18052 | ||
18053 | _ACEOF | |
18054 | ||
18055 | ||
18056 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18057 | echo "obj-m := conftest.o" >build/Makefile | |
18058 | modpost_flag='' | |
18059 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18060 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18061 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18062 | (eval $ac_try) 2>&5 | |
18063 | ac_status=$? | |
18064 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18065 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18066 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18067 | (eval $ac_try) 2>&5 | |
18068 | ac_status=$? | |
18069 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18070 | test $ac_status = 0; }; }; then : | |
18071 | ||
18072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18073 | $as_echo "yes" >&6; } | |
18074 | ||
18075 | $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h | |
18076 | ||
18077 | ||
18078 | else | |
18079 | $as_echo "$as_me: failed program was:" >&5 | |
18080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18081 | ||
18082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18083 | $as_echo "no" >&6; } | |
18084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5 | |
18085 | $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; } | |
18086 | ||
18087 | ||
18088 | cat confdefs.h - <<_ACEOF >conftest.c | |
18089 | ||
18090 | ||
18091 | #include <linux/xattr.h> | |
18092 | ||
18093 | size_t list(struct dentry *dentry, | |
18094 | char *list, size_t list_size, | |
18095 | const char *name, size_t name_len, | |
18096 | int handler_flags) { return 0; } | |
18097 | static const struct xattr_handler | |
18098 | xops __attribute__ ((unused)) = { | |
18099 | .list = list, | |
18100 | }; | |
18101 | ||
18102 | int | |
18103 | main (void) | |
18104 | { | |
18105 | ||
18106 | ||
18107 | ; | |
18108 | return 0; | |
18109 | } | |
18110 | ||
18111 | _ACEOF | |
18112 | ||
18113 | ||
18114 | ||
18115 | cat - <<_ACEOF >conftest.h | |
18116 | ||
18117 | _ACEOF | |
18118 | ||
18119 | ||
18120 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18121 | echo "obj-m := conftest.o" >build/Makefile | |
18122 | modpost_flag='' | |
18123 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18124 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18125 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18126 | (eval $ac_try) 2>&5 | |
18127 | ac_status=$? | |
18128 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18129 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18130 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18131 | (eval $ac_try) 2>&5 | |
18132 | ac_status=$? | |
18133 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18134 | test $ac_status = 0; }; }; then : | |
18135 | ||
18136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18137 | $as_echo "yes" >&6; } | |
18138 | ||
18139 | $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h | |
18140 | ||
18141 | ||
18142 | else | |
18143 | $as_echo "$as_me: failed program was:" >&5 | |
18144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18145 | ||
18146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18147 | $as_echo "no" >&6; } | |
18148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5 | |
18149 | $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; } | |
18150 | ||
18151 | ||
18152 | cat confdefs.h - <<_ACEOF >conftest.c | |
18153 | ||
18154 | ||
18155 | #include <linux/xattr.h> | |
18156 | ||
18157 | size_t list(struct inode *ip, char *lst, | |
18158 | size_t list_size, const char *name, | |
18159 | size_t name_len) { return 0; } | |
18160 | static const struct xattr_handler | |
18161 | xops __attribute__ ((unused)) = { | |
18162 | .list = list, | |
18163 | }; | |
18164 | ||
18165 | int | |
18166 | main (void) | |
18167 | { | |
18168 | ||
18169 | ||
18170 | ; | |
18171 | return 0; | |
18172 | } | |
18173 | ||
18174 | _ACEOF | |
18175 | ||
18176 | ||
18177 | ||
18178 | cat - <<_ACEOF >conftest.h | |
18179 | ||
18180 | _ACEOF | |
18181 | ||
18182 | ||
18183 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18184 | echo "obj-m := conftest.o" >build/Makefile | |
18185 | modpost_flag='' | |
18186 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18187 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18188 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18189 | (eval $ac_try) 2>&5 | |
18190 | ac_status=$? | |
18191 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18192 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18193 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18194 | (eval $ac_try) 2>&5 | |
18195 | ac_status=$? | |
18196 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18197 | test $ac_status = 0; }; }; then : | |
18198 | ||
18199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18200 | $as_echo "yes" >&6; } | |
18201 | ||
18202 | $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h | |
18203 | ||
18204 | ||
18205 | else | |
18206 | $as_echo "$as_me: failed program was:" >&5 | |
18207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18208 | ||
18209 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
18210 | ||
18211 | ||
18212 | ||
18213 | fi | |
18214 | rm -Rf build | |
18215 | ||
18216 | ||
18217 | ||
18218 | ||
18219 | ||
18220 | fi | |
18221 | rm -Rf build | |
18222 | ||
18223 | ||
18224 | ||
18225 | ||
18226 | ||
18227 | fi | |
18228 | rm -Rf build | |
18229 | ||
18230 | ||
18231 | ||
18232 | ||
18233 | ||
18234 | fi | |
18235 | rm -Rf build | |
18236 | ||
18237 | ||
18238 | ||
18239 | ||
18240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5 | |
18241 | $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; } | |
18242 | ||
18243 | ||
18244 | cat confdefs.h - <<_ACEOF >conftest.c | |
18245 | ||
18246 | ||
18247 | #include <linux/fs.h> | |
18248 | ||
18249 | int | |
18250 | main (void) | |
18251 | { | |
18252 | ||
18253 | struct inode *ip = NULL; | |
18254 | (void) inode_owner_or_capable(ip); | |
18255 | ||
18256 | ; | |
18257 | return 0; | |
18258 | } | |
18259 | ||
18260 | _ACEOF | |
18261 | ||
18262 | ||
18263 | ||
18264 | cat - <<_ACEOF >conftest.h | |
18265 | ||
18266 | _ACEOF | |
18267 | ||
18268 | ||
18269 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18270 | echo "obj-m := conftest.o" >build/Makefile | |
18271 | modpost_flag='' | |
18272 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18273 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18274 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18275 | (eval $ac_try) 2>&5 | |
18276 | ac_status=$? | |
18277 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18278 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18279 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18280 | (eval $ac_try) 2>&5 | |
18281 | ac_status=$? | |
18282 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18283 | test $ac_status = 0; }; }; then : | |
18284 | ||
18285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18286 | $as_echo "yes" >&6; } | |
18287 | ||
18288 | $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h | |
18289 | ||
18290 | ||
18291 | else | |
18292 | $as_echo "$as_me: failed program was:" >&5 | |
18293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18294 | ||
18295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18296 | $as_echo "no" >&6; } | |
18297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5 | |
18298 | $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; } | |
18299 | ||
18300 | ||
18301 | cat confdefs.h - <<_ACEOF >conftest.c | |
18302 | ||
18303 | ||
18304 | #include <linux/fs.h> | |
18305 | #include <linux/sched.h> | |
18306 | ||
18307 | int | |
18308 | main (void) | |
18309 | { | |
18310 | ||
18311 | struct inode *ip = NULL; | |
18312 | (void) is_owner_or_cap(ip); | |
18313 | ||
18314 | ; | |
18315 | return 0; | |
18316 | } | |
18317 | ||
18318 | _ACEOF | |
18319 | ||
18320 | ||
18321 | ||
18322 | cat - <<_ACEOF >conftest.h | |
18323 | ||
18324 | _ACEOF | |
18325 | ||
18326 | ||
18327 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18328 | echo "obj-m := conftest.o" >build/Makefile | |
18329 | modpost_flag='' | |
18330 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18331 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18332 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18333 | (eval $ac_try) 2>&5 | |
18334 | ac_status=$? | |
18335 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18336 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18337 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18338 | (eval $ac_try) 2>&5 | |
18339 | ac_status=$? | |
18340 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18341 | test $ac_status = 0; }; }; then : | |
18342 | ||
18343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18344 | $as_echo "yes" >&6; } | |
18345 | ||
18346 | $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h | |
18347 | ||
18348 | ||
18349 | else | |
18350 | $as_echo "$as_me: failed program was:" >&5 | |
18351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18352 | ||
18353 | as_fn_error $? "no - Please file a bug report at | |
18354 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
18355 | ||
18356 | ||
18357 | ||
18358 | fi | |
18359 | rm -Rf build | |
18360 | ||
18361 | ||
18362 | ||
18363 | ||
18364 | ||
18365 | fi | |
18366 | rm -Rf build | |
18367 | ||
18368 | ||
18369 | ||
18370 | ||
18371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5 | |
18372 | $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; } | |
18373 | ||
18374 | ||
18375 | cat confdefs.h - <<_ACEOF >conftest.c | |
18376 | ||
18377 | ||
18378 | #include <linux/cred.h> | |
18379 | #include <linux/fs.h> | |
18380 | #include <linux/posix_acl_xattr.h> | |
18381 | ||
18382 | int | |
18383 | main (void) | |
18384 | { | |
18385 | ||
18386 | posix_acl_from_xattr(&init_user_ns, NULL, 0); | |
18387 | ||
18388 | ; | |
18389 | return 0; | |
18390 | } | |
18391 | ||
18392 | _ACEOF | |
18393 | ||
18394 | ||
18395 | ||
18396 | cat - <<_ACEOF >conftest.h | |
18397 | ||
18398 | _ACEOF | |
18399 | ||
18400 | ||
18401 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18402 | echo "obj-m := conftest.o" >build/Makefile | |
18403 | modpost_flag='' | |
18404 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18405 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18406 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18407 | (eval $ac_try) 2>&5 | |
18408 | ac_status=$? | |
18409 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18410 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18411 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18412 | (eval $ac_try) 2>&5 | |
18413 | ac_status=$? | |
18414 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18415 | test $ac_status = 0; }; }; then : | |
18416 | ||
18417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18418 | $as_echo "yes" >&6; } | |
18419 | ||
18420 | $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h | |
18421 | ||
18422 | ||
18423 | else | |
18424 | $as_echo "$as_me: failed program was:" >&5 | |
18425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18426 | ||
18427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18428 | $as_echo "no" >&6; } | |
18429 | ||
18430 | ||
18431 | ||
18432 | fi | |
18433 | rm -Rf build | |
18434 | ||
18435 | ||
18436 | ||
18437 | ||
18438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5 | |
18439 | $as_echo_n "checking whether posix_acl_release() is available... " >&6; } | |
18440 | ||
18441 | ||
18442 | cat confdefs.h - <<_ACEOF >conftest.c | |
18443 | ||
18444 | ||
18445 | #include <linux/cred.h> | |
18446 | #include <linux/fs.h> | |
18447 | #include <linux/posix_acl.h> | |
18448 | ||
18449 | int | |
18450 | main (void) | |
18451 | { | |
18452 | ||
18453 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
18454 | posix_acl_release(tmp); | |
18455 | ||
18456 | ; | |
18457 | return 0; | |
18458 | } | |
18459 | ||
18460 | _ACEOF | |
18461 | ||
18462 | ||
18463 | ||
18464 | cat - <<_ACEOF >conftest.h | |
18465 | ||
18466 | _ACEOF | |
18467 | ||
18468 | ||
18469 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18470 | echo "obj-m := conftest.o" >build/Makefile | |
18471 | modpost_flag='' | |
18472 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18473 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18474 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18475 | (eval $ac_try) 2>&5 | |
18476 | ac_status=$? | |
18477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18478 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18479 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18480 | (eval $ac_try) 2>&5 | |
18481 | ac_status=$? | |
18482 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18483 | test $ac_status = 0; }; }; then : | |
18484 | ||
18485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18486 | $as_echo "yes" >&6; } | |
18487 | ||
18488 | $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h | |
18489 | ||
18490 | ||
18491 | else | |
18492 | $as_echo "$as_me: failed program was:" >&5 | |
18493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18494 | ||
18495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18496 | $as_echo "no" >&6; } | |
18497 | ||
18498 | ||
18499 | ||
18500 | fi | |
18501 | rm -Rf build | |
18502 | ||
18503 | ||
18504 | ||
18505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5 | |
18506 | $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; } | |
18507 | ||
18508 | ||
18509 | cat confdefs.h - <<_ACEOF >conftest.c | |
18510 | ||
18511 | ||
18512 | #include <linux/cred.h> | |
18513 | #include <linux/fs.h> | |
18514 | #include <linux/posix_acl.h> | |
18515 | ||
18516 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
18517 | ||
18518 | int | |
18519 | main (void) | |
18520 | { | |
18521 | ||
18522 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
18523 | posix_acl_release(tmp); | |
18524 | ||
18525 | ; | |
18526 | return 0; | |
18527 | } | |
18528 | ||
18529 | _ACEOF | |
18530 | ||
18531 | ||
18532 | ||
18533 | cat - <<_ACEOF >conftest.h | |
18534 | ||
18535 | _ACEOF | |
18536 | ||
18537 | ||
18538 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18539 | echo "obj-m := conftest.o" >build/Makefile | |
18540 | modpost_flag='' | |
18541 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18542 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18543 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18544 | (eval $ac_try) 2>&5 | |
18545 | ac_status=$? | |
18546 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18547 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18548 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18549 | (eval $ac_try) 2>&5 | |
18550 | ac_status=$? | |
18551 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18552 | test $ac_status = 0; }; }; then : | |
18553 | ||
18554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18555 | $as_echo "no" >&6; } | |
18556 | ||
18557 | else | |
18558 | $as_echo "$as_me: failed program was:" >&5 | |
18559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18560 | ||
18561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18562 | $as_echo "yes" >&6; } | |
18563 | ||
18564 | $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h | |
18565 | ||
18566 | ||
18567 | ||
18568 | ||
d177712e CIK |
18569 | fi |
18570 | rm -Rf build | |
18571 | ||
18572 | ||
18573 | ||
18574 | ||
18575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5 | |
18576 | $as_echo_n "checking whether set_cached_acl() is usable... " >&6; } | |
18577 | ||
18578 | ||
18579 | cat confdefs.h - <<_ACEOF >conftest.c | |
18580 | ||
18581 | ||
18582 | #include <linux/module.h> | |
18583 | #include <linux/cred.h> | |
18584 | #include <linux/fs.h> | |
18585 | #include <linux/posix_acl.h> | |
18586 | ||
18587 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
18588 | ||
18589 | int | |
18590 | main (void) | |
18591 | { | |
18592 | ||
18593 | struct inode *ip = NULL; | |
18594 | struct posix_acl *acl = posix_acl_alloc(1, 0); | |
18595 | set_cached_acl(ip, ACL_TYPE_ACCESS, acl); | |
18596 | forget_cached_acl(ip, ACL_TYPE_ACCESS); | |
18597 | ||
18598 | ; | |
18599 | return 0; | |
18600 | } | |
18601 | ||
18602 | _ACEOF | |
18603 | ||
18604 | ||
18605 | ||
18606 | cat - <<_ACEOF >conftest.h | |
18607 | ||
18608 | _ACEOF | |
18609 | ||
18610 | ||
18611 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18612 | echo "obj-m := conftest.o" >build/Makefile | |
18613 | modpost_flag='' | |
18614 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18615 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18616 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18617 | (eval $ac_try) 2>&5 | |
18618 | ac_status=$? | |
18619 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18620 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18621 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18622 | (eval $ac_try) 2>&5 | |
18623 | ac_status=$? | |
18624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18625 | test $ac_status = 0; }; }; then : | |
18626 | ||
18627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18628 | $as_echo "yes" >&6; } | |
18629 | ||
18630 | $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h | |
18631 | ||
18632 | ||
18633 | else | |
18634 | $as_echo "$as_me: failed program was:" >&5 | |
18635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18636 | ||
18637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18638 | $as_echo "no" >&6; } | |
18639 | ||
18640 | ||
18641 | ||
0bd31011 TG |
18642 | fi |
18643 | rm -Rf build | |
18644 | ||
18645 | ||
18646 | ||
18647 | ||
18648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5 | |
18649 | $as_echo_n "checking whether posix_acl_chmod exists... " >&6; } | |
18650 | ||
18651 | ||
18652 | cat confdefs.h - <<_ACEOF >conftest.c | |
18653 | ||
18654 | ||
18655 | #include <linux/fs.h> | |
18656 | #include <linux/posix_acl.h> | |
18657 | ||
18658 | int | |
18659 | main (void) | |
18660 | { | |
18661 | ||
18662 | posix_acl_chmod(NULL, 0, 0) | |
18663 | ||
18664 | ; | |
18665 | return 0; | |
18666 | } | |
18667 | ||
18668 | _ACEOF | |
18669 | ||
18670 | ||
18671 | ||
18672 | cat - <<_ACEOF >conftest.h | |
18673 | ||
18674 | _ACEOF | |
18675 | ||
18676 | ||
18677 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18678 | echo "obj-m := conftest.o" >build/Makefile | |
18679 | modpost_flag='' | |
18680 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18681 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18682 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18683 | (eval $ac_try) 2>&5 | |
18684 | ac_status=$? | |
18685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18686 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18687 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18688 | (eval $ac_try) 2>&5 | |
18689 | ac_status=$? | |
18690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18691 | test $ac_status = 0; }; }; then : | |
18692 | ||
18693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18694 | $as_echo "yes" >&6; } | |
18695 | ||
18696 | $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h | |
18697 | ||
18698 | ||
18699 | else | |
18700 | $as_echo "$as_me: failed program was:" >&5 | |
18701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18702 | ||
18703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18704 | $as_echo "no" >&6; } | |
18705 | ||
18706 | ||
18707 | ||
18708 | fi | |
18709 | rm -Rf build | |
18710 | ||
18711 | ||
18712 | ||
18713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5 | |
18714 | $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; } | |
18715 | ||
18716 | ||
18717 | cat confdefs.h - <<_ACEOF >conftest.c | |
18718 | ||
18719 | ||
18720 | #include <linux/fs.h> | |
18721 | #include <linux/posix_acl.h> | |
18722 | ||
18723 | int | |
18724 | main (void) | |
18725 | { | |
18726 | ||
18727 | __posix_acl_chmod(NULL, 0, 0) | |
18728 | ||
18729 | ; | |
18730 | return 0; | |
18731 | } | |
18732 | ||
18733 | _ACEOF | |
18734 | ||
18735 | ||
18736 | ||
18737 | cat - <<_ACEOF >conftest.h | |
18738 | ||
18739 | _ACEOF | |
18740 | ||
18741 | ||
18742 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18743 | echo "obj-m := conftest.o" >build/Makefile | |
18744 | modpost_flag='' | |
18745 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18746 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18747 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18748 | (eval $ac_try) 2>&5 | |
18749 | ac_status=$? | |
18750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18751 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18752 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18753 | (eval $ac_try) 2>&5 | |
18754 | ac_status=$? | |
18755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18756 | test $ac_status = 0; }; }; then : | |
18757 | ||
18758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18759 | $as_echo "yes" >&6; } | |
18760 | ||
18761 | $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h | |
18762 | ||
18763 | ||
18764 | else | |
18765 | $as_echo "$as_me: failed program was:" >&5 | |
18766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18767 | ||
18768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18769 | $as_echo "no" >&6; } | |
18770 | ||
18771 | ||
18772 | ||
18773 | fi | |
18774 | rm -Rf build | |
18775 | ||
18776 | ||
18777 | ||
18778 | ||
18779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5 | |
18780 | $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; } | |
18781 | ||
18782 | ||
18783 | cat confdefs.h - <<_ACEOF >conftest.c | |
18784 | ||
18785 | ||
18786 | #include <linux/fs.h> | |
18787 | #include <linux/posix_acl.h> | |
18788 | ||
18789 | int | |
18790 | main (void) | |
18791 | { | |
18792 | ||
18793 | umode_t tmp; | |
18794 | posix_acl_equiv_mode(NULL,&tmp); | |
18795 | ||
18796 | ; | |
18797 | return 0; | |
18798 | } | |
18799 | ||
18800 | _ACEOF | |
18801 | ||
18802 | ||
18803 | ||
18804 | cat - <<_ACEOF >conftest.h | |
18805 | ||
18806 | _ACEOF | |
18807 | ||
18808 | ||
18809 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18810 | echo "obj-m := conftest.o" >build/Makefile | |
18811 | modpost_flag='' | |
18812 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18813 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18814 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18815 | (eval $ac_try) 2>&5 | |
18816 | ac_status=$? | |
18817 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18818 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18819 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18820 | (eval $ac_try) 2>&5 | |
18821 | ac_status=$? | |
18822 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18823 | test $ac_status = 0; }; }; then : | |
18824 | ||
18825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18826 | $as_echo "yes" >&6; } | |
18827 | ||
18828 | $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h | |
18829 | ||
18830 | ||
18831 | else | |
18832 | $as_echo "$as_me: failed program was:" >&5 | |
18833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18834 | ||
18835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18836 | $as_echo "no" >&6; } | |
18837 | ||
18838 | ||
18839 | ||
18840 | fi | |
18841 | rm -Rf build | |
18842 | ||
18843 | ||
18844 | ||
18845 | ||
18846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5 | |
18847 | $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; } | |
18848 | ||
18849 | ||
18850 | cat confdefs.h - <<_ACEOF >conftest.c | |
18851 | ||
18852 | ||
18853 | #include <linux/fs.h> | |
18854 | #include <linux/posix_acl.h> | |
18855 | ||
18856 | int | |
18857 | main (void) | |
18858 | { | |
18859 | ||
18860 | struct user_namespace *user_ns = NULL; | |
18861 | const struct posix_acl *acl = NULL; | |
18862 | int error; | |
18863 | ||
18864 | error = posix_acl_valid(user_ns, acl); | |
18865 | ||
18866 | ; | |
18867 | return 0; | |
18868 | } | |
18869 | ||
18870 | _ACEOF | |
18871 | ||
18872 | ||
18873 | ||
18874 | cat - <<_ACEOF >conftest.h | |
18875 | ||
18876 | _ACEOF | |
18877 | ||
18878 | ||
18879 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18880 | echo "obj-m := conftest.o" >build/Makefile | |
18881 | modpost_flag='' | |
18882 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18883 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18884 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18885 | (eval $ac_try) 2>&5 | |
18886 | ac_status=$? | |
18887 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18888 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18889 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18890 | (eval $ac_try) 2>&5 | |
18891 | ac_status=$? | |
18892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18893 | test $ac_status = 0; }; }; then : | |
18894 | ||
18895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18896 | $as_echo "yes" >&6; } | |
18897 | ||
18898 | $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h | |
18899 | ||
18900 | ||
18901 | else | |
18902 | $as_echo "$as_me: failed program was:" >&5 | |
18903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18904 | ||
18905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18906 | $as_echo "no" >&6; } | |
18907 | ||
18908 | ||
18909 | ||
18910 | fi | |
18911 | rm -Rf build | |
18912 | ||
18913 | ||
18914 | ||
18915 | ||
18916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5 | |
18917 | $as_echo_n "checking whether iops->permission() exists... " >&6; } | |
18918 | ||
18919 | ||
18920 | cat confdefs.h - <<_ACEOF >conftest.c | |
18921 | ||
18922 | ||
18923 | #include <linux/fs.h> | |
18924 | ||
18925 | int permission_fn(struct inode *inode, int mask) { return 0; } | |
18926 | ||
18927 | static const struct inode_operations | |
18928 | iops __attribute__ ((unused)) = { | |
18929 | .permission = permission_fn, | |
18930 | }; | |
18931 | ||
18932 | int | |
18933 | main (void) | |
18934 | { | |
18935 | ||
18936 | ||
18937 | ; | |
18938 | return 0; | |
18939 | } | |
18940 | ||
18941 | _ACEOF | |
18942 | ||
18943 | ||
18944 | ||
18945 | cat - <<_ACEOF >conftest.h | |
18946 | ||
18947 | _ACEOF | |
18948 | ||
18949 | ||
18950 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18951 | echo "obj-m := conftest.o" >build/Makefile | |
18952 | modpost_flag='' | |
18953 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18954 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18955 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18956 | (eval $ac_try) 2>&5 | |
18957 | ac_status=$? | |
18958 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18959 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18960 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18961 | (eval $ac_try) 2>&5 | |
18962 | ac_status=$? | |
18963 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18964 | test $ac_status = 0; }; }; then : | |
18965 | ||
18966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18967 | $as_echo "yes" >&6; } | |
18968 | ||
18969 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
18970 | ||
18971 | ||
18972 | else | |
18973 | $as_echo "$as_me: failed program was:" >&5 | |
18974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18975 | ||
18976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18977 | $as_echo "no" >&6; } | |
18978 | ||
18979 | ||
18980 | ||
18981 | fi | |
18982 | rm -Rf build | |
18983 | ||
18984 | ||
18985 | ||
18986 | ||
18987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5 | |
18988 | $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; } | |
18989 | ||
18990 | ||
18991 | cat confdefs.h - <<_ACEOF >conftest.c | |
18992 | ||
18993 | ||
18994 | #include <linux/fs.h> | |
18995 | ||
18996 | int permission_fn(struct inode *inode, int mask, | |
18997 | struct nameidata *nd) { return 0; } | |
18998 | ||
18999 | static const struct inode_operations | |
19000 | iops __attribute__ ((unused)) = { | |
19001 | .permission = permission_fn, | |
19002 | }; | |
19003 | ||
19004 | int | |
19005 | main (void) | |
19006 | { | |
19007 | ||
19008 | ||
19009 | ; | |
19010 | return 0; | |
19011 | } | |
19012 | ||
19013 | _ACEOF | |
19014 | ||
19015 | ||
19016 | ||
19017 | cat - <<_ACEOF >conftest.h | |
19018 | ||
19019 | _ACEOF | |
19020 | ||
19021 | ||
19022 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19023 | echo "obj-m := conftest.o" >build/Makefile | |
19024 | modpost_flag='' | |
19025 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19026 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19027 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19028 | (eval $ac_try) 2>&5 | |
19029 | ac_status=$? | |
19030 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19031 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19032 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19033 | (eval $ac_try) 2>&5 | |
19034 | ac_status=$? | |
19035 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19036 | test $ac_status = 0; }; }; then : | |
19037 | ||
19038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19039 | $as_echo "yes" >&6; } | |
19040 | ||
19041 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
19042 | ||
19043 | ||
19044 | $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h | |
19045 | ||
19046 | ||
19047 | else | |
19048 | $as_echo "$as_me: failed program was:" >&5 | |
19049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19050 | ||
19051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19052 | $as_echo "no" >&6; } | |
19053 | ||
19054 | ||
19055 | ||
19056 | fi | |
19057 | rm -Rf build | |
19058 | ||
19059 | ||
19060 | ||
19061 | ||
19062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5 | |
19063 | $as_echo_n "checking whether iops->check_acl() exists... " >&6; } | |
19064 | ||
19065 | ||
19066 | cat confdefs.h - <<_ACEOF >conftest.c | |
19067 | ||
19068 | ||
19069 | #include <linux/fs.h> | |
19070 | ||
19071 | int check_acl_fn(struct inode *inode, int mask) { return 0; } | |
19072 | ||
19073 | static const struct inode_operations | |
19074 | iops __attribute__ ((unused)) = { | |
19075 | .check_acl = check_acl_fn, | |
19076 | }; | |
19077 | ||
19078 | int | |
19079 | main (void) | |
19080 | { | |
19081 | ||
19082 | ||
19083 | ; | |
19084 | return 0; | |
19085 | } | |
19086 | ||
19087 | _ACEOF | |
19088 | ||
19089 | ||
19090 | ||
19091 | cat - <<_ACEOF >conftest.h | |
19092 | ||
19093 | _ACEOF | |
19094 | ||
19095 | ||
19096 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19097 | echo "obj-m := conftest.o" >build/Makefile | |
19098 | modpost_flag='' | |
19099 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19100 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19101 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19102 | (eval $ac_try) 2>&5 | |
19103 | ac_status=$? | |
19104 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19105 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19106 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19107 | (eval $ac_try) 2>&5 | |
19108 | ac_status=$? | |
19109 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19110 | test $ac_status = 0; }; }; then : | |
19111 | ||
19112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19113 | $as_echo "yes" >&6; } | |
19114 | ||
19115 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
19116 | ||
19117 | ||
19118 | else | |
19119 | $as_echo "$as_me: failed program was:" >&5 | |
19120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19121 | ||
19122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19123 | $as_echo "no" >&6; } | |
19124 | ||
19125 | ||
19126 | ||
19127 | fi | |
19128 | rm -Rf build | |
19129 | ||
19130 | ||
19131 | ||
19132 | ||
19133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5 | |
19134 | $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; } | |
19135 | ||
19136 | ||
19137 | cat confdefs.h - <<_ACEOF >conftest.c | |
19138 | ||
19139 | ||
19140 | #include <linux/fs.h> | |
19141 | ||
19142 | int check_acl_fn(struct inode *inode, int mask, | |
19143 | unsigned int flags) { return 0; } | |
19144 | ||
19145 | static const struct inode_operations | |
19146 | iops __attribute__ ((unused)) = { | |
19147 | .check_acl = check_acl_fn, | |
19148 | }; | |
19149 | ||
19150 | int | |
19151 | main (void) | |
19152 | { | |
19153 | ||
19154 | ||
19155 | ; | |
19156 | return 0; | |
19157 | } | |
19158 | ||
19159 | _ACEOF | |
19160 | ||
19161 | ||
19162 | ||
19163 | cat - <<_ACEOF >conftest.h | |
19164 | ||
19165 | _ACEOF | |
19166 | ||
19167 | ||
19168 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19169 | echo "obj-m := conftest.o" >build/Makefile | |
19170 | modpost_flag='' | |
19171 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19172 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19173 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19174 | (eval $ac_try) 2>&5 | |
19175 | ac_status=$? | |
19176 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19177 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19178 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19179 | (eval $ac_try) 2>&5 | |
19180 | ac_status=$? | |
19181 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19182 | test $ac_status = 0; }; }; then : | |
19183 | ||
19184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19185 | $as_echo "yes" >&6; } | |
19186 | ||
19187 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
19188 | ||
19189 | ||
19190 | $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h | |
19191 | ||
19192 | ||
19193 | else | |
19194 | $as_echo "$as_me: failed program was:" >&5 | |
19195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19196 | ||
19197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19198 | $as_echo "no" >&6; } | |
19199 | ||
19200 | ||
19201 | ||
19202 | fi | |
19203 | rm -Rf build | |
19204 | ||
19205 | ||
19206 | ||
19207 | ||
19208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5 | |
19209 | $as_echo_n "checking whether iops->get_acl() exists... " >&6; } | |
19210 | ||
19211 | ||
19212 | cat confdefs.h - <<_ACEOF >conftest.c | |
19213 | ||
19214 | ||
19215 | #include <linux/fs.h> | |
19216 | ||
19217 | struct posix_acl *get_acl_fn(struct inode *inode, int type) | |
19218 | { return NULL; } | |
19219 | ||
19220 | static const struct inode_operations | |
19221 | iops __attribute__ ((unused)) = { | |
19222 | .get_acl = get_acl_fn, | |
19223 | }; | |
19224 | ||
19225 | int | |
19226 | main (void) | |
19227 | { | |
19228 | ||
19229 | ||
19230 | ; | |
19231 | return 0; | |
19232 | } | |
19233 | ||
19234 | _ACEOF | |
19235 | ||
19236 | ||
19237 | ||
19238 | cat - <<_ACEOF >conftest.h | |
19239 | ||
19240 | _ACEOF | |
19241 | ||
19242 | ||
19243 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19244 | echo "obj-m := conftest.o" >build/Makefile | |
19245 | modpost_flag='' | |
19246 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19247 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19248 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19249 | (eval $ac_try) 2>&5 | |
19250 | ac_status=$? | |
19251 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19252 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19253 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19254 | (eval $ac_try) 2>&5 | |
19255 | ac_status=$? | |
19256 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19257 | test $ac_status = 0; }; }; then : | |
19258 | ||
19259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19260 | $as_echo "yes" >&6; } | |
19261 | ||
19262 | $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h | |
19263 | ||
19264 | ||
19265 | else | |
19266 | $as_echo "$as_me: failed program was:" >&5 | |
19267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19268 | ||
19269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19270 | $as_echo "no" >&6; } | |
19271 | ||
19272 | ||
19273 | ||
19274 | fi | |
19275 | rm -Rf build | |
19276 | ||
19277 | ||
19278 | ||
19279 | ||
d177712e CIK |
19280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5 |
19281 | $as_echo_n "checking whether iops->set_acl() exists... " >&6; } | |
19282 | ||
19283 | ||
19284 | cat confdefs.h - <<_ACEOF >conftest.c | |
19285 | ||
19286 | ||
19287 | #include <linux/fs.h> | |
19288 | ||
19289 | int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type) | |
19290 | { return 0; } | |
19291 | ||
19292 | static const struct inode_operations | |
19293 | iops __attribute__ ((unused)) = { | |
19294 | .set_acl = set_acl_fn, | |
19295 | }; | |
19296 | ||
19297 | int | |
19298 | main (void) | |
19299 | { | |
19300 | ||
19301 | ||
19302 | ; | |
19303 | return 0; | |
19304 | } | |
19305 | ||
19306 | _ACEOF | |
19307 | ||
19308 | ||
19309 | ||
19310 | cat - <<_ACEOF >conftest.h | |
19311 | ||
19312 | _ACEOF | |
19313 | ||
19314 | ||
19315 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19316 | echo "obj-m := conftest.o" >build/Makefile | |
19317 | modpost_flag='' | |
19318 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19319 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19320 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19321 | (eval $ac_try) 2>&5 | |
19322 | ac_status=$? | |
19323 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19324 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19325 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19326 | (eval $ac_try) 2>&5 | |
19327 | ac_status=$? | |
19328 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19329 | test $ac_status = 0; }; }; then : | |
19330 | ||
19331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19332 | $as_echo "yes" >&6; } | |
19333 | ||
19334 | $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h | |
19335 | ||
19336 | ||
19337 | else | |
19338 | $as_echo "$as_me: failed program was:" >&5 | |
19339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19340 | ||
19341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19342 | $as_echo "no" >&6; } | |
19343 | ||
19344 | ||
19345 | ||
19346 | fi | |
19347 | rm -Rf build | |
19348 | ||
19349 | ||
19350 | ||
19351 | ||
0bd31011 TG |
19352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5 |
19353 | $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; } | |
19354 | ||
19355 | ||
19356 | cat confdefs.h - <<_ACEOF >conftest.c | |
19357 | ||
19358 | ||
19359 | #include <linux/fs.h> | |
19360 | ||
19361 | int | |
19362 | main (void) | |
19363 | { | |
19364 | ||
19365 | void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL); | |
19366 | ||
19367 | ; | |
19368 | return 0; | |
19369 | } | |
19370 | ||
19371 | _ACEOF | |
19372 | ||
19373 | ||
19374 | ||
19375 | cat - <<_ACEOF >conftest.h | |
19376 | ||
19377 | _ACEOF | |
19378 | ||
19379 | ||
19380 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19381 | echo "obj-m := conftest.o" >build/Makefile | |
19382 | modpost_flag='' | |
19383 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19384 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19385 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19386 | (eval $ac_try) 2>&5 | |
19387 | ac_status=$? | |
19388 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19389 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19390 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19391 | (eval $ac_try) 2>&5 | |
19392 | ac_status=$? | |
19393 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19394 | test $ac_status = 0; }; }; then : | |
19395 | ||
19396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19397 | $as_echo "yes" >&6; } | |
19398 | ||
19399 | $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h | |
19400 | ||
19401 | ||
19402 | else | |
19403 | $as_echo "$as_me: failed program was:" >&5 | |
19404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19405 | ||
19406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19407 | $as_echo "no" >&6; } | |
19408 | ||
19409 | ||
19410 | ||
19411 | fi | |
19412 | rm -Rf build | |
19413 | ||
19414 | ||
19415 | ||
19416 | ||
19417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5 | |
19418 | $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; } | |
19419 | ||
19420 | ||
19421 | ||
19422 | cat confdefs.h - <<_ACEOF >conftest.c | |
19423 | ||
19424 | ||
19425 | #include <linux/fs.h> | |
19426 | ||
19427 | int show_options (struct seq_file * x, struct dentry * y) { return 0; }; | |
19428 | static struct super_operations sops __attribute__ ((unused)) = { | |
19429 | .show_options = show_options, | |
19430 | }; | |
19431 | ||
19432 | int | |
19433 | main (void) | |
19434 | { | |
19435 | ||
19436 | ||
19437 | ; | |
19438 | return 0; | |
19439 | } | |
19440 | ||
19441 | _ACEOF | |
19442 | ||
19443 | ||
19444 | ||
19445 | cat - <<_ACEOF >conftest.h | |
19446 | ||
19447 | _ACEOF | |
19448 | ||
19449 | ||
19450 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19451 | echo "obj-m := conftest.o" >build/Makefile | |
19452 | modpost_flag='' | |
19453 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19454 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19455 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19456 | (eval $ac_try) 2>&5 | |
19457 | ac_status=$? | |
19458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19459 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19460 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19461 | (eval $ac_try) 2>&5 | |
19462 | ac_status=$? | |
19463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19464 | test $ac_status = 0; }; }; then : | |
19465 | ||
19466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19467 | $as_echo "yes" >&6; } | |
19468 | ||
19469 | $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h | |
19470 | ||
19471 | ||
19472 | else | |
19473 | $as_echo "$as_me: failed program was:" >&5 | |
19474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19475 | ||
19476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19477 | $as_echo "no" >&6; } | |
19478 | ||
19479 | ||
19480 | ||
19481 | fi | |
19482 | rm -Rf build | |
19483 | ||
19484 | ||
19485 | ||
19486 | ||
19487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5 | |
19488 | $as_echo_n "checking whether file_inode() is available... " >&6; } | |
19489 | ||
19490 | ||
19491 | cat confdefs.h - <<_ACEOF >conftest.c | |
19492 | ||
19493 | ||
19494 | #include <linux/fs.h> | |
19495 | ||
19496 | int | |
19497 | main (void) | |
19498 | { | |
19499 | ||
19500 | struct file *f = NULL; | |
19501 | file_inode(f); | |
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_FILE_INODE 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 | ||
19553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5 | |
19554 | $as_echo_n "checking whether fops->fsync() wants... " >&6; } | |
19555 | ||
19556 | ||
19557 | ||
19558 | cat confdefs.h - <<_ACEOF >conftest.c | |
19559 | ||
19560 | ||
19561 | #include <linux/fs.h> | |
19562 | ||
19563 | int test_fsync(struct file *f, struct dentry *dentry, int x) | |
19564 | { return 0; } | |
19565 | ||
19566 | static const struct file_operations | |
19567 | fops __attribute__ ((unused)) = { | |
19568 | .fsync = test_fsync, | |
19569 | }; | |
19570 | ||
19571 | int | |
19572 | main (void) | |
19573 | { | |
19574 | ||
19575 | ||
19576 | ; | |
19577 | return 0; | |
19578 | } | |
19579 | ||
19580 | _ACEOF | |
19581 | ||
19582 | ||
19583 | ||
19584 | cat - <<_ACEOF >conftest.h | |
19585 | ||
19586 | _ACEOF | |
19587 | ||
19588 | ||
19589 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19590 | echo "obj-m := conftest.o" >build/Makefile | |
19591 | modpost_flag='' | |
19592 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19593 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19594 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19595 | (eval $ac_try) 2>&5 | |
19596 | ac_status=$? | |
19597 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19598 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19599 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19600 | (eval $ac_try) 2>&5 | |
19601 | ac_status=$? | |
19602 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19603 | test $ac_status = 0; }; }; then : | |
19604 | ||
19605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5 | |
19606 | $as_echo "dentry" >&6; } | |
19607 | ||
19608 | $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h | |
19609 | ||
19610 | ||
19611 | else | |
19612 | $as_echo "$as_me: failed program was:" >&5 | |
19613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19614 | ||
19615 | ||
19616 | ||
19617 | ||
19618 | fi | |
19619 | rm -Rf build | |
19620 | ||
19621 | ||
19622 | ||
19623 | ||
19624 | ||
19625 | ||
19626 | cat confdefs.h - <<_ACEOF >conftest.c | |
19627 | ||
19628 | ||
19629 | #include <linux/fs.h> | |
19630 | ||
19631 | int test_fsync(struct file *f, int x) { return 0; } | |
19632 | ||
19633 | static const struct file_operations | |
19634 | fops __attribute__ ((unused)) = { | |
19635 | .fsync = test_fsync, | |
19636 | }; | |
19637 | ||
19638 | int | |
19639 | main (void) | |
19640 | { | |
19641 | ||
19642 | ||
19643 | ; | |
19644 | return 0; | |
19645 | } | |
19646 | ||
19647 | _ACEOF | |
19648 | ||
19649 | ||
19650 | ||
19651 | cat - <<_ACEOF >conftest.h | |
19652 | ||
19653 | _ACEOF | |
19654 | ||
19655 | ||
19656 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19657 | echo "obj-m := conftest.o" >build/Makefile | |
19658 | modpost_flag='' | |
19659 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19660 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19661 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19662 | (eval $ac_try) 2>&5 | |
19663 | ac_status=$? | |
19664 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19665 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19666 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19667 | (eval $ac_try) 2>&5 | |
19668 | ac_status=$? | |
19669 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19670 | test $ac_status = 0; }; }; then : | |
19671 | ||
19672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5 | |
19673 | $as_echo "no dentry" >&6; } | |
19674 | ||
19675 | $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h | |
19676 | ||
19677 | ||
19678 | else | |
19679 | $as_echo "$as_me: failed program was:" >&5 | |
19680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19681 | ||
19682 | ||
19683 | ||
19684 | ||
19685 | fi | |
19686 | rm -Rf build | |
19687 | ||
19688 | ||
19689 | ||
19690 | ||
19691 | ||
19692 | ||
19693 | cat confdefs.h - <<_ACEOF >conftest.c | |
19694 | ||
19695 | ||
19696 | #include <linux/fs.h> | |
19697 | ||
19698 | int test_fsync(struct file *f, loff_t a, loff_t b, int c) | |
19699 | { return 0; } | |
19700 | ||
19701 | static const struct file_operations | |
19702 | fops __attribute__ ((unused)) = { | |
19703 | .fsync = test_fsync, | |
19704 | }; | |
19705 | ||
19706 | int | |
19707 | main (void) | |
19708 | { | |
19709 | ||
19710 | ||
19711 | ; | |
19712 | return 0; | |
19713 | } | |
19714 | ||
19715 | _ACEOF | |
19716 | ||
19717 | ||
19718 | ||
19719 | cat - <<_ACEOF >conftest.h | |
19720 | ||
19721 | _ACEOF | |
19722 | ||
19723 | ||
19724 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19725 | echo "obj-m := conftest.o" >build/Makefile | |
19726 | modpost_flag='' | |
19727 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19728 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19729 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19730 | (eval $ac_try) 2>&5 | |
19731 | ac_status=$? | |
19732 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19733 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19734 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19735 | (eval $ac_try) 2>&5 | |
19736 | ac_status=$? | |
19737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19738 | test $ac_status = 0; }; }; then : | |
19739 | ||
19740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5 | |
19741 | $as_echo "range" >&6; } | |
19742 | ||
19743 | $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h | |
19744 | ||
19745 | ||
19746 | else | |
19747 | $as_echo "$as_me: failed program was:" >&5 | |
19748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19749 | ||
19750 | ||
19751 | ||
19752 | ||
19753 | fi | |
19754 | rm -Rf build | |
19755 | ||
19756 | ||
19757 | ||
19758 | ||
19759 | ||
19760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5 | |
19761 | $as_echo_n "checking whether sops->evict_inode() exists... " >&6; } | |
19762 | ||
19763 | ||
19764 | cat confdefs.h - <<_ACEOF >conftest.c | |
19765 | ||
19766 | ||
19767 | #include <linux/fs.h> | |
19768 | void evict_inode (struct inode * t) { return; } | |
19769 | static struct super_operations sops __attribute__ ((unused)) = { | |
19770 | .evict_inode = evict_inode, | |
19771 | }; | |
19772 | ||
19773 | int | |
19774 | main (void) | |
19775 | { | |
19776 | ||
19777 | ||
19778 | ; | |
19779 | return 0; | |
19780 | } | |
19781 | ||
19782 | _ACEOF | |
19783 | ||
19784 | ||
19785 | ||
19786 | cat - <<_ACEOF >conftest.h | |
19787 | ||
19788 | _ACEOF | |
19789 | ||
19790 | ||
19791 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19792 | echo "obj-m := conftest.o" >build/Makefile | |
19793 | modpost_flag='' | |
19794 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19795 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19796 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19797 | (eval $ac_try) 2>&5 | |
19798 | ac_status=$? | |
19799 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19800 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19801 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19802 | (eval $ac_try) 2>&5 | |
19803 | ac_status=$? | |
19804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19805 | test $ac_status = 0; }; }; then : | |
19806 | ||
19807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19808 | $as_echo "yes" >&6; } | |
19809 | ||
19810 | $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h | |
19811 | ||
19812 | ||
19813 | else | |
19814 | $as_echo "$as_me: failed program was:" >&5 | |
19815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19816 | ||
19817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19818 | $as_echo "no" >&6; } | |
19819 | ||
19820 | ||
19821 | ||
19822 | fi | |
19823 | rm -Rf build | |
19824 | ||
19825 | ||
19826 | ||
19827 | ||
19828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5 | |
19829 | $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; } | |
19830 | ||
19831 | ||
19832 | cat confdefs.h - <<_ACEOF >conftest.c | |
19833 | ||
19834 | ||
19835 | #include <linux/fs.h> | |
19836 | ||
19837 | void dirty_inode(struct inode *a, int b) { return; } | |
19838 | ||
19839 | static const struct super_operations | |
19840 | sops __attribute__ ((unused)) = { | |
19841 | .dirty_inode = dirty_inode, | |
19842 | }; | |
19843 | ||
19844 | int | |
19845 | main (void) | |
19846 | { | |
19847 | ||
19848 | ||
19849 | ; | |
19850 | return 0; | |
19851 | } | |
19852 | ||
19853 | _ACEOF | |
19854 | ||
19855 | ||
19856 | ||
19857 | cat - <<_ACEOF >conftest.h | |
19858 | ||
19859 | _ACEOF | |
19860 | ||
19861 | ||
19862 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19863 | echo "obj-m := conftest.o" >build/Makefile | |
19864 | modpost_flag='' | |
19865 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19866 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19867 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19868 | (eval $ac_try) 2>&5 | |
19869 | ac_status=$? | |
19870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19871 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
19877 | ||
19878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19879 | $as_echo "yes" >&6; } | |
19880 | ||
19881 | $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h | |
19882 | ||
19883 | ||
19884 | else | |
19885 | $as_echo "$as_me: failed program was:" >&5 | |
19886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19887 | ||
19888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19889 | $as_echo "no" >&6; } | |
19890 | ||
19891 | ||
19892 | ||
19893 | fi | |
19894 | rm -Rf build | |
19895 | ||
19896 | ||
19897 | ||
19898 | ||
19899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5 | |
19900 | $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; } | |
19901 | ||
19902 | ||
19903 | cat confdefs.h - <<_ACEOF >conftest.c | |
19904 | ||
19905 | ||
19906 | #include <linux/fs.h> | |
19907 | ||
19908 | int nr_cached_objects(struct super_block *sb) { return 0; } | |
19909 | ||
19910 | static const struct super_operations | |
19911 | sops __attribute__ ((unused)) = { | |
19912 | .nr_cached_objects = nr_cached_objects, | |
19913 | }; | |
19914 | ||
19915 | int | |
19916 | main (void) | |
19917 | { | |
19918 | ||
19919 | ||
19920 | ; | |
19921 | return 0; | |
19922 | } | |
19923 | ||
19924 | _ACEOF | |
19925 | ||
19926 | ||
19927 | ||
19928 | cat - <<_ACEOF >conftest.h | |
19929 | ||
19930 | _ACEOF | |
19931 | ||
19932 | ||
19933 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19934 | echo "obj-m := conftest.o" >build/Makefile | |
19935 | modpost_flag='' | |
19936 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19937 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19938 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19939 | (eval $ac_try) 2>&5 | |
19940 | ac_status=$? | |
19941 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19942 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19943 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19944 | (eval $ac_try) 2>&5 | |
19945 | ac_status=$? | |
19946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19947 | test $ac_status = 0; }; }; then : | |
19948 | ||
19949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19950 | $as_echo "yes" >&6; } | |
19951 | ||
19952 | $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h | |
19953 | ||
19954 | ||
19955 | else | |
19956 | $as_echo "$as_me: failed program was:" >&5 | |
19957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19958 | ||
19959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19960 | $as_echo "no" >&6; } | |
19961 | ||
19962 | ||
19963 | ||
19964 | fi | |
19965 | rm -Rf build | |
19966 | ||
19967 | ||
19968 | ||
19969 | ||
19970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5 | |
19971 | $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; } | |
19972 | ||
19973 | ||
19974 | cat confdefs.h - <<_ACEOF >conftest.c | |
19975 | ||
19976 | ||
19977 | #include <linux/fs.h> | |
19978 | ||
19979 | void free_cached_objects(struct super_block *sb, int x) | |
19980 | { return; } | |
19981 | ||
19982 | static const struct super_operations | |
19983 | sops __attribute__ ((unused)) = { | |
19984 | .free_cached_objects = free_cached_objects, | |
19985 | }; | |
19986 | ||
19987 | int | |
19988 | main (void) | |
19989 | { | |
19990 | ||
19991 | ||
19992 | ; | |
19993 | return 0; | |
19994 | } | |
19995 | ||
19996 | _ACEOF | |
19997 | ||
19998 | ||
19999 | ||
20000 | cat - <<_ACEOF >conftest.h | |
20001 | ||
20002 | _ACEOF | |
20003 | ||
20004 | ||
20005 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20006 | echo "obj-m := conftest.o" >build/Makefile | |
20007 | modpost_flag='' | |
20008 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20009 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20010 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20011 | (eval $ac_try) 2>&5 | |
20012 | ac_status=$? | |
20013 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20014 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20015 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20016 | (eval $ac_try) 2>&5 | |
20017 | ac_status=$? | |
20018 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20019 | test $ac_status = 0; }; }; then : | |
20020 | ||
20021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20022 | $as_echo "yes" >&6; } | |
20023 | ||
20024 | $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h | |
20025 | ||
20026 | ||
20027 | else | |
20028 | $as_echo "$as_me: failed program was:" >&5 | |
20029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20030 | ||
20031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20032 | $as_echo "no" >&6; } | |
20033 | ||
20034 | ||
20035 | ||
20036 | fi | |
20037 | rm -Rf build | |
20038 | ||
20039 | ||
20040 | ||
20041 | ||
20042 | ||
20043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
20044 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
20045 | ||
20046 | ||
20047 | cat confdefs.h - <<_ACEOF >conftest.c | |
20048 | ||
20049 | ||
20050 | #include <linux/fs.h> | |
20051 | ||
20052 | long test_fallocate(struct file *file, int mode, | |
20053 | loff_t offset, loff_t len) { return 0; } | |
20054 | ||
20055 | static const struct file_operations | |
20056 | fops __attribute__ ((unused)) = { | |
20057 | .fallocate = test_fallocate, | |
20058 | }; | |
20059 | ||
20060 | int | |
20061 | main (void) | |
20062 | { | |
20063 | ||
20064 | ||
20065 | ; | |
20066 | return 0; | |
20067 | } | |
20068 | ||
20069 | _ACEOF | |
20070 | ||
20071 | ||
20072 | ||
20073 | cat - <<_ACEOF >conftest.h | |
20074 | ||
20075 | _ACEOF | |
20076 | ||
20077 | ||
20078 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20079 | echo "obj-m := conftest.o" >build/Makefile | |
20080 | modpost_flag='' | |
20081 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20082 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20083 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20084 | (eval $ac_try) 2>&5 | |
20085 | ac_status=$? | |
20086 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20087 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20088 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20089 | (eval $ac_try) 2>&5 | |
20090 | ac_status=$? | |
20091 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20092 | test $ac_status = 0; }; }; then : | |
20093 | ||
20094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20095 | $as_echo "yes" >&6; } | |
20096 | ||
20097 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
20098 | ||
20099 | ||
20100 | else | |
20101 | $as_echo "$as_me: failed program was:" >&5 | |
20102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20103 | ||
20104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20105 | $as_echo "no" >&6; } | |
20106 | ||
20107 | ||
20108 | ||
20109 | fi | |
20110 | rm -Rf build | |
20111 | ||
20112 | ||
20113 | ||
20114 | ||
20115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5 | |
20116 | $as_echo_n "checking whether iops->fallocate() exists... " >&6; } | |
20117 | ||
20118 | ||
20119 | cat confdefs.h - <<_ACEOF >conftest.c | |
20120 | ||
20121 | ||
20122 | #include <linux/fs.h> | |
20123 | ||
20124 | long test_fallocate(struct inode *inode, int mode, | |
20125 | loff_t offset, loff_t len) { return 0; } | |
20126 | ||
20127 | static const struct inode_operations | |
20128 | fops __attribute__ ((unused)) = { | |
20129 | .fallocate = test_fallocate, | |
20130 | }; | |
20131 | ||
20132 | int | |
20133 | main (void) | |
20134 | { | |
20135 | ||
20136 | ||
20137 | ; | |
20138 | return 0; | |
20139 | } | |
20140 | ||
20141 | _ACEOF | |
20142 | ||
20143 | ||
20144 | ||
20145 | cat - <<_ACEOF >conftest.h | |
20146 | ||
20147 | _ACEOF | |
20148 | ||
20149 | ||
20150 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20151 | echo "obj-m := conftest.o" >build/Makefile | |
20152 | modpost_flag='' | |
20153 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20154 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20155 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20156 | (eval $ac_try) 2>&5 | |
20157 | ac_status=$? | |
20158 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20159 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20160 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20161 | (eval $ac_try) 2>&5 | |
20162 | ac_status=$? | |
20163 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20164 | test $ac_status = 0; }; }; then : | |
20165 | ||
20166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20167 | $as_echo "yes" >&6; } | |
20168 | ||
20169 | $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h | |
20170 | ||
20171 | ||
20172 | else | |
20173 | $as_echo "$as_me: failed program was:" >&5 | |
20174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20175 | ||
20176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20177 | $as_echo "no" >&6; } | |
20178 | ||
20179 | ||
20180 | ||
20181 | fi | |
20182 | rm -Rf build | |
20183 | ||
20184 | ||
20185 | ||
20186 | ||
20187 | ||
20188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5 | |
20189 | $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; } | |
20190 | ||
20191 | ||
20192 | cat confdefs.h - <<_ACEOF >conftest.c | |
20193 | ||
20194 | ||
20195 | #include <linux/fs.h> | |
20196 | ||
20197 | static const struct file_operations | |
20198 | fops __attribute__ ((unused)) = { | |
20199 | .aio_fsync = NULL, | |
20200 | }; | |
20201 | ||
20202 | int | |
20203 | main (void) | |
20204 | { | |
20205 | ||
20206 | ||
20207 | ; | |
20208 | return 0; | |
20209 | } | |
20210 | ||
20211 | _ACEOF | |
20212 | ||
20213 | ||
20214 | ||
20215 | cat - <<_ACEOF >conftest.h | |
20216 | ||
20217 | _ACEOF | |
20218 | ||
20219 | ||
20220 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20221 | echo "obj-m := conftest.o" >build/Makefile | |
20222 | modpost_flag='' | |
20223 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20224 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20225 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20226 | (eval $ac_try) 2>&5 | |
20227 | ac_status=$? | |
20228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20229 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20230 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20231 | (eval $ac_try) 2>&5 | |
20232 | ac_status=$? | |
20233 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20234 | test $ac_status = 0; }; }; then : | |
20235 | ||
20236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20237 | $as_echo "yes" >&6; } | |
20238 | ||
20239 | $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h | |
20240 | ||
20241 | ||
20242 | else | |
20243 | $as_echo "$as_me: failed program was:" >&5 | |
20244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20245 | ||
20246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20247 | $as_echo "no" >&6; } | |
20248 | ||
20249 | ||
20250 | ||
20251 | fi | |
20252 | rm -Rf build | |
20253 | ||
20254 | ||
20255 | ||
20256 | ||
20257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5 | |
20258 | $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; } | |
20259 | ||
20260 | ||
20261 | cat confdefs.h - <<_ACEOF >conftest.c | |
20262 | ||
20263 | ||
20264 | #include <linux/fs.h> | |
20265 | ||
20266 | int mkdir(struct inode *inode, struct dentry *dentry, | |
20267 | umode_t umode) { return 0; } | |
20268 | ||
20269 | static const struct inode_operations | |
20270 | iops __attribute__ ((unused)) = { | |
20271 | .mkdir = mkdir, | |
20272 | }; | |
20273 | ||
20274 | int | |
20275 | main (void) | |
20276 | { | |
20277 | ||
20278 | ||
20279 | ; | |
20280 | return 0; | |
20281 | } | |
20282 | ||
20283 | _ACEOF | |
20284 | ||
20285 | ||
20286 | ||
20287 | cat - <<_ACEOF >conftest.h | |
20288 | ||
20289 | _ACEOF | |
20290 | ||
20291 | ||
20292 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20293 | echo "obj-m := conftest.o" >build/Makefile | |
20294 | modpost_flag='' | |
20295 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20296 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20297 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20298 | (eval $ac_try) 2>&5 | |
20299 | ac_status=$? | |
20300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20301 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20302 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20303 | (eval $ac_try) 2>&5 | |
20304 | ac_status=$? | |
20305 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20306 | test $ac_status = 0; }; }; then : | |
20307 | ||
20308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20309 | $as_echo "yes" >&6; } | |
20310 | ||
20311 | $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h | |
20312 | ||
20313 | ||
20314 | else | |
20315 | $as_echo "$as_me: failed program was:" >&5 | |
20316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20317 | ||
20318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20319 | $as_echo "no" >&6; } | |
20320 | ||
20321 | ||
20322 | ||
20323 | fi | |
20324 | rm -Rf build | |
20325 | ||
20326 | ||
20327 | ||
20328 | ||
20329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5 | |
20330 | $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; } | |
20331 | ||
20332 | ||
20333 | cat confdefs.h - <<_ACEOF >conftest.c | |
20334 | ||
20335 | ||
20336 | #include <linux/fs.h> | |
20337 | ||
20338 | struct dentry *inode_lookup(struct inode *inode, | |
20339 | struct dentry *dentry, struct nameidata *nidata) | |
20340 | { return NULL; } | |
20341 | ||
20342 | static const struct inode_operations iops | |
20343 | __attribute__ ((unused)) = { | |
20344 | .lookup = inode_lookup, | |
20345 | }; | |
20346 | ||
20347 | int | |
20348 | main (void) | |
20349 | { | |
20350 | ||
20351 | ||
20352 | ; | |
20353 | return 0; | |
20354 | } | |
20355 | ||
20356 | _ACEOF | |
20357 | ||
20358 | ||
20359 | ||
20360 | cat - <<_ACEOF >conftest.h | |
20361 | ||
20362 | _ACEOF | |
20363 | ||
20364 | ||
20365 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20366 | echo "obj-m := conftest.o" >build/Makefile | |
20367 | modpost_flag='' | |
20368 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20369 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20370 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20371 | (eval $ac_try) 2>&5 | |
20372 | ac_status=$? | |
20373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20374 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20375 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20376 | (eval $ac_try) 2>&5 | |
20377 | ac_status=$? | |
20378 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20379 | test $ac_status = 0; }; }; then : | |
20380 | ||
20381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20382 | $as_echo "yes" >&6; } | |
20383 | ||
20384 | $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h | |
20385 | ||
20386 | ||
20387 | else | |
20388 | $as_echo "$as_me: failed program was:" >&5 | |
20389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20390 | ||
20391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20392 | $as_echo "no" >&6; } | |
20393 | ||
20394 | ||
20395 | ||
20396 | fi | |
20397 | rm -Rf build | |
20398 | ||
20399 | ||
20400 | ||
20401 | ||
20402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5 | |
20403 | $as_echo_n "checking whether iops->create() passes nameidata... " >&6; } | |
20404 | ||
20405 | ||
20406 | cat confdefs.h - <<_ACEOF >conftest.c | |
20407 | ||
20408 | ||
20409 | #include <linux/fs.h> | |
20410 | ||
20411 | #ifdef HAVE_MKDIR_UMODE_T | |
20412 | int inode_create(struct inode *inode ,struct dentry *dentry, | |
20413 | umode_t umode, struct nameidata *nidata) { return 0; } | |
20414 | #else | |
20415 | int inode_create(struct inode *inode,struct dentry *dentry, | |
20416 | int umode, struct nameidata * nidata) { return 0; } | |
20417 | #endif | |
20418 | ||
20419 | static const struct inode_operations | |
20420 | iops __attribute__ ((unused)) = { | |
20421 | .create = inode_create, | |
20422 | }; | |
20423 | ||
20424 | int | |
20425 | main (void) | |
20426 | { | |
20427 | ||
20428 | ||
20429 | ; | |
20430 | return 0; | |
20431 | } | |
20432 | ||
20433 | _ACEOF | |
20434 | ||
20435 | ||
20436 | ||
20437 | cat - <<_ACEOF >conftest.h | |
20438 | ||
20439 | _ACEOF | |
20440 | ||
20441 | ||
20442 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20443 | echo "obj-m := conftest.o" >build/Makefile | |
20444 | modpost_flag='' | |
20445 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20446 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20447 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20448 | (eval $ac_try) 2>&5 | |
20449 | ac_status=$? | |
20450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20451 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20452 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20453 | (eval $ac_try) 2>&5 | |
20454 | ac_status=$? | |
20455 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20456 | test $ac_status = 0; }; }; then : | |
20457 | ||
20458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20459 | $as_echo "yes" >&6; } | |
20460 | ||
20461 | $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h | |
20462 | ||
20463 | ||
20464 | else | |
20465 | $as_echo "$as_me: failed program was:" >&5 | |
20466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20467 | ||
20468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20469 | $as_echo "no" >&6; } | |
20470 | ||
20471 | ||
20472 | ||
20473 | fi | |
20474 | rm -Rf build | |
20475 | ||
20476 | ||
20477 | ||
20478 | ||
20479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5 | |
20480 | $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; } | |
20481 | ||
20482 | ||
20483 | cat confdefs.h - <<_ACEOF >conftest.c | |
20484 | ||
20485 | ||
20486 | #include <linux/fs.h> | |
20487 | const char *get_link(struct dentry *de, struct inode *ip, | |
20488 | struct delayed_call *done) { return "symlink"; } | |
20489 | static struct inode_operations | |
20490 | iops __attribute__ ((unused)) = { | |
20491 | .get_link = get_link, | |
20492 | }; | |
20493 | ||
20494 | int | |
20495 | main (void) | |
20496 | { | |
20497 | ||
20498 | ||
20499 | ; | |
20500 | return 0; | |
20501 | } | |
20502 | ||
20503 | _ACEOF | |
20504 | ||
20505 | ||
20506 | ||
20507 | cat - <<_ACEOF >conftest.h | |
20508 | ||
20509 | _ACEOF | |
20510 | ||
20511 | ||
20512 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20513 | echo "obj-m := conftest.o" >build/Makefile | |
20514 | modpost_flag='' | |
20515 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20516 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20517 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20518 | (eval $ac_try) 2>&5 | |
20519 | ac_status=$? | |
20520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20521 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20522 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20523 | (eval $ac_try) 2>&5 | |
20524 | ac_status=$? | |
20525 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20526 | test $ac_status = 0; }; }; then : | |
20527 | ||
20528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20529 | $as_echo "yes" >&6; } | |
20530 | ||
20531 | $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h | |
20532 | ||
20533 | ||
20534 | else | |
20535 | $as_echo "$as_me: failed program was:" >&5 | |
20536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20537 | ||
20538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20539 | $as_echo "no" >&6; } | |
20540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5 | |
20541 | $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; } | |
20542 | ||
20543 | ||
20544 | cat confdefs.h - <<_ACEOF >conftest.c | |
20545 | ||
20546 | ||
20547 | #include <linux/fs.h> | |
20548 | const char *get_link(struct dentry *de, struct | |
20549 | inode *ip, void **cookie) { return "symlink"; } | |
20550 | static struct inode_operations | |
20551 | iops __attribute__ ((unused)) = { | |
20552 | .get_link = get_link, | |
20553 | }; | |
20554 | ||
20555 | int | |
20556 | main (void) | |
20557 | { | |
20558 | ||
20559 | ||
20560 | ; | |
20561 | return 0; | |
20562 | } | |
20563 | ||
20564 | _ACEOF | |
20565 | ||
20566 | ||
20567 | ||
20568 | cat - <<_ACEOF >conftest.h | |
20569 | ||
20570 | _ACEOF | |
20571 | ||
20572 | ||
20573 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20574 | echo "obj-m := conftest.o" >build/Makefile | |
20575 | modpost_flag='' | |
20576 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20577 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20578 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20579 | (eval $ac_try) 2>&5 | |
20580 | ac_status=$? | |
20581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20582 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20583 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20584 | (eval $ac_try) 2>&5 | |
20585 | ac_status=$? | |
20586 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20587 | test $ac_status = 0; }; }; then : | |
20588 | ||
20589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20590 | $as_echo "yes" >&6; } | |
20591 | ||
20592 | $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h | |
20593 | ||
20594 | ||
20595 | else | |
20596 | $as_echo "$as_me: failed program was:" >&5 | |
20597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20598 | ||
20599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20600 | $as_echo "no" >&6; } | |
20601 | ||
20602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5 | |
20603 | $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; } | |
20604 | ||
20605 | ||
20606 | cat confdefs.h - <<_ACEOF >conftest.c | |
20607 | ||
20608 | ||
20609 | #include <linux/fs.h> | |
20610 | const char *follow_link(struct dentry *de, | |
20611 | void **cookie) { return "symlink"; } | |
20612 | static struct inode_operations | |
20613 | iops __attribute__ ((unused)) = { | |
20614 | .follow_link = follow_link, | |
20615 | }; | |
20616 | ||
20617 | int | |
20618 | main (void) | |
20619 | { | |
20620 | ||
20621 | ||
20622 | ; | |
20623 | return 0; | |
20624 | } | |
20625 | ||
20626 | _ACEOF | |
20627 | ||
20628 | ||
20629 | ||
20630 | cat - <<_ACEOF >conftest.h | |
20631 | ||
20632 | _ACEOF | |
20633 | ||
20634 | ||
20635 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20636 | echo "obj-m := conftest.o" >build/Makefile | |
20637 | modpost_flag='' | |
20638 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20639 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20640 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20641 | (eval $ac_try) 2>&5 | |
20642 | ac_status=$? | |
20643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20644 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20645 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20646 | (eval $ac_try) 2>&5 | |
20647 | ac_status=$? | |
20648 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20649 | test $ac_status = 0; }; }; then : | |
20650 | ||
20651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20652 | $as_echo "yes" >&6; } | |
20653 | ||
20654 | $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h | |
20655 | ||
20656 | ||
20657 | else | |
20658 | $as_echo "$as_me: failed program was:" >&5 | |
20659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20660 | ||
20661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20662 | $as_echo "no" >&6; } | |
20663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5 | |
20664 | $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; } | |
20665 | ||
20666 | ||
20667 | cat confdefs.h - <<_ACEOF >conftest.c | |
20668 | ||
20669 | ||
20670 | #include <linux/fs.h> | |
20671 | void *follow_link(struct dentry *de, struct | |
20672 | nameidata *nd) { return (void *)NULL; } | |
20673 | static struct inode_operations | |
20674 | iops __attribute__ ((unused)) = { | |
20675 | .follow_link = follow_link, | |
20676 | }; | |
20677 | ||
20678 | int | |
20679 | main (void) | |
20680 | { | |
20681 | ||
20682 | ||
20683 | ; | |
20684 | return 0; | |
20685 | } | |
20686 | ||
20687 | _ACEOF | |
20688 | ||
20689 | ||
20690 | ||
20691 | cat - <<_ACEOF >conftest.h | |
20692 | ||
20693 | _ACEOF | |
20694 | ||
20695 | ||
20696 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20697 | echo "obj-m := conftest.o" >build/Makefile | |
20698 | modpost_flag='' | |
20699 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20700 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20701 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20702 | (eval $ac_try) 2>&5 | |
20703 | ac_status=$? | |
20704 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20705 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20706 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20707 | (eval $ac_try) 2>&5 | |
20708 | ac_status=$? | |
20709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20710 | test $ac_status = 0; }; }; then : | |
20711 | ||
20712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20713 | $as_echo "yes" >&6; } | |
20714 | ||
20715 | $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h | |
20716 | ||
20717 | ||
20718 | else | |
20719 | $as_echo "$as_me: failed program was:" >&5 | |
20720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20721 | ||
20722 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
20723 | ||
20724 | ||
20725 | ||
20726 | fi | |
20727 | rm -Rf build | |
20728 | ||
20729 | ||
20730 | ||
20731 | ||
20732 | ||
20733 | fi | |
20734 | rm -Rf build | |
20735 | ||
20736 | ||
20737 | ||
20738 | ||
20739 | ||
20740 | ||
20741 | fi | |
20742 | rm -Rf build | |
20743 | ||
20744 | ||
20745 | ||
20746 | ||
20747 | ||
20748 | fi | |
20749 | rm -Rf build | |
20750 | ||
20751 | ||
20752 | ||
20753 | ||
20754 | ||
20755 | ||
20756 | cat confdefs.h - <<_ACEOF >conftest.c | |
20757 | ||
20758 | ||
20759 | #if !defined(HAVE_GET_LINK_DELAYED) | |
20760 | #error "Expecting get_link() delayed done" | |
20761 | #endif | |
20762 | ||
20763 | int | |
20764 | main (void) | |
20765 | { | |
20766 | ||
20767 | ||
20768 | ; | |
20769 | return 0; | |
20770 | } | |
20771 | ||
20772 | _ACEOF | |
20773 | ||
20774 | ||
20775 | ||
20776 | cat - <<_ACEOF >conftest.h | |
20777 | ||
20778 | _ACEOF | |
20779 | ||
20780 | ||
20781 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20782 | echo "obj-m := conftest.o" >build/Makefile | |
20783 | modpost_flag='' | |
20784 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20785 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20786 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20787 | (eval $ac_try) 2>&5 | |
20788 | ac_status=$? | |
20789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20790 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20791 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20792 | (eval $ac_try) 2>&5 | |
20793 | ac_status=$? | |
20794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20795 | test $ac_status = 0; }; }; then : | |
20796 | ||
20797 | ||
20798 | $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h | |
20799 | ||
20800 | ||
20801 | else | |
20802 | $as_echo "$as_me: failed program was:" >&5 | |
20803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20804 | ||
20805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5 | |
20806 | $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; } | |
20807 | ||
20808 | ||
20809 | cat confdefs.h - <<_ACEOF >conftest.c | |
20810 | ||
20811 | ||
20812 | #include <linux/fs.h> | |
20813 | void put_link(struct inode *ip, void *cookie) | |
20814 | { return; } | |
20815 | static struct inode_operations | |
20816 | iops __attribute__ ((unused)) = { | |
20817 | .put_link = put_link, | |
20818 | }; | |
20819 | ||
20820 | int | |
20821 | main (void) | |
20822 | { | |
20823 | ||
20824 | ||
20825 | ; | |
20826 | return 0; | |
20827 | } | |
20828 | ||
20829 | _ACEOF | |
20830 | ||
20831 | ||
20832 | ||
20833 | cat - <<_ACEOF >conftest.h | |
20834 | ||
20835 | _ACEOF | |
20836 | ||
20837 | ||
20838 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20839 | echo "obj-m := conftest.o" >build/Makefile | |
20840 | modpost_flag='' | |
20841 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20842 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20843 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20844 | (eval $ac_try) 2>&5 | |
20845 | ac_status=$? | |
20846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20847 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20848 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20849 | (eval $ac_try) 2>&5 | |
20850 | ac_status=$? | |
20851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20852 | test $ac_status = 0; }; }; then : | |
20853 | ||
20854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20855 | $as_echo "yes" >&6; } | |
20856 | ||
20857 | $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h | |
20858 | ||
20859 | ||
20860 | else | |
20861 | $as_echo "$as_me: failed program was:" >&5 | |
20862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20863 | ||
20864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20865 | $as_echo "no" >&6; } | |
20866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5 | |
20867 | $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; } | |
20868 | ||
20869 | ||
20870 | cat confdefs.h - <<_ACEOF >conftest.c | |
20871 | ||
20872 | ||
20873 | #include <linux/fs.h> | |
20874 | void put_link(struct dentry *de, struct | |
20875 | nameidata *nd, void *ptr) { return; } | |
20876 | static struct inode_operations | |
20877 | iops __attribute__ ((unused)) = { | |
20878 | .put_link = put_link, | |
20879 | }; | |
20880 | ||
20881 | int | |
20882 | main (void) | |
20883 | { | |
20884 | ||
20885 | ||
20886 | ; | |
20887 | return 0; | |
20888 | } | |
20889 | ||
20890 | _ACEOF | |
20891 | ||
20892 | ||
20893 | ||
20894 | cat - <<_ACEOF >conftest.h | |
20895 | ||
20896 | _ACEOF | |
20897 | ||
20898 | ||
20899 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20900 | echo "obj-m := conftest.o" >build/Makefile | |
20901 | modpost_flag='' | |
20902 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20903 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20904 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20905 | (eval $ac_try) 2>&5 | |
20906 | ac_status=$? | |
20907 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20908 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20909 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20910 | (eval $ac_try) 2>&5 | |
20911 | ac_status=$? | |
20912 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20913 | test $ac_status = 0; }; }; then : | |
20914 | ||
20915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20916 | $as_echo "yes" >&6; } | |
20917 | ||
20918 | $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h | |
20919 | ||
20920 | ||
20921 | else | |
20922 | $as_echo "$as_me: failed program was:" >&5 | |
20923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20924 | ||
20925 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
20926 | ||
20927 | ||
20928 | ||
20929 | fi | |
20930 | rm -Rf build | |
20931 | ||
20932 | ||
20933 | ||
20934 | ||
20935 | ||
20936 | fi | |
20937 | rm -Rf build | |
20938 | ||
20939 | ||
20940 | ||
20941 | ||
20942 | ||
20943 | fi | |
20944 | rm -Rf build | |
20945 | ||
20946 | ||
20947 | ||
20948 | ||
20949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5 | |
20950 | $as_echo_n "checking whether iops->truncate_range() exists... " >&6; } | |
20951 | ||
20952 | ||
20953 | cat confdefs.h - <<_ACEOF >conftest.c | |
20954 | ||
20955 | ||
20956 | #include <linux/fs.h> | |
20957 | void truncate_range(struct inode *inode, loff_t start, | |
20958 | loff_t end) { return; } | |
20959 | static struct inode_operations iops __attribute__ ((unused)) = { | |
20960 | .truncate_range = truncate_range, | |
20961 | }; | |
20962 | ||
20963 | int | |
20964 | main (void) | |
20965 | { | |
20966 | ||
20967 | ||
20968 | ; | |
20969 | return 0; | |
20970 | } | |
20971 | ||
20972 | _ACEOF | |
20973 | ||
20974 | ||
20975 | ||
20976 | cat - <<_ACEOF >conftest.h | |
20977 | ||
20978 | _ACEOF | |
20979 | ||
20980 | ||
20981 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
20982 | echo "obj-m := conftest.o" >build/Makefile | |
20983 | modpost_flag='' | |
20984 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20985 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
20986 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
20987 | (eval $ac_try) 2>&5 | |
20988 | ac_status=$? | |
20989 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20990 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
20996 | ||
20997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20998 | $as_echo "yes" >&6; } | |
20999 | ||
21000 | $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h | |
21001 | ||
21002 | ||
21003 | else | |
21004 | $as_echo "$as_me: failed program was:" >&5 | |
21005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21006 | ||
21007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21008 | $as_echo "no" >&6; } | |
21009 | ||
21010 | ||
21011 | ||
21012 | fi | |
21013 | rm -Rf build | |
21014 | ||
21015 | ||
21016 | ||
21017 | ||
21018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5 | |
21019 | $as_echo_n "checking whether dops->d_automount() exists... " >&6; } | |
21020 | ||
21021 | ||
21022 | cat confdefs.h - <<_ACEOF >conftest.c | |
21023 | ||
21024 | ||
21025 | #include <linux/dcache.h> | |
21026 | struct vfsmount *d_automount(struct path *p) { return NULL; } | |
21027 | struct dentry_operations dops __attribute__ ((unused)) = { | |
21028 | .d_automount = d_automount, | |
21029 | }; | |
21030 | ||
21031 | int | |
21032 | main (void) | |
21033 | { | |
21034 | ||
21035 | ||
21036 | ; | |
21037 | return 0; | |
21038 | } | |
21039 | ||
21040 | _ACEOF | |
21041 | ||
21042 | ||
21043 | ||
21044 | cat - <<_ACEOF >conftest.h | |
21045 | ||
21046 | _ACEOF | |
21047 | ||
21048 | ||
21049 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21050 | echo "obj-m := conftest.o" >build/Makefile | |
21051 | modpost_flag='' | |
21052 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21053 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21054 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21055 | (eval $ac_try) 2>&5 | |
21056 | ac_status=$? | |
21057 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21058 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21059 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21060 | (eval $ac_try) 2>&5 | |
21061 | ac_status=$? | |
21062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21063 | test $ac_status = 0; }; }; then : | |
21064 | ||
21065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21066 | $as_echo "yes" >&6; } | |
21067 | ||
21068 | $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h | |
21069 | ||
21070 | ||
21071 | else | |
21072 | $as_echo "$as_me: failed program was:" >&5 | |
21073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21074 | ||
21075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21076 | $as_echo "no" >&6; } | |
21077 | ||
21078 | ||
21079 | ||
21080 | fi | |
21081 | rm -Rf build | |
21082 | ||
21083 | ||
21084 | ||
21085 | ||
21086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5 | |
21087 | $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; } | |
21088 | ||
21089 | ||
21090 | cat confdefs.h - <<_ACEOF >conftest.c | |
21091 | ||
21092 | ||
21093 | #include <linux/exportfs.h> | |
21094 | int encode_fh(struct inode *inode, __u32 *fh, int *max_len, | |
21095 | struct inode *parent) { return 0; } | |
21096 | static struct export_operations eops __attribute__ ((unused))={ | |
21097 | .encode_fh = encode_fh, | |
21098 | }; | |
21099 | ||
21100 | int | |
21101 | main (void) | |
21102 | { | |
21103 | ||
21104 | ||
21105 | ; | |
21106 | return 0; | |
21107 | } | |
21108 | ||
21109 | _ACEOF | |
21110 | ||
21111 | ||
21112 | ||
21113 | cat - <<_ACEOF >conftest.h | |
21114 | ||
21115 | _ACEOF | |
21116 | ||
21117 | ||
21118 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21119 | echo "obj-m := conftest.o" >build/Makefile | |
21120 | modpost_flag='' | |
21121 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21122 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21123 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21124 | (eval $ac_try) 2>&5 | |
21125 | ac_status=$? | |
21126 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21127 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21128 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21129 | (eval $ac_try) 2>&5 | |
21130 | ac_status=$? | |
21131 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21132 | test $ac_status = 0; }; }; then : | |
21133 | ||
21134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21135 | $as_echo "yes" >&6; } | |
21136 | ||
21137 | $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h | |
21138 | ||
21139 | ||
21140 | else | |
21141 | $as_echo "$as_me: failed program was:" >&5 | |
21142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21143 | ||
21144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21145 | $as_echo "no" >&6; } | |
21146 | ||
21147 | ||
21148 | ||
21149 | fi | |
21150 | rm -Rf build | |
21151 | ||
21152 | ||
21153 | ||
21154 | ||
21155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5 | |
21156 | $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; } | |
21157 | ||
21158 | ||
21159 | cat confdefs.h - <<_ACEOF >conftest.c | |
21160 | ||
21161 | ||
21162 | #include <linux/exportfs.h> | |
21163 | int commit_metadata(struct inode *inode) { return 0; } | |
21164 | static struct export_operations eops __attribute__ ((unused))={ | |
21165 | .commit_metadata = commit_metadata, | |
21166 | }; | |
21167 | ||
21168 | int | |
21169 | main (void) | |
21170 | { | |
21171 | ||
21172 | ||
21173 | ; | |
21174 | return 0; | |
21175 | } | |
21176 | ||
21177 | _ACEOF | |
21178 | ||
21179 | ||
21180 | ||
21181 | cat - <<_ACEOF >conftest.h | |
21182 | ||
21183 | _ACEOF | |
21184 | ||
21185 | ||
21186 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21187 | echo "obj-m := conftest.o" >build/Makefile | |
21188 | modpost_flag='' | |
21189 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21190 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21191 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21192 | (eval $ac_try) 2>&5 | |
21193 | ac_status=$? | |
21194 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21195 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21196 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21197 | (eval $ac_try) 2>&5 | |
21198 | ac_status=$? | |
21199 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21200 | test $ac_status = 0; }; }; then : | |
21201 | ||
21202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21203 | $as_echo "yes" >&6; } | |
21204 | ||
21205 | $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h | |
21206 | ||
21207 | ||
21208 | else | |
21209 | $as_echo "$as_me: failed program was:" >&5 | |
21210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21211 | ||
21212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21213 | $as_echo "no" >&6; } | |
21214 | ||
21215 | ||
21216 | ||
21217 | fi | |
21218 | rm -Rf build | |
21219 | ||
21220 | ||
21221 | ||
21222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5 | |
21223 | $as_echo_n "checking whether clear_inode() is available... " >&6; } | |
21224 | ||
21225 | ||
21226 | ||
21227 | cat confdefs.h - <<_ACEOF >conftest.c | |
21228 | ||
21229 | ||
21230 | #include <linux/fs.h> | |
21231 | ||
21232 | int | |
21233 | main (void) | |
21234 | { | |
21235 | ||
21236 | clear_inode(NULL); | |
21237 | ||
21238 | ; | |
21239 | return 0; | |
21240 | } | |
21241 | ||
21242 | _ACEOF | |
21243 | ||
21244 | ||
21245 | ||
21246 | cat - <<_ACEOF >conftest.h | |
21247 | ||
21248 | _ACEOF | |
21249 | ||
21250 | ||
21251 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21252 | echo "obj-m := conftest.o" >build/Makefile | |
21253 | modpost_flag='' | |
21254 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21255 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21256 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21257 | (eval $ac_try) 2>&5 | |
21258 | ac_status=$? | |
21259 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21260 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21261 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21262 | (eval $ac_try) 2>&5 | |
21263 | ac_status=$? | |
21264 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21265 | test $ac_status = 0; }; }; then : | |
21266 | rc=0 | |
21267 | else | |
21268 | $as_echo "$as_me: failed program was:" >&5 | |
21269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21270 | rc=1 | |
21271 | ||
21272 | ||
21273 | fi | |
21274 | rm -Rf build | |
21275 | ||
21276 | ||
21277 | if test $rc -ne 0; then : | |
21278 | ||
21279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21280 | $as_echo "no" >&6; } | |
21281 | ||
21282 | else | |
21283 | if test "x$enable_linux_builtin" != xyes; then | |
21284 | ||
21285 | grep -q -E '[[:space:]]clear_inode[[:space:]]' \ | |
21286 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21287 | rc=$? | |
21288 | if test $rc -ne 0; then | |
21289 | export=0 | |
21290 | for file in fs/inode.c; do | |
21291 | grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \ | |
21292 | "$LINUX/$file" 2>/dev/null | |
21293 | rc=$? | |
21294 | if test $rc -eq 0; then | |
21295 | export=1 | |
21296 | break; | |
21297 | fi | |
21298 | done | |
21299 | if test $export -eq 0; then : | |
21300 | rc=1 | |
21301 | else : | |
21302 | rc=0 | |
21303 | fi | |
21304 | else : | |
21305 | rc=0 | |
21306 | fi | |
21307 | ||
21308 | fi | |
21309 | if test $rc -ne 0; then : | |
21310 | ||
21311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21312 | $as_echo "no" >&6; } | |
21313 | ||
21314 | else : | |
21315 | ||
21316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21317 | $as_echo "yes" >&6; } | |
21318 | ||
21319 | $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h | |
21320 | ||
21321 | ||
21322 | fi | |
21323 | fi | |
21324 | ||
21325 | ||
21326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5 | |
21327 | $as_echo_n "checking whether setattr_prepare() is available... " >&6; } | |
21328 | ||
21329 | ||
21330 | ||
21331 | cat confdefs.h - <<_ACEOF >conftest.c | |
21332 | ||
21333 | ||
21334 | #include <linux/fs.h> | |
21335 | ||
21336 | int | |
21337 | main (void) | |
21338 | { | |
21339 | ||
21340 | struct dentry *dentry = NULL; | |
21341 | struct iattr *attr = NULL; | |
21342 | int error; | |
21343 | ||
21344 | error = setattr_prepare(dentry, attr); | |
21345 | ||
21346 | ; | |
21347 | return 0; | |
21348 | } | |
21349 | ||
21350 | _ACEOF | |
21351 | ||
21352 | ||
21353 | ||
21354 | cat - <<_ACEOF >conftest.h | |
21355 | ||
21356 | _ACEOF | |
21357 | ||
21358 | ||
21359 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21360 | echo "obj-m := conftest.o" >build/Makefile | |
21361 | modpost_flag='' | |
21362 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21363 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21364 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21365 | (eval $ac_try) 2>&5 | |
21366 | ac_status=$? | |
21367 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21368 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21369 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21370 | (eval $ac_try) 2>&5 | |
21371 | ac_status=$? | |
21372 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21373 | test $ac_status = 0; }; }; then : | |
21374 | rc=0 | |
21375 | else | |
21376 | $as_echo "$as_me: failed program was:" >&5 | |
21377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21378 | rc=1 | |
21379 | ||
21380 | ||
21381 | fi | |
21382 | rm -Rf build | |
21383 | ||
21384 | ||
21385 | if test $rc -ne 0; then : | |
21386 | ||
21387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21388 | $as_echo "no" >&6; } | |
21389 | ||
21390 | else | |
21391 | if test "x$enable_linux_builtin" != xyes; then | |
21392 | ||
21393 | grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \ | |
21394 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21395 | rc=$? | |
21396 | if test $rc -ne 0; then | |
21397 | export=0 | |
21398 | for file in fs/attr.c; do | |
21399 | grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \ | |
21400 | "$LINUX/$file" 2>/dev/null | |
21401 | rc=$? | |
21402 | if test $rc -eq 0; then | |
21403 | export=1 | |
21404 | break; | |
21405 | fi | |
21406 | done | |
21407 | if test $export -eq 0; then : | |
21408 | rc=1 | |
21409 | else : | |
21410 | rc=0 | |
21411 | fi | |
21412 | else : | |
21413 | rc=0 | |
21414 | fi | |
21415 | ||
21416 | fi | |
21417 | if test $rc -ne 0; then : | |
21418 | ||
21419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21420 | $as_echo "no" >&6; } | |
21421 | ||
21422 | else : | |
21423 | ||
21424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21425 | $as_echo "yes" >&6; } | |
21426 | ||
21427 | $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h | |
21428 | ||
21429 | ||
21430 | fi | |
21431 | fi | |
21432 | ||
21433 | ||
21434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5 | |
21435 | $as_echo_n "checking whether insert_inode_locked() is available... " >&6; } | |
21436 | ||
21437 | ||
21438 | ||
21439 | cat confdefs.h - <<_ACEOF >conftest.c | |
21440 | ||
21441 | ||
21442 | #include <linux/fs.h> | |
21443 | ||
21444 | int | |
21445 | main (void) | |
21446 | { | |
21447 | ||
21448 | insert_inode_locked(NULL); | |
21449 | ||
21450 | ; | |
21451 | return 0; | |
21452 | } | |
21453 | ||
21454 | _ACEOF | |
21455 | ||
21456 | ||
21457 | ||
21458 | cat - <<_ACEOF >conftest.h | |
21459 | ||
21460 | _ACEOF | |
21461 | ||
21462 | ||
21463 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21464 | echo "obj-m := conftest.o" >build/Makefile | |
21465 | modpost_flag='' | |
21466 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21467 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21468 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21469 | (eval $ac_try) 2>&5 | |
21470 | ac_status=$? | |
21471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21472 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21473 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21474 | (eval $ac_try) 2>&5 | |
21475 | ac_status=$? | |
21476 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21477 | test $ac_status = 0; }; }; then : | |
21478 | rc=0 | |
21479 | else | |
21480 | $as_echo "$as_me: failed program was:" >&5 | |
21481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21482 | rc=1 | |
21483 | ||
21484 | ||
21485 | fi | |
21486 | rm -Rf build | |
21487 | ||
21488 | ||
21489 | if test $rc -ne 0; then : | |
21490 | ||
21491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21492 | $as_echo "no" >&6; } | |
21493 | ||
21494 | else | |
21495 | if test "x$enable_linux_builtin" != xyes; then | |
21496 | ||
21497 | grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \ | |
21498 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21499 | rc=$? | |
21500 | if test $rc -ne 0; then | |
21501 | export=0 | |
21502 | for file in fs/inode.c; do | |
21503 | grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \ | |
21504 | "$LINUX/$file" 2>/dev/null | |
21505 | rc=$? | |
21506 | if test $rc -eq 0; then | |
21507 | export=1 | |
21508 | break; | |
21509 | fi | |
21510 | done | |
21511 | if test $export -eq 0; then : | |
21512 | rc=1 | |
21513 | else : | |
21514 | rc=0 | |
21515 | fi | |
21516 | else : | |
21517 | rc=0 | |
21518 | fi | |
21519 | ||
21520 | fi | |
21521 | if test $rc -ne 0; then : | |
21522 | ||
21523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21524 | $as_echo "no" >&6; } | |
21525 | ||
21526 | else : | |
21527 | ||
21528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21529 | $as_echo "yes" >&6; } | |
21530 | ||
21531 | $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h | |
21532 | ||
21533 | ||
21534 | fi | |
21535 | fi | |
21536 | ||
21537 | ||
21538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5 | |
21539 | $as_echo_n "checking whether d_make_root() is available... " >&6; } | |
21540 | ||
21541 | ||
21542 | ||
21543 | cat confdefs.h - <<_ACEOF >conftest.c | |
21544 | ||
21545 | ||
21546 | #include <linux/dcache.h> | |
21547 | ||
21548 | int | |
21549 | main (void) | |
21550 | { | |
21551 | ||
21552 | d_make_root(NULL); | |
21553 | ||
21554 | ; | |
21555 | return 0; | |
21556 | } | |
21557 | ||
21558 | _ACEOF | |
21559 | ||
21560 | ||
21561 | ||
21562 | cat - <<_ACEOF >conftest.h | |
21563 | ||
21564 | _ACEOF | |
21565 | ||
21566 | ||
21567 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21568 | echo "obj-m := conftest.o" >build/Makefile | |
21569 | modpost_flag='' | |
21570 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21571 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21572 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21573 | (eval $ac_try) 2>&5 | |
21574 | ac_status=$? | |
21575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21576 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21577 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21578 | (eval $ac_try) 2>&5 | |
21579 | ac_status=$? | |
21580 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21581 | test $ac_status = 0; }; }; then : | |
21582 | rc=0 | |
21583 | else | |
21584 | $as_echo "$as_me: failed program was:" >&5 | |
21585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21586 | rc=1 | |
21587 | ||
21588 | ||
21589 | fi | |
21590 | rm -Rf build | |
21591 | ||
21592 | ||
21593 | if test $rc -ne 0; then : | |
21594 | ||
21595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21596 | $as_echo "no" >&6; } | |
21597 | ||
21598 | else | |
21599 | if test "x$enable_linux_builtin" != xyes; then | |
21600 | ||
21601 | grep -q -E '[[:space:]]d_make_root[[:space:]]' \ | |
21602 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21603 | rc=$? | |
21604 | if test $rc -ne 0; then | |
21605 | export=0 | |
21606 | for file in fs/dcache.c; do | |
21607 | grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \ | |
21608 | "$LINUX/$file" 2>/dev/null | |
21609 | rc=$? | |
21610 | if test $rc -eq 0; then | |
21611 | export=1 | |
21612 | break; | |
21613 | fi | |
21614 | done | |
21615 | if test $export -eq 0; then : | |
21616 | rc=1 | |
21617 | else : | |
21618 | rc=0 | |
21619 | fi | |
21620 | else : | |
21621 | rc=0 | |
21622 | fi | |
21623 | ||
21624 | fi | |
21625 | if test $rc -ne 0; then : | |
21626 | ||
21627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21628 | $as_echo "no" >&6; } | |
21629 | ||
21630 | else : | |
21631 | ||
21632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21633 | $as_echo "yes" >&6; } | |
21634 | ||
21635 | $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h | |
21636 | ||
21637 | ||
21638 | fi | |
21639 | fi | |
21640 | ||
21641 | ||
21642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5 | |
21643 | $as_echo_n "checking whether d_obtain_alias() is available... " >&6; } | |
21644 | ||
21645 | ||
21646 | ||
21647 | cat confdefs.h - <<_ACEOF >conftest.c | |
21648 | ||
21649 | ||
21650 | #include <linux/dcache.h> | |
21651 | ||
21652 | int | |
21653 | main (void) | |
21654 | { | |
21655 | ||
21656 | d_obtain_alias(NULL); | |
21657 | ||
21658 | ; | |
21659 | return 0; | |
21660 | } | |
21661 | ||
21662 | _ACEOF | |
21663 | ||
21664 | ||
21665 | ||
21666 | cat - <<_ACEOF >conftest.h | |
21667 | ||
21668 | _ACEOF | |
21669 | ||
21670 | ||
21671 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21672 | echo "obj-m := conftest.o" >build/Makefile | |
21673 | modpost_flag='' | |
21674 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21675 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21676 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21677 | (eval $ac_try) 2>&5 | |
21678 | ac_status=$? | |
21679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21680 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21681 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21682 | (eval $ac_try) 2>&5 | |
21683 | ac_status=$? | |
21684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21685 | test $ac_status = 0; }; }; then : | |
21686 | rc=0 | |
21687 | else | |
21688 | $as_echo "$as_me: failed program was:" >&5 | |
21689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21690 | rc=1 | |
21691 | ||
21692 | ||
21693 | fi | |
21694 | rm -Rf build | |
21695 | ||
21696 | ||
21697 | if test $rc -ne 0; then : | |
21698 | ||
21699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21700 | $as_echo "no" >&6; } | |
21701 | ||
21702 | else | |
21703 | if test "x$enable_linux_builtin" != xyes; then | |
21704 | ||
21705 | grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \ | |
21706 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21707 | rc=$? | |
21708 | if test $rc -ne 0; then | |
21709 | export=0 | |
21710 | for file in fs/dcache.c; do | |
21711 | grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \ | |
21712 | "$LINUX/$file" 2>/dev/null | |
21713 | rc=$? | |
21714 | if test $rc -eq 0; then | |
21715 | export=1 | |
21716 | break; | |
21717 | fi | |
21718 | done | |
21719 | if test $export -eq 0; then : | |
21720 | rc=1 | |
21721 | else : | |
21722 | rc=0 | |
21723 | fi | |
21724 | else : | |
21725 | rc=0 | |
21726 | fi | |
21727 | ||
21728 | fi | |
21729 | if test $rc -ne 0; then : | |
21730 | ||
21731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21732 | $as_echo "no" >&6; } | |
21733 | ||
21734 | else : | |
21735 | ||
21736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21737 | $as_echo "yes" >&6; } | |
21738 | ||
21739 | $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h | |
21740 | ||
21741 | ||
21742 | fi | |
21743 | fi | |
21744 | ||
21745 | ||
21746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5 | |
21747 | $as_echo_n "checking whether d_prune_aliases() is available... " >&6; } | |
21748 | ||
21749 | ||
21750 | ||
21751 | cat confdefs.h - <<_ACEOF >conftest.c | |
21752 | ||
21753 | ||
21754 | #include <linux/dcache.h> | |
21755 | ||
21756 | int | |
21757 | main (void) | |
21758 | { | |
21759 | ||
21760 | struct inode *ip = NULL; | |
21761 | d_prune_aliases(ip); | |
21762 | ||
21763 | ; | |
21764 | return 0; | |
21765 | } | |
21766 | ||
21767 | _ACEOF | |
21768 | ||
21769 | ||
21770 | ||
21771 | cat - <<_ACEOF >conftest.h | |
21772 | ||
21773 | _ACEOF | |
21774 | ||
21775 | ||
21776 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21777 | echo "obj-m := conftest.o" >build/Makefile | |
21778 | modpost_flag='' | |
21779 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21780 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21781 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21782 | (eval $ac_try) 2>&5 | |
21783 | ac_status=$? | |
21784 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21785 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21786 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21787 | (eval $ac_try) 2>&5 | |
21788 | ac_status=$? | |
21789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21790 | test $ac_status = 0; }; }; then : | |
21791 | rc=0 | |
21792 | else | |
21793 | $as_echo "$as_me: failed program was:" >&5 | |
21794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21795 | rc=1 | |
21796 | ||
21797 | ||
21798 | fi | |
21799 | rm -Rf build | |
21800 | ||
21801 | ||
21802 | if test $rc -ne 0; then : | |
21803 | ||
21804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21805 | $as_echo "no" >&6; } | |
21806 | ||
21807 | else | |
21808 | if test "x$enable_linux_builtin" != xyes; then | |
21809 | ||
21810 | grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \ | |
21811 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21812 | rc=$? | |
21813 | if test $rc -ne 0; then | |
21814 | export=0 | |
21815 | for file in fs/dcache.c; do | |
21816 | grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \ | |
21817 | "$LINUX/$file" 2>/dev/null | |
21818 | rc=$? | |
21819 | if test $rc -eq 0; then | |
21820 | export=1 | |
21821 | break; | |
21822 | fi | |
21823 | done | |
21824 | if test $export -eq 0; then : | |
21825 | rc=1 | |
21826 | else : | |
21827 | rc=0 | |
21828 | fi | |
21829 | else : | |
21830 | rc=0 | |
21831 | fi | |
21832 | ||
21833 | fi | |
21834 | if test $rc -ne 0; then : | |
21835 | ||
21836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21837 | $as_echo "no" >&6; } | |
21838 | ||
21839 | else : | |
21840 | ||
21841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21842 | $as_echo "yes" >&6; } | |
21843 | ||
21844 | $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h | |
21845 | ||
21846 | ||
21847 | fi | |
21848 | fi | |
21849 | ||
21850 | ||
21851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5 | |
21852 | $as_echo_n "checking whether d_set_d_op() is available... " >&6; } | |
21853 | ||
21854 | ||
21855 | ||
21856 | cat confdefs.h - <<_ACEOF >conftest.c | |
21857 | ||
21858 | ||
21859 | #include <linux/dcache.h> | |
21860 | ||
21861 | int | |
21862 | main (void) | |
21863 | { | |
21864 | ||
21865 | d_set_d_op(NULL, NULL); | |
21866 | ||
21867 | ; | |
21868 | return 0; | |
21869 | } | |
21870 | ||
21871 | _ACEOF | |
21872 | ||
21873 | ||
21874 | ||
21875 | cat - <<_ACEOF >conftest.h | |
21876 | ||
21877 | _ACEOF | |
21878 | ||
21879 | ||
21880 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21881 | echo "obj-m := conftest.o" >build/Makefile | |
21882 | modpost_flag='' | |
21883 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21884 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21885 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21886 | (eval $ac_try) 2>&5 | |
21887 | ac_status=$? | |
21888 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21889 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21890 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21891 | (eval $ac_try) 2>&5 | |
21892 | ac_status=$? | |
21893 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21894 | test $ac_status = 0; }; }; then : | |
21895 | rc=0 | |
21896 | else | |
21897 | $as_echo "$as_me: failed program was:" >&5 | |
21898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21899 | rc=1 | |
21900 | ||
21901 | ||
21902 | fi | |
21903 | rm -Rf build | |
21904 | ||
21905 | ||
21906 | if test $rc -ne 0; then : | |
21907 | ||
21908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21909 | $as_echo "no" >&6; } | |
21910 | ||
21911 | else | |
21912 | if test "x$enable_linux_builtin" != xyes; then | |
21913 | ||
21914 | grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \ | |
21915 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
21916 | rc=$? | |
21917 | if test $rc -ne 0; then | |
21918 | export=0 | |
21919 | for file in fs/dcache.c; do | |
21920 | grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \ | |
21921 | "$LINUX/$file" 2>/dev/null | |
21922 | rc=$? | |
21923 | if test $rc -eq 0; then | |
21924 | export=1 | |
21925 | break; | |
21926 | fi | |
21927 | done | |
21928 | if test $export -eq 0; then : | |
21929 | rc=1 | |
21930 | else : | |
21931 | rc=0 | |
21932 | fi | |
21933 | else : | |
21934 | rc=0 | |
21935 | fi | |
21936 | ||
21937 | fi | |
21938 | if test $rc -ne 0; then : | |
21939 | ||
21940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21941 | $as_echo "no" >&6; } | |
21942 | ||
21943 | else : | |
21944 | ||
21945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21946 | $as_echo "yes" >&6; } | |
21947 | ||
21948 | $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h | |
21949 | ||
21950 | ||
21951 | fi | |
21952 | fi | |
21953 | ||
21954 | ||
21955 | ||
21956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5 | |
21957 | $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; } | |
21958 | ||
21959 | ||
21960 | cat confdefs.h - <<_ACEOF >conftest.c | |
21961 | ||
21962 | ||
21963 | #include <linux/dcache.h> | |
21964 | ||
21965 | int revalidate (struct dentry *dentry, | |
21966 | struct nameidata *nidata) { return 0; } | |
21967 | ||
21968 | static const struct dentry_operations | |
21969 | dops __attribute__ ((unused)) = { | |
21970 | .d_revalidate = revalidate, | |
21971 | }; | |
21972 | ||
21973 | int | |
21974 | main (void) | |
21975 | { | |
21976 | ||
21977 | ||
21978 | ; | |
21979 | return 0; | |
21980 | } | |
21981 | ||
21982 | _ACEOF | |
21983 | ||
21984 | ||
21985 | ||
21986 | cat - <<_ACEOF >conftest.h | |
21987 | ||
21988 | _ACEOF | |
21989 | ||
21990 | ||
21991 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
21992 | echo "obj-m := conftest.o" >build/Makefile | |
21993 | modpost_flag='' | |
21994 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21995 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21996 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
21997 | (eval $ac_try) 2>&5 | |
21998 | ac_status=$? | |
21999 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22000 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22001 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22002 | (eval $ac_try) 2>&5 | |
22003 | ac_status=$? | |
22004 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22005 | test $ac_status = 0; }; }; then : | |
22006 | ||
22007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22008 | $as_echo "yes" >&6; } | |
22009 | ||
22010 | $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h | |
22011 | ||
22012 | ||
22013 | else | |
22014 | $as_echo "$as_me: failed program was:" >&5 | |
22015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22016 | ||
22017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22018 | $as_echo "no" >&6; } | |
22019 | ||
22020 | ||
22021 | ||
22022 | fi | |
22023 | rm -Rf build | |
22024 | ||
22025 | ||
22026 | ||
22027 | ||
22028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5 | |
22029 | $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; } | |
22030 | ||
22031 | ||
22032 | cat confdefs.h - <<_ACEOF >conftest.c | |
22033 | ||
22034 | ||
22035 | #include <linux/dcache.h> | |
22036 | ||
22037 | const struct dentry_operations test_d_op = { | |
22038 | .d_revalidate = NULL, | |
22039 | }; | |
22040 | ||
22041 | int | |
22042 | main (void) | |
22043 | { | |
22044 | ||
22045 | struct dentry d __attribute__ ((unused)); | |
22046 | ||
22047 | d.d_op = &test_d_op; | |
22048 | ||
22049 | ; | |
22050 | return 0; | |
22051 | } | |
22052 | ||
22053 | _ACEOF | |
22054 | ||
22055 | ||
22056 | ||
22057 | cat - <<_ACEOF >conftest.h | |
22058 | ||
22059 | _ACEOF | |
22060 | ||
22061 | ||
22062 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22063 | echo "obj-m := conftest.o" >build/Makefile | |
22064 | modpost_flag='' | |
22065 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22066 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22067 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22068 | (eval $ac_try) 2>&5 | |
22069 | ac_status=$? | |
22070 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22071 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22072 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22073 | (eval $ac_try) 2>&5 | |
22074 | ac_status=$? | |
22075 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22076 | test $ac_status = 0; }; }; then : | |
22077 | ||
22078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22079 | $as_echo "yes" >&6; } | |
22080 | ||
22081 | $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h | |
22082 | ||
22083 | ||
22084 | else | |
22085 | $as_echo "$as_me: failed program was:" >&5 | |
22086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22087 | ||
22088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22089 | $as_echo "no" >&6; } | |
22090 | ||
22091 | ||
22092 | ||
22093 | fi | |
22094 | rm -Rf build | |
22095 | ||
22096 | ||
22097 | ||
22098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5 | |
22099 | $as_echo_n "checking whether check_disk_size_change() is available... " >&6; } | |
22100 | ||
22101 | ||
22102 | ||
22103 | cat confdefs.h - <<_ACEOF >conftest.c | |
22104 | ||
22105 | ||
22106 | #include <linux/fs.h> | |
22107 | ||
22108 | int | |
22109 | main (void) | |
22110 | { | |
22111 | ||
22112 | check_disk_size_change(NULL, NULL); | |
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:]]check_disk_size_change[[: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/block_dev.c; do | |
22167 | grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \ | |
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_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h | |
22196 | ||
22197 | ||
22198 | fi | |
22199 | fi | |
22200 | ||
22201 | ||
22202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5 | |
22203 | $as_echo_n "checking whether truncate_setsize() is available... " >&6; } | |
22204 | ||
22205 | ||
22206 | ||
22207 | cat confdefs.h - <<_ACEOF >conftest.c | |
22208 | ||
22209 | ||
22210 | #include <linux/mm.h> | |
22211 | ||
22212 | int | |
22213 | main (void) | |
22214 | { | |
22215 | ||
22216 | truncate_setsize(NULL, 0); | |
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:]]truncate_setsize[[: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 mm/truncate.c; do | |
22271 | grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \ | |
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_TRUNCATE_SETSIZE 1" >>confdefs.h | |
22300 | ||
22301 | ||
22302 | fi | |
22303 | fi | |
22304 | ||
22305 | ||
22306 | ||
22307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5 | |
22308 | $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; } | |
22309 | ||
22310 | ||
22311 | cat confdefs.h - <<_ACEOF >conftest.c | |
22312 | ||
22313 | ||
22314 | #include <linux/security.h> | |
22315 | ||
22316 | int | |
22317 | main (void) | |
22318 | { | |
22319 | ||
22320 | struct inode *ip __attribute__ ((unused)) = NULL; | |
22321 | struct inode *dip __attribute__ ((unused)) = NULL; | |
22322 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
22323 | char *name __attribute__ ((unused)) = NULL; | |
22324 | void *value __attribute__ ((unused)) = NULL; | |
22325 | size_t len __attribute__ ((unused)) = 0; | |
22326 | ||
22327 | security_inode_init_security(ip, dip, str, &name, &value, &len); | |
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_6ARGS_SECURITY_INODE_INIT_SECURITY 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 security_inode_init_security wants callback" >&5 | |
22380 | $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; } | |
22381 | ||
22382 | ||
22383 | cat confdefs.h - <<_ACEOF >conftest.c | |
22384 | ||
22385 | ||
22386 | #include <linux/security.h> | |
22387 | ||
22388 | int | |
22389 | main (void) | |
22390 | { | |
22391 | ||
22392 | struct inode *ip __attribute__ ((unused)) = NULL; | |
22393 | struct inode *dip __attribute__ ((unused)) = NULL; | |
22394 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
22395 | initxattrs func __attribute__ ((unused)) = NULL; | |
22396 | ||
22397 | security_inode_init_security(ip, dip, str, func, NULL); | |
22398 | ||
22399 | ; | |
22400 | return 0; | |
22401 | } | |
22402 | ||
22403 | _ACEOF | |
22404 | ||
22405 | ||
22406 | ||
22407 | cat - <<_ACEOF >conftest.h | |
22408 | ||
22409 | _ACEOF | |
22410 | ||
22411 | ||
22412 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22413 | echo "obj-m := conftest.o" >build/Makefile | |
22414 | modpost_flag='' | |
22415 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22416 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22417 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22418 | (eval $ac_try) 2>&5 | |
22419 | ac_status=$? | |
22420 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22421 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22422 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22423 | (eval $ac_try) 2>&5 | |
22424 | ac_status=$? | |
22425 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22426 | test $ac_status = 0; }; }; then : | |
22427 | ||
22428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22429 | $as_echo "yes" >&6; } | |
22430 | ||
22431 | $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h | |
22432 | ||
22433 | ||
22434 | else | |
22435 | $as_echo "$as_me: failed program was:" >&5 | |
22436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22437 | ||
22438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22439 | $as_echo "no" >&6; } | |
22440 | ||
22441 | ||
22442 | ||
22443 | fi | |
22444 | rm -Rf build | |
22445 | ||
22446 | ||
22447 | ||
22448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5 | |
22449 | $as_echo_n "checking whether mount_nodev() is available... " >&6; } | |
22450 | ||
22451 | ||
22452 | ||
22453 | cat confdefs.h - <<_ACEOF >conftest.c | |
22454 | ||
22455 | ||
22456 | #include <linux/fs.h> | |
22457 | ||
22458 | int | |
22459 | main (void) | |
22460 | { | |
22461 | ||
22462 | mount_nodev(NULL, 0, NULL, NULL); | |
22463 | ||
22464 | ; | |
22465 | return 0; | |
22466 | } | |
22467 | ||
22468 | _ACEOF | |
22469 | ||
22470 | ||
22471 | ||
22472 | cat - <<_ACEOF >conftest.h | |
22473 | ||
22474 | _ACEOF | |
22475 | ||
22476 | ||
22477 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22478 | echo "obj-m := conftest.o" >build/Makefile | |
22479 | modpost_flag='' | |
22480 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22481 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22482 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22483 | (eval $ac_try) 2>&5 | |
22484 | ac_status=$? | |
22485 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22486 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22487 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22488 | (eval $ac_try) 2>&5 | |
22489 | ac_status=$? | |
22490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22491 | test $ac_status = 0; }; }; then : | |
22492 | rc=0 | |
22493 | else | |
22494 | $as_echo "$as_me: failed program was:" >&5 | |
22495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22496 | rc=1 | |
22497 | ||
22498 | ||
22499 | fi | |
22500 | rm -Rf build | |
22501 | ||
22502 | ||
22503 | if test $rc -ne 0; then : | |
22504 | ||
22505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22506 | $as_echo "no" >&6; } | |
22507 | ||
22508 | else | |
22509 | if test "x$enable_linux_builtin" != xyes; then | |
22510 | ||
22511 | grep -q -E '[[:space:]]mount_nodev[[:space:]]' \ | |
22512 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22513 | rc=$? | |
22514 | if test $rc -ne 0; then | |
22515 | export=0 | |
22516 | for file in fs/super.c; do | |
22517 | grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \ | |
22518 | "$LINUX/$file" 2>/dev/null | |
22519 | rc=$? | |
22520 | if test $rc -eq 0; then | |
22521 | export=1 | |
22522 | break; | |
22523 | fi | |
22524 | done | |
22525 | if test $export -eq 0; then : | |
22526 | rc=1 | |
22527 | else : | |
22528 | rc=0 | |
22529 | fi | |
22530 | else : | |
22531 | rc=0 | |
22532 | fi | |
22533 | ||
22534 | fi | |
22535 | if test $rc -ne 0; then : | |
22536 | ||
22537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22538 | $as_echo "no" >&6; } | |
22539 | ||
22540 | else : | |
22541 | ||
22542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22543 | $as_echo "yes" >&6; } | |
22544 | ||
22545 | $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h | |
22546 | ||
22547 | ||
22548 | fi | |
22549 | fi | |
22550 | ||
22551 | ||
22552 | ||
22553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5 | |
22554 | $as_echo_n "checking whether super_block has s_shrink... " >&6; } | |
22555 | ||
22556 | ||
22557 | cat confdefs.h - <<_ACEOF >conftest.c | |
22558 | ||
22559 | ||
22560 | #include <linux/fs.h> | |
22561 | ||
22562 | int shrink(struct shrinker *s, struct shrink_control *sc) | |
22563 | { return 0; } | |
22564 | ||
22565 | static const struct super_block | |
22566 | sb __attribute__ ((unused)) = { | |
22567 | .s_shrink.shrink = shrink, | |
22568 | .s_shrink.seeks = DEFAULT_SEEKS, | |
22569 | .s_shrink.batch = 0, | |
22570 | }; | |
22571 | ||
22572 | int | |
22573 | main (void) | |
22574 | { | |
22575 | ||
22576 | ||
22577 | ; | |
22578 | return 0; | |
22579 | } | |
22580 | ||
22581 | _ACEOF | |
22582 | ||
22583 | ||
22584 | ||
22585 | cat - <<_ACEOF >conftest.h | |
22586 | ||
22587 | _ACEOF | |
22588 | ||
22589 | ||
22590 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22591 | echo "obj-m := conftest.o" >build/Makefile | |
22592 | modpost_flag='' | |
22593 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22594 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22595 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22596 | (eval $ac_try) 2>&5 | |
22597 | ac_status=$? | |
22598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22599 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22600 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22601 | (eval $ac_try) 2>&5 | |
22602 | ac_status=$? | |
22603 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22604 | test $ac_status = 0; }; }; then : | |
22605 | ||
22606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22607 | $as_echo "yes" >&6; } | |
22608 | ||
22609 | $as_echo "#define HAVE_SHRINK 1" >>confdefs.h | |
22610 | ||
22611 | ||
22612 | ||
22613 | else | |
22614 | $as_echo "$as_me: failed program was:" >&5 | |
22615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22616 | ||
22617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22618 | $as_echo "no" >&6; } | |
22619 | ||
22620 | ||
22621 | ||
22622 | fi | |
22623 | rm -Rf build | |
22624 | ||
22625 | ||
22626 | ||
22627 | ||
22628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5 | |
22629 | $as_echo_n "checking whether shrink_control has nid... " >&6; } | |
22630 | ||
22631 | ||
22632 | cat confdefs.h - <<_ACEOF >conftest.c | |
22633 | ||
22634 | ||
22635 | #include <linux/fs.h> | |
22636 | ||
22637 | int | |
22638 | main (void) | |
22639 | { | |
22640 | ||
22641 | struct shrink_control sc __attribute__ ((unused)); | |
22642 | unsigned long scnidsize __attribute__ ((unused)) = | |
22643 | sizeof(sc.nid); | |
22644 | ||
22645 | ; | |
22646 | return 0; | |
22647 | } | |
22648 | ||
22649 | _ACEOF | |
22650 | ||
22651 | ||
22652 | ||
22653 | cat - <<_ACEOF >conftest.h | |
22654 | ||
22655 | _ACEOF | |
22656 | ||
22657 | ||
22658 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22659 | echo "obj-m := conftest.o" >build/Makefile | |
22660 | modpost_flag='' | |
22661 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22662 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22663 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22664 | (eval $ac_try) 2>&5 | |
22665 | ac_status=$? | |
22666 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22667 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22668 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22669 | (eval $ac_try) 2>&5 | |
22670 | ac_status=$? | |
22671 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22672 | test $ac_status = 0; }; }; then : | |
22673 | ||
22674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22675 | $as_echo "yes" >&6; } | |
22676 | ||
22677 | $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h | |
22678 | ||
22679 | ||
22680 | else | |
22681 | $as_echo "$as_me: failed program was:" >&5 | |
22682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22683 | ||
22684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22685 | $as_echo "no" >&6; } | |
22686 | ||
22687 | ||
22688 | ||
22689 | fi | |
22690 | rm -Rf build | |
22691 | ||
22692 | ||
22693 | ||
22694 | ||
22695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5 | |
22696 | $as_echo_n "checking whether super_block has s_instances list_head... " >&6; } | |
22697 | ||
22698 | ||
22699 | cat confdefs.h - <<_ACEOF >conftest.c | |
22700 | ||
22701 | ||
22702 | #include <linux/fs.h> | |
22703 | ||
22704 | int | |
22705 | main (void) | |
22706 | { | |
22707 | ||
22708 | struct super_block sb __attribute__ ((unused)); | |
22709 | ||
22710 | INIT_LIST_HEAD(&sb.s_instances); | |
22711 | ||
22712 | ; | |
22713 | return 0; | |
22714 | } | |
22715 | ||
22716 | _ACEOF | |
22717 | ||
22718 | ||
22719 | ||
22720 | cat - <<_ACEOF >conftest.h | |
22721 | ||
22722 | _ACEOF | |
22723 | ||
22724 | ||
22725 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22726 | echo "obj-m := conftest.o" >build/Makefile | |
22727 | modpost_flag='' | |
22728 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22729 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22730 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22731 | (eval $ac_try) 2>&5 | |
22732 | ac_status=$? | |
22733 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22734 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22735 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22736 | (eval $ac_try) 2>&5 | |
22737 | ac_status=$? | |
22738 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22739 | test $ac_status = 0; }; }; then : | |
22740 | ||
22741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22742 | $as_echo "yes" >&6; } | |
22743 | ||
22744 | $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h | |
22745 | ||
22746 | ||
22747 | else | |
22748 | $as_echo "$as_me: failed program was:" >&5 | |
22749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22750 | ||
22751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22752 | $as_echo "no" >&6; } | |
22753 | ||
22754 | ||
22755 | ||
22756 | fi | |
22757 | rm -Rf build | |
22758 | ||
22759 | ||
22760 | ||
22761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5 | |
22762 | $as_echo_n "checking whether super_block has s_d_op... " >&6; } | |
22763 | ||
22764 | ||
22765 | cat confdefs.h - <<_ACEOF >conftest.c | |
22766 | ||
22767 | ||
22768 | #include <linux/fs.h> | |
22769 | ||
22770 | int | |
22771 | main (void) | |
22772 | { | |
22773 | ||
22774 | struct super_block sb __attribute__ ((unused)); | |
22775 | sb.s_d_op = NULL; | |
22776 | ||
22777 | ; | |
22778 | return 0; | |
22779 | } | |
22780 | ||
22781 | _ACEOF | |
22782 | ||
22783 | ||
22784 | ||
22785 | cat - <<_ACEOF >conftest.h | |
22786 | ||
22787 | _ACEOF | |
22788 | ||
22789 | ||
22790 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22791 | echo "obj-m := conftest.o" >build/Makefile | |
22792 | modpost_flag='' | |
22793 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22794 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22795 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22796 | (eval $ac_try) 2>&5 | |
22797 | ac_status=$? | |
22798 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22799 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22800 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22801 | (eval $ac_try) 2>&5 | |
22802 | ac_status=$? | |
22803 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22804 | test $ac_status = 0; }; }; then : | |
22805 | ||
22806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22807 | $as_echo "yes" >&6; } | |
22808 | ||
22809 | $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h | |
22810 | ||
22811 | ||
22812 | else | |
22813 | $as_echo "$as_me: failed program was:" >&5 | |
22814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22815 | ||
22816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22817 | $as_echo "no" >&6; } | |
22818 | ||
22819 | ||
22820 | ||
22821 | fi | |
22822 | rm -Rf build | |
22823 | ||
22824 | ||
22825 | ||
22826 | ||
22827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 | |
22828 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } | |
22829 | ||
22830 | ||
22831 | ||
22832 | cat confdefs.h - <<_ACEOF >conftest.c | |
22833 | ||
22834 | ||
22835 | #include <linux/backing-dev.h> | |
22836 | struct backing_dev_info bdi; | |
22837 | ||
22838 | int | |
22839 | main (void) | |
22840 | { | |
22841 | ||
22842 | char *name = "bdi"; | |
22843 | int error __attribute__((unused)) = | |
22844 | bdi_setup_and_register(&bdi, name); | |
22845 | ||
22846 | ; | |
22847 | return 0; | |
22848 | } | |
22849 | ||
22850 | _ACEOF | |
22851 | ||
22852 | ||
22853 | ||
22854 | cat - <<_ACEOF >conftest.h | |
22855 | ||
22856 | _ACEOF | |
22857 | ||
22858 | ||
22859 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22860 | echo "obj-m := conftest.o" >build/Makefile | |
22861 | modpost_flag='' | |
22862 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22863 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22864 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22865 | (eval $ac_try) 2>&5 | |
22866 | ac_status=$? | |
22867 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22868 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22869 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22870 | (eval $ac_try) 2>&5 | |
22871 | ac_status=$? | |
22872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22873 | test $ac_status = 0; }; }; then : | |
22874 | rc=0 | |
22875 | else | |
22876 | $as_echo "$as_me: failed program was:" >&5 | |
22877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22878 | rc=1 | |
22879 | ||
22880 | ||
22881 | fi | |
22882 | rm -Rf build | |
22883 | ||
22884 | ||
22885 | if test $rc -ne 0; then : | |
22886 | ||
22887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22888 | $as_echo "no" >&6; } | |
22889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
22890 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
22891 | ||
22892 | ||
22893 | ||
22894 | cat confdefs.h - <<_ACEOF >conftest.c | |
22895 | ||
22896 | ||
22897 | #include <linux/backing-dev.h> | |
22898 | struct backing_dev_info bdi; | |
22899 | ||
22900 | int | |
22901 | main (void) | |
22902 | { | |
22903 | ||
22904 | char *name = "bdi"; | |
22905 | unsigned int cap = BDI_CAP_MAP_COPY; | |
22906 | int error __attribute__((unused)) = | |
22907 | bdi_setup_and_register(&bdi, name, cap); | |
22908 | ||
22909 | ; | |
22910 | return 0; | |
22911 | } | |
22912 | ||
22913 | _ACEOF | |
22914 | ||
22915 | ||
22916 | ||
22917 | cat - <<_ACEOF >conftest.h | |
22918 | ||
22919 | _ACEOF | |
22920 | ||
22921 | ||
22922 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
22923 | echo "obj-m := conftest.o" >build/Makefile | |
22924 | modpost_flag='' | |
22925 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22926 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
22927 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22928 | (eval $ac_try) 2>&5 | |
22929 | ac_status=$? | |
22930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22931 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22932 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
22933 | (eval $ac_try) 2>&5 | |
22934 | ac_status=$? | |
22935 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22936 | test $ac_status = 0; }; }; then : | |
22937 | rc=0 | |
22938 | else | |
22939 | $as_echo "$as_me: failed program was:" >&5 | |
22940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22941 | rc=1 | |
22942 | ||
22943 | ||
22944 | fi | |
22945 | rm -Rf build | |
22946 | ||
22947 | ||
22948 | if test $rc -ne 0; then : | |
22949 | ||
22950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22951 | $as_echo "no" >&6; } | |
22952 | ||
22953 | else | |
22954 | if test "x$enable_linux_builtin" != xyes; then | |
22955 | ||
22956 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
22957 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
22958 | rc=$? | |
22959 | if test $rc -ne 0; then | |
22960 | export=0 | |
22961 | for file in mm/backing-dev.c; do | |
22962 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
22963 | "$LINUX/$file" 2>/dev/null | |
22964 | rc=$? | |
22965 | if test $rc -eq 0; then | |
22966 | export=1 | |
22967 | break; | |
22968 | fi | |
22969 | done | |
22970 | if test $export -eq 0; then : | |
22971 | rc=1 | |
22972 | else : | |
22973 | rc=0 | |
22974 | fi | |
22975 | else : | |
22976 | rc=0 | |
22977 | fi | |
22978 | ||
22979 | fi | |
22980 | if test $rc -ne 0; then : | |
22981 | ||
22982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22983 | $as_echo "no" >&6; } | |
22984 | ||
22985 | else : | |
22986 | ||
22987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22988 | $as_echo "yes" >&6; } | |
22989 | ||
22990 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
22991 | ||
22992 | ||
22993 | fi | |
22994 | fi | |
22995 | ||
22996 | ||
22997 | else | |
22998 | if test "x$enable_linux_builtin" != xyes; then | |
22999 | ||
23000 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23001 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23002 | rc=$? | |
23003 | if test $rc -ne 0; then | |
23004 | export=0 | |
23005 | for file in mm/backing-dev.c; do | |
23006 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23007 | "$LINUX/$file" 2>/dev/null | |
23008 | rc=$? | |
23009 | if test $rc -eq 0; then | |
23010 | export=1 | |
23011 | break; | |
23012 | fi | |
23013 | done | |
23014 | if test $export -eq 0; then : | |
23015 | rc=1 | |
23016 | else : | |
23017 | rc=0 | |
23018 | fi | |
23019 | else : | |
23020 | rc=0 | |
23021 | fi | |
23022 | ||
23023 | fi | |
23024 | if test $rc -ne 0; then : | |
23025 | ||
23026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23027 | $as_echo "no" >&6; } | |
23028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
23029 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
23030 | ||
23031 | ||
23032 | ||
23033 | cat confdefs.h - <<_ACEOF >conftest.c | |
23034 | ||
23035 | ||
23036 | #include <linux/backing-dev.h> | |
23037 | struct backing_dev_info bdi; | |
23038 | ||
23039 | int | |
23040 | main (void) | |
23041 | { | |
23042 | ||
23043 | char *name = "bdi"; | |
23044 | unsigned int cap = BDI_CAP_MAP_COPY; | |
23045 | int error __attribute__((unused)) = | |
23046 | bdi_setup_and_register(&bdi, name, cap); | |
23047 | ||
23048 | ; | |
23049 | return 0; | |
23050 | } | |
23051 | ||
23052 | _ACEOF | |
23053 | ||
23054 | ||
23055 | ||
23056 | cat - <<_ACEOF >conftest.h | |
23057 | ||
23058 | _ACEOF | |
23059 | ||
23060 | ||
23061 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23062 | echo "obj-m := conftest.o" >build/Makefile | |
23063 | modpost_flag='' | |
23064 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23065 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23066 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23067 | (eval $ac_try) 2>&5 | |
23068 | ac_status=$? | |
23069 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23070 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23071 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23072 | (eval $ac_try) 2>&5 | |
23073 | ac_status=$? | |
23074 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23075 | test $ac_status = 0; }; }; then : | |
23076 | rc=0 | |
23077 | else | |
23078 | $as_echo "$as_me: failed program was:" >&5 | |
23079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23080 | rc=1 | |
23081 | ||
23082 | ||
23083 | fi | |
23084 | rm -Rf build | |
23085 | ||
23086 | ||
23087 | if test $rc -ne 0; then : | |
23088 | ||
23089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23090 | $as_echo "no" >&6; } | |
23091 | ||
23092 | else | |
23093 | if test "x$enable_linux_builtin" != xyes; then | |
23094 | ||
23095 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
23096 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23097 | rc=$? | |
23098 | if test $rc -ne 0; then | |
23099 | export=0 | |
23100 | for file in mm/backing-dev.c; do | |
23101 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
23102 | "$LINUX/$file" 2>/dev/null | |
23103 | rc=$? | |
23104 | if test $rc -eq 0; then | |
23105 | export=1 | |
23106 | break; | |
23107 | fi | |
23108 | done | |
23109 | if test $export -eq 0; then : | |
23110 | rc=1 | |
23111 | else : | |
23112 | rc=0 | |
23113 | fi | |
23114 | else : | |
23115 | rc=0 | |
23116 | fi | |
23117 | ||
23118 | fi | |
23119 | if test $rc -ne 0; then : | |
23120 | ||
23121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23122 | $as_echo "no" >&6; } | |
23123 | ||
23124 | else : | |
23125 | ||
23126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23127 | $as_echo "yes" >&6; } | |
23128 | ||
23129 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23130 | ||
23131 | ||
23132 | fi | |
23133 | fi | |
23134 | ||
23135 | ||
23136 | else : | |
23137 | ||
23138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23139 | $as_echo "yes" >&6; } | |
23140 | ||
23141 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
23142 | ||
23143 | ||
23144 | fi | |
23145 | fi | |
23146 | ||
23147 | ||
23148 | ||
23149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5 | |
23150 | $as_echo_n "checking whether set_nlink() is available... " >&6; } | |
23151 | ||
23152 | ||
23153 | cat confdefs.h - <<_ACEOF >conftest.c | |
23154 | ||
23155 | ||
23156 | #include <linux/fs.h> | |
23157 | ||
23158 | int | |
23159 | main (void) | |
23160 | { | |
23161 | ||
23162 | struct inode node; | |
23163 | unsigned int link = 0; | |
23164 | (void) set_nlink(&node, link); | |
23165 | ||
23166 | ; | |
23167 | return 0; | |
23168 | } | |
23169 | ||
23170 | _ACEOF | |
23171 | ||
23172 | ||
23173 | ||
23174 | cat - <<_ACEOF >conftest.h | |
23175 | ||
23176 | _ACEOF | |
23177 | ||
23178 | ||
23179 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23180 | echo "obj-m := conftest.o" >build/Makefile | |
23181 | modpost_flag='' | |
23182 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23183 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23184 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23185 | (eval $ac_try) 2>&5 | |
23186 | ac_status=$? | |
23187 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23188 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23189 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23190 | (eval $ac_try) 2>&5 | |
23191 | ac_status=$? | |
23192 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23193 | test $ac_status = 0; }; }; then : | |
23194 | ||
23195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23196 | $as_echo "yes" >&6; } | |
23197 | ||
23198 | $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h | |
23199 | ||
23200 | ||
23201 | else | |
23202 | $as_echo "$as_me: failed program was:" >&5 | |
23203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23204 | ||
23205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23206 | $as_echo "no" >&6; } | |
23207 | ||
23208 | ||
23209 | ||
23210 | fi | |
23211 | rm -Rf build | |
23212 | ||
23213 | ||
23214 | ||
23215 | ||
23216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5 | |
23217 | $as_echo_n "checking whether elevator_change() is available... " >&6; } | |
23218 | tmp_flags="$EXTRA_KCFLAGS" | |
23219 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
23220 | ||
23221 | ||
23222 | cat confdefs.h - <<_ACEOF >conftest.c | |
23223 | ||
23224 | ||
23225 | #include <linux/blkdev.h> | |
23226 | #include <linux/elevator.h> | |
23227 | ||
23228 | int | |
23229 | main (void) | |
23230 | { | |
23231 | ||
23232 | int ret; | |
23233 | struct request_queue *q = NULL; | |
23234 | char *elevator = NULL; | |
23235 | ret = elevator_change(q, elevator); | |
23236 | ||
23237 | ; | |
23238 | return 0; | |
23239 | } | |
23240 | ||
23241 | _ACEOF | |
23242 | ||
23243 | ||
23244 | ||
23245 | cat - <<_ACEOF >conftest.h | |
23246 | ||
23247 | _ACEOF | |
23248 | ||
23249 | ||
23250 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23251 | echo "obj-m := conftest.o" >build/Makefile | |
23252 | modpost_flag='' | |
23253 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23254 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23255 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23256 | (eval $ac_try) 2>&5 | |
23257 | ac_status=$? | |
23258 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23259 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23260 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23261 | (eval $ac_try) 2>&5 | |
23262 | ac_status=$? | |
23263 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23264 | test $ac_status = 0; }; }; then : | |
23265 | ||
23266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23267 | $as_echo "yes" >&6; } | |
23268 | ||
23269 | $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h | |
23270 | ||
23271 | ||
23272 | else | |
23273 | $as_echo "$as_me: failed program was:" >&5 | |
23274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23275 | ||
23276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23277 | $as_echo "no" >&6; } | |
23278 | ||
23279 | ||
23280 | ||
23281 | fi | |
23282 | rm -Rf build | |
23283 | ||
23284 | ||
23285 | EXTRA_KCFLAGS="$tmp_flags" | |
23286 | ||
23287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5 | |
23288 | $as_echo_n "checking whether sget() wants 5 args... " >&6; } | |
23289 | ||
23290 | ||
23291 | cat confdefs.h - <<_ACEOF >conftest.c | |
23292 | ||
23293 | ||
23294 | #include <linux/fs.h> | |
23295 | ||
23296 | int | |
23297 | main (void) | |
23298 | { | |
23299 | ||
23300 | struct file_system_type *type = NULL; | |
23301 | int (*test)(struct super_block *,void *) = NULL; | |
23302 | int (*set)(struct super_block *,void *) = NULL; | |
23303 | int flags = 0; | |
23304 | void *data = NULL; | |
23305 | (void) sget(type, test, set, flags, data); | |
23306 | ||
23307 | ; | |
23308 | return 0; | |
23309 | } | |
23310 | ||
23311 | _ACEOF | |
23312 | ||
23313 | ||
23314 | ||
23315 | cat - <<_ACEOF >conftest.h | |
23316 | ||
23317 | _ACEOF | |
23318 | ||
23319 | ||
23320 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23321 | echo "obj-m := conftest.o" >build/Makefile | |
23322 | modpost_flag='' | |
23323 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23324 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23325 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23326 | (eval $ac_try) 2>&5 | |
23327 | ac_status=$? | |
23328 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23329 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23330 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23331 | (eval $ac_try) 2>&5 | |
23332 | ac_status=$? | |
23333 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23334 | test $ac_status = 0; }; }; then : | |
23335 | ||
23336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23337 | $as_echo "yes" >&6; } | |
23338 | ||
23339 | $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h | |
23340 | ||
23341 | ||
23342 | else | |
23343 | $as_echo "$as_me: failed program was:" >&5 | |
23344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23345 | ||
23346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23347 | $as_echo "no" >&6; } | |
23348 | ||
23349 | ||
23350 | ||
23351 | fi | |
23352 | rm -Rf build | |
23353 | ||
23354 | ||
23355 | ||
23356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5 | |
23357 | $as_echo_n "checking whether lseek_execute() is available... " >&6; } | |
23358 | ||
23359 | ||
23360 | ||
23361 | cat confdefs.h - <<_ACEOF >conftest.c | |
23362 | ||
23363 | ||
23364 | #include <linux/fs.h> | |
23365 | ||
23366 | int | |
23367 | main (void) | |
23368 | { | |
23369 | ||
23370 | struct file *fp __attribute__ ((unused)) = NULL; | |
23371 | struct inode *ip __attribute__ ((unused)) = NULL; | |
23372 | loff_t offset __attribute__ ((unused)) = 0; | |
23373 | loff_t maxsize __attribute__ ((unused)) = 0; | |
23374 | ||
23375 | lseek_execute(fp, ip, offset, maxsize); | |
23376 | ||
23377 | ; | |
23378 | return 0; | |
23379 | } | |
23380 | ||
23381 | _ACEOF | |
23382 | ||
23383 | ||
23384 | ||
23385 | cat - <<_ACEOF >conftest.h | |
23386 | ||
23387 | _ACEOF | |
23388 | ||
23389 | ||
23390 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23391 | echo "obj-m := conftest.o" >build/Makefile | |
23392 | modpost_flag='' | |
23393 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23394 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23395 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23396 | (eval $ac_try) 2>&5 | |
23397 | ac_status=$? | |
23398 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23399 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23400 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23401 | (eval $ac_try) 2>&5 | |
23402 | ac_status=$? | |
23403 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23404 | test $ac_status = 0; }; }; then : | |
23405 | rc=0 | |
23406 | else | |
23407 | $as_echo "$as_me: failed program was:" >&5 | |
23408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23409 | rc=1 | |
23410 | ||
23411 | ||
23412 | fi | |
23413 | rm -Rf build | |
23414 | ||
23415 | ||
23416 | if test $rc -ne 0; then : | |
23417 | ||
23418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23419 | $as_echo "no" >&6; } | |
23420 | ||
23421 | else | |
23422 | if test "x$enable_linux_builtin" != xyes; then | |
23423 | ||
23424 | grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \ | |
23425 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
23426 | rc=$? | |
23427 | if test $rc -ne 0; then | |
23428 | export=0 | |
23429 | for file in fs/read_write.c; do | |
23430 | grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \ | |
23431 | "$LINUX/$file" 2>/dev/null | |
23432 | rc=$? | |
23433 | if test $rc -eq 0; then | |
23434 | export=1 | |
23435 | break; | |
23436 | fi | |
23437 | done | |
23438 | if test $export -eq 0; then : | |
23439 | rc=1 | |
23440 | else : | |
23441 | rc=0 | |
23442 | fi | |
23443 | else : | |
23444 | rc=0 | |
23445 | fi | |
23446 | ||
23447 | fi | |
23448 | if test $rc -ne 0; then : | |
23449 | ||
23450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23451 | $as_echo "no" >&6; } | |
23452 | ||
23453 | else : | |
23454 | ||
23455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23456 | $as_echo "yes" >&6; } | |
23457 | ||
23458 | $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h | |
23459 | ||
23460 | ||
23461 | fi | |
23462 | fi | |
23463 | ||
23464 | ||
23465 | ||
23466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5 | |
23467 | $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; } | |
23468 | ||
23469 | ||
23470 | cat confdefs.h - <<_ACEOF >conftest.c | |
23471 | ||
23472 | ||
23473 | #include <linux/fs.h> | |
23474 | int iterate(struct file *filp, struct dir_context * context) | |
23475 | { return 0; } | |
23476 | ||
23477 | static const struct file_operations fops | |
23478 | __attribute__ ((unused)) = { | |
23479 | .iterate_shared = iterate, | |
23480 | }; | |
23481 | ||
23482 | int | |
23483 | main (void) | |
23484 | { | |
23485 | ||
23486 | ||
23487 | ; | |
23488 | return 0; | |
23489 | } | |
23490 | ||
23491 | _ACEOF | |
23492 | ||
23493 | ||
23494 | ||
23495 | cat - <<_ACEOF >conftest.h | |
23496 | ||
23497 | _ACEOF | |
23498 | ||
23499 | ||
23500 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23501 | echo "obj-m := conftest.o" >build/Makefile | |
23502 | modpost_flag='' | |
23503 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23504 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23505 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23506 | (eval $ac_try) 2>&5 | |
23507 | ac_status=$? | |
23508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23509 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23510 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23511 | (eval $ac_try) 2>&5 | |
23512 | ac_status=$? | |
23513 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23514 | test $ac_status = 0; }; }; then : | |
23515 | ||
23516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23517 | $as_echo "yes" >&6; } | |
23518 | ||
23519 | $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h | |
23520 | ||
23521 | ||
23522 | else | |
23523 | $as_echo "$as_me: failed program was:" >&5 | |
23524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23525 | ||
23526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23527 | $as_echo "no" >&6; } | |
23528 | ||
23529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5 | |
23530 | $as_echo_n "checking whether fops->iterate() is available... " >&6; } | |
23531 | ||
23532 | ||
23533 | cat confdefs.h - <<_ACEOF >conftest.c | |
23534 | ||
23535 | ||
23536 | #include <linux/fs.h> | |
23537 | int iterate(struct file *filp, struct dir_context * context) | |
23538 | { return 0; } | |
23539 | ||
23540 | static const struct file_operations fops | |
23541 | __attribute__ ((unused)) = { | |
23542 | .iterate = iterate, | |
23543 | }; | |
23544 | ||
23545 | int | |
23546 | main (void) | |
23547 | { | |
23548 | ||
23549 | ||
23550 | ; | |
23551 | return 0; | |
23552 | } | |
23553 | ||
23554 | _ACEOF | |
23555 | ||
23556 | ||
23557 | ||
23558 | cat - <<_ACEOF >conftest.h | |
23559 | ||
23560 | _ACEOF | |
23561 | ||
23562 | ||
23563 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23564 | echo "obj-m := conftest.o" >build/Makefile | |
23565 | modpost_flag='' | |
23566 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23567 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23568 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23569 | (eval $ac_try) 2>&5 | |
23570 | ac_status=$? | |
23571 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23572 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23573 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23574 | (eval $ac_try) 2>&5 | |
23575 | ac_status=$? | |
23576 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23577 | test $ac_status = 0; }; }; then : | |
23578 | ||
23579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23580 | $as_echo "yes" >&6; } | |
23581 | ||
23582 | $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h | |
23583 | ||
23584 | ||
23585 | else | |
23586 | $as_echo "$as_me: failed program was:" >&5 | |
23587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23588 | ||
23589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23590 | $as_echo "no" >&6; } | |
23591 | ||
23592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5 | |
23593 | $as_echo_n "checking whether fops->readdir() is available... " >&6; } | |
23594 | ||
23595 | ||
23596 | cat confdefs.h - <<_ACEOF >conftest.c | |
23597 | ||
23598 | ||
23599 | #include <linux/fs.h> | |
23600 | int readdir(struct file *filp, void *entry, filldir_t func) | |
23601 | { return 0; } | |
23602 | ||
23603 | static const struct file_operations fops | |
23604 | __attribute__ ((unused)) = { | |
23605 | .readdir = readdir, | |
23606 | }; | |
23607 | ||
23608 | int | |
23609 | main (void) | |
23610 | { | |
23611 | ||
23612 | ||
23613 | ; | |
23614 | return 0; | |
23615 | } | |
23616 | ||
23617 | _ACEOF | |
23618 | ||
23619 | ||
23620 | ||
23621 | cat - <<_ACEOF >conftest.h | |
23622 | ||
23623 | _ACEOF | |
23624 | ||
23625 | ||
23626 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23627 | echo "obj-m := conftest.o" >build/Makefile | |
23628 | modpost_flag='' | |
23629 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23630 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23631 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23632 | (eval $ac_try) 2>&5 | |
23633 | ac_status=$? | |
23634 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23635 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23636 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23637 | (eval $ac_try) 2>&5 | |
23638 | ac_status=$? | |
23639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23640 | test $ac_status = 0; }; }; then : | |
23641 | ||
23642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23643 | $as_echo "yes" >&6; } | |
23644 | ||
23645 | $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h | |
23646 | ||
23647 | ||
23648 | else | |
23649 | $as_echo "$as_me: failed program was:" >&5 | |
23650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23651 | ||
23652 | as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5 | |
23653 | ||
23654 | ||
23655 | ||
23656 | fi | |
23657 | rm -Rf build | |
23658 | ||
23659 | ||
23660 | ||
23661 | ||
23662 | ||
23663 | fi | |
23664 | rm -Rf build | |
23665 | ||
23666 | ||
23667 | ||
23668 | ||
23669 | ||
23670 | fi | |
23671 | rm -Rf build | |
23672 | ||
23673 | ||
23674 | ||
23675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5 | |
23676 | $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; } | |
23677 | ||
23678 | ||
23679 | cat confdefs.h - <<_ACEOF >conftest.c | |
23680 | ||
23681 | ||
23682 | #include <linux/fs.h> | |
23683 | ||
23684 | ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to) | |
23685 | { return 0; } | |
23686 | ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from) | |
23687 | { return 0; } | |
23688 | ||
23689 | static const struct file_operations | |
23690 | fops __attribute__ ((unused)) = { | |
23691 | .read_iter = test_read, | |
23692 | .write_iter = test_write, | |
23693 | }; | |
23694 | ||
23695 | int | |
23696 | main (void) | |
23697 | { | |
23698 | ||
23699 | ||
23700 | ; | |
23701 | return 0; | |
23702 | } | |
23703 | ||
23704 | _ACEOF | |
23705 | ||
23706 | ||
23707 | ||
23708 | cat - <<_ACEOF >conftest.h | |
23709 | ||
23710 | _ACEOF | |
23711 | ||
23712 | ||
23713 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23714 | echo "obj-m := conftest.o" >build/Makefile | |
23715 | modpost_flag='' | |
23716 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23717 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23718 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23719 | (eval $ac_try) 2>&5 | |
23720 | ac_status=$? | |
23721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23722 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23723 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23724 | (eval $ac_try) 2>&5 | |
23725 | ac_status=$? | |
23726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23727 | test $ac_status = 0; }; }; then : | |
23728 | ||
23729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23730 | $as_echo "yes" >&6; } | |
23731 | ||
23732 | $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h | |
23733 | ||
23734 | ||
23735 | else | |
23736 | $as_echo "$as_me: failed program was:" >&5 | |
23737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23738 | ||
23739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23740 | $as_echo "no" >&6; } | |
23741 | ||
23742 | ||
23743 | ||
d177712e CIK |
23744 | fi |
23745 | rm -Rf build | |
23746 | ||
23747 | ||
23748 | ||
23749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5 | |
23750 | $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; } | |
23751 | ||
23752 | ||
23753 | cat confdefs.h - <<_ACEOF >conftest.c | |
23754 | ||
23755 | ||
23756 | #include <linux/fs.h> | |
23757 | ||
23758 | ||
23759 | int | |
23760 | main (void) | |
23761 | { | |
23762 | ||
23763 | struct kiocb *iocb = NULL; | |
23764 | struct iov_iter *iov = NULL; | |
23765 | generic_write_checks(iocb, iov); | |
23766 | ||
23767 | ; | |
23768 | return 0; | |
23769 | } | |
23770 | ||
23771 | _ACEOF | |
23772 | ||
23773 | ||
23774 | ||
23775 | cat - <<_ACEOF >conftest.h | |
23776 | ||
23777 | _ACEOF | |
23778 | ||
23779 | ||
23780 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23781 | echo "obj-m := conftest.o" >build/Makefile | |
23782 | modpost_flag='' | |
23783 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23784 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23785 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23786 | (eval $ac_try) 2>&5 | |
23787 | ac_status=$? | |
23788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23789 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23790 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23791 | (eval $ac_try) 2>&5 | |
23792 | ac_status=$? | |
23793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23794 | test $ac_status = 0; }; }; then : | |
23795 | ||
23796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23797 | $as_echo "yes" >&6; } | |
23798 | ||
23799 | $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h | |
23800 | ||
23801 | ||
23802 | else | |
23803 | $as_echo "$as_me: failed program was:" >&5 | |
23804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23805 | ||
23806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23807 | $as_echo "no" >&6; } | |
23808 | ||
23809 | ||
23810 | ||
0bd31011 TG |
23811 | fi |
23812 | rm -Rf build | |
23813 | ||
23814 | ||
23815 | ||
23816 | ||
23817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5 | |
23818 | $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; } | |
23819 | ||
23820 | ||
23821 | cat confdefs.h - <<_ACEOF >conftest.c | |
23822 | ||
23823 | ||
23824 | #include <linux/pagemap.h> | |
23825 | ||
23826 | int | |
23827 | main (void) | |
23828 | { | |
23829 | ||
23830 | struct page page; | |
23831 | kmap_atomic(&page); | |
23832 | ||
23833 | ; | |
23834 | return 0; | |
23835 | } | |
23836 | ||
23837 | _ACEOF | |
23838 | ||
23839 | ||
23840 | ||
23841 | cat - <<_ACEOF >conftest.h | |
23842 | ||
23843 | _ACEOF | |
23844 | ||
23845 | ||
23846 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23847 | echo "obj-m := conftest.o" >build/Makefile | |
23848 | modpost_flag='' | |
23849 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23850 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23851 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23852 | (eval $ac_try) 2>&5 | |
23853 | ac_status=$? | |
23854 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23855 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23856 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23857 | (eval $ac_try) 2>&5 | |
23858 | ac_status=$? | |
23859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23860 | test $ac_status = 0; }; }; then : | |
23861 | ||
23862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23863 | $as_echo "yes" >&6; } | |
23864 | ||
23865 | $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h | |
23866 | ||
23867 | ||
23868 | else | |
23869 | $as_echo "$as_me: failed program was:" >&5 | |
23870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23871 | ||
23872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23873 | $as_echo "no" >&6; } | |
23874 | ||
23875 | ||
23876 | ||
23877 | fi | |
23878 | rm -Rf build | |
23879 | ||
23880 | ||
23881 | ||
23882 | ||
23883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5 | |
23884 | $as_echo_n "checking whether follow_down_one() is available... " >&6; } | |
23885 | ||
23886 | ||
23887 | cat confdefs.h - <<_ACEOF >conftest.c | |
23888 | ||
23889 | ||
23890 | #include <linux/namei.h> | |
23891 | ||
23892 | int | |
23893 | main (void) | |
23894 | { | |
23895 | ||
23896 | struct path *p = NULL; | |
23897 | follow_down_one(p); | |
23898 | ||
23899 | ; | |
23900 | return 0; | |
23901 | } | |
23902 | ||
23903 | _ACEOF | |
23904 | ||
23905 | ||
23906 | ||
23907 | cat - <<_ACEOF >conftest.h | |
23908 | ||
23909 | _ACEOF | |
23910 | ||
23911 | ||
23912 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23913 | echo "obj-m := conftest.o" >build/Makefile | |
23914 | modpost_flag='' | |
23915 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23916 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23917 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23918 | (eval $ac_try) 2>&5 | |
23919 | ac_status=$? | |
23920 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23921 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23922 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23923 | (eval $ac_try) 2>&5 | |
23924 | ac_status=$? | |
23925 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23926 | test $ac_status = 0; }; }; then : | |
23927 | ||
23928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23929 | $as_echo "yes" >&6; } | |
23930 | ||
23931 | $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h | |
23932 | ||
23933 | ||
23934 | else | |
23935 | $as_echo "$as_me: failed program was:" >&5 | |
23936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23937 | ||
23938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23939 | $as_echo "no" >&6; } | |
23940 | ||
23941 | ||
23942 | ||
23943 | fi | |
23944 | rm -Rf build | |
23945 | ||
23946 | ||
23947 | ||
23948 | ||
23949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5 | |
23950 | $as_echo_n "checking whether make_request_fn() returns int... " >&6; } | |
23951 | ||
23952 | ||
23953 | cat confdefs.h - <<_ACEOF >conftest.c | |
23954 | ||
23955 | ||
23956 | #include <linux/blkdev.h> | |
23957 | ||
23958 | int make_request(struct request_queue *q, struct bio *bio) | |
23959 | { | |
23960 | return (0); | |
23961 | } | |
23962 | ||
23963 | int | |
23964 | main (void) | |
23965 | { | |
23966 | ||
23967 | blk_queue_make_request(NULL, &make_request); | |
23968 | ||
23969 | ; | |
23970 | return 0; | |
23971 | } | |
23972 | ||
23973 | _ACEOF | |
23974 | ||
23975 | ||
23976 | ||
23977 | cat - <<_ACEOF >conftest.h | |
23978 | ||
23979 | _ACEOF | |
23980 | ||
23981 | ||
23982 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23983 | echo "obj-m := conftest.o" >build/Makefile | |
23984 | modpost_flag='' | |
23985 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23986 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23987 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23988 | (eval $ac_try) 2>&5 | |
23989 | ac_status=$? | |
23990 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23991 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23992 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
23993 | (eval $ac_try) 2>&5 | |
23994 | ac_status=$? | |
23995 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
23996 | test $ac_status = 0; }; }; then : | |
23997 | ||
23998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23999 | $as_echo "yes" >&6; } | |
24000 | ||
24001 | $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h | |
24002 | ||
24003 | ||
24004 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h | |
24005 | ||
24006 | ||
24007 | else | |
24008 | $as_echo "$as_me: failed program was:" >&5 | |
24009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24010 | ||
24011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24012 | $as_echo "no" >&6; } | |
24013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5 | |
24014 | $as_echo_n "checking whether make_request_fn() returns void... " >&6; } | |
24015 | ||
24016 | ||
24017 | cat confdefs.h - <<_ACEOF >conftest.c | |
24018 | ||
24019 | ||
24020 | #include <linux/blkdev.h> | |
24021 | ||
24022 | void make_request(struct request_queue *q, struct bio *bio) | |
24023 | { | |
24024 | return; | |
24025 | } | |
24026 | ||
24027 | int | |
24028 | main (void) | |
24029 | { | |
24030 | ||
24031 | blk_queue_make_request(NULL, &make_request); | |
24032 | ||
24033 | ; | |
24034 | return 0; | |
24035 | } | |
24036 | ||
24037 | _ACEOF | |
24038 | ||
24039 | ||
24040 | ||
24041 | cat - <<_ACEOF >conftest.h | |
24042 | ||
24043 | _ACEOF | |
24044 | ||
24045 | ||
24046 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24047 | echo "obj-m := conftest.o" >build/Makefile | |
24048 | modpost_flag='' | |
24049 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24050 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24051 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24052 | (eval $ac_try) 2>&5 | |
24053 | ac_status=$? | |
24054 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24055 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24056 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24057 | (eval $ac_try) 2>&5 | |
24058 | ac_status=$? | |
24059 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24060 | test $ac_status = 0; }; }; then : | |
24061 | ||
24062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24063 | $as_echo "yes" >&6; } | |
24064 | ||
24065 | $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h | |
24066 | ||
24067 | ||
24068 | else | |
24069 | $as_echo "$as_me: failed program was:" >&5 | |
24070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24071 | ||
24072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24073 | $as_echo "no" >&6; } | |
24074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5 | |
24075 | $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; } | |
24076 | ||
24077 | ||
24078 | cat confdefs.h - <<_ACEOF >conftest.c | |
24079 | ||
24080 | ||
24081 | #include <linux/blkdev.h> | |
24082 | ||
24083 | blk_qc_t make_request(struct request_queue *q, struct bio *bio) | |
24084 | { | |
24085 | return (BLK_QC_T_NONE); | |
24086 | } | |
24087 | ||
24088 | int | |
24089 | main (void) | |
24090 | { | |
24091 | ||
24092 | blk_queue_make_request(NULL, &make_request); | |
24093 | ||
24094 | ; | |
24095 | return 0; | |
24096 | } | |
24097 | ||
24098 | _ACEOF | |
24099 | ||
24100 | ||
24101 | ||
24102 | cat - <<_ACEOF >conftest.h | |
24103 | ||
24104 | _ACEOF | |
24105 | ||
24106 | ||
24107 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24108 | echo "obj-m := conftest.o" >build/Makefile | |
24109 | modpost_flag='' | |
24110 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24111 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24112 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24113 | (eval $ac_try) 2>&5 | |
24114 | ac_status=$? | |
24115 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24116 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24117 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24118 | (eval $ac_try) 2>&5 | |
24119 | ac_status=$? | |
24120 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24121 | test $ac_status = 0; }; }; then : | |
24122 | ||
24123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24124 | $as_echo "yes" >&6; } | |
24125 | ||
24126 | $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h | |
24127 | ||
24128 | ||
24129 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h | |
24130 | ||
24131 | ||
24132 | else | |
24133 | $as_echo "$as_me: failed program was:" >&5 | |
24134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24135 | ||
24136 | as_fn_error $? "no - Please file a bug report at | |
24137 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
24138 | ||
24139 | ||
24140 | ||
24141 | fi | |
24142 | rm -Rf build | |
24143 | ||
24144 | ||
24145 | ||
24146 | ||
24147 | ||
24148 | fi | |
24149 | rm -Rf build | |
24150 | ||
24151 | ||
24152 | ||
24153 | ||
24154 | ||
24155 | fi | |
24156 | rm -Rf build | |
24157 | ||
24158 | ||
24159 | ||
24160 | ||
24161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5 | |
24162 | $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; } | |
24163 | ||
24164 | ||
24165 | ||
24166 | cat confdefs.h - <<_ACEOF >conftest.c | |
24167 | ||
24168 | ||
24169 | #include <linux/bio.h> | |
24170 | ||
24171 | void (*generic_start_io_acct_f)(int, unsigned long, | |
24172 | struct hd_struct *) = &generic_start_io_acct; | |
24173 | void (*generic_end_io_acct_f)(int, struct hd_struct *, | |
24174 | unsigned long) = &generic_end_io_acct; | |
24175 | ||
24176 | int | |
24177 | main (void) | |
24178 | { | |
24179 | ||
24180 | generic_start_io_acct(0, 0, NULL); | |
24181 | generic_end_io_acct(0, NULL, 0); | |
24182 | ||
24183 | ; | |
24184 | return 0; | |
24185 | } | |
24186 | ||
24187 | _ACEOF | |
24188 | ||
24189 | ||
24190 | ||
24191 | cat - <<_ACEOF >conftest.h | |
24192 | ||
24193 | _ACEOF | |
24194 | ||
24195 | ||
24196 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24197 | echo "obj-m := conftest.o" >build/Makefile | |
24198 | modpost_flag='' | |
24199 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24200 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24201 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24202 | (eval $ac_try) 2>&5 | |
24203 | ac_status=$? | |
24204 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24205 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24206 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24207 | (eval $ac_try) 2>&5 | |
24208 | ac_status=$? | |
24209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24210 | test $ac_status = 0; }; }; then : | |
24211 | rc=0 | |
24212 | else | |
24213 | $as_echo "$as_me: failed program was:" >&5 | |
24214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24215 | rc=1 | |
24216 | ||
24217 | ||
24218 | fi | |
24219 | rm -Rf build | |
24220 | ||
24221 | ||
24222 | if test $rc -ne 0; then : | |
24223 | ||
24224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24225 | $as_echo "no" >&6; } | |
24226 | ||
24227 | else | |
24228 | if test "x$enable_linux_builtin" != xyes; then | |
24229 | ||
24230 | grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \ | |
24231 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
24232 | rc=$? | |
24233 | if test $rc -ne 0; then | |
24234 | export=0 | |
24235 | for file in block/bio.c; do | |
24236 | grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \ | |
24237 | "$LINUX/$file" 2>/dev/null | |
24238 | rc=$? | |
24239 | if test $rc -eq 0; then | |
24240 | export=1 | |
24241 | break; | |
24242 | fi | |
24243 | done | |
24244 | if test $export -eq 0; then : | |
24245 | rc=1 | |
24246 | else : | |
24247 | rc=0 | |
24248 | fi | |
24249 | else : | |
24250 | rc=0 | |
24251 | fi | |
24252 | ||
24253 | fi | |
24254 | if test $rc -ne 0; then : | |
24255 | ||
24256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24257 | $as_echo "no" >&6; } | |
24258 | ||
24259 | else : | |
24260 | ||
24261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24262 | $as_echo "yes" >&6; } | |
24263 | ||
24264 | $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h | |
24265 | ||
24266 | ||
24267 | fi | |
24268 | fi | |
24269 | ||
24270 | ||
24271 | ||
24272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5 | |
24273 | $as_echo_n "checking whether iops->rename() wants flags... " >&6; } | |
24274 | ||
24275 | ||
24276 | cat confdefs.h - <<_ACEOF >conftest.c | |
24277 | ||
24278 | ||
24279 | #include <linux/fs.h> | |
24280 | int rename_fn(struct inode *sip, struct dentry *sdp, | |
24281 | struct inode *tip, struct dentry *tdp, | |
24282 | unsigned int flags) { return 0; } | |
24283 | ||
24284 | static const struct inode_operations | |
24285 | iops __attribute__ ((unused)) = { | |
24286 | .rename = rename_fn, | |
24287 | }; | |
24288 | ||
24289 | int | |
24290 | main (void) | |
24291 | { | |
24292 | ||
24293 | ||
24294 | ; | |
24295 | return 0; | |
24296 | } | |
24297 | ||
24298 | _ACEOF | |
24299 | ||
24300 | ||
24301 | ||
24302 | cat - <<_ACEOF >conftest.h | |
24303 | ||
24304 | _ACEOF | |
24305 | ||
24306 | ||
24307 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24308 | echo "obj-m := conftest.o" >build/Makefile | |
24309 | modpost_flag='' | |
24310 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24311 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24312 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24313 | (eval $ac_try) 2>&5 | |
24314 | ac_status=$? | |
24315 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24316 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24317 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24318 | (eval $ac_try) 2>&5 | |
24319 | ac_status=$? | |
24320 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24321 | test $ac_status = 0; }; }; then : | |
24322 | ||
24323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24324 | $as_echo "yes" >&6; } | |
24325 | ||
24326 | $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h | |
24327 | ||
24328 | ||
24329 | else | |
24330 | $as_echo "$as_me: failed program was:" >&5 | |
24331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24332 | ||
24333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24334 | $as_echo "no" >&6; } | |
24335 | ||
24336 | ||
24337 | ||
24338 | fi | |
24339 | rm -Rf build | |
24340 | ||
24341 | ||
24342 | ||
24343 | ||
24344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5 | |
24345 | $as_echo_n "checking whether generic_setxattr() exists... " >&6; } | |
24346 | ||
24347 | ||
24348 | cat confdefs.h - <<_ACEOF >conftest.c | |
24349 | ||
24350 | ||
24351 | #include <linux/fs.h> | |
24352 | #include <linux/xattr.h> | |
24353 | ||
24354 | static const struct inode_operations | |
24355 | iops __attribute__ ((unused)) = { | |
24356 | .setxattr = generic_setxattr | |
24357 | }; | |
24358 | ||
24359 | int | |
24360 | main (void) | |
24361 | { | |
24362 | ||
24363 | ||
24364 | ; | |
24365 | return 0; | |
24366 | } | |
24367 | ||
24368 | _ACEOF | |
24369 | ||
24370 | ||
24371 | ||
24372 | cat - <<_ACEOF >conftest.h | |
24373 | ||
24374 | _ACEOF | |
24375 | ||
24376 | ||
24377 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24378 | echo "obj-m := conftest.o" >build/Makefile | |
24379 | modpost_flag='' | |
24380 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24381 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24382 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24383 | (eval $ac_try) 2>&5 | |
24384 | ac_status=$? | |
24385 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24386 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24387 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24388 | (eval $ac_try) 2>&5 | |
24389 | ac_status=$? | |
24390 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24391 | test $ac_status = 0; }; }; then : | |
24392 | ||
24393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24394 | $as_echo "yes" >&6; } | |
24395 | ||
24396 | $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h | |
24397 | ||
24398 | ||
24399 | else | |
24400 | $as_echo "$as_me: failed program was:" >&5 | |
24401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24402 | ||
24403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24404 | $as_echo "no" >&6; } | |
24405 | ||
24406 | ||
24407 | ||
24408 | fi | |
24409 | rm -Rf build | |
24410 | ||
24411 | ||
24412 | ||
24413 | ||
24414 | if test "$LINUX_OBJ" != "$LINUX"; then : | |
24415 | ||
24416 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
24417 | ||
24418 | fi | |
24419 | ||
24420 | ||
24421 | ||
24422 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE" | |
24423 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE" | |
24424 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL" | |
24425 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\"" | |
24426 | ||
24427 | ||
24428 | ;; | |
24429 | all) | |
24430 | ||
24431 | ||
24432 | # Check whether --with-linux was given. | |
24433 | if test "${with_linux+set}" = set; then : | |
24434 | withval=$with_linux; kernelsrc="$withval" | |
24435 | fi | |
24436 | ||
24437 | ||
24438 | ||
24439 | # Check whether --with-linux-obj was given. | |
24440 | if test "${with_linux_obj+set}" = set; then : | |
24441 | withval=$with_linux_obj; kernelbuild="$withval" | |
24442 | fi | |
24443 | ||
24444 | ||
24445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5 | |
24446 | $as_echo_n "checking kernel source directory... " >&6; } | |
24447 | if test -z "$kernelsrc"; then : | |
24448 | ||
24449 | if test -e "/lib/modules/$(uname -r)/source"; then : | |
24450 | ||
24451 | headersdir="/lib/modules/$(uname -r)/source" | |
24452 | sourcelink=$(readlink -f "$headersdir") | |
24453 | ||
24454 | elif test -e "/lib/modules/$(uname -r)/build"; then : | |
24455 | ||
24456 | headersdir="/lib/modules/$(uname -r)/build" | |
24457 | sourcelink=$(readlink -f "$headersdir") | |
24458 | ||
24459 | else | |
24460 | ||
24461 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
24462 | /usr/src/linux-* \ | |
24463 | 2>/dev/null | grep -v obj | tail -1) | |
24464 | ||
24465 | fi | |
24466 | ||
24467 | if test -n "$sourcelink" && test -e ${sourcelink}; then : | |
24468 | ||
24469 | kernelsrc=`readlink -f ${sourcelink}` | |
24470 | ||
24471 | else | |
24472 | ||
24473 | kernelsrc="Not found" | |
24474 | ||
24475 | fi | |
24476 | ||
24477 | else | |
24478 | ||
24479 | if test "$kernelsrc" = "NONE"; then : | |
24480 | ||
24481 | kernsrcver=NONE | |
24482 | ||
24483 | fi | |
24484 | ||
24485 | fi | |
24486 | ||
24487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5 | |
24488 | $as_echo "$kernelsrc" >&6; } | |
24489 | if test ! -d "$kernelsrc"; then : | |
24490 | ||
24491 | as_fn_error $? " | |
24492 | *** Please make sure the kernel devel package for your distribution | |
24493 | *** is installed and then try again. If that fails, you can specify the | |
24494 | *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5 | |
24495 | ||
24496 | fi | |
24497 | ||
24498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5 | |
24499 | $as_echo_n "checking kernel build directory... " >&6; } | |
24500 | if test -z "$kernelbuild"; then : | |
24501 | ||
24502 | if test -e "/lib/modules/$(uname -r)/build"; then : | |
24503 | ||
24504 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` | |
24505 | ||
24506 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then : | |
24507 | ||
24508 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
24509 | ||
24510 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then : | |
24511 | ||
24512 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
24513 | ||
24514 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then : | |
24515 | ||
24516 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
24517 | ||
24518 | else | |
24519 | ||
24520 | kernelbuild=${kernelsrc} | |
24521 | ||
24522 | fi | |
24523 | ||
24524 | fi | |
24525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5 | |
24526 | $as_echo "$kernelbuild" >&6; } | |
24527 | ||
24528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5 | |
24529 | $as_echo_n "checking kernel source version... " >&6; } | |
24530 | utsrelease1=$kernelbuild/include/linux/version.h | |
24531 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
24532 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
24533 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then : | |
24534 | ||
24535 | utsrelease=linux/version.h | |
24536 | ||
24537 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then : | |
24538 | ||
24539 | utsrelease=linux/utsrelease.h | |
24540 | ||
24541 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then : | |
24542 | ||
24543 | utsrelease=generated/utsrelease.h | |
24544 | ||
24545 | fi | |
24546 | ||
24547 | if test "$utsrelease"; then : | |
24548 | ||
24549 | kernsrcver=`(echo "#include <$utsrelease>"; | |
24550 | echo "kernsrcver=UTS_RELEASE") | | |
24551 | cpp -I $kernelbuild/include | | |
24552 | grep "^kernsrcver=" | cut -d \" -f 2` | |
24553 | ||
24554 | if test -z "$kernsrcver"; then : | |
24555 | ||
24556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
24557 | $as_echo "Not found" >&6; } | |
24558 | as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5 | |
24559 | ||
24560 | fi | |
24561 | ||
24562 | else | |
24563 | ||
24564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
24565 | $as_echo "Not found" >&6; } | |
24566 | if test "x$enable_linux_builtin" != xyes; then | |
24567 | as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5 | |
24568 | else | |
24569 | as_fn_error $? " | |
24570 | *** Cannot find UTS_RELEASE definition. | |
24571 | *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5 | |
24572 | fi | |
24573 | ||
24574 | fi | |
24575 | ||
24576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5 | |
24577 | $as_echo "$kernsrcver" >&6; } | |
24578 | ||
24579 | LINUX=${kernelsrc} | |
24580 | LINUX_OBJ=${kernelbuild} | |
24581 | LINUX_VERSION=${kernsrcver} | |
24582 | ||
24583 | ||
24584 | ||
24585 | ||
24586 | ||
24587 | ||
24588 | modpost=$LINUX/scripts/Makefile.modpost | |
24589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5 | |
24590 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
24591 | if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then : | |
24592 | ||
24593 | if grep -q Modules.symvers $modpost; then : | |
24594 | ||
24595 | LINUX_SYMBOLS=Modules.symvers | |
24596 | ||
24597 | else | |
24598 | ||
24599 | LINUX_SYMBOLS=Module.symvers | |
24600 | ||
24601 | fi | |
24602 | ||
24603 | if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then : | |
24604 | ||
24605 | as_fn_error $? " | |
24606 | *** Please make sure the kernel devel package for your distribution | |
24607 | *** is installed. If you are building with a custom kernel, make sure the | |
24608 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
24609 | *** option refers to the location of the kernel source." "$LINENO" 5 | |
24610 | ||
24611 | fi | |
24612 | ||
24613 | else | |
24614 | ||
24615 | LINUX_SYMBOLS=NONE | |
24616 | ||
24617 | fi | |
24618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5 | |
24619 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
24620 | ||
24621 | ||
24622 | ||
24623 | ||
24624 | ||
24625 | # Check whether --with-spl was given. | |
24626 | if test "${with_spl+set}" = set; then : | |
24627 | withval=$with_spl; splsrc="$withval" | |
24628 | fi | |
24629 | ||
24630 | ||
24631 | ||
24632 | # Check whether --with-spl-obj was given. | |
24633 | if test "${with_spl_obj+set}" = set; then : | |
24634 | withval=$with_spl_obj; splbuild="$withval" | |
24635 | fi | |
24636 | ||
24637 | ||
24638 | ||
24639 | # Check whether --with-spl-timeout was given. | |
24640 | if test "${with_spl_timeout+set}" = set; then : | |
24641 | withval=$with_spl_timeout; timeout="$withval" | |
24642 | else | |
24643 | timeout=0 | |
24644 | fi | |
24645 | ||
24646 | ||
24647 | splsrc0="/var/lib/dkms/spl/${VERSION}/build" | |
24648 | splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}" | |
24649 | splsrc2="/usr/local/src/spl-${VERSION}" | |
24650 | splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}" | |
24651 | splsrc4="/usr/src/spl-${VERSION}" | |
24652 | splsrc5="../spl/" | |
24653 | splsrc6="$LINUX" | |
24654 | ||
24655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5 | |
24656 | $as_echo_n "checking spl source directory... " >&6; } | |
24657 | if test -z "${splsrc}"; then : | |
24658 | ||
24659 | if test -e "${splsrc0}/spl.release.in"; then : | |
24660 | ||
24661 | splsrc=${splsrc0} | |
24662 | ||
24663 | elif test -e "${splsrc1}/spl.release.in"; then : | |
24664 | ||
24665 | splsrc=${splsrc1} | |
24666 | ||
24667 | elif test -e "${splsrc2}/spl.release.in"; then : | |
24668 | ||
24669 | splsrc=${splsrc2} | |
24670 | ||
24671 | elif test -e "${splsrc3}/spl.release.in"; then : | |
24672 | ||
24673 | splsrc=$(readlink -f "${splsrc3}") | |
24674 | ||
24675 | elif test -e "${splsrc4}/spl.release.in" ; then : | |
24676 | ||
24677 | splsrc=${splsrc4} | |
24678 | ||
24679 | elif test -e "${splsrc5}/spl.release.in"; then : | |
24680 | ||
24681 | splsrc=$(readlink -f "${splsrc5}") | |
24682 | ||
24683 | elif test -e "${splsrc6}/spl.release.in" ; then : | |
24684 | ||
24685 | splsrc=${splsrc6} | |
24686 | ||
24687 | else | |
24688 | ||
24689 | splsrc="Not found" | |
24690 | ||
24691 | fi | |
24692 | ||
24693 | else | |
24694 | ||
24695 | if test "$splsrc" = "NONE"; then : | |
24696 | ||
24697 | splbuild=NONE | |
24698 | splsrcver=NONE | |
24699 | ||
24700 | fi | |
24701 | ||
24702 | fi | |
24703 | ||
24704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5 | |
24705 | $as_echo "$splsrc" >&6; } | |
24706 | if test ! -e "$splsrc/spl.release.in"; then : | |
24707 | ||
24708 | as_fn_error $? " | |
24709 | *** Please make sure the kmod spl devel package for your distribution | |
24710 | *** is installed then try again. If that fails you can specify the | |
24711 | *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5 | |
24712 | ||
24713 | fi | |
24714 | ||
24715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5 | |
24716 | $as_echo_n "checking spl build directory... " >&6; } | |
24717 | while true; do | |
24718 | if test -z "$splbuild"; then : | |
24719 | ||
24720 | if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then : | |
24721 | ||
24722 | splbuild="${splsrc}/${LINUX_VERSION}" | |
24723 | ||
24724 | elif test -e "${splsrc}/spl_config.h" ; then : | |
24725 | ||
24726 | splbuild="${splsrc}" | |
24727 | ||
24728 | elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then : | |
24729 | ||
24730 | splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,') | |
24731 | ||
24732 | else | |
24733 | ||
24734 | splbuild="Not found" | |
24735 | ||
24736 | fi | |
24737 | ||
24738 | fi | |
24739 | if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then : | |
24740 | ||
24741 | break; | |
24742 | ||
24743 | else | |
24744 | ||
24745 | sleep 1 | |
24746 | timeout=$((timeout-1)) | |
24747 | ||
24748 | fi | |
24749 | done | |
24750 | ||
24751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5 | |
24752 | $as_echo "$splbuild" >&6; } | |
24753 | if ! test -e "$splbuild/spl_config.h"; then : | |
24754 | ||
24755 | as_fn_error $? " | |
24756 | *** Please make sure the kmod spl devel <kernel> package for your | |
24757 | *** distribution is installed then try again. If that fails you | |
24758 | *** can specify the location of the spl objects with the | |
24759 | *** '--with-spl-obj=PATH' option." "$LINENO" 5 | |
24760 | ||
24761 | fi | |
24762 | ||
24763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5 | |
24764 | $as_echo_n "checking spl source version... " >&6; } | |
24765 | if test -r $splbuild/spl_config.h && | |
24766 | fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then : | |
24767 | ||
24768 | ||
24769 | splsrcver=`(echo "#include <spl_config.h>"; | |
24770 | echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") | | |
24771 | cpp -I $splbuild | | |
24772 | grep "^splsrcver=" | tr -d \" | cut -d= -f2` | |
24773 | ||
24774 | fi | |
24775 | ||
24776 | if test -z "$splsrcver"; then : | |
24777 | ||
24778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
24779 | $as_echo "Not found" >&6; } | |
24780 | as_fn_error $? " | |
24781 | *** Cannot determine the version of the spl source. | |
24782 | *** Please prepare the spl source before running this script" "$LINENO" 5 | |
24783 | ||
24784 | fi | |
24785 | ||
24786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5 | |
24787 | $as_echo "$splsrcver" >&6; } | |
24788 | ||
24789 | SPL=${splsrc} | |
24790 | SPL_OBJ=${splbuild} | |
24791 | SPL_VERSION=${splsrcver} | |
24792 | ||
24793 | ||
24794 | ||
24795 | ||
24796 | ||
24797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5 | |
24798 | $as_echo_n "checking spl file name for module symbols... " >&6; } | |
24799 | SPL_SYMBOLS=NONE | |
24800 | ||
24801 | while true; do | |
24802 | if test -r $SPL_OBJ/Module.symvers; then : | |
24803 | ||
24804 | SPL_SYMBOLS=Module.symvers | |
24805 | ||
24806 | elif test -r $SPL_OBJ/Modules.symvers; then : | |
24807 | ||
24808 | SPL_SYMBOLS=Modules.symvers | |
24809 | ||
24810 | elif test -r $SPL_OBJ/module/Module.symvers; then : | |
24811 | ||
24812 | SPL_SYMBOLS=Module.symvers | |
24813 | ||
24814 | elif test -r $SPL_OBJ/module/Modules.symvers; then : | |
24815 | ||
24816 | SPL_SYMBOLS=Modules.symvers | |
24817 | ||
24818 | fi | |
24819 | ||
24820 | if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then : | |
24821 | ||
24822 | break; | |
24823 | ||
24824 | else | |
24825 | ||
24826 | sleep 1 | |
24827 | timeout=$((timeout-1)) | |
24828 | ||
24829 | fi | |
24830 | done | |
24831 | ||
24832 | if test "$SPL_SYMBOLS" = NONE; then : | |
24833 | ||
24834 | SPL_SYMBOLS=$LINUX_SYMBOLS | |
24835 | ||
24836 | fi | |
24837 | ||
24838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5 | |
24839 | $as_echo "$SPL_SYMBOLS" >&6; } | |
24840 | ||
24841 | ||
24842 | ||
24843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5 | |
24844 | $as_echo_n "checking whether modules can be built... " >&6; } | |
24845 | ||
24846 | ||
24847 | cat confdefs.h - <<_ACEOF >conftest.c | |
24848 | ||
24849 | ||
24850 | int | |
24851 | main (void) | |
24852 | { | |
24853 | ||
24854 | ; | |
24855 | return 0; | |
24856 | } | |
24857 | ||
24858 | _ACEOF | |
24859 | ||
24860 | ||
24861 | ||
24862 | cat - <<_ACEOF >conftest.h | |
24863 | ||
24864 | _ACEOF | |
24865 | ||
24866 | ||
24867 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24868 | echo "obj-m := conftest.o" >build/Makefile | |
24869 | modpost_flag='' | |
24870 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24871 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24872 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24873 | (eval $ac_try) 2>&5 | |
24874 | ac_status=$? | |
24875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24876 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24877 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24878 | (eval $ac_try) 2>&5 | |
24879 | ac_status=$? | |
24880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24881 | test $ac_status = 0; }; }; then : | |
24882 | ||
24883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24884 | $as_echo "yes" >&6; } | |
24885 | ||
24886 | else | |
24887 | $as_echo "$as_me: failed program was:" >&5 | |
24888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24889 | ||
24890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24891 | $as_echo "no" >&6; } | |
24892 | if test "x$enable_linux_builtin" != xyes; then | |
24893 | as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5 | |
24894 | else | |
24895 | as_fn_error $? " | |
24896 | *** Unable to build an empty module. | |
24897 | *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5 | |
24898 | fi | |
24899 | ||
24900 | ||
24901 | ||
24902 | fi | |
24903 | rm -Rf build | |
24904 | ||
24905 | ||
24906 | ||
24907 | ||
24908 | if test "x$cross_compiling" != xyes; then : | |
24909 | ||
24910 | if test "$cross_compiling" = yes; then : | |
24911 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
24912 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
24913 | as_fn_error $? "cannot run test program while cross compiling | |
24914 | See \`config.log' for more details" "$LINENO" 5; } | |
24915 | else | |
24916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24917 | /* end confdefs.h. */ | |
24918 | ||
24919 | ||
24920 | #include "$LINUX/include/linux/license.h" | |
24921 | ||
24922 | int | |
24923 | main () | |
24924 | { | |
24925 | ||
24926 | return !license_is_gpl_compatible("$ZFS_META_LICENSE"); | |
24927 | ||
24928 | ; | |
24929 | return 0; | |
24930 | } | |
24931 | ||
24932 | _ACEOF | |
24933 | if ac_fn_c_try_run "$LINENO"; then : | |
24934 | ||
24935 | ||
24936 | $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h | |
24937 | ||
24938 | ||
24939 | fi | |
24940 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
24941 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
24942 | fi | |
24943 | ||
24944 | ||
24945 | fi | |
24946 | ||
24947 | ||
d177712e CIK |
24948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5 |
24949 | $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; } | |
24950 | ||
0bd31011 | 24951 | |
d177712e CIK |
24952 | cat confdefs.h - <<_ACEOF >conftest.c |
24953 | ||
24954 | ||
24955 | #include <linux/module.h> | |
24956 | ||
24957 | int | |
24958 | main (void) | |
24959 | { | |
24960 | ||
24961 | #if (THREAD_SIZE < 16384) | |
24962 | #error "THREAD_SIZE is less than 16K" | |
24963 | #endif | |
24964 | ||
24965 | ; | |
24966 | return 0; | |
24967 | } | |
24968 | ||
24969 | _ACEOF | |
24970 | ||
24971 | ||
24972 | ||
24973 | cat - <<_ACEOF >conftest.h | |
24974 | ||
24975 | _ACEOF | |
24976 | ||
24977 | ||
24978 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
24979 | echo "obj-m := conftest.o" >build/Makefile | |
24980 | modpost_flag='' | |
24981 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24982 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
24983 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24984 | (eval $ac_try) 2>&5 | |
24985 | ac_status=$? | |
24986 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24987 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24988 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
24989 | (eval $ac_try) 2>&5 | |
24990 | ac_status=$? | |
24991 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24992 | test $ac_status = 0; }; }; then : | |
24993 | ||
24994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24995 | $as_echo "yes" >&6; } | |
24996 | ||
24997 | $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h | |
24998 | ||
24999 | ||
25000 | else | |
25001 | $as_echo "$as_me: failed program was:" >&5 | |
25002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25003 | ||
25004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25005 | $as_echo "no" >&6; } | |
25006 | ||
25007 | ||
25008 | ||
25009 | fi | |
25010 | rm -Rf build | |
25011 | ||
25012 | ||
25013 | ||
25014 | ||
25015 | ||
25016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5 | |
25017 | $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; } | |
0bd31011 TG |
25018 | |
25019 | ||
25020 | cat confdefs.h - <<_ACEOF >conftest.c | |
25021 | ||
25022 | ||
25023 | #include <linux/module.h> | |
25024 | ||
25025 | int | |
25026 | main (void) | |
25027 | { | |
25028 | ||
25029 | #ifndef CONFIG_DEBUG_LOCK_ALLOC | |
25030 | #error CONFIG_DEBUG_LOCK_ALLOC not #defined | |
25031 | #endif | |
25032 | ||
25033 | ; | |
25034 | return 0; | |
25035 | } | |
25036 | ||
25037 | _ACEOF | |
25038 | ||
25039 | ||
25040 | ||
25041 | cat - <<_ACEOF >conftest.h | |
25042 | ||
25043 | _ACEOF | |
25044 | ||
25045 | ||
25046 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25047 | echo "obj-m := conftest.o" >build/Makefile | |
25048 | modpost_flag='' | |
25049 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25050 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25051 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25052 | (eval $ac_try) 2>&5 | |
25053 | ac_status=$? | |
25054 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25055 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25056 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25057 | (eval $ac_try) 2>&5 | |
25058 | ac_status=$? | |
25059 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25060 | test $ac_status = 0; }; }; then : | |
25061 | ||
25062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25063 | $as_echo "yes" >&6; } | |
25064 | ||
25065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5 | |
25066 | $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; } | |
25067 | tmp_flags="$EXTRA_KCFLAGS" | |
25068 | ||
25069 | ||
25070 | cat confdefs.h - <<_ACEOF >conftest.c | |
25071 | ||
25072 | ||
25073 | #include <linux/module.h> | |
25074 | #include <linux/mutex.h> | |
25075 | ||
25076 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
25077 | ||
25078 | int | |
25079 | main (void) | |
25080 | { | |
25081 | ||
25082 | struct mutex lock; | |
25083 | ||
25084 | mutex_init(&lock); | |
25085 | mutex_lock(&lock); | |
25086 | mutex_unlock(&lock); | |
25087 | ||
25088 | ; | |
25089 | return 0; | |
25090 | } | |
25091 | ||
25092 | _ACEOF | |
25093 | ||
25094 | ||
25095 | ||
25096 | cat - <<_ACEOF >conftest.h | |
25097 | ||
25098 | _ACEOF | |
25099 | ||
25100 | ||
25101 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25102 | echo "obj-m := conftest.o" >build/Makefile | |
25103 | modpost_flag='' | |
25104 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25105 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25106 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25107 | (eval $ac_try) 2>&5 | |
25108 | ac_status=$? | |
25109 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25110 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25111 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25112 | (eval $ac_try) 2>&5 | |
25113 | ac_status=$? | |
25114 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25115 | test $ac_status = 0; }; }; then : | |
25116 | ||
25117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25118 | $as_echo "no" >&6; } | |
25119 | ||
25120 | else | |
25121 | $as_echo "$as_me: failed program was:" >&5 | |
25122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25123 | ||
25124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25125 | $as_echo "yes" >&6; } | |
25126 | as_fn_error $? " | |
25127 | *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible | |
25128 | *** with the CDDL license and will prevent the module linking stage | |
25129 | *** from succeeding. You must rebuild your kernel without this | |
25130 | *** option enabled." "$LINENO" 5 | |
25131 | ||
25132 | ||
25133 | ||
25134 | fi | |
25135 | rm -Rf build | |
25136 | ||
25137 | ||
25138 | EXTRA_KCFLAGS="$tmp_flags" | |
25139 | ||
25140 | ||
25141 | else | |
25142 | $as_echo "$as_me: failed program was:" >&5 | |
25143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25144 | ||
25145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25146 | $as_echo "no" >&6; } | |
25147 | ||
25148 | ||
25149 | ||
25150 | ||
25151 | fi | |
25152 | rm -Rf build | |
25153 | ||
25154 | ||
25155 | ||
25156 | ||
25157 | ||
25158 | ||
25159 | tmp_flags="$EXTRA_KCFLAGS" | |
25160 | EXTRA_KCFLAGS="-I\$(src)" | |
25161 | ||
25162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5 | |
25163 | $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; } | |
25164 | ||
25165 | ||
25166 | cat confdefs.h - <<_ACEOF >conftest.c | |
25167 | ||
25168 | ||
25169 | #include <linux/module.h> | |
25170 | MODULE_LICENSE(ZFS_META_LICENSE); | |
25171 | ||
25172 | #define CREATE_TRACE_POINTS | |
25173 | #include "conftest.h" | |
25174 | ||
25175 | int | |
25176 | main (void) | |
25177 | { | |
25178 | ||
25179 | trace_zfs_autoconf_event_one(1UL); | |
25180 | trace_zfs_autoconf_event_two(2UL); | |
25181 | ||
25182 | ; | |
25183 | return 0; | |
25184 | } | |
25185 | ||
25186 | _ACEOF | |
25187 | ||
25188 | ||
25189 | ||
25190 | cat - <<_ACEOF >conftest.h | |
25191 | ||
25192 | #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ) | |
25193 | #define _CONFTEST_H | |
25194 | ||
25195 | #undef TRACE_SYSTEM | |
25196 | #define TRACE_SYSTEM zfs | |
25197 | #include <linux/tracepoint.h> | |
25198 | ||
25199 | DECLARE_EVENT_CLASS(zfs_autoconf_event_class, | |
25200 | TP_PROTO(unsigned long i), | |
25201 | TP_ARGS(i), | |
25202 | TP_STRUCT__entry( | |
25203 | __field(unsigned long, i) | |
25204 | ), | |
25205 | TP_fast_assign( | |
25206 | __entry->i = i; | |
25207 | ), | |
25208 | TP_printk("i = %lu", __entry->i) | |
25209 | ); | |
25210 | ||
25211 | #define DEFINE_AUTOCONF_EVENT(name) \ | |
25212 | DEFINE_EVENT(zfs_autoconf_event_class, name, \ | |
25213 | TP_PROTO(unsigned long i), \ | |
25214 | TP_ARGS(i)) | |
25215 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one); | |
25216 | DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two); | |
25217 | ||
25218 | #endif /* _CONFTEST_H */ | |
25219 | ||
25220 | #undef TRACE_INCLUDE_PATH | |
25221 | #define TRACE_INCLUDE_PATH . | |
25222 | #define TRACE_INCLUDE_FILE conftest | |
25223 | #include <trace/define_trace.h> | |
25224 | ||
25225 | _ACEOF | |
25226 | ||
25227 | ||
25228 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25229 | echo "obj-m := conftest.o" >build/Makefile | |
25230 | modpost_flag='' | |
25231 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25232 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25233 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25234 | (eval $ac_try) 2>&5 | |
25235 | ac_status=$? | |
25236 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25237 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25238 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25239 | (eval $ac_try) 2>&5 | |
25240 | ac_status=$? | |
25241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25242 | test $ac_status = 0; }; }; then : | |
25243 | ||
25244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25245 | $as_echo "yes" >&6; } | |
25246 | ||
25247 | $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h | |
25248 | ||
25249 | ||
25250 | else | |
25251 | $as_echo "$as_me: failed program was:" >&5 | |
25252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25253 | ||
25254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25255 | $as_echo "no" >&6; } | |
25256 | ||
25257 | ||
25258 | ||
25259 | fi | |
25260 | rm -Rf build | |
25261 | ||
25262 | ||
25263 | EXTRA_KCFLAGS="$tmp_flags" | |
25264 | ||
25265 | ||
25266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5 | |
25267 | $as_echo_n "checking whether current->bio_tail exists... " >&6; } | |
25268 | ||
25269 | ||
25270 | cat confdefs.h - <<_ACEOF >conftest.c | |
25271 | ||
25272 | ||
25273 | #include <linux/sched.h> | |
25274 | ||
25275 | int | |
25276 | main (void) | |
25277 | { | |
25278 | ||
25279 | current->bio_tail = (struct bio **) NULL; | |
25280 | ||
25281 | ; | |
25282 | return 0; | |
25283 | } | |
25284 | ||
25285 | _ACEOF | |
25286 | ||
25287 | ||
25288 | ||
25289 | cat - <<_ACEOF >conftest.h | |
25290 | ||
25291 | _ACEOF | |
25292 | ||
25293 | ||
25294 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25295 | echo "obj-m := conftest.o" >build/Makefile | |
25296 | modpost_flag='' | |
25297 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25298 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25299 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25300 | (eval $ac_try) 2>&5 | |
25301 | ac_status=$? | |
25302 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25303 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25304 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25305 | (eval $ac_try) 2>&5 | |
25306 | ac_status=$? | |
25307 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25308 | test $ac_status = 0; }; }; then : | |
25309 | ||
25310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25311 | $as_echo "yes" >&6; } | |
25312 | ||
25313 | $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h | |
25314 | ||
25315 | ||
25316 | else | |
25317 | $as_echo "$as_me: failed program was:" >&5 | |
25318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25319 | ||
25320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25321 | $as_echo "no" >&6; } | |
25322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5 | |
25323 | $as_echo_n "checking whether current->bio_list exists... " >&6; } | |
25324 | ||
25325 | ||
25326 | cat confdefs.h - <<_ACEOF >conftest.c | |
25327 | ||
25328 | ||
25329 | #include <linux/sched.h> | |
25330 | ||
25331 | int | |
25332 | main (void) | |
25333 | { | |
25334 | ||
25335 | current->bio_list = (struct bio_list *) NULL; | |
25336 | ||
25337 | ; | |
25338 | return 0; | |
25339 | } | |
25340 | ||
25341 | _ACEOF | |
25342 | ||
25343 | ||
25344 | ||
25345 | cat - <<_ACEOF >conftest.h | |
25346 | ||
25347 | _ACEOF | |
25348 | ||
25349 | ||
25350 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25351 | echo "obj-m := conftest.o" >build/Makefile | |
25352 | modpost_flag='' | |
25353 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25354 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25355 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25356 | (eval $ac_try) 2>&5 | |
25357 | ac_status=$? | |
25358 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25359 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25360 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25361 | (eval $ac_try) 2>&5 | |
25362 | ac_status=$? | |
25363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25364 | test $ac_status = 0; }; }; then : | |
25365 | ||
25366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25367 | $as_echo "yes" >&6; } | |
25368 | ||
25369 | $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h | |
25370 | ||
25371 | ||
25372 | else | |
25373 | $as_echo "$as_me: failed program was:" >&5 | |
25374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25375 | ||
25376 | as_fn_error $? "no - Please file a bug report at | |
25377 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
25378 | ||
25379 | ||
25380 | ||
25381 | fi | |
25382 | rm -Rf build | |
25383 | ||
25384 | ||
25385 | ||
25386 | ||
25387 | ||
25388 | fi | |
25389 | rm -Rf build | |
25390 | ||
25391 | ||
25392 | ||
25393 | ||
25394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5 | |
25395 | $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; } | |
25396 | ||
25397 | ||
25398 | cat confdefs.h - <<_ACEOF >conftest.c | |
25399 | ||
25400 | ||
25401 | #include <linux/bio.h> | |
25402 | ||
25403 | int | |
25404 | main (void) | |
25405 | { | |
25406 | ||
25407 | blk_qc_t blk_qc; | |
25408 | struct bio *bio = NULL; | |
25409 | blk_qc = submit_bio(bio); | |
25410 | ||
25411 | ; | |
25412 | return 0; | |
25413 | } | |
25414 | ||
25415 | _ACEOF | |
25416 | ||
25417 | ||
25418 | ||
25419 | cat - <<_ACEOF >conftest.h | |
25420 | ||
25421 | _ACEOF | |
25422 | ||
25423 | ||
25424 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25425 | echo "obj-m := conftest.o" >build/Makefile | |
25426 | modpost_flag='' | |
25427 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25428 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25429 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25430 | (eval $ac_try) 2>&5 | |
25431 | ac_status=$? | |
25432 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25433 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25434 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25435 | (eval $ac_try) 2>&5 | |
25436 | ac_status=$? | |
25437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25438 | test $ac_status = 0; }; }; then : | |
25439 | ||
25440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25441 | $as_echo "yes" >&6; } | |
25442 | ||
25443 | $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h | |
25444 | ||
25445 | ||
25446 | else | |
25447 | $as_echo "$as_me: failed program was:" >&5 | |
25448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25449 | ||
25450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25451 | $as_echo "no" >&6; } | |
25452 | ||
25453 | ||
25454 | ||
25455 | fi | |
25456 | rm -Rf build | |
25457 | ||
25458 | ||
25459 | ||
25460 | ||
25461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5 | |
25462 | $as_echo_n "checking block device operation prototypes... " >&6; } | |
25463 | tmp_flags="$EXTRA_KCFLAGS" | |
25464 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
25465 | ||
25466 | ||
25467 | cat confdefs.h - <<_ACEOF >conftest.c | |
25468 | ||
25469 | ||
25470 | #include <linux/blkdev.h> | |
25471 | ||
25472 | int blk_open(struct block_device *bdev, fmode_t mode) | |
25473 | { return 0; } | |
25474 | int blk_ioctl(struct block_device *bdev, fmode_t mode, | |
25475 | unsigned x, unsigned long y) { return 0; } | |
25476 | int blk_compat_ioctl(struct block_device * bdev, fmode_t mode, | |
25477 | unsigned x, unsigned long y) { return 0; } | |
25478 | ||
25479 | static const struct block_device_operations | |
25480 | bops __attribute__ ((unused)) = { | |
25481 | .open = blk_open, | |
25482 | .release = NULL, | |
25483 | .ioctl = blk_ioctl, | |
25484 | .compat_ioctl = blk_compat_ioctl, | |
25485 | }; | |
25486 | ||
25487 | int | |
25488 | main (void) | |
25489 | { | |
25490 | ||
25491 | ||
25492 | ; | |
25493 | return 0; | |
25494 | } | |
25495 | ||
25496 | _ACEOF | |
25497 | ||
25498 | ||
25499 | ||
25500 | cat - <<_ACEOF >conftest.h | |
25501 | ||
25502 | _ACEOF | |
25503 | ||
25504 | ||
25505 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25506 | echo "obj-m := conftest.o" >build/Makefile | |
25507 | modpost_flag='' | |
25508 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25509 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25510 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25511 | (eval $ac_try) 2>&5 | |
25512 | ac_status=$? | |
25513 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25514 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25515 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25516 | (eval $ac_try) 2>&5 | |
25517 | ac_status=$? | |
25518 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25519 | test $ac_status = 0; }; }; then : | |
25520 | ||
25521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5 | |
25522 | $as_echo "struct block_device" >&6; } | |
25523 | ||
25524 | $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h | |
25525 | ||
25526 | ||
25527 | else | |
25528 | $as_echo "$as_me: failed program was:" >&5 | |
25529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25530 | ||
25531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5 | |
25532 | $as_echo "struct inode" >&6; } | |
25533 | ||
25534 | ||
25535 | ||
25536 | fi | |
25537 | rm -Rf build | |
25538 | ||
25539 | ||
25540 | EXTRA_KCFLAGS="$tmp_flags" | |
25541 | ||
25542 | ||
25543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5 | |
25544 | $as_echo_n "checking whether block_device_operations.release is void... " >&6; } | |
25545 | tmp_flags="$EXTRA_KCFLAGS" | |
25546 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
25547 | ||
25548 | ||
25549 | cat confdefs.h - <<_ACEOF >conftest.c | |
25550 | ||
25551 | ||
25552 | #include <linux/blkdev.h> | |
25553 | ||
25554 | void blk_release(struct gendisk *g, fmode_t mode) { return; } | |
25555 | ||
25556 | static const struct block_device_operations | |
25557 | bops __attribute__ ((unused)) = { | |
25558 | .open = NULL, | |
25559 | .release = blk_release, | |
25560 | .ioctl = NULL, | |
25561 | .compat_ioctl = NULL, | |
25562 | }; | |
25563 | ||
25564 | int | |
25565 | main (void) | |
25566 | { | |
25567 | ||
25568 | ||
25569 | ; | |
25570 | return 0; | |
25571 | } | |
25572 | ||
25573 | _ACEOF | |
25574 | ||
25575 | ||
25576 | ||
25577 | cat - <<_ACEOF >conftest.h | |
25578 | ||
25579 | _ACEOF | |
25580 | ||
25581 | ||
25582 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25583 | echo "obj-m := conftest.o" >build/Makefile | |
25584 | modpost_flag='' | |
25585 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25586 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25587 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25588 | (eval $ac_try) 2>&5 | |
25589 | ac_status=$? | |
25590 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25591 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25592 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25593 | (eval $ac_try) 2>&5 | |
25594 | ac_status=$? | |
25595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25596 | test $ac_status = 0; }; }; then : | |
25597 | ||
25598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5 | |
25599 | $as_echo "void" >&6; } | |
25600 | ||
25601 | $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h | |
25602 | ||
25603 | ||
25604 | else | |
25605 | $as_echo "$as_me: failed program was:" >&5 | |
25606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25607 | ||
25608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 | |
25609 | $as_echo "int" >&6; } | |
25610 | ||
25611 | ||
25612 | ||
25613 | fi | |
25614 | rm -Rf build | |
25615 | ||
25616 | ||
25617 | EXTRA_KCFLAGS="$tmp_flags" | |
25618 | ||
25619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5 | |
25620 | $as_echo_n "checking whether kernel defines fmode_t... " >&6; } | |
25621 | ||
25622 | ||
25623 | cat confdefs.h - <<_ACEOF >conftest.c | |
25624 | ||
25625 | ||
25626 | #include <linux/types.h> | |
25627 | ||
25628 | int | |
25629 | main (void) | |
25630 | { | |
25631 | ||
25632 | fmode_t *ptr __attribute__ ((unused)); | |
25633 | ||
25634 | ; | |
25635 | return 0; | |
25636 | } | |
25637 | ||
25638 | _ACEOF | |
25639 | ||
25640 | ||
25641 | ||
25642 | cat - <<_ACEOF >conftest.h | |
25643 | ||
25644 | _ACEOF | |
25645 | ||
25646 | ||
25647 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25648 | echo "obj-m := conftest.o" >build/Makefile | |
25649 | modpost_flag='' | |
25650 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25651 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25652 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25653 | (eval $ac_try) 2>&5 | |
25654 | ac_status=$? | |
25655 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25656 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25657 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25658 | (eval $ac_try) 2>&5 | |
25659 | ac_status=$? | |
25660 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25661 | test $ac_status = 0; }; }; then : | |
25662 | ||
25663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25664 | $as_echo "yes" >&6; } | |
25665 | ||
25666 | $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h | |
25667 | ||
25668 | ||
25669 | else | |
25670 | $as_echo "$as_me: failed program was:" >&5 | |
25671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25672 | ||
25673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25674 | $as_echo "no" >&6; } | |
25675 | ||
25676 | ||
25677 | ||
25678 | fi | |
25679 | rm -Rf build | |
25680 | ||
25681 | ||
25682 | ||
25683 | ||
25684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5 | |
25685 | $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; } | |
25686 | ||
25687 | ||
25688 | cat confdefs.h - <<_ACEOF >conftest.c | |
25689 | ||
25690 | ||
25691 | #include <linux/kobject.h> | |
25692 | ||
25693 | int | |
25694 | main (void) | |
25695 | { | |
25696 | ||
25697 | int val __attribute__ ((unused)); | |
25698 | val = KOBJ_NAME_LEN; | |
25699 | ||
25700 | ; | |
25701 | return 0; | |
25702 | } | |
25703 | ||
25704 | _ACEOF | |
25705 | ||
25706 | ||
25707 | ||
25708 | cat - <<_ACEOF >conftest.h | |
25709 | ||
25710 | _ACEOF | |
25711 | ||
25712 | ||
25713 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25714 | echo "obj-m := conftest.o" >build/Makefile | |
25715 | modpost_flag='' | |
25716 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25717 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25718 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25719 | (eval $ac_try) 2>&5 | |
25720 | ac_status=$? | |
25721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25722 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25723 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25724 | (eval $ac_try) 2>&5 | |
25725 | ac_status=$? | |
25726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25727 | test $ac_status = 0; }; }; then : | |
25728 | ||
25729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25730 | $as_echo "yes" >&6; } | |
25731 | ||
25732 | $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h | |
25733 | ||
25734 | ||
25735 | else | |
25736 | $as_echo "$as_me: failed program was:" >&5 | |
25737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25738 | ||
25739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25740 | $as_echo "no" >&6; } | |
25741 | ||
25742 | ||
25743 | ||
25744 | fi | |
25745 | rm -Rf build | |
25746 | ||
25747 | ||
25748 | ||
25749 | ||
25750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5 | |
25751 | $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; } | |
25752 | ||
25753 | ||
25754 | cat confdefs.h - <<_ACEOF >conftest.c | |
25755 | ||
25756 | ||
25757 | #include <linux/fs.h> | |
25758 | ||
25759 | int | |
25760 | main (void) | |
25761 | { | |
25762 | ||
25763 | struct block_device *bdev = NULL; | |
25764 | (void) blkdev_get(bdev, 0, NULL); | |
25765 | ||
25766 | ; | |
25767 | return 0; | |
25768 | } | |
25769 | ||
25770 | _ACEOF | |
25771 | ||
25772 | ||
25773 | ||
25774 | cat - <<_ACEOF >conftest.h | |
25775 | ||
25776 | _ACEOF | |
25777 | ||
25778 | ||
25779 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25780 | echo "obj-m := conftest.o" >build/Makefile | |
25781 | modpost_flag='' | |
25782 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25783 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25784 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25785 | (eval $ac_try) 2>&5 | |
25786 | ac_status=$? | |
25787 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25788 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25789 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25790 | (eval $ac_try) 2>&5 | |
25791 | ac_status=$? | |
25792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25793 | test $ac_status = 0; }; }; then : | |
25794 | ||
25795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25796 | $as_echo "yes" >&6; } | |
25797 | ||
25798 | $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h | |
25799 | ||
25800 | ||
25801 | else | |
25802 | $as_echo "$as_me: failed program was:" >&5 | |
25803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25804 | ||
25805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25806 | $as_echo "no" >&6; } | |
25807 | ||
25808 | ||
25809 | ||
25810 | fi | |
25811 | rm -Rf build | |
25812 | ||
25813 | ||
25814 | ||
25815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5 | |
25816 | $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; } | |
25817 | ||
25818 | ||
25819 | ||
25820 | cat confdefs.h - <<_ACEOF >conftest.c | |
25821 | ||
25822 | ||
25823 | #include <linux/fs.h> | |
25824 | ||
25825 | int | |
25826 | main (void) | |
25827 | { | |
25828 | ||
25829 | blkdev_get_by_path(NULL, 0, NULL); | |
25830 | ||
25831 | ; | |
25832 | return 0; | |
25833 | } | |
25834 | ||
25835 | _ACEOF | |
25836 | ||
25837 | ||
25838 | ||
25839 | cat - <<_ACEOF >conftest.h | |
25840 | ||
25841 | _ACEOF | |
25842 | ||
25843 | ||
25844 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25845 | echo "obj-m := conftest.o" >build/Makefile | |
25846 | modpost_flag='' | |
25847 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25848 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25849 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25850 | (eval $ac_try) 2>&5 | |
25851 | ac_status=$? | |
25852 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25853 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25854 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25855 | (eval $ac_try) 2>&5 | |
25856 | ac_status=$? | |
25857 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25858 | test $ac_status = 0; }; }; then : | |
25859 | rc=0 | |
25860 | else | |
25861 | $as_echo "$as_me: failed program was:" >&5 | |
25862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25863 | rc=1 | |
25864 | ||
25865 | ||
25866 | fi | |
25867 | rm -Rf build | |
25868 | ||
25869 | ||
25870 | if test $rc -ne 0; then : | |
25871 | ||
25872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25873 | $as_echo "no" >&6; } | |
25874 | ||
25875 | else | |
25876 | if test "x$enable_linux_builtin" != xyes; then | |
25877 | ||
25878 | grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \ | |
25879 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
25880 | rc=$? | |
25881 | if test $rc -ne 0; then | |
25882 | export=0 | |
25883 | for file in fs/block_dev.c; do | |
25884 | grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \ | |
25885 | "$LINUX/$file" 2>/dev/null | |
25886 | rc=$? | |
25887 | if test $rc -eq 0; then | |
25888 | export=1 | |
25889 | break; | |
25890 | fi | |
25891 | done | |
25892 | if test $export -eq 0; then : | |
25893 | rc=1 | |
25894 | else : | |
25895 | rc=0 | |
25896 | fi | |
25897 | else : | |
25898 | rc=0 | |
25899 | fi | |
25900 | ||
25901 | fi | |
25902 | if test $rc -ne 0; then : | |
25903 | ||
25904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25905 | $as_echo "no" >&6; } | |
25906 | ||
25907 | else : | |
25908 | ||
25909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25910 | $as_echo "yes" >&6; } | |
25911 | ||
25912 | $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h | |
25913 | ||
25914 | ||
25915 | fi | |
25916 | fi | |
25917 | ||
25918 | ||
25919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5 | |
25920 | $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; } | |
25921 | ||
25922 | ||
25923 | ||
25924 | cat confdefs.h - <<_ACEOF >conftest.c | |
25925 | ||
25926 | ||
25927 | #include <linux/fs.h> | |
25928 | ||
25929 | int | |
25930 | main (void) | |
25931 | { | |
25932 | ||
25933 | open_bdev_exclusive(NULL, 0, NULL); | |
25934 | ||
25935 | ; | |
25936 | return 0; | |
25937 | } | |
25938 | ||
25939 | _ACEOF | |
25940 | ||
25941 | ||
25942 | ||
25943 | cat - <<_ACEOF >conftest.h | |
25944 | ||
25945 | _ACEOF | |
25946 | ||
25947 | ||
25948 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
25949 | echo "obj-m := conftest.o" >build/Makefile | |
25950 | modpost_flag='' | |
25951 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
25952 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
25953 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25954 | (eval $ac_try) 2>&5 | |
25955 | ac_status=$? | |
25956 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25957 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
25958 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
25959 | (eval $ac_try) 2>&5 | |
25960 | ac_status=$? | |
25961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25962 | test $ac_status = 0; }; }; then : | |
25963 | rc=0 | |
25964 | else | |
25965 | $as_echo "$as_me: failed program was:" >&5 | |
25966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25967 | rc=1 | |
25968 | ||
25969 | ||
25970 | fi | |
25971 | rm -Rf build | |
25972 | ||
25973 | ||
25974 | if test $rc -ne 0; then : | |
25975 | ||
25976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25977 | $as_echo "no" >&6; } | |
25978 | ||
25979 | else | |
25980 | if test "x$enable_linux_builtin" != xyes; then | |
25981 | ||
25982 | grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \ | |
25983 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
25984 | rc=$? | |
25985 | if test $rc -ne 0; then | |
25986 | export=0 | |
25987 | for file in fs/block_dev.c; do | |
25988 | grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \ | |
25989 | "$LINUX/$file" 2>/dev/null | |
25990 | rc=$? | |
25991 | if test $rc -eq 0; then | |
25992 | export=1 | |
25993 | break; | |
25994 | fi | |
25995 | done | |
25996 | if test $export -eq 0; then : | |
25997 | rc=1 | |
25998 | else : | |
25999 | rc=0 | |
26000 | fi | |
26001 | else : | |
26002 | rc=0 | |
26003 | fi | |
26004 | ||
26005 | fi | |
26006 | if test $rc -ne 0; then : | |
26007 | ||
26008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26009 | $as_echo "no" >&6; } | |
26010 | ||
26011 | else : | |
26012 | ||
26013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26014 | $as_echo "yes" >&6; } | |
26015 | ||
26016 | $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h | |
26017 | ||
26018 | ||
26019 | fi | |
26020 | fi | |
26021 | ||
26022 | ||
d177712e CIK |
26023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5 |
26024 | $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; } | |
0bd31011 TG |
26025 | |
26026 | ||
26027 | ||
26028 | cat confdefs.h - <<_ACEOF >conftest.c | |
26029 | ||
26030 | ||
26031 | #include <linux/fs.h> | |
26032 | ||
26033 | int | |
26034 | main (void) | |
26035 | { | |
26036 | ||
26037 | lookup_bdev(NULL); | |
26038 | ||
26039 | ; | |
26040 | return 0; | |
26041 | } | |
26042 | ||
26043 | _ACEOF | |
26044 | ||
26045 | ||
26046 | ||
26047 | cat - <<_ACEOF >conftest.h | |
26048 | ||
26049 | _ACEOF | |
26050 | ||
26051 | ||
26052 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26053 | echo "obj-m := conftest.o" >build/Makefile | |
26054 | modpost_flag='' | |
26055 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26056 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26057 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26058 | (eval $ac_try) 2>&5 | |
26059 | ac_status=$? | |
26060 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26061 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26062 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26063 | (eval $ac_try) 2>&5 | |
26064 | ac_status=$? | |
26065 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26066 | test $ac_status = 0; }; }; then : | |
26067 | rc=0 | |
26068 | else | |
26069 | $as_echo "$as_me: failed program was:" >&5 | |
26070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26071 | rc=1 | |
26072 | ||
26073 | ||
26074 | fi | |
26075 | rm -Rf build | |
26076 | ||
26077 | ||
26078 | if test $rc -ne 0; then : | |
26079 | ||
26080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26081 | $as_echo "no" >&6; } | |
d177712e CIK |
26082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5 |
26083 | $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; } | |
0bd31011 TG |
26084 | |
26085 | ||
26086 | ||
26087 | cat confdefs.h - <<_ACEOF >conftest.c | |
26088 | ||
26089 | ||
26090 | #include <linux/fs.h> | |
26091 | ||
26092 | int | |
26093 | main (void) | |
26094 | { | |
26095 | ||
d177712e | 26096 | lookup_bdev(NULL, FMODE_READ); |
0bd31011 TG |
26097 | |
26098 | ; | |
26099 | return 0; | |
26100 | } | |
26101 | ||
26102 | _ACEOF | |
26103 | ||
26104 | ||
26105 | ||
26106 | cat - <<_ACEOF >conftest.h | |
26107 | ||
26108 | _ACEOF | |
26109 | ||
26110 | ||
26111 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26112 | echo "obj-m := conftest.o" >build/Makefile | |
26113 | modpost_flag='' | |
26114 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26115 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26116 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26117 | (eval $ac_try) 2>&5 | |
26118 | ac_status=$? | |
26119 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26120 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26121 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26122 | (eval $ac_try) 2>&5 | |
26123 | ac_status=$? | |
26124 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26125 | test $ac_status = 0; }; }; then : | |
26126 | rc=0 | |
26127 | else | |
26128 | $as_echo "$as_me: failed program was:" >&5 | |
26129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26130 | rc=1 | |
26131 | ||
26132 | ||
26133 | fi | |
26134 | rm -Rf build | |
26135 | ||
26136 | ||
26137 | if test $rc -ne 0; then : | |
26138 | ||
26139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26140 | $as_echo "no" >&6; } | |
26141 | ||
26142 | else | |
26143 | if test "x$enable_linux_builtin" != xyes; then | |
26144 | ||
26145 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
26146 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
26147 | rc=$? | |
26148 | if test $rc -ne 0; then | |
26149 | export=0 | |
26150 | for file in fs/block_dev.c; do | |
26151 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
26152 | "$LINUX/$file" 2>/dev/null | |
26153 | rc=$? | |
26154 | if test $rc -eq 0; then | |
26155 | export=1 | |
26156 | break; | |
26157 | fi | |
26158 | done | |
26159 | if test $export -eq 0; then : | |
26160 | rc=1 | |
26161 | else : | |
26162 | rc=0 | |
26163 | fi | |
26164 | else : | |
26165 | rc=0 | |
26166 | fi | |
26167 | ||
26168 | fi | |
26169 | if test $rc -ne 0; then : | |
26170 | ||
26171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26172 | $as_echo "no" >&6; } | |
26173 | ||
26174 | else : | |
26175 | ||
26176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26177 | $as_echo "yes" >&6; } | |
26178 | ||
d177712e | 26179 | $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h |
0bd31011 TG |
26180 | |
26181 | ||
26182 | fi | |
26183 | fi | |
26184 | ||
26185 | ||
26186 | else | |
26187 | if test "x$enable_linux_builtin" != xyes; then | |
26188 | ||
26189 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
26190 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
26191 | rc=$? | |
26192 | if test $rc -ne 0; then | |
26193 | export=0 | |
26194 | for file in fs/block_dev.c; do | |
26195 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
26196 | "$LINUX/$file" 2>/dev/null | |
26197 | rc=$? | |
26198 | if test $rc -eq 0; then | |
26199 | export=1 | |
26200 | break; | |
26201 | fi | |
26202 | done | |
26203 | if test $export -eq 0; then : | |
26204 | rc=1 | |
26205 | else : | |
26206 | rc=0 | |
26207 | fi | |
26208 | else : | |
26209 | rc=0 | |
26210 | fi | |
26211 | ||
26212 | fi | |
26213 | if test $rc -ne 0; then : | |
26214 | ||
26215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26216 | $as_echo "no" >&6; } | |
d177712e CIK |
26217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5 |
26218 | $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; } | |
0bd31011 TG |
26219 | |
26220 | ||
26221 | ||
26222 | cat confdefs.h - <<_ACEOF >conftest.c | |
26223 | ||
26224 | ||
26225 | #include <linux/fs.h> | |
26226 | ||
26227 | int | |
26228 | main (void) | |
26229 | { | |
26230 | ||
d177712e | 26231 | lookup_bdev(NULL, FMODE_READ); |
0bd31011 TG |
26232 | |
26233 | ; | |
26234 | return 0; | |
26235 | } | |
26236 | ||
26237 | _ACEOF | |
26238 | ||
26239 | ||
26240 | ||
26241 | cat - <<_ACEOF >conftest.h | |
26242 | ||
26243 | _ACEOF | |
26244 | ||
26245 | ||
26246 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26247 | echo "obj-m := conftest.o" >build/Makefile | |
26248 | modpost_flag='' | |
26249 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26250 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26251 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26252 | (eval $ac_try) 2>&5 | |
26253 | ac_status=$? | |
26254 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26255 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26256 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26257 | (eval $ac_try) 2>&5 | |
26258 | ac_status=$? | |
26259 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26260 | test $ac_status = 0; }; }; then : | |
26261 | rc=0 | |
26262 | else | |
26263 | $as_echo "$as_me: failed program was:" >&5 | |
26264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26265 | rc=1 | |
26266 | ||
26267 | ||
26268 | fi | |
26269 | rm -Rf build | |
26270 | ||
26271 | ||
26272 | if test $rc -ne 0; then : | |
26273 | ||
26274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26275 | $as_echo "no" >&6; } | |
26276 | ||
26277 | else | |
26278 | if test "x$enable_linux_builtin" != xyes; then | |
26279 | ||
26280 | grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \ | |
26281 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
26282 | rc=$? | |
26283 | if test $rc -ne 0; then | |
26284 | export=0 | |
26285 | for file in fs/block_dev.c; do | |
26286 | grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \ | |
26287 | "$LINUX/$file" 2>/dev/null | |
26288 | rc=$? | |
26289 | if test $rc -eq 0; then | |
26290 | export=1 | |
26291 | break; | |
26292 | fi | |
26293 | done | |
26294 | if test $export -eq 0; then : | |
26295 | rc=1 | |
26296 | else : | |
26297 | rc=0 | |
26298 | fi | |
26299 | else : | |
26300 | rc=0 | |
26301 | fi | |
26302 | ||
26303 | fi | |
26304 | if test $rc -ne 0; then : | |
26305 | ||
26306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26307 | $as_echo "no" >&6; } | |
26308 | ||
26309 | else : | |
26310 | ||
26311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26312 | $as_echo "yes" >&6; } | |
26313 | ||
d177712e | 26314 | $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h |
0bd31011 TG |
26315 | |
26316 | ||
26317 | fi | |
26318 | fi | |
26319 | ||
26320 | ||
26321 | else : | |
26322 | ||
26323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26324 | $as_echo "yes" >&6; } | |
26325 | ||
d177712e | 26326 | $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h |
0bd31011 TG |
26327 | |
26328 | ||
26329 | fi | |
26330 | fi | |
26331 | ||
26332 | ||
26333 | ||
26334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5 | |
26335 | $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; } | |
26336 | ||
26337 | ||
26338 | cat confdefs.h - <<_ACEOF >conftest.c | |
26339 | ||
26340 | ||
26341 | #include <linux/buffer_head.h> | |
26342 | ||
26343 | int | |
26344 | main (void) | |
26345 | { | |
26346 | ||
26347 | struct block_device *bdev = NULL; | |
26348 | invalidate_bdev(bdev); | |
26349 | ||
26350 | ; | |
26351 | return 0; | |
26352 | } | |
26353 | ||
26354 | _ACEOF | |
26355 | ||
26356 | ||
26357 | ||
26358 | cat - <<_ACEOF >conftest.h | |
26359 | ||
26360 | _ACEOF | |
26361 | ||
26362 | ||
26363 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26364 | echo "obj-m := conftest.o" >build/Makefile | |
26365 | modpost_flag='' | |
26366 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26367 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26368 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26369 | (eval $ac_try) 2>&5 | |
26370 | ac_status=$? | |
26371 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26372 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26373 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26374 | (eval $ac_try) 2>&5 | |
26375 | ac_status=$? | |
26376 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26377 | test $ac_status = 0; }; }; then : | |
26378 | ||
26379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26380 | $as_echo "yes" >&6; } | |
26381 | ||
26382 | $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h | |
26383 | ||
26384 | ||
26385 | else | |
26386 | $as_echo "$as_me: failed program was:" >&5 | |
26387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26388 | ||
26389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26390 | $as_echo "no" >&6; } | |
26391 | ||
26392 | ||
26393 | ||
26394 | fi | |
26395 | rm -Rf build | |
26396 | ||
26397 | ||
26398 | ||
26399 | ||
26400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5 | |
26401 | $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; } | |
26402 | tmp_flags="$EXTRA_KCFLAGS" | |
26403 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
26404 | ||
26405 | ||
26406 | cat confdefs.h - <<_ACEOF >conftest.c | |
26407 | ||
26408 | ||
26409 | #include <linux/blkdev.h> | |
26410 | ||
26411 | int | |
26412 | main (void) | |
26413 | { | |
26414 | ||
26415 | struct block_device *bdev = NULL; | |
26416 | bdev_logical_block_size(bdev); | |
26417 | ||
26418 | ; | |
26419 | return 0; | |
26420 | } | |
26421 | ||
26422 | _ACEOF | |
26423 | ||
26424 | ||
26425 | ||
26426 | cat - <<_ACEOF >conftest.h | |
26427 | ||
26428 | _ACEOF | |
26429 | ||
26430 | ||
26431 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26432 | echo "obj-m := conftest.o" >build/Makefile | |
26433 | modpost_flag='' | |
26434 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26435 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26436 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26437 | (eval $ac_try) 2>&5 | |
26438 | ac_status=$? | |
26439 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26440 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26441 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26442 | (eval $ac_try) 2>&5 | |
26443 | ac_status=$? | |
26444 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26445 | test $ac_status = 0; }; }; then : | |
26446 | ||
26447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26448 | $as_echo "yes" >&6; } | |
26449 | ||
26450 | $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h | |
26451 | ||
26452 | ||
26453 | else | |
26454 | $as_echo "$as_me: failed program was:" >&5 | |
26455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26456 | ||
26457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26458 | $as_echo "no" >&6; } | |
26459 | ||
26460 | ||
26461 | ||
26462 | fi | |
26463 | rm -Rf build | |
26464 | ||
26465 | ||
26466 | EXTRA_KCFLAGS="$tmp_flags" | |
26467 | ||
26468 | ||
26469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5 | |
26470 | $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; } | |
26471 | tmp_flags="$EXTRA_KCFLAGS" | |
26472 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
26473 | ||
26474 | ||
26475 | cat confdefs.h - <<_ACEOF >conftest.c | |
26476 | ||
26477 | ||
26478 | #include <linux/blkdev.h> | |
26479 | ||
26480 | int | |
26481 | main (void) | |
26482 | { | |
26483 | ||
26484 | struct block_device *bdev = NULL; | |
26485 | bdev_physical_block_size(bdev); | |
26486 | ||
26487 | ; | |
26488 | return 0; | |
26489 | } | |
26490 | ||
26491 | _ACEOF | |
26492 | ||
26493 | ||
26494 | ||
26495 | cat - <<_ACEOF >conftest.h | |
26496 | ||
26497 | _ACEOF | |
26498 | ||
26499 | ||
26500 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26501 | echo "obj-m := conftest.o" >build/Makefile | |
26502 | modpost_flag='' | |
26503 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26504 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26505 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26506 | (eval $ac_try) 2>&5 | |
26507 | ac_status=$? | |
26508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26509 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26510 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26511 | (eval $ac_try) 2>&5 | |
26512 | ac_status=$? | |
26513 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26514 | test $ac_status = 0; }; }; then : | |
26515 | ||
26516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26517 | $as_echo "yes" >&6; } | |
26518 | ||
26519 | $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h | |
26520 | ||
26521 | ||
26522 | else | |
26523 | $as_echo "$as_me: failed program was:" >&5 | |
26524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26525 | ||
26526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26527 | $as_echo "no" >&6; } | |
26528 | ||
26529 | ||
26530 | ||
26531 | fi | |
26532 | rm -Rf build | |
26533 | ||
26534 | ||
26535 | EXTRA_KCFLAGS="$tmp_flags" | |
26536 | ||
26537 | ||
26538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5 | |
26539 | $as_echo_n "checking whether bio has bi_iter... " >&6; } | |
26540 | ||
26541 | ||
26542 | cat confdefs.h - <<_ACEOF >conftest.c | |
26543 | ||
26544 | ||
26545 | #include <linux/bio.h> | |
26546 | ||
26547 | int | |
26548 | main (void) | |
26549 | { | |
26550 | ||
26551 | struct bio bio; | |
26552 | bio.bi_iter.bi_sector = 0; | |
26553 | ||
26554 | ; | |
26555 | return 0; | |
26556 | } | |
26557 | ||
26558 | _ACEOF | |
26559 | ||
26560 | ||
26561 | ||
26562 | cat - <<_ACEOF >conftest.h | |
26563 | ||
26564 | _ACEOF | |
26565 | ||
26566 | ||
26567 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26568 | echo "obj-m := conftest.o" >build/Makefile | |
26569 | modpost_flag='' | |
26570 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26571 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26572 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26573 | (eval $ac_try) 2>&5 | |
26574 | ac_status=$? | |
26575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26576 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26577 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26578 | (eval $ac_try) 2>&5 | |
26579 | ac_status=$? | |
26580 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26581 | test $ac_status = 0; }; }; then : | |
26582 | ||
26583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26584 | $as_echo "yes" >&6; } | |
26585 | ||
26586 | $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h | |
26587 | ||
26588 | ||
26589 | else | |
26590 | $as_echo "$as_me: failed program was:" >&5 | |
26591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26592 | ||
26593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26594 | $as_echo "no" >&6; } | |
26595 | ||
26596 | ||
26597 | ||
26598 | fi | |
26599 | rm -Rf build | |
26600 | ||
26601 | ||
26602 | ||
26603 | ||
26604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5 | |
26605 | $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; } | |
26606 | ||
26607 | ||
26608 | cat confdefs.h - <<_ACEOF >conftest.c | |
26609 | ||
26610 | ||
26611 | #include <linux/bio.h> | |
26612 | ||
26613 | int | |
26614 | main (void) | |
26615 | { | |
26616 | ||
26617 | int flags __attribute__ ((unused)); | |
26618 | flags = ((1 << BIO_RW_FAILFAST_DEV) | | |
26619 | (1 << BIO_RW_FAILFAST_TRANSPORT) | | |
26620 | (1 << BIO_RW_FAILFAST_DRIVER)); | |
26621 | ||
26622 | ; | |
26623 | return 0; | |
26624 | } | |
26625 | ||
26626 | _ACEOF | |
26627 | ||
26628 | ||
26629 | ||
26630 | cat - <<_ACEOF >conftest.h | |
26631 | ||
26632 | _ACEOF | |
26633 | ||
26634 | ||
26635 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26636 | echo "obj-m := conftest.o" >build/Makefile | |
26637 | modpost_flag='' | |
26638 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26639 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26640 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26641 | (eval $ac_try) 2>&5 | |
26642 | ac_status=$? | |
26643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26644 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26645 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26646 | (eval $ac_try) 2>&5 | |
26647 | ac_status=$? | |
26648 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26649 | test $ac_status = 0; }; }; then : | |
26650 | ||
26651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26652 | $as_echo "yes" >&6; } | |
26653 | ||
26654 | $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h | |
26655 | ||
26656 | ||
26657 | else | |
26658 | $as_echo "$as_me: failed program was:" >&5 | |
26659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26660 | ||
26661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26662 | $as_echo "no" >&6; } | |
26663 | ||
26664 | ||
26665 | ||
26666 | fi | |
26667 | rm -Rf build | |
26668 | ||
26669 | ||
26670 | ||
26671 | ||
26672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5 | |
26673 | $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; } | |
26674 | ||
26675 | ||
26676 | cat confdefs.h - <<_ACEOF >conftest.c | |
26677 | ||
26678 | ||
26679 | #include <linux/bio.h> | |
26680 | ||
26681 | int | |
26682 | main (void) | |
26683 | { | |
26684 | ||
26685 | int flags __attribute__ ((unused)); | |
26686 | flags = REQ_FAILFAST_MASK; | |
26687 | ||
26688 | ; | |
26689 | return 0; | |
26690 | } | |
26691 | ||
26692 | _ACEOF | |
26693 | ||
26694 | ||
26695 | ||
26696 | cat - <<_ACEOF >conftest.h | |
26697 | ||
26698 | _ACEOF | |
26699 | ||
26700 | ||
26701 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26702 | echo "obj-m := conftest.o" >build/Makefile | |
26703 | modpost_flag='' | |
26704 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26705 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26706 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26707 | (eval $ac_try) 2>&5 | |
26708 | ac_status=$? | |
26709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26710 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26711 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26712 | (eval $ac_try) 2>&5 | |
26713 | ac_status=$? | |
26714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26715 | test $ac_status = 0; }; }; then : | |
26716 | ||
26717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26718 | $as_echo "yes" >&6; } | |
26719 | ||
26720 | $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h | |
26721 | ||
26722 | ||
26723 | else | |
26724 | $as_echo "$as_me: failed program was:" >&5 | |
26725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26726 | ||
26727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26728 | $as_echo "no" >&6; } | |
26729 | ||
26730 | ||
26731 | ||
26732 | fi | |
26733 | rm -Rf build | |
26734 | ||
26735 | ||
26736 | ||
26737 | ||
26738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5 | |
26739 | $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; } | |
26740 | ||
26741 | ||
26742 | cat confdefs.h - <<_ACEOF >conftest.c | |
26743 | ||
26744 | ||
26745 | #include <linux/blk_types.h> | |
26746 | ||
26747 | int | |
26748 | main (void) | |
26749 | { | |
26750 | ||
441f6008 | 26751 | int op __attribute__ ((unused)) = REQ_OP_DISCARD; |
0bd31011 TG |
26752 | |
26753 | ; | |
26754 | return 0; | |
26755 | } | |
26756 | ||
26757 | _ACEOF | |
26758 | ||
26759 | ||
26760 | ||
26761 | cat - <<_ACEOF >conftest.h | |
26762 | ||
26763 | _ACEOF | |
26764 | ||
26765 | ||
26766 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26767 | echo "obj-m := conftest.o" >build/Makefile | |
26768 | modpost_flag='' | |
26769 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26770 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26771 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26772 | (eval $ac_try) 2>&5 | |
26773 | ac_status=$? | |
26774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26775 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26776 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26777 | (eval $ac_try) 2>&5 | |
26778 | ac_status=$? | |
26779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26780 | test $ac_status = 0; }; }; then : | |
26781 | ||
26782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26783 | $as_echo "yes" >&6; } | |
26784 | ||
26785 | $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h | |
26786 | ||
26787 | ||
26788 | else | |
26789 | $as_echo "$as_me: failed program was:" >&5 | |
26790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26791 | ||
26792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26793 | $as_echo "no" >&6; } | |
26794 | ||
26795 | ||
26796 | ||
26797 | fi | |
26798 | rm -Rf build | |
26799 | ||
26800 | ||
26801 | ||
26802 | ||
26803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5 | |
26804 | $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; } | |
26805 | ||
26806 | ||
26807 | cat confdefs.h - <<_ACEOF >conftest.c | |
26808 | ||
26809 | ||
26810 | #include <linux/blk_types.h> | |
26811 | ||
26812 | int | |
26813 | main (void) | |
26814 | { | |
26815 | ||
441f6008 | 26816 | int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE; |
0bd31011 TG |
26817 | |
26818 | ; | |
26819 | return 0; | |
26820 | } | |
26821 | ||
26822 | _ACEOF | |
26823 | ||
26824 | ||
26825 | ||
26826 | cat - <<_ACEOF >conftest.h | |
26827 | ||
26828 | _ACEOF | |
26829 | ||
26830 | ||
26831 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26832 | echo "obj-m := conftest.o" >build/Makefile | |
26833 | modpost_flag='' | |
26834 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26835 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26836 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26837 | (eval $ac_try) 2>&5 | |
26838 | ac_status=$? | |
26839 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26840 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26841 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26842 | (eval $ac_try) 2>&5 | |
26843 | ac_status=$? | |
26844 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26845 | test $ac_status = 0; }; }; then : | |
26846 | ||
26847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26848 | $as_echo "yes" >&6; } | |
26849 | ||
441f6008 | 26850 | $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h |
0bd31011 TG |
26851 | |
26852 | ||
26853 | else | |
26854 | $as_echo "$as_me: failed program was:" >&5 | |
26855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26856 | ||
26857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26858 | $as_echo "no" >&6; } | |
26859 | ||
26860 | ||
26861 | ||
26862 | fi | |
26863 | rm -Rf build | |
26864 | ||
26865 | ||
26866 | ||
26867 | ||
26868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5 | |
26869 | $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; } | |
26870 | ||
26871 | ||
26872 | cat confdefs.h - <<_ACEOF >conftest.c | |
26873 | ||
26874 | ||
26875 | #include <linux/blk_types.h> | |
26876 | ||
26877 | int | |
26878 | main (void) | |
26879 | { | |
26880 | ||
441f6008 | 26881 | int op __attribute__ ((unused)) = REQ_OP_FLUSH; |
0bd31011 TG |
26882 | |
26883 | ; | |
26884 | return 0; | |
26885 | } | |
26886 | ||
26887 | _ACEOF | |
26888 | ||
26889 | ||
26890 | ||
26891 | cat - <<_ACEOF >conftest.h | |
26892 | ||
26893 | _ACEOF | |
26894 | ||
26895 | ||
26896 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26897 | echo "obj-m := conftest.o" >build/Makefile | |
26898 | modpost_flag='' | |
26899 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26900 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26901 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26902 | (eval $ac_try) 2>&5 | |
26903 | ac_status=$? | |
26904 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26905 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26906 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26907 | (eval $ac_try) 2>&5 | |
26908 | ac_status=$? | |
26909 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26910 | test $ac_status = 0; }; }; then : | |
26911 | ||
26912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26913 | $as_echo "yes" >&6; } | |
26914 | ||
26915 | $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h | |
26916 | ||
26917 | ||
26918 | else | |
26919 | $as_echo "$as_me: failed program was:" >&5 | |
26920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26921 | ||
26922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26923 | $as_echo "no" >&6; } | |
26924 | ||
26925 | ||
26926 | ||
26927 | fi | |
26928 | rm -Rf build | |
26929 | ||
26930 | ||
26931 | ||
26932 | ||
26933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5 | |
26934 | $as_echo_n "checking whether bio->bi_opf is defined... " >&6; } | |
26935 | ||
26936 | ||
26937 | cat confdefs.h - <<_ACEOF >conftest.c | |
26938 | ||
26939 | ||
26940 | #include <linux/bio.h> | |
26941 | ||
26942 | int | |
26943 | main (void) | |
26944 | { | |
26945 | ||
26946 | struct bio bio __attribute__ ((unused)); | |
26947 | bio.bi_opf = 0; | |
26948 | ||
26949 | ; | |
26950 | return 0; | |
26951 | } | |
26952 | ||
26953 | _ACEOF | |
26954 | ||
26955 | ||
26956 | ||
26957 | cat - <<_ACEOF >conftest.h | |
26958 | ||
26959 | _ACEOF | |
26960 | ||
26961 | ||
26962 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
26963 | echo "obj-m := conftest.o" >build/Makefile | |
26964 | modpost_flag='' | |
26965 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
26966 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
26967 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26968 | (eval $ac_try) 2>&5 | |
26969 | ac_status=$? | |
26970 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26971 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
26972 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
26973 | (eval $ac_try) 2>&5 | |
26974 | ac_status=$? | |
26975 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26976 | test $ac_status = 0; }; }; then : | |
26977 | ||
26978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26979 | $as_echo "yes" >&6; } | |
26980 | ||
26981 | $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h | |
26982 | ||
26983 | ||
26984 | else | |
26985 | $as_echo "$as_me: failed program was:" >&5 | |
26986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26987 | ||
26988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26989 | $as_echo "no" >&6; } | |
26990 | ||
26991 | ||
26992 | ||
26993 | fi | |
26994 | rm -Rf build | |
26995 | ||
26996 | ||
26997 | ||
26998 | ||
26999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5 | |
27000 | $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; } | |
27001 | ||
27002 | ||
27003 | cat confdefs.h - <<_ACEOF >conftest.c | |
27004 | ||
27005 | ||
27006 | #include <linux/bio.h> | |
27007 | ||
27008 | void wanted_end_io(struct bio *bio) { return; } | |
27009 | ||
27010 | bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io; | |
27011 | ||
27012 | int | |
27013 | main (void) | |
27014 | { | |
27015 | ||
27016 | ||
27017 | ; | |
27018 | return 0; | |
27019 | } | |
27020 | ||
27021 | _ACEOF | |
27022 | ||
27023 | ||
27024 | ||
27025 | cat - <<_ACEOF >conftest.h | |
27026 | ||
27027 | _ACEOF | |
27028 | ||
27029 | ||
27030 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27031 | echo "obj-m := conftest.o" >build/Makefile | |
27032 | modpost_flag='' | |
27033 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27034 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27035 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27036 | (eval $ac_try) 2>&5 | |
27037 | ac_status=$? | |
27038 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27039 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27040 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27041 | (eval $ac_try) 2>&5 | |
27042 | ac_status=$? | |
27043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27044 | test $ac_status = 0; }; }; then : | |
27045 | ||
27046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27047 | $as_echo "yes" >&6; } | |
27048 | ||
27049 | $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h | |
27050 | ||
27051 | ||
27052 | else | |
27053 | $as_echo "$as_me: failed program was:" >&5 | |
27054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27055 | ||
27056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27057 | $as_echo "no" >&6; } | |
27058 | ||
27059 | ||
27060 | ||
27061 | fi | |
27062 | rm -Rf build | |
27063 | ||
27064 | ||
27065 | ||
27066 | ||
27067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5 | |
27068 | $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; } | |
27069 | ||
27070 | ||
27071 | cat confdefs.h - <<_ACEOF >conftest.c | |
27072 | ||
27073 | ||
27074 | #include <linux/bio.h> | |
27075 | ||
27076 | int | |
27077 | main (void) | |
27078 | { | |
27079 | ||
27080 | int flags __attribute__ ((unused)); | |
27081 | flags = BIO_RW_BARRIER; | |
27082 | ||
27083 | ; | |
27084 | return 0; | |
27085 | } | |
27086 | ||
27087 | _ACEOF | |
27088 | ||
27089 | ||
27090 | ||
27091 | cat - <<_ACEOF >conftest.h | |
27092 | ||
27093 | _ACEOF | |
27094 | ||
27095 | ||
27096 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27097 | echo "obj-m := conftest.o" >build/Makefile | |
27098 | modpost_flag='' | |
27099 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27100 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27101 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27102 | (eval $ac_try) 2>&5 | |
27103 | ac_status=$? | |
27104 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27105 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27106 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27107 | (eval $ac_try) 2>&5 | |
27108 | ac_status=$? | |
27109 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27110 | test $ac_status = 0; }; }; then : | |
27111 | ||
27112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27113 | $as_echo "yes" >&6; } | |
27114 | ||
27115 | $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h | |
27116 | ||
27117 | ||
27118 | else | |
27119 | $as_echo "$as_me: failed program was:" >&5 | |
27120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27121 | ||
27122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27123 | $as_echo "no" >&6; } | |
27124 | ||
27125 | ||
27126 | ||
27127 | fi | |
27128 | rm -Rf build | |
27129 | ||
27130 | ||
27131 | ||
27132 | ||
27133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5 | |
27134 | $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; } | |
27135 | ||
27136 | ||
27137 | cat confdefs.h - <<_ACEOF >conftest.c | |
27138 | ||
27139 | ||
27140 | #include <linux/bio.h> | |
27141 | ||
27142 | int | |
27143 | main (void) | |
27144 | { | |
27145 | ||
27146 | int flags __attribute__ ((unused)); | |
27147 | flags = BIO_RW_DISCARD; | |
27148 | ||
27149 | ; | |
27150 | return 0; | |
27151 | } | |
27152 | ||
27153 | _ACEOF | |
27154 | ||
27155 | ||
27156 | ||
27157 | cat - <<_ACEOF >conftest.h | |
27158 | ||
27159 | _ACEOF | |
27160 | ||
27161 | ||
27162 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27163 | echo "obj-m := conftest.o" >build/Makefile | |
27164 | modpost_flag='' | |
27165 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27166 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27167 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27168 | (eval $ac_try) 2>&5 | |
27169 | ac_status=$? | |
27170 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27171 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27172 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27173 | (eval $ac_try) 2>&5 | |
27174 | ac_status=$? | |
27175 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27176 | test $ac_status = 0; }; }; then : | |
27177 | ||
27178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27179 | $as_echo "yes" >&6; } | |
27180 | ||
27181 | $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h | |
27182 | ||
27183 | ||
27184 | else | |
27185 | $as_echo "$as_me: failed program was:" >&5 | |
27186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27187 | ||
27188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27189 | $as_echo "no" >&6; } | |
27190 | ||
27191 | ||
27192 | ||
27193 | fi | |
27194 | rm -Rf build | |
27195 | ||
27196 | ||
27197 | ||
27198 | ||
27199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5 | |
27200 | $as_echo_n "checking whether blk_queue_flush() is available... " >&6; } | |
27201 | tmp_flags="$EXTRA_KCFLAGS" | |
27202 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
27203 | ||
27204 | ||
27205 | cat confdefs.h - <<_ACEOF >conftest.c | |
27206 | ||
27207 | ||
27208 | #include <linux/blkdev.h> | |
27209 | ||
27210 | int | |
27211 | main (void) | |
27212 | { | |
27213 | ||
27214 | struct request_queue *q = NULL; | |
27215 | (void) blk_queue_flush(q, REQ_FLUSH); | |
27216 | ||
27217 | ; | |
27218 | return 0; | |
27219 | } | |
27220 | ||
27221 | _ACEOF | |
27222 | ||
27223 | ||
27224 | ||
27225 | cat - <<_ACEOF >conftest.h | |
27226 | ||
27227 | _ACEOF | |
27228 | ||
27229 | ||
27230 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27231 | echo "obj-m := conftest.o" >build/Makefile | |
27232 | modpost_flag='' | |
27233 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27234 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27235 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27236 | (eval $ac_try) 2>&5 | |
27237 | ac_status=$? | |
27238 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27239 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27240 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27241 | (eval $ac_try) 2>&5 | |
27242 | ac_status=$? | |
27243 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27244 | test $ac_status = 0; }; }; then : | |
27245 | ||
27246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27247 | $as_echo "yes" >&6; } | |
27248 | ||
27249 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h | |
27250 | ||
27251 | ||
27252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5 | |
27253 | $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; } | |
27254 | ||
27255 | ||
27256 | cat confdefs.h - <<_ACEOF >conftest.c | |
27257 | ||
27258 | ||
27259 | #include <linux/module.h> | |
27260 | #include <linux/blkdev.h> | |
27261 | ||
27262 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
27263 | ||
27264 | int | |
27265 | main (void) | |
27266 | { | |
27267 | ||
27268 | struct request_queue *q = NULL; | |
27269 | (void) blk_queue_flush(q, REQ_FLUSH); | |
27270 | ||
27271 | ; | |
27272 | return 0; | |
27273 | } | |
27274 | ||
27275 | _ACEOF | |
27276 | ||
27277 | ||
27278 | ||
27279 | cat - <<_ACEOF >conftest.h | |
27280 | ||
27281 | _ACEOF | |
27282 | ||
27283 | ||
27284 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27285 | echo "obj-m := conftest.o" >build/Makefile | |
27286 | modpost_flag='' | |
27287 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27288 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27289 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27290 | (eval $ac_try) 2>&5 | |
27291 | ac_status=$? | |
27292 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27293 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27294 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27295 | (eval $ac_try) 2>&5 | |
27296 | ac_status=$? | |
27297 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27298 | test $ac_status = 0; }; }; then : | |
27299 | ||
27300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27301 | $as_echo "no" >&6; } | |
27302 | ||
27303 | else | |
27304 | $as_echo "$as_me: failed program was:" >&5 | |
27305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27306 | ||
27307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27308 | $as_echo "yes" >&6; } | |
27309 | ||
27310 | $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h | |
27311 | ||
27312 | ||
27313 | ||
27314 | ||
27315 | fi | |
27316 | rm -Rf build | |
27317 | ||
27318 | ||
27319 | ||
27320 | else | |
27321 | $as_echo "$as_me: failed program was:" >&5 | |
27322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27323 | ||
27324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27325 | $as_echo "no" >&6; } | |
27326 | ||
27327 | ||
27328 | ||
27329 | fi | |
27330 | rm -Rf build | |
27331 | ||
27332 | ||
27333 | ||
27334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5 | |
27335 | $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; } | |
27336 | ||
27337 | ||
27338 | cat confdefs.h - <<_ACEOF >conftest.c | |
27339 | ||
27340 | ||
27341 | #include <linux/kernel.h> | |
27342 | #include <linux/blkdev.h> | |
27343 | ||
27344 | ||
27345 | int | |
27346 | main (void) | |
27347 | { | |
27348 | ||
27349 | struct request_queue *q = NULL; | |
27350 | blk_queue_write_cache(q, true, true); | |
27351 | ||
27352 | ; | |
27353 | return 0; | |
27354 | } | |
27355 | ||
27356 | _ACEOF | |
27357 | ||
27358 | ||
27359 | ||
27360 | cat - <<_ACEOF >conftest.h | |
27361 | ||
27362 | _ACEOF | |
27363 | ||
27364 | ||
27365 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27366 | echo "obj-m := conftest.o" >build/Makefile | |
27367 | modpost_flag='' | |
27368 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27369 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27370 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27371 | (eval $ac_try) 2>&5 | |
27372 | ac_status=$? | |
27373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27374 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27375 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27376 | (eval $ac_try) 2>&5 | |
27377 | ac_status=$? | |
27378 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27379 | test $ac_status = 0; }; }; then : | |
27380 | ||
27381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27382 | $as_echo "yes" >&6; } | |
27383 | ||
27384 | $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h | |
27385 | ||
27386 | ||
27387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5 | |
27388 | $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; } | |
27389 | ||
27390 | ||
27391 | cat confdefs.h - <<_ACEOF >conftest.c | |
27392 | ||
27393 | ||
27394 | #include <linux/kernel.h> | |
27395 | #include <linux/module.h> | |
27396 | #include <linux/blkdev.h> | |
27397 | ||
27398 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
27399 | ||
27400 | int | |
27401 | main (void) | |
27402 | { | |
27403 | ||
27404 | struct request_queue *q = NULL; | |
27405 | blk_queue_write_cache(q, true, true); | |
27406 | ||
27407 | ; | |
27408 | return 0; | |
27409 | } | |
27410 | ||
27411 | _ACEOF | |
27412 | ||
27413 | ||
27414 | ||
27415 | cat - <<_ACEOF >conftest.h | |
27416 | ||
27417 | _ACEOF | |
27418 | ||
27419 | ||
27420 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27421 | echo "obj-m := conftest.o" >build/Makefile | |
27422 | modpost_flag='' | |
27423 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27424 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27425 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27426 | (eval $ac_try) 2>&5 | |
27427 | ac_status=$? | |
27428 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27429 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27430 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27431 | (eval $ac_try) 2>&5 | |
27432 | ac_status=$? | |
27433 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27434 | test $ac_status = 0; }; }; then : | |
27435 | ||
27436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27437 | $as_echo "no" >&6; } | |
27438 | ||
27439 | else | |
27440 | $as_echo "$as_me: failed program was:" >&5 | |
27441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27442 | ||
27443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27444 | $as_echo "yes" >&6; } | |
27445 | ||
27446 | $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h | |
27447 | ||
27448 | ||
27449 | ||
27450 | ||
27451 | fi | |
27452 | rm -Rf build | |
27453 | ||
27454 | ||
27455 | ||
27456 | else | |
27457 | $as_echo "$as_me: failed program was:" >&5 | |
27458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27459 | ||
27460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27461 | $as_echo "no" >&6; } | |
27462 | ||
27463 | ||
27464 | ||
27465 | fi | |
27466 | rm -Rf build | |
27467 | ||
27468 | ||
27469 | ||
27470 | EXTRA_KCFLAGS="$tmp_flags" | |
27471 | ||
27472 | ||
27473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5 | |
27474 | $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; } | |
27475 | tmp_flags="$EXTRA_KCFLAGS" | |
27476 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
27477 | ||
27478 | ||
27479 | cat confdefs.h - <<_ACEOF >conftest.c | |
27480 | ||
27481 | ||
27482 | #include <linux/blkdev.h> | |
27483 | ||
27484 | int | |
27485 | main (void) | |
27486 | { | |
27487 | ||
27488 | struct request_queue *q = NULL; | |
27489 | (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS); | |
27490 | ||
27491 | ; | |
27492 | return 0; | |
27493 | } | |
27494 | ||
27495 | _ACEOF | |
27496 | ||
27497 | ||
27498 | ||
27499 | cat - <<_ACEOF >conftest.h | |
27500 | ||
27501 | _ACEOF | |
27502 | ||
27503 | ||
27504 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27505 | echo "obj-m := conftest.o" >build/Makefile | |
27506 | modpost_flag='' | |
27507 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27508 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27509 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27510 | (eval $ac_try) 2>&5 | |
27511 | ac_status=$? | |
27512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27513 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27514 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27515 | (eval $ac_try) 2>&5 | |
27516 | ac_status=$? | |
27517 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27518 | test $ac_status = 0; }; }; then : | |
27519 | ||
27520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27521 | $as_echo "yes" >&6; } | |
27522 | ||
27523 | $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h | |
27524 | ||
27525 | ||
27526 | else | |
27527 | $as_echo "$as_me: failed program was:" >&5 | |
27528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27529 | ||
27530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27531 | $as_echo "no" >&6; } | |
27532 | ||
27533 | ||
27534 | ||
27535 | fi | |
27536 | rm -Rf build | |
27537 | ||
27538 | ||
27539 | EXTRA_KCFLAGS="$tmp_flags" | |
27540 | ||
27541 | ||
27542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5 | |
27543 | $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; } | |
27544 | tmp_flags="$EXTRA_KCFLAGS" | |
27545 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
27546 | ||
27547 | ||
27548 | cat confdefs.h - <<_ACEOF >conftest.c | |
27549 | ||
27550 | ||
27551 | #include <linux/blkdev.h> | |
27552 | ||
27553 | int | |
27554 | main (void) | |
27555 | { | |
27556 | ||
27557 | struct request_queue *q = NULL; | |
27558 | (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS); | |
27559 | ||
27560 | ; | |
27561 | return 0; | |
27562 | } | |
27563 | ||
27564 | _ACEOF | |
27565 | ||
27566 | ||
27567 | ||
27568 | cat - <<_ACEOF >conftest.h | |
27569 | ||
27570 | _ACEOF | |
27571 | ||
27572 | ||
27573 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27574 | echo "obj-m := conftest.o" >build/Makefile | |
27575 | modpost_flag='' | |
27576 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27577 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27578 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27579 | (eval $ac_try) 2>&5 | |
27580 | ac_status=$? | |
27581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27582 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27583 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27584 | (eval $ac_try) 2>&5 | |
27585 | ac_status=$? | |
27586 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27587 | test $ac_status = 0; }; }; then : | |
27588 | ||
27589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27590 | $as_echo "yes" >&6; } | |
27591 | ||
27592 | $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h | |
27593 | ||
27594 | ||
27595 | else | |
27596 | $as_echo "$as_me: failed program was:" >&5 | |
27597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27598 | ||
27599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27600 | $as_echo "no" >&6; } | |
27601 | ||
27602 | ||
27603 | ||
27604 | fi | |
27605 | rm -Rf build | |
27606 | ||
27607 | ||
27608 | EXTRA_KCFLAGS="$tmp_flags" | |
27609 | ||
27610 | ||
d177712e CIK |
27611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5 |
27612 | $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; } | |
0bd31011 TG |
27613 | tmp_flags="$EXTRA_KCFLAGS" |
27614 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
27615 | ||
27616 | ||
27617 | cat confdefs.h - <<_ACEOF >conftest.c | |
27618 | ||
27619 | ||
27620 | #include <linux/blkdev.h> | |
27621 | ||
27622 | int | |
27623 | main (void) | |
27624 | { | |
27625 | ||
d177712e CIK |
27626 | extern enum bio_rw_flags rw; |
27627 | ||
27628 | rw = BIO_RW_UNPLUG; | |
27629 | ||
27630 | ; | |
27631 | return 0; | |
27632 | } | |
27633 | ||
27634 | _ACEOF | |
27635 | ||
27636 | ||
27637 | ||
27638 | cat - <<_ACEOF >conftest.h | |
27639 | ||
27640 | _ACEOF | |
27641 | ||
27642 | ||
27643 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27644 | echo "obj-m := conftest.o" >build/Makefile | |
27645 | modpost_flag='' | |
27646 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27647 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27648 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27649 | (eval $ac_try) 2>&5 | |
27650 | ac_status=$? | |
27651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27652 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27653 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27654 | (eval $ac_try) 2>&5 | |
27655 | ac_status=$? | |
27656 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27657 | test $ac_status = 0; }; }; then : | |
27658 | ||
27659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27660 | $as_echo "yes" >&6; } | |
27661 | ||
27662 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h | |
27663 | ||
27664 | ||
27665 | else | |
27666 | $as_echo "$as_me: failed program was:" >&5 | |
27667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27668 | ||
27669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27670 | $as_echo "no" >&6; } | |
27671 | ||
27672 | ||
27673 | ||
27674 | fi | |
27675 | rm -Rf build | |
27676 | ||
27677 | ||
27678 | EXTRA_KCFLAGS="$tmp_flags" | |
27679 | ||
27680 | ||
27681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5 | |
27682 | $as_echo_n "checking whether struct blk_plug is available... " >&6; } | |
27683 | tmp_flags="$EXTRA_KCFLAGS" | |
27684 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
27685 | ||
27686 | ||
27687 | cat confdefs.h - <<_ACEOF >conftest.c | |
27688 | ||
27689 | ||
27690 | #include <linux/blkdev.h> | |
27691 | ||
27692 | int | |
27693 | main (void) | |
27694 | { | |
27695 | ||
27696 | struct blk_plug plug; | |
27697 | ||
27698 | blk_start_plug(&plug); | |
27699 | blk_finish_plug(&plug); | |
27700 | ||
27701 | ; | |
27702 | return 0; | |
27703 | } | |
27704 | ||
27705 | _ACEOF | |
27706 | ||
27707 | ||
27708 | ||
27709 | cat - <<_ACEOF >conftest.h | |
27710 | ||
27711 | _ACEOF | |
27712 | ||
27713 | ||
27714 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27715 | echo "obj-m := conftest.o" >build/Makefile | |
27716 | modpost_flag='' | |
27717 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27718 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27719 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27720 | (eval $ac_try) 2>&5 | |
27721 | ac_status=$? | |
27722 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27723 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27724 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27725 | (eval $ac_try) 2>&5 | |
27726 | ac_status=$? | |
27727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27728 | test $ac_status = 0; }; }; then : | |
27729 | ||
27730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27731 | $as_echo "yes" >&6; } | |
27732 | ||
27733 | $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h | |
27734 | ||
27735 | ||
27736 | else | |
27737 | $as_echo "$as_me: failed program was:" >&5 | |
27738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27739 | ||
27740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27741 | $as_echo "no" >&6; } | |
27742 | ||
27743 | ||
27744 | ||
27745 | fi | |
27746 | rm -Rf build | |
27747 | ||
27748 | ||
27749 | EXTRA_KCFLAGS="$tmp_flags" | |
27750 | ||
27751 | ||
27752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5 | |
27753 | $as_echo_n "checking whether get_disk_ro() is available... " >&6; } | |
27754 | tmp_flags="$EXTRA_KCFLAGS" | |
27755 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
27756 | ||
27757 | ||
27758 | cat confdefs.h - <<_ACEOF >conftest.c | |
27759 | ||
27760 | ||
27761 | #include <linux/blkdev.h> | |
27762 | ||
27763 | int | |
27764 | main (void) | |
27765 | { | |
27766 | ||
27767 | struct gendisk *disk = NULL; | |
27768 | (void) get_disk_ro(disk); | |
0bd31011 TG |
27769 | |
27770 | ; | |
27771 | return 0; | |
27772 | } | |
27773 | ||
27774 | _ACEOF | |
27775 | ||
27776 | ||
27777 | ||
27778 | cat - <<_ACEOF >conftest.h | |
27779 | ||
27780 | _ACEOF | |
27781 | ||
27782 | ||
27783 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27784 | echo "obj-m := conftest.o" >build/Makefile | |
27785 | modpost_flag='' | |
27786 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27787 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27788 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27789 | (eval $ac_try) 2>&5 | |
27790 | ac_status=$? | |
27791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27792 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27793 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27794 | (eval $ac_try) 2>&5 | |
27795 | ac_status=$? | |
27796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27797 | test $ac_status = 0; }; }; then : | |
27798 | ||
27799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27800 | $as_echo "yes" >&6; } | |
27801 | ||
27802 | $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h | |
27803 | ||
27804 | ||
27805 | else | |
27806 | $as_echo "$as_me: failed program was:" >&5 | |
27807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27808 | ||
27809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27810 | $as_echo "no" >&6; } | |
27811 | ||
27812 | ||
27813 | ||
27814 | fi | |
27815 | rm -Rf build | |
27816 | ||
27817 | ||
27818 | EXTRA_KCFLAGS="$tmp_flags" | |
27819 | ||
27820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5 | |
27821 | $as_echo_n "checking whether get_gendisk() is available... " >&6; } | |
27822 | ||
27823 | ||
27824 | ||
27825 | cat confdefs.h - <<_ACEOF >conftest.c | |
27826 | ||
27827 | ||
27828 | #include <linux/genhd.h> | |
27829 | ||
27830 | int | |
27831 | main (void) | |
27832 | { | |
27833 | ||
27834 | get_gendisk(0, NULL); | |
27835 | ||
27836 | ; | |
27837 | return 0; | |
27838 | } | |
27839 | ||
27840 | _ACEOF | |
27841 | ||
27842 | ||
27843 | ||
27844 | cat - <<_ACEOF >conftest.h | |
27845 | ||
27846 | _ACEOF | |
27847 | ||
27848 | ||
27849 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27850 | echo "obj-m := conftest.o" >build/Makefile | |
27851 | modpost_flag='' | |
27852 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27853 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27854 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27855 | (eval $ac_try) 2>&5 | |
27856 | ac_status=$? | |
27857 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27858 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27859 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27860 | (eval $ac_try) 2>&5 | |
27861 | ac_status=$? | |
27862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27863 | test $ac_status = 0; }; }; then : | |
27864 | rc=0 | |
27865 | else | |
27866 | $as_echo "$as_me: failed program was:" >&5 | |
27867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27868 | rc=1 | |
27869 | ||
27870 | ||
27871 | fi | |
27872 | rm -Rf build | |
27873 | ||
27874 | ||
27875 | if test $rc -ne 0; then : | |
27876 | ||
27877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27878 | $as_echo "no" >&6; } | |
27879 | ||
27880 | else | |
27881 | if test "x$enable_linux_builtin" != xyes; then | |
27882 | ||
27883 | grep -q -E '[[:space:]]get_gendisk[[:space:]]' \ | |
27884 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
27885 | rc=$? | |
27886 | if test $rc -ne 0; then | |
27887 | export=0 | |
27888 | for file in block/genhd.c; do | |
27889 | grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \ | |
27890 | "$LINUX/$file" 2>/dev/null | |
27891 | rc=$? | |
27892 | if test $rc -eq 0; then | |
27893 | export=1 | |
27894 | break; | |
27895 | fi | |
27896 | done | |
27897 | if test $export -eq 0; then : | |
27898 | rc=1 | |
27899 | else : | |
27900 | rc=0 | |
27901 | fi | |
27902 | else : | |
27903 | rc=0 | |
27904 | fi | |
27905 | ||
27906 | fi | |
27907 | if test $rc -ne 0; then : | |
27908 | ||
27909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27910 | $as_echo "no" >&6; } | |
27911 | ||
27912 | else : | |
27913 | ||
27914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27915 | $as_echo "yes" >&6; } | |
27916 | ||
27917 | $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h | |
27918 | ||
27919 | ||
27920 | fi | |
27921 | fi | |
27922 | ||
27923 | ||
27924 | ||
441f6008 SF |
27925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5 |
27926 | $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; } | |
27927 | ||
27928 | ||
27929 | cat confdefs.h - <<_ACEOF >conftest.c | |
27930 | ||
27931 | ||
27932 | #include <linux/blk_types.h> | |
27933 | ||
27934 | int | |
27935 | main (void) | |
27936 | { | |
27937 | ||
27938 | struct bio *bio __attribute__ ((unused)) = NULL; | |
27939 | ||
27940 | bio_set_op_attrs(bio, 0, 0); | |
27941 | ||
27942 | ; | |
27943 | return 0; | |
27944 | } | |
27945 | ||
27946 | _ACEOF | |
27947 | ||
27948 | ||
27949 | ||
27950 | cat - <<_ACEOF >conftest.h | |
27951 | ||
27952 | _ACEOF | |
27953 | ||
27954 | ||
27955 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
27956 | echo "obj-m := conftest.o" >build/Makefile | |
27957 | modpost_flag='' | |
27958 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
27959 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
27960 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27961 | (eval $ac_try) 2>&5 | |
27962 | ac_status=$? | |
27963 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27964 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
27965 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
27966 | (eval $ac_try) 2>&5 | |
27967 | ac_status=$? | |
27968 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27969 | test $ac_status = 0; }; }; then : | |
27970 | ||
27971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27972 | $as_echo "yes" >&6; } | |
27973 | ||
27974 | $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h | |
27975 | ||
27976 | ||
27977 | else | |
27978 | $as_echo "$as_me: failed program was:" >&5 | |
27979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27980 | ||
27981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27982 | $as_echo "no" >&6; } | |
27983 | ||
27984 | ||
27985 | ||
27986 | fi | |
27987 | rm -Rf build | |
27988 | ||
27989 | ||
27990 | ||
27991 | ||
27992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5 | |
27993 | $as_echo_n "checking whether generic_readlink is global... " >&6; } | |
27994 | ||
27995 | ||
27996 | cat confdefs.h - <<_ACEOF >conftest.c | |
27997 | ||
27998 | ||
27999 | #include <linux/fs.h> | |
28000 | ||
28001 | int | |
28002 | main (void) | |
28003 | { | |
28004 | ||
28005 | int i __attribute__ ((unused)); | |
28006 | ||
28007 | i = generic_readlink(NULL, NULL, 0); | |
28008 | ||
28009 | ; | |
28010 | return 0; | |
28011 | } | |
28012 | ||
28013 | _ACEOF | |
28014 | ||
28015 | ||
28016 | ||
28017 | cat - <<_ACEOF >conftest.h | |
28018 | ||
28019 | _ACEOF | |
28020 | ||
28021 | ||
28022 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28023 | echo "obj-m := conftest.o" >build/Makefile | |
28024 | modpost_flag='' | |
28025 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28026 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28027 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28028 | (eval $ac_try) 2>&5 | |
28029 | ac_status=$? | |
28030 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28031 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28032 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28033 | (eval $ac_try) 2>&5 | |
28034 | ac_status=$? | |
28035 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28036 | test $ac_status = 0; }; }; then : | |
28037 | ||
28038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28039 | $as_echo "yes" >&6; } | |
28040 | ||
28041 | $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h | |
28042 | ||
28043 | ||
28044 | else | |
28045 | $as_echo "$as_me: failed program was:" >&5 | |
28046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28047 | ||
28048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28049 | $as_echo "no" >&6; } | |
28050 | ||
28051 | ||
28052 | ||
28053 | fi | |
28054 | rm -Rf build | |
28055 | ||
28056 | ||
28057 | ||
28058 | ||
0bd31011 TG |
28059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5 |
28060 | $as_echo_n "checking whether ql->discard_granularity is available... " >&6; } | |
28061 | ||
28062 | ||
28063 | cat confdefs.h - <<_ACEOF >conftest.c | |
28064 | ||
28065 | ||
28066 | #include <linux/blkdev.h> | |
28067 | ||
28068 | int | |
28069 | main (void) | |
28070 | { | |
28071 | ||
28072 | struct queue_limits ql __attribute__ ((unused)); | |
28073 | ||
28074 | ql.discard_granularity = 0; | |
28075 | ||
28076 | ; | |
28077 | return 0; | |
28078 | } | |
28079 | ||
28080 | _ACEOF | |
28081 | ||
28082 | ||
28083 | ||
28084 | cat - <<_ACEOF >conftest.h | |
28085 | ||
28086 | _ACEOF | |
28087 | ||
28088 | ||
28089 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28090 | echo "obj-m := conftest.o" >build/Makefile | |
28091 | modpost_flag='' | |
28092 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28093 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28094 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28095 | (eval $ac_try) 2>&5 | |
28096 | ac_status=$? | |
28097 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28098 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28099 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28100 | (eval $ac_try) 2>&5 | |
28101 | ac_status=$? | |
28102 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28103 | test $ac_status = 0; }; }; then : | |
28104 | ||
28105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28106 | $as_echo "yes" >&6; } | |
28107 | ||
28108 | $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h | |
28109 | ||
28110 | ||
28111 | else | |
28112 | $as_echo "$as_me: failed program was:" >&5 | |
28113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28114 | ||
28115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28116 | $as_echo "no" >&6; } | |
28117 | ||
28118 | ||
28119 | ||
28120 | fi | |
28121 | rm -Rf build | |
28122 | ||
28123 | ||
28124 | ||
28125 | ||
28126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5 | |
28127 | $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; } | |
28128 | ||
28129 | ||
28130 | cat confdefs.h - <<_ACEOF >conftest.c | |
28131 | ||
28132 | ||
28133 | #include <linux/fs.h> | |
28134 | #include <linux/xattr.h> | |
28135 | ||
28136 | const struct xattr_handler xattr_test_handler = { | |
28137 | .prefix = "test", | |
28138 | .get = NULL, | |
28139 | .set = NULL, | |
28140 | }; | |
28141 | ||
28142 | const struct xattr_handler *xattr_handlers[] = { | |
28143 | &xattr_test_handler, | |
28144 | }; | |
28145 | ||
28146 | const struct super_block sb __attribute__ ((unused)) = { | |
28147 | .s_xattr = xattr_handlers, | |
28148 | }; | |
28149 | ||
28150 | int | |
28151 | main (void) | |
28152 | { | |
28153 | ||
28154 | ||
28155 | ; | |
28156 | return 0; | |
28157 | } | |
28158 | ||
28159 | _ACEOF | |
28160 | ||
28161 | ||
28162 | ||
28163 | cat - <<_ACEOF >conftest.h | |
28164 | ||
28165 | _ACEOF | |
28166 | ||
28167 | ||
28168 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28169 | echo "obj-m := conftest.o" >build/Makefile | |
28170 | modpost_flag='' | |
28171 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28172 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28173 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28174 | (eval $ac_try) 2>&5 | |
28175 | ac_status=$? | |
28176 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28177 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28178 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28179 | (eval $ac_try) 2>&5 | |
28180 | ac_status=$? | |
28181 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28182 | test $ac_status = 0; }; }; then : | |
28183 | ||
28184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28185 | $as_echo "yes" >&6; } | |
28186 | ||
28187 | $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h | |
28188 | ||
28189 | ||
28190 | else | |
28191 | $as_echo "$as_me: failed program was:" >&5 | |
28192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28193 | ||
28194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28195 | $as_echo "no" >&6; } | |
28196 | ||
28197 | ||
28198 | ||
28199 | fi | |
28200 | rm -Rf build | |
28201 | ||
28202 | ||
28203 | ||
28204 | ||
28205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5 | |
28206 | $as_echo_n "checking whether xattr_handler has name... " >&6; } | |
28207 | ||
28208 | ||
28209 | cat confdefs.h - <<_ACEOF >conftest.c | |
28210 | ||
28211 | ||
28212 | #include <linux/xattr.h> | |
28213 | ||
28214 | static const struct xattr_handler | |
28215 | xops __attribute__ ((unused)) = { | |
28216 | .name = XATTR_NAME_POSIX_ACL_ACCESS, | |
28217 | }; | |
28218 | ||
28219 | int | |
28220 | main (void) | |
28221 | { | |
28222 | ||
28223 | ||
28224 | ; | |
28225 | return 0; | |
28226 | } | |
28227 | ||
28228 | _ACEOF | |
28229 | ||
28230 | ||
28231 | ||
28232 | cat - <<_ACEOF >conftest.h | |
28233 | ||
28234 | _ACEOF | |
28235 | ||
28236 | ||
28237 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28238 | echo "obj-m := conftest.o" >build/Makefile | |
28239 | modpost_flag='' | |
28240 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28241 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28242 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28243 | (eval $ac_try) 2>&5 | |
28244 | ac_status=$? | |
28245 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28246 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28247 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28248 | (eval $ac_try) 2>&5 | |
28249 | ac_status=$? | |
28250 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28251 | test $ac_status = 0; }; }; then : | |
28252 | ||
28253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28254 | $as_echo "yes" >&6; } | |
28255 | ||
28256 | $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h | |
28257 | ||
28258 | ||
28259 | else | |
28260 | $as_echo "$as_me: failed program was:" >&5 | |
28261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28262 | ||
28263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28264 | $as_echo "no" >&6; } | |
28265 | ||
28266 | ||
28267 | ||
28268 | fi | |
28269 | rm -Rf build | |
28270 | ||
28271 | ||
28272 | ||
28273 | ||
28274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5 | |
28275 | $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; } | |
28276 | ||
28277 | ||
28278 | cat confdefs.h - <<_ACEOF >conftest.c | |
28279 | ||
28280 | ||
28281 | #include <linux/xattr.h> | |
28282 | ||
28283 | int get(const struct xattr_handler *handler, | |
28284 | struct dentry *dentry, struct inode *inode, | |
28285 | const char *name, void *buffer, size_t size) { return 0; } | |
28286 | static const struct xattr_handler | |
28287 | xops __attribute__ ((unused)) = { | |
28288 | .get = get, | |
28289 | }; | |
28290 | ||
28291 | int | |
28292 | main (void) | |
28293 | { | |
28294 | ||
28295 | ||
28296 | ; | |
28297 | return 0; | |
28298 | } | |
28299 | ||
28300 | _ACEOF | |
28301 | ||
28302 | ||
28303 | ||
28304 | cat - <<_ACEOF >conftest.h | |
28305 | ||
28306 | _ACEOF | |
28307 | ||
28308 | ||
28309 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28310 | echo "obj-m := conftest.o" >build/Makefile | |
28311 | modpost_flag='' | |
28312 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28313 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28314 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28315 | (eval $ac_try) 2>&5 | |
28316 | ac_status=$? | |
28317 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28318 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28319 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28320 | (eval $ac_try) 2>&5 | |
28321 | ac_status=$? | |
28322 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28323 | test $ac_status = 0; }; }; then : | |
28324 | ||
28325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28326 | $as_echo "yes" >&6; } | |
28327 | ||
28328 | $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h | |
28329 | ||
28330 | ||
28331 | else | |
28332 | $as_echo "$as_me: failed program was:" >&5 | |
28333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28334 | ||
28335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5 | |
28336 | $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; } | |
28337 | ||
28338 | ||
28339 | cat confdefs.h - <<_ACEOF >conftest.c | |
28340 | ||
28341 | ||
28342 | #include <linux/xattr.h> | |
28343 | ||
28344 | int get(const struct xattr_handler *handler, | |
28345 | struct dentry *dentry, const char *name, | |
28346 | void *buffer, size_t size) { return 0; } | |
28347 | static const struct xattr_handler | |
28348 | xops __attribute__ ((unused)) = { | |
28349 | .get = get, | |
28350 | }; | |
28351 | ||
28352 | int | |
28353 | main (void) | |
28354 | { | |
28355 | ||
28356 | ||
28357 | ; | |
28358 | return 0; | |
28359 | } | |
28360 | ||
28361 | _ACEOF | |
28362 | ||
28363 | ||
28364 | ||
28365 | cat - <<_ACEOF >conftest.h | |
28366 | ||
28367 | _ACEOF | |
28368 | ||
28369 | ||
28370 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28371 | echo "obj-m := conftest.o" >build/Makefile | |
28372 | modpost_flag='' | |
28373 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28374 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28375 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28376 | (eval $ac_try) 2>&5 | |
28377 | ac_status=$? | |
28378 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28379 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28380 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28381 | (eval $ac_try) 2>&5 | |
28382 | ac_status=$? | |
28383 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28384 | test $ac_status = 0; }; }; then : | |
28385 | ||
28386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28387 | $as_echo "yes" >&6; } | |
28388 | ||
28389 | $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h | |
28390 | ||
28391 | ||
28392 | else | |
28393 | $as_echo "$as_me: failed program was:" >&5 | |
28394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28395 | ||
28396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28397 | $as_echo "no" >&6; } | |
28398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5 | |
28399 | $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; } | |
28400 | ||
28401 | ||
28402 | cat confdefs.h - <<_ACEOF >conftest.c | |
28403 | ||
28404 | ||
28405 | #include <linux/xattr.h> | |
28406 | ||
28407 | int get(struct dentry *dentry, const char *name, | |
28408 | void *buffer, size_t size, int handler_flags) | |
28409 | { return 0; } | |
28410 | static const struct xattr_handler | |
28411 | xops __attribute__ ((unused)) = { | |
28412 | .get = get, | |
28413 | }; | |
28414 | ||
28415 | int | |
28416 | main (void) | |
28417 | { | |
28418 | ||
28419 | ||
28420 | ; | |
28421 | return 0; | |
28422 | } | |
28423 | ||
28424 | _ACEOF | |
28425 | ||
28426 | ||
28427 | ||
28428 | cat - <<_ACEOF >conftest.h | |
28429 | ||
28430 | _ACEOF | |
28431 | ||
28432 | ||
28433 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28434 | echo "obj-m := conftest.o" >build/Makefile | |
28435 | modpost_flag='' | |
28436 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28437 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28438 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28439 | (eval $ac_try) 2>&5 | |
28440 | ac_status=$? | |
28441 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28442 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28443 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28444 | (eval $ac_try) 2>&5 | |
28445 | ac_status=$? | |
28446 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28447 | test $ac_status = 0; }; }; then : | |
28448 | ||
28449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28450 | $as_echo "yes" >&6; } | |
28451 | ||
28452 | $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h | |
28453 | ||
28454 | ||
28455 | else | |
28456 | $as_echo "$as_me: failed program was:" >&5 | |
28457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28458 | ||
28459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28460 | $as_echo "no" >&6; } | |
28461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5 | |
28462 | $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; } | |
28463 | ||
28464 | ||
28465 | cat confdefs.h - <<_ACEOF >conftest.c | |
28466 | ||
28467 | ||
28468 | #include <linux/xattr.h> | |
28469 | ||
28470 | int get(struct inode *ip, const char *name, | |
28471 | void *buffer, size_t size) { return 0; } | |
28472 | static const struct xattr_handler | |
28473 | xops __attribute__ ((unused)) = { | |
28474 | .get = get, | |
28475 | }; | |
28476 | ||
28477 | int | |
28478 | main (void) | |
28479 | { | |
28480 | ||
28481 | ||
28482 | ; | |
28483 | return 0; | |
28484 | } | |
28485 | ||
28486 | _ACEOF | |
28487 | ||
28488 | ||
28489 | ||
28490 | cat - <<_ACEOF >conftest.h | |
28491 | ||
28492 | _ACEOF | |
28493 | ||
28494 | ||
28495 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28496 | echo "obj-m := conftest.o" >build/Makefile | |
28497 | modpost_flag='' | |
28498 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28499 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28500 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28501 | (eval $ac_try) 2>&5 | |
28502 | ac_status=$? | |
28503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28504 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28505 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28506 | (eval $ac_try) 2>&5 | |
28507 | ac_status=$? | |
28508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28509 | test $ac_status = 0; }; }; then : | |
28510 | ||
28511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28512 | $as_echo "yes" >&6; } | |
28513 | ||
28514 | $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h | |
28515 | ||
28516 | ||
28517 | else | |
28518 | $as_echo "$as_me: failed program was:" >&5 | |
28519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28520 | ||
28521 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
28522 | ||
28523 | ||
28524 | ||
28525 | fi | |
28526 | rm -Rf build | |
28527 | ||
28528 | ||
28529 | ||
28530 | ||
28531 | ||
28532 | fi | |
28533 | rm -Rf build | |
28534 | ||
28535 | ||
28536 | ||
28537 | ||
28538 | ||
28539 | fi | |
28540 | rm -Rf build | |
28541 | ||
28542 | ||
28543 | ||
28544 | ||
28545 | ||
28546 | fi | |
28547 | rm -Rf build | |
28548 | ||
28549 | ||
28550 | ||
28551 | ||
28552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5 | |
28553 | $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; } | |
28554 | ||
28555 | ||
28556 | cat confdefs.h - <<_ACEOF >conftest.c | |
28557 | ||
28558 | ||
28559 | #include <linux/xattr.h> | |
28560 | ||
28561 | int set(const struct xattr_handler *handler, | |
28562 | struct dentry *dentry, struct inode *inode, | |
28563 | const char *name, const void *buffer, | |
28564 | size_t size, int flags) | |
28565 | { return 0; } | |
28566 | static const struct xattr_handler | |
28567 | xops __attribute__ ((unused)) = { | |
28568 | .set = set, | |
28569 | }; | |
28570 | ||
28571 | int | |
28572 | main (void) | |
28573 | { | |
28574 | ||
28575 | ||
28576 | ; | |
28577 | return 0; | |
28578 | } | |
28579 | ||
28580 | _ACEOF | |
28581 | ||
28582 | ||
28583 | ||
28584 | cat - <<_ACEOF >conftest.h | |
28585 | ||
28586 | _ACEOF | |
28587 | ||
28588 | ||
28589 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28590 | echo "obj-m := conftest.o" >build/Makefile | |
28591 | modpost_flag='' | |
28592 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28593 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28594 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28595 | (eval $ac_try) 2>&5 | |
28596 | ac_status=$? | |
28597 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28598 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28599 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28600 | (eval $ac_try) 2>&5 | |
28601 | ac_status=$? | |
28602 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28603 | test $ac_status = 0; }; }; then : | |
28604 | ||
28605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28606 | $as_echo "yes" >&6; } | |
28607 | ||
28608 | $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h | |
28609 | ||
28610 | ||
28611 | else | |
28612 | $as_echo "$as_me: failed program was:" >&5 | |
28613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28614 | ||
28615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5 | |
28616 | $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; } | |
28617 | ||
28618 | ||
28619 | cat confdefs.h - <<_ACEOF >conftest.c | |
28620 | ||
28621 | ||
28622 | #include <linux/xattr.h> | |
28623 | ||
28624 | int set(const struct xattr_handler *handler, | |
28625 | struct dentry *dentry, const char *name, | |
28626 | const void *buffer, size_t size, int flags) | |
28627 | { return 0; } | |
28628 | static const struct xattr_handler | |
28629 | xops __attribute__ ((unused)) = { | |
28630 | .set = set, | |
28631 | }; | |
28632 | ||
28633 | int | |
28634 | main (void) | |
28635 | { | |
28636 | ||
28637 | ||
28638 | ; | |
28639 | return 0; | |
28640 | } | |
28641 | ||
28642 | _ACEOF | |
28643 | ||
28644 | ||
28645 | ||
28646 | cat - <<_ACEOF >conftest.h | |
28647 | ||
28648 | _ACEOF | |
28649 | ||
28650 | ||
28651 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28652 | echo "obj-m := conftest.o" >build/Makefile | |
28653 | modpost_flag='' | |
28654 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28655 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28656 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28657 | (eval $ac_try) 2>&5 | |
28658 | ac_status=$? | |
28659 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28660 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28661 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28662 | (eval $ac_try) 2>&5 | |
28663 | ac_status=$? | |
28664 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28665 | test $ac_status = 0; }; }; then : | |
28666 | ||
28667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28668 | $as_echo "yes" >&6; } | |
28669 | ||
28670 | $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h | |
28671 | ||
28672 | ||
28673 | else | |
28674 | $as_echo "$as_me: failed program was:" >&5 | |
28675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28676 | ||
28677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28678 | $as_echo "no" >&6; } | |
28679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5 | |
28680 | $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; } | |
28681 | ||
28682 | ||
28683 | cat confdefs.h - <<_ACEOF >conftest.c | |
28684 | ||
28685 | ||
28686 | #include <linux/xattr.h> | |
28687 | ||
28688 | int set(struct dentry *dentry, const char *name, | |
28689 | const void *buffer, size_t size, int flags, | |
28690 | int handler_flags) { return 0; } | |
28691 | static const struct xattr_handler | |
28692 | xops __attribute__ ((unused)) = { | |
28693 | .set = set, | |
28694 | }; | |
28695 | ||
28696 | int | |
28697 | main (void) | |
28698 | { | |
28699 | ||
28700 | ||
28701 | ; | |
28702 | return 0; | |
28703 | } | |
28704 | ||
28705 | _ACEOF | |
28706 | ||
28707 | ||
28708 | ||
28709 | cat - <<_ACEOF >conftest.h | |
28710 | ||
28711 | _ACEOF | |
28712 | ||
28713 | ||
28714 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28715 | echo "obj-m := conftest.o" >build/Makefile | |
28716 | modpost_flag='' | |
28717 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28718 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28719 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28720 | (eval $ac_try) 2>&5 | |
28721 | ac_status=$? | |
28722 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28723 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28724 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28725 | (eval $ac_try) 2>&5 | |
28726 | ac_status=$? | |
28727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28728 | test $ac_status = 0; }; }; then : | |
28729 | ||
28730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28731 | $as_echo "yes" >&6; } | |
28732 | ||
28733 | $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h | |
28734 | ||
28735 | ||
28736 | else | |
28737 | $as_echo "$as_me: failed program was:" >&5 | |
28738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28739 | ||
28740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28741 | $as_echo "no" >&6; } | |
28742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5 | |
28743 | $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; } | |
28744 | ||
28745 | ||
28746 | cat confdefs.h - <<_ACEOF >conftest.c | |
28747 | ||
28748 | ||
28749 | #include <linux/xattr.h> | |
28750 | ||
28751 | int set(struct inode *ip, const char *name, | |
28752 | const void *buffer, size_t size, int flags) | |
28753 | { return 0; } | |
28754 | static const struct xattr_handler | |
28755 | xops __attribute__ ((unused)) = { | |
28756 | .set = set, | |
28757 | }; | |
28758 | ||
28759 | int | |
28760 | main (void) | |
28761 | { | |
28762 | ||
28763 | ||
28764 | ; | |
28765 | return 0; | |
28766 | } | |
28767 | ||
28768 | _ACEOF | |
28769 | ||
28770 | ||
28771 | ||
28772 | cat - <<_ACEOF >conftest.h | |
28773 | ||
28774 | _ACEOF | |
28775 | ||
28776 | ||
28777 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28778 | echo "obj-m := conftest.o" >build/Makefile | |
28779 | modpost_flag='' | |
28780 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28781 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28782 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28783 | (eval $ac_try) 2>&5 | |
28784 | ac_status=$? | |
28785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28786 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28787 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28788 | (eval $ac_try) 2>&5 | |
28789 | ac_status=$? | |
28790 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28791 | test $ac_status = 0; }; }; then : | |
28792 | ||
28793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28794 | $as_echo "yes" >&6; } | |
28795 | ||
28796 | $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h | |
28797 | ||
28798 | ||
28799 | else | |
28800 | $as_echo "$as_me: failed program was:" >&5 | |
28801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28802 | ||
28803 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
28804 | ||
28805 | ||
28806 | ||
28807 | fi | |
28808 | rm -Rf build | |
28809 | ||
28810 | ||
28811 | ||
28812 | ||
28813 | ||
28814 | fi | |
28815 | rm -Rf build | |
28816 | ||
28817 | ||
28818 | ||
28819 | ||
28820 | ||
28821 | fi | |
28822 | rm -Rf build | |
28823 | ||
28824 | ||
28825 | ||
28826 | ||
28827 | ||
28828 | fi | |
28829 | rm -Rf build | |
28830 | ||
28831 | ||
28832 | ||
28833 | ||
28834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5 | |
28835 | $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; } | |
28836 | ||
28837 | ||
28838 | cat confdefs.h - <<_ACEOF >conftest.c | |
28839 | ||
28840 | ||
28841 | #include <linux/xattr.h> | |
28842 | ||
28843 | bool list(struct dentry *dentry) { return 0; } | |
28844 | static const struct xattr_handler | |
28845 | xops __attribute__ ((unused)) = { | |
28846 | .list = list, | |
28847 | }; | |
28848 | ||
28849 | int | |
28850 | main (void) | |
28851 | { | |
28852 | ||
28853 | ||
28854 | ; | |
28855 | return 0; | |
28856 | } | |
28857 | ||
28858 | _ACEOF | |
28859 | ||
28860 | ||
28861 | ||
28862 | cat - <<_ACEOF >conftest.h | |
28863 | ||
28864 | _ACEOF | |
28865 | ||
28866 | ||
28867 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28868 | echo "obj-m := conftest.o" >build/Makefile | |
28869 | modpost_flag='' | |
28870 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28871 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28872 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28873 | (eval $ac_try) 2>&5 | |
28874 | ac_status=$? | |
28875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28876 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28877 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28878 | (eval $ac_try) 2>&5 | |
28879 | ac_status=$? | |
28880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28881 | test $ac_status = 0; }; }; then : | |
28882 | ||
28883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28884 | $as_echo "yes" >&6; } | |
28885 | ||
28886 | $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h | |
28887 | ||
28888 | ||
28889 | else | |
28890 | $as_echo "$as_me: failed program was:" >&5 | |
28891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28892 | ||
28893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28894 | $as_echo "no" >&6; } | |
28895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5 | |
28896 | $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; } | |
28897 | ||
28898 | ||
28899 | cat confdefs.h - <<_ACEOF >conftest.c | |
28900 | ||
28901 | ||
28902 | #include <linux/xattr.h> | |
28903 | ||
28904 | size_t list(const struct xattr_handler *handler, | |
28905 | struct dentry *dentry, char *list, size_t list_size, | |
28906 | const char *name, size_t name_len) { return 0; } | |
28907 | static const struct xattr_handler | |
28908 | xops __attribute__ ((unused)) = { | |
28909 | .list = list, | |
28910 | }; | |
28911 | ||
28912 | int | |
28913 | main (void) | |
28914 | { | |
28915 | ||
28916 | ||
28917 | ; | |
28918 | return 0; | |
28919 | } | |
28920 | ||
28921 | _ACEOF | |
28922 | ||
28923 | ||
28924 | ||
28925 | cat - <<_ACEOF >conftest.h | |
28926 | ||
28927 | _ACEOF | |
28928 | ||
28929 | ||
28930 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28931 | echo "obj-m := conftest.o" >build/Makefile | |
28932 | modpost_flag='' | |
28933 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28934 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28935 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28936 | (eval $ac_try) 2>&5 | |
28937 | ac_status=$? | |
28938 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28939 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
28940 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
28941 | (eval $ac_try) 2>&5 | |
28942 | ac_status=$? | |
28943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28944 | test $ac_status = 0; }; }; then : | |
28945 | ||
28946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28947 | $as_echo "yes" >&6; } | |
28948 | ||
28949 | $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h | |
28950 | ||
28951 | ||
28952 | else | |
28953 | $as_echo "$as_me: failed program was:" >&5 | |
28954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28955 | ||
28956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28957 | $as_echo "no" >&6; } | |
28958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5 | |
28959 | $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; } | |
28960 | ||
28961 | ||
28962 | cat confdefs.h - <<_ACEOF >conftest.c | |
28963 | ||
28964 | ||
28965 | #include <linux/xattr.h> | |
28966 | ||
28967 | size_t list(struct dentry *dentry, | |
28968 | char *list, size_t list_size, | |
28969 | const char *name, size_t name_len, | |
28970 | int handler_flags) { return 0; } | |
28971 | static const struct xattr_handler | |
28972 | xops __attribute__ ((unused)) = { | |
28973 | .list = list, | |
28974 | }; | |
28975 | ||
28976 | int | |
28977 | main (void) | |
28978 | { | |
28979 | ||
28980 | ||
28981 | ; | |
28982 | return 0; | |
28983 | } | |
28984 | ||
28985 | _ACEOF | |
28986 | ||
28987 | ||
28988 | ||
28989 | cat - <<_ACEOF >conftest.h | |
28990 | ||
28991 | _ACEOF | |
28992 | ||
28993 | ||
28994 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
28995 | echo "obj-m := conftest.o" >build/Makefile | |
28996 | modpost_flag='' | |
28997 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
28998 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
28999 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29000 | (eval $ac_try) 2>&5 | |
29001 | ac_status=$? | |
29002 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29003 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29004 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29005 | (eval $ac_try) 2>&5 | |
29006 | ac_status=$? | |
29007 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29008 | test $ac_status = 0; }; }; then : | |
29009 | ||
29010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29011 | $as_echo "yes" >&6; } | |
29012 | ||
29013 | $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h | |
29014 | ||
29015 | ||
29016 | else | |
29017 | $as_echo "$as_me: failed program was:" >&5 | |
29018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29019 | ||
29020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29021 | $as_echo "no" >&6; } | |
29022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5 | |
29023 | $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; } | |
29024 | ||
29025 | ||
29026 | cat confdefs.h - <<_ACEOF >conftest.c | |
29027 | ||
29028 | ||
29029 | #include <linux/xattr.h> | |
29030 | ||
29031 | size_t list(struct inode *ip, char *lst, | |
29032 | size_t list_size, const char *name, | |
29033 | size_t name_len) { return 0; } | |
29034 | static const struct xattr_handler | |
29035 | xops __attribute__ ((unused)) = { | |
29036 | .list = list, | |
29037 | }; | |
29038 | ||
29039 | int | |
29040 | main (void) | |
29041 | { | |
29042 | ||
29043 | ||
29044 | ; | |
29045 | return 0; | |
29046 | } | |
29047 | ||
29048 | _ACEOF | |
29049 | ||
29050 | ||
29051 | ||
29052 | cat - <<_ACEOF >conftest.h | |
29053 | ||
29054 | _ACEOF | |
29055 | ||
29056 | ||
29057 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29058 | echo "obj-m := conftest.o" >build/Makefile | |
29059 | modpost_flag='' | |
29060 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29061 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29062 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29063 | (eval $ac_try) 2>&5 | |
29064 | ac_status=$? | |
29065 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29066 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29067 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29068 | (eval $ac_try) 2>&5 | |
29069 | ac_status=$? | |
29070 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29071 | test $ac_status = 0; }; }; then : | |
29072 | ||
29073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29074 | $as_echo "yes" >&6; } | |
29075 | ||
29076 | $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h | |
29077 | ||
29078 | ||
29079 | else | |
29080 | $as_echo "$as_me: failed program was:" >&5 | |
29081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29082 | ||
29083 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
29084 | ||
29085 | ||
29086 | ||
29087 | fi | |
29088 | rm -Rf build | |
29089 | ||
29090 | ||
29091 | ||
29092 | ||
29093 | ||
29094 | fi | |
29095 | rm -Rf build | |
29096 | ||
29097 | ||
29098 | ||
29099 | ||
29100 | ||
29101 | fi | |
29102 | rm -Rf build | |
29103 | ||
29104 | ||
29105 | ||
29106 | ||
29107 | ||
29108 | fi | |
29109 | rm -Rf build | |
29110 | ||
29111 | ||
29112 | ||
29113 | ||
29114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5 | |
29115 | $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; } | |
29116 | ||
29117 | ||
29118 | cat confdefs.h - <<_ACEOF >conftest.c | |
29119 | ||
29120 | ||
29121 | #include <linux/fs.h> | |
29122 | ||
29123 | int | |
29124 | main (void) | |
29125 | { | |
29126 | ||
29127 | struct inode *ip = NULL; | |
29128 | (void) inode_owner_or_capable(ip); | |
29129 | ||
29130 | ; | |
29131 | return 0; | |
29132 | } | |
29133 | ||
29134 | _ACEOF | |
29135 | ||
29136 | ||
29137 | ||
29138 | cat - <<_ACEOF >conftest.h | |
29139 | ||
29140 | _ACEOF | |
29141 | ||
29142 | ||
29143 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29144 | echo "obj-m := conftest.o" >build/Makefile | |
29145 | modpost_flag='' | |
29146 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29147 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29148 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29149 | (eval $ac_try) 2>&5 | |
29150 | ac_status=$? | |
29151 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29152 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29153 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29154 | (eval $ac_try) 2>&5 | |
29155 | ac_status=$? | |
29156 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29157 | test $ac_status = 0; }; }; then : | |
29158 | ||
29159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29160 | $as_echo "yes" >&6; } | |
29161 | ||
29162 | $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h | |
29163 | ||
29164 | ||
29165 | else | |
29166 | $as_echo "$as_me: failed program was:" >&5 | |
29167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29168 | ||
29169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29170 | $as_echo "no" >&6; } | |
29171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5 | |
29172 | $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; } | |
29173 | ||
29174 | ||
29175 | cat confdefs.h - <<_ACEOF >conftest.c | |
29176 | ||
29177 | ||
29178 | #include <linux/fs.h> | |
29179 | #include <linux/sched.h> | |
29180 | ||
29181 | int | |
29182 | main (void) | |
29183 | { | |
29184 | ||
29185 | struct inode *ip = NULL; | |
29186 | (void) is_owner_or_cap(ip); | |
29187 | ||
29188 | ; | |
29189 | return 0; | |
29190 | } | |
29191 | ||
29192 | _ACEOF | |
29193 | ||
29194 | ||
29195 | ||
29196 | cat - <<_ACEOF >conftest.h | |
29197 | ||
29198 | _ACEOF | |
29199 | ||
29200 | ||
29201 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29202 | echo "obj-m := conftest.o" >build/Makefile | |
29203 | modpost_flag='' | |
29204 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29205 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29206 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29207 | (eval $ac_try) 2>&5 | |
29208 | ac_status=$? | |
29209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29210 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29211 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29212 | (eval $ac_try) 2>&5 | |
29213 | ac_status=$? | |
29214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29215 | test $ac_status = 0; }; }; then : | |
29216 | ||
29217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29218 | $as_echo "yes" >&6; } | |
29219 | ||
29220 | $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h | |
29221 | ||
29222 | ||
29223 | else | |
29224 | $as_echo "$as_me: failed program was:" >&5 | |
29225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29226 | ||
29227 | as_fn_error $? "no - Please file a bug report at | |
29228 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
29229 | ||
29230 | ||
29231 | ||
29232 | fi | |
29233 | rm -Rf build | |
29234 | ||
29235 | ||
29236 | ||
29237 | ||
29238 | ||
29239 | fi | |
29240 | rm -Rf build | |
29241 | ||
29242 | ||
29243 | ||
29244 | ||
29245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5 | |
29246 | $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; } | |
29247 | ||
29248 | ||
29249 | cat confdefs.h - <<_ACEOF >conftest.c | |
29250 | ||
29251 | ||
29252 | #include <linux/cred.h> | |
29253 | #include <linux/fs.h> | |
29254 | #include <linux/posix_acl_xattr.h> | |
29255 | ||
29256 | int | |
29257 | main (void) | |
29258 | { | |
29259 | ||
29260 | posix_acl_from_xattr(&init_user_ns, NULL, 0); | |
29261 | ||
29262 | ; | |
29263 | return 0; | |
29264 | } | |
29265 | ||
29266 | _ACEOF | |
29267 | ||
29268 | ||
29269 | ||
29270 | cat - <<_ACEOF >conftest.h | |
29271 | ||
29272 | _ACEOF | |
29273 | ||
29274 | ||
29275 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29276 | echo "obj-m := conftest.o" >build/Makefile | |
29277 | modpost_flag='' | |
29278 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29279 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29280 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29281 | (eval $ac_try) 2>&5 | |
29282 | ac_status=$? | |
29283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29284 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29285 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29286 | (eval $ac_try) 2>&5 | |
29287 | ac_status=$? | |
29288 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29289 | test $ac_status = 0; }; }; then : | |
29290 | ||
29291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29292 | $as_echo "yes" >&6; } | |
29293 | ||
29294 | $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h | |
29295 | ||
29296 | ||
29297 | else | |
29298 | $as_echo "$as_me: failed program was:" >&5 | |
29299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29300 | ||
29301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29302 | $as_echo "no" >&6; } | |
29303 | ||
29304 | ||
29305 | ||
29306 | fi | |
29307 | rm -Rf build | |
29308 | ||
29309 | ||
29310 | ||
29311 | ||
29312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5 | |
29313 | $as_echo_n "checking whether posix_acl_release() is available... " >&6; } | |
29314 | ||
29315 | ||
29316 | cat confdefs.h - <<_ACEOF >conftest.c | |
29317 | ||
29318 | ||
29319 | #include <linux/cred.h> | |
29320 | #include <linux/fs.h> | |
29321 | #include <linux/posix_acl.h> | |
29322 | ||
29323 | int | |
29324 | main (void) | |
29325 | { | |
29326 | ||
29327 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
29328 | posix_acl_release(tmp); | |
29329 | ||
29330 | ; | |
29331 | return 0; | |
29332 | } | |
29333 | ||
29334 | _ACEOF | |
29335 | ||
29336 | ||
29337 | ||
29338 | cat - <<_ACEOF >conftest.h | |
29339 | ||
29340 | _ACEOF | |
29341 | ||
29342 | ||
29343 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29344 | echo "obj-m := conftest.o" >build/Makefile | |
29345 | modpost_flag='' | |
29346 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29347 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29348 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29349 | (eval $ac_try) 2>&5 | |
29350 | ac_status=$? | |
29351 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29352 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29353 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29354 | (eval $ac_try) 2>&5 | |
29355 | ac_status=$? | |
29356 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29357 | test $ac_status = 0; }; }; then : | |
29358 | ||
29359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29360 | $as_echo "yes" >&6; } | |
29361 | ||
d177712e CIK |
29362 | $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h |
29363 | ||
29364 | ||
29365 | else | |
29366 | $as_echo "$as_me: failed program was:" >&5 | |
29367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29368 | ||
29369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29370 | $as_echo "no" >&6; } | |
29371 | ||
29372 | ||
29373 | ||
29374 | fi | |
29375 | rm -Rf build | |
29376 | ||
29377 | ||
29378 | ||
29379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5 | |
29380 | $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; } | |
29381 | ||
29382 | ||
29383 | cat confdefs.h - <<_ACEOF >conftest.c | |
29384 | ||
29385 | ||
29386 | #include <linux/cred.h> | |
29387 | #include <linux/fs.h> | |
29388 | #include <linux/posix_acl.h> | |
29389 | ||
29390 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
29391 | ||
29392 | int | |
29393 | main (void) | |
29394 | { | |
29395 | ||
29396 | struct posix_acl* tmp = posix_acl_alloc(1, 0); | |
29397 | posix_acl_release(tmp); | |
29398 | ||
29399 | ; | |
29400 | return 0; | |
29401 | } | |
29402 | ||
29403 | _ACEOF | |
29404 | ||
29405 | ||
29406 | ||
29407 | cat - <<_ACEOF >conftest.h | |
29408 | ||
29409 | _ACEOF | |
29410 | ||
29411 | ||
29412 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29413 | echo "obj-m := conftest.o" >build/Makefile | |
29414 | modpost_flag='' | |
29415 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29416 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29417 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29418 | (eval $ac_try) 2>&5 | |
29419 | ac_status=$? | |
29420 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29421 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29422 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29423 | (eval $ac_try) 2>&5 | |
29424 | ac_status=$? | |
29425 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29426 | test $ac_status = 0; }; }; then : | |
29427 | ||
29428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29429 | $as_echo "no" >&6; } | |
29430 | ||
29431 | else | |
29432 | $as_echo "$as_me: failed program was:" >&5 | |
29433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29434 | ||
29435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29436 | $as_echo "yes" >&6; } | |
29437 | ||
29438 | $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h | |
29439 | ||
29440 | ||
29441 | ||
29442 | ||
29443 | fi | |
29444 | rm -Rf build | |
29445 | ||
29446 | ||
29447 | ||
29448 | ||
29449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5 | |
29450 | $as_echo_n "checking whether set_cached_acl() is usable... " >&6; } | |
29451 | ||
29452 | ||
29453 | cat confdefs.h - <<_ACEOF >conftest.c | |
29454 | ||
29455 | ||
29456 | #include <linux/module.h> | |
29457 | #include <linux/cred.h> | |
29458 | #include <linux/fs.h> | |
29459 | #include <linux/posix_acl.h> | |
29460 | ||
29461 | MODULE_LICENSE("$ZFS_META_LICENSE"); | |
29462 | ||
29463 | int | |
29464 | main (void) | |
29465 | { | |
29466 | ||
29467 | struct inode *ip = NULL; | |
29468 | struct posix_acl *acl = posix_acl_alloc(1, 0); | |
29469 | set_cached_acl(ip, ACL_TYPE_ACCESS, acl); | |
29470 | forget_cached_acl(ip, ACL_TYPE_ACCESS); | |
29471 | ||
29472 | ; | |
29473 | return 0; | |
29474 | } | |
29475 | ||
29476 | _ACEOF | |
29477 | ||
29478 | ||
29479 | ||
29480 | cat - <<_ACEOF >conftest.h | |
29481 | ||
29482 | _ACEOF | |
29483 | ||
29484 | ||
29485 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29486 | echo "obj-m := conftest.o" >build/Makefile | |
29487 | modpost_flag='' | |
29488 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29489 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29490 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29491 | (eval $ac_try) 2>&5 | |
29492 | ac_status=$? | |
29493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29494 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29495 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29496 | (eval $ac_try) 2>&5 | |
29497 | ac_status=$? | |
29498 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29499 | test $ac_status = 0; }; }; then : | |
29500 | ||
29501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29502 | $as_echo "yes" >&6; } | |
29503 | ||
29504 | $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h | |
0bd31011 TG |
29505 | |
29506 | ||
29507 | else | |
29508 | $as_echo "$as_me: failed program was:" >&5 | |
29509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29510 | ||
29511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29512 | $as_echo "no" >&6; } | |
29513 | ||
29514 | ||
29515 | ||
29516 | fi | |
29517 | rm -Rf build | |
29518 | ||
29519 | ||
29520 | ||
d177712e CIK |
29521 | |
29522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5 | |
29523 | $as_echo_n "checking whether posix_acl_chmod exists... " >&6; } | |
0bd31011 TG |
29524 | |
29525 | ||
29526 | cat confdefs.h - <<_ACEOF >conftest.c | |
29527 | ||
29528 | ||
0bd31011 TG |
29529 | #include <linux/fs.h> |
29530 | #include <linux/posix_acl.h> | |
29531 | ||
0bd31011 TG |
29532 | int |
29533 | main (void) | |
29534 | { | |
29535 | ||
d177712e | 29536 | posix_acl_chmod(NULL, 0, 0) |
0bd31011 TG |
29537 | |
29538 | ; | |
29539 | return 0; | |
29540 | } | |
29541 | ||
29542 | _ACEOF | |
29543 | ||
29544 | ||
29545 | ||
29546 | cat - <<_ACEOF >conftest.h | |
29547 | ||
29548 | _ACEOF | |
29549 | ||
29550 | ||
29551 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29552 | echo "obj-m := conftest.o" >build/Makefile | |
29553 | modpost_flag='' | |
29554 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29555 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29556 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29557 | (eval $ac_try) 2>&5 | |
29558 | ac_status=$? | |
29559 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29560 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29561 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29562 | (eval $ac_try) 2>&5 | |
29563 | ac_status=$? | |
29564 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29565 | test $ac_status = 0; }; }; then : | |
29566 | ||
d177712e CIK |
29567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
29568 | $as_echo "yes" >&6; } | |
29569 | ||
29570 | $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h | |
29571 | ||
0bd31011 TG |
29572 | |
29573 | else | |
29574 | $as_echo "$as_me: failed program was:" >&5 | |
29575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29576 | ||
d177712e CIK |
29577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
29578 | $as_echo "no" >&6; } | |
0bd31011 TG |
29579 | |
29580 | ||
29581 | ||
29582 | fi | |
29583 | rm -Rf build | |
29584 | ||
29585 | ||
29586 | ||
d177712e CIK |
29587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5 |
29588 | $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; } | |
0bd31011 TG |
29589 | |
29590 | ||
29591 | cat confdefs.h - <<_ACEOF >conftest.c | |
29592 | ||
29593 | ||
29594 | #include <linux/fs.h> | |
29595 | #include <linux/posix_acl.h> | |
29596 | ||
29597 | int | |
29598 | main (void) | |
29599 | { | |
29600 | ||
d177712e | 29601 | __posix_acl_chmod(NULL, 0, 0) |
0bd31011 TG |
29602 | |
29603 | ; | |
29604 | return 0; | |
29605 | } | |
29606 | ||
29607 | _ACEOF | |
29608 | ||
29609 | ||
29610 | ||
29611 | cat - <<_ACEOF >conftest.h | |
29612 | ||
29613 | _ACEOF | |
29614 | ||
29615 | ||
29616 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29617 | echo "obj-m := conftest.o" >build/Makefile | |
29618 | modpost_flag='' | |
29619 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29620 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29621 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29622 | (eval $ac_try) 2>&5 | |
29623 | ac_status=$? | |
29624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29625 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29626 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29627 | (eval $ac_try) 2>&5 | |
29628 | ac_status=$? | |
29629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29630 | test $ac_status = 0; }; }; then : | |
29631 | ||
29632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29633 | $as_echo "yes" >&6; } | |
29634 | ||
d177712e | 29635 | $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h |
0bd31011 TG |
29636 | |
29637 | ||
29638 | else | |
29639 | $as_echo "$as_me: failed program was:" >&5 | |
29640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29641 | ||
29642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29643 | $as_echo "no" >&6; } | |
29644 | ||
29645 | ||
29646 | ||
29647 | fi | |
29648 | rm -Rf build | |
29649 | ||
29650 | ||
29651 | ||
d177712e CIK |
29652 | |
29653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5 | |
29654 | $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; } | |
0bd31011 TG |
29655 | |
29656 | ||
29657 | cat confdefs.h - <<_ACEOF >conftest.c | |
29658 | ||
29659 | ||
29660 | #include <linux/fs.h> | |
29661 | #include <linux/posix_acl.h> | |
29662 | ||
29663 | int | |
29664 | main (void) | |
29665 | { | |
29666 | ||
d177712e CIK |
29667 | umode_t tmp; |
29668 | posix_acl_equiv_mode(NULL,&tmp); | |
0bd31011 TG |
29669 | |
29670 | ; | |
29671 | return 0; | |
29672 | } | |
29673 | ||
29674 | _ACEOF | |
29675 | ||
29676 | ||
29677 | ||
29678 | cat - <<_ACEOF >conftest.h | |
29679 | ||
29680 | _ACEOF | |
29681 | ||
29682 | ||
29683 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29684 | echo "obj-m := conftest.o" >build/Makefile | |
29685 | modpost_flag='' | |
29686 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29687 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29688 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29689 | (eval $ac_try) 2>&5 | |
29690 | ac_status=$? | |
29691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29692 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29693 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29694 | (eval $ac_try) 2>&5 | |
29695 | ac_status=$? | |
29696 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29697 | test $ac_status = 0; }; }; then : | |
29698 | ||
29699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29700 | $as_echo "yes" >&6; } | |
29701 | ||
d177712e | 29702 | $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h |
0bd31011 TG |
29703 | |
29704 | ||
29705 | else | |
29706 | $as_echo "$as_me: failed program was:" >&5 | |
29707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29708 | ||
29709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29710 | $as_echo "no" >&6; } | |
29711 | ||
29712 | ||
29713 | ||
29714 | fi | |
29715 | rm -Rf build | |
29716 | ||
29717 | ||
29718 | ||
29719 | ||
d177712e CIK |
29720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5 |
29721 | $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; } | |
0bd31011 TG |
29722 | |
29723 | ||
29724 | cat confdefs.h - <<_ACEOF >conftest.c | |
29725 | ||
29726 | ||
29727 | #include <linux/fs.h> | |
29728 | #include <linux/posix_acl.h> | |
29729 | ||
29730 | int | |
29731 | main (void) | |
29732 | { | |
29733 | ||
d177712e CIK |
29734 | struct user_namespace *user_ns = NULL; |
29735 | const struct posix_acl *acl = NULL; | |
29736 | int error; | |
29737 | ||
29738 | error = posix_acl_valid(user_ns, acl); | |
0bd31011 TG |
29739 | |
29740 | ; | |
29741 | return 0; | |
29742 | } | |
29743 | ||
29744 | _ACEOF | |
29745 | ||
29746 | ||
29747 | ||
29748 | cat - <<_ACEOF >conftest.h | |
29749 | ||
29750 | _ACEOF | |
29751 | ||
29752 | ||
29753 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29754 | echo "obj-m := conftest.o" >build/Makefile | |
29755 | modpost_flag='' | |
29756 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29757 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29758 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29759 | (eval $ac_try) 2>&5 | |
29760 | ac_status=$? | |
29761 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29762 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29763 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29764 | (eval $ac_try) 2>&5 | |
29765 | ac_status=$? | |
29766 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29767 | test $ac_status = 0; }; }; then : | |
29768 | ||
29769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29770 | $as_echo "yes" >&6; } | |
29771 | ||
d177712e | 29772 | $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h |
0bd31011 TG |
29773 | |
29774 | ||
29775 | else | |
29776 | $as_echo "$as_me: failed program was:" >&5 | |
29777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29778 | ||
29779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29780 | $as_echo "no" >&6; } | |
29781 | ||
29782 | ||
29783 | ||
29784 | fi | |
29785 | rm -Rf build | |
29786 | ||
29787 | ||
29788 | ||
29789 | ||
d177712e CIK |
29790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5 |
29791 | $as_echo_n "checking whether iops->permission() exists... " >&6; } | |
0bd31011 TG |
29792 | |
29793 | ||
29794 | cat confdefs.h - <<_ACEOF >conftest.c | |
29795 | ||
29796 | ||
29797 | #include <linux/fs.h> | |
d177712e CIK |
29798 | |
29799 | int permission_fn(struct inode *inode, int mask) { return 0; } | |
29800 | ||
29801 | static const struct inode_operations | |
29802 | iops __attribute__ ((unused)) = { | |
29803 | .permission = permission_fn, | |
29804 | }; | |
0bd31011 TG |
29805 | |
29806 | int | |
29807 | main (void) | |
29808 | { | |
29809 | ||
0bd31011 TG |
29810 | |
29811 | ; | |
29812 | return 0; | |
29813 | } | |
29814 | ||
29815 | _ACEOF | |
29816 | ||
29817 | ||
29818 | ||
29819 | cat - <<_ACEOF >conftest.h | |
29820 | ||
29821 | _ACEOF | |
29822 | ||
29823 | ||
29824 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29825 | echo "obj-m := conftest.o" >build/Makefile | |
29826 | modpost_flag='' | |
29827 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29828 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29829 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29830 | (eval $ac_try) 2>&5 | |
29831 | ac_status=$? | |
29832 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29833 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29834 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29835 | (eval $ac_try) 2>&5 | |
29836 | ac_status=$? | |
29837 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29838 | test $ac_status = 0; }; }; then : | |
29839 | ||
29840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29841 | $as_echo "yes" >&6; } | |
29842 | ||
d177712e | 29843 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h |
0bd31011 TG |
29844 | |
29845 | ||
29846 | else | |
29847 | $as_echo "$as_me: failed program was:" >&5 | |
29848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29849 | ||
29850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29851 | $as_echo "no" >&6; } | |
29852 | ||
29853 | ||
29854 | ||
29855 | fi | |
29856 | rm -Rf build | |
29857 | ||
29858 | ||
29859 | ||
29860 | ||
d177712e CIK |
29861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5 |
29862 | $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; } | |
0bd31011 TG |
29863 | |
29864 | ||
29865 | cat confdefs.h - <<_ACEOF >conftest.c | |
29866 | ||
29867 | ||
29868 | #include <linux/fs.h> | |
29869 | ||
d177712e CIK |
29870 | int permission_fn(struct inode *inode, int mask, |
29871 | struct nameidata *nd) { return 0; } | |
0bd31011 TG |
29872 | |
29873 | static const struct inode_operations | |
29874 | iops __attribute__ ((unused)) = { | |
29875 | .permission = permission_fn, | |
29876 | }; | |
29877 | ||
29878 | int | |
29879 | main (void) | |
29880 | { | |
29881 | ||
29882 | ||
29883 | ; | |
29884 | return 0; | |
29885 | } | |
29886 | ||
29887 | _ACEOF | |
29888 | ||
29889 | ||
29890 | ||
29891 | cat - <<_ACEOF >conftest.h | |
29892 | ||
29893 | _ACEOF | |
29894 | ||
29895 | ||
29896 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29897 | echo "obj-m := conftest.o" >build/Makefile | |
29898 | modpost_flag='' | |
29899 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29900 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29901 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29902 | (eval $ac_try) 2>&5 | |
29903 | ac_status=$? | |
29904 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29905 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29906 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29907 | (eval $ac_try) 2>&5 | |
29908 | ac_status=$? | |
29909 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29910 | test $ac_status = 0; }; }; then : | |
29911 | ||
29912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29913 | $as_echo "yes" >&6; } | |
29914 | ||
29915 | $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h | |
29916 | ||
29917 | ||
d177712e CIK |
29918 | $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h |
29919 | ||
29920 | ||
0bd31011 TG |
29921 | else |
29922 | $as_echo "$as_me: failed program was:" >&5 | |
29923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29924 | ||
29925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29926 | $as_echo "no" >&6; } | |
29927 | ||
29928 | ||
29929 | ||
29930 | fi | |
29931 | rm -Rf build | |
29932 | ||
29933 | ||
29934 | ||
29935 | ||
d177712e CIK |
29936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5 |
29937 | $as_echo_n "checking whether iops->check_acl() exists... " >&6; } | |
0bd31011 TG |
29938 | |
29939 | ||
29940 | cat confdefs.h - <<_ACEOF >conftest.c | |
29941 | ||
29942 | ||
29943 | #include <linux/fs.h> | |
29944 | ||
d177712e | 29945 | int check_acl_fn(struct inode *inode, int mask) { return 0; } |
0bd31011 TG |
29946 | |
29947 | static const struct inode_operations | |
29948 | iops __attribute__ ((unused)) = { | |
d177712e | 29949 | .check_acl = check_acl_fn, |
0bd31011 TG |
29950 | }; |
29951 | ||
29952 | int | |
29953 | main (void) | |
29954 | { | |
29955 | ||
29956 | ||
29957 | ; | |
29958 | return 0; | |
29959 | } | |
29960 | ||
29961 | _ACEOF | |
29962 | ||
29963 | ||
29964 | ||
29965 | cat - <<_ACEOF >conftest.h | |
29966 | ||
29967 | _ACEOF | |
29968 | ||
29969 | ||
29970 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
29971 | echo "obj-m := conftest.o" >build/Makefile | |
29972 | modpost_flag='' | |
29973 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
29974 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
29975 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29976 | (eval $ac_try) 2>&5 | |
29977 | ac_status=$? | |
29978 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29979 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
29980 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
29981 | (eval $ac_try) 2>&5 | |
29982 | ac_status=$? | |
29983 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29984 | test $ac_status = 0; }; }; then : | |
29985 | ||
29986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29987 | $as_echo "yes" >&6; } | |
29988 | ||
d177712e | 29989 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h |
0bd31011 TG |
29990 | |
29991 | ||
29992 | else | |
29993 | $as_echo "$as_me: failed program was:" >&5 | |
29994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29995 | ||
29996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29997 | $as_echo "no" >&6; } | |
29998 | ||
29999 | ||
30000 | ||
30001 | fi | |
30002 | rm -Rf build | |
30003 | ||
30004 | ||
30005 | ||
30006 | ||
d177712e CIK |
30007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5 |
30008 | $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; } | |
0bd31011 TG |
30009 | |
30010 | ||
30011 | cat confdefs.h - <<_ACEOF >conftest.c | |
30012 | ||
30013 | ||
30014 | #include <linux/fs.h> | |
30015 | ||
d177712e CIK |
30016 | int check_acl_fn(struct inode *inode, int mask, |
30017 | unsigned int flags) { return 0; } | |
0bd31011 TG |
30018 | |
30019 | static const struct inode_operations | |
30020 | iops __attribute__ ((unused)) = { | |
30021 | .check_acl = check_acl_fn, | |
30022 | }; | |
30023 | ||
30024 | int | |
30025 | main (void) | |
30026 | { | |
30027 | ||
30028 | ||
30029 | ; | |
30030 | return 0; | |
30031 | } | |
30032 | ||
30033 | _ACEOF | |
30034 | ||
30035 | ||
30036 | ||
30037 | cat - <<_ACEOF >conftest.h | |
30038 | ||
30039 | _ACEOF | |
30040 | ||
30041 | ||
30042 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30043 | echo "obj-m := conftest.o" >build/Makefile | |
30044 | modpost_flag='' | |
30045 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30046 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30047 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30048 | (eval $ac_try) 2>&5 | |
30049 | ac_status=$? | |
30050 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30051 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30052 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30053 | (eval $ac_try) 2>&5 | |
30054 | ac_status=$? | |
30055 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30056 | test $ac_status = 0; }; }; then : | |
30057 | ||
30058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30059 | $as_echo "yes" >&6; } | |
30060 | ||
30061 | $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h | |
30062 | ||
30063 | ||
d177712e CIK |
30064 | $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h |
30065 | ||
30066 | ||
0bd31011 TG |
30067 | else |
30068 | $as_echo "$as_me: failed program was:" >&5 | |
30069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30070 | ||
30071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30072 | $as_echo "no" >&6; } | |
30073 | ||
30074 | ||
30075 | ||
30076 | fi | |
30077 | rm -Rf build | |
30078 | ||
30079 | ||
30080 | ||
30081 | ||
d177712e CIK |
30082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5 |
30083 | $as_echo_n "checking whether iops->get_acl() exists... " >&6; } | |
0bd31011 TG |
30084 | |
30085 | ||
30086 | cat confdefs.h - <<_ACEOF >conftest.c | |
30087 | ||
30088 | ||
30089 | #include <linux/fs.h> | |
30090 | ||
d177712e CIK |
30091 | struct posix_acl *get_acl_fn(struct inode *inode, int type) |
30092 | { return NULL; } | |
0bd31011 TG |
30093 | |
30094 | static const struct inode_operations | |
30095 | iops __attribute__ ((unused)) = { | |
d177712e | 30096 | .get_acl = get_acl_fn, |
0bd31011 TG |
30097 | }; |
30098 | ||
30099 | int | |
30100 | main (void) | |
30101 | { | |
30102 | ||
30103 | ||
30104 | ; | |
30105 | return 0; | |
30106 | } | |
30107 | ||
30108 | _ACEOF | |
30109 | ||
30110 | ||
30111 | ||
30112 | cat - <<_ACEOF >conftest.h | |
30113 | ||
30114 | _ACEOF | |
30115 | ||
30116 | ||
30117 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30118 | echo "obj-m := conftest.o" >build/Makefile | |
30119 | modpost_flag='' | |
30120 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30121 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30122 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30123 | (eval $ac_try) 2>&5 | |
30124 | ac_status=$? | |
30125 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30126 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30127 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30128 | (eval $ac_try) 2>&5 | |
30129 | ac_status=$? | |
30130 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30131 | test $ac_status = 0; }; }; then : | |
30132 | ||
30133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30134 | $as_echo "yes" >&6; } | |
30135 | ||
d177712e | 30136 | $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h |
0bd31011 TG |
30137 | |
30138 | ||
30139 | else | |
30140 | $as_echo "$as_me: failed program was:" >&5 | |
30141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30142 | ||
30143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30144 | $as_echo "no" >&6; } | |
30145 | ||
30146 | ||
30147 | ||
30148 | fi | |
30149 | rm -Rf build | |
30150 | ||
30151 | ||
30152 | ||
30153 | ||
d177712e CIK |
30154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5 |
30155 | $as_echo_n "checking whether iops->set_acl() exists... " >&6; } | |
0bd31011 TG |
30156 | |
30157 | ||
30158 | cat confdefs.h - <<_ACEOF >conftest.c | |
30159 | ||
30160 | ||
30161 | #include <linux/fs.h> | |
30162 | ||
d177712e CIK |
30163 | int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type) |
30164 | { return 0; } | |
0bd31011 TG |
30165 | |
30166 | static const struct inode_operations | |
30167 | iops __attribute__ ((unused)) = { | |
d177712e | 30168 | .set_acl = set_acl_fn, |
0bd31011 TG |
30169 | }; |
30170 | ||
30171 | int | |
30172 | main (void) | |
30173 | { | |
30174 | ||
30175 | ||
30176 | ; | |
30177 | return 0; | |
30178 | } | |
30179 | ||
30180 | _ACEOF | |
30181 | ||
30182 | ||
30183 | ||
30184 | cat - <<_ACEOF >conftest.h | |
30185 | ||
30186 | _ACEOF | |
30187 | ||
30188 | ||
30189 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30190 | echo "obj-m := conftest.o" >build/Makefile | |
30191 | modpost_flag='' | |
30192 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30193 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30194 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30195 | (eval $ac_try) 2>&5 | |
30196 | ac_status=$? | |
30197 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30198 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30199 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30200 | (eval $ac_try) 2>&5 | |
30201 | ac_status=$? | |
30202 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30203 | test $ac_status = 0; }; }; then : | |
30204 | ||
30205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30206 | $as_echo "yes" >&6; } | |
30207 | ||
d177712e | 30208 | $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h |
0bd31011 TG |
30209 | |
30210 | ||
30211 | else | |
30212 | $as_echo "$as_me: failed program was:" >&5 | |
30213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30214 | ||
30215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30216 | $as_echo "no" >&6; } | |
30217 | ||
30218 | ||
30219 | ||
30220 | fi | |
30221 | rm -Rf build | |
30222 | ||
30223 | ||
30224 | ||
30225 | ||
30226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5 | |
30227 | $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; } | |
30228 | ||
30229 | ||
30230 | cat confdefs.h - <<_ACEOF >conftest.c | |
30231 | ||
30232 | ||
30233 | #include <linux/fs.h> | |
30234 | ||
30235 | int | |
30236 | main (void) | |
30237 | { | |
30238 | ||
30239 | void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL); | |
30240 | ||
30241 | ; | |
30242 | return 0; | |
30243 | } | |
30244 | ||
30245 | _ACEOF | |
30246 | ||
30247 | ||
30248 | ||
30249 | cat - <<_ACEOF >conftest.h | |
30250 | ||
30251 | _ACEOF | |
30252 | ||
30253 | ||
30254 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30255 | echo "obj-m := conftest.o" >build/Makefile | |
30256 | modpost_flag='' | |
30257 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30258 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30259 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30260 | (eval $ac_try) 2>&5 | |
30261 | ac_status=$? | |
30262 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30263 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30264 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30265 | (eval $ac_try) 2>&5 | |
30266 | ac_status=$? | |
30267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30268 | test $ac_status = 0; }; }; then : | |
30269 | ||
30270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30271 | $as_echo "yes" >&6; } | |
30272 | ||
30273 | $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h | |
30274 | ||
30275 | ||
30276 | else | |
30277 | $as_echo "$as_me: failed program was:" >&5 | |
30278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30279 | ||
30280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30281 | $as_echo "no" >&6; } | |
30282 | ||
30283 | ||
30284 | ||
30285 | fi | |
30286 | rm -Rf build | |
30287 | ||
30288 | ||
30289 | ||
30290 | ||
30291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5 | |
30292 | $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; } | |
30293 | ||
30294 | ||
30295 | ||
30296 | cat confdefs.h - <<_ACEOF >conftest.c | |
30297 | ||
30298 | ||
30299 | #include <linux/fs.h> | |
30300 | ||
30301 | int show_options (struct seq_file * x, struct dentry * y) { return 0; }; | |
30302 | static struct super_operations sops __attribute__ ((unused)) = { | |
30303 | .show_options = show_options, | |
30304 | }; | |
30305 | ||
30306 | int | |
30307 | main (void) | |
30308 | { | |
30309 | ||
30310 | ||
30311 | ; | |
30312 | return 0; | |
30313 | } | |
30314 | ||
30315 | _ACEOF | |
30316 | ||
30317 | ||
30318 | ||
30319 | cat - <<_ACEOF >conftest.h | |
30320 | ||
30321 | _ACEOF | |
30322 | ||
30323 | ||
30324 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30325 | echo "obj-m := conftest.o" >build/Makefile | |
30326 | modpost_flag='' | |
30327 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30328 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30329 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30330 | (eval $ac_try) 2>&5 | |
30331 | ac_status=$? | |
30332 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30333 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30334 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30335 | (eval $ac_try) 2>&5 | |
30336 | ac_status=$? | |
30337 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30338 | test $ac_status = 0; }; }; then : | |
30339 | ||
30340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30341 | $as_echo "yes" >&6; } | |
30342 | ||
30343 | $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h | |
30344 | ||
30345 | ||
30346 | else | |
30347 | $as_echo "$as_me: failed program was:" >&5 | |
30348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30349 | ||
30350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30351 | $as_echo "no" >&6; } | |
30352 | ||
30353 | ||
30354 | ||
30355 | fi | |
30356 | rm -Rf build | |
30357 | ||
30358 | ||
30359 | ||
30360 | ||
30361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5 | |
30362 | $as_echo_n "checking whether file_inode() is available... " >&6; } | |
30363 | ||
30364 | ||
30365 | cat confdefs.h - <<_ACEOF >conftest.c | |
30366 | ||
30367 | ||
30368 | #include <linux/fs.h> | |
30369 | ||
30370 | int | |
30371 | main (void) | |
30372 | { | |
30373 | ||
30374 | struct file *f = NULL; | |
30375 | file_inode(f); | |
30376 | ||
30377 | ; | |
30378 | return 0; | |
30379 | } | |
30380 | ||
30381 | _ACEOF | |
30382 | ||
30383 | ||
30384 | ||
30385 | cat - <<_ACEOF >conftest.h | |
30386 | ||
30387 | _ACEOF | |
30388 | ||
30389 | ||
30390 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30391 | echo "obj-m := conftest.o" >build/Makefile | |
30392 | modpost_flag='' | |
30393 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30394 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30395 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30396 | (eval $ac_try) 2>&5 | |
30397 | ac_status=$? | |
30398 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30399 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30400 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30401 | (eval $ac_try) 2>&5 | |
30402 | ac_status=$? | |
30403 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30404 | test $ac_status = 0; }; }; then : | |
30405 | ||
30406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30407 | $as_echo "yes" >&6; } | |
30408 | ||
30409 | $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h | |
30410 | ||
30411 | ||
30412 | else | |
30413 | $as_echo "$as_me: failed program was:" >&5 | |
30414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30415 | ||
30416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30417 | $as_echo "no" >&6; } | |
30418 | ||
30419 | ||
30420 | ||
30421 | fi | |
30422 | rm -Rf build | |
30423 | ||
30424 | ||
30425 | ||
30426 | ||
30427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5 | |
30428 | $as_echo_n "checking whether fops->fsync() wants... " >&6; } | |
30429 | ||
30430 | ||
30431 | ||
30432 | cat confdefs.h - <<_ACEOF >conftest.c | |
30433 | ||
30434 | ||
30435 | #include <linux/fs.h> | |
30436 | ||
30437 | int test_fsync(struct file *f, struct dentry *dentry, int x) | |
30438 | { return 0; } | |
30439 | ||
30440 | static const struct file_operations | |
30441 | fops __attribute__ ((unused)) = { | |
30442 | .fsync = test_fsync, | |
30443 | }; | |
30444 | ||
30445 | int | |
30446 | main (void) | |
30447 | { | |
30448 | ||
30449 | ||
30450 | ; | |
30451 | return 0; | |
30452 | } | |
30453 | ||
30454 | _ACEOF | |
30455 | ||
30456 | ||
30457 | ||
30458 | cat - <<_ACEOF >conftest.h | |
30459 | ||
30460 | _ACEOF | |
30461 | ||
30462 | ||
30463 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30464 | echo "obj-m := conftest.o" >build/Makefile | |
30465 | modpost_flag='' | |
30466 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30467 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30468 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30469 | (eval $ac_try) 2>&5 | |
30470 | ac_status=$? | |
30471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30472 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30473 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30474 | (eval $ac_try) 2>&5 | |
30475 | ac_status=$? | |
30476 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30477 | test $ac_status = 0; }; }; then : | |
30478 | ||
30479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5 | |
30480 | $as_echo "dentry" >&6; } | |
30481 | ||
30482 | $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h | |
30483 | ||
30484 | ||
30485 | else | |
30486 | $as_echo "$as_me: failed program was:" >&5 | |
30487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30488 | ||
30489 | ||
30490 | ||
30491 | ||
30492 | fi | |
30493 | rm -Rf build | |
30494 | ||
30495 | ||
30496 | ||
30497 | ||
30498 | ||
30499 | ||
30500 | cat confdefs.h - <<_ACEOF >conftest.c | |
30501 | ||
30502 | ||
30503 | #include <linux/fs.h> | |
30504 | ||
30505 | int test_fsync(struct file *f, int x) { return 0; } | |
30506 | ||
30507 | static const struct file_operations | |
30508 | fops __attribute__ ((unused)) = { | |
30509 | .fsync = test_fsync, | |
30510 | }; | |
30511 | ||
30512 | int | |
30513 | main (void) | |
30514 | { | |
30515 | ||
30516 | ||
30517 | ; | |
30518 | return 0; | |
30519 | } | |
30520 | ||
30521 | _ACEOF | |
30522 | ||
30523 | ||
30524 | ||
30525 | cat - <<_ACEOF >conftest.h | |
30526 | ||
30527 | _ACEOF | |
30528 | ||
30529 | ||
30530 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30531 | echo "obj-m := conftest.o" >build/Makefile | |
30532 | modpost_flag='' | |
30533 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30534 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30535 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30536 | (eval $ac_try) 2>&5 | |
30537 | ac_status=$? | |
30538 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30539 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30540 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30541 | (eval $ac_try) 2>&5 | |
30542 | ac_status=$? | |
30543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30544 | test $ac_status = 0; }; }; then : | |
30545 | ||
30546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5 | |
30547 | $as_echo "no dentry" >&6; } | |
30548 | ||
30549 | $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h | |
30550 | ||
30551 | ||
30552 | else | |
30553 | $as_echo "$as_me: failed program was:" >&5 | |
30554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30555 | ||
30556 | ||
30557 | ||
30558 | ||
30559 | fi | |
30560 | rm -Rf build | |
30561 | ||
30562 | ||
30563 | ||
30564 | ||
30565 | ||
30566 | ||
30567 | cat confdefs.h - <<_ACEOF >conftest.c | |
30568 | ||
30569 | ||
30570 | #include <linux/fs.h> | |
30571 | ||
30572 | int test_fsync(struct file *f, loff_t a, loff_t b, int c) | |
30573 | { return 0; } | |
30574 | ||
30575 | static const struct file_operations | |
30576 | fops __attribute__ ((unused)) = { | |
30577 | .fsync = test_fsync, | |
30578 | }; | |
30579 | ||
30580 | int | |
30581 | main (void) | |
30582 | { | |
30583 | ||
30584 | ||
30585 | ; | |
30586 | return 0; | |
30587 | } | |
30588 | ||
30589 | _ACEOF | |
30590 | ||
30591 | ||
30592 | ||
30593 | cat - <<_ACEOF >conftest.h | |
30594 | ||
30595 | _ACEOF | |
30596 | ||
30597 | ||
30598 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30599 | echo "obj-m := conftest.o" >build/Makefile | |
30600 | modpost_flag='' | |
30601 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30602 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30603 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30604 | (eval $ac_try) 2>&5 | |
30605 | ac_status=$? | |
30606 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30607 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30608 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30609 | (eval $ac_try) 2>&5 | |
30610 | ac_status=$? | |
30611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30612 | test $ac_status = 0; }; }; then : | |
30613 | ||
30614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5 | |
30615 | $as_echo "range" >&6; } | |
30616 | ||
30617 | $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h | |
30618 | ||
30619 | ||
30620 | else | |
30621 | $as_echo "$as_me: failed program was:" >&5 | |
30622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30623 | ||
30624 | ||
30625 | ||
30626 | ||
30627 | fi | |
30628 | rm -Rf build | |
30629 | ||
30630 | ||
30631 | ||
30632 | ||
30633 | ||
30634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5 | |
30635 | $as_echo_n "checking whether sops->evict_inode() exists... " >&6; } | |
30636 | ||
30637 | ||
30638 | cat confdefs.h - <<_ACEOF >conftest.c | |
30639 | ||
30640 | ||
30641 | #include <linux/fs.h> | |
30642 | void evict_inode (struct inode * t) { return; } | |
30643 | static struct super_operations sops __attribute__ ((unused)) = { | |
30644 | .evict_inode = evict_inode, | |
30645 | }; | |
30646 | ||
30647 | int | |
30648 | main (void) | |
30649 | { | |
30650 | ||
30651 | ||
30652 | ; | |
30653 | return 0; | |
30654 | } | |
30655 | ||
30656 | _ACEOF | |
30657 | ||
30658 | ||
30659 | ||
30660 | cat - <<_ACEOF >conftest.h | |
30661 | ||
30662 | _ACEOF | |
30663 | ||
30664 | ||
30665 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30666 | echo "obj-m := conftest.o" >build/Makefile | |
30667 | modpost_flag='' | |
30668 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30669 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30670 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30671 | (eval $ac_try) 2>&5 | |
30672 | ac_status=$? | |
30673 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30674 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30675 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30676 | (eval $ac_try) 2>&5 | |
30677 | ac_status=$? | |
30678 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30679 | test $ac_status = 0; }; }; then : | |
30680 | ||
30681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30682 | $as_echo "yes" >&6; } | |
30683 | ||
30684 | $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h | |
30685 | ||
30686 | ||
30687 | else | |
30688 | $as_echo "$as_me: failed program was:" >&5 | |
30689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30690 | ||
30691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30692 | $as_echo "no" >&6; } | |
30693 | ||
30694 | ||
30695 | ||
30696 | fi | |
30697 | rm -Rf build | |
30698 | ||
30699 | ||
30700 | ||
30701 | ||
30702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5 | |
30703 | $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; } | |
30704 | ||
30705 | ||
30706 | cat confdefs.h - <<_ACEOF >conftest.c | |
30707 | ||
30708 | ||
30709 | #include <linux/fs.h> | |
30710 | ||
30711 | void dirty_inode(struct inode *a, int b) { return; } | |
30712 | ||
30713 | static const struct super_operations | |
30714 | sops __attribute__ ((unused)) = { | |
30715 | .dirty_inode = dirty_inode, | |
30716 | }; | |
30717 | ||
30718 | int | |
30719 | main (void) | |
30720 | { | |
30721 | ||
30722 | ||
30723 | ; | |
30724 | return 0; | |
30725 | } | |
30726 | ||
30727 | _ACEOF | |
30728 | ||
30729 | ||
30730 | ||
30731 | cat - <<_ACEOF >conftest.h | |
30732 | ||
30733 | _ACEOF | |
30734 | ||
30735 | ||
30736 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30737 | echo "obj-m := conftest.o" >build/Makefile | |
30738 | modpost_flag='' | |
30739 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30740 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30741 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30742 | (eval $ac_try) 2>&5 | |
30743 | ac_status=$? | |
30744 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30745 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30746 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30747 | (eval $ac_try) 2>&5 | |
30748 | ac_status=$? | |
30749 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30750 | test $ac_status = 0; }; }; then : | |
30751 | ||
30752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30753 | $as_echo "yes" >&6; } | |
30754 | ||
30755 | $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h | |
30756 | ||
30757 | ||
30758 | else | |
30759 | $as_echo "$as_me: failed program was:" >&5 | |
30760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30761 | ||
30762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30763 | $as_echo "no" >&6; } | |
30764 | ||
30765 | ||
30766 | ||
30767 | fi | |
30768 | rm -Rf build | |
30769 | ||
30770 | ||
30771 | ||
30772 | ||
30773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5 | |
30774 | $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; } | |
30775 | ||
30776 | ||
30777 | cat confdefs.h - <<_ACEOF >conftest.c | |
30778 | ||
30779 | ||
30780 | #include <linux/fs.h> | |
30781 | ||
30782 | int nr_cached_objects(struct super_block *sb) { return 0; } | |
30783 | ||
30784 | static const struct super_operations | |
30785 | sops __attribute__ ((unused)) = { | |
30786 | .nr_cached_objects = nr_cached_objects, | |
30787 | }; | |
30788 | ||
30789 | int | |
30790 | main (void) | |
30791 | { | |
30792 | ||
30793 | ||
30794 | ; | |
30795 | return 0; | |
30796 | } | |
30797 | ||
30798 | _ACEOF | |
30799 | ||
30800 | ||
30801 | ||
30802 | cat - <<_ACEOF >conftest.h | |
30803 | ||
30804 | _ACEOF | |
30805 | ||
30806 | ||
30807 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30808 | echo "obj-m := conftest.o" >build/Makefile | |
30809 | modpost_flag='' | |
30810 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30811 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30812 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30813 | (eval $ac_try) 2>&5 | |
30814 | ac_status=$? | |
30815 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30816 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30817 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30818 | (eval $ac_try) 2>&5 | |
30819 | ac_status=$? | |
30820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30821 | test $ac_status = 0; }; }; then : | |
30822 | ||
30823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30824 | $as_echo "yes" >&6; } | |
30825 | ||
30826 | $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h | |
30827 | ||
30828 | ||
30829 | else | |
30830 | $as_echo "$as_me: failed program was:" >&5 | |
30831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30832 | ||
30833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30834 | $as_echo "no" >&6; } | |
30835 | ||
30836 | ||
30837 | ||
30838 | fi | |
30839 | rm -Rf build | |
30840 | ||
30841 | ||
30842 | ||
30843 | ||
30844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5 | |
30845 | $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; } | |
30846 | ||
30847 | ||
30848 | cat confdefs.h - <<_ACEOF >conftest.c | |
30849 | ||
30850 | ||
30851 | #include <linux/fs.h> | |
30852 | ||
30853 | void free_cached_objects(struct super_block *sb, int x) | |
30854 | { return; } | |
30855 | ||
30856 | static const struct super_operations | |
30857 | sops __attribute__ ((unused)) = { | |
30858 | .free_cached_objects = free_cached_objects, | |
30859 | }; | |
30860 | ||
30861 | int | |
30862 | main (void) | |
30863 | { | |
30864 | ||
30865 | ||
30866 | ; | |
30867 | return 0; | |
30868 | } | |
30869 | ||
30870 | _ACEOF | |
30871 | ||
30872 | ||
30873 | ||
30874 | cat - <<_ACEOF >conftest.h | |
30875 | ||
30876 | _ACEOF | |
30877 | ||
30878 | ||
30879 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30880 | echo "obj-m := conftest.o" >build/Makefile | |
30881 | modpost_flag='' | |
30882 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30883 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30884 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30885 | (eval $ac_try) 2>&5 | |
30886 | ac_status=$? | |
30887 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30888 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30889 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30890 | (eval $ac_try) 2>&5 | |
30891 | ac_status=$? | |
30892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30893 | test $ac_status = 0; }; }; then : | |
30894 | ||
30895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30896 | $as_echo "yes" >&6; } | |
30897 | ||
30898 | $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h | |
30899 | ||
30900 | ||
30901 | else | |
30902 | $as_echo "$as_me: failed program was:" >&5 | |
30903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30904 | ||
30905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30906 | $as_echo "no" >&6; } | |
30907 | ||
30908 | ||
30909 | ||
30910 | fi | |
30911 | rm -Rf build | |
30912 | ||
30913 | ||
30914 | ||
30915 | ||
30916 | ||
30917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
30918 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
30919 | ||
30920 | ||
30921 | cat confdefs.h - <<_ACEOF >conftest.c | |
30922 | ||
30923 | ||
30924 | #include <linux/fs.h> | |
30925 | ||
30926 | long test_fallocate(struct file *file, int mode, | |
30927 | loff_t offset, loff_t len) { return 0; } | |
30928 | ||
30929 | static const struct file_operations | |
30930 | fops __attribute__ ((unused)) = { | |
30931 | .fallocate = test_fallocate, | |
30932 | }; | |
30933 | ||
30934 | int | |
30935 | main (void) | |
30936 | { | |
30937 | ||
30938 | ||
30939 | ; | |
30940 | return 0; | |
30941 | } | |
30942 | ||
30943 | _ACEOF | |
30944 | ||
30945 | ||
30946 | ||
30947 | cat - <<_ACEOF >conftest.h | |
30948 | ||
30949 | _ACEOF | |
30950 | ||
30951 | ||
30952 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
30953 | echo "obj-m := conftest.o" >build/Makefile | |
30954 | modpost_flag='' | |
30955 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
30956 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
30957 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30958 | (eval $ac_try) 2>&5 | |
30959 | ac_status=$? | |
30960 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30961 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
30962 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
30963 | (eval $ac_try) 2>&5 | |
30964 | ac_status=$? | |
30965 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30966 | test $ac_status = 0; }; }; then : | |
30967 | ||
30968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30969 | $as_echo "yes" >&6; } | |
30970 | ||
30971 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
30972 | ||
30973 | ||
30974 | else | |
30975 | $as_echo "$as_me: failed program was:" >&5 | |
30976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30977 | ||
30978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30979 | $as_echo "no" >&6; } | |
30980 | ||
30981 | ||
30982 | ||
30983 | fi | |
30984 | rm -Rf build | |
30985 | ||
30986 | ||
30987 | ||
30988 | ||
30989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5 | |
30990 | $as_echo_n "checking whether iops->fallocate() exists... " >&6; } | |
30991 | ||
30992 | ||
30993 | cat confdefs.h - <<_ACEOF >conftest.c | |
30994 | ||
30995 | ||
30996 | #include <linux/fs.h> | |
30997 | ||
30998 | long test_fallocate(struct inode *inode, int mode, | |
30999 | loff_t offset, loff_t len) { return 0; } | |
31000 | ||
31001 | static const struct inode_operations | |
31002 | fops __attribute__ ((unused)) = { | |
31003 | .fallocate = test_fallocate, | |
31004 | }; | |
31005 | ||
31006 | int | |
31007 | main (void) | |
31008 | { | |
31009 | ||
31010 | ||
31011 | ; | |
31012 | return 0; | |
31013 | } | |
31014 | ||
31015 | _ACEOF | |
31016 | ||
31017 | ||
31018 | ||
31019 | cat - <<_ACEOF >conftest.h | |
31020 | ||
31021 | _ACEOF | |
31022 | ||
31023 | ||
31024 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31025 | echo "obj-m := conftest.o" >build/Makefile | |
31026 | modpost_flag='' | |
31027 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31028 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31029 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31030 | (eval $ac_try) 2>&5 | |
31031 | ac_status=$? | |
31032 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31033 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31034 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31035 | (eval $ac_try) 2>&5 | |
31036 | ac_status=$? | |
31037 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31038 | test $ac_status = 0; }; }; then : | |
31039 | ||
31040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31041 | $as_echo "yes" >&6; } | |
31042 | ||
31043 | $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h | |
31044 | ||
31045 | ||
31046 | else | |
31047 | $as_echo "$as_me: failed program was:" >&5 | |
31048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31049 | ||
31050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31051 | $as_echo "no" >&6; } | |
31052 | ||
31053 | ||
31054 | ||
31055 | fi | |
31056 | rm -Rf build | |
31057 | ||
31058 | ||
31059 | ||
31060 | ||
31061 | ||
31062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5 | |
31063 | $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; } | |
31064 | ||
31065 | ||
31066 | cat confdefs.h - <<_ACEOF >conftest.c | |
31067 | ||
31068 | ||
31069 | #include <linux/fs.h> | |
31070 | ||
31071 | static const struct file_operations | |
31072 | fops __attribute__ ((unused)) = { | |
31073 | .aio_fsync = NULL, | |
31074 | }; | |
31075 | ||
31076 | int | |
31077 | main (void) | |
31078 | { | |
31079 | ||
31080 | ||
31081 | ; | |
31082 | return 0; | |
31083 | } | |
31084 | ||
31085 | _ACEOF | |
31086 | ||
31087 | ||
31088 | ||
31089 | cat - <<_ACEOF >conftest.h | |
31090 | ||
31091 | _ACEOF | |
31092 | ||
31093 | ||
31094 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31095 | echo "obj-m := conftest.o" >build/Makefile | |
31096 | modpost_flag='' | |
31097 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31098 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31099 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31100 | (eval $ac_try) 2>&5 | |
31101 | ac_status=$? | |
31102 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31103 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31104 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31105 | (eval $ac_try) 2>&5 | |
31106 | ac_status=$? | |
31107 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31108 | test $ac_status = 0; }; }; then : | |
31109 | ||
31110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31111 | $as_echo "yes" >&6; } | |
31112 | ||
31113 | $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h | |
31114 | ||
31115 | ||
31116 | else | |
31117 | $as_echo "$as_me: failed program was:" >&5 | |
31118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31119 | ||
31120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31121 | $as_echo "no" >&6; } | |
31122 | ||
31123 | ||
31124 | ||
31125 | fi | |
31126 | rm -Rf build | |
31127 | ||
31128 | ||
31129 | ||
31130 | ||
31131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5 | |
31132 | $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; } | |
31133 | ||
31134 | ||
31135 | cat confdefs.h - <<_ACEOF >conftest.c | |
31136 | ||
31137 | ||
31138 | #include <linux/fs.h> | |
31139 | ||
31140 | int mkdir(struct inode *inode, struct dentry *dentry, | |
31141 | umode_t umode) { return 0; } | |
31142 | ||
31143 | static const struct inode_operations | |
31144 | iops __attribute__ ((unused)) = { | |
31145 | .mkdir = mkdir, | |
31146 | }; | |
31147 | ||
31148 | int | |
31149 | main (void) | |
31150 | { | |
31151 | ||
31152 | ||
31153 | ; | |
31154 | return 0; | |
31155 | } | |
31156 | ||
31157 | _ACEOF | |
31158 | ||
31159 | ||
31160 | ||
31161 | cat - <<_ACEOF >conftest.h | |
31162 | ||
31163 | _ACEOF | |
31164 | ||
31165 | ||
31166 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31167 | echo "obj-m := conftest.o" >build/Makefile | |
31168 | modpost_flag='' | |
31169 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31170 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31171 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31172 | (eval $ac_try) 2>&5 | |
31173 | ac_status=$? | |
31174 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31175 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31176 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31177 | (eval $ac_try) 2>&5 | |
31178 | ac_status=$? | |
31179 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31180 | test $ac_status = 0; }; }; then : | |
31181 | ||
31182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31183 | $as_echo "yes" >&6; } | |
31184 | ||
31185 | $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h | |
31186 | ||
31187 | ||
31188 | else | |
31189 | $as_echo "$as_me: failed program was:" >&5 | |
31190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31191 | ||
31192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31193 | $as_echo "no" >&6; } | |
31194 | ||
31195 | ||
31196 | ||
31197 | fi | |
31198 | rm -Rf build | |
31199 | ||
31200 | ||
31201 | ||
31202 | ||
31203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5 | |
31204 | $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; } | |
31205 | ||
31206 | ||
31207 | cat confdefs.h - <<_ACEOF >conftest.c | |
31208 | ||
31209 | ||
31210 | #include <linux/fs.h> | |
31211 | ||
31212 | struct dentry *inode_lookup(struct inode *inode, | |
31213 | struct dentry *dentry, struct nameidata *nidata) | |
31214 | { return NULL; } | |
31215 | ||
31216 | static const struct inode_operations iops | |
31217 | __attribute__ ((unused)) = { | |
31218 | .lookup = inode_lookup, | |
31219 | }; | |
31220 | ||
31221 | int | |
31222 | main (void) | |
31223 | { | |
31224 | ||
31225 | ||
31226 | ; | |
31227 | return 0; | |
31228 | } | |
31229 | ||
31230 | _ACEOF | |
31231 | ||
31232 | ||
31233 | ||
31234 | cat - <<_ACEOF >conftest.h | |
31235 | ||
31236 | _ACEOF | |
31237 | ||
31238 | ||
31239 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31240 | echo "obj-m := conftest.o" >build/Makefile | |
31241 | modpost_flag='' | |
31242 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31243 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31244 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31245 | (eval $ac_try) 2>&5 | |
31246 | ac_status=$? | |
31247 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31248 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31249 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31250 | (eval $ac_try) 2>&5 | |
31251 | ac_status=$? | |
31252 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31253 | test $ac_status = 0; }; }; then : | |
31254 | ||
31255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31256 | $as_echo "yes" >&6; } | |
31257 | ||
31258 | $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h | |
31259 | ||
31260 | ||
31261 | else | |
31262 | $as_echo "$as_me: failed program was:" >&5 | |
31263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31264 | ||
31265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31266 | $as_echo "no" >&6; } | |
31267 | ||
31268 | ||
31269 | ||
31270 | fi | |
31271 | rm -Rf build | |
31272 | ||
31273 | ||
31274 | ||
31275 | ||
31276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5 | |
31277 | $as_echo_n "checking whether iops->create() passes nameidata... " >&6; } | |
31278 | ||
31279 | ||
31280 | cat confdefs.h - <<_ACEOF >conftest.c | |
31281 | ||
31282 | ||
31283 | #include <linux/fs.h> | |
31284 | ||
31285 | #ifdef HAVE_MKDIR_UMODE_T | |
31286 | int inode_create(struct inode *inode ,struct dentry *dentry, | |
31287 | umode_t umode, struct nameidata *nidata) { return 0; } | |
31288 | #else | |
31289 | int inode_create(struct inode *inode,struct dentry *dentry, | |
31290 | int umode, struct nameidata * nidata) { return 0; } | |
31291 | #endif | |
31292 | ||
31293 | static const struct inode_operations | |
31294 | iops __attribute__ ((unused)) = { | |
31295 | .create = inode_create, | |
31296 | }; | |
31297 | ||
31298 | int | |
31299 | main (void) | |
31300 | { | |
31301 | ||
31302 | ||
31303 | ; | |
31304 | return 0; | |
31305 | } | |
31306 | ||
31307 | _ACEOF | |
31308 | ||
31309 | ||
31310 | ||
31311 | cat - <<_ACEOF >conftest.h | |
31312 | ||
31313 | _ACEOF | |
31314 | ||
31315 | ||
31316 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31317 | echo "obj-m := conftest.o" >build/Makefile | |
31318 | modpost_flag='' | |
31319 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31320 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31321 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31322 | (eval $ac_try) 2>&5 | |
31323 | ac_status=$? | |
31324 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31325 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31326 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31327 | (eval $ac_try) 2>&5 | |
31328 | ac_status=$? | |
31329 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31330 | test $ac_status = 0; }; }; then : | |
31331 | ||
31332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31333 | $as_echo "yes" >&6; } | |
31334 | ||
31335 | $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h | |
31336 | ||
31337 | ||
31338 | else | |
31339 | $as_echo "$as_me: failed program was:" >&5 | |
31340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31341 | ||
31342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31343 | $as_echo "no" >&6; } | |
31344 | ||
31345 | ||
31346 | ||
31347 | fi | |
31348 | rm -Rf build | |
31349 | ||
31350 | ||
31351 | ||
31352 | ||
31353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5 | |
31354 | $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; } | |
31355 | ||
31356 | ||
31357 | cat confdefs.h - <<_ACEOF >conftest.c | |
31358 | ||
31359 | ||
31360 | #include <linux/fs.h> | |
31361 | const char *get_link(struct dentry *de, struct inode *ip, | |
31362 | struct delayed_call *done) { return "symlink"; } | |
31363 | static struct inode_operations | |
31364 | iops __attribute__ ((unused)) = { | |
31365 | .get_link = get_link, | |
31366 | }; | |
31367 | ||
31368 | int | |
31369 | main (void) | |
31370 | { | |
31371 | ||
31372 | ||
31373 | ; | |
31374 | return 0; | |
31375 | } | |
31376 | ||
31377 | _ACEOF | |
31378 | ||
31379 | ||
31380 | ||
31381 | cat - <<_ACEOF >conftest.h | |
31382 | ||
31383 | _ACEOF | |
31384 | ||
31385 | ||
31386 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31387 | echo "obj-m := conftest.o" >build/Makefile | |
31388 | modpost_flag='' | |
31389 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31390 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31391 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31392 | (eval $ac_try) 2>&5 | |
31393 | ac_status=$? | |
31394 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31395 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31396 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31397 | (eval $ac_try) 2>&5 | |
31398 | ac_status=$? | |
31399 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31400 | test $ac_status = 0; }; }; then : | |
31401 | ||
31402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31403 | $as_echo "yes" >&6; } | |
31404 | ||
31405 | $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h | |
31406 | ||
31407 | ||
31408 | else | |
31409 | $as_echo "$as_me: failed program was:" >&5 | |
31410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31411 | ||
31412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31413 | $as_echo "no" >&6; } | |
31414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5 | |
31415 | $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; } | |
31416 | ||
31417 | ||
31418 | cat confdefs.h - <<_ACEOF >conftest.c | |
31419 | ||
31420 | ||
31421 | #include <linux/fs.h> | |
31422 | const char *get_link(struct dentry *de, struct | |
31423 | inode *ip, void **cookie) { return "symlink"; } | |
31424 | static struct inode_operations | |
31425 | iops __attribute__ ((unused)) = { | |
31426 | .get_link = get_link, | |
31427 | }; | |
31428 | ||
31429 | int | |
31430 | main (void) | |
31431 | { | |
31432 | ||
31433 | ||
31434 | ; | |
31435 | return 0; | |
31436 | } | |
31437 | ||
31438 | _ACEOF | |
31439 | ||
31440 | ||
31441 | ||
31442 | cat - <<_ACEOF >conftest.h | |
31443 | ||
31444 | _ACEOF | |
31445 | ||
31446 | ||
31447 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31448 | echo "obj-m := conftest.o" >build/Makefile | |
31449 | modpost_flag='' | |
31450 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31451 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31452 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31453 | (eval $ac_try) 2>&5 | |
31454 | ac_status=$? | |
31455 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31456 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31457 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31458 | (eval $ac_try) 2>&5 | |
31459 | ac_status=$? | |
31460 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31461 | test $ac_status = 0; }; }; then : | |
31462 | ||
31463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31464 | $as_echo "yes" >&6; } | |
31465 | ||
31466 | $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h | |
31467 | ||
31468 | ||
31469 | else | |
31470 | $as_echo "$as_me: failed program was:" >&5 | |
31471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31472 | ||
31473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31474 | $as_echo "no" >&6; } | |
31475 | ||
31476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5 | |
31477 | $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; } | |
31478 | ||
31479 | ||
31480 | cat confdefs.h - <<_ACEOF >conftest.c | |
31481 | ||
31482 | ||
31483 | #include <linux/fs.h> | |
31484 | const char *follow_link(struct dentry *de, | |
31485 | void **cookie) { return "symlink"; } | |
31486 | static struct inode_operations | |
31487 | iops __attribute__ ((unused)) = { | |
31488 | .follow_link = follow_link, | |
31489 | }; | |
31490 | ||
31491 | int | |
31492 | main (void) | |
31493 | { | |
31494 | ||
31495 | ||
31496 | ; | |
31497 | return 0; | |
31498 | } | |
31499 | ||
31500 | _ACEOF | |
31501 | ||
31502 | ||
31503 | ||
31504 | cat - <<_ACEOF >conftest.h | |
31505 | ||
31506 | _ACEOF | |
31507 | ||
31508 | ||
31509 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31510 | echo "obj-m := conftest.o" >build/Makefile | |
31511 | modpost_flag='' | |
31512 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31513 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31514 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31515 | (eval $ac_try) 2>&5 | |
31516 | ac_status=$? | |
31517 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31518 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31519 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31520 | (eval $ac_try) 2>&5 | |
31521 | ac_status=$? | |
31522 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31523 | test $ac_status = 0; }; }; then : | |
31524 | ||
31525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31526 | $as_echo "yes" >&6; } | |
31527 | ||
31528 | $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h | |
31529 | ||
31530 | ||
31531 | else | |
31532 | $as_echo "$as_me: failed program was:" >&5 | |
31533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31534 | ||
31535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31536 | $as_echo "no" >&6; } | |
31537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5 | |
31538 | $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; } | |
31539 | ||
31540 | ||
31541 | cat confdefs.h - <<_ACEOF >conftest.c | |
31542 | ||
31543 | ||
31544 | #include <linux/fs.h> | |
31545 | void *follow_link(struct dentry *de, struct | |
31546 | nameidata *nd) { return (void *)NULL; } | |
31547 | static struct inode_operations | |
31548 | iops __attribute__ ((unused)) = { | |
31549 | .follow_link = follow_link, | |
31550 | }; | |
31551 | ||
31552 | int | |
31553 | main (void) | |
31554 | { | |
31555 | ||
31556 | ||
31557 | ; | |
31558 | return 0; | |
31559 | } | |
31560 | ||
31561 | _ACEOF | |
31562 | ||
31563 | ||
31564 | ||
31565 | cat - <<_ACEOF >conftest.h | |
31566 | ||
31567 | _ACEOF | |
31568 | ||
31569 | ||
31570 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31571 | echo "obj-m := conftest.o" >build/Makefile | |
31572 | modpost_flag='' | |
31573 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31574 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31575 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31576 | (eval $ac_try) 2>&5 | |
31577 | ac_status=$? | |
31578 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31579 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31580 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31581 | (eval $ac_try) 2>&5 | |
31582 | ac_status=$? | |
31583 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31584 | test $ac_status = 0; }; }; then : | |
31585 | ||
31586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31587 | $as_echo "yes" >&6; } | |
31588 | ||
31589 | $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h | |
31590 | ||
31591 | ||
31592 | else | |
31593 | $as_echo "$as_me: failed program was:" >&5 | |
31594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31595 | ||
31596 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
31597 | ||
31598 | ||
31599 | ||
31600 | fi | |
31601 | rm -Rf build | |
31602 | ||
31603 | ||
31604 | ||
31605 | ||
31606 | ||
31607 | fi | |
31608 | rm -Rf build | |
31609 | ||
31610 | ||
31611 | ||
31612 | ||
31613 | ||
31614 | ||
31615 | fi | |
31616 | rm -Rf build | |
31617 | ||
31618 | ||
31619 | ||
31620 | ||
31621 | ||
31622 | fi | |
31623 | rm -Rf build | |
31624 | ||
31625 | ||
31626 | ||
31627 | ||
31628 | ||
31629 | ||
31630 | cat confdefs.h - <<_ACEOF >conftest.c | |
31631 | ||
31632 | ||
31633 | #if !defined(HAVE_GET_LINK_DELAYED) | |
31634 | #error "Expecting get_link() delayed done" | |
31635 | #endif | |
31636 | ||
31637 | int | |
31638 | main (void) | |
31639 | { | |
31640 | ||
31641 | ||
31642 | ; | |
31643 | return 0; | |
31644 | } | |
31645 | ||
31646 | _ACEOF | |
31647 | ||
31648 | ||
31649 | ||
31650 | cat - <<_ACEOF >conftest.h | |
31651 | ||
31652 | _ACEOF | |
31653 | ||
31654 | ||
31655 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31656 | echo "obj-m := conftest.o" >build/Makefile | |
31657 | modpost_flag='' | |
31658 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31659 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31660 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31661 | (eval $ac_try) 2>&5 | |
31662 | ac_status=$? | |
31663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31664 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31665 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31666 | (eval $ac_try) 2>&5 | |
31667 | ac_status=$? | |
31668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31669 | test $ac_status = 0; }; }; then : | |
31670 | ||
31671 | ||
31672 | $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h | |
31673 | ||
31674 | ||
31675 | else | |
31676 | $as_echo "$as_me: failed program was:" >&5 | |
31677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31678 | ||
31679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5 | |
31680 | $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; } | |
31681 | ||
31682 | ||
31683 | cat confdefs.h - <<_ACEOF >conftest.c | |
31684 | ||
31685 | ||
31686 | #include <linux/fs.h> | |
31687 | void put_link(struct inode *ip, void *cookie) | |
31688 | { return; } | |
31689 | static struct inode_operations | |
31690 | iops __attribute__ ((unused)) = { | |
31691 | .put_link = put_link, | |
31692 | }; | |
31693 | ||
31694 | int | |
31695 | main (void) | |
31696 | { | |
31697 | ||
31698 | ||
31699 | ; | |
31700 | return 0; | |
31701 | } | |
31702 | ||
31703 | _ACEOF | |
31704 | ||
31705 | ||
31706 | ||
31707 | cat - <<_ACEOF >conftest.h | |
31708 | ||
31709 | _ACEOF | |
31710 | ||
31711 | ||
31712 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31713 | echo "obj-m := conftest.o" >build/Makefile | |
31714 | modpost_flag='' | |
31715 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31716 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31717 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31718 | (eval $ac_try) 2>&5 | |
31719 | ac_status=$? | |
31720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31721 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31722 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31723 | (eval $ac_try) 2>&5 | |
31724 | ac_status=$? | |
31725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31726 | test $ac_status = 0; }; }; then : | |
31727 | ||
31728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31729 | $as_echo "yes" >&6; } | |
31730 | ||
31731 | $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h | |
31732 | ||
31733 | ||
31734 | else | |
31735 | $as_echo "$as_me: failed program was:" >&5 | |
31736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31737 | ||
31738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31739 | $as_echo "no" >&6; } | |
31740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5 | |
31741 | $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; } | |
31742 | ||
31743 | ||
31744 | cat confdefs.h - <<_ACEOF >conftest.c | |
31745 | ||
31746 | ||
31747 | #include <linux/fs.h> | |
31748 | void put_link(struct dentry *de, struct | |
31749 | nameidata *nd, void *ptr) { return; } | |
31750 | static struct inode_operations | |
31751 | iops __attribute__ ((unused)) = { | |
31752 | .put_link = put_link, | |
31753 | }; | |
31754 | ||
31755 | int | |
31756 | main (void) | |
31757 | { | |
31758 | ||
31759 | ||
31760 | ; | |
31761 | return 0; | |
31762 | } | |
31763 | ||
31764 | _ACEOF | |
31765 | ||
31766 | ||
31767 | ||
31768 | cat - <<_ACEOF >conftest.h | |
31769 | ||
31770 | _ACEOF | |
31771 | ||
31772 | ||
31773 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31774 | echo "obj-m := conftest.o" >build/Makefile | |
31775 | modpost_flag='' | |
31776 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31777 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31778 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31779 | (eval $ac_try) 2>&5 | |
31780 | ac_status=$? | |
31781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31782 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31783 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31784 | (eval $ac_try) 2>&5 | |
31785 | ac_status=$? | |
31786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31787 | test $ac_status = 0; }; }; then : | |
31788 | ||
31789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31790 | $as_echo "yes" >&6; } | |
31791 | ||
31792 | $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h | |
31793 | ||
31794 | ||
31795 | else | |
31796 | $as_echo "$as_me: failed program was:" >&5 | |
31797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31798 | ||
31799 | as_fn_error $? "no; please file a bug report" "$LINENO" 5 | |
31800 | ||
31801 | ||
31802 | ||
31803 | fi | |
31804 | rm -Rf build | |
31805 | ||
31806 | ||
31807 | ||
31808 | ||
31809 | ||
31810 | fi | |
31811 | rm -Rf build | |
31812 | ||
31813 | ||
31814 | ||
31815 | ||
31816 | ||
31817 | fi | |
31818 | rm -Rf build | |
31819 | ||
31820 | ||
31821 | ||
31822 | ||
31823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5 | |
31824 | $as_echo_n "checking whether iops->truncate_range() exists... " >&6; } | |
31825 | ||
31826 | ||
31827 | cat confdefs.h - <<_ACEOF >conftest.c | |
31828 | ||
31829 | ||
31830 | #include <linux/fs.h> | |
31831 | void truncate_range(struct inode *inode, loff_t start, | |
31832 | loff_t end) { return; } | |
31833 | static struct inode_operations iops __attribute__ ((unused)) = { | |
31834 | .truncate_range = truncate_range, | |
31835 | }; | |
31836 | ||
31837 | int | |
31838 | main (void) | |
31839 | { | |
31840 | ||
31841 | ||
31842 | ; | |
31843 | return 0; | |
31844 | } | |
31845 | ||
31846 | _ACEOF | |
31847 | ||
31848 | ||
31849 | ||
31850 | cat - <<_ACEOF >conftest.h | |
31851 | ||
31852 | _ACEOF | |
31853 | ||
31854 | ||
31855 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31856 | echo "obj-m := conftest.o" >build/Makefile | |
31857 | modpost_flag='' | |
31858 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31859 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31860 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31861 | (eval $ac_try) 2>&5 | |
31862 | ac_status=$? | |
31863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31864 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31865 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31866 | (eval $ac_try) 2>&5 | |
31867 | ac_status=$? | |
31868 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31869 | test $ac_status = 0; }; }; then : | |
31870 | ||
31871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31872 | $as_echo "yes" >&6; } | |
31873 | ||
31874 | $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h | |
31875 | ||
31876 | ||
31877 | else | |
31878 | $as_echo "$as_me: failed program was:" >&5 | |
31879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31880 | ||
31881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31882 | $as_echo "no" >&6; } | |
31883 | ||
31884 | ||
31885 | ||
31886 | fi | |
31887 | rm -Rf build | |
31888 | ||
31889 | ||
31890 | ||
31891 | ||
31892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5 | |
31893 | $as_echo_n "checking whether dops->d_automount() exists... " >&6; } | |
31894 | ||
31895 | ||
31896 | cat confdefs.h - <<_ACEOF >conftest.c | |
31897 | ||
31898 | ||
31899 | #include <linux/dcache.h> | |
31900 | struct vfsmount *d_automount(struct path *p) { return NULL; } | |
31901 | struct dentry_operations dops __attribute__ ((unused)) = { | |
31902 | .d_automount = d_automount, | |
31903 | }; | |
31904 | ||
31905 | int | |
31906 | main (void) | |
31907 | { | |
31908 | ||
31909 | ||
31910 | ; | |
31911 | return 0; | |
31912 | } | |
31913 | ||
31914 | _ACEOF | |
31915 | ||
31916 | ||
31917 | ||
31918 | cat - <<_ACEOF >conftest.h | |
31919 | ||
31920 | _ACEOF | |
31921 | ||
31922 | ||
31923 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31924 | echo "obj-m := conftest.o" >build/Makefile | |
31925 | modpost_flag='' | |
31926 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31927 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31928 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31929 | (eval $ac_try) 2>&5 | |
31930 | ac_status=$? | |
31931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31932 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
31933 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31934 | (eval $ac_try) 2>&5 | |
31935 | ac_status=$? | |
31936 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
31937 | test $ac_status = 0; }; }; then : | |
31938 | ||
31939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
31940 | $as_echo "yes" >&6; } | |
31941 | ||
31942 | $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h | |
31943 | ||
31944 | ||
31945 | else | |
31946 | $as_echo "$as_me: failed program was:" >&5 | |
31947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31948 | ||
31949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
31950 | $as_echo "no" >&6; } | |
31951 | ||
31952 | ||
31953 | ||
31954 | fi | |
31955 | rm -Rf build | |
31956 | ||
31957 | ||
31958 | ||
31959 | ||
31960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5 | |
31961 | $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; } | |
31962 | ||
31963 | ||
31964 | cat confdefs.h - <<_ACEOF >conftest.c | |
31965 | ||
31966 | ||
31967 | #include <linux/exportfs.h> | |
31968 | int encode_fh(struct inode *inode, __u32 *fh, int *max_len, | |
31969 | struct inode *parent) { return 0; } | |
31970 | static struct export_operations eops __attribute__ ((unused))={ | |
31971 | .encode_fh = encode_fh, | |
31972 | }; | |
31973 | ||
31974 | int | |
31975 | main (void) | |
31976 | { | |
31977 | ||
31978 | ||
31979 | ; | |
31980 | return 0; | |
31981 | } | |
31982 | ||
31983 | _ACEOF | |
31984 | ||
31985 | ||
31986 | ||
31987 | cat - <<_ACEOF >conftest.h | |
31988 | ||
31989 | _ACEOF | |
31990 | ||
31991 | ||
31992 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
31993 | echo "obj-m := conftest.o" >build/Makefile | |
31994 | modpost_flag='' | |
31995 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
31996 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31997 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
31998 | (eval $ac_try) 2>&5 | |
31999 | ac_status=$? | |
32000 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32001 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32002 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32003 | (eval $ac_try) 2>&5 | |
32004 | ac_status=$? | |
32005 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32006 | test $ac_status = 0; }; }; then : | |
32007 | ||
32008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32009 | $as_echo "yes" >&6; } | |
32010 | ||
32011 | $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h | |
32012 | ||
32013 | ||
32014 | else | |
32015 | $as_echo "$as_me: failed program was:" >&5 | |
32016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32017 | ||
32018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32019 | $as_echo "no" >&6; } | |
32020 | ||
32021 | ||
32022 | ||
32023 | fi | |
32024 | rm -Rf build | |
32025 | ||
32026 | ||
32027 | ||
32028 | ||
32029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5 | |
32030 | $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; } | |
32031 | ||
32032 | ||
32033 | cat confdefs.h - <<_ACEOF >conftest.c | |
32034 | ||
32035 | ||
32036 | #include <linux/exportfs.h> | |
32037 | int commit_metadata(struct inode *inode) { return 0; } | |
32038 | static struct export_operations eops __attribute__ ((unused))={ | |
32039 | .commit_metadata = commit_metadata, | |
32040 | }; | |
32041 | ||
32042 | int | |
32043 | main (void) | |
32044 | { | |
32045 | ||
32046 | ||
32047 | ; | |
32048 | return 0; | |
32049 | } | |
32050 | ||
32051 | _ACEOF | |
32052 | ||
32053 | ||
32054 | ||
32055 | cat - <<_ACEOF >conftest.h | |
32056 | ||
32057 | _ACEOF | |
32058 | ||
32059 | ||
32060 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32061 | echo "obj-m := conftest.o" >build/Makefile | |
32062 | modpost_flag='' | |
32063 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32064 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32065 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32066 | (eval $ac_try) 2>&5 | |
32067 | ac_status=$? | |
32068 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32069 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32070 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32071 | (eval $ac_try) 2>&5 | |
32072 | ac_status=$? | |
32073 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32074 | test $ac_status = 0; }; }; then : | |
32075 | ||
32076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32077 | $as_echo "yes" >&6; } | |
32078 | ||
32079 | $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h | |
32080 | ||
32081 | ||
32082 | else | |
32083 | $as_echo "$as_me: failed program was:" >&5 | |
32084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32085 | ||
32086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32087 | $as_echo "no" >&6; } | |
32088 | ||
32089 | ||
32090 | ||
32091 | fi | |
32092 | rm -Rf build | |
32093 | ||
32094 | ||
32095 | ||
32096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5 | |
32097 | $as_echo_n "checking whether clear_inode() is available... " >&6; } | |
32098 | ||
32099 | ||
32100 | ||
32101 | cat confdefs.h - <<_ACEOF >conftest.c | |
32102 | ||
32103 | ||
32104 | #include <linux/fs.h> | |
32105 | ||
32106 | int | |
32107 | main (void) | |
32108 | { | |
32109 | ||
32110 | clear_inode(NULL); | |
32111 | ||
32112 | ; | |
32113 | return 0; | |
32114 | } | |
32115 | ||
32116 | _ACEOF | |
32117 | ||
32118 | ||
32119 | ||
32120 | cat - <<_ACEOF >conftest.h | |
32121 | ||
32122 | _ACEOF | |
32123 | ||
32124 | ||
32125 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32126 | echo "obj-m := conftest.o" >build/Makefile | |
32127 | modpost_flag='' | |
32128 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32129 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32130 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32131 | (eval $ac_try) 2>&5 | |
32132 | ac_status=$? | |
32133 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32134 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32135 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32136 | (eval $ac_try) 2>&5 | |
32137 | ac_status=$? | |
32138 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32139 | test $ac_status = 0; }; }; then : | |
32140 | rc=0 | |
32141 | else | |
32142 | $as_echo "$as_me: failed program was:" >&5 | |
32143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32144 | rc=1 | |
32145 | ||
32146 | ||
32147 | fi | |
32148 | rm -Rf build | |
32149 | ||
32150 | ||
32151 | if test $rc -ne 0; then : | |
32152 | ||
32153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32154 | $as_echo "no" >&6; } | |
32155 | ||
32156 | else | |
32157 | if test "x$enable_linux_builtin" != xyes; then | |
32158 | ||
32159 | grep -q -E '[[:space:]]clear_inode[[:space:]]' \ | |
32160 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
32161 | rc=$? | |
32162 | if test $rc -ne 0; then | |
32163 | export=0 | |
32164 | for file in fs/inode.c; do | |
32165 | grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \ | |
32166 | "$LINUX/$file" 2>/dev/null | |
32167 | rc=$? | |
32168 | if test $rc -eq 0; then | |
32169 | export=1 | |
32170 | break; | |
32171 | fi | |
32172 | done | |
32173 | if test $export -eq 0; then : | |
32174 | rc=1 | |
32175 | else : | |
32176 | rc=0 | |
32177 | fi | |
32178 | else : | |
32179 | rc=0 | |
32180 | fi | |
32181 | ||
32182 | fi | |
32183 | if test $rc -ne 0; then : | |
32184 | ||
32185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32186 | $as_echo "no" >&6; } | |
32187 | ||
32188 | else : | |
32189 | ||
32190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32191 | $as_echo "yes" >&6; } | |
32192 | ||
32193 | $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h | |
32194 | ||
32195 | ||
32196 | fi | |
32197 | fi | |
32198 | ||
32199 | ||
32200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5 | |
32201 | $as_echo_n "checking whether setattr_prepare() is available... " >&6; } | |
32202 | ||
32203 | ||
32204 | ||
32205 | cat confdefs.h - <<_ACEOF >conftest.c | |
32206 | ||
32207 | ||
32208 | #include <linux/fs.h> | |
32209 | ||
32210 | int | |
32211 | main (void) | |
32212 | { | |
32213 | ||
32214 | struct dentry *dentry = NULL; | |
32215 | struct iattr *attr = NULL; | |
32216 | int error; | |
32217 | ||
32218 | error = setattr_prepare(dentry, attr); | |
32219 | ||
32220 | ; | |
32221 | return 0; | |
32222 | } | |
32223 | ||
32224 | _ACEOF | |
32225 | ||
32226 | ||
32227 | ||
32228 | cat - <<_ACEOF >conftest.h | |
32229 | ||
32230 | _ACEOF | |
32231 | ||
32232 | ||
32233 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32234 | echo "obj-m := conftest.o" >build/Makefile | |
32235 | modpost_flag='' | |
32236 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32237 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32238 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32239 | (eval $ac_try) 2>&5 | |
32240 | ac_status=$? | |
32241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32242 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32243 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32244 | (eval $ac_try) 2>&5 | |
32245 | ac_status=$? | |
32246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32247 | test $ac_status = 0; }; }; then : | |
32248 | rc=0 | |
32249 | else | |
32250 | $as_echo "$as_me: failed program was:" >&5 | |
32251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32252 | rc=1 | |
32253 | ||
32254 | ||
32255 | fi | |
32256 | rm -Rf build | |
32257 | ||
32258 | ||
32259 | if test $rc -ne 0; then : | |
32260 | ||
32261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32262 | $as_echo "no" >&6; } | |
32263 | ||
32264 | else | |
32265 | if test "x$enable_linux_builtin" != xyes; then | |
32266 | ||
32267 | grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \ | |
32268 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
32269 | rc=$? | |
32270 | if test $rc -ne 0; then | |
32271 | export=0 | |
32272 | for file in fs/attr.c; do | |
32273 | grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \ | |
32274 | "$LINUX/$file" 2>/dev/null | |
32275 | rc=$? | |
32276 | if test $rc -eq 0; then | |
32277 | export=1 | |
32278 | break; | |
32279 | fi | |
32280 | done | |
32281 | if test $export -eq 0; then : | |
32282 | rc=1 | |
32283 | else : | |
32284 | rc=0 | |
32285 | fi | |
32286 | else : | |
32287 | rc=0 | |
32288 | fi | |
32289 | ||
32290 | fi | |
32291 | if test $rc -ne 0; then : | |
32292 | ||
32293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32294 | $as_echo "no" >&6; } | |
32295 | ||
32296 | else : | |
32297 | ||
32298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32299 | $as_echo "yes" >&6; } | |
32300 | ||
32301 | $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h | |
32302 | ||
32303 | ||
32304 | fi | |
32305 | fi | |
32306 | ||
32307 | ||
32308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5 | |
32309 | $as_echo_n "checking whether insert_inode_locked() is available... " >&6; } | |
32310 | ||
32311 | ||
32312 | ||
32313 | cat confdefs.h - <<_ACEOF >conftest.c | |
32314 | ||
32315 | ||
32316 | #include <linux/fs.h> | |
32317 | ||
32318 | int | |
32319 | main (void) | |
32320 | { | |
32321 | ||
32322 | insert_inode_locked(NULL); | |
32323 | ||
32324 | ; | |
32325 | return 0; | |
32326 | } | |
32327 | ||
32328 | _ACEOF | |
32329 | ||
32330 | ||
32331 | ||
32332 | cat - <<_ACEOF >conftest.h | |
32333 | ||
32334 | _ACEOF | |
32335 | ||
32336 | ||
32337 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32338 | echo "obj-m := conftest.o" >build/Makefile | |
32339 | modpost_flag='' | |
32340 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32341 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32342 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32343 | (eval $ac_try) 2>&5 | |
32344 | ac_status=$? | |
32345 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32346 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32347 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32348 | (eval $ac_try) 2>&5 | |
32349 | ac_status=$? | |
32350 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32351 | test $ac_status = 0; }; }; then : | |
32352 | rc=0 | |
32353 | else | |
32354 | $as_echo "$as_me: failed program was:" >&5 | |
32355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32356 | rc=1 | |
32357 | ||
32358 | ||
32359 | fi | |
32360 | rm -Rf build | |
32361 | ||
32362 | ||
32363 | if test $rc -ne 0; then : | |
32364 | ||
32365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32366 | $as_echo "no" >&6; } | |
32367 | ||
32368 | else | |
32369 | if test "x$enable_linux_builtin" != xyes; then | |
32370 | ||
32371 | grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \ | |
32372 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
32373 | rc=$? | |
32374 | if test $rc -ne 0; then | |
32375 | export=0 | |
32376 | for file in fs/inode.c; do | |
32377 | grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \ | |
32378 | "$LINUX/$file" 2>/dev/null | |
32379 | rc=$? | |
32380 | if test $rc -eq 0; then | |
32381 | export=1 | |
32382 | break; | |
32383 | fi | |
32384 | done | |
32385 | if test $export -eq 0; then : | |
32386 | rc=1 | |
32387 | else : | |
32388 | rc=0 | |
32389 | fi | |
32390 | else : | |
32391 | rc=0 | |
32392 | fi | |
32393 | ||
32394 | fi | |
32395 | if test $rc -ne 0; then : | |
32396 | ||
32397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32398 | $as_echo "no" >&6; } | |
32399 | ||
32400 | else : | |
32401 | ||
32402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32403 | $as_echo "yes" >&6; } | |
32404 | ||
32405 | $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h | |
32406 | ||
32407 | ||
32408 | fi | |
32409 | fi | |
32410 | ||
32411 | ||
32412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5 | |
32413 | $as_echo_n "checking whether d_make_root() is available... " >&6; } | |
32414 | ||
32415 | ||
32416 | ||
32417 | cat confdefs.h - <<_ACEOF >conftest.c | |
32418 | ||
32419 | ||
32420 | #include <linux/dcache.h> | |
32421 | ||
32422 | int | |
32423 | main (void) | |
32424 | { | |
32425 | ||
32426 | d_make_root(NULL); | |
32427 | ||
32428 | ; | |
32429 | return 0; | |
32430 | } | |
32431 | ||
32432 | _ACEOF | |
32433 | ||
32434 | ||
32435 | ||
32436 | cat - <<_ACEOF >conftest.h | |
32437 | ||
32438 | _ACEOF | |
32439 | ||
32440 | ||
32441 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32442 | echo "obj-m := conftest.o" >build/Makefile | |
32443 | modpost_flag='' | |
32444 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32445 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32446 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32447 | (eval $ac_try) 2>&5 | |
32448 | ac_status=$? | |
32449 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32450 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32451 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32452 | (eval $ac_try) 2>&5 | |
32453 | ac_status=$? | |
32454 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32455 | test $ac_status = 0; }; }; then : | |
32456 | rc=0 | |
32457 | else | |
32458 | $as_echo "$as_me: failed program was:" >&5 | |
32459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32460 | rc=1 | |
32461 | ||
32462 | ||
32463 | fi | |
32464 | rm -Rf build | |
32465 | ||
32466 | ||
32467 | if test $rc -ne 0; then : | |
32468 | ||
32469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32470 | $as_echo "no" >&6; } | |
32471 | ||
32472 | else | |
32473 | if test "x$enable_linux_builtin" != xyes; then | |
32474 | ||
32475 | grep -q -E '[[:space:]]d_make_root[[:space:]]' \ | |
32476 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
32477 | rc=$? | |
32478 | if test $rc -ne 0; then | |
32479 | export=0 | |
32480 | for file in fs/dcache.c; do | |
32481 | grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \ | |
32482 | "$LINUX/$file" 2>/dev/null | |
32483 | rc=$? | |
32484 | if test $rc -eq 0; then | |
32485 | export=1 | |
32486 | break; | |
32487 | fi | |
32488 | done | |
32489 | if test $export -eq 0; then : | |
32490 | rc=1 | |
32491 | else : | |
32492 | rc=0 | |
32493 | fi | |
32494 | else : | |
32495 | rc=0 | |
32496 | fi | |
32497 | ||
32498 | fi | |
32499 | if test $rc -ne 0; then : | |
32500 | ||
32501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32502 | $as_echo "no" >&6; } | |
32503 | ||
32504 | else : | |
32505 | ||
32506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32507 | $as_echo "yes" >&6; } | |
32508 | ||
32509 | $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h | |
32510 | ||
32511 | ||
32512 | fi | |
32513 | fi | |
32514 | ||
32515 | ||
32516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5 | |
32517 | $as_echo_n "checking whether d_obtain_alias() is available... " >&6; } | |
32518 | ||
32519 | ||
32520 | ||
32521 | cat confdefs.h - <<_ACEOF >conftest.c | |
32522 | ||
32523 | ||
32524 | #include <linux/dcache.h> | |
32525 | ||
32526 | int | |
32527 | main (void) | |
32528 | { | |
32529 | ||
32530 | d_obtain_alias(NULL); | |
32531 | ||
32532 | ; | |
32533 | return 0; | |
32534 | } | |
32535 | ||
32536 | _ACEOF | |
32537 | ||
32538 | ||
32539 | ||
32540 | cat - <<_ACEOF >conftest.h | |
32541 | ||
32542 | _ACEOF | |
32543 | ||
32544 | ||
32545 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32546 | echo "obj-m := conftest.o" >build/Makefile | |
32547 | modpost_flag='' | |
32548 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32549 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32550 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32551 | (eval $ac_try) 2>&5 | |
32552 | ac_status=$? | |
32553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32554 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32555 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32556 | (eval $ac_try) 2>&5 | |
32557 | ac_status=$? | |
32558 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32559 | test $ac_status = 0; }; }; then : | |
32560 | rc=0 | |
32561 | else | |
32562 | $as_echo "$as_me: failed program was:" >&5 | |
32563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32564 | rc=1 | |
32565 | ||
32566 | ||
32567 | fi | |
32568 | rm -Rf build | |
32569 | ||
32570 | ||
32571 | if test $rc -ne 0; then : | |
32572 | ||
32573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32574 | $as_echo "no" >&6; } | |
32575 | ||
32576 | else | |
32577 | if test "x$enable_linux_builtin" != xyes; then | |
32578 | ||
32579 | grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \ | |
32580 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
32581 | rc=$? | |
32582 | if test $rc -ne 0; then | |
32583 | export=0 | |
32584 | for file in fs/dcache.c; do | |
32585 | grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \ | |
32586 | "$LINUX/$file" 2>/dev/null | |
32587 | rc=$? | |
32588 | if test $rc -eq 0; then | |
32589 | export=1 | |
32590 | break; | |
32591 | fi | |
32592 | done | |
32593 | if test $export -eq 0; then : | |
32594 | rc=1 | |
32595 | else : | |
32596 | rc=0 | |
32597 | fi | |
32598 | else : | |
32599 | rc=0 | |
32600 | fi | |
32601 | ||
32602 | fi | |
32603 | if test $rc -ne 0; then : | |
32604 | ||
32605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32606 | $as_echo "no" >&6; } | |
32607 | ||
32608 | else : | |
32609 | ||
32610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32611 | $as_echo "yes" >&6; } | |
32612 | ||
32613 | $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h | |
32614 | ||
32615 | ||
32616 | fi | |
32617 | fi | |
32618 | ||
32619 | ||
32620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5 | |
32621 | $as_echo_n "checking whether d_prune_aliases() is available... " >&6; } | |
32622 | ||
32623 | ||
32624 | ||
32625 | cat confdefs.h - <<_ACEOF >conftest.c | |
32626 | ||
32627 | ||
32628 | #include <linux/dcache.h> | |
32629 | ||
32630 | int | |
32631 | main (void) | |
32632 | { | |
32633 | ||
32634 | struct inode *ip = NULL; | |
32635 | d_prune_aliases(ip); | |
32636 | ||
32637 | ; | |
32638 | return 0; | |
32639 | } | |
32640 | ||
32641 | _ACEOF | |
32642 | ||
32643 | ||
32644 | ||
32645 | cat - <<_ACEOF >conftest.h | |
32646 | ||
32647 | _ACEOF | |
32648 | ||
32649 | ||
32650 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32651 | echo "obj-m := conftest.o" >build/Makefile | |
32652 | modpost_flag='' | |
32653 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32654 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32655 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32656 | (eval $ac_try) 2>&5 | |
32657 | ac_status=$? | |
32658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32659 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32660 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32661 | (eval $ac_try) 2>&5 | |
32662 | ac_status=$? | |
32663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32664 | test $ac_status = 0; }; }; then : | |
32665 | rc=0 | |
32666 | else | |
32667 | $as_echo "$as_me: failed program was:" >&5 | |
32668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32669 | rc=1 | |
32670 | ||
32671 | ||
32672 | fi | |
32673 | rm -Rf build | |
32674 | ||
32675 | ||
32676 | if test $rc -ne 0; then : | |
32677 | ||
32678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32679 | $as_echo "no" >&6; } | |
32680 | ||
32681 | else | |
32682 | if test "x$enable_linux_builtin" != xyes; then | |
32683 | ||
32684 | grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \ | |
32685 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
32686 | rc=$? | |
32687 | if test $rc -ne 0; then | |
32688 | export=0 | |
32689 | for file in fs/dcache.c; do | |
32690 | grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \ | |
32691 | "$LINUX/$file" 2>/dev/null | |
32692 | rc=$? | |
32693 | if test $rc -eq 0; then | |
32694 | export=1 | |
32695 | break; | |
32696 | fi | |
32697 | done | |
32698 | if test $export -eq 0; then : | |
32699 | rc=1 | |
32700 | else : | |
32701 | rc=0 | |
32702 | fi | |
32703 | else : | |
32704 | rc=0 | |
32705 | fi | |
32706 | ||
32707 | fi | |
32708 | if test $rc -ne 0; then : | |
32709 | ||
32710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32711 | $as_echo "no" >&6; } | |
32712 | ||
32713 | else : | |
32714 | ||
32715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32716 | $as_echo "yes" >&6; } | |
32717 | ||
32718 | $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h | |
32719 | ||
32720 | ||
32721 | fi | |
32722 | fi | |
32723 | ||
32724 | ||
32725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5 | |
32726 | $as_echo_n "checking whether d_set_d_op() is available... " >&6; } | |
32727 | ||
32728 | ||
32729 | ||
32730 | cat confdefs.h - <<_ACEOF >conftest.c | |
32731 | ||
32732 | ||
32733 | #include <linux/dcache.h> | |
32734 | ||
32735 | int | |
32736 | main (void) | |
32737 | { | |
32738 | ||
32739 | d_set_d_op(NULL, NULL); | |
32740 | ||
32741 | ; | |
32742 | return 0; | |
32743 | } | |
32744 | ||
32745 | _ACEOF | |
32746 | ||
32747 | ||
32748 | ||
32749 | cat - <<_ACEOF >conftest.h | |
32750 | ||
32751 | _ACEOF | |
32752 | ||
32753 | ||
32754 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32755 | echo "obj-m := conftest.o" >build/Makefile | |
32756 | modpost_flag='' | |
32757 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32758 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32759 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32760 | (eval $ac_try) 2>&5 | |
32761 | ac_status=$? | |
32762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32763 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32764 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32765 | (eval $ac_try) 2>&5 | |
32766 | ac_status=$? | |
32767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32768 | test $ac_status = 0; }; }; then : | |
32769 | rc=0 | |
32770 | else | |
32771 | $as_echo "$as_me: failed program was:" >&5 | |
32772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32773 | rc=1 | |
32774 | ||
32775 | ||
32776 | fi | |
32777 | rm -Rf build | |
32778 | ||
32779 | ||
32780 | if test $rc -ne 0; then : | |
32781 | ||
32782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32783 | $as_echo "no" >&6; } | |
32784 | ||
32785 | else | |
32786 | if test "x$enable_linux_builtin" != xyes; then | |
32787 | ||
32788 | grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \ | |
32789 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
32790 | rc=$? | |
32791 | if test $rc -ne 0; then | |
32792 | export=0 | |
32793 | for file in fs/dcache.c; do | |
32794 | grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \ | |
32795 | "$LINUX/$file" 2>/dev/null | |
32796 | rc=$? | |
32797 | if test $rc -eq 0; then | |
32798 | export=1 | |
32799 | break; | |
32800 | fi | |
32801 | done | |
32802 | if test $export -eq 0; then : | |
32803 | rc=1 | |
32804 | else : | |
32805 | rc=0 | |
32806 | fi | |
32807 | else : | |
32808 | rc=0 | |
32809 | fi | |
32810 | ||
32811 | fi | |
32812 | if test $rc -ne 0; then : | |
32813 | ||
32814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32815 | $as_echo "no" >&6; } | |
32816 | ||
32817 | else : | |
32818 | ||
32819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32820 | $as_echo "yes" >&6; } | |
32821 | ||
32822 | $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h | |
32823 | ||
32824 | ||
32825 | fi | |
32826 | fi | |
32827 | ||
32828 | ||
32829 | ||
32830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5 | |
32831 | $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; } | |
32832 | ||
32833 | ||
32834 | cat confdefs.h - <<_ACEOF >conftest.c | |
32835 | ||
32836 | ||
32837 | #include <linux/dcache.h> | |
32838 | ||
32839 | int revalidate (struct dentry *dentry, | |
32840 | struct nameidata *nidata) { return 0; } | |
32841 | ||
32842 | static const struct dentry_operations | |
32843 | dops __attribute__ ((unused)) = { | |
32844 | .d_revalidate = revalidate, | |
32845 | }; | |
32846 | ||
32847 | int | |
32848 | main (void) | |
32849 | { | |
32850 | ||
32851 | ||
32852 | ; | |
32853 | return 0; | |
32854 | } | |
32855 | ||
32856 | _ACEOF | |
32857 | ||
32858 | ||
32859 | ||
32860 | cat - <<_ACEOF >conftest.h | |
32861 | ||
32862 | _ACEOF | |
32863 | ||
32864 | ||
32865 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32866 | echo "obj-m := conftest.o" >build/Makefile | |
32867 | modpost_flag='' | |
32868 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32869 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32870 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32871 | (eval $ac_try) 2>&5 | |
32872 | ac_status=$? | |
32873 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32874 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32875 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32876 | (eval $ac_try) 2>&5 | |
32877 | ac_status=$? | |
32878 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32879 | test $ac_status = 0; }; }; then : | |
32880 | ||
32881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32882 | $as_echo "yes" >&6; } | |
32883 | ||
32884 | $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h | |
32885 | ||
32886 | ||
32887 | else | |
32888 | $as_echo "$as_me: failed program was:" >&5 | |
32889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32890 | ||
32891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32892 | $as_echo "no" >&6; } | |
32893 | ||
32894 | ||
32895 | ||
32896 | fi | |
32897 | rm -Rf build | |
32898 | ||
32899 | ||
32900 | ||
32901 | ||
32902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5 | |
32903 | $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; } | |
32904 | ||
32905 | ||
32906 | cat confdefs.h - <<_ACEOF >conftest.c | |
32907 | ||
32908 | ||
32909 | #include <linux/dcache.h> | |
32910 | ||
32911 | const struct dentry_operations test_d_op = { | |
32912 | .d_revalidate = NULL, | |
32913 | }; | |
32914 | ||
32915 | int | |
32916 | main (void) | |
32917 | { | |
32918 | ||
32919 | struct dentry d __attribute__ ((unused)); | |
32920 | ||
32921 | d.d_op = &test_d_op; | |
32922 | ||
32923 | ; | |
32924 | return 0; | |
32925 | } | |
32926 | ||
32927 | _ACEOF | |
32928 | ||
32929 | ||
32930 | ||
32931 | cat - <<_ACEOF >conftest.h | |
32932 | ||
32933 | _ACEOF | |
32934 | ||
32935 | ||
32936 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
32937 | echo "obj-m := conftest.o" >build/Makefile | |
32938 | modpost_flag='' | |
32939 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
32940 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
32941 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32942 | (eval $ac_try) 2>&5 | |
32943 | ac_status=$? | |
32944 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32945 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
32946 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
32947 | (eval $ac_try) 2>&5 | |
32948 | ac_status=$? | |
32949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
32950 | test $ac_status = 0; }; }; then : | |
32951 | ||
32952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
32953 | $as_echo "yes" >&6; } | |
32954 | ||
32955 | $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h | |
32956 | ||
32957 | ||
32958 | else | |
32959 | $as_echo "$as_me: failed program was:" >&5 | |
32960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32961 | ||
32962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
32963 | $as_echo "no" >&6; } | |
32964 | ||
32965 | ||
32966 | ||
32967 | fi | |
32968 | rm -Rf build | |
32969 | ||
32970 | ||
32971 | ||
32972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5 | |
32973 | $as_echo_n "checking whether check_disk_size_change() is available... " >&6; } | |
32974 | ||
32975 | ||
32976 | ||
32977 | cat confdefs.h - <<_ACEOF >conftest.c | |
32978 | ||
32979 | ||
32980 | #include <linux/fs.h> | |
32981 | ||
32982 | int | |
32983 | main (void) | |
32984 | { | |
32985 | ||
32986 | check_disk_size_change(NULL, NULL); | |
32987 | ||
32988 | ; | |
32989 | return 0; | |
32990 | } | |
32991 | ||
32992 | _ACEOF | |
32993 | ||
32994 | ||
32995 | ||
32996 | cat - <<_ACEOF >conftest.h | |
32997 | ||
32998 | _ACEOF | |
32999 | ||
33000 | ||
33001 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33002 | echo "obj-m := conftest.o" >build/Makefile | |
33003 | modpost_flag='' | |
33004 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33005 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33006 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33007 | (eval $ac_try) 2>&5 | |
33008 | ac_status=$? | |
33009 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33010 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33011 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33012 | (eval $ac_try) 2>&5 | |
33013 | ac_status=$? | |
33014 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33015 | test $ac_status = 0; }; }; then : | |
33016 | rc=0 | |
33017 | else | |
33018 | $as_echo "$as_me: failed program was:" >&5 | |
33019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33020 | rc=1 | |
33021 | ||
33022 | ||
33023 | fi | |
33024 | rm -Rf build | |
33025 | ||
33026 | ||
33027 | if test $rc -ne 0; then : | |
33028 | ||
33029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33030 | $as_echo "no" >&6; } | |
33031 | ||
33032 | else | |
33033 | if test "x$enable_linux_builtin" != xyes; then | |
33034 | ||
33035 | grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \ | |
33036 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33037 | rc=$? | |
33038 | if test $rc -ne 0; then | |
33039 | export=0 | |
33040 | for file in fs/block_dev.c; do | |
33041 | grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \ | |
33042 | "$LINUX/$file" 2>/dev/null | |
33043 | rc=$? | |
33044 | if test $rc -eq 0; then | |
33045 | export=1 | |
33046 | break; | |
33047 | fi | |
33048 | done | |
33049 | if test $export -eq 0; then : | |
33050 | rc=1 | |
33051 | else : | |
33052 | rc=0 | |
33053 | fi | |
33054 | else : | |
33055 | rc=0 | |
33056 | fi | |
33057 | ||
33058 | fi | |
33059 | if test $rc -ne 0; then : | |
33060 | ||
33061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33062 | $as_echo "no" >&6; } | |
33063 | ||
33064 | else : | |
33065 | ||
33066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33067 | $as_echo "yes" >&6; } | |
33068 | ||
33069 | $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h | |
33070 | ||
33071 | ||
33072 | fi | |
33073 | fi | |
33074 | ||
33075 | ||
33076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5 | |
33077 | $as_echo_n "checking whether truncate_setsize() is available... " >&6; } | |
33078 | ||
33079 | ||
33080 | ||
33081 | cat confdefs.h - <<_ACEOF >conftest.c | |
33082 | ||
33083 | ||
33084 | #include <linux/mm.h> | |
33085 | ||
33086 | int | |
33087 | main (void) | |
33088 | { | |
33089 | ||
33090 | truncate_setsize(NULL, 0); | |
33091 | ||
33092 | ; | |
33093 | return 0; | |
33094 | } | |
33095 | ||
33096 | _ACEOF | |
33097 | ||
33098 | ||
33099 | ||
33100 | cat - <<_ACEOF >conftest.h | |
33101 | ||
33102 | _ACEOF | |
33103 | ||
33104 | ||
33105 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33106 | echo "obj-m := conftest.o" >build/Makefile | |
33107 | modpost_flag='' | |
33108 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33109 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33110 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33111 | (eval $ac_try) 2>&5 | |
33112 | ac_status=$? | |
33113 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33114 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33115 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33116 | (eval $ac_try) 2>&5 | |
33117 | ac_status=$? | |
33118 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33119 | test $ac_status = 0; }; }; then : | |
33120 | rc=0 | |
33121 | else | |
33122 | $as_echo "$as_me: failed program was:" >&5 | |
33123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33124 | rc=1 | |
33125 | ||
33126 | ||
33127 | fi | |
33128 | rm -Rf build | |
33129 | ||
33130 | ||
33131 | if test $rc -ne 0; then : | |
33132 | ||
33133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33134 | $as_echo "no" >&6; } | |
33135 | ||
33136 | else | |
33137 | if test "x$enable_linux_builtin" != xyes; then | |
33138 | ||
33139 | grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \ | |
33140 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33141 | rc=$? | |
33142 | if test $rc -ne 0; then | |
33143 | export=0 | |
33144 | for file in mm/truncate.c; do | |
33145 | grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \ | |
33146 | "$LINUX/$file" 2>/dev/null | |
33147 | rc=$? | |
33148 | if test $rc -eq 0; then | |
33149 | export=1 | |
33150 | break; | |
33151 | fi | |
33152 | done | |
33153 | if test $export -eq 0; then : | |
33154 | rc=1 | |
33155 | else : | |
33156 | rc=0 | |
33157 | fi | |
33158 | else : | |
33159 | rc=0 | |
33160 | fi | |
33161 | ||
33162 | fi | |
33163 | if test $rc -ne 0; then : | |
33164 | ||
33165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33166 | $as_echo "no" >&6; } | |
33167 | ||
33168 | else : | |
33169 | ||
33170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33171 | $as_echo "yes" >&6; } | |
33172 | ||
33173 | $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h | |
33174 | ||
33175 | ||
33176 | fi | |
33177 | fi | |
33178 | ||
33179 | ||
33180 | ||
33181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5 | |
33182 | $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; } | |
33183 | ||
33184 | ||
33185 | cat confdefs.h - <<_ACEOF >conftest.c | |
33186 | ||
33187 | ||
33188 | #include <linux/security.h> | |
33189 | ||
33190 | int | |
33191 | main (void) | |
33192 | { | |
33193 | ||
33194 | struct inode *ip __attribute__ ((unused)) = NULL; | |
33195 | struct inode *dip __attribute__ ((unused)) = NULL; | |
33196 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
33197 | char *name __attribute__ ((unused)) = NULL; | |
33198 | void *value __attribute__ ((unused)) = NULL; | |
33199 | size_t len __attribute__ ((unused)) = 0; | |
33200 | ||
33201 | security_inode_init_security(ip, dip, str, &name, &value, &len); | |
33202 | ||
33203 | ; | |
33204 | return 0; | |
33205 | } | |
33206 | ||
33207 | _ACEOF | |
33208 | ||
33209 | ||
33210 | ||
33211 | cat - <<_ACEOF >conftest.h | |
33212 | ||
33213 | _ACEOF | |
33214 | ||
33215 | ||
33216 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33217 | echo "obj-m := conftest.o" >build/Makefile | |
33218 | modpost_flag='' | |
33219 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33220 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33221 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33222 | (eval $ac_try) 2>&5 | |
33223 | ac_status=$? | |
33224 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33225 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33226 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33227 | (eval $ac_try) 2>&5 | |
33228 | ac_status=$? | |
33229 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33230 | test $ac_status = 0; }; }; then : | |
33231 | ||
33232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33233 | $as_echo "yes" >&6; } | |
33234 | ||
33235 | $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h | |
33236 | ||
33237 | ||
33238 | else | |
33239 | $as_echo "$as_me: failed program was:" >&5 | |
33240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33241 | ||
33242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33243 | $as_echo "no" >&6; } | |
33244 | ||
33245 | ||
33246 | ||
33247 | fi | |
33248 | rm -Rf build | |
33249 | ||
33250 | ||
33251 | ||
33252 | ||
33253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5 | |
33254 | $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; } | |
33255 | ||
33256 | ||
33257 | cat confdefs.h - <<_ACEOF >conftest.c | |
33258 | ||
33259 | ||
33260 | #include <linux/security.h> | |
33261 | ||
33262 | int | |
33263 | main (void) | |
33264 | { | |
33265 | ||
33266 | struct inode *ip __attribute__ ((unused)) = NULL; | |
33267 | struct inode *dip __attribute__ ((unused)) = NULL; | |
33268 | const struct qstr *str __attribute__ ((unused)) = NULL; | |
33269 | initxattrs func __attribute__ ((unused)) = NULL; | |
33270 | ||
33271 | security_inode_init_security(ip, dip, str, func, NULL); | |
33272 | ||
33273 | ; | |
33274 | return 0; | |
33275 | } | |
33276 | ||
33277 | _ACEOF | |
33278 | ||
33279 | ||
33280 | ||
33281 | cat - <<_ACEOF >conftest.h | |
33282 | ||
33283 | _ACEOF | |
33284 | ||
33285 | ||
33286 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33287 | echo "obj-m := conftest.o" >build/Makefile | |
33288 | modpost_flag='' | |
33289 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33290 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33291 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33292 | (eval $ac_try) 2>&5 | |
33293 | ac_status=$? | |
33294 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33295 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33296 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33297 | (eval $ac_try) 2>&5 | |
33298 | ac_status=$? | |
33299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33300 | test $ac_status = 0; }; }; then : | |
33301 | ||
33302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33303 | $as_echo "yes" >&6; } | |
33304 | ||
33305 | $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h | |
33306 | ||
33307 | ||
33308 | else | |
33309 | $as_echo "$as_me: failed program was:" >&5 | |
33310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33311 | ||
33312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33313 | $as_echo "no" >&6; } | |
33314 | ||
33315 | ||
33316 | ||
33317 | fi | |
33318 | rm -Rf build | |
33319 | ||
33320 | ||
33321 | ||
33322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5 | |
33323 | $as_echo_n "checking whether mount_nodev() is available... " >&6; } | |
33324 | ||
33325 | ||
33326 | ||
33327 | cat confdefs.h - <<_ACEOF >conftest.c | |
33328 | ||
33329 | ||
33330 | #include <linux/fs.h> | |
33331 | ||
33332 | int | |
33333 | main (void) | |
33334 | { | |
33335 | ||
33336 | mount_nodev(NULL, 0, NULL, NULL); | |
33337 | ||
33338 | ; | |
33339 | return 0; | |
33340 | } | |
33341 | ||
33342 | _ACEOF | |
33343 | ||
33344 | ||
33345 | ||
33346 | cat - <<_ACEOF >conftest.h | |
33347 | ||
33348 | _ACEOF | |
33349 | ||
33350 | ||
33351 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33352 | echo "obj-m := conftest.o" >build/Makefile | |
33353 | modpost_flag='' | |
33354 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33355 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33356 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33357 | (eval $ac_try) 2>&5 | |
33358 | ac_status=$? | |
33359 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33360 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33361 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33362 | (eval $ac_try) 2>&5 | |
33363 | ac_status=$? | |
33364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33365 | test $ac_status = 0; }; }; then : | |
33366 | rc=0 | |
33367 | else | |
33368 | $as_echo "$as_me: failed program was:" >&5 | |
33369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33370 | rc=1 | |
33371 | ||
33372 | ||
33373 | fi | |
33374 | rm -Rf build | |
33375 | ||
33376 | ||
33377 | if test $rc -ne 0; then : | |
33378 | ||
33379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33380 | $as_echo "no" >&6; } | |
33381 | ||
33382 | else | |
33383 | if test "x$enable_linux_builtin" != xyes; then | |
33384 | ||
33385 | grep -q -E '[[:space:]]mount_nodev[[:space:]]' \ | |
33386 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33387 | rc=$? | |
33388 | if test $rc -ne 0; then | |
33389 | export=0 | |
33390 | for file in fs/super.c; do | |
33391 | grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \ | |
33392 | "$LINUX/$file" 2>/dev/null | |
33393 | rc=$? | |
33394 | if test $rc -eq 0; then | |
33395 | export=1 | |
33396 | break; | |
33397 | fi | |
33398 | done | |
33399 | if test $export -eq 0; then : | |
33400 | rc=1 | |
33401 | else : | |
33402 | rc=0 | |
33403 | fi | |
33404 | else : | |
33405 | rc=0 | |
33406 | fi | |
33407 | ||
33408 | fi | |
33409 | if test $rc -ne 0; then : | |
33410 | ||
33411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33412 | $as_echo "no" >&6; } | |
33413 | ||
33414 | else : | |
33415 | ||
33416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33417 | $as_echo "yes" >&6; } | |
33418 | ||
33419 | $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h | |
33420 | ||
33421 | ||
33422 | fi | |
33423 | fi | |
33424 | ||
33425 | ||
33426 | ||
33427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5 | |
33428 | $as_echo_n "checking whether super_block has s_shrink... " >&6; } | |
33429 | ||
33430 | ||
33431 | cat confdefs.h - <<_ACEOF >conftest.c | |
33432 | ||
33433 | ||
33434 | #include <linux/fs.h> | |
33435 | ||
33436 | int shrink(struct shrinker *s, struct shrink_control *sc) | |
33437 | { return 0; } | |
33438 | ||
33439 | static const struct super_block | |
33440 | sb __attribute__ ((unused)) = { | |
33441 | .s_shrink.shrink = shrink, | |
33442 | .s_shrink.seeks = DEFAULT_SEEKS, | |
33443 | .s_shrink.batch = 0, | |
33444 | }; | |
33445 | ||
33446 | int | |
33447 | main (void) | |
33448 | { | |
33449 | ||
33450 | ||
33451 | ; | |
33452 | return 0; | |
33453 | } | |
33454 | ||
33455 | _ACEOF | |
33456 | ||
33457 | ||
33458 | ||
33459 | cat - <<_ACEOF >conftest.h | |
33460 | ||
33461 | _ACEOF | |
33462 | ||
33463 | ||
33464 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33465 | echo "obj-m := conftest.o" >build/Makefile | |
33466 | modpost_flag='' | |
33467 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33468 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33469 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33470 | (eval $ac_try) 2>&5 | |
33471 | ac_status=$? | |
33472 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33473 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33474 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33475 | (eval $ac_try) 2>&5 | |
33476 | ac_status=$? | |
33477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33478 | test $ac_status = 0; }; }; then : | |
33479 | ||
33480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33481 | $as_echo "yes" >&6; } | |
33482 | ||
33483 | $as_echo "#define HAVE_SHRINK 1" >>confdefs.h | |
33484 | ||
33485 | ||
33486 | ||
33487 | else | |
33488 | $as_echo "$as_me: failed program was:" >&5 | |
33489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33490 | ||
33491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33492 | $as_echo "no" >&6; } | |
33493 | ||
33494 | ||
33495 | ||
33496 | fi | |
33497 | rm -Rf build | |
33498 | ||
33499 | ||
33500 | ||
33501 | ||
33502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5 | |
33503 | $as_echo_n "checking whether shrink_control has nid... " >&6; } | |
33504 | ||
33505 | ||
33506 | cat confdefs.h - <<_ACEOF >conftest.c | |
33507 | ||
33508 | ||
33509 | #include <linux/fs.h> | |
33510 | ||
33511 | int | |
33512 | main (void) | |
33513 | { | |
33514 | ||
33515 | struct shrink_control sc __attribute__ ((unused)); | |
33516 | unsigned long scnidsize __attribute__ ((unused)) = | |
33517 | sizeof(sc.nid); | |
33518 | ||
33519 | ; | |
33520 | return 0; | |
33521 | } | |
33522 | ||
33523 | _ACEOF | |
33524 | ||
33525 | ||
33526 | ||
33527 | cat - <<_ACEOF >conftest.h | |
33528 | ||
33529 | _ACEOF | |
33530 | ||
33531 | ||
33532 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33533 | echo "obj-m := conftest.o" >build/Makefile | |
33534 | modpost_flag='' | |
33535 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33536 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33537 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33538 | (eval $ac_try) 2>&5 | |
33539 | ac_status=$? | |
33540 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33541 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33542 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33543 | (eval $ac_try) 2>&5 | |
33544 | ac_status=$? | |
33545 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33546 | test $ac_status = 0; }; }; then : | |
33547 | ||
33548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33549 | $as_echo "yes" >&6; } | |
33550 | ||
33551 | $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h | |
33552 | ||
33553 | ||
33554 | else | |
33555 | $as_echo "$as_me: failed program was:" >&5 | |
33556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33557 | ||
33558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33559 | $as_echo "no" >&6; } | |
33560 | ||
33561 | ||
33562 | ||
33563 | fi | |
33564 | rm -Rf build | |
33565 | ||
33566 | ||
33567 | ||
33568 | ||
33569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5 | |
33570 | $as_echo_n "checking whether super_block has s_instances list_head... " >&6; } | |
33571 | ||
33572 | ||
33573 | cat confdefs.h - <<_ACEOF >conftest.c | |
33574 | ||
33575 | ||
33576 | #include <linux/fs.h> | |
33577 | ||
33578 | int | |
33579 | main (void) | |
33580 | { | |
33581 | ||
33582 | struct super_block sb __attribute__ ((unused)); | |
33583 | ||
33584 | INIT_LIST_HEAD(&sb.s_instances); | |
33585 | ||
33586 | ; | |
33587 | return 0; | |
33588 | } | |
33589 | ||
33590 | _ACEOF | |
33591 | ||
33592 | ||
33593 | ||
33594 | cat - <<_ACEOF >conftest.h | |
33595 | ||
33596 | _ACEOF | |
33597 | ||
33598 | ||
33599 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33600 | echo "obj-m := conftest.o" >build/Makefile | |
33601 | modpost_flag='' | |
33602 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33603 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33604 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33605 | (eval $ac_try) 2>&5 | |
33606 | ac_status=$? | |
33607 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33608 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33609 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33610 | (eval $ac_try) 2>&5 | |
33611 | ac_status=$? | |
33612 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33613 | test $ac_status = 0; }; }; then : | |
33614 | ||
33615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33616 | $as_echo "yes" >&6; } | |
33617 | ||
33618 | $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h | |
33619 | ||
33620 | ||
33621 | else | |
33622 | $as_echo "$as_me: failed program was:" >&5 | |
33623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33624 | ||
33625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33626 | $as_echo "no" >&6; } | |
33627 | ||
33628 | ||
33629 | ||
33630 | fi | |
33631 | rm -Rf build | |
33632 | ||
33633 | ||
33634 | ||
33635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5 | |
33636 | $as_echo_n "checking whether super_block has s_d_op... " >&6; } | |
33637 | ||
33638 | ||
33639 | cat confdefs.h - <<_ACEOF >conftest.c | |
33640 | ||
33641 | ||
33642 | #include <linux/fs.h> | |
33643 | ||
33644 | int | |
33645 | main (void) | |
33646 | { | |
33647 | ||
33648 | struct super_block sb __attribute__ ((unused)); | |
33649 | sb.s_d_op = NULL; | |
33650 | ||
33651 | ; | |
33652 | return 0; | |
33653 | } | |
33654 | ||
33655 | _ACEOF | |
33656 | ||
33657 | ||
33658 | ||
33659 | cat - <<_ACEOF >conftest.h | |
33660 | ||
33661 | _ACEOF | |
33662 | ||
33663 | ||
33664 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33665 | echo "obj-m := conftest.o" >build/Makefile | |
33666 | modpost_flag='' | |
33667 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33668 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33669 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33670 | (eval $ac_try) 2>&5 | |
33671 | ac_status=$? | |
33672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33673 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33674 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33675 | (eval $ac_try) 2>&5 | |
33676 | ac_status=$? | |
33677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33678 | test $ac_status = 0; }; }; then : | |
33679 | ||
33680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33681 | $as_echo "yes" >&6; } | |
33682 | ||
33683 | $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h | |
33684 | ||
33685 | ||
33686 | else | |
33687 | $as_echo "$as_me: failed program was:" >&5 | |
33688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33689 | ||
33690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33691 | $as_echo "no" >&6; } | |
33692 | ||
33693 | ||
33694 | ||
33695 | fi | |
33696 | rm -Rf build | |
33697 | ||
33698 | ||
33699 | ||
33700 | ||
33701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5 | |
33702 | $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; } | |
33703 | ||
33704 | ||
33705 | ||
33706 | cat confdefs.h - <<_ACEOF >conftest.c | |
33707 | ||
33708 | ||
33709 | #include <linux/backing-dev.h> | |
33710 | struct backing_dev_info bdi; | |
33711 | ||
33712 | int | |
33713 | main (void) | |
33714 | { | |
33715 | ||
33716 | char *name = "bdi"; | |
33717 | int error __attribute__((unused)) = | |
33718 | bdi_setup_and_register(&bdi, name); | |
33719 | ||
33720 | ; | |
33721 | return 0; | |
33722 | } | |
33723 | ||
33724 | _ACEOF | |
33725 | ||
33726 | ||
33727 | ||
33728 | cat - <<_ACEOF >conftest.h | |
33729 | ||
33730 | _ACEOF | |
33731 | ||
33732 | ||
33733 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33734 | echo "obj-m := conftest.o" >build/Makefile | |
33735 | modpost_flag='' | |
33736 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33737 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33738 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33739 | (eval $ac_try) 2>&5 | |
33740 | ac_status=$? | |
33741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33742 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33743 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33744 | (eval $ac_try) 2>&5 | |
33745 | ac_status=$? | |
33746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33747 | test $ac_status = 0; }; }; then : | |
33748 | rc=0 | |
33749 | else | |
33750 | $as_echo "$as_me: failed program was:" >&5 | |
33751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33752 | rc=1 | |
33753 | ||
33754 | ||
33755 | fi | |
33756 | rm -Rf build | |
33757 | ||
33758 | ||
33759 | if test $rc -ne 0; then : | |
33760 | ||
33761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33762 | $as_echo "no" >&6; } | |
33763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
33764 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
33765 | ||
33766 | ||
33767 | ||
33768 | cat confdefs.h - <<_ACEOF >conftest.c | |
33769 | ||
33770 | ||
33771 | #include <linux/backing-dev.h> | |
33772 | struct backing_dev_info bdi; | |
33773 | ||
33774 | int | |
33775 | main (void) | |
33776 | { | |
33777 | ||
33778 | char *name = "bdi"; | |
33779 | unsigned int cap = BDI_CAP_MAP_COPY; | |
33780 | int error __attribute__((unused)) = | |
33781 | bdi_setup_and_register(&bdi, name, cap); | |
33782 | ||
33783 | ; | |
33784 | return 0; | |
33785 | } | |
33786 | ||
33787 | _ACEOF | |
33788 | ||
33789 | ||
33790 | ||
33791 | cat - <<_ACEOF >conftest.h | |
33792 | ||
33793 | _ACEOF | |
33794 | ||
33795 | ||
33796 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33797 | echo "obj-m := conftest.o" >build/Makefile | |
33798 | modpost_flag='' | |
33799 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33800 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33801 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33802 | (eval $ac_try) 2>&5 | |
33803 | ac_status=$? | |
33804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33805 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33806 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33807 | (eval $ac_try) 2>&5 | |
33808 | ac_status=$? | |
33809 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33810 | test $ac_status = 0; }; }; then : | |
33811 | rc=0 | |
33812 | else | |
33813 | $as_echo "$as_me: failed program was:" >&5 | |
33814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33815 | rc=1 | |
33816 | ||
33817 | ||
33818 | fi | |
33819 | rm -Rf build | |
33820 | ||
33821 | ||
33822 | if test $rc -ne 0; then : | |
33823 | ||
33824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33825 | $as_echo "no" >&6; } | |
33826 | ||
33827 | else | |
33828 | if test "x$enable_linux_builtin" != xyes; then | |
33829 | ||
33830 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
33831 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33832 | rc=$? | |
33833 | if test $rc -ne 0; then | |
33834 | export=0 | |
33835 | for file in mm/backing-dev.c; do | |
33836 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
33837 | "$LINUX/$file" 2>/dev/null | |
33838 | rc=$? | |
33839 | if test $rc -eq 0; then | |
33840 | export=1 | |
33841 | break; | |
33842 | fi | |
33843 | done | |
33844 | if test $export -eq 0; then : | |
33845 | rc=1 | |
33846 | else : | |
33847 | rc=0 | |
33848 | fi | |
33849 | else : | |
33850 | rc=0 | |
33851 | fi | |
33852 | ||
33853 | fi | |
33854 | if test $rc -ne 0; then : | |
33855 | ||
33856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33857 | $as_echo "no" >&6; } | |
33858 | ||
33859 | else : | |
33860 | ||
33861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
33862 | $as_echo "yes" >&6; } | |
33863 | ||
33864 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
33865 | ||
33866 | ||
33867 | fi | |
33868 | fi | |
33869 | ||
33870 | ||
33871 | else | |
33872 | if test "x$enable_linux_builtin" != xyes; then | |
33873 | ||
33874 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
33875 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33876 | rc=$? | |
33877 | if test $rc -ne 0; then | |
33878 | export=0 | |
33879 | for file in mm/backing-dev.c; do | |
33880 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
33881 | "$LINUX/$file" 2>/dev/null | |
33882 | rc=$? | |
33883 | if test $rc -eq 0; then | |
33884 | export=1 | |
33885 | break; | |
33886 | fi | |
33887 | done | |
33888 | if test $export -eq 0; then : | |
33889 | rc=1 | |
33890 | else : | |
33891 | rc=0 | |
33892 | fi | |
33893 | else : | |
33894 | rc=0 | |
33895 | fi | |
33896 | ||
33897 | fi | |
33898 | if test $rc -ne 0; then : | |
33899 | ||
33900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33901 | $as_echo "no" >&6; } | |
33902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5 | |
33903 | $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; } | |
33904 | ||
33905 | ||
33906 | ||
33907 | cat confdefs.h - <<_ACEOF >conftest.c | |
33908 | ||
33909 | ||
33910 | #include <linux/backing-dev.h> | |
33911 | struct backing_dev_info bdi; | |
33912 | ||
33913 | int | |
33914 | main (void) | |
33915 | { | |
33916 | ||
33917 | char *name = "bdi"; | |
33918 | unsigned int cap = BDI_CAP_MAP_COPY; | |
33919 | int error __attribute__((unused)) = | |
33920 | bdi_setup_and_register(&bdi, name, cap); | |
33921 | ||
33922 | ; | |
33923 | return 0; | |
33924 | } | |
33925 | ||
33926 | _ACEOF | |
33927 | ||
33928 | ||
33929 | ||
33930 | cat - <<_ACEOF >conftest.h | |
33931 | ||
33932 | _ACEOF | |
33933 | ||
33934 | ||
33935 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
33936 | echo "obj-m := conftest.o" >build/Makefile | |
33937 | modpost_flag='' | |
33938 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
33939 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
33940 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33941 | (eval $ac_try) 2>&5 | |
33942 | ac_status=$? | |
33943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33944 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
33945 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
33946 | (eval $ac_try) 2>&5 | |
33947 | ac_status=$? | |
33948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
33949 | test $ac_status = 0; }; }; then : | |
33950 | rc=0 | |
33951 | else | |
33952 | $as_echo "$as_me: failed program was:" >&5 | |
33953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33954 | rc=1 | |
33955 | ||
33956 | ||
33957 | fi | |
33958 | rm -Rf build | |
33959 | ||
33960 | ||
33961 | if test $rc -ne 0; then : | |
33962 | ||
33963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33964 | $as_echo "no" >&6; } | |
33965 | ||
33966 | else | |
33967 | if test "x$enable_linux_builtin" != xyes; then | |
33968 | ||
33969 | grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \ | |
33970 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
33971 | rc=$? | |
33972 | if test $rc -ne 0; then | |
33973 | export=0 | |
33974 | for file in mm/backing-dev.c; do | |
33975 | grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \ | |
33976 | "$LINUX/$file" 2>/dev/null | |
33977 | rc=$? | |
33978 | if test $rc -eq 0; then | |
33979 | export=1 | |
33980 | break; | |
33981 | fi | |
33982 | done | |
33983 | if test $export -eq 0; then : | |
33984 | rc=1 | |
33985 | else : | |
33986 | rc=0 | |
33987 | fi | |
33988 | else : | |
33989 | rc=0 | |
33990 | fi | |
33991 | ||
33992 | fi | |
33993 | if test $rc -ne 0; then : | |
33994 | ||
33995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
33996 | $as_echo "no" >&6; } | |
33997 | ||
33998 | else : | |
33999 | ||
34000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34001 | $as_echo "yes" >&6; } | |
34002 | ||
34003 | $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
34004 | ||
34005 | ||
34006 | fi | |
34007 | fi | |
34008 | ||
34009 | ||
34010 | else : | |
34011 | ||
34012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34013 | $as_echo "yes" >&6; } | |
34014 | ||
34015 | $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h | |
34016 | ||
34017 | ||
34018 | fi | |
34019 | fi | |
34020 | ||
34021 | ||
34022 | ||
34023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5 | |
34024 | $as_echo_n "checking whether set_nlink() is available... " >&6; } | |
34025 | ||
34026 | ||
34027 | cat confdefs.h - <<_ACEOF >conftest.c | |
34028 | ||
34029 | ||
34030 | #include <linux/fs.h> | |
34031 | ||
34032 | int | |
34033 | main (void) | |
34034 | { | |
34035 | ||
34036 | struct inode node; | |
34037 | unsigned int link = 0; | |
34038 | (void) set_nlink(&node, link); | |
34039 | ||
34040 | ; | |
34041 | return 0; | |
34042 | } | |
34043 | ||
34044 | _ACEOF | |
34045 | ||
34046 | ||
34047 | ||
34048 | cat - <<_ACEOF >conftest.h | |
34049 | ||
34050 | _ACEOF | |
34051 | ||
34052 | ||
34053 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34054 | echo "obj-m := conftest.o" >build/Makefile | |
34055 | modpost_flag='' | |
34056 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34057 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34058 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34059 | (eval $ac_try) 2>&5 | |
34060 | ac_status=$? | |
34061 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34062 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34063 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34064 | (eval $ac_try) 2>&5 | |
34065 | ac_status=$? | |
34066 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34067 | test $ac_status = 0; }; }; then : | |
34068 | ||
34069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34070 | $as_echo "yes" >&6; } | |
34071 | ||
34072 | $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h | |
34073 | ||
34074 | ||
34075 | else | |
34076 | $as_echo "$as_me: failed program was:" >&5 | |
34077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34078 | ||
34079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34080 | $as_echo "no" >&6; } | |
34081 | ||
34082 | ||
34083 | ||
34084 | fi | |
34085 | rm -Rf build | |
34086 | ||
34087 | ||
34088 | ||
34089 | ||
34090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5 | |
34091 | $as_echo_n "checking whether elevator_change() is available... " >&6; } | |
34092 | tmp_flags="$EXTRA_KCFLAGS" | |
34093 | EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}" | |
34094 | ||
34095 | ||
34096 | cat confdefs.h - <<_ACEOF >conftest.c | |
34097 | ||
34098 | ||
34099 | #include <linux/blkdev.h> | |
34100 | #include <linux/elevator.h> | |
34101 | ||
34102 | int | |
34103 | main (void) | |
34104 | { | |
34105 | ||
34106 | int ret; | |
34107 | struct request_queue *q = NULL; | |
34108 | char *elevator = NULL; | |
34109 | ret = elevator_change(q, elevator); | |
34110 | ||
34111 | ; | |
34112 | return 0; | |
34113 | } | |
34114 | ||
34115 | _ACEOF | |
34116 | ||
34117 | ||
34118 | ||
34119 | cat - <<_ACEOF >conftest.h | |
34120 | ||
34121 | _ACEOF | |
34122 | ||
34123 | ||
34124 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34125 | echo "obj-m := conftest.o" >build/Makefile | |
34126 | modpost_flag='' | |
34127 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34128 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34129 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34130 | (eval $ac_try) 2>&5 | |
34131 | ac_status=$? | |
34132 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34133 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34134 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34135 | (eval $ac_try) 2>&5 | |
34136 | ac_status=$? | |
34137 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34138 | test $ac_status = 0; }; }; then : | |
34139 | ||
34140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34141 | $as_echo "yes" >&6; } | |
34142 | ||
34143 | $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h | |
34144 | ||
34145 | ||
34146 | else | |
34147 | $as_echo "$as_me: failed program was:" >&5 | |
34148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34149 | ||
34150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34151 | $as_echo "no" >&6; } | |
34152 | ||
34153 | ||
34154 | ||
34155 | fi | |
34156 | rm -Rf build | |
34157 | ||
34158 | ||
34159 | EXTRA_KCFLAGS="$tmp_flags" | |
34160 | ||
34161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5 | |
34162 | $as_echo_n "checking whether sget() wants 5 args... " >&6; } | |
34163 | ||
34164 | ||
34165 | cat confdefs.h - <<_ACEOF >conftest.c | |
34166 | ||
34167 | ||
34168 | #include <linux/fs.h> | |
34169 | ||
34170 | int | |
34171 | main (void) | |
34172 | { | |
34173 | ||
34174 | struct file_system_type *type = NULL; | |
34175 | int (*test)(struct super_block *,void *) = NULL; | |
34176 | int (*set)(struct super_block *,void *) = NULL; | |
34177 | int flags = 0; | |
34178 | void *data = NULL; | |
34179 | (void) sget(type, test, set, flags, data); | |
34180 | ||
34181 | ; | |
34182 | return 0; | |
34183 | } | |
34184 | ||
34185 | _ACEOF | |
34186 | ||
34187 | ||
34188 | ||
34189 | cat - <<_ACEOF >conftest.h | |
34190 | ||
34191 | _ACEOF | |
34192 | ||
34193 | ||
34194 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34195 | echo "obj-m := conftest.o" >build/Makefile | |
34196 | modpost_flag='' | |
34197 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34198 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34199 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34200 | (eval $ac_try) 2>&5 | |
34201 | ac_status=$? | |
34202 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34203 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34204 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34205 | (eval $ac_try) 2>&5 | |
34206 | ac_status=$? | |
34207 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34208 | test $ac_status = 0; }; }; then : | |
34209 | ||
34210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34211 | $as_echo "yes" >&6; } | |
34212 | ||
34213 | $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h | |
34214 | ||
34215 | ||
34216 | else | |
34217 | $as_echo "$as_me: failed program was:" >&5 | |
34218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34219 | ||
34220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34221 | $as_echo "no" >&6; } | |
34222 | ||
34223 | ||
34224 | ||
34225 | fi | |
34226 | rm -Rf build | |
34227 | ||
34228 | ||
34229 | ||
34230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5 | |
34231 | $as_echo_n "checking whether lseek_execute() is available... " >&6; } | |
34232 | ||
34233 | ||
34234 | ||
34235 | cat confdefs.h - <<_ACEOF >conftest.c | |
34236 | ||
34237 | ||
34238 | #include <linux/fs.h> | |
34239 | ||
34240 | int | |
34241 | main (void) | |
34242 | { | |
34243 | ||
34244 | struct file *fp __attribute__ ((unused)) = NULL; | |
34245 | struct inode *ip __attribute__ ((unused)) = NULL; | |
34246 | loff_t offset __attribute__ ((unused)) = 0; | |
34247 | loff_t maxsize __attribute__ ((unused)) = 0; | |
34248 | ||
34249 | lseek_execute(fp, ip, offset, maxsize); | |
34250 | ||
34251 | ; | |
34252 | return 0; | |
34253 | } | |
34254 | ||
34255 | _ACEOF | |
34256 | ||
34257 | ||
34258 | ||
34259 | cat - <<_ACEOF >conftest.h | |
34260 | ||
34261 | _ACEOF | |
34262 | ||
34263 | ||
34264 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34265 | echo "obj-m := conftest.o" >build/Makefile | |
34266 | modpost_flag='' | |
34267 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34268 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34269 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34270 | (eval $ac_try) 2>&5 | |
34271 | ac_status=$? | |
34272 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34273 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34274 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34275 | (eval $ac_try) 2>&5 | |
34276 | ac_status=$? | |
34277 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34278 | test $ac_status = 0; }; }; then : | |
34279 | rc=0 | |
34280 | else | |
34281 | $as_echo "$as_me: failed program was:" >&5 | |
34282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34283 | rc=1 | |
34284 | ||
34285 | ||
34286 | fi | |
34287 | rm -Rf build | |
34288 | ||
34289 | ||
34290 | if test $rc -ne 0; then : | |
34291 | ||
34292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34293 | $as_echo "no" >&6; } | |
34294 | ||
34295 | else | |
34296 | if test "x$enable_linux_builtin" != xyes; then | |
34297 | ||
34298 | grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \ | |
34299 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
34300 | rc=$? | |
34301 | if test $rc -ne 0; then | |
34302 | export=0 | |
34303 | for file in fs/read_write.c; do | |
34304 | grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \ | |
34305 | "$LINUX/$file" 2>/dev/null | |
34306 | rc=$? | |
34307 | if test $rc -eq 0; then | |
34308 | export=1 | |
34309 | break; | |
34310 | fi | |
34311 | done | |
34312 | if test $export -eq 0; then : | |
34313 | rc=1 | |
34314 | else : | |
34315 | rc=0 | |
34316 | fi | |
34317 | else : | |
34318 | rc=0 | |
34319 | fi | |
34320 | ||
34321 | fi | |
34322 | if test $rc -ne 0; then : | |
34323 | ||
34324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34325 | $as_echo "no" >&6; } | |
34326 | ||
34327 | else : | |
34328 | ||
34329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34330 | $as_echo "yes" >&6; } | |
34331 | ||
34332 | $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h | |
34333 | ||
34334 | ||
34335 | fi | |
34336 | fi | |
34337 | ||
34338 | ||
34339 | ||
34340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5 | |
34341 | $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; } | |
34342 | ||
34343 | ||
34344 | cat confdefs.h - <<_ACEOF >conftest.c | |
34345 | ||
34346 | ||
34347 | #include <linux/fs.h> | |
34348 | int iterate(struct file *filp, struct dir_context * context) | |
34349 | { return 0; } | |
34350 | ||
34351 | static const struct file_operations fops | |
34352 | __attribute__ ((unused)) = { | |
34353 | .iterate_shared = iterate, | |
34354 | }; | |
34355 | ||
34356 | int | |
34357 | main (void) | |
34358 | { | |
34359 | ||
34360 | ||
34361 | ; | |
34362 | return 0; | |
34363 | } | |
34364 | ||
34365 | _ACEOF | |
34366 | ||
34367 | ||
34368 | ||
34369 | cat - <<_ACEOF >conftest.h | |
34370 | ||
34371 | _ACEOF | |
34372 | ||
34373 | ||
34374 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34375 | echo "obj-m := conftest.o" >build/Makefile | |
34376 | modpost_flag='' | |
34377 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34378 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34379 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34380 | (eval $ac_try) 2>&5 | |
34381 | ac_status=$? | |
34382 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34383 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34384 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34385 | (eval $ac_try) 2>&5 | |
34386 | ac_status=$? | |
34387 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34388 | test $ac_status = 0; }; }; then : | |
34389 | ||
34390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34391 | $as_echo "yes" >&6; } | |
34392 | ||
34393 | $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h | |
34394 | ||
34395 | ||
34396 | else | |
34397 | $as_echo "$as_me: failed program was:" >&5 | |
34398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34399 | ||
34400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34401 | $as_echo "no" >&6; } | |
34402 | ||
34403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5 | |
34404 | $as_echo_n "checking whether fops->iterate() is available... " >&6; } | |
34405 | ||
34406 | ||
34407 | cat confdefs.h - <<_ACEOF >conftest.c | |
34408 | ||
34409 | ||
34410 | #include <linux/fs.h> | |
34411 | int iterate(struct file *filp, struct dir_context * context) | |
34412 | { return 0; } | |
34413 | ||
34414 | static const struct file_operations fops | |
34415 | __attribute__ ((unused)) = { | |
34416 | .iterate = iterate, | |
34417 | }; | |
34418 | ||
34419 | int | |
34420 | main (void) | |
34421 | { | |
34422 | ||
34423 | ||
34424 | ; | |
34425 | return 0; | |
34426 | } | |
34427 | ||
34428 | _ACEOF | |
34429 | ||
34430 | ||
34431 | ||
34432 | cat - <<_ACEOF >conftest.h | |
34433 | ||
34434 | _ACEOF | |
34435 | ||
34436 | ||
34437 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34438 | echo "obj-m := conftest.o" >build/Makefile | |
34439 | modpost_flag='' | |
34440 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34441 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34442 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34443 | (eval $ac_try) 2>&5 | |
34444 | ac_status=$? | |
34445 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34446 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34447 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34448 | (eval $ac_try) 2>&5 | |
34449 | ac_status=$? | |
34450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34451 | test $ac_status = 0; }; }; then : | |
34452 | ||
34453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34454 | $as_echo "yes" >&6; } | |
34455 | ||
34456 | $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h | |
34457 | ||
34458 | ||
34459 | else | |
34460 | $as_echo "$as_me: failed program was:" >&5 | |
34461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34462 | ||
34463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34464 | $as_echo "no" >&6; } | |
34465 | ||
34466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5 | |
34467 | $as_echo_n "checking whether fops->readdir() is available... " >&6; } | |
34468 | ||
34469 | ||
34470 | cat confdefs.h - <<_ACEOF >conftest.c | |
34471 | ||
34472 | ||
34473 | #include <linux/fs.h> | |
34474 | int readdir(struct file *filp, void *entry, filldir_t func) | |
34475 | { return 0; } | |
34476 | ||
34477 | static const struct file_operations fops | |
34478 | __attribute__ ((unused)) = { | |
34479 | .readdir = readdir, | |
34480 | }; | |
34481 | ||
34482 | int | |
34483 | main (void) | |
34484 | { | |
34485 | ||
34486 | ||
34487 | ; | |
34488 | return 0; | |
34489 | } | |
34490 | ||
34491 | _ACEOF | |
34492 | ||
34493 | ||
34494 | ||
34495 | cat - <<_ACEOF >conftest.h | |
34496 | ||
34497 | _ACEOF | |
34498 | ||
34499 | ||
34500 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34501 | echo "obj-m := conftest.o" >build/Makefile | |
34502 | modpost_flag='' | |
34503 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34504 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34505 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34506 | (eval $ac_try) 2>&5 | |
34507 | ac_status=$? | |
34508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34509 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34510 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34511 | (eval $ac_try) 2>&5 | |
34512 | ac_status=$? | |
34513 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34514 | test $ac_status = 0; }; }; then : | |
34515 | ||
34516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34517 | $as_echo "yes" >&6; } | |
34518 | ||
34519 | $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h | |
34520 | ||
34521 | ||
34522 | else | |
34523 | $as_echo "$as_me: failed program was:" >&5 | |
34524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34525 | ||
34526 | as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5 | |
34527 | ||
34528 | ||
34529 | ||
34530 | fi | |
34531 | rm -Rf build | |
34532 | ||
34533 | ||
34534 | ||
34535 | ||
34536 | ||
34537 | fi | |
34538 | rm -Rf build | |
34539 | ||
34540 | ||
34541 | ||
34542 | ||
34543 | ||
34544 | fi | |
34545 | rm -Rf build | |
34546 | ||
34547 | ||
34548 | ||
34549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5 | |
34550 | $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; } | |
34551 | ||
34552 | ||
34553 | cat confdefs.h - <<_ACEOF >conftest.c | |
34554 | ||
34555 | ||
34556 | #include <linux/fs.h> | |
34557 | ||
34558 | ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to) | |
34559 | { return 0; } | |
34560 | ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from) | |
34561 | { return 0; } | |
34562 | ||
34563 | static const struct file_operations | |
34564 | fops __attribute__ ((unused)) = { | |
34565 | .read_iter = test_read, | |
34566 | .write_iter = test_write, | |
34567 | }; | |
34568 | ||
34569 | int | |
34570 | main (void) | |
34571 | { | |
34572 | ||
34573 | ||
34574 | ; | |
34575 | return 0; | |
34576 | } | |
34577 | ||
34578 | _ACEOF | |
34579 | ||
34580 | ||
34581 | ||
34582 | cat - <<_ACEOF >conftest.h | |
34583 | ||
34584 | _ACEOF | |
34585 | ||
34586 | ||
34587 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34588 | echo "obj-m := conftest.o" >build/Makefile | |
34589 | modpost_flag='' | |
34590 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34591 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34592 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34593 | (eval $ac_try) 2>&5 | |
34594 | ac_status=$? | |
34595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34596 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34597 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34598 | (eval $ac_try) 2>&5 | |
34599 | ac_status=$? | |
34600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34601 | test $ac_status = 0; }; }; then : | |
34602 | ||
34603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34604 | $as_echo "yes" >&6; } | |
34605 | ||
34606 | $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h | |
34607 | ||
34608 | ||
34609 | else | |
34610 | $as_echo "$as_me: failed program was:" >&5 | |
34611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34612 | ||
34613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34614 | $as_echo "no" >&6; } | |
34615 | ||
34616 | ||
34617 | ||
d177712e CIK |
34618 | fi |
34619 | rm -Rf build | |
34620 | ||
34621 | ||
34622 | ||
34623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5 | |
34624 | $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; } | |
34625 | ||
34626 | ||
34627 | cat confdefs.h - <<_ACEOF >conftest.c | |
34628 | ||
34629 | ||
34630 | #include <linux/fs.h> | |
34631 | ||
34632 | ||
34633 | int | |
34634 | main (void) | |
34635 | { | |
34636 | ||
34637 | struct kiocb *iocb = NULL; | |
34638 | struct iov_iter *iov = NULL; | |
34639 | generic_write_checks(iocb, iov); | |
34640 | ||
34641 | ; | |
34642 | return 0; | |
34643 | } | |
34644 | ||
34645 | _ACEOF | |
34646 | ||
34647 | ||
34648 | ||
34649 | cat - <<_ACEOF >conftest.h | |
34650 | ||
34651 | _ACEOF | |
34652 | ||
34653 | ||
34654 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34655 | echo "obj-m := conftest.o" >build/Makefile | |
34656 | modpost_flag='' | |
34657 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34658 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34659 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34660 | (eval $ac_try) 2>&5 | |
34661 | ac_status=$? | |
34662 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34663 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34664 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34665 | (eval $ac_try) 2>&5 | |
34666 | ac_status=$? | |
34667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34668 | test $ac_status = 0; }; }; then : | |
34669 | ||
34670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34671 | $as_echo "yes" >&6; } | |
34672 | ||
34673 | $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h | |
34674 | ||
34675 | ||
34676 | else | |
34677 | $as_echo "$as_me: failed program was:" >&5 | |
34678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34679 | ||
34680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34681 | $as_echo "no" >&6; } | |
34682 | ||
34683 | ||
34684 | ||
0bd31011 TG |
34685 | fi |
34686 | rm -Rf build | |
34687 | ||
34688 | ||
34689 | ||
34690 | ||
34691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5 | |
34692 | $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; } | |
34693 | ||
34694 | ||
34695 | cat confdefs.h - <<_ACEOF >conftest.c | |
34696 | ||
34697 | ||
34698 | #include <linux/pagemap.h> | |
34699 | ||
34700 | int | |
34701 | main (void) | |
34702 | { | |
34703 | ||
34704 | struct page page; | |
34705 | kmap_atomic(&page); | |
34706 | ||
34707 | ; | |
34708 | return 0; | |
34709 | } | |
34710 | ||
34711 | _ACEOF | |
34712 | ||
34713 | ||
34714 | ||
34715 | cat - <<_ACEOF >conftest.h | |
34716 | ||
34717 | _ACEOF | |
34718 | ||
34719 | ||
34720 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34721 | echo "obj-m := conftest.o" >build/Makefile | |
34722 | modpost_flag='' | |
34723 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34724 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34725 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34726 | (eval $ac_try) 2>&5 | |
34727 | ac_status=$? | |
34728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34729 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34730 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34731 | (eval $ac_try) 2>&5 | |
34732 | ac_status=$? | |
34733 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34734 | test $ac_status = 0; }; }; then : | |
34735 | ||
34736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34737 | $as_echo "yes" >&6; } | |
34738 | ||
34739 | $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h | |
34740 | ||
34741 | ||
34742 | else | |
34743 | $as_echo "$as_me: failed program was:" >&5 | |
34744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34745 | ||
34746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34747 | $as_echo "no" >&6; } | |
34748 | ||
34749 | ||
34750 | ||
34751 | fi | |
34752 | rm -Rf build | |
34753 | ||
34754 | ||
34755 | ||
34756 | ||
34757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5 | |
34758 | $as_echo_n "checking whether follow_down_one() is available... " >&6; } | |
34759 | ||
34760 | ||
34761 | cat confdefs.h - <<_ACEOF >conftest.c | |
34762 | ||
34763 | ||
34764 | #include <linux/namei.h> | |
34765 | ||
34766 | int | |
34767 | main (void) | |
34768 | { | |
34769 | ||
34770 | struct path *p = NULL; | |
34771 | follow_down_one(p); | |
34772 | ||
34773 | ; | |
34774 | return 0; | |
34775 | } | |
34776 | ||
34777 | _ACEOF | |
34778 | ||
34779 | ||
34780 | ||
34781 | cat - <<_ACEOF >conftest.h | |
34782 | ||
34783 | _ACEOF | |
34784 | ||
34785 | ||
34786 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34787 | echo "obj-m := conftest.o" >build/Makefile | |
34788 | modpost_flag='' | |
34789 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34790 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34791 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34792 | (eval $ac_try) 2>&5 | |
34793 | ac_status=$? | |
34794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34795 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34796 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34797 | (eval $ac_try) 2>&5 | |
34798 | ac_status=$? | |
34799 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34800 | test $ac_status = 0; }; }; then : | |
34801 | ||
34802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34803 | $as_echo "yes" >&6; } | |
34804 | ||
34805 | $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h | |
34806 | ||
34807 | ||
34808 | else | |
34809 | $as_echo "$as_me: failed program was:" >&5 | |
34810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34811 | ||
34812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34813 | $as_echo "no" >&6; } | |
34814 | ||
34815 | ||
34816 | ||
34817 | fi | |
34818 | rm -Rf build | |
34819 | ||
34820 | ||
34821 | ||
34822 | ||
34823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5 | |
34824 | $as_echo_n "checking whether make_request_fn() returns int... " >&6; } | |
34825 | ||
34826 | ||
34827 | cat confdefs.h - <<_ACEOF >conftest.c | |
34828 | ||
34829 | ||
34830 | #include <linux/blkdev.h> | |
34831 | ||
34832 | int make_request(struct request_queue *q, struct bio *bio) | |
34833 | { | |
34834 | return (0); | |
34835 | } | |
34836 | ||
34837 | int | |
34838 | main (void) | |
34839 | { | |
34840 | ||
34841 | blk_queue_make_request(NULL, &make_request); | |
34842 | ||
34843 | ; | |
34844 | return 0; | |
34845 | } | |
34846 | ||
34847 | _ACEOF | |
34848 | ||
34849 | ||
34850 | ||
34851 | cat - <<_ACEOF >conftest.h | |
34852 | ||
34853 | _ACEOF | |
34854 | ||
34855 | ||
34856 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34857 | echo "obj-m := conftest.o" >build/Makefile | |
34858 | modpost_flag='' | |
34859 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34860 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34861 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34862 | (eval $ac_try) 2>&5 | |
34863 | ac_status=$? | |
34864 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34865 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34866 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34867 | (eval $ac_try) 2>&5 | |
34868 | ac_status=$? | |
34869 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34870 | test $ac_status = 0; }; }; then : | |
34871 | ||
34872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34873 | $as_echo "yes" >&6; } | |
34874 | ||
34875 | $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h | |
34876 | ||
34877 | ||
34878 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h | |
34879 | ||
34880 | ||
34881 | else | |
34882 | $as_echo "$as_me: failed program was:" >&5 | |
34883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34884 | ||
34885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34886 | $as_echo "no" >&6; } | |
34887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5 | |
34888 | $as_echo_n "checking whether make_request_fn() returns void... " >&6; } | |
34889 | ||
34890 | ||
34891 | cat confdefs.h - <<_ACEOF >conftest.c | |
34892 | ||
34893 | ||
34894 | #include <linux/blkdev.h> | |
34895 | ||
34896 | void make_request(struct request_queue *q, struct bio *bio) | |
34897 | { | |
34898 | return; | |
34899 | } | |
34900 | ||
34901 | int | |
34902 | main (void) | |
34903 | { | |
34904 | ||
34905 | blk_queue_make_request(NULL, &make_request); | |
34906 | ||
34907 | ; | |
34908 | return 0; | |
34909 | } | |
34910 | ||
34911 | _ACEOF | |
34912 | ||
34913 | ||
34914 | ||
34915 | cat - <<_ACEOF >conftest.h | |
34916 | ||
34917 | _ACEOF | |
34918 | ||
34919 | ||
34920 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34921 | echo "obj-m := conftest.o" >build/Makefile | |
34922 | modpost_flag='' | |
34923 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34924 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34925 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34926 | (eval $ac_try) 2>&5 | |
34927 | ac_status=$? | |
34928 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34929 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34930 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34931 | (eval $ac_try) 2>&5 | |
34932 | ac_status=$? | |
34933 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34934 | test $ac_status = 0; }; }; then : | |
34935 | ||
34936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34937 | $as_echo "yes" >&6; } | |
34938 | ||
34939 | $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h | |
34940 | ||
34941 | ||
34942 | else | |
34943 | $as_echo "$as_me: failed program was:" >&5 | |
34944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34945 | ||
34946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
34947 | $as_echo "no" >&6; } | |
34948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5 | |
34949 | $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; } | |
34950 | ||
34951 | ||
34952 | cat confdefs.h - <<_ACEOF >conftest.c | |
34953 | ||
34954 | ||
34955 | #include <linux/blkdev.h> | |
34956 | ||
34957 | blk_qc_t make_request(struct request_queue *q, struct bio *bio) | |
34958 | { | |
34959 | return (BLK_QC_T_NONE); | |
34960 | } | |
34961 | ||
34962 | int | |
34963 | main (void) | |
34964 | { | |
34965 | ||
34966 | blk_queue_make_request(NULL, &make_request); | |
34967 | ||
34968 | ; | |
34969 | return 0; | |
34970 | } | |
34971 | ||
34972 | _ACEOF | |
34973 | ||
34974 | ||
34975 | ||
34976 | cat - <<_ACEOF >conftest.h | |
34977 | ||
34978 | _ACEOF | |
34979 | ||
34980 | ||
34981 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
34982 | echo "obj-m := conftest.o" >build/Makefile | |
34983 | modpost_flag='' | |
34984 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
34985 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
34986 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34987 | (eval $ac_try) 2>&5 | |
34988 | ac_status=$? | |
34989 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34990 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
34991 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
34992 | (eval $ac_try) 2>&5 | |
34993 | ac_status=$? | |
34994 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34995 | test $ac_status = 0; }; }; then : | |
34996 | ||
34997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34998 | $as_echo "yes" >&6; } | |
34999 | ||
35000 | $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h | |
35001 | ||
35002 | ||
35003 | $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h | |
35004 | ||
35005 | ||
35006 | else | |
35007 | $as_echo "$as_me: failed program was:" >&5 | |
35008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35009 | ||
35010 | as_fn_error $? "no - Please file a bug report at | |
35011 | https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5 | |
35012 | ||
35013 | ||
35014 | ||
35015 | fi | |
35016 | rm -Rf build | |
35017 | ||
35018 | ||
35019 | ||
35020 | ||
35021 | ||
35022 | fi | |
35023 | rm -Rf build | |
35024 | ||
35025 | ||
35026 | ||
35027 | ||
35028 | ||
35029 | fi | |
35030 | rm -Rf build | |
35031 | ||
35032 | ||
35033 | ||
35034 | ||
35035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5 | |
35036 | $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; } | |
35037 | ||
35038 | ||
35039 | ||
35040 | cat confdefs.h - <<_ACEOF >conftest.c | |
35041 | ||
35042 | ||
35043 | #include <linux/bio.h> | |
35044 | ||
35045 | void (*generic_start_io_acct_f)(int, unsigned long, | |
35046 | struct hd_struct *) = &generic_start_io_acct; | |
35047 | void (*generic_end_io_acct_f)(int, struct hd_struct *, | |
35048 | unsigned long) = &generic_end_io_acct; | |
35049 | ||
35050 | int | |
35051 | main (void) | |
35052 | { | |
35053 | ||
35054 | generic_start_io_acct(0, 0, NULL); | |
35055 | generic_end_io_acct(0, NULL, 0); | |
35056 | ||
35057 | ; | |
35058 | return 0; | |
35059 | } | |
35060 | ||
35061 | _ACEOF | |
35062 | ||
35063 | ||
35064 | ||
35065 | cat - <<_ACEOF >conftest.h | |
35066 | ||
35067 | _ACEOF | |
35068 | ||
35069 | ||
35070 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35071 | echo "obj-m := conftest.o" >build/Makefile | |
35072 | modpost_flag='' | |
35073 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35074 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35075 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35076 | (eval $ac_try) 2>&5 | |
35077 | ac_status=$? | |
35078 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35079 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35080 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35081 | (eval $ac_try) 2>&5 | |
35082 | ac_status=$? | |
35083 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35084 | test $ac_status = 0; }; }; then : | |
35085 | rc=0 | |
35086 | else | |
35087 | $as_echo "$as_me: failed program was:" >&5 | |
35088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35089 | rc=1 | |
35090 | ||
35091 | ||
35092 | fi | |
35093 | rm -Rf build | |
35094 | ||
35095 | ||
35096 | if test $rc -ne 0; then : | |
35097 | ||
35098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35099 | $as_echo "no" >&6; } | |
35100 | ||
35101 | else | |
35102 | if test "x$enable_linux_builtin" != xyes; then | |
35103 | ||
35104 | grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \ | |
35105 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
35106 | rc=$? | |
35107 | if test $rc -ne 0; then | |
35108 | export=0 | |
35109 | for file in block/bio.c; do | |
35110 | grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \ | |
35111 | "$LINUX/$file" 2>/dev/null | |
35112 | rc=$? | |
35113 | if test $rc -eq 0; then | |
35114 | export=1 | |
35115 | break; | |
35116 | fi | |
35117 | done | |
35118 | if test $export -eq 0; then : | |
35119 | rc=1 | |
35120 | else : | |
35121 | rc=0 | |
35122 | fi | |
35123 | else : | |
35124 | rc=0 | |
35125 | fi | |
35126 | ||
35127 | fi | |
35128 | if test $rc -ne 0; then : | |
35129 | ||
35130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35131 | $as_echo "no" >&6; } | |
35132 | ||
35133 | else : | |
35134 | ||
35135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35136 | $as_echo "yes" >&6; } | |
35137 | ||
35138 | $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h | |
35139 | ||
35140 | ||
35141 | fi | |
35142 | fi | |
35143 | ||
35144 | ||
35145 | ||
35146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5 | |
35147 | $as_echo_n "checking whether iops->rename() wants flags... " >&6; } | |
35148 | ||
35149 | ||
35150 | cat confdefs.h - <<_ACEOF >conftest.c | |
35151 | ||
35152 | ||
35153 | #include <linux/fs.h> | |
35154 | int rename_fn(struct inode *sip, struct dentry *sdp, | |
35155 | struct inode *tip, struct dentry *tdp, | |
35156 | unsigned int flags) { return 0; } | |
35157 | ||
35158 | static const struct inode_operations | |
35159 | iops __attribute__ ((unused)) = { | |
35160 | .rename = rename_fn, | |
35161 | }; | |
35162 | ||
35163 | int | |
35164 | main (void) | |
35165 | { | |
35166 | ||
35167 | ||
35168 | ; | |
35169 | return 0; | |
35170 | } | |
35171 | ||
35172 | _ACEOF | |
35173 | ||
35174 | ||
35175 | ||
35176 | cat - <<_ACEOF >conftest.h | |
35177 | ||
35178 | _ACEOF | |
35179 | ||
35180 | ||
35181 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35182 | echo "obj-m := conftest.o" >build/Makefile | |
35183 | modpost_flag='' | |
35184 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35185 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35186 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35187 | (eval $ac_try) 2>&5 | |
35188 | ac_status=$? | |
35189 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35190 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35191 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35192 | (eval $ac_try) 2>&5 | |
35193 | ac_status=$? | |
35194 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35195 | test $ac_status = 0; }; }; then : | |
35196 | ||
35197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35198 | $as_echo "yes" >&6; } | |
35199 | ||
35200 | $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h | |
35201 | ||
35202 | ||
35203 | else | |
35204 | $as_echo "$as_me: failed program was:" >&5 | |
35205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35206 | ||
35207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35208 | $as_echo "no" >&6; } | |
35209 | ||
35210 | ||
35211 | ||
35212 | fi | |
35213 | rm -Rf build | |
35214 | ||
35215 | ||
35216 | ||
35217 | ||
35218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5 | |
35219 | $as_echo_n "checking whether generic_setxattr() exists... " >&6; } | |
35220 | ||
35221 | ||
35222 | cat confdefs.h - <<_ACEOF >conftest.c | |
35223 | ||
35224 | ||
35225 | #include <linux/fs.h> | |
35226 | #include <linux/xattr.h> | |
35227 | ||
35228 | static const struct inode_operations | |
35229 | iops __attribute__ ((unused)) = { | |
35230 | .setxattr = generic_setxattr | |
35231 | }; | |
35232 | ||
35233 | int | |
35234 | main (void) | |
35235 | { | |
35236 | ||
35237 | ||
35238 | ; | |
35239 | return 0; | |
35240 | } | |
35241 | ||
35242 | _ACEOF | |
35243 | ||
35244 | ||
35245 | ||
35246 | cat - <<_ACEOF >conftest.h | |
35247 | ||
35248 | _ACEOF | |
35249 | ||
35250 | ||
35251 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
35252 | echo "obj-m := conftest.o" >build/Makefile | |
35253 | modpost_flag='' | |
35254 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
35255 | if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
35256 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35257 | (eval $ac_try) 2>&5 | |
35258 | ac_status=$? | |
35259 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35260 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
35261 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
35262 | (eval $ac_try) 2>&5 | |
35263 | ac_status=$? | |
35264 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35265 | test $ac_status = 0; }; }; then : | |
35266 | ||
35267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35268 | $as_echo "yes" >&6; } | |
35269 | ||
35270 | $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h | |
35271 | ||
35272 | ||
35273 | else | |
35274 | $as_echo "$as_me: failed program was:" >&5 | |
35275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35276 | ||
35277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35278 | $as_echo "no" >&6; } | |
35279 | ||
35280 | ||
35281 | ||
35282 | fi | |
35283 | rm -Rf build | |
35284 | ||
35285 | ||
35286 | ||
35287 | ||
35288 | if test "$LINUX_OBJ" != "$LINUX"; then : | |
35289 | ||
35290 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
35291 | ||
35292 | fi | |
35293 | ||
35294 | ||
35295 | ||
35296 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE" | |
35297 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE" | |
35298 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL" | |
35299 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\"" | |
35300 | ||
35301 | ||
35302 | ||
35303 | ||
35304 | ||
35305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5 | |
35306 | $as_echo_n "checking for dkms.conf file... " >&6; } | |
35307 | if test -e dkms.conf; then : | |
35308 | ||
35309 | as_fn_error $? " | |
35310 | *** ZFS should not be manually built in the DKMS source tree. | |
35311 | *** Remove all ZFS packages before compiling the ZoL sources. | |
35312 | *** Running \"make install\" breaks ZFS packages." "$LINENO" 5 | |
35313 | ||
35314 | else | |
35315 | ||
35316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
35317 | $as_echo "not found" >&6; } | |
35318 | ||
35319 | fi | |
35320 | ||
35321 | ||
35322 | ||
35323 | # Check whether --with-mounthelperdir was given. | |
35324 | if test "${with_mounthelperdir+set}" = set; then : | |
35325 | withval=$with_mounthelperdir; mounthelperdir=$withval | |
35326 | else | |
35327 | mounthelperdir=/sbin | |
35328 | fi | |
35329 | ||
35330 | ||
35331 | ||
35332 | ||
35333 | ||
35334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5 | |
35335 | $as_echo_n "checking for udev directories... " >&6; } | |
35336 | ||
35337 | # Check whether --with-udevdir was given. | |
35338 | if test "${with_udevdir+set}" = set; then : | |
35339 | withval=$with_udevdir; udevdir=$withval | |
35340 | else | |
35341 | udevdir=check | |
35342 | fi | |
35343 | ||
35344 | ||
35345 | if test "x$udevdir" = xcheck; then : | |
35346 | ||
35347 | path1=/lib/udev | |
35348 | path2=/usr/lib/udev | |
35349 | default=$path2 | |
35350 | ||
35351 | if test -d "$path1"; then : | |
35352 | udevdir="$path1" | |
35353 | else | |
35354 | ||
35355 | if test -d "$path2"; then : | |
35356 | udevdir="$path2" | |
35357 | else | |
35358 | udevdir="$default" | |
35359 | fi | |
35360 | ||
35361 | fi | |
35362 | ||
35363 | fi | |
35364 | ||
35365 | ||
35366 | # Check whether --with-udevruledir was given. | |
35367 | if test "${with_udevruledir+set}" = set; then : | |
35368 | withval=$with_udevruledir; udevruledir=$withval | |
35369 | else | |
35370 | udevruledir="${udevdir}/rules.d" | |
35371 | fi | |
35372 | ||
35373 | ||
35374 | ||
35375 | ||
35376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5 | |
35377 | $as_echo "$udevdir;$udevruledir" >&6; } | |
35378 | ||
35379 | ||
35380 | # Check whether --enable-systemd was given. | |
35381 | if test "${enable_systemd+set}" = set; then : | |
35382 | enableval=$enable_systemd; | |
35383 | else | |
35384 | enable_systemd=yes | |
35385 | fi | |
35386 | ||
35387 | ||
35388 | ||
35389 | # Check whether --with-systemdunitdir was given. | |
35390 | if test "${with_systemdunitdir+set}" = set; then : | |
35391 | withval=$with_systemdunitdir; systemdunitdir=$withval | |
35392 | else | |
35393 | systemdunitdir=/usr/lib/systemd/system | |
35394 | fi | |
35395 | ||
35396 | ||
35397 | ||
35398 | # Check whether --with-systemdpresetdir was given. | |
35399 | if test "${with_systemdpresetdir+set}" = set; then : | |
35400 | withval=$with_systemdpresetdir; systemdpresetdir=$withval | |
35401 | else | |
35402 | systemdpresetdir=/usr/lib/systemd/system-preset | |
35403 | fi | |
35404 | ||
35405 | ||
35406 | ||
35407 | # Check whether --with-systemdmodulesloaddir was given. | |
35408 | if test "${with_systemdmodulesloaddir+set}" = set; then : | |
35409 | withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval | |
35410 | else | |
35411 | systemdmodulesloaddir=/usr/lib/modules-load.d | |
35412 | fi | |
35413 | ||
35414 | ||
35415 | ||
35416 | if test "x$enable_systemd" = xyes; then : | |
35417 | ||
35418 | ZFS_INIT_SYSTEMD=systemd | |
35419 | ZFS_MODULE_LOAD=modules-load.d | |
35420 | modulesloaddir=$systemdmodulesloaddir | |
35421 | ||
35422 | fi | |
35423 | ||
35424 | ||
35425 | ||
35426 | ||
35427 | ||
35428 | ||
35429 | ||
35430 | ||
35431 | # Check whether --enable-sysvinit was given. | |
35432 | if test "${enable_sysvinit+set}" = set; then : | |
35433 | enableval=$enable_sysvinit; | |
35434 | else | |
35435 | enable_sysvinit=yes | |
35436 | fi | |
35437 | ||
35438 | ||
35439 | if test "x$enable_sysvinit" = xyes; then : | |
35440 | ZFS_INIT_SYSV=init.d | |
35441 | fi | |
35442 | ||
35443 | ||
35444 | ||
35445 | ||
35446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5 | |
35447 | $as_echo_n "checking for dracut directory... " >&6; } | |
35448 | ||
35449 | # Check whether --with-dracutdir was given. | |
35450 | if test "${with_dracutdir+set}" = set; then : | |
35451 | withval=$with_dracutdir; dracutdir=$withval | |
35452 | else | |
35453 | dracutdir=check | |
35454 | fi | |
35455 | ||
35456 | ||
35457 | if test "x$dracutdir" = xcheck; then : | |
35458 | ||
35459 | path1=/usr/share/dracut | |
35460 | path2=/usr/lib/dracut | |
35461 | default=$path2 | |
35462 | ||
35463 | if test -d "$path1"; then : | |
35464 | dracutdir="$path1" | |
35465 | else | |
35466 | ||
35467 | if test -d "$path2"; then : | |
35468 | dracutdir="$path2" | |
35469 | else | |
35470 | dracutdir="$default" | |
35471 | fi | |
35472 | ||
35473 | fi | |
35474 | ||
35475 | fi | |
35476 | ||
35477 | ||
35478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5 | |
35479 | $as_echo "$dracutdir" >&6; } | |
35480 | ||
35481 | ||
35482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5 | |
35483 | $as_echo_n "checking for target asm dir... " >&6; } | |
35484 | TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/` | |
35485 | ||
35486 | case $TARGET_ARCH in | |
35487 | i386|x86_64) | |
35488 | TARGET_ASM_DIR=asm-${TARGET_ARCH} | |
35489 | ;; | |
35490 | *) | |
35491 | TARGET_ASM_DIR=asm-generic | |
35492 | ;; | |
35493 | esac | |
35494 | ||
35495 | ||
35496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5 | |
35497 | $as_echo "$TARGET_ASM_DIR" >&6; } | |
35498 | ||
35499 | ||
35500 | ZLIB= | |
35501 | ||
35502 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
35503 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
35504 | ||
35505 | else | |
35506 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
35507 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
35508 | as_fn_error $? " | |
35509 | *** zlib.h missing, zlib-devel package required | |
35510 | See \`config.log' for more details" "$LINENO" 5; } | |
35511 | fi | |
35512 | ||
35513 | ||
35514 | ||
35515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5 | |
35516 | $as_echo_n "checking for compress2 in -lz... " >&6; } | |
35517 | if ${ac_cv_lib_z_compress2+:} false; then : | |
35518 | $as_echo_n "(cached) " >&6 | |
35519 | else | |
35520 | ac_check_lib_save_LIBS=$LIBS | |
35521 | LIBS="-lz $LIBS" | |
35522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
35523 | /* end confdefs.h. */ | |
35524 | ||
35525 | /* Override any GCC internal prototype to avoid an error. | |
35526 | Use char because int might match the return type of a GCC | |
35527 | builtin and then its argument prototype would still apply. */ | |
35528 | #ifdef __cplusplus | |
35529 | extern "C" | |
35530 | #endif | |
35531 | char compress2 (); | |
35532 | int | |
35533 | main () | |
35534 | { | |
35535 | return compress2 (); | |
35536 | ; | |
35537 | return 0; | |
35538 | } | |
35539 | _ACEOF | |
35540 | if ac_fn_c_try_link "$LINENO"; then : | |
35541 | ac_cv_lib_z_compress2=yes | |
35542 | else | |
35543 | ac_cv_lib_z_compress2=no | |
35544 | fi | |
35545 | rm -f core conftest.err conftest.$ac_objext \ | |
35546 | conftest$ac_exeext conftest.$ac_ext | |
35547 | LIBS=$ac_check_lib_save_LIBS | |
35548 | fi | |
35549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5 | |
35550 | $as_echo "$ac_cv_lib_z_compress2" >&6; } | |
35551 | if test "x$ac_cv_lib_z_compress2" = xyes; then : | |
35552 | cat >>confdefs.h <<_ACEOF | |
35553 | #define HAVE_LIBZ 1 | |
35554 | _ACEOF | |
35555 | ||
35556 | LIBS="-lz $LIBS" | |
35557 | ||
35558 | else | |
35559 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
35560 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
35561 | as_fn_error $? " | |
35562 | *** compress2() missing, zlib-devel package required | |
35563 | See \`config.log' for more details" "$LINENO" 5; } | |
35564 | fi | |
35565 | ||
35566 | ||
35567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 | |
35568 | $as_echo_n "checking for uncompress in -lz... " >&6; } | |
35569 | if ${ac_cv_lib_z_uncompress+:} false; then : | |
35570 | $as_echo_n "(cached) " >&6 | |
35571 | else | |
35572 | ac_check_lib_save_LIBS=$LIBS | |
35573 | LIBS="-lz $LIBS" | |
35574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
35575 | /* end confdefs.h. */ | |
35576 | ||
35577 | /* Override any GCC internal prototype to avoid an error. | |
35578 | Use char because int might match the return type of a GCC | |
35579 | builtin and then its argument prototype would still apply. */ | |
35580 | #ifdef __cplusplus | |
35581 | extern "C" | |
35582 | #endif | |
35583 | char uncompress (); | |
35584 | int | |
35585 | main () | |
35586 | { | |
35587 | return uncompress (); | |
35588 | ; | |
35589 | return 0; | |
35590 | } | |
35591 | _ACEOF | |
35592 | if ac_fn_c_try_link "$LINENO"; then : | |
35593 | ac_cv_lib_z_uncompress=yes | |
35594 | else | |
35595 | ac_cv_lib_z_uncompress=no | |
35596 | fi | |
35597 | rm -f core conftest.err conftest.$ac_objext \ | |
35598 | conftest$ac_exeext conftest.$ac_ext | |
35599 | LIBS=$ac_check_lib_save_LIBS | |
35600 | fi | |
35601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 | |
35602 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } | |
35603 | if test "x$ac_cv_lib_z_uncompress" = xyes; then : | |
35604 | cat >>confdefs.h <<_ACEOF | |
35605 | #define HAVE_LIBZ 1 | |
35606 | _ACEOF | |
35607 | ||
35608 | LIBS="-lz $LIBS" | |
35609 | ||
35610 | else | |
35611 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
35612 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
35613 | as_fn_error $? " | |
35614 | *** uncompress() missing, zlib-devel package required | |
35615 | See \`config.log' for more details" "$LINENO" 5; } | |
35616 | fi | |
35617 | ||
35618 | ||
35619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5 | |
35620 | $as_echo_n "checking for crc32 in -lz... " >&6; } | |
35621 | if ${ac_cv_lib_z_crc32+:} false; then : | |
35622 | $as_echo_n "(cached) " >&6 | |
35623 | else | |
35624 | ac_check_lib_save_LIBS=$LIBS | |
35625 | LIBS="-lz $LIBS" | |
35626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
35627 | /* end confdefs.h. */ | |
35628 | ||
35629 | /* Override any GCC internal prototype to avoid an error. | |
35630 | Use char because int might match the return type of a GCC | |
35631 | builtin and then its argument prototype would still apply. */ | |
35632 | #ifdef __cplusplus | |
35633 | extern "C" | |
35634 | #endif | |
35635 | char crc32 (); | |
35636 | int | |
35637 | main () | |
35638 | { | |
35639 | return crc32 (); | |
35640 | ; | |
35641 | return 0; | |
35642 | } | |
35643 | _ACEOF | |
35644 | if ac_fn_c_try_link "$LINENO"; then : | |
35645 | ac_cv_lib_z_crc32=yes | |
35646 | else | |
35647 | ac_cv_lib_z_crc32=no | |
35648 | fi | |
35649 | rm -f core conftest.err conftest.$ac_objext \ | |
35650 | conftest$ac_exeext conftest.$ac_ext | |
35651 | LIBS=$ac_check_lib_save_LIBS | |
35652 | fi | |
35653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5 | |
35654 | $as_echo "$ac_cv_lib_z_crc32" >&6; } | |
35655 | if test "x$ac_cv_lib_z_crc32" = xyes; then : | |
35656 | cat >>confdefs.h <<_ACEOF | |
35657 | #define HAVE_LIBZ 1 | |
35658 | _ACEOF | |
35659 | ||
35660 | LIBS="-lz $LIBS" | |
35661 | ||
35662 | else | |
35663 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
35664 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
35665 | as_fn_error $? " | |
35666 | *** crc32() missing, zlib-devel package required | |
35667 | See \`config.log' for more details" "$LINENO" 5; } | |
35668 | fi | |
35669 | ||
35670 | ||
35671 | ZLIB="-lz" | |
35672 | ||
35673 | ||
35674 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h | |
35675 | ||
35676 | ||
35677 | ||
35678 | LIBUUID= | |
35679 | ||
35680 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" | |
35681 | if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : | |
35682 | ||
35683 | else | |
35684 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
35685 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
35686 | as_fn_error $? " | |
35687 | *** uuid/uuid.h missing, libuuid-devel package required | |
35688 | See \`config.log' for more details" "$LINENO" 5; } | |
35689 | fi | |
35690 | ||
35691 | ||
35692 | ||
35693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 | |
35694 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
35695 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : | |
35696 | $as_echo_n "(cached) " >&6 | |
35697 | else | |
35698 | ac_check_lib_save_LIBS=$LIBS | |
35699 | LIBS="-luuid $LIBS" | |
35700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
35701 | /* end confdefs.h. */ | |
35702 | ||
35703 | /* Override any GCC internal prototype to avoid an error. | |
35704 | Use char because int might match the return type of a GCC | |
35705 | builtin and then its argument prototype would still apply. */ | |
35706 | #ifdef __cplusplus | |
35707 | extern "C" | |
35708 | #endif | |
35709 | char uuid_generate (); | |
35710 | int | |
35711 | main () | |
35712 | { | |
35713 | return uuid_generate (); | |
35714 | ; | |
35715 | return 0; | |
35716 | } | |
35717 | _ACEOF | |
35718 | if ac_fn_c_try_link "$LINENO"; then : | |
35719 | ac_cv_lib_uuid_uuid_generate=yes | |
35720 | else | |
35721 | ac_cv_lib_uuid_uuid_generate=no | |
35722 | fi | |
35723 | rm -f core conftest.err conftest.$ac_objext \ | |
35724 | conftest$ac_exeext conftest.$ac_ext | |
35725 | LIBS=$ac_check_lib_save_LIBS | |
35726 | fi | |
35727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
35728 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
35729 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : | |
35730 | cat >>confdefs.h <<_ACEOF | |
35731 | #define HAVE_LIBUUID 1 | |
35732 | _ACEOF | |
35733 | ||
35734 | LIBS="-luuid $LIBS" | |
35735 | ||
35736 | else | |
35737 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
35738 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
35739 | as_fn_error $? " | |
35740 | *** uuid_generate() missing, libuuid-devel package required | |
35741 | See \`config.log' for more details" "$LINENO" 5; } | |
35742 | fi | |
35743 | ||
35744 | ||
35745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5 | |
35746 | $as_echo_n "checking for uuid_is_null in -luuid... " >&6; } | |
35747 | if ${ac_cv_lib_uuid_uuid_is_null+:} false; then : | |
35748 | $as_echo_n "(cached) " >&6 | |
35749 | else | |
35750 | ac_check_lib_save_LIBS=$LIBS | |
35751 | LIBS="-luuid $LIBS" | |
35752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
35753 | /* end confdefs.h. */ | |
35754 | ||
35755 | /* Override any GCC internal prototype to avoid an error. | |
35756 | Use char because int might match the return type of a GCC | |
35757 | builtin and then its argument prototype would still apply. */ | |
35758 | #ifdef __cplusplus | |
35759 | extern "C" | |
35760 | #endif | |
35761 | char uuid_is_null (); | |
35762 | int | |
35763 | main () | |
35764 | { | |
35765 | return uuid_is_null (); | |
35766 | ; | |
35767 | return 0; | |
35768 | } | |
35769 | _ACEOF | |
35770 | if ac_fn_c_try_link "$LINENO"; then : | |
35771 | ac_cv_lib_uuid_uuid_is_null=yes | |
35772 | else | |
35773 | ac_cv_lib_uuid_uuid_is_null=no | |
35774 | fi | |
35775 | rm -f core conftest.err conftest.$ac_objext \ | |
35776 | conftest$ac_exeext conftest.$ac_ext | |
35777 | LIBS=$ac_check_lib_save_LIBS | |
35778 | fi | |
35779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5 | |
35780 | $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; } | |
35781 | if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then : | |
35782 | cat >>confdefs.h <<_ACEOF | |
35783 | #define HAVE_LIBUUID 1 | |
35784 | _ACEOF | |
35785 | ||
35786 | LIBS="-luuid $LIBS" | |
35787 | ||
35788 | else | |
35789 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
35790 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
35791 | as_fn_error $? " | |
35792 | *** uuid_is_null() missing, libuuid-devel package required | |
35793 | See \`config.log' for more details" "$LINENO" 5; } | |
35794 | fi | |
35795 | ||
35796 | ||
35797 | LIBUUID="-luuid" | |
35798 | ||
35799 | ||
35800 | $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h | |
35801 | ||
35802 | ||
35803 | ||
35804 | ||
35805 | # Check whether --with-blkid was given. | |
35806 | if test "${with_blkid+set}" = set; then : | |
35807 | withval=$with_blkid; | |
35808 | else | |
35809 | with_blkid=check | |
35810 | fi | |
35811 | ||
35812 | ||
35813 | LIBBLKID= | |
35814 | if test "x$with_blkid" = xyes; then : | |
35815 | ||
35816 | LIBBLKID="-lblkid" | |
35817 | ||
35818 | ||
35819 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
35820 | ||
35821 | ||
35822 | fi | |
35823 | ||
35824 | if test "x$with_blkid" = xcheck; then : | |
35825 | ||
35826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 | |
35827 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
35828 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : | |
35829 | $as_echo_n "(cached) " >&6 | |
35830 | else | |
35831 | ac_check_lib_save_LIBS=$LIBS | |
35832 | LIBS="-lblkid $LIBS" | |
35833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
35834 | /* end confdefs.h. */ | |
35835 | ||
35836 | /* Override any GCC internal prototype to avoid an error. | |
35837 | Use char because int might match the return type of a GCC | |
35838 | builtin and then its argument prototype would still apply. */ | |
35839 | #ifdef __cplusplus | |
35840 | extern "C" | |
35841 | #endif | |
35842 | char blkid_get_cache (); | |
35843 | int | |
35844 | main () | |
35845 | { | |
35846 | return blkid_get_cache (); | |
35847 | ; | |
35848 | return 0; | |
35849 | } | |
35850 | _ACEOF | |
35851 | if ac_fn_c_try_link "$LINENO"; then : | |
35852 | ac_cv_lib_blkid_blkid_get_cache=yes | |
35853 | else | |
35854 | ac_cv_lib_blkid_blkid_get_cache=no | |
35855 | fi | |
35856 | rm -f core conftest.err conftest.$ac_objext \ | |
35857 | conftest$ac_exeext conftest.$ac_ext | |
35858 | LIBS=$ac_check_lib_save_LIBS | |
35859 | fi | |
35860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 | |
35861 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
35862 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : | |
35863 | ||
35864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5 | |
35865 | $as_echo_n "checking for blkid zfs support... " >&6; } | |
35866 | ||
35867 | ZFS_DEV=`mktemp` | |
35868 | truncate -s 64M $ZFS_DEV | |
35869 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
35870 | dd of=$ZFS_DEV bs=1k count=8 \ | |
35871 | seek=128 conv=notrunc &>/dev/null \ | |
35872 | >/dev/null 2>/dev/null | |
35873 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
35874 | dd of=$ZFS_DEV bs=1k count=8 \ | |
35875 | seek=132 conv=notrunc &>/dev/null \ | |
35876 | >/dev/null 2>/dev/null | |
35877 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
35878 | dd of=$ZFS_DEV bs=1k count=8 \ | |
35879 | seek=136 conv=notrunc &>/dev/null \ | |
35880 | >/dev/null 2>/dev/null | |
35881 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
35882 | dd of=$ZFS_DEV bs=1k count=8 \ | |
35883 | seek=140 conv=notrunc &>/dev/null \ | |
35884 | >/dev/null 2>/dev/null | |
35885 | ||
35886 | saved_LIBS="$LIBS" | |
35887 | LIBS="-lblkid" | |
35888 | ||
35889 | if test "$cross_compiling" = yes; then : | |
35890 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
35891 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
35892 | as_fn_error $? "cannot run test program while cross compiling | |
35893 | See \`config.log' for more details" "$LINENO" 5; } | |
35894 | else | |
35895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
35896 | /* end confdefs.h. */ | |
35897 | ||
35898 | #include <stdio.h> | |
35899 | #include <stdlib.h> | |
35900 | #include <blkid/blkid.h> | |
35901 | ||
35902 | int | |
35903 | main () | |
35904 | { | |
35905 | ||
35906 | blkid_cache cache; | |
35907 | char *value; | |
35908 | ||
35909 | if (blkid_get_cache(&cache, NULL) < 0) | |
35910 | return 1; | |
35911 | ||
35912 | value = blkid_get_tag_value(cache, "TYPE", | |
35913 | "$ZFS_DEV"); | |
35914 | if (!value) { | |
35915 | blkid_put_cache(cache); | |
35916 | return 2; | |
35917 | } | |
35918 | ||
35919 | if (strcmp(value, "zfs_member")) { | |
35920 | free(value); | |
35921 | blkid_put_cache(cache); | |
35922 | return 0; | |
35923 | } | |
35924 | ||
35925 | free(value); | |
35926 | blkid_put_cache(cache); | |
35927 | ||
35928 | ; | |
35929 | return 0; | |
35930 | } | |
35931 | _ACEOF | |
35932 | if ac_fn_c_try_run "$LINENO"; then : | |
35933 | ||
35934 | rm -f $ZFS_DEV | |
35935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
35936 | $as_echo "yes" >&6; } | |
35937 | LIBBLKID="-lblkid" | |
35938 | ||
35939 | ||
35940 | $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h | |
35941 | ||
35942 | ||
35943 | else | |
35944 | ||
35945 | rm -f $ZFS_DEV | |
35946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35947 | $as_echo "no" >&6; } | |
35948 | if test "x$with_blkid" != xcheck; then : | |
35949 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
35950 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
35951 | as_fn_error $? "--with-blkid given but unavailable | |
35952 | See \`config.log' for more details" "$LINENO" 5; } | |
35953 | fi | |
35954 | ||
35955 | fi | |
35956 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
35957 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
35958 | fi | |
35959 | ||
35960 | ||
35961 | LIBS="$saved_LIBS" | |
35962 | ||
35963 | else | |
35964 | ||
35965 | if test "x$with_blkid" != xcheck; then : | |
35966 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
35967 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
35968 | as_fn_error $? "--with-blkid given but unavailable | |
35969 | See \`config.log' for more details" "$LINENO" 5; } | |
35970 | fi | |
35971 | ||
35972 | ||
35973 | fi | |
35974 | ||
35975 | ||
35976 | fi | |
35977 | ||
35978 | ||
35979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5 | |
35980 | $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; } | |
35981 | ||
35982 | saved_flags="$CFLAGS" | |
35983 | CFLAGS="$CFLAGS -Wframe-larger-than=1024" | |
35984 | ||
35985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
35986 | /* end confdefs.h. */ | |
35987 | ||
35988 | int | |
35989 | main () | |
35990 | { | |
35991 | ||
35992 | ; | |
35993 | return 0; | |
35994 | } | |
35995 | _ACEOF | |
35996 | if ac_fn_c_try_compile "$LINENO"; then : | |
35997 | ||
35998 | FRAME_LARGER_THAN=-Wframe-larger-than=1024 | |
35999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
36000 | $as_echo "yes" >&6; } | |
36001 | ||
36002 | else | |
36003 | ||
36004 | FRAME_LARGER_THAN= | |
36005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
36006 | $as_echo "no" >&6; } | |
36007 | ||
36008 | fi | |
36009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
36010 | ||
36011 | CFLAGS="$saved_flags" | |
36012 | ||
36013 | ||
36014 | ||
36015 | if test "x$runstatedir" = x; then | |
36016 | runstatedir='${localstatedir}/run' | |
36017 | ||
36018 | fi | |
36019 | ||
36020 | for ac_func in mlockall | |
36021 | do : | |
36022 | ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" | |
36023 | if test "x$ac_cv_func_mlockall" = xyes; then : | |
36024 | cat >>confdefs.h <<_ACEOF | |
36025 | #define HAVE_MLOCKALL 1 | |
36026 | _ACEOF | |
36027 | ||
36028 | fi | |
36029 | done | |
36030 | ||
36031 | ;; | |
36032 | srpm) ;; | |
36033 | *) | |
36034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 | |
36035 | $as_echo "Error!" >&6; } | |
36036 | as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config, | |
36037 | user kernel|user|all|srpm" "$LINENO" 5 ;; | |
36038 | esac | |
36039 | ||
36040 | if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then | |
36041 | CONFIG_USER_TRUE= | |
36042 | CONFIG_USER_FALSE='#' | |
36043 | else | |
36044 | CONFIG_USER_TRUE='#' | |
36045 | CONFIG_USER_FALSE= | |
36046 | fi | |
36047 | ||
36048 | if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all && | |
36049 | test "x$enable_linux_builtin" != xyes ; then | |
36050 | CONFIG_KERNEL_TRUE= | |
36051 | CONFIG_KERNEL_FALSE='#' | |
36052 | else | |
36053 | CONFIG_KERNEL_TRUE='#' | |
36054 | CONFIG_KERNEL_FALSE= | |
36055 | fi | |
36056 | ||
36057 | ||
36058 | ||
36059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5 | |
36060 | $as_echo_n "checking whether debugging is enabled... " >&6; } | |
36061 | # Check whether --enable-debug was given. | |
36062 | if test "${enable_debug+set}" = set; then : | |
36063 | enableval=$enable_debug; | |
36064 | else | |
36065 | enable_debug=no | |
36066 | fi | |
36067 | ||
36068 | ||
36069 | if test "x$enable_debug" = xyes; then : | |
36070 | ||
36071 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror" | |
36072 | HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror" | |
36073 | DEBUG_CFLAGS="-DDEBUG -Werror" | |
36074 | DEBUG_STACKFLAGS="-fstack-check" | |
36075 | DEBUG_ZFS="_with_debug" | |
36076 | ||
36077 | $as_echo "#define ZFS_DEBUG 1" >>confdefs.h | |
36078 | ||
36079 | ||
36080 | else | |
36081 | ||
36082 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG " | |
36083 | HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG " | |
36084 | DEBUG_CFLAGS="-DNDEBUG" | |
36085 | DEBUG_STACKFLAGS="" | |
36086 | DEBUG_ZFS="_without_debug" | |
36087 | ||
36088 | fi | |
36089 | ||
36090 | ||
36091 | ||
36092 | ||
36093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 | |
36094 | $as_echo "$enable_debug" >&6; } | |
36095 | ||
36096 | ||
36097 | # Check whether --enable-debug-dmu-tx was given. | |
36098 | if test "${enable_debug_dmu_tx+set}" = set; then : | |
36099 | enableval=$enable_debug_dmu_tx; | |
36100 | else | |
36101 | enable_debug_dmu_tx=no | |
36102 | fi | |
36103 | ||
36104 | ||
36105 | if test "x$enable_debug_dmu_tx" = xyes; then : | |
36106 | ||
36107 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX" | |
36108 | DEBUG_DMU_TX="_with_debug_dmu_tx" | |
36109 | ||
36110 | $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h | |
36111 | ||
36112 | ||
36113 | else | |
36114 | ||
36115 | DEBUG_DMU_TX="_without_debug_dmu_tx" | |
36116 | ||
36117 | fi | |
36118 | ||
36119 | ||
36120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5 | |
36121 | $as_echo_n "checking whether dmu tx validation is enabled... " >&6; } | |
36122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5 | |
36123 | $as_echo "$enable_debug_dmu_tx" >&6; } | |
36124 | ||
36125 | ||
d177712e | 36126 | 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" |
0bd31011 TG |
36127 | |
36128 | ||
36129 | cat >confcache <<\_ACEOF | |
36130 | # This file is a shell script that caches the results of configure | |
36131 | # tests run on this system so they can be shared between configure | |
36132 | # scripts and configure runs, see configure's option --config-cache. | |
36133 | # It is not useful on other systems. If it contains results you don't | |
36134 | # want to keep, you may remove or edit it. | |
36135 | # | |
36136 | # config.status only pays attention to the cache file if you give it | |
36137 | # the --recheck option to rerun configure. | |
36138 | # | |
36139 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
36140 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
36141 | # following values. | |
36142 | ||
36143 | _ACEOF | |
36144 | ||
36145 | # The following way of writing the cache mishandles newlines in values, | |
36146 | # but we know of no workaround that is simple, portable, and efficient. | |
36147 | # So, we kill variables containing newlines. | |
36148 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
36149 | # and sets the high bit in the cache file unless we assign to the vars. | |
36150 | ( | |
36151 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
36152 | eval ac_val=\$$ac_var | |
36153 | case $ac_val in #( | |
36154 | *${as_nl}*) | |
36155 | case $ac_var in #( | |
36156 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
36157 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
36158 | esac | |
36159 | case $ac_var in #( | |
36160 | _ | IFS | as_nl) ;; #( | |
36161 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
36162 | *) { eval $ac_var=; unset $ac_var;} ;; | |
36163 | esac ;; | |
36164 | esac | |
36165 | done | |
36166 | ||
36167 | (set) 2>&1 | | |
36168 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
36169 | *${as_nl}ac_space=\ *) | |
36170 | # `set' does not quote correctly, so add quotes: double-quote | |
36171 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
36172 | sed -n \ | |
36173 | "s/'/'\\\\''/g; | |
36174 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
36175 | ;; #( | |
36176 | *) | |
36177 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
36178 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
36179 | ;; | |
36180 | esac | | |
36181 | sort | |
36182 | ) | | |
36183 | sed ' | |
36184 | /^ac_cv_env_/b end | |
36185 | t clear | |
36186 | :clear | |
36187 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
36188 | t end | |
36189 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
36190 | :end' >>confcache | |
36191 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
36192 | if test -w "$cache_file"; then | |
36193 | if test "x$cache_file" != "x/dev/null"; then | |
36194 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
36195 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
36196 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
36197 | cat confcache >"$cache_file" | |
36198 | else | |
36199 | case $cache_file in #( | |
36200 | */* | ?:*) | |
36201 | mv -f confcache "$cache_file"$$ && | |
36202 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
36203 | *) | |
36204 | mv -f confcache "$cache_file" ;; | |
36205 | esac | |
36206 | fi | |
36207 | fi | |
36208 | else | |
36209 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
36210 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
36211 | fi | |
36212 | fi | |
36213 | rm -f confcache | |
36214 | ||
36215 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
36216 | # Let make expand exec_prefix. | |
36217 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
36218 | ||
36219 | DEFS=-DHAVE_CONFIG_H | |
36220 | ||
36221 | ac_libobjs= | |
36222 | ac_ltlibobjs= | |
36223 | U= | |
36224 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
36225 | # 1. Remove the extension, and $U if already installed. | |
36226 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
36227 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
36228 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
36229 | # will be set to the directory where LIBOBJS objects are built. | |
36230 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
36231 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
36232 | done | |
36233 | LIBOBJS=$ac_libobjs | |
36234 | ||
36235 | LTLIBOBJS=$ac_ltlibobjs | |
36236 | ||
36237 | ||
36238 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
36239 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
36240 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
36241 | fi | |
36242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
36243 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
36244 | if test -n "$am_sleep_pid"; then | |
36245 | # Hide warnings about reused PIDs. | |
36246 | wait $am_sleep_pid 2>/dev/null | |
36247 | fi | |
36248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
36249 | $as_echo "done" >&6; } | |
36250 | if test -n "$EXEEXT"; then | |
36251 | am__EXEEXT_TRUE= | |
36252 | am__EXEEXT_FALSE='#' | |
36253 | else | |
36254 | am__EXEEXT_TRUE='#' | |
36255 | am__EXEEXT_FALSE= | |
36256 | fi | |
36257 | ||
36258 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
36259 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
36260 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
36261 | fi | |
36262 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
36263 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
36264 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
36265 | fi | |
36266 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then | |
36267 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. | |
36268 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
36269 | fi | |
36270 | if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then | |
36271 | as_fn_error $? "conditional \"CONFIG_USER\" was never defined. | |
36272 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
36273 | fi | |
36274 | if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then | |
36275 | as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined. | |
36276 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
36277 | fi | |
36278 | ||
36279 | : "${CONFIG_STATUS=./config.status}" | |
36280 | ac_write_fail=0 | |
36281 | ac_clean_files_save=$ac_clean_files | |
36282 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
36283 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
36284 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
36285 | as_write_fail=0 | |
36286 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
36287 | #! $SHELL | |
36288 | # Generated by $as_me. | |
36289 | # Run this file to recreate the current configuration. | |
36290 | # Compiler output produced by configure, useful for debugging | |
36291 | # configure, is in config.log if it exists. | |
36292 | ||
36293 | debug=false | |
36294 | ac_cs_recheck=false | |
36295 | ac_cs_silent=false | |
36296 | ||
36297 | SHELL=\${CONFIG_SHELL-$SHELL} | |
36298 | export SHELL | |
36299 | _ASEOF | |
36300 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
36301 | ## -------------------- ## | |
36302 | ## M4sh Initialization. ## | |
36303 | ## -------------------- ## | |
36304 | ||
36305 | # Be more Bourne compatible | |
36306 | DUALCASE=1; export DUALCASE # for MKS sh | |
36307 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
36308 | emulate sh | |
36309 | NULLCMD=: | |
36310 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
36311 | # is contrary to our usage. Disable this feature. | |
36312 | alias -g '${1+"$@"}'='"$@"' | |
36313 | setopt NO_GLOB_SUBST | |
36314 | else | |
36315 | case `(set -o) 2>/dev/null` in #( | |
36316 | *posix*) : | |
36317 | set -o posix ;; #( | |
36318 | *) : | |
36319 | ;; | |
36320 | esac | |
36321 | fi | |
36322 | ||
36323 | ||
36324 | as_nl=' | |
36325 | ' | |
36326 | export as_nl | |
36327 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
36328 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
36329 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
36330 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
36331 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
36332 | # but without wasting forks for bash or zsh. | |
36333 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
36334 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
36335 | as_echo='print -r --' | |
36336 | as_echo_n='print -rn --' | |
36337 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
36338 | as_echo='printf %s\n' | |
36339 | as_echo_n='printf %s' | |
36340 | else | |
36341 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
36342 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
36343 | as_echo_n='/usr/ucb/echo -n' | |
36344 | else | |
36345 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
36346 | as_echo_n_body='eval | |
36347 | arg=$1; | |
36348 | case $arg in #( | |
36349 | *"$as_nl"*) | |
36350 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
36351 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
36352 | esac; | |
36353 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
36354 | ' | |
36355 | export as_echo_n_body | |
36356 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
36357 | fi | |
36358 | export as_echo_body | |
36359 | as_echo='sh -c $as_echo_body as_echo' | |
36360 | fi | |
36361 | ||
36362 | # The user is always right. | |
36363 | if test "${PATH_SEPARATOR+set}" != set; then | |
36364 | PATH_SEPARATOR=: | |
36365 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
36366 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
36367 | PATH_SEPARATOR=';' | |
36368 | } | |
36369 | fi | |
36370 | ||
36371 | ||
36372 | # IFS | |
36373 | # We need space, tab and new line, in precisely that order. Quoting is | |
36374 | # there to prevent editors from complaining about space-tab. | |
36375 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
36376 | # splitting by setting IFS to empty value.) | |
36377 | IFS=" "" $as_nl" | |
36378 | ||
36379 | # Find who we are. Look in the path if we contain no directory separator. | |
36380 | as_myself= | |
36381 | case $0 in #(( | |
36382 | *[\\/]* ) as_myself=$0 ;; | |
36383 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36384 | for as_dir in $PATH | |
36385 | do | |
36386 | IFS=$as_save_IFS | |
36387 | test -z "$as_dir" && as_dir=. | |
36388 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
36389 | done | |
36390 | IFS=$as_save_IFS | |
36391 | ||
36392 | ;; | |
36393 | esac | |
36394 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
36395 | # in which case we are not to be found in the path. | |
36396 | if test "x$as_myself" = x; then | |
36397 | as_myself=$0 | |
36398 | fi | |
36399 | if test ! -f "$as_myself"; then | |
36400 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
36401 | exit 1 | |
36402 | fi | |
36403 | ||
36404 | # Unset variables that we do not need and which cause bugs (e.g. in | |
36405 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
36406 | # suppresses any "Segmentation fault" message there. '((' could | |
36407 | # trigger a bug in pdksh 5.2.14. | |
36408 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
36409 | do eval test x\${$as_var+set} = xset \ | |
36410 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
36411 | done | |
36412 | PS1='$ ' | |
36413 | PS2='> ' | |
36414 | PS4='+ ' | |
36415 | ||
36416 | # NLS nuisances. | |
36417 | LC_ALL=C | |
36418 | export LC_ALL | |
36419 | LANGUAGE=C | |
36420 | export LANGUAGE | |
36421 | ||
36422 | # CDPATH. | |
36423 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
36424 | ||
36425 | ||
36426 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
36427 | # ---------------------------------------- | |
36428 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
36429 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
36430 | # script with STATUS, using 1 if that was 0. | |
36431 | as_fn_error () | |
36432 | { | |
36433 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
36434 | if test "$4"; then | |
36435 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
36436 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
36437 | fi | |
36438 | $as_echo "$as_me: error: $2" >&2 | |
36439 | as_fn_exit $as_status | |
36440 | } # as_fn_error | |
36441 | ||
36442 | ||
36443 | # as_fn_set_status STATUS | |
36444 | # ----------------------- | |
36445 | # Set $? to STATUS, without forking. | |
36446 | as_fn_set_status () | |
36447 | { | |
36448 | return $1 | |
36449 | } # as_fn_set_status | |
36450 | ||
36451 | # as_fn_exit STATUS | |
36452 | # ----------------- | |
36453 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
36454 | as_fn_exit () | |
36455 | { | |
36456 | set +e | |
36457 | as_fn_set_status $1 | |
36458 | exit $1 | |
36459 | } # as_fn_exit | |
36460 | ||
36461 | # as_fn_unset VAR | |
36462 | # --------------- | |
36463 | # Portably unset VAR. | |
36464 | as_fn_unset () | |
36465 | { | |
36466 | { eval $1=; unset $1;} | |
36467 | } | |
36468 | as_unset=as_fn_unset | |
36469 | # as_fn_append VAR VALUE | |
36470 | # ---------------------- | |
36471 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
36472 | # advantage of any shell optimizations that allow amortized linear growth over | |
36473 | # repeated appends, instead of the typical quadratic growth present in naive | |
36474 | # implementations. | |
36475 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
36476 | eval 'as_fn_append () | |
36477 | { | |
36478 | eval $1+=\$2 | |
36479 | }' | |
36480 | else | |
36481 | as_fn_append () | |
36482 | { | |
36483 | eval $1=\$$1\$2 | |
36484 | } | |
36485 | fi # as_fn_append | |
36486 | ||
36487 | # as_fn_arith ARG... | |
36488 | # ------------------ | |
36489 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
36490 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
36491 | # must be portable across $(()) and expr. | |
36492 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
36493 | eval 'as_fn_arith () | |
36494 | { | |
36495 | as_val=$(( $* )) | |
36496 | }' | |
36497 | else | |
36498 | as_fn_arith () | |
36499 | { | |
36500 | as_val=`expr "$@" || test $? -eq 1` | |
36501 | } | |
36502 | fi # as_fn_arith | |
36503 | ||
36504 | ||
36505 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
36506 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
36507 | as_expr=expr | |
36508 | else | |
36509 | as_expr=false | |
36510 | fi | |
36511 | ||
36512 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
36513 | as_basename=basename | |
36514 | else | |
36515 | as_basename=false | |
36516 | fi | |
36517 | ||
36518 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
36519 | as_dirname=dirname | |
36520 | else | |
36521 | as_dirname=false | |
36522 | fi | |
36523 | ||
36524 | as_me=`$as_basename -- "$0" || | |
36525 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
36526 | X"$0" : 'X\(//\)$' \| \ | |
36527 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
36528 | $as_echo X/"$0" | | |
36529 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
36530 | s//\1/ | |
36531 | q | |
36532 | } | |
36533 | /^X\/\(\/\/\)$/{ | |
36534 | s//\1/ | |
36535 | q | |
36536 | } | |
36537 | /^X\/\(\/\).*/{ | |
36538 | s//\1/ | |
36539 | q | |
36540 | } | |
36541 | s/.*/./; q'` | |
36542 | ||
36543 | # Avoid depending upon Character Ranges. | |
36544 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
36545 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36546 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
36547 | as_cr_digits='0123456789' | |
36548 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
36549 | ||
36550 | ECHO_C= ECHO_N= ECHO_T= | |
36551 | case `echo -n x` in #((((( | |
36552 | -n*) | |
36553 | case `echo 'xy\c'` in | |
36554 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
36555 | xy) ECHO_C='\c';; | |
36556 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
36557 | ECHO_T=' ';; | |
36558 | esac;; | |
36559 | *) | |
36560 | ECHO_N='-n';; | |
36561 | esac | |
36562 | ||
36563 | rm -f conf$$ conf$$.exe conf$$.file | |
36564 | if test -d conf$$.dir; then | |
36565 | rm -f conf$$.dir/conf$$.file | |
36566 | else | |
36567 | rm -f conf$$.dir | |
36568 | mkdir conf$$.dir 2>/dev/null | |
36569 | fi | |
36570 | if (echo >conf$$.file) 2>/dev/null; then | |
36571 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
36572 | as_ln_s='ln -s' | |
36573 | # ... but there are two gotchas: | |
36574 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
36575 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
36576 | # In both cases, we have to default to `cp -pR'. | |
36577 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
36578 | as_ln_s='cp -pR' | |
36579 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
36580 | as_ln_s=ln | |
36581 | else | |
36582 | as_ln_s='cp -pR' | |
36583 | fi | |
36584 | else | |
36585 | as_ln_s='cp -pR' | |
36586 | fi | |
36587 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
36588 | rmdir conf$$.dir 2>/dev/null | |
36589 | ||
36590 | ||
36591 | # as_fn_mkdir_p | |
36592 | # ------------- | |
36593 | # Create "$as_dir" as a directory, including parents if necessary. | |
36594 | as_fn_mkdir_p () | |
36595 | { | |
36596 | ||
36597 | case $as_dir in #( | |
36598 | -*) as_dir=./$as_dir;; | |
36599 | esac | |
36600 | test -d "$as_dir" || eval $as_mkdir_p || { | |
36601 | as_dirs= | |
36602 | while :; do | |
36603 | case $as_dir in #( | |
36604 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
36605 | *) as_qdir=$as_dir;; | |
36606 | esac | |
36607 | as_dirs="'$as_qdir' $as_dirs" | |
36608 | as_dir=`$as_dirname -- "$as_dir" || | |
36609 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36610 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
36611 | X"$as_dir" : 'X\(//\)$' \| \ | |
36612 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
36613 | $as_echo X"$as_dir" | | |
36614 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
36615 | s//\1/ | |
36616 | q | |
36617 | } | |
36618 | /^X\(\/\/\)[^/].*/{ | |
36619 | s//\1/ | |
36620 | q | |
36621 | } | |
36622 | /^X\(\/\/\)$/{ | |
36623 | s//\1/ | |
36624 | q | |
36625 | } | |
36626 | /^X\(\/\).*/{ | |
36627 | s//\1/ | |
36628 | q | |
36629 | } | |
36630 | s/.*/./; q'` | |
36631 | test -d "$as_dir" && break | |
36632 | done | |
36633 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
36634 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
36635 | ||
36636 | ||
36637 | } # as_fn_mkdir_p | |
36638 | if mkdir -p . 2>/dev/null; then | |
36639 | as_mkdir_p='mkdir -p "$as_dir"' | |
36640 | else | |
36641 | test -d ./-p && rmdir ./-p | |
36642 | as_mkdir_p=false | |
36643 | fi | |
36644 | ||
36645 | ||
36646 | # as_fn_executable_p FILE | |
36647 | # ----------------------- | |
36648 | # Test if FILE is an executable regular file. | |
36649 | as_fn_executable_p () | |
36650 | { | |
36651 | test -f "$1" && test -x "$1" | |
36652 | } # as_fn_executable_p | |
36653 | as_test_x='test -x' | |
36654 | as_executable_p=as_fn_executable_p | |
36655 | ||
36656 | # Sed expression to map a string onto a valid CPP name. | |
36657 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
36658 | ||
36659 | # Sed expression to map a string onto a valid variable name. | |
36660 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
36661 | ||
36662 | ||
36663 | exec 6>&1 | |
36664 | ## ----------------------------------- ## | |
36665 | ## Main body of $CONFIG_STATUS script. ## | |
36666 | ## ----------------------------------- ## | |
36667 | _ASEOF | |
36668 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
36669 | ||
36670 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
36671 | # Save the log message, to keep $0 and so on meaningful, and to | |
36672 | # report actual input values of CONFIG_FILES etc. instead of their | |
36673 | # values after options handling. | |
36674 | ac_log=" | |
d177712e | 36675 | This file was extended by zfs $as_me 0.6.5.9, which was |
0bd31011 TG |
36676 | generated by GNU Autoconf 2.69. Invocation command line was |
36677 | ||
36678 | CONFIG_FILES = $CONFIG_FILES | |
36679 | CONFIG_HEADERS = $CONFIG_HEADERS | |
36680 | CONFIG_LINKS = $CONFIG_LINKS | |
36681 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
36682 | $ $0 $@ | |
36683 | ||
36684 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
36685 | " | |
36686 | ||
36687 | _ACEOF | |
36688 | ||
36689 | case $ac_config_files in *" | |
36690 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
36691 | esac | |
36692 | ||
36693 | case $ac_config_headers in *" | |
36694 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
36695 | esac | |
36696 | ||
36697 | ||
36698 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
36699 | # Files that config.status was made for. | |
36700 | config_files="$ac_config_files" | |
36701 | config_headers="$ac_config_headers" | |
36702 | config_commands="$ac_config_commands" | |
36703 | ||
36704 | _ACEOF | |
36705 | ||
36706 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
36707 | ac_cs_usage="\ | |
36708 | \`$as_me' instantiates files and other configuration actions | |
36709 | from templates according to the current configuration. Unless the files | |
36710 | and actions are specified as TAGs, all are instantiated by default. | |
36711 | ||
36712 | Usage: $0 [OPTION]... [TAG]... | |
36713 | ||
36714 | -h, --help print this help, then exit | |
36715 | -V, --version print version number and configuration settings, then exit | |
36716 | --config print configuration, then exit | |
36717 | -q, --quiet, --silent | |
36718 | do not print progress messages | |
36719 | -d, --debug don't remove temporary files | |
36720 | --recheck update $as_me by reconfiguring in the same conditions | |
36721 | --file=FILE[:TEMPLATE] | |
36722 | instantiate the configuration file FILE | |
36723 | --header=FILE[:TEMPLATE] | |
36724 | instantiate the configuration header FILE | |
36725 | ||
36726 | Configuration files: | |
36727 | $config_files | |
36728 | ||
36729 | Configuration headers: | |
36730 | $config_headers | |
36731 | ||
36732 | Configuration commands: | |
36733 | $config_commands | |
36734 | ||
36735 | Report bugs to the package provider." | |
36736 | ||
36737 | _ACEOF | |
36738 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
36739 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
36740 | ac_cs_version="\\ | |
d177712e | 36741 | zfs config.status 0.6.5.9 |
0bd31011 TG |
36742 | configured by $0, generated by GNU Autoconf 2.69, |
36743 | with options \\"\$ac_cs_config\\" | |
36744 | ||
36745 | Copyright (C) 2012 Free Software Foundation, Inc. | |
36746 | This config.status script is free software; the Free Software Foundation | |
36747 | gives unlimited permission to copy, distribute and modify it." | |
36748 | ||
36749 | ac_pwd='$ac_pwd' | |
36750 | srcdir='$srcdir' | |
36751 | INSTALL='$INSTALL' | |
36752 | MKDIR_P='$MKDIR_P' | |
36753 | AWK='$AWK' | |
36754 | test -n "\$AWK" || AWK=awk | |
36755 | _ACEOF | |
36756 | ||
36757 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
36758 | # The default lists apply if the user does not specify any file. | |
36759 | ac_need_defaults=: | |
36760 | while test $# != 0 | |
36761 | do | |
36762 | case $1 in | |
36763 | --*=?*) | |
36764 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
36765 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
36766 | ac_shift=: | |
36767 | ;; | |
36768 | --*=) | |
36769 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
36770 | ac_optarg= | |
36771 | ac_shift=: | |
36772 | ;; | |
36773 | *) | |
36774 | ac_option=$1 | |
36775 | ac_optarg=$2 | |
36776 | ac_shift=shift | |
36777 | ;; | |
36778 | esac | |
36779 | ||
36780 | case $ac_option in | |
36781 | # Handling of the options. | |
36782 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
36783 | ac_cs_recheck=: ;; | |
36784 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
36785 | $as_echo "$ac_cs_version"; exit ;; | |
36786 | --config | --confi | --conf | --con | --co | --c ) | |
36787 | $as_echo "$ac_cs_config"; exit ;; | |
36788 | --debug | --debu | --deb | --de | --d | -d ) | |
36789 | debug=: ;; | |
36790 | --file | --fil | --fi | --f ) | |
36791 | $ac_shift | |
36792 | case $ac_optarg in | |
36793 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
36794 | '') as_fn_error $? "missing file argument" ;; | |
36795 | esac | |
36796 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
36797 | ac_need_defaults=false;; | |
36798 | --header | --heade | --head | --hea ) | |
36799 | $ac_shift | |
36800 | case $ac_optarg in | |
36801 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
36802 | esac | |
36803 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
36804 | ac_need_defaults=false;; | |
36805 | --he | --h) | |
36806 | # Conflict between --help and --header | |
36807 | as_fn_error $? "ambiguous option: \`$1' | |
36808 | Try \`$0 --help' for more information.";; | |
36809 | --help | --hel | -h ) | |
36810 | $as_echo "$ac_cs_usage"; exit ;; | |
36811 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
36812 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
36813 | ac_cs_silent=: ;; | |
36814 | ||
36815 | # This is an error. | |
36816 | -*) as_fn_error $? "unrecognized option: \`$1' | |
36817 | Try \`$0 --help' for more information." ;; | |
36818 | ||
36819 | *) as_fn_append ac_config_targets " $1" | |
36820 | ac_need_defaults=false ;; | |
36821 | ||
36822 | esac | |
36823 | shift | |
36824 | done | |
36825 | ||
36826 | ac_configure_extra_args= | |
36827 | ||
36828 | if $ac_cs_silent; then | |
36829 | exec 6>/dev/null | |
36830 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
36831 | fi | |
36832 | ||
36833 | _ACEOF | |
36834 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
36835 | if \$ac_cs_recheck; then | |
36836 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
36837 | shift | |
36838 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
36839 | CONFIG_SHELL='$SHELL' | |
36840 | export CONFIG_SHELL | |
36841 | exec "\$@" | |
36842 | fi | |
36843 | ||
36844 | _ACEOF | |
36845 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
36846 | exec 5>>config.log | |
36847 | { | |
36848 | echo | |
36849 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
36850 | ## Running $as_me. ## | |
36851 | _ASBOX | |
36852 | $as_echo "$ac_log" | |
36853 | } >&5 | |
36854 | ||
36855 | _ACEOF | |
36856 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
36857 | # | |
36858 | # INIT-COMMANDS | |
36859 | # | |
36860 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
36861 | ||
36862 | ||
36863 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
36864 | # if CDPATH is set. | |
36865 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
36866 | ||
36867 | sed_quote_subst='$sed_quote_subst' | |
36868 | double_quote_subst='$double_quote_subst' | |
36869 | delay_variable_subst='$delay_variable_subst' | |
36870 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
36871 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
36872 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
36873 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
36874 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
36875 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
36876 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' | |
36877 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
36878 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
36879 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
36880 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
36881 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
36882 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
36883 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
36884 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
36885 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
36886 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
36887 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
36888 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
36889 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
36890 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
36891 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
36892 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
36893 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
36894 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
36895 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
36896 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
36897 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
36898 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
36899 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
36900 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
36901 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
36902 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
36903 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
36904 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
36905 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
36906 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
36907 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
36908 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
36909 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
36910 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
36911 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
36912 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
36913 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
36914 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
36915 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
36916 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
36917 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
36918 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
36919 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
36920 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
36921 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
36922 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
36923 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
36924 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
36925 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
36926 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' | |
36927 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
36928 | 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"`' | |
36929 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' | |
36930 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
36931 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
36932 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' | |
36933 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
36934 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
36935 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
36936 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
36937 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
36938 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
36939 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
36940 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
36941 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
36942 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
36943 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
36944 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
36945 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
36946 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
36947 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
36948 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
36949 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
36950 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
36951 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
36952 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
36953 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
36954 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
36955 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
36956 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
36957 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
36958 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
36959 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
36960 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
36961 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
36962 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
36963 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
36964 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
36965 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
36966 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
36967 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
36968 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
36969 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
36970 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
36971 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
36972 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
36973 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
36974 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
36975 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
36976 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
36977 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
36978 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
36979 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
36980 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
36981 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
36982 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
36983 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
36984 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
36985 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
36986 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
36987 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
36988 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
36989 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
36990 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
36991 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
36992 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
36993 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
36994 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
36995 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
36996 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
36997 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' | |
36998 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
36999 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
37000 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
37001 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
37002 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
37003 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
37004 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
37005 | ||
37006 | LTCC='$LTCC' | |
37007 | LTCFLAGS='$LTCFLAGS' | |
37008 | compiler='$compiler_DEFAULT' | |
37009 | ||
37010 | # A function that is used when there is no print builtin or printf. | |
37011 | func_fallback_echo () | |
37012 | { | |
37013 | eval 'cat <<_LTECHO_EOF | |
37014 | \$1 | |
37015 | _LTECHO_EOF' | |
37016 | } | |
37017 | ||
37018 | # Quote evaled strings. | |
37019 | for var in SHELL \ | |
37020 | ECHO \ | |
37021 | PATH_SEPARATOR \ | |
37022 | SED \ | |
37023 | GREP \ | |
37024 | EGREP \ | |
37025 | FGREP \ | |
37026 | LD \ | |
37027 | NM \ | |
37028 | LN_S \ | |
37029 | lt_SP2NL \ | |
37030 | lt_NL2SP \ | |
37031 | reload_flag \ | |
37032 | OBJDUMP \ | |
37033 | deplibs_check_method \ | |
37034 | file_magic_cmd \ | |
37035 | file_magic_glob \ | |
37036 | want_nocaseglob \ | |
37037 | DLLTOOL \ | |
37038 | sharedlib_from_linklib_cmd \ | |
37039 | AR \ | |
37040 | AR_FLAGS \ | |
37041 | archiver_list_spec \ | |
37042 | STRIP \ | |
37043 | RANLIB \ | |
37044 | CC \ | |
37045 | CFLAGS \ | |
37046 | compiler \ | |
37047 | lt_cv_sys_global_symbol_pipe \ | |
37048 | lt_cv_sys_global_symbol_to_cdecl \ | |
37049 | lt_cv_sys_global_symbol_to_import \ | |
37050 | lt_cv_sys_global_symbol_to_c_name_address \ | |
37051 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
37052 | lt_cv_nm_interface \ | |
37053 | nm_file_list_spec \ | |
37054 | lt_cv_truncate_bin \ | |
37055 | lt_prog_compiler_no_builtin_flag \ | |
37056 | lt_prog_compiler_pic \ | |
37057 | lt_prog_compiler_wl \ | |
37058 | lt_prog_compiler_static \ | |
37059 | lt_cv_prog_compiler_c_o \ | |
37060 | need_locks \ | |
37061 | MANIFEST_TOOL \ | |
37062 | DSYMUTIL \ | |
37063 | NMEDIT \ | |
37064 | LIPO \ | |
37065 | OTOOL \ | |
37066 | OTOOL64 \ | |
37067 | shrext_cmds \ | |
37068 | export_dynamic_flag_spec \ | |
37069 | whole_archive_flag_spec \ | |
37070 | compiler_needs_object \ | |
37071 | with_gnu_ld \ | |
37072 | allow_undefined_flag \ | |
37073 | no_undefined_flag \ | |
37074 | hardcode_libdir_flag_spec \ | |
37075 | hardcode_libdir_separator \ | |
37076 | exclude_expsyms \ | |
37077 | include_expsyms \ | |
37078 | file_list_spec \ | |
37079 | variables_saved_for_relink \ | |
37080 | libname_spec \ | |
37081 | library_names_spec \ | |
37082 | soname_spec \ | |
37083 | install_override_mode \ | |
37084 | finish_eval \ | |
37085 | old_striplib \ | |
37086 | striplib; do | |
37087 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
37088 | *[\\\\\\\`\\"\\\$]*) | |
37089 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
37090 | ;; | |
37091 | *) | |
37092 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
37093 | ;; | |
37094 | esac | |
37095 | done | |
37096 | ||
37097 | # Double-quote double-evaled strings. | |
37098 | for var in reload_cmds \ | |
37099 | old_postinstall_cmds \ | |
37100 | old_postuninstall_cmds \ | |
37101 | old_archive_cmds \ | |
37102 | extract_expsyms_cmds \ | |
37103 | old_archive_from_new_cmds \ | |
37104 | old_archive_from_expsyms_cmds \ | |
37105 | archive_cmds \ | |
37106 | archive_expsym_cmds \ | |
37107 | module_cmds \ | |
37108 | module_expsym_cmds \ | |
37109 | export_symbols_cmds \ | |
37110 | prelink_cmds \ | |
37111 | postlink_cmds \ | |
37112 | postinstall_cmds \ | |
37113 | postuninstall_cmds \ | |
37114 | finish_cmds \ | |
37115 | sys_lib_search_path_spec \ | |
37116 | configure_time_dlsearch_path \ | |
37117 | configure_time_lt_sys_library_path; do | |
37118 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
37119 | *[\\\\\\\`\\"\\\$]*) | |
37120 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
37121 | ;; | |
37122 | *) | |
37123 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
37124 | ;; | |
37125 | esac | |
37126 | done | |
37127 | ||
37128 | ac_aux_dir='$ac_aux_dir' | |
37129 | ||
37130 | # See if we are running on zsh, and set the options that allow our | |
37131 | # commands through without removal of \ escapes INIT. | |
37132 | if test -n "\${ZSH_VERSION+set}"; then | |
37133 | setopt NO_GLOB_SUBST | |
37134 | fi | |
37135 | ||
37136 | ||
37137 | PACKAGE='$PACKAGE' | |
37138 | VERSION='$VERSION' | |
37139 | RM='$RM' | |
37140 | ofile='$ofile' | |
37141 | ||
37142 | ||
37143 | ||
37144 | ||
37145 | _ACEOF | |
37146 | ||
37147 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
37148 | ||
37149 | # Handling of arguments. | |
37150 | for ac_config_target in $ac_config_targets | |
37151 | do | |
37152 | case $ac_config_target in | |
37153 | "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;; | |
37154 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
37155 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
37156 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
0bd31011 TG |
37157 | "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;; |
37158 | "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;; | |
37159 | "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;; | |
37160 | "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;; | |
37161 | "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;; | |
37162 | "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;; | |
37163 | "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;; | |
37164 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
37165 | "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;; | |
37166 | "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;; | |
37167 | "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;; | |
37168 | "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;; | |
37169 | "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;; | |
0bd31011 TG |
37170 | "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;; |
37171 | ||
37172 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
37173 | esac | |
37174 | done | |
37175 | ||
37176 | ||
37177 | # If the user did not use the arguments to specify the items to instantiate, | |
37178 | # then the envvar interface is used. Set only those that are not. | |
37179 | # We use the long form for the default assignment because of an extremely | |
37180 | # bizarre bug on SunOS 4.1.3. | |
37181 | if $ac_need_defaults; then | |
37182 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
37183 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
37184 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
37185 | fi | |
37186 | ||
37187 | # Have a temporary directory for convenience. Make it in the build tree | |
37188 | # simply because there is no reason against having it here, and in addition, | |
37189 | # creating and moving files from /tmp can sometimes cause problems. | |
37190 | # Hook for its removal unless debugging. | |
37191 | # Note that there is a small window in which the directory will not be cleaned: | |
37192 | # after its creation but before its name has been assigned to `$tmp'. | |
37193 | $debug || | |
37194 | { | |
37195 | tmp= ac_tmp= | |
37196 | trap 'exit_status=$? | |
37197 | : "${ac_tmp:=$tmp}" | |
37198 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
37199 | ' 0 | |
37200 | trap 'as_fn_exit 1' 1 2 13 15 | |
37201 | } | |
37202 | # Create a (secure) tmp directory for tmp files. | |
37203 | ||
37204 | { | |
37205 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
37206 | test -d "$tmp" | |
37207 | } || | |
37208 | { | |
37209 | tmp=./conf$$-$RANDOM | |
37210 | (umask 077 && mkdir "$tmp") | |
37211 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
37212 | ac_tmp=$tmp | |
37213 | ||
37214 | # Set up the scripts for CONFIG_FILES section. | |
37215 | # No need to generate them if there are no CONFIG_FILES. | |
37216 | # This happens for instance with `./config.status config.h'. | |
37217 | if test -n "$CONFIG_FILES"; then | |
37218 | ||
37219 | ||
37220 | ac_cr=`echo X | tr X '\015'` | |
37221 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
37222 | # But we know of no other shell where ac_cr would be empty at this | |
37223 | # point, so we can use a bashism as a fallback. | |
37224 | if test "x$ac_cr" = x; then | |
37225 | eval ac_cr=\$\'\\r\' | |
37226 | fi | |
37227 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
37228 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
37229 | ac_cs_awk_cr='\\r' | |
37230 | else | |
37231 | ac_cs_awk_cr=$ac_cr | |
37232 | fi | |
37233 | ||
37234 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
37235 | _ACEOF | |
37236 | ||
37237 | ||
37238 | { | |
37239 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
37240 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
37241 | echo "_ACEOF" | |
37242 | } >conf$$subs.sh || | |
37243 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
37244 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
37245 | ac_delim='%!_!# ' | |
37246 | for ac_last_try in false false false false false :; do | |
37247 | . ./conf$$subs.sh || | |
37248 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
37249 | ||
37250 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
37251 | if test $ac_delim_n = $ac_delim_num; then | |
37252 | break | |
37253 | elif $ac_last_try; then | |
37254 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
37255 | else | |
37256 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
37257 | fi | |
37258 | done | |
37259 | rm -f conf$$subs.sh | |
37260 | ||
37261 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
37262 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
37263 | _ACEOF | |
37264 | sed -n ' | |
37265 | h | |
37266 | s/^/S["/; s/!.*/"]=/ | |
37267 | p | |
37268 | g | |
37269 | s/^[^!]*!// | |
37270 | :repl | |
37271 | t repl | |
37272 | s/'"$ac_delim"'$// | |
37273 | t delim | |
37274 | :nl | |
37275 | h | |
37276 | s/\(.\{148\}\)..*/\1/ | |
37277 | t more1 | |
37278 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
37279 | p | |
37280 | n | |
37281 | b repl | |
37282 | :more1 | |
37283 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
37284 | p | |
37285 | g | |
37286 | s/.\{148\}// | |
37287 | t nl | |
37288 | :delim | |
37289 | h | |
37290 | s/\(.\{148\}\)..*/\1/ | |
37291 | t more2 | |
37292 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
37293 | p | |
37294 | b | |
37295 | :more2 | |
37296 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
37297 | p | |
37298 | g | |
37299 | s/.\{148\}// | |
37300 | t delim | |
37301 | ' <conf$$subs.awk | sed ' | |
37302 | /^[^""]/{ | |
37303 | N | |
37304 | s/\n// | |
37305 | } | |
37306 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
37307 | rm -f conf$$subs.awk | |
37308 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
37309 | _ACAWK | |
37310 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
37311 | for (key in S) S_is_set[key] = 1 | |
37312 | FS = "\a" | |
37313 | ||
37314 | } | |
37315 | { | |
37316 | line = $ 0 | |
37317 | nfields = split(line, field, "@") | |
37318 | substed = 0 | |
37319 | len = length(field[1]) | |
37320 | for (i = 2; i < nfields; i++) { | |
37321 | key = field[i] | |
37322 | keylen = length(key) | |
37323 | if (S_is_set[key]) { | |
37324 | value = S[key] | |
37325 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
37326 | len += length(value) + length(field[++i]) | |
37327 | substed = 1 | |
37328 | } else | |
37329 | len += 1 + keylen | |
37330 | } | |
37331 | ||
37332 | print line | |
37333 | } | |
37334 | ||
37335 | _ACAWK | |
37336 | _ACEOF | |
37337 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
37338 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
37339 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
37340 | else | |
37341 | cat | |
37342 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
37343 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
37344 | _ACEOF | |
37345 | ||
37346 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
37347 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
37348 | # trailing colons and then remove the whole line if VPATH becomes empty | |
37349 | # (actually we leave an empty line to preserve line numbers). | |
37350 | if test "x$srcdir" = x.; then | |
37351 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
37352 | h | |
37353 | s/// | |
37354 | s/^/:/ | |
37355 | s/[ ]*$/:/ | |
37356 | s/:\$(srcdir):/:/g | |
37357 | s/:\${srcdir}:/:/g | |
37358 | s/:@srcdir@:/:/g | |
37359 | s/^:*// | |
37360 | s/:*$// | |
37361 | x | |
37362 | s/\(=[ ]*\).*/\1/ | |
37363 | G | |
37364 | s/\n// | |
37365 | s/^[^=]*=[ ]*$// | |
37366 | }' | |
37367 | fi | |
37368 | ||
37369 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
37370 | fi # test -n "$CONFIG_FILES" | |
37371 | ||
37372 | # Set up the scripts for CONFIG_HEADERS section. | |
37373 | # No need to generate them if there are no CONFIG_HEADERS. | |
37374 | # This happens for instance with `./config.status Makefile'. | |
37375 | if test -n "$CONFIG_HEADERS"; then | |
37376 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
37377 | BEGIN { | |
37378 | _ACEOF | |
37379 | ||
37380 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
37381 | # here-document in config.status, that substitutes the proper values into | |
37382 | # config.h.in to produce config.h. | |
37383 | ||
37384 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
37385 | # handling of long lines. | |
37386 | ac_delim='%!_!# ' | |
37387 | for ac_last_try in false false :; do | |
37388 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
37389 | if test -z "$ac_tt"; then | |
37390 | break | |
37391 | elif $ac_last_try; then | |
37392 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
37393 | else | |
37394 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
37395 | fi | |
37396 | done | |
37397 | ||
37398 | # For the awk script, D is an array of macro values keyed by name, | |
37399 | # likewise P contains macro parameters if any. Preserve backslash | |
37400 | # newline sequences. | |
37401 | ||
37402 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
37403 | sed -n ' | |
37404 | s/.\{148\}/&'"$ac_delim"'/g | |
37405 | t rset | |
37406 | :rset | |
37407 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
37408 | t def | |
37409 | d | |
37410 | :def | |
37411 | s/\\$// | |
37412 | t bsnl | |
37413 | s/["\\]/\\&/g | |
37414 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
37415 | D["\1"]=" \3"/p | |
37416 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
37417 | d | |
37418 | :bsnl | |
37419 | s/["\\]/\\&/g | |
37420 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
37421 | D["\1"]=" \3\\\\\\n"\\/p | |
37422 | t cont | |
37423 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
37424 | t cont | |
37425 | d | |
37426 | :cont | |
37427 | n | |
37428 | s/.\{148\}/&'"$ac_delim"'/g | |
37429 | t clear | |
37430 | :clear | |
37431 | s/\\$// | |
37432 | t bsnlc | |
37433 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
37434 | d | |
37435 | :bsnlc | |
37436 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
37437 | b cont | |
37438 | ' <confdefs.h | sed ' | |
37439 | s/'"$ac_delim"'/"\\\ | |
37440 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
37441 | ||
37442 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
37443 | for (key in D) D_is_set[key] = 1 | |
37444 | FS = "\a" | |
37445 | } | |
37446 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
37447 | line = \$ 0 | |
37448 | split(line, arg, " ") | |
37449 | if (arg[1] == "#") { | |
37450 | defundef = arg[2] | |
37451 | mac1 = arg[3] | |
37452 | } else { | |
37453 | defundef = substr(arg[1], 2) | |
37454 | mac1 = arg[2] | |
37455 | } | |
37456 | split(mac1, mac2, "(") #) | |
37457 | macro = mac2[1] | |
37458 | prefix = substr(line, 1, index(line, defundef) - 1) | |
37459 | if (D_is_set[macro]) { | |
37460 | # Preserve the white space surrounding the "#". | |
37461 | print prefix "define", macro P[macro] D[macro] | |
37462 | next | |
37463 | } else { | |
37464 | # Replace #undef with comments. This is necessary, for example, | |
37465 | # in the case of _POSIX_SOURCE, which is predefined and required | |
37466 | # on some systems where configure will not decide to define it. | |
37467 | if (defundef == "undef") { | |
37468 | print "/*", prefix defundef, macro, "*/" | |
37469 | next | |
37470 | } | |
37471 | } | |
37472 | } | |
37473 | { print } | |
37474 | _ACAWK | |
37475 | _ACEOF | |
37476 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
37477 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
37478 | fi # test -n "$CONFIG_HEADERS" | |
37479 | ||
37480 | ||
37481 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
37482 | shift | |
37483 | for ac_tag | |
37484 | do | |
37485 | case $ac_tag in | |
37486 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
37487 | esac | |
37488 | case $ac_mode$ac_tag in | |
37489 | :[FHL]*:*);; | |
37490 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
37491 | :[FH]-) ac_tag=-:-;; | |
37492 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
37493 | esac | |
37494 | ac_save_IFS=$IFS | |
37495 | IFS=: | |
37496 | set x $ac_tag | |
37497 | IFS=$ac_save_IFS | |
37498 | shift | |
37499 | ac_file=$1 | |
37500 | shift | |
37501 | ||
37502 | case $ac_mode in | |
37503 | :L) ac_source=$1;; | |
37504 | :[FH]) | |
37505 | ac_file_inputs= | |
37506 | for ac_f | |
37507 | do | |
37508 | case $ac_f in | |
37509 | -) ac_f="$ac_tmp/stdin";; | |
37510 | *) # Look for the file first in the build tree, then in the source tree | |
37511 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
37512 | # because $ac_f cannot contain `:'. | |
37513 | test -f "$ac_f" || | |
37514 | case $ac_f in | |
37515 | [\\/$]*) false;; | |
37516 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
37517 | esac || | |
37518 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
37519 | esac | |
37520 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
37521 | as_fn_append ac_file_inputs " '$ac_f'" | |
37522 | done | |
37523 | ||
37524 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
37525 | # use $as_me), people would be surprised to read: | |
37526 | # /* config.h. Generated by config.status. */ | |
37527 | configure_input='Generated from '` | |
37528 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
37529 | `' by configure.' | |
37530 | if test x"$ac_file" != x-; then | |
37531 | configure_input="$ac_file. $configure_input" | |
37532 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
37533 | $as_echo "$as_me: creating $ac_file" >&6;} | |
37534 | fi | |
37535 | # Neutralize special characters interpreted by sed in replacement strings. | |
37536 | case $configure_input in #( | |
37537 | *\&* | *\|* | *\\* ) | |
37538 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
37539 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
37540 | *) ac_sed_conf_input=$configure_input;; | |
37541 | esac | |
37542 | ||
37543 | case $ac_tag in | |
37544 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
37545 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
37546 | esac | |
37547 | ;; | |
37548 | esac | |
37549 | ||
37550 | ac_dir=`$as_dirname -- "$ac_file" || | |
37551 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
37552 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
37553 | X"$ac_file" : 'X\(//\)$' \| \ | |
37554 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
37555 | $as_echo X"$ac_file" | | |
37556 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
37557 | s//\1/ | |
37558 | q | |
37559 | } | |
37560 | /^X\(\/\/\)[^/].*/{ | |
37561 | s//\1/ | |
37562 | q | |
37563 | } | |
37564 | /^X\(\/\/\)$/{ | |
37565 | s//\1/ | |
37566 | q | |
37567 | } | |
37568 | /^X\(\/\).*/{ | |
37569 | s//\1/ | |
37570 | q | |
37571 | } | |
37572 | s/.*/./; q'` | |
37573 | as_dir="$ac_dir"; as_fn_mkdir_p | |
37574 | ac_builddir=. | |
37575 | ||
37576 | case "$ac_dir" in | |
37577 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
37578 | *) | |
37579 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
37580 | # A ".." for each directory in $ac_dir_suffix. | |
37581 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
37582 | case $ac_top_builddir_sub in | |
37583 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
37584 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
37585 | esac ;; | |
37586 | esac | |
37587 | ac_abs_top_builddir=$ac_pwd | |
37588 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
37589 | # for backward compatibility: | |
37590 | ac_top_builddir=$ac_top_build_prefix | |
37591 | ||
37592 | case $srcdir in | |
37593 | .) # We are building in place. | |
37594 | ac_srcdir=. | |
37595 | ac_top_srcdir=$ac_top_builddir_sub | |
37596 | ac_abs_top_srcdir=$ac_pwd ;; | |
37597 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
37598 | ac_srcdir=$srcdir$ac_dir_suffix; | |
37599 | ac_top_srcdir=$srcdir | |
37600 | ac_abs_top_srcdir=$srcdir ;; | |
37601 | *) # Relative name. | |
37602 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
37603 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
37604 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
37605 | esac | |
37606 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
37607 | ||
37608 | ||
37609 | case $ac_mode in | |
37610 | :F) | |
37611 | # | |
37612 | # CONFIG_FILE | |
37613 | # | |
37614 | ||
37615 | case $INSTALL in | |
37616 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
37617 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
37618 | esac | |
37619 | ac_MKDIR_P=$MKDIR_P | |
37620 | case $MKDIR_P in | |
37621 | [\\/$]* | ?:[\\/]* ) ;; | |
37622 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
37623 | esac | |
37624 | _ACEOF | |
37625 | ||
37626 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
37627 | # If the template does not know about datarootdir, expand it. | |
37628 | # FIXME: This hack should be removed a few years after 2.60. | |
37629 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
37630 | ac_sed_dataroot=' | |
37631 | /datarootdir/ { | |
37632 | p | |
37633 | q | |
37634 | } | |
37635 | /@datadir@/p | |
37636 | /@docdir@/p | |
37637 | /@infodir@/p | |
37638 | /@localedir@/p | |
37639 | /@mandir@/p' | |
37640 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
37641 | *datarootdir*) ac_datarootdir_seen=yes;; | |
37642 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
37643 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
37644 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
37645 | _ACEOF | |
37646 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
37647 | ac_datarootdir_hack=' | |
37648 | s&@datadir@&$datadir&g | |
37649 | s&@docdir@&$docdir&g | |
37650 | s&@infodir@&$infodir&g | |
37651 | s&@localedir@&$localedir&g | |
37652 | s&@mandir@&$mandir&g | |
37653 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
37654 | esac | |
37655 | _ACEOF | |
37656 | ||
37657 | # Neutralize VPATH when `$srcdir' = `.'. | |
37658 | # Shell code in configure.ac might set extrasub. | |
37659 | # FIXME: do we really want to maintain this feature? | |
37660 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
37661 | ac_sed_extra="$ac_vpsub | |
37662 | $extrasub | |
37663 | _ACEOF | |
37664 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
37665 | :t | |
37666 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
37667 | s|@configure_input@|$ac_sed_conf_input|;t t | |
37668 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
37669 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
37670 | s&@srcdir@&$ac_srcdir&;t t | |
37671 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
37672 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
37673 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
37674 | s&@builddir@&$ac_builddir&;t t | |
37675 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
37676 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
37677 | s&@INSTALL@&$ac_INSTALL&;t t | |
37678 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
37679 | $ac_datarootdir_hack | |
37680 | " | |
37681 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
37682 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
37683 | ||
37684 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
37685 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
37686 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
37687 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
37688 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
37689 | which seems to be undefined. Please make sure it is defined" >&5 | |
37690 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
37691 | which seems to be undefined. Please make sure it is defined" >&2;} | |
37692 | ||
37693 | rm -f "$ac_tmp/stdin" | |
37694 | case $ac_file in | |
37695 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
37696 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
37697 | esac \ | |
37698 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
37699 | ;; | |
37700 | :H) | |
37701 | # | |
37702 | # CONFIG_HEADER | |
37703 | # | |
37704 | if test x"$ac_file" != x-; then | |
37705 | { | |
37706 | $as_echo "/* $configure_input */" \ | |
37707 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
37708 | } >"$ac_tmp/config.h" \ | |
37709 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
37710 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
37711 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
37712 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
37713 | else | |
37714 | rm -f "$ac_file" | |
37715 | mv "$ac_tmp/config.h" "$ac_file" \ | |
37716 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
37717 | fi | |
37718 | else | |
37719 | $as_echo "/* $configure_input */" \ | |
37720 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
37721 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
37722 | fi | |
37723 | # Compute "$ac_file"'s index in $config_headers. | |
37724 | _am_arg="$ac_file" | |
37725 | _am_stamp_count=1 | |
37726 | for _am_header in $config_headers :; do | |
37727 | case $_am_header in | |
37728 | $_am_arg | $_am_arg:* ) | |
37729 | break ;; | |
37730 | * ) | |
37731 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
37732 | esac | |
37733 | done | |
37734 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
37735 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
37736 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
37737 | X"$_am_arg" : 'X\(//\)$' \| \ | |
37738 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
37739 | $as_echo X"$_am_arg" | | |
37740 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
37741 | s//\1/ | |
37742 | q | |
37743 | } | |
37744 | /^X\(\/\/\)[^/].*/{ | |
37745 | s//\1/ | |
37746 | q | |
37747 | } | |
37748 | /^X\(\/\/\)$/{ | |
37749 | s//\1/ | |
37750 | q | |
37751 | } | |
37752 | /^X\(\/\).*/{ | |
37753 | s//\1/ | |
37754 | q | |
37755 | } | |
37756 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
37757 | ;; | |
37758 | ||
37759 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
37760 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
37761 | ;; | |
37762 | esac | |
37763 | ||
37764 | ||
37765 | case $ac_file$ac_mode in | |
37766 | "zfs_config.h":H) | |
37767 | (mv zfs_config.h zfs_config.h.tmp && | |
37768 | awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h && | |
37769 | rm zfs_config.h.tmp) || exit 1 ;; | |
37770 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
37771 | # Older Autoconf quotes --file arguments for eval, but not when files | |
37772 | # are listed without --file. Let's play safe and only enable the eval | |
37773 | # if we detect the quoting. | |
37774 | case $CONFIG_FILES in | |
37775 | *\'*) eval set x "$CONFIG_FILES" ;; | |
37776 | *) set x $CONFIG_FILES ;; | |
37777 | esac | |
37778 | shift | |
37779 | for mf | |
37780 | do | |
37781 | # Strip MF so we end up with the name of the file. | |
37782 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
37783 | # Check whether this is an Automake generated Makefile or not. | |
37784 | # We used to match only the files named 'Makefile.in', but | |
37785 | # some people rename them; so instead we look at the file content. | |
37786 | # Grep'ing the first line is not enough: some people post-process | |
37787 | # each Makefile.in and add a new line on top of each file to say so. | |
37788 | # Grep'ing the whole file is not good either: AIX grep has a line | |
37789 | # limit of 2048, but all sed's we know have understand at least 4000. | |
37790 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
37791 | dirpart=`$as_dirname -- "$mf" || | |
37792 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
37793 | X"$mf" : 'X\(//\)[^/]' \| \ | |
37794 | X"$mf" : 'X\(//\)$' \| \ | |
37795 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
37796 | $as_echo X"$mf" | | |
37797 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
37798 | s//\1/ | |
37799 | q | |
37800 | } | |
37801 | /^X\(\/\/\)[^/].*/{ | |
37802 | s//\1/ | |
37803 | q | |
37804 | } | |
37805 | /^X\(\/\/\)$/{ | |
37806 | s//\1/ | |
37807 | q | |
37808 | } | |
37809 | /^X\(\/\).*/{ | |
37810 | s//\1/ | |
37811 | q | |
37812 | } | |
37813 | s/.*/./; q'` | |
37814 | else | |
37815 | continue | |
37816 | fi | |
37817 | # Extract the definition of DEPDIR, am__include, and am__quote | |
37818 | # from the Makefile without running 'make'. | |
37819 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
37820 | test -z "$DEPDIR" && continue | |
37821 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
37822 | test -z "$am__include" && continue | |
37823 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
37824 | # Find all dependency output files, they are included files with | |
37825 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
37826 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
37827 | # expansion. | |
37828 | for file in `sed -n " | |
37829 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
37830 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
37831 | # Make sure the directory exists. | |
37832 | test -f "$dirpart/$file" && continue | |
37833 | fdir=`$as_dirname -- "$file" || | |
37834 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
37835 | X"$file" : 'X\(//\)[^/]' \| \ | |
37836 | X"$file" : 'X\(//\)$' \| \ | |
37837 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
37838 | $as_echo X"$file" | | |
37839 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
37840 | s//\1/ | |
37841 | q | |
37842 | } | |
37843 | /^X\(\/\/\)[^/].*/{ | |
37844 | s//\1/ | |
37845 | q | |
37846 | } | |
37847 | /^X\(\/\/\)$/{ | |
37848 | s//\1/ | |
37849 | q | |
37850 | } | |
37851 | /^X\(\/\).*/{ | |
37852 | s//\1/ | |
37853 | q | |
37854 | } | |
37855 | s/.*/./; q'` | |
37856 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
37857 | # echo "creating $dirpart/$file" | |
37858 | echo '# dummy' > "$dirpart/$file" | |
37859 | done | |
37860 | done | |
37861 | } | |
37862 | ;; | |
37863 | "libtool":C) | |
37864 | ||
37865 | # See if we are running on zsh, and set the options that allow our | |
37866 | # commands through without removal of \ escapes. | |
37867 | if test -n "${ZSH_VERSION+set}"; then | |
37868 | setopt NO_GLOB_SUBST | |
37869 | fi | |
37870 | ||
37871 | cfgfile=${ofile}T | |
37872 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
37873 | $RM "$cfgfile" | |
37874 | ||
37875 | cat <<_LT_EOF >> "$cfgfile" | |
37876 | #! $SHELL | |
37877 | # Generated automatically by $as_me ($PACKAGE) $VERSION | |
37878 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
37879 | ||
37880 | # Provide generalized library-building support services. | |
37881 | # Written by Gordon Matzigkeit, 1996 | |
37882 | ||
37883 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
37884 | # This is free software; see the source for copying conditions. There is NO | |
37885 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
37886 | ||
37887 | # GNU Libtool is free software; you can redistribute it and/or modify | |
37888 | # it under the terms of the GNU General Public License as published by | |
37889 | # the Free Software Foundation; either version 2 of of the License, or | |
37890 | # (at your option) any later version. | |
37891 | # | |
37892 | # As a special exception to the GNU General Public License, if you | |
37893 | # distribute this file as part of a program or library that is built | |
37894 | # using GNU Libtool, you may include this file under the same | |
37895 | # distribution terms that you use for the rest of that program. | |
37896 | # | |
37897 | # GNU Libtool is distributed in the hope that it will be useful, but | |
37898 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
37899 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
37900 | # GNU General Public License for more details. | |
37901 | # | |
37902 | # You should have received a copy of the GNU General Public License | |
37903 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
37904 | ||
37905 | ||
37906 | # The names of the tagged configurations supported by this script. | |
37907 | available_tags='' | |
37908 | ||
37909 | # Configured defaults for sys_lib_dlsearch_path munging. | |
37910 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
37911 | ||
37912 | # ### BEGIN LIBTOOL CONFIG | |
37913 | ||
37914 | # Which release of libtool.m4 was used? | |
37915 | macro_version=$macro_version | |
37916 | macro_revision=$macro_revision | |
37917 | ||
37918 | # Whether or not to build shared libraries. | |
37919 | build_libtool_libs=$enable_shared | |
37920 | ||
37921 | # Whether or not to build static libraries. | |
37922 | build_old_libs=$enable_static | |
37923 | ||
37924 | # What type of objects to build. | |
37925 | pic_mode=$pic_mode | |
37926 | ||
37927 | # Whether or not to optimize for fast installation. | |
37928 | fast_install=$enable_fast_install | |
37929 | ||
37930 | # Shared archive member basename,for filename based shared library versioning on AIX. | |
37931 | shared_archive_member_spec=$shared_archive_member_spec | |
37932 | ||
37933 | # Shell to use when invoking shell scripts. | |
37934 | SHELL=$lt_SHELL | |
37935 | ||
37936 | # An echo program that protects backslashes. | |
37937 | ECHO=$lt_ECHO | |
37938 | ||
37939 | # The PATH separator for the build system. | |
37940 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
37941 | ||
37942 | # The host system. | |
37943 | host_alias=$host_alias | |
37944 | host=$host | |
37945 | host_os=$host_os | |
37946 | ||
37947 | # The build system. | |
37948 | build_alias=$build_alias | |
37949 | build=$build | |
37950 | build_os=$build_os | |
37951 | ||
37952 | # A sed program that does not truncate output. | |
37953 | SED=$lt_SED | |
37954 | ||
37955 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
37956 | Xsed="\$SED -e 1s/^X//" | |
37957 | ||
37958 | # A grep program that handles long lines. | |
37959 | GREP=$lt_GREP | |
37960 | ||
37961 | # An ERE matcher. | |
37962 | EGREP=$lt_EGREP | |
37963 | ||
37964 | # A literal string matcher. | |
37965 | FGREP=$lt_FGREP | |
37966 | ||
37967 | # A BSD- or MS-compatible name lister. | |
37968 | NM=$lt_NM | |
37969 | ||
37970 | # Whether we need soft or hard links. | |
37971 | LN_S=$lt_LN_S | |
37972 | ||
37973 | # What is the maximum length of a command? | |
37974 | max_cmd_len=$max_cmd_len | |
37975 | ||
37976 | # Object file suffix (normally "o"). | |
37977 | objext=$ac_objext | |
37978 | ||
37979 | # Executable file suffix (normally ""). | |
37980 | exeext=$exeext | |
37981 | ||
37982 | # whether the shell understands "unset". | |
37983 | lt_unset=$lt_unset | |
37984 | ||
37985 | # turn spaces into newlines. | |
37986 | SP2NL=$lt_lt_SP2NL | |
37987 | ||
37988 | # turn newlines into spaces. | |
37989 | NL2SP=$lt_lt_NL2SP | |
37990 | ||
37991 | # convert \$build file names to \$host format. | |
37992 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
37993 | ||
37994 | # convert \$build files to toolchain format. | |
37995 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
37996 | ||
37997 | # An object symbol dumper. | |
37998 | OBJDUMP=$lt_OBJDUMP | |
37999 | ||
38000 | # Method to check whether dependent libraries are shared objects. | |
38001 | deplibs_check_method=$lt_deplibs_check_method | |
38002 | ||
38003 | # Command to use when deplibs_check_method = "file_magic". | |
38004 | file_magic_cmd=$lt_file_magic_cmd | |
38005 | ||
38006 | # How to find potential files when deplibs_check_method = "file_magic". | |
38007 | file_magic_glob=$lt_file_magic_glob | |
38008 | ||
38009 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
38010 | want_nocaseglob=$lt_want_nocaseglob | |
38011 | ||
38012 | # DLL creation program. | |
38013 | DLLTOOL=$lt_DLLTOOL | |
38014 | ||
38015 | # Command to associate shared and link libraries. | |
38016 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
38017 | ||
38018 | # The archiver. | |
38019 | AR=$lt_AR | |
38020 | ||
38021 | # Flags to create an archive. | |
38022 | AR_FLAGS=$lt_AR_FLAGS | |
38023 | ||
38024 | # How to feed a file listing to the archiver. | |
38025 | archiver_list_spec=$lt_archiver_list_spec | |
38026 | ||
38027 | # A symbol stripping program. | |
38028 | STRIP=$lt_STRIP | |
38029 | ||
38030 | # Commands used to install an old-style archive. | |
38031 | RANLIB=$lt_RANLIB | |
38032 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
38033 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
38034 | ||
38035 | # Whether to use a lock for old archive extraction. | |
38036 | lock_old_archive_extraction=$lock_old_archive_extraction | |
38037 | ||
38038 | # A C compiler. | |
38039 | LTCC=$lt_CC | |
38040 | ||
38041 | # LTCC compiler flags. | |
38042 | LTCFLAGS=$lt_CFLAGS | |
38043 | ||
38044 | # Take the output of nm and produce a listing of raw symbols and C names. | |
38045 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
38046 | ||
38047 | # Transform the output of nm in a proper C declaration. | |
38048 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
38049 | ||
38050 | # Transform the output of nm into a list of symbols to manually relocate. | |
38051 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
38052 | ||
38053 | # Transform the output of nm in a C name address pair. | |
38054 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
38055 | ||
38056 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
38057 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
38058 | ||
38059 | # The name lister interface. | |
38060 | nm_interface=$lt_lt_cv_nm_interface | |
38061 | ||
38062 | # Specify filename containing input files for \$NM. | |
38063 | nm_file_list_spec=$lt_nm_file_list_spec | |
38064 | ||
38065 | # The root where to search for dependent libraries,and where our libraries should be installed. | |
38066 | lt_sysroot=$lt_sysroot | |
38067 | ||
38068 | # Command to truncate a binary pipe. | |
38069 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
38070 | ||
38071 | # The name of the directory that contains temporary libtool files. | |
38072 | objdir=$objdir | |
38073 | ||
38074 | # Used to examine libraries when file_magic_cmd begins with "file". | |
38075 | MAGIC_CMD=$MAGIC_CMD | |
38076 | ||
38077 | # Must we lock files when doing compilation? | |
38078 | need_locks=$lt_need_locks | |
38079 | ||
38080 | # Manifest tool. | |
38081 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
38082 | ||
38083 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
38084 | DSYMUTIL=$lt_DSYMUTIL | |
38085 | ||
38086 | # Tool to change global to local symbols on Mac OS X. | |
38087 | NMEDIT=$lt_NMEDIT | |
38088 | ||
38089 | # Tool to manipulate fat objects and archives on Mac OS X. | |
38090 | LIPO=$lt_LIPO | |
38091 | ||
38092 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
38093 | OTOOL=$lt_OTOOL | |
38094 | ||
38095 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
38096 | OTOOL64=$lt_OTOOL64 | |
38097 | ||
38098 | # Old archive suffix (normally "a"). | |
38099 | libext=$libext | |
38100 | ||
38101 | # Shared library suffix (normally ".so"). | |
38102 | shrext_cmds=$lt_shrext_cmds | |
38103 | ||
38104 | # The commands to extract the exported symbol list from a shared archive. | |
38105 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
38106 | ||
38107 | # Variables whose values should be saved in libtool wrapper scripts and | |
38108 | # restored at link time. | |
38109 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
38110 | ||
38111 | # Do we need the "lib" prefix for modules? | |
38112 | need_lib_prefix=$need_lib_prefix | |
38113 | ||
38114 | # Do we need a version for libraries? | |
38115 | need_version=$need_version | |
38116 | ||
38117 | # Library versioning type. | |
38118 | version_type=$version_type | |
38119 | ||
38120 | # Shared library runtime path variable. | |
38121 | runpath_var=$runpath_var | |
38122 | ||
38123 | # Shared library path variable. | |
38124 | shlibpath_var=$shlibpath_var | |
38125 | ||
38126 | # Is shlibpath searched before the hard-coded library search path? | |
38127 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
38128 | ||
38129 | # Format of library name prefix. | |
38130 | libname_spec=$lt_libname_spec | |
38131 | ||
38132 | # List of archive names. First name is the real one, the rest are links. | |
38133 | # The last name is the one that the linker finds with -lNAME | |
38134 | library_names_spec=$lt_library_names_spec | |
38135 | ||
38136 | # The coded name of the library, if different from the real name. | |
38137 | soname_spec=$lt_soname_spec | |
38138 | ||
38139 | # Permission mode override for installation of shared libraries. | |
38140 | install_override_mode=$lt_install_override_mode | |
38141 | ||
38142 | # Command to use after installation of a shared archive. | |
38143 | postinstall_cmds=$lt_postinstall_cmds | |
38144 | ||
38145 | # Command to use after uninstallation of a shared archive. | |
38146 | postuninstall_cmds=$lt_postuninstall_cmds | |
38147 | ||
38148 | # Commands used to finish a libtool library installation in a directory. | |
38149 | finish_cmds=$lt_finish_cmds | |
38150 | ||
38151 | # As "finish_cmds", except a single script fragment to be evaled but | |
38152 | # not shown. | |
38153 | finish_eval=$lt_finish_eval | |
38154 | ||
38155 | # Whether we should hardcode library paths into libraries. | |
38156 | hardcode_into_libs=$hardcode_into_libs | |
38157 | ||
38158 | # Compile-time system search path for libraries. | |
38159 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
38160 | ||
38161 | # Detected run-time system search path for libraries. | |
38162 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
38163 | ||
38164 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
38165 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
38166 | ||
38167 | # Whether dlopen is supported. | |
38168 | dlopen_support=$enable_dlopen | |
38169 | ||
38170 | # Whether dlopen of programs is supported. | |
38171 | dlopen_self=$enable_dlopen_self | |
38172 | ||
38173 | # Whether dlopen of statically linked programs is supported. | |
38174 | dlopen_self_static=$enable_dlopen_self_static | |
38175 | ||
38176 | # Commands to strip libraries. | |
38177 | old_striplib=$lt_old_striplib | |
38178 | striplib=$lt_striplib | |
38179 | ||
38180 | ||
38181 | # The linker used to build libraries. | |
38182 | LD=$lt_LD | |
38183 | ||
38184 | # How to create reloadable object files. | |
38185 | reload_flag=$lt_reload_flag | |
38186 | reload_cmds=$lt_reload_cmds | |
38187 | ||
38188 | # Commands used to build an old-style archive. | |
38189 | old_archive_cmds=$lt_old_archive_cmds | |
38190 | ||
38191 | # A language specific compiler. | |
38192 | CC=$lt_compiler | |
38193 | ||
38194 | # Is the compiler the GNU compiler? | |
38195 | with_gcc=$GCC | |
38196 | ||
38197 | # Compiler flag to turn off builtin functions. | |
38198 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
38199 | ||
38200 | # Additional compiler flags for building library objects. | |
38201 | pic_flag=$lt_lt_prog_compiler_pic | |
38202 | ||
38203 | # How to pass a linker flag through the compiler. | |
38204 | wl=$lt_lt_prog_compiler_wl | |
38205 | ||
38206 | # Compiler flag to prevent dynamic linking. | |
38207 | link_static_flag=$lt_lt_prog_compiler_static | |
38208 | ||
38209 | # Does compiler simultaneously support -c and -o options? | |
38210 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
38211 | ||
38212 | # Whether or not to add -lc for building shared libraries. | |
38213 | build_libtool_need_lc=$archive_cmds_need_lc | |
38214 | ||
38215 | # Whether or not to disallow shared libs when runtime libs are static. | |
38216 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
38217 | ||
38218 | # Compiler flag to allow reflexive dlopens. | |
38219 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
38220 | ||
38221 | # Compiler flag to generate shared objects directly from archives. | |
38222 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
38223 | ||
38224 | # Whether the compiler copes with passing no objects directly. | |
38225 | compiler_needs_object=$lt_compiler_needs_object | |
38226 | ||
38227 | # Create an old-style archive from a shared archive. | |
38228 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
38229 | ||
38230 | # Create a temporary old-style archive to link instead of a shared archive. | |
38231 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
38232 | ||
38233 | # Commands used to build a shared archive. | |
38234 | archive_cmds=$lt_archive_cmds | |
38235 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
38236 | ||
38237 | # Commands used to build a loadable module if different from building | |
38238 | # a shared archive. | |
38239 | module_cmds=$lt_module_cmds | |
38240 | module_expsym_cmds=$lt_module_expsym_cmds | |
38241 | ||
38242 | # Whether we are building with GNU ld or not. | |
38243 | with_gnu_ld=$lt_with_gnu_ld | |
38244 | ||
38245 | # Flag that allows shared libraries with undefined symbols to be built. | |
38246 | allow_undefined_flag=$lt_allow_undefined_flag | |
38247 | ||
38248 | # Flag that enforces no undefined symbols. | |
38249 | no_undefined_flag=$lt_no_undefined_flag | |
38250 | ||
38251 | # Flag to hardcode \$libdir into a binary during linking. | |
38252 | # This must work even if \$libdir does not exist | |
38253 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
38254 | ||
38255 | # Whether we need a single "-rpath" flag with a separated argument. | |
38256 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
38257 | ||
38258 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
38259 | # DIR into the resulting binary. | |
38260 | hardcode_direct=$hardcode_direct | |
38261 | ||
38262 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
38263 | # DIR into the resulting binary and the resulting library dependency is | |
38264 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the | |
38265 | # library is relocated. | |
38266 | hardcode_direct_absolute=$hardcode_direct_absolute | |
38267 | ||
38268 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
38269 | # into the resulting binary. | |
38270 | hardcode_minus_L=$hardcode_minus_L | |
38271 | ||
38272 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
38273 | # into the resulting binary. | |
38274 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
38275 | ||
38276 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
38277 | # into the library and all subsequent libraries and executables linked | |
38278 | # against it. | |
38279 | hardcode_automatic=$hardcode_automatic | |
38280 | ||
38281 | # Set to yes if linker adds runtime paths of dependent libraries | |
38282 | # to runtime path list. | |
38283 | inherit_rpath=$inherit_rpath | |
38284 | ||
38285 | # Whether libtool must link a program against all its dependency libraries. | |
38286 | link_all_deplibs=$link_all_deplibs | |
38287 | ||
38288 | # Set to "yes" if exported symbols are required. | |
38289 | always_export_symbols=$always_export_symbols | |
38290 | ||
38291 | # The commands to list exported symbols. | |
38292 | export_symbols_cmds=$lt_export_symbols_cmds | |
38293 | ||
38294 | # Symbols that should not be listed in the preloaded symbols. | |
38295 | exclude_expsyms=$lt_exclude_expsyms | |
38296 | ||
38297 | # Symbols that must always be exported. | |
38298 | include_expsyms=$lt_include_expsyms | |
38299 | ||
38300 | # Commands necessary for linking programs (against libraries) with templates. | |
38301 | prelink_cmds=$lt_prelink_cmds | |
38302 | ||
38303 | # Commands necessary for finishing linking programs. | |
38304 | postlink_cmds=$lt_postlink_cmds | |
38305 | ||
38306 | # Specify filename containing input files. | |
38307 | file_list_spec=$lt_file_list_spec | |
38308 | ||
38309 | # How to hardcode a shared library path into an executable. | |
38310 | hardcode_action=$hardcode_action | |
38311 | ||
38312 | # ### END LIBTOOL CONFIG | |
38313 | ||
38314 | _LT_EOF | |
38315 | ||
38316 | cat <<'_LT_EOF' >> "$cfgfile" | |
38317 | ||
38318 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
38319 | ||
38320 | # func_munge_path_list VARIABLE PATH | |
38321 | # ----------------------------------- | |
38322 | # VARIABLE is name of variable containing _space_ separated list of | |
38323 | # directories to be munged by the contents of PATH, which is string | |
38324 | # having a format: | |
38325 | # "DIR[:DIR]:" | |
38326 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
38327 | # ":DIR[:DIR]" | |
38328 | # string "DIR[ DIR]" will be appended to VARIABLE | |
38329 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
38330 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
38331 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
38332 | # "DIR[:DIR]" | |
38333 | # VARIABLE will be replaced by "DIR[ DIR]" | |
38334 | func_munge_path_list () | |
38335 | { | |
38336 | case x$2 in | |
38337 | x) | |
38338 | ;; | |
38339 | *:) | |
38340 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
38341 | ;; | |
38342 | x:*) | |
38343 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
38344 | ;; | |
38345 | *::*) | |
38346 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
38347 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
38348 | ;; | |
38349 | *) | |
38350 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
38351 | ;; | |
38352 | esac | |
38353 | } | |
38354 | ||
38355 | ||
38356 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
38357 | func_cc_basename () | |
38358 | { | |
38359 | for cc_temp in $*""; do | |
38360 | case $cc_temp in | |
38361 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
38362 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
38363 | \-*) ;; | |
38364 | *) break;; | |
38365 | esac | |
38366 | done | |
38367 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
38368 | } | |
38369 | ||
38370 | ||
38371 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
38372 | ||
38373 | _LT_EOF | |
38374 | ||
38375 | case $host_os in | |
38376 | aix3*) | |
38377 | cat <<\_LT_EOF >> "$cfgfile" | |
38378 | # AIX sometimes has problems with the GCC collect2 program. For some | |
38379 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
38380 | # vanish in a puff of smoke. | |
38381 | if test set != "${COLLECT_NAMES+set}"; then | |
38382 | COLLECT_NAMES= | |
38383 | export COLLECT_NAMES | |
38384 | fi | |
38385 | _LT_EOF | |
38386 | ;; | |
38387 | esac | |
38388 | ||
38389 | ||
38390 | ltmain=$ac_aux_dir/ltmain.sh | |
38391 | ||
38392 | ||
38393 | # We use sed instead of cat because bash on DJGPP gets confused if | |
38394 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
38395 | # text mode, it properly converts lines to CR/LF. This bash problem | |
38396 | # is reportedly fixed, but why not run on old versions too? | |
38397 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
38398 | || (rm -f "$cfgfile"; exit 1) | |
38399 | ||
38400 | mv -f "$cfgfile" "$ofile" || | |
38401 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
38402 | chmod +x "$ofile" | |
38403 | ||
38404 | ;; | |
38405 | ||
38406 | esac | |
38407 | done # for ac_tag | |
38408 | ||
38409 | ||
38410 | as_fn_exit 0 | |
38411 | _ACEOF | |
38412 | ac_clean_files=$ac_clean_files_save | |
38413 | ||
38414 | test $ac_write_fail = 0 || | |
38415 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
38416 | ||
38417 | ||
38418 | # configure is writing to config.log, and then calls config.status. | |
38419 | # config.status does its own redirection, appending to config.log. | |
38420 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
38421 | # by configure, so config.status won't be able to write to it; its | |
38422 | # output is simply discarded. So we exec the FD to /dev/null, | |
38423 | # effectively closing config.log, so it can be properly (re)opened and | |
38424 | # appended to by config.status. When coming back to configure, we | |
38425 | # need to make the FD available again. | |
38426 | if test "$no_create" != yes; then | |
38427 | ac_cs_success=: | |
38428 | ac_config_status_args= | |
38429 | test "$silent" = yes && | |
38430 | ac_config_status_args="$ac_config_status_args --quiet" | |
38431 | exec 5>/dev/null | |
38432 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
38433 | exec 5>>config.log | |
38434 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
38435 | # would make configure fail if this is the last instruction. | |
38436 | $ac_cs_success || as_fn_exit 1 | |
38437 | fi | |
38438 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
38439 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
38440 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
38441 | fi | |
38442 |