]> git.proxmox.com Git - mirror_zfs-debian.git/blob - configure
Merge tag 'upstream/0.6.1'
[mirror_zfs-debian.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537 ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
546 :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
549 :
550 else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
558 cat <<_LT_EOF
559 $*
560 _LT_EOF
561 exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575 then
576 break
577 fi
578 done
579 fi
580
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
584 :
585 else
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
589 #
590 # So, first we look for a working echo in the user's PATH.
591
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
594 IFS="$lt_save_ifs"
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
599 ECHO="$dir/echo"
600 break
601 fi
602 done
603 IFS="$lt_save_ifs"
604
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
611 ECHO='print -r'
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
618 export CONFIG_SHELL
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620 else
621 # Try using printf.
622 ECHO='printf %s\n'
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 # Cool, printf works
627 :
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633 export CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
635 export SHELL
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
642 else
643 # maybe with a smaller string...
644 prev=:
645
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648 then
649 break
650 fi
651 prev="$cmd"
652 done
653
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658 else
659 # Oops. We lost completely, so just stick with echo.
660 ECHO=echo
661 fi
662 fi
663 fi
664 fi
665 fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 # Factoring default headers for most tests.
707 ac_includes_default="\
708 #include <stdio.h>
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
711 #endif
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
714 #endif
715 #ifdef STDC_HEADERS
716 # include <stdlib.h>
717 # include <stddef.h>
718 #else
719 # ifdef HAVE_STDLIB_H
720 # include <stdlib.h>
721 # endif
722 #endif
723 #ifdef HAVE_STRING_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725 # include <memory.h>
726 # endif
727 # include <string.h>
728 #endif
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
731 #endif
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
734 #endif
735 #ifdef HAVE_STDINT_H
736 # include <stdint.h>
737 #endif
738 #ifdef HAVE_UNISTD_H
739 # include <unistd.h>
740 #endif"
741
742 ac_subst_vars='am__EXEEXT_FALSE
743 am__EXEEXT_TRUE
744 LTLIBOBJS
745 LIBOBJS
746 DEBUG_DMU_TX
747 DEBUG_ZFS
748 DEBUG_STACKFLAGS
749 DEBUG_CFLAGS
750 CONFIG_KERNEL_FALSE
751 CONFIG_KERNEL_TRUE
752 CONFIG_USER_FALSE
753 CONFIG_USER_TRUE
754 FRAME_LARGER_THAN
755 LIBSELINUX
756 LIBBLKID
757 LIBUUID
758 ZLIB
759 dracutdir
760 udevruledir
761 udevdir
762 KERNELCPPFLAGS
763 KERNELMAKE_PARAMS
764 SPL_SYMBOLS
765 SPL_VERSION
766 SPL_OBJ
767 SPL
768 LINUX_SYMBOLS
769 LINUX_VERSION
770 LINUX_OBJ
771 LINUX
772 NO_UNUSED_BUT_SET_VARIABLE
773 ZFS_CONFIG
774 TARGET_ASM_DIR
775 ALIEN_VERSION
776 ALIEN
777 HAVE_ALIEN
778 DPKGBUILD_VERSION
779 DPKGBUILD
780 HAVE_DPKGBUILD
781 DPKG_VERSION
782 DPKG
783 HAVE_DPKG
784 SRPM_DEFINE_COMMON
785 SRPM_DEFINE_DKMS
786 SRPM_DEFINE_KMOD
787 SRPM_DEFINE_UTIL
788 RPM_DEFINE_COMMON
789 RPM_DEFINE_DKMS
790 RPM_DEFINE_KMOD
791 RPM_DEFINE_UTIL
792 RPM_SPEC_DIR
793 RPMBUILD_VERSION
794 RPMBUILD
795 HAVE_RPMBUILD
796 RPM_VERSION
797 RPM
798 HAVE_RPM
799 DEFAULT_INIT_SCRIPT
800 DEFAULT_INIT_DIR
801 DEFAULT_PACKAGE
802 VENDOR
803 am__fastdepCCAS_FALSE
804 am__fastdepCCAS_TRUE
805 CCASDEPMODE
806 CCASFLAGS
807 CCAS
808 CPP
809 OTOOL64
810 OTOOL
811 LIPO
812 NMEDIT
813 DSYMUTIL
814 lt_ECHO
815 RANLIB
816 AR
817 OBJDUMP
818 LN_S
819 NM
820 ac_ct_DUMPBIN
821 DUMPBIN
822 LD
823 FGREP
824 EGREP
825 GREP
826 SED
827 LIBTOOL
828 am__fastdepCC_FALSE
829 am__fastdepCC_TRUE
830 CCDEPMODE
831 AMDEPBACKSLASH
832 AMDEP_FALSE
833 AMDEP_TRUE
834 am__quote
835 am__include
836 DEPDIR
837 OBJEXT
838 EXEEXT
839 ac_ct_CC
840 CPPFLAGS
841 LDFLAGS
842 CFLAGS
843 CC
844 am__untar
845 am__tar
846 AMTAR
847 am__leading_dot
848 SET_MAKE
849 AWK
850 mkdir_p
851 MKDIR_P
852 INSTALL_STRIP_PROGRAM
853 STRIP
854 install_sh
855 MAKEINFO
856 AUTOHEADER
857 AUTOMAKE
858 AUTOCONF
859 ACLOCAL
860 VERSION
861 PACKAGE
862 CYGPATH_W
863 am__isrc
864 INSTALL_DATA
865 INSTALL_SCRIPT
866 INSTALL_PROGRAM
867 AM_BACKSLASH
868 AM_DEFAULT_VERBOSITY
869 MAINT
870 MAINTAINER_MODE_FALSE
871 MAINTAINER_MODE_TRUE
872 target_os
873 target_vendor
874 target_cpu
875 target
876 host_os
877 host_vendor
878 host_cpu
879 host
880 build_os
881 build_vendor
882 build_cpu
883 build
884 ZFS_META_LT_AGE
885 ZFS_META_LT_REVISION
886 ZFS_META_LT_CURRENT
887 ZFS_META_AUTHOR
888 ZFS_META_DATA
889 ZFS_META_ALIAS
890 ZFS_META_LICENSE
891 RELEASE
892 ZFS_META_RELEASE
893 ZFS_META_VERSION
894 ZFS_META_NAME
895 target_alias
896 host_alias
897 build_alias
898 LIBS
899 ECHO_T
900 ECHO_N
901 ECHO_C
902 DEFS
903 mandir
904 localedir
905 libdir
906 psdir
907 pdfdir
908 dvidir
909 htmldir
910 infodir
911 docdir
912 oldincludedir
913 includedir
914 localstatedir
915 sharedstatedir
916 sysconfdir
917 datadir
918 datarootdir
919 libexecdir
920 sbindir
921 bindir
922 program_transform_name
923 prefix
924 exec_prefix
925 PACKAGE_URL
926 PACKAGE_BUGREPORT
927 PACKAGE_STRING
928 PACKAGE_VERSION
929 PACKAGE_TARNAME
930 PACKAGE_NAME
931 PATH_SEPARATOR
932 SHELL'
933 ac_subst_files=''
934 ac_user_opts='
935 enable_option_checking
936 enable_maintainer_mode
937 enable_silent_rules
938 enable_dependency_tracking
939 enable_shared
940 enable_static
941 with_pic
942 enable_fast_install
943 with_gnu_ld
944 enable_libtool_lock
945 with_spec
946 with_config
947 enable_linux_builtin
948 with_linux
949 with_linux_obj
950 with_spl
951 with_spl_obj
952 with_spl_timeout
953 with_udevdir
954 with_udevruledir
955 with_dracutdir
956 with_blkid
957 with_selinux
958 enable_debug
959 enable_debug_dmu_tx
960 '
961 ac_precious_vars='build_alias
962 host_alias
963 target_alias
964 CC
965 CFLAGS
966 LDFLAGS
967 LIBS
968 CPPFLAGS
969 CPP
970 CCAS
971 CCASFLAGS'
972
973
974 # Initialize some variables set by options.
975 ac_init_help=
976 ac_init_version=false
977 ac_unrecognized_opts=
978 ac_unrecognized_sep=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
981 cache_file=/dev/null
982 exec_prefix=NONE
983 no_create=
984 no_recursion=
985 prefix=NONE
986 program_prefix=NONE
987 program_suffix=NONE
988 program_transform_name=s,x,x,
989 silent=
990 site=
991 srcdir=
992 verbose=
993 x_includes=NONE
994 x_libraries=NONE
995
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE}'
1013 infodir='${datarootdir}/info'
1014 htmldir='${docdir}'
1015 dvidir='${docdir}'
1016 pdfdir='${docdir}'
1017 psdir='${docdir}'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1021
1022 ac_prev=
1023 ac_dashdash=
1024 for ac_option
1025 do
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1029 ac_prev=
1030 continue
1031 fi
1032
1033 case $ac_option in
1034 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *=) ac_optarg= ;;
1036 *) ac_optarg=yes ;;
1037 esac
1038
1039 # Accept the important Cygnus configure options, so we can diagnose typos.
1040
1041 case $ac_dashdash$ac_option in
1042 --)
1043 ac_dashdash=yes ;;
1044
1045 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046 ac_prev=bindir ;;
1047 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048 bindir=$ac_optarg ;;
1049
1050 -build | --build | --buil | --bui | --bu)
1051 ac_prev=build_alias ;;
1052 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053 build_alias=$ac_optarg ;;
1054
1055 -cache-file | --cache-file | --cache-fil | --cache-fi \
1056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057 ac_prev=cache_file ;;
1058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060 cache_file=$ac_optarg ;;
1061
1062 --config-cache | -C)
1063 cache_file=config.cache ;;
1064
1065 -datadir | --datadir | --datadi | --datad)
1066 ac_prev=datadir ;;
1067 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1068 datadir=$ac_optarg ;;
1069
1070 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071 | --dataroo | --dataro | --datar)
1072 ac_prev=datarootdir ;;
1073 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075 datarootdir=$ac_optarg ;;
1076
1077 -disable-* | --disable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086 "enable_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=no ;;
1092
1093 -docdir | --docdir | --docdi | --doc | --do)
1094 ac_prev=docdir ;;
1095 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1096 docdir=$ac_optarg ;;
1097
1098 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1099 ac_prev=dvidir ;;
1100 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1101 dvidir=$ac_optarg ;;
1102
1103 -enable-* | --enable-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error $? "invalid feature name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112 "enable_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval enable_$ac_useropt=\$ac_optarg ;;
1118
1119 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1120 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1121 | --exec | --exe | --ex)
1122 ac_prev=exec_prefix ;;
1123 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1124 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1125 | --exec=* | --exe=* | --ex=*)
1126 exec_prefix=$ac_optarg ;;
1127
1128 -gas | --gas | --ga | --g)
1129 # Obsolete; use --with-gas.
1130 with_gas=yes ;;
1131
1132 -help | --help | --hel | --he | -h)
1133 ac_init_help=long ;;
1134 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1135 ac_init_help=recursive ;;
1136 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1137 ac_init_help=short ;;
1138
1139 -host | --host | --hos | --ho)
1140 ac_prev=host_alias ;;
1141 -host=* | --host=* | --hos=* | --ho=*)
1142 host_alias=$ac_optarg ;;
1143
1144 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1145 ac_prev=htmldir ;;
1146 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1147 | --ht=*)
1148 htmldir=$ac_optarg ;;
1149
1150 -includedir | --includedir | --includedi | --included | --include \
1151 | --includ | --inclu | --incl | --inc)
1152 ac_prev=includedir ;;
1153 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1154 | --includ=* | --inclu=* | --incl=* | --inc=*)
1155 includedir=$ac_optarg ;;
1156
1157 -infodir | --infodir | --infodi | --infod | --info | --inf)
1158 ac_prev=infodir ;;
1159 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1160 infodir=$ac_optarg ;;
1161
1162 -libdir | --libdir | --libdi | --libd)
1163 ac_prev=libdir ;;
1164 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1165 libdir=$ac_optarg ;;
1166
1167 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1168 | --libexe | --libex | --libe)
1169 ac_prev=libexecdir ;;
1170 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1171 | --libexe=* | --libex=* | --libe=*)
1172 libexecdir=$ac_optarg ;;
1173
1174 -localedir | --localedir | --localedi | --localed | --locale)
1175 ac_prev=localedir ;;
1176 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1177 localedir=$ac_optarg ;;
1178
1179 -localstatedir | --localstatedir | --localstatedi | --localstated \
1180 | --localstate | --localstat | --localsta | --localst | --locals)
1181 ac_prev=localstatedir ;;
1182 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1183 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1184 localstatedir=$ac_optarg ;;
1185
1186 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1187 ac_prev=mandir ;;
1188 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1189 mandir=$ac_optarg ;;
1190
1191 -nfp | --nfp | --nf)
1192 # Obsolete; use --without-fp.
1193 with_fp=no ;;
1194
1195 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1196 | --no-cr | --no-c | -n)
1197 no_create=yes ;;
1198
1199 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1200 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1201 no_recursion=yes ;;
1202
1203 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1204 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1205 | --oldin | --oldi | --old | --ol | --o)
1206 ac_prev=oldincludedir ;;
1207 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1208 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1209 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1210 oldincludedir=$ac_optarg ;;
1211
1212 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1213 ac_prev=prefix ;;
1214 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1215 prefix=$ac_optarg ;;
1216
1217 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1218 | --program-pre | --program-pr | --program-p)
1219 ac_prev=program_prefix ;;
1220 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1221 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1222 program_prefix=$ac_optarg ;;
1223
1224 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1225 | --program-suf | --program-su | --program-s)
1226 ac_prev=program_suffix ;;
1227 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1228 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1229 program_suffix=$ac_optarg ;;
1230
1231 -program-transform-name | --program-transform-name \
1232 | --program-transform-nam | --program-transform-na \
1233 | --program-transform-n | --program-transform- \
1234 | --program-transform | --program-transfor \
1235 | --program-transfo | --program-transf \
1236 | --program-trans | --program-tran \
1237 | --progr-tra | --program-tr | --program-t)
1238 ac_prev=program_transform_name ;;
1239 -program-transform-name=* | --program-transform-name=* \
1240 | --program-transform-nam=* | --program-transform-na=* \
1241 | --program-transform-n=* | --program-transform-=* \
1242 | --program-transform=* | --program-transfor=* \
1243 | --program-transfo=* | --program-transf=* \
1244 | --program-trans=* | --program-tran=* \
1245 | --progr-tra=* | --program-tr=* | --program-t=*)
1246 program_transform_name=$ac_optarg ;;
1247
1248 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1249 ac_prev=pdfdir ;;
1250 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1251 pdfdir=$ac_optarg ;;
1252
1253 -psdir | --psdir | --psdi | --psd | --ps)
1254 ac_prev=psdir ;;
1255 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1256 psdir=$ac_optarg ;;
1257
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1260 silent=yes ;;
1261
1262 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1263 ac_prev=sbindir ;;
1264 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1265 | --sbi=* | --sb=*)
1266 sbindir=$ac_optarg ;;
1267
1268 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1269 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1270 | --sharedst | --shareds | --shared | --share | --shar \
1271 | --sha | --sh)
1272 ac_prev=sharedstatedir ;;
1273 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1274 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1275 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1276 | --sha=* | --sh=*)
1277 sharedstatedir=$ac_optarg ;;
1278
1279 -site | --site | --sit)
1280 ac_prev=site ;;
1281 -site=* | --site=* | --sit=*)
1282 site=$ac_optarg ;;
1283
1284 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1285 ac_prev=srcdir ;;
1286 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1287 srcdir=$ac_optarg ;;
1288
1289 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1290 | --syscon | --sysco | --sysc | --sys | --sy)
1291 ac_prev=sysconfdir ;;
1292 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1293 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1294 sysconfdir=$ac_optarg ;;
1295
1296 -target | --target | --targe | --targ | --tar | --ta | --t)
1297 ac_prev=target_alias ;;
1298 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1299 target_alias=$ac_optarg ;;
1300
1301 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1302 verbose=yes ;;
1303
1304 -version | --version | --versio | --versi | --vers | -V)
1305 ac_init_version=: ;;
1306
1307 -with-* | --with-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 as_fn_error $? "invalid package name: $ac_useropt"
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1315 *"
1316 "with_$ac_useropt"
1317 "*) ;;
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1320 esac
1321 eval with_$ac_useropt=\$ac_optarg ;;
1322
1323 -without-* | --without-*)
1324 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327 as_fn_error $? "invalid package name: $ac_useropt"
1328 ac_useropt_orig=$ac_useropt
1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1331 *"
1332 "with_$ac_useropt"
1333 "*) ;;
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1335 ac_unrecognized_sep=', ';;
1336 esac
1337 eval with_$ac_useropt=no ;;
1338
1339 --x)
1340 # Obsolete; use --with-x.
1341 with_x=yes ;;
1342
1343 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1344 | --x-incl | --x-inc | --x-in | --x-i)
1345 ac_prev=x_includes ;;
1346 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1347 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1348 x_includes=$ac_optarg ;;
1349
1350 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1351 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1352 ac_prev=x_libraries ;;
1353 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1354 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1355 x_libraries=$ac_optarg ;;
1356
1357 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1358 Try \`$0 --help' for more information"
1359 ;;
1360
1361 *=*)
1362 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1363 # Reject names that are not valid shell variable names.
1364 case $ac_envvar in #(
1365 '' | [0-9]* | *[!_$as_cr_alnum]* )
1366 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1367 esac
1368 eval $ac_envvar=\$ac_optarg
1369 export $ac_envvar ;;
1370
1371 *)
1372 # FIXME: should be removed in autoconf 3.0.
1373 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1374 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1375 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1376 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1377 ;;
1378
1379 esac
1380 done
1381
1382 if test -n "$ac_prev"; then
1383 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1384 as_fn_error $? "missing argument to $ac_option"
1385 fi
1386
1387 if test -n "$ac_unrecognized_opts"; then
1388 case $enable_option_checking in
1389 no) ;;
1390 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1391 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1392 esac
1393 fi
1394
1395 # Check all directory arguments for consistency.
1396 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397 datadir sysconfdir sharedstatedir localstatedir includedir \
1398 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399 libdir localedir mandir
1400 do
1401 eval ac_val=\$$ac_var
1402 # Remove trailing slashes.
1403 case $ac_val in
1404 */ )
1405 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1406 eval $ac_var=\$ac_val;;
1407 esac
1408 # Be sure to have absolute directory names.
1409 case $ac_val in
1410 [\\/$]* | ?:[\\/]* ) continue;;
1411 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1412 esac
1413 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1414 done
1415
1416 # There might be people who depend on the old broken behavior: `$host'
1417 # used to hold the argument of --host etc.
1418 # FIXME: To remove some day.
1419 build=$build_alias
1420 host=$host_alias
1421 target=$target_alias
1422
1423 # FIXME: To remove some day.
1424 if test "x$host_alias" != x; then
1425 if test "x$build_alias" = x; then
1426 cross_compiling=maybe
1427 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1428 If a cross compiler is detected then cross compile mode will be used" >&2
1429 elif test "x$build_alias" != "x$host_alias"; then
1430 cross_compiling=yes
1431 fi
1432 fi
1433
1434 ac_tool_prefix=
1435 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436
1437 test "$silent" = yes && exec 6>/dev/null
1438
1439
1440 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1441 ac_ls_di=`ls -di .` &&
1442 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1443 as_fn_error $? "working directory cannot be determined"
1444 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1445 as_fn_error $? "pwd does not report name of working directory"
1446
1447
1448 # Find the source files, if location was not specified.
1449 if test -z "$srcdir"; then
1450 ac_srcdir_defaulted=yes
1451 # Try the directory containing this script, then the parent directory.
1452 ac_confdir=`$as_dirname -- "$as_myself" ||
1453 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454 X"$as_myself" : 'X\(//\)[^/]' \| \
1455 X"$as_myself" : 'X\(//\)$' \| \
1456 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457 $as_echo X"$as_myself" |
1458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\/\)[^/].*/{
1463 s//\1/
1464 q
1465 }
1466 /^X\(\/\/\)$/{
1467 s//\1/
1468 q
1469 }
1470 /^X\(\/\).*/{
1471 s//\1/
1472 q
1473 }
1474 s/.*/./; q'`
1475 srcdir=$ac_confdir
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1477 srcdir=..
1478 fi
1479 else
1480 ac_srcdir_defaulted=no
1481 fi
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1483 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1485 fi
1486 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 ac_abs_confdir=`(
1488 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1489 pwd)`
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1492 srcdir=.
1493 fi
1494 # Remove unnecessary trailing slashes from srcdir.
1495 # Double slashes in file names in object file debugging info
1496 # mess up M-x gdb in Emacs.
1497 case $srcdir in
1498 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499 esac
1500 for ac_var in $ac_precious_vars; do
1501 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_env_${ac_var}_value=\$${ac_var}
1503 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1505 done
1506
1507 #
1508 # Report the --help message.
1509 #
1510 if test "$ac_init_help" = "long"; then
1511 # Omit some internal or obsolete options to make the list less imposing.
1512 # This message is too long to be a string in the A/UX 3.1 sh.
1513 cat <<_ACEOF
1514 \`configure' configures this package to adapt to many kinds of systems.
1515
1516 Usage: $0 [OPTION]... [VAR=VALUE]...
1517
1518 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519 VAR=VALUE. See below for descriptions of some of the useful variables.
1520
1521 Defaults for the options are specified in brackets.
1522
1523 Configuration:
1524 -h, --help display this help and exit
1525 --help=short display options specific to this package
1526 --help=recursive display the short help of all the included packages
1527 -V, --version display version information and exit
1528 -q, --quiet, --silent do not print \`checking ...' messages
1529 --cache-file=FILE cache test results in FILE [disabled]
1530 -C, --config-cache alias for \`--cache-file=config.cache'
1531 -n, --no-create do not create output files
1532 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1533
1534 Installation directories:
1535 --prefix=PREFIX install architecture-independent files in PREFIX
1536 [$ac_default_prefix]
1537 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1538 [PREFIX]
1539
1540 By default, \`make install' will install all the files in
1541 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1542 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543 for instance \`--prefix=\$HOME'.
1544
1545 For better control, use the options below.
1546
1547 Fine tuning of the installation directories:
1548 --bindir=DIR user executables [EPREFIX/bin]
1549 --sbindir=DIR system admin executables [EPREFIX/sbin]
1550 --libexecdir=DIR program executables [EPREFIX/libexec]
1551 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1552 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1553 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1554 --libdir=DIR object code libraries [EPREFIX/lib]
1555 --includedir=DIR C header files [PREFIX/include]
1556 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1557 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1558 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1559 --infodir=DIR info documentation [DATAROOTDIR/info]
1560 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1561 --mandir=DIR man documentation [DATAROOTDIR/man]
1562 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1563 --htmldir=DIR html documentation [DOCDIR]
1564 --dvidir=DIR dvi documentation [DOCDIR]
1565 --pdfdir=DIR pdf documentation [DOCDIR]
1566 --psdir=DIR ps documentation [DOCDIR]
1567 _ACEOF
1568
1569 cat <<\_ACEOF
1570
1571 Program names:
1572 --program-prefix=PREFIX prepend PREFIX to installed program names
1573 --program-suffix=SUFFIX append SUFFIX to installed program names
1574 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1575
1576 System types:
1577 --build=BUILD configure for building on BUILD [guessed]
1578 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1579 --target=TARGET configure for building compilers for TARGET [HOST]
1580 _ACEOF
1581 fi
1582
1583 if test -n "$ac_init_help"; then
1584
1585 cat <<\_ACEOF
1586
1587 Optional Features:
1588 --disable-option-checking ignore unrecognized --enable/--with options
1589 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1590 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1591 --enable-maintainer-mode enable make rules and dependencies not useful
1592 (and sometimes confusing) to the casual installer
1593 --enable-silent-rules less verbose build output (undo: `make V=1')
1594 --disable-silent-rules verbose build output (undo: `make V=0')
1595 --disable-dependency-tracking speeds up one-time build
1596 --enable-dependency-tracking do not reject slow dependency extractors
1597 --enable-shared[=PKGS] build shared libraries [default=yes]
1598 --enable-static[=PKGS] build static libraries [default=yes]
1599 --enable-fast-install[=PKGS]
1600 optimize for fast installation [default=yes]
1601 --disable-libtool-lock avoid locking (might break parallel builds)
1602 --enable-linux-builtin Configure for builtin in-tree kernel modules
1603 [default=no]
1604 --enable-debug Enable generic debug support [default=no]
1605 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1606
1607 Optional Packages:
1608 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1609 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1610 --with-pic try to use only PIC/non-PIC objects [default=use
1611 both]
1612 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1613 --with-spec=SPEC Spec files 'generic|fedora'
1614 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1615 --with-linux=PATH Path to kernel source
1616 --with-linux-obj=PATH Path to kernel build objects
1617 --with-spl=PATH Path to spl source
1618 --with-spl-obj=PATH Path to spl build objects
1619 --with-spl-timeout=SECS Wait SECS for symvers file to appear [default=0]
1620 --with-udevdir=DIR install udev helpers [[EPREFIX/lib/udev]]
1621 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1622 --with-dracutdir=DIR install dracut helpers [[EPREFIX/lib/dracut]]
1623 --with-blkid support blkid caching [default=check]
1624 --with-selinux support selinux [default=check]
1625
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1634 CPP C preprocessor
1635 CCAS assembler compiler command (defaults to CC)
1636 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1637
1638 Use these variables to override the choices made by `configure' or to help
1639 it to find libraries and programs with nonstandard names/locations.
1640
1641 Report bugs to the package provider.
1642 _ACEOF
1643 ac_status=$?
1644 fi
1645
1646 if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1649 test -d "$ac_dir" ||
1650 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1651 continue
1652 ac_builddir=.
1653
1654 case "$ac_dir" in
1655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *)
1657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1658 # A ".." for each directory in $ac_dir_suffix.
1659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 esac ;;
1664 esac
1665 ac_abs_top_builddir=$ac_pwd
1666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667 # for backward compatibility:
1668 ac_top_builddir=$ac_top_build_prefix
1669
1670 case $srcdir in
1671 .) # We are building in place.
1672 ac_srcdir=.
1673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
1676 ac_srcdir=$srcdir$ac_dir_suffix;
1677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1679 *) # Relative name.
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683 esac
1684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685
1686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1692 echo &&
1693 $SHELL "$ac_srcdir/configure" --help=recursive
1694 else
1695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1696 fi || ac_status=$?
1697 cd "$ac_pwd" || { ac_status=$?; break; }
1698 done
1699 fi
1700
1701 test -n "$ac_init_help" && exit $ac_status
1702 if $ac_init_version; then
1703 cat <<\_ACEOF
1704 configure
1705 generated by GNU Autoconf 2.67
1706
1707 Copyright (C) 2010 Free Software Foundation, Inc.
1708 This configure script is free software; the Free Software Foundation
1709 gives unlimited permission to copy, distribute and modify it.
1710 _ACEOF
1711 exit
1712 fi
1713
1714 ## ------------------------ ##
1715 ## Autoconf initialization. ##
1716 ## ------------------------ ##
1717
1718 # ac_fn_c_try_compile LINENO
1719 # --------------------------
1720 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_compile ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext
1725 if { { ac_try="$ac_compile"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_compile") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest.$ac_objext; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750 fi
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_compile
1755
1756 # ac_fn_c_try_link LINENO
1757 # -----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_link ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext conftest$ac_exeext
1763 if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1776 fi
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest$ac_exeext && {
1782 test "$cross_compiling" = yes ||
1783 $as_test_x conftest$ac_exeext
1784 }; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=1
1791 fi
1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794 # interfere with the next link command; also delete a directory that is
1795 # left behind by Apple's compiler. We do this before executing the actions.
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 as_fn_set_status $ac_retval
1799
1800 } # ac_fn_c_try_link
1801
1802 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1803 # -------------------------------------------------------
1804 # Tests whether HEADER exists and can be compiled using the include files in
1805 # INCLUDES, setting the cache variable VAR accordingly.
1806 ac_fn_c_check_header_compile ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval "test \"\${$3+set}\"" = set; then :
1812 $as_echo_n "(cached) " >&6
1813 else
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1816 $4
1817 #include <$2>
1818 _ACEOF
1819 if ac_fn_c_try_compile "$LINENO"; then :
1820 eval "$3=yes"
1821 else
1822 eval "$3=no"
1823 fi
1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 fi
1826 eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830
1831 } # ac_fn_c_check_header_compile
1832
1833 # ac_fn_c_try_cpp LINENO
1834 # ----------------------
1835 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_cpp ()
1837 {
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if { { ac_try="$ac_cpp conftest.$ac_ext"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } > conftest.i && {
1855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864 fi
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 as_fn_set_status $ac_retval
1867
1868 } # ac_fn_c_try_cpp
1869
1870 # ac_fn_c_try_run LINENO
1871 # ----------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1873 # that executables *can* be run.
1874 ac_fn_c_try_run ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if { { ac_try="$ac_link"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>&5
1885 ac_status=$?
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1888 { { case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_try") 2>&5
1895 ac_status=$?
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; }; }; then :
1898 ac_retval=0
1899 else
1900 $as_echo "$as_me: program exited with status $ac_status" >&5
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1903
1904 ac_retval=$ac_status
1905 fi
1906 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 as_fn_set_status $ac_retval
1909
1910 } # ac_fn_c_try_run
1911
1912 # ac_fn_c_check_func LINENO FUNC VAR
1913 # ----------------------------------
1914 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1915 ac_fn_c_check_func ()
1916 {
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval "test \"\${$3+set}\"" = set; then :
1921 $as_echo_n "(cached) " >&6
1922 else
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1927 #define $2 innocuous_$2
1928
1929 /* System header to define __stub macros and hopefully few prototypes,
1930 which can conflict with char $2 (); below.
1931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1932 <limits.h> exists even on freestanding compilers. */
1933
1934 #ifdef __STDC__
1935 # include <limits.h>
1936 #else
1937 # include <assert.h>
1938 #endif
1939
1940 #undef $2
1941
1942 /* Override any GCC internal prototype to avoid an error.
1943 Use char because int might match the return type of a GCC
1944 builtin and then its argument prototype would still apply. */
1945 #ifdef __cplusplus
1946 extern "C"
1947 #endif
1948 char $2 ();
1949 /* The GNU C library defines this for functions which it implements
1950 to always fail with ENOSYS. Some functions are actually named
1951 something starting with __ and the normal name is an alias. */
1952 #if defined __stub_$2 || defined __stub___$2
1953 choke me
1954 #endif
1955
1956 int
1957 main ()
1958 {
1959 return $2 ();
1960 ;
1961 return 0;
1962 }
1963 _ACEOF
1964 if ac_fn_c_try_link "$LINENO"; then :
1965 eval "$3=yes"
1966 else
1967 eval "$3=no"
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext \
1970 conftest$ac_exeext conftest.$ac_ext
1971 fi
1972 eval ac_res=\$$3
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976
1977 } # ac_fn_c_check_func
1978
1979 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1980 # -------------------------------------------------------
1981 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1982 # the include files in INCLUDES and setting the cache variable VAR
1983 # accordingly.
1984 ac_fn_c_check_header_mongrel ()
1985 {
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 if eval "test \"\${$3+set}\"" = set; then :
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval "test \"\${$3+set}\"" = set; then :
1991 $as_echo_n "(cached) " >&6
1992 fi
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 else
1997 # Is the header compilable?
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1999 $as_echo_n "checking $2 usability... " >&6; }
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 $4
2003 #include <$2>
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 ac_header_compiler=yes
2007 else
2008 ac_header_compiler=no
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2012 $as_echo "$ac_header_compiler" >&6; }
2013
2014 # Is the header present?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2016 $as_echo_n "checking $2 presence... " >&6; }
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_cpp "$LINENO"; then :
2022 ac_header_preproc=yes
2023 else
2024 ac_header_preproc=no
2025 fi
2026 rm -f conftest.err conftest.i conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2028 $as_echo "$ac_header_preproc" >&6; }
2029
2030 # So? What about this header?
2031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2032 yes:no: )
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2034 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037 ;;
2038 no:yes:* )
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2040 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2042 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2044 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2046 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2048 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2049 ;;
2050 esac
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if eval "test \"\${$3+set}\"" = set; then :
2054 $as_echo_n "(cached) " >&6
2055 else
2056 eval "$3=\$ac_header_compiler"
2057 fi
2058 eval ac_res=\$$3
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 fi
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063
2064 } # ac_fn_c_check_header_mongrel
2065 cat >config.log <<_ACEOF
2066 This file contains any messages produced by compilers while
2067 running configure, to aid debugging if configure makes a mistake.
2068
2069 It was created by $as_me, which was
2070 generated by GNU Autoconf 2.67. Invocation command line was
2071
2072 $ $0 $@
2073
2074 _ACEOF
2075 exec 5>>config.log
2076 {
2077 cat <<_ASUNAME
2078 ## --------- ##
2079 ## Platform. ##
2080 ## --------- ##
2081
2082 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2083 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2084 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2085 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2086 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2087
2088 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2089 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2090
2091 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2092 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2093 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2094 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2095 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2096 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2097 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2098
2099 _ASUNAME
2100
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104 IFS=$as_save_IFS
2105 test -z "$as_dir" && as_dir=.
2106 $as_echo "PATH: $as_dir"
2107 done
2108 IFS=$as_save_IFS
2109
2110 } >&5
2111
2112 cat >&5 <<_ACEOF
2113
2114
2115 ## ----------- ##
2116 ## Core tests. ##
2117 ## ----------- ##
2118
2119 _ACEOF
2120
2121
2122 # Keep a trace of the command line.
2123 # Strip out --no-create and --no-recursion so they do not pile up.
2124 # Strip out --silent because we don't want to record it for future runs.
2125 # Also quote any args containing shell meta-characters.
2126 # Make two passes to allow for proper duplicate-argument suppression.
2127 ac_configure_args=
2128 ac_configure_args0=
2129 ac_configure_args1=
2130 ac_must_keep_next=false
2131 for ac_pass in 1 2
2132 do
2133 for ac_arg
2134 do
2135 case $ac_arg in
2136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2138 | -silent | --silent | --silen | --sile | --sil)
2139 continue ;;
2140 *\'*)
2141 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2142 esac
2143 case $ac_pass in
2144 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2145 2)
2146 as_fn_append ac_configure_args1 " '$ac_arg'"
2147 if test $ac_must_keep_next = true; then
2148 ac_must_keep_next=false # Got value, back to normal.
2149 else
2150 case $ac_arg in
2151 *=* | --config-cache | -C | -disable-* | --disable-* \
2152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2154 | -with-* | --with-* | -without-* | --without-* | --x)
2155 case "$ac_configure_args0 " in
2156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2157 esac
2158 ;;
2159 -* ) ac_must_keep_next=true ;;
2160 esac
2161 fi
2162 as_fn_append ac_configure_args " '$ac_arg'"
2163 ;;
2164 esac
2165 done
2166 done
2167 { ac_configure_args0=; unset ac_configure_args0;}
2168 { ac_configure_args1=; unset ac_configure_args1;}
2169
2170 # When interrupted or exit'd, cleanup temporary files, and complete
2171 # config.log. We remove comments because anyway the quotes in there
2172 # would cause problems or look ugly.
2173 # WARNING: Use '\'' to represent an apostrophe within the trap.
2174 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2175 trap 'exit_status=$?
2176 # Save into config.log some information that might help in debugging.
2177 {
2178 echo
2179
2180 $as_echo "## ---------------- ##
2181 ## Cache variables. ##
2182 ## ---------------- ##"
2183 echo
2184 # The following way of writing the cache mishandles newlines in values,
2185 (
2186 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187 eval ac_val=\$$ac_var
2188 case $ac_val in #(
2189 *${as_nl}*)
2190 case $ac_var in #(
2191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2192 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2193 esac
2194 case $ac_var in #(
2195 _ | IFS | as_nl) ;; #(
2196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2197 *) { eval $ac_var=; unset $ac_var;} ;;
2198 esac ;;
2199 esac
2200 done
2201 (set) 2>&1 |
2202 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2203 *${as_nl}ac_space=\ *)
2204 sed -n \
2205 "s/'\''/'\''\\\\'\'''\''/g;
2206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2207 ;; #(
2208 *)
2209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210 ;;
2211 esac |
2212 sort
2213 )
2214 echo
2215
2216 $as_echo "## ----------------- ##
2217 ## Output variables. ##
2218 ## ----------------- ##"
2219 echo
2220 for ac_var in $ac_subst_vars
2221 do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225 esac
2226 $as_echo "$ac_var='\''$ac_val'\''"
2227 done | sort
2228 echo
2229
2230 if test -n "$ac_subst_files"; then
2231 $as_echo "## ------------------- ##
2232 ## File substitutions. ##
2233 ## ------------------- ##"
2234 echo
2235 for ac_var in $ac_subst_files
2236 do
2237 eval ac_val=\$$ac_var
2238 case $ac_val in
2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240 esac
2241 $as_echo "$ac_var='\''$ac_val'\''"
2242 done | sort
2243 echo
2244 fi
2245
2246 if test -s confdefs.h; then
2247 $as_echo "## ----------- ##
2248 ## confdefs.h. ##
2249 ## ----------- ##"
2250 echo
2251 cat confdefs.h
2252 echo
2253 fi
2254 test "$ac_signal" != 0 &&
2255 $as_echo "$as_me: caught signal $ac_signal"
2256 $as_echo "$as_me: exit $exit_status"
2257 } >&5
2258 rm -f core *.core core.conftest.* &&
2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2260 exit $exit_status
2261 ' 0
2262 for ac_signal in 1 2 13 15; do
2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2264 done
2265 ac_signal=0
2266
2267 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2268 rm -f -r conftest* confdefs.h
2269
2270 $as_echo "/* confdefs.h */" > confdefs.h
2271
2272 # Predefined preprocessor variables.
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_NAME "$PACKAGE_NAME"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2284 _ACEOF
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_STRING "$PACKAGE_STRING"
2288 _ACEOF
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2292 _ACEOF
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_URL "$PACKAGE_URL"
2296 _ACEOF
2297
2298
2299 # Let the site file select an alternate cache file if it wants to.
2300 # Prefer an explicitly selected file to automatically selected ones.
2301 ac_site_file1=NONE
2302 ac_site_file2=NONE
2303 if test -n "$CONFIG_SITE"; then
2304 # We do not want a PATH search for config.site.
2305 case $CONFIG_SITE in #((
2306 -*) ac_site_file1=./$CONFIG_SITE;;
2307 */*) ac_site_file1=$CONFIG_SITE;;
2308 *) ac_site_file1=./$CONFIG_SITE;;
2309 esac
2310 elif test "x$prefix" != xNONE; then
2311 ac_site_file1=$prefix/share/config.site
2312 ac_site_file2=$prefix/etc/config.site
2313 else
2314 ac_site_file1=$ac_default_prefix/share/config.site
2315 ac_site_file2=$ac_default_prefix/etc/config.site
2316 fi
2317 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2318 do
2319 test "x$ac_site_file" = xNONE && continue
2320 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2322 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2323 sed 's/^/| /' "$ac_site_file" >&5
2324 . "$ac_site_file" \
2325 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 as_fn_error $? "failed to load site script $ac_site_file
2328 See \`config.log' for more details" "$LINENO" 5 ; }
2329 fi
2330 done
2331
2332 if test -r "$cache_file"; then
2333 # Some versions of bash will fail to source /dev/null (special files
2334 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2335 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2337 $as_echo "$as_me: loading cache $cache_file" >&6;}
2338 case $cache_file in
2339 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2340 *) . "./$cache_file";;
2341 esac
2342 fi
2343 else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2345 $as_echo "$as_me: creating cache $cache_file" >&6;}
2346 >$cache_file
2347 fi
2348
2349 # Check that the precious variables saved in the cache have kept the same
2350 # value.
2351 ac_cache_corrupted=false
2352 for ac_var in $ac_precious_vars; do
2353 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2354 eval ac_new_set=\$ac_env_${ac_var}_set
2355 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2356 eval ac_new_val=\$ac_env_${ac_var}_value
2357 case $ac_old_set,$ac_new_set in
2358 set,)
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2360 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2361 ac_cache_corrupted=: ;;
2362 ,set)
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2364 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2365 ac_cache_corrupted=: ;;
2366 ,);;
2367 *)
2368 if test "x$ac_old_val" != "x$ac_new_val"; then
2369 # differences in whitespace do not lead to failure.
2370 ac_old_val_w=`echo x $ac_old_val`
2371 ac_new_val_w=`echo x $ac_new_val`
2372 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2374 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2375 ac_cache_corrupted=:
2376 else
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2378 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2379 eval $ac_var=\$ac_old_val
2380 fi
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2382 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2384 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2385 fi;;
2386 esac
2387 # Pass precious variables to config.status.
2388 if test "$ac_new_set" = set; then
2389 case $ac_new_val in
2390 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2391 *) ac_arg=$ac_var=$ac_new_val ;;
2392 esac
2393 case " $ac_configure_args " in
2394 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2395 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2396 esac
2397 fi
2398 done
2399 if $ac_cache_corrupted; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2403 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2404 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2405 fi
2406 ## -------------------- ##
2407 ## Main body of script. ##
2408 ## -------------------- ##
2409
2410 ac_ext=c
2411 ac_cpp='$CPP $CPPFLAGS'
2412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415
2416
2417 ac_ext=c
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422
2423
2424
2425
2426
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2428 $as_echo_n "checking metadata... " >&6; }
2429
2430 META="$srcdir/META"
2431 _zfs_ac_meta_type="none"
2432 if test -f "$META"; then
2433 _zfs_ac_meta_type="META file"
2434
2435 ZFS_META_NAME=`perl -n\
2436 -e "BEGIN { \\$key=shift @ARGV; }"\
2437 -e "next unless s/^\s*\\$key[:=]//i;"\
2438 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2439 -e "s/^\s+//;"\
2440 -e "s/\s+$//;"\
2441 -e "s/^(['\"])(.*)\1/\\$2/;"\
2442 -e "\\$val=\\$_;"\
2443 -e "END { print \\$val if defined \\$val; }"\
2444 '(?:NAME|PROJECT|PACKAGE)' $META`;
2445 if test -n "$ZFS_META_NAME"; then
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define ZFS_META_NAME "$ZFS_META_NAME"
2449 _ACEOF
2450
2451
2452 fi
2453
2454 ZFS_META_VERSION=`perl -n\
2455 -e "BEGIN { \\$key=shift @ARGV; }"\
2456 -e "next unless s/^\s*\\$key[:=]//i;"\
2457 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2458 -e "s/^\s+//;"\
2459 -e "s/\s+$//;"\
2460 -e "s/^(['\"])(.*)\1/\\$2/;"\
2461 -e "\\$val=\\$_;"\
2462 -e "END { print \\$val if defined \\$val; }"\
2463 'VERSION' $META`;
2464 if test -n "$ZFS_META_VERSION"; then
2465
2466 cat >>confdefs.h <<_ACEOF
2467 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2468 _ACEOF
2469
2470
2471 fi
2472
2473 ZFS_META_RELEASE=`perl -n\
2474 -e "BEGIN { \\$key=shift @ARGV; }"\
2475 -e "next unless s/^\s*\\$key[:=]//i;"\
2476 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2477 -e "s/^\s+//;"\
2478 -e "s/\s+$//;"\
2479 -e "s/^(['\"])(.*)\1/\\$2/;"\
2480 -e "\\$val=\\$_;"\
2481 -e "END { print \\$val if defined \\$val; }"\
2482 'RELEASE' $META`;
2483 if git rev-parse --git-dir > /dev/null 2>&1; then
2484 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}*"
2485 _alias=$(git describe --match=${_match} 2>/dev/null)
2486 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2487 if test -n "${_release}"; then
2488 ZFS_META_RELEASE=${_release}
2489 _zfs_ac_meta_type="git describe"
2490 fi
2491 fi
2492
2493 if test -n "$ZFS_META_RELEASE"; then
2494
2495 cat >>confdefs.h <<_ACEOF
2496 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2497 _ACEOF
2498
2499
2500
2501 RELEASE="$ZFS_META_RELEASE"
2502
2503 fi
2504
2505 ZFS_META_LICENSE=`perl -n\
2506 -e "BEGIN { \\$key=shift @ARGV; }"\
2507 -e "next unless s/^\s*\\$key[:=]//i;"\
2508 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2509 -e "s/^\s+//;"\
2510 -e "s/\s+$//;"\
2511 -e "s/^(['\"])(.*)\1/\\$2/;"\
2512 -e "\\$val=\\$_;"\
2513 -e "END { print \\$val if defined \\$val; }"\
2514 'LICENSE' $META`;
2515 if test -n "$ZFS_META_LICENSE"; then
2516
2517 cat >>confdefs.h <<_ACEOF
2518 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2519 _ACEOF
2520
2521
2522 fi
2523
2524 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2525 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2526 test -n "$ZFS_META_RELEASE" &&
2527 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2528
2529 cat >>confdefs.h <<_ACEOF
2530 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2531 _ACEOF
2532
2533
2534 fi
2535
2536 ZFS_META_DATA=`perl -n\
2537 -e "BEGIN { \\$key=shift @ARGV; }"\
2538 -e "next unless s/^\s*\\$key[:=]//i;"\
2539 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2540 -e "s/^\s+//;"\
2541 -e "s/\s+$//;"\
2542 -e "s/^(['\"])(.*)\1/\\$2/;"\
2543 -e "\\$val=\\$_;"\
2544 -e "END { print \\$val if defined \\$val; }"\
2545 'DATE' $META`;
2546 if test -n "$ZFS_META_DATA"; then
2547
2548 cat >>confdefs.h <<_ACEOF
2549 #define ZFS_META_DATA "$ZFS_META_DATA"
2550 _ACEOF
2551
2552
2553 fi
2554
2555 ZFS_META_AUTHOR=`perl -n\
2556 -e "BEGIN { \\$key=shift @ARGV; }"\
2557 -e "next unless s/^\s*\\$key[:=]//i;"\
2558 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2559 -e "s/^\s+//;"\
2560 -e "s/\s+$//;"\
2561 -e "s/^(['\"])(.*)\1/\\$2/;"\
2562 -e "\\$val=\\$_;"\
2563 -e "END { print \\$val if defined \\$val; }"\
2564 'AUTHOR' $META`;
2565 if test -n "$ZFS_META_AUTHOR"; then
2566
2567 cat >>confdefs.h <<_ACEOF
2568 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2569 _ACEOF
2570
2571
2572 fi
2573
2574
2575 ZFS_META_LT_CURRENT=`perl -n\
2576 -e "BEGIN { \\$key=shift @ARGV; }"\
2577 -e "next unless s/^\s*\\$key[:=]//i;"\
2578 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2579 -e "s/^\s+//;"\
2580 -e "s/\s+$//;"\
2581 -e "s/^(['\"])(.*)\1/\\$2/;"\
2582 -e "\\$val=\\$_;"\
2583 -e "END { print \\$val if defined \\$val; }"\
2584 'LT_CURRENT' $META`;
2585 ZFS_META_LT_REVISION=`perl -n\
2586 -e "BEGIN { \\$key=shift @ARGV; }"\
2587 -e "next unless s/^\s*\\$key[:=]//i;"\
2588 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2589 -e "s/^\s+//;"\
2590 -e "s/\s+$//;"\
2591 -e "s/^(['\"])(.*)\1/\\$2/;"\
2592 -e "\\$val=\\$_;"\
2593 -e "END { print \\$val if defined \\$val; }"\
2594 'LT_REVISION' $META`;
2595 ZFS_META_LT_AGE=`perl -n\
2596 -e "BEGIN { \\$key=shift @ARGV; }"\
2597 -e "next unless s/^\s*\\$key[:=]//i;"\
2598 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2599 -e "s/^\s+//;"\
2600 -e "s/\s+$//;"\
2601 -e "s/^(['\"])(.*)\1/\\$2/;"\
2602 -e "\\$val=\\$_;"\
2603 -e "END { print \\$val if defined \\$val; }"\
2604 'LT_AGE' $META`;
2605 if test -n "$ZFS_META_LT_CURRENT" \
2606 -o -n "$ZFS_META_LT_REVISION" \
2607 -o -n "$ZFS_META_LT_AGE"; then
2608 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2609 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2610 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2611
2612 cat >>confdefs.h <<_ACEOF
2613 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2614 _ACEOF
2615
2616
2617 cat >>confdefs.h <<_ACEOF
2618 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2619 _ACEOF
2620
2621
2622 cat >>confdefs.h <<_ACEOF
2623 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2624 _ACEOF
2625
2626
2627
2628
2629 fi
2630 fi
2631
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2633 $as_echo "$_zfs_ac_meta_type" >&6; }
2634
2635
2636 ac_aux_dir=
2637 for ac_dir in config "$srcdir"/config; do
2638 if test -f "$ac_dir/install-sh"; then
2639 ac_aux_dir=$ac_dir
2640 ac_install_sh="$ac_aux_dir/install-sh -c"
2641 break
2642 elif test -f "$ac_dir/install.sh"; then
2643 ac_aux_dir=$ac_dir
2644 ac_install_sh="$ac_aux_dir/install.sh -c"
2645 break
2646 elif test -f "$ac_dir/shtool"; then
2647 ac_aux_dir=$ac_dir
2648 ac_install_sh="$ac_aux_dir/shtool install -c"
2649 break
2650 fi
2651 done
2652 if test -z "$ac_aux_dir"; then
2653 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2654 fi
2655
2656 # These three variables are undocumented and unsupported,
2657 # and are intended to be withdrawn in a future Autoconf release.
2658 # They can cause serious problems if a builder's source tree is in a directory
2659 # whose full name contains unusual characters.
2660 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2661 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2662 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2663
2664
2665 # Make sure we can run config.sub.
2666 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2667 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2668
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2670 $as_echo_n "checking build system type... " >&6; }
2671 if test "${ac_cv_build+set}" = set; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 ac_build_alias=$build_alias
2675 test "x$ac_build_alias" = x &&
2676 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2677 test "x$ac_build_alias" = x &&
2678 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2679 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2680 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2681
2682 fi
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2684 $as_echo "$ac_cv_build" >&6; }
2685 case $ac_cv_build in
2686 *-*-*) ;;
2687 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2688 esac
2689 build=$ac_cv_build
2690 ac_save_IFS=$IFS; IFS='-'
2691 set x $ac_cv_build
2692 shift
2693 build_cpu=$1
2694 build_vendor=$2
2695 shift; shift
2696 # Remember, the first character of IFS is used to create $*,
2697 # except with old shells:
2698 build_os=$*
2699 IFS=$ac_save_IFS
2700 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2701
2702
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2704 $as_echo_n "checking host system type... " >&6; }
2705 if test "${ac_cv_host+set}" = set; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if test "x$host_alias" = x; then
2709 ac_cv_host=$ac_cv_build
2710 else
2711 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2712 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2713 fi
2714
2715 fi
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2717 $as_echo "$ac_cv_host" >&6; }
2718 case $ac_cv_host in
2719 *-*-*) ;;
2720 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2721 esac
2722 host=$ac_cv_host
2723 ac_save_IFS=$IFS; IFS='-'
2724 set x $ac_cv_host
2725 shift
2726 host_cpu=$1
2727 host_vendor=$2
2728 shift; shift
2729 # Remember, the first character of IFS is used to create $*,
2730 # except with old shells:
2731 host_os=$*
2732 IFS=$ac_save_IFS
2733 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2734
2735
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2737 $as_echo_n "checking target system type... " >&6; }
2738 if test "${ac_cv_target+set}" = set; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 if test "x$target_alias" = x; then
2742 ac_cv_target=$ac_cv_host
2743 else
2744 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2745 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2746 fi
2747
2748 fi
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2750 $as_echo "$ac_cv_target" >&6; }
2751 case $ac_cv_target in
2752 *-*-*) ;;
2753 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2754 esac
2755 target=$ac_cv_target
2756 ac_save_IFS=$IFS; IFS='-'
2757 set x $ac_cv_target
2758 shift
2759 target_cpu=$1
2760 target_vendor=$2
2761 shift; shift
2762 # Remember, the first character of IFS is used to create $*,
2763 # except with old shells:
2764 target_os=$*
2765 IFS=$ac_save_IFS
2766 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2767
2768
2769 # The aliases save the names the user supplied, while $host etc.
2770 # will get canonicalized.
2771 test -n "$target_alias" &&
2772 test "$program_prefix$program_suffix$program_transform_name" = \
2773 NONENONEs,x,x, &&
2774 program_prefix=${target_alias}-
2775
2776
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2778 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2779 # Check whether --enable-maintainer-mode was given.
2780 if test "${enable_maintainer_mode+set}" = set; then :
2781 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2782 else
2783 USE_MAINTAINER_MODE=no
2784 fi
2785
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2787 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2788 if test $USE_MAINTAINER_MODE = yes; then
2789 MAINTAINER_MODE_TRUE=
2790 MAINTAINER_MODE_FALSE='#'
2791 else
2792 MAINTAINER_MODE_TRUE='#'
2793 MAINTAINER_MODE_FALSE=
2794 fi
2795
2796 MAINT=$MAINTAINER_MODE_TRUE
2797
2798
2799 # Check whether --enable-silent-rules was given.
2800 if test "${enable_silent_rules+set}" = set; then :
2801 enableval=$enable_silent_rules;
2802 fi
2803
2804 case $enable_silent_rules in
2805 yes) AM_DEFAULT_VERBOSITY=0;;
2806 no) AM_DEFAULT_VERBOSITY=1;;
2807 *) AM_DEFAULT_VERBOSITY=1;;
2808 esac
2809 AM_BACKSLASH='\'
2810
2811 am__api_version='1.11'
2812
2813 # Find a good install program. We prefer a C program (faster),
2814 # so one script is as good as another. But avoid the broken or
2815 # incompatible versions:
2816 # SysV /etc/install, /usr/sbin/install
2817 # SunOS /usr/etc/install
2818 # IRIX /sbin/install
2819 # AIX /bin/install
2820 # AmigaOS /C/install, which installs bootblocks on floppy discs
2821 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2822 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2823 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2824 # OS/2's system install, which has a completely different semantic
2825 # ./install, which can be erroneously created by make from ./install.sh.
2826 # Reject install programs that cannot install multiple files.
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2828 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2829 if test -z "$INSTALL"; then
2830 if test "${ac_cv_path_install+set}" = set; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2835 do
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 # Account for people who put trailing slashes in PATH elements.
2839 case $as_dir/ in #((
2840 ./ | .// | /[cC]/* | \
2841 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2842 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2843 /usr/ucb/* ) ;;
2844 *)
2845 # OSF1 and SCO ODT 3.0 have their own names for install.
2846 # Don't use installbsd from OSF since it installs stuff as root
2847 # by default.
2848 for ac_prog in ginstall scoinst install; do
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2851 if test $ac_prog = install &&
2852 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2853 # AIX install. It has an incompatible calling convention.
2854 :
2855 elif test $ac_prog = install &&
2856 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2857 # program-specific install script used by HP pwplus--don't use.
2858 :
2859 else
2860 rm -rf conftest.one conftest.two conftest.dir
2861 echo one > conftest.one
2862 echo two > conftest.two
2863 mkdir conftest.dir
2864 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2865 test -s conftest.one && test -s conftest.two &&
2866 test -s conftest.dir/conftest.one &&
2867 test -s conftest.dir/conftest.two
2868 then
2869 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2870 break 3
2871 fi
2872 fi
2873 fi
2874 done
2875 done
2876 ;;
2877 esac
2878
2879 done
2880 IFS=$as_save_IFS
2881
2882 rm -rf conftest.one conftest.two conftest.dir
2883
2884 fi
2885 if test "${ac_cv_path_install+set}" = set; then
2886 INSTALL=$ac_cv_path_install
2887 else
2888 # As a last resort, use the slow shell script. Don't cache a
2889 # value for INSTALL within a source directory, because that will
2890 # break other packages using the cache if that directory is
2891 # removed, or if the value is a relative name.
2892 INSTALL=$ac_install_sh
2893 fi
2894 fi
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2896 $as_echo "$INSTALL" >&6; }
2897
2898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2899 # It thinks the first close brace ends the variable substitution.
2900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2901
2902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2903
2904 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2905
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2907 $as_echo_n "checking whether build environment is sane... " >&6; }
2908 # Just in case
2909 sleep 1
2910 echo timestamp > conftest.file
2911 # Reject unsafe characters in $srcdir or the absolute working directory
2912 # name. Accept space and tab only in the latter.
2913 am_lf='
2914 '
2915 case `pwd` in
2916 *[\\\"\#\$\&\'\`$am_lf]*)
2917 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2918 esac
2919 case $srcdir in
2920 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2921 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2922 esac
2923
2924 # Do `set' in a subshell so we don't clobber the current shell's
2925 # arguments. Must try -L first in case configure is actually a
2926 # symlink; some systems play weird games with the mod time of symlinks
2927 # (eg FreeBSD returns the mod time of the symlink's containing
2928 # directory).
2929 if (
2930 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2931 if test "$*" = "X"; then
2932 # -L didn't work.
2933 set X `ls -t "$srcdir/configure" conftest.file`
2934 fi
2935 rm -f conftest.file
2936 if test "$*" != "X $srcdir/configure conftest.file" \
2937 && test "$*" != "X conftest.file $srcdir/configure"; then
2938
2939 # If neither matched, then we have a broken ls. This can happen
2940 # if, for instance, CONFIG_SHELL is bash and it inherits a
2941 # broken ls alias from the environment. This has actually
2942 # happened. Such a system could not be considered "sane".
2943 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2944 alias in your environment" "$LINENO" 5
2945 fi
2946
2947 test "$2" = conftest.file
2948 )
2949 then
2950 # Ok.
2951 :
2952 else
2953 as_fn_error $? "newly created file is older than distributed files!
2954 Check your system clock" "$LINENO" 5
2955 fi
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2957 $as_echo "yes" >&6; }
2958 test "$program_prefix" != NONE &&
2959 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2960 # Use a double $ so make ignores it.
2961 test "$program_suffix" != NONE &&
2962 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2963 # Double any \ or $.
2964 # By default was `s,x,x', remove it if useless.
2965 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2966 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2967
2968 # expand $ac_aux_dir to an absolute path
2969 am_aux_dir=`cd $ac_aux_dir && pwd`
2970
2971 if test x"${MISSING+set}" != xset; then
2972 case $am_aux_dir in
2973 *\ * | *\ *)
2974 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2975 *)
2976 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2977 esac
2978 fi
2979 # Use eval to expand $SHELL
2980 if eval "$MISSING --run true"; then
2981 am_missing_run="$MISSING --run "
2982 else
2983 am_missing_run=
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2985 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2986 fi
2987
2988 if test x"${install_sh}" != xset; then
2989 case $am_aux_dir in
2990 *\ * | *\ *)
2991 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2992 *)
2993 install_sh="\${SHELL} $am_aux_dir/install-sh"
2994 esac
2995 fi
2996
2997 # Installed binaries are usually stripped using `strip' when the user
2998 # run `make install-strip'. However `strip' might not be the right
2999 # tool to use in cross-compilation environments, therefore Automake
3000 # will honor the `STRIP' environment variable to overrule this program.
3001 if test "$cross_compiling" != no; then
3002 if test -n "$ac_tool_prefix"; then
3003 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}strip; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if test "${ac_cv_prog_STRIP+set}" = set; then :
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if test -n "$STRIP"; then
3011 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 break 2
3023 fi
3024 done
3025 done
3026 IFS=$as_save_IFS
3027
3028 fi
3029 fi
3030 STRIP=$ac_cv_prog_STRIP
3031 if test -n "$STRIP"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3033 $as_echo "$STRIP" >&6; }
3034 else
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 fi
3038
3039
3040 fi
3041 if test -z "$ac_cv_prog_STRIP"; then
3042 ac_ct_STRIP=$STRIP
3043 # Extract the first word of "strip", so it can be a program name with args.
3044 set dummy strip; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
3049 else
3050 if test -n "$ac_ct_STRIP"; then
3051 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_ac_ct_STRIP="strip"
3061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 break 2
3063 fi
3064 done
3065 done
3066 IFS=$as_save_IFS
3067
3068 fi
3069 fi
3070 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3071 if test -n "$ac_ct_STRIP"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3073 $as_echo "$ac_ct_STRIP" >&6; }
3074 else
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3077 fi
3078
3079 if test "x$ac_ct_STRIP" = x; then
3080 STRIP=":"
3081 else
3082 case $cross_compiling:$ac_tool_warned in
3083 yes:)
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3086 ac_tool_warned=yes ;;
3087 esac
3088 STRIP=$ac_ct_STRIP
3089 fi
3090 else
3091 STRIP="$ac_cv_prog_STRIP"
3092 fi
3093
3094 fi
3095 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3096
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3098 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3099 if test -z "$MKDIR_P"; then
3100 if test "${ac_cv_path_mkdir+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3105 do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_prog in mkdir gmkdir; do
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3111 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3112 'mkdir (GNU coreutils) '* | \
3113 'mkdir (coreutils) '* | \
3114 'mkdir (fileutils) '4.1*)
3115 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3116 break 3;;
3117 esac
3118 done
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 fi
3124
3125 test -d ./--version && rmdir ./--version
3126 if test "${ac_cv_path_mkdir+set}" = set; then
3127 MKDIR_P="$ac_cv_path_mkdir -p"
3128 else
3129 # As a last resort, use the slow shell script. Don't cache a
3130 # value for MKDIR_P within a source directory, because that will
3131 # break other packages using the cache if that directory is
3132 # removed, or if the value is a relative name.
3133 MKDIR_P="$ac_install_sh -d"
3134 fi
3135 fi
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3137 $as_echo "$MKDIR_P" >&6; }
3138
3139 mkdir_p="$MKDIR_P"
3140 case $mkdir_p in
3141 [\\/$]* | ?:[\\/]*) ;;
3142 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3143 esac
3144
3145 for ac_prog in gawk mawk nawk awk
3146 do
3147 # Extract the first word of "$ac_prog", so it can be a program name with args.
3148 set dummy $ac_prog; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if test "${ac_cv_prog_AWK+set}" = set; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 if test -n "$AWK"; then
3155 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3159 do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164 ac_cv_prog_AWK="$ac_prog"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168 done
3169 done
3170 IFS=$as_save_IFS
3171
3172 fi
3173 fi
3174 AWK=$ac_cv_prog_AWK
3175 if test -n "$AWK"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3177 $as_echo "$AWK" >&6; }
3178 else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183
3184 test -n "$AWK" && break
3185 done
3186
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3188 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3189 set x ${MAKE-make}
3190 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3191 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 cat >conftest.make <<\_ACEOF
3195 SHELL = /bin/sh
3196 all:
3197 @echo '@@@%%%=$(MAKE)=@@@%%%'
3198 _ACEOF
3199 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3200 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3201 *@@@%%%=?*=@@@%%%*)
3202 eval ac_cv_prog_make_${ac_make}_set=yes;;
3203 *)
3204 eval ac_cv_prog_make_${ac_make}_set=no;;
3205 esac
3206 rm -f conftest.make
3207 fi
3208 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3210 $as_echo "yes" >&6; }
3211 SET_MAKE=
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 SET_MAKE="MAKE=${MAKE-make}"
3216 fi
3217
3218 rm -rf .tst 2>/dev/null
3219 mkdir .tst 2>/dev/null
3220 if test -d .tst; then
3221 am__leading_dot=.
3222 else
3223 am__leading_dot=_
3224 fi
3225 rmdir .tst 2>/dev/null
3226
3227 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3228 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3229 # is not polluted with repeated "-I."
3230 am__isrc=' -I$(srcdir)'
3231 # test to see if srcdir already configured
3232 if test -f $srcdir/config.status; then
3233 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3234 fi
3235 fi
3236
3237 # test whether we have cygpath
3238 if test -z "$CYGPATH_W"; then
3239 if (cygpath --version) >/dev/null 2>/dev/null; then
3240 CYGPATH_W='cygpath -w'
3241 else
3242 CYGPATH_W=echo
3243 fi
3244 fi
3245
3246
3247 # Define the identity of the package.
3248 PACKAGE=$ZFS_META_NAME
3249 VERSION=$ZFS_META_VERSION
3250
3251
3252 cat >>confdefs.h <<_ACEOF
3253 #define PACKAGE "$PACKAGE"
3254 _ACEOF
3255
3256
3257 cat >>confdefs.h <<_ACEOF
3258 #define VERSION "$VERSION"
3259 _ACEOF
3260
3261 # Some tools Automake needs.
3262
3263 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3264
3265
3266 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3267
3268
3269 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3270
3271
3272 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3273
3274
3275 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3276
3277 # We need awk for the "check" target. The system "awk" is bad on
3278 # some platforms.
3279 # Always define AMTAR for backward compatibility.
3280
3281 AMTAR=${AMTAR-"${am_missing_run}tar"}
3282
3283 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3284
3285
3286
3287
3288
3289 ac_config_headers="$ac_config_headers zfs_config.h"
3290
3291
3292
3293 ac_ext=c
3294 ac_cpp='$CPP $CPPFLAGS'
3295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298 if test -n "$ac_tool_prefix"; then
3299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3300 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if test "${ac_cv_prog_CC+set}" = set; then :
3304 $as_echo_n "(cached) " >&6
3305 else
3306 if test -n "$CC"; then
3307 ac_cv_prog_CC="$CC" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320 done
3321 done
3322 IFS=$as_save_IFS
3323
3324 fi
3325 fi
3326 CC=$ac_cv_prog_CC
3327 if test -n "$CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335
3336 fi
3337 if test -z "$ac_cv_prog_CC"; then
3338 ac_ct_CC=$CC
3339 # Extract the first word of "gcc", so it can be a program name with args.
3340 set dummy gcc; ac_word=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 if test -n "$ac_ct_CC"; then
3347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356 ac_cv_prog_ac_ct_CC="gcc"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360 done
3361 done
3362 IFS=$as_save_IFS
3363
3364 fi
3365 fi
3366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3367 if test -n "$ac_ct_CC"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3369 $as_echo "$ac_ct_CC" >&6; }
3370 else
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3373 fi
3374
3375 if test "x$ac_ct_CC" = x; then
3376 CC=""
3377 else
3378 case $cross_compiling:$ac_tool_warned in
3379 yes:)
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3382 ac_tool_warned=yes ;;
3383 esac
3384 CC=$ac_ct_CC
3385 fi
3386 else
3387 CC="$ac_cv_prog_CC"
3388 fi
3389
3390 if test -z "$CC"; then
3391 if test -n "$ac_tool_prefix"; then
3392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3393 set dummy ${ac_tool_prefix}cc; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if test "${ac_cv_prog_CC+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3398 else
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409 ac_cv_prog_CC="${ac_tool_prefix}cc"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413 done
3414 done
3415 IFS=$as_save_IFS
3416
3417 fi
3418 fi
3419 CC=$ac_cv_prog_CC
3420 if test -n "$CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422 $as_echo "$CC" >&6; }
3423 else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3426 fi
3427
3428
3429 fi
3430 fi
3431 if test -z "$CC"; then
3432 # Extract the first word of "cc", so it can be a program name with args.
3433 set dummy cc; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if test "${ac_cv_prog_CC+set}" = set; then :
3437 $as_echo_n "(cached) " >&6
3438 else
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3441 else
3442 ac_prog_rejected=no
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451 ac_prog_rejected=yes
3452 continue
3453 fi
3454 ac_cv_prog_CC="cc"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458 done
3459 done
3460 IFS=$as_save_IFS
3461
3462 if test $ac_prog_rejected = yes; then
3463 # We found a bogon in the path, so make sure we never use it.
3464 set dummy $ac_cv_prog_CC
3465 shift
3466 if test $# != 0; then
3467 # We chose a different compiler from the bogus one.
3468 # However, it has the same basename, so the bogon will be chosen
3469 # first if we set CC to just the basename; use the full file name.
3470 shift
3471 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3472 fi
3473 fi
3474 fi
3475 fi
3476 CC=$ac_cv_prog_CC
3477 if test -n "$CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479 $as_echo "$CC" >&6; }
3480 else
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3483 fi
3484
3485
3486 fi
3487 if test -z "$CC"; then
3488 if test -n "$ac_tool_prefix"; then
3489 for ac_prog in cl.exe
3490 do
3491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_CC+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512 done
3513 done
3514 IFS=$as_save_IFS
3515
3516 fi
3517 fi
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3522 else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 fi
3526
3527
3528 test -n "$CC" && break
3529 done
3530 fi
3531 if test -z "$CC"; then
3532 ac_ct_CC=$CC
3533 for ac_prog in cl.exe
3534 do
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC="$ac_prog"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556 done
3557 done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571
3572 test -n "$ac_ct_CC" && break
3573 done
3574
3575 if test "x$ac_ct_CC" = x; then
3576 CC=""
3577 else
3578 case $cross_compiling:$ac_tool_warned in
3579 yes:)
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582 ac_tool_warned=yes ;;
3583 esac
3584 CC=$ac_ct_CC
3585 fi
3586 fi
3587
3588 fi
3589
3590
3591 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "no acceptable C compiler found in \$PATH
3594 See \`config.log' for more details" "$LINENO" 5 ; }
3595
3596 # Provide some information about the compiler.
3597 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3598 set X $ac_compile
3599 ac_compiler=$2
3600 for ac_option in --version -v -V -qversion; do
3601 { { ac_try="$ac_compiler $ac_option >&5"
3602 case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3609 ac_status=$?
3610 if test -s conftest.err; then
3611 sed '10a\
3612 ... rest of stderr output deleted ...
3613 10q' conftest.err >conftest.er1
3614 cat conftest.er1 >&5
3615 fi
3616 rm -f conftest.er1 conftest.err
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }
3619 done
3620
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3623
3624 int
3625 main ()
3626 {
3627
3628 ;
3629 return 0;
3630 }
3631 _ACEOF
3632 ac_clean_files_save=$ac_clean_files
3633 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3634 # Try to create an executable without -o first, disregard a.out.
3635 # It will help us diagnose broken compilers, and finding out an intuition
3636 # of exeext.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3638 $as_echo_n "checking whether the C compiler works... " >&6; }
3639 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3640
3641 # The possible output files:
3642 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3643
3644 ac_rmfiles=
3645 for ac_file in $ac_files
3646 do
3647 case $ac_file in
3648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3649 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3650 esac
3651 done
3652 rm -f $ac_rmfiles
3653
3654 if { { ac_try="$ac_link_default"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_link_default") 2>&5
3662 ac_status=$?
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }; then :
3665 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3666 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3667 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3668 # so that the user can short-circuit this test for compilers unknown to
3669 # Autoconf.
3670 for ac_file in $ac_files ''
3671 do
3672 test -f "$ac_file" || continue
3673 case $ac_file in
3674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3675 ;;
3676 [ab].out )
3677 # We found the default executable, but exeext='' is most
3678 # certainly right.
3679 break;;
3680 *.* )
3681 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3682 then :; else
3683 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3684 fi
3685 # We set ac_cv_exeext here because the later test for it is not
3686 # safe: cross compilers may not add the suffix if given an `-o'
3687 # argument, so we may need to know it at that point already.
3688 # Even if this section looks crufty: it has the advantage of
3689 # actually working.
3690 break;;
3691 * )
3692 break;;
3693 esac
3694 done
3695 test "$ac_cv_exeext" = no && ac_cv_exeext=
3696
3697 else
3698 ac_file=''
3699 fi
3700 if test -z "$ac_file"; then :
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3703 $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error 77 "C compiler cannot create executables
3709 See \`config.log' for more details" "$LINENO" 5 ; }
3710 else
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712 $as_echo "yes" >&6; }
3713 fi
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3715 $as_echo_n "checking for C compiler default output file name... " >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3717 $as_echo "$ac_file" >&6; }
3718 ac_exeext=$ac_cv_exeext
3719
3720 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3721 ac_clean_files=$ac_clean_files_save
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3723 $as_echo_n "checking for suffix of executables... " >&6; }
3724 if { { ac_try="$ac_link"
3725 case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_link") 2>&5
3732 ac_status=$?
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3736 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3737 # work properly (i.e., refer to `conftest.exe'), while it won't with
3738 # `rm'.
3739 for ac_file in conftest.exe conftest conftest.*; do
3740 test -f "$ac_file" || continue
3741 case $ac_file in
3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3744 break;;
3745 * ) break;;
3746 esac
3747 done
3748 else
3749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3752 See \`config.log' for more details" "$LINENO" 5 ; }
3753 fi
3754 rm -f conftest conftest$ac_cv_exeext
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3756 $as_echo "$ac_cv_exeext" >&6; }
3757
3758 rm -f conftest.$ac_ext
3759 EXEEXT=$ac_cv_exeext
3760 ac_exeext=$EXEEXT
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763 #include <stdio.h>
3764 int
3765 main ()
3766 {
3767 FILE *f = fopen ("conftest.out", "w");
3768 return ferror (f) || fclose (f) != 0;
3769
3770 ;
3771 return 0;
3772 }
3773 _ACEOF
3774 ac_clean_files="$ac_clean_files conftest.out"
3775 # Check that the compiler produces executables we can run. If not, either
3776 # the compiler is broken, or we cross compile.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3778 $as_echo_n "checking whether we are cross compiling... " >&6; }
3779 if test "$cross_compiling" != yes; then
3780 { { ac_try="$ac_link"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_link") 2>&5
3788 ac_status=$?
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }
3791 if { ac_try='./conftest$ac_cv_exeext'
3792 { { case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_try") 2>&5
3799 ac_status=$?
3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801 test $ac_status = 0; }; }; then
3802 cross_compiling=no
3803 else
3804 if test "$cross_compiling" = maybe; then
3805 cross_compiling=yes
3806 else
3807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error $? "cannot run C compiled programs.
3810 If you meant to cross compile, use \`--host'.
3811 See \`config.log' for more details" "$LINENO" 5 ; }
3812 fi
3813 fi
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3816 $as_echo "$cross_compiling" >&6; }
3817
3818 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3819 ac_clean_files=$ac_clean_files_save
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3821 $as_echo_n "checking for suffix of object files... " >&6; }
3822 if test "${ac_cv_objext+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
3824 else
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827
3828 int
3829 main ()
3830 {
3831
3832 ;
3833 return 0;
3834 }
3835 _ACEOF
3836 rm -f conftest.o conftest.obj
3837 if { { ac_try="$ac_compile"
3838 case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compile") 2>&5
3845 ac_status=$?
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }; then :
3848 for ac_file in conftest.o conftest.obj conftest.*; do
3849 test -f "$ac_file" || continue;
3850 case $ac_file in
3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3852 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3853 break;;
3854 esac
3855 done
3856 else
3857 $as_echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3859
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "cannot compute suffix of object files: cannot compile
3863 See \`config.log' for more details" "$LINENO" 5 ; }
3864 fi
3865 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3866 fi
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3868 $as_echo "$ac_cv_objext" >&6; }
3869 OBJEXT=$ac_cv_objext
3870 ac_objext=$OBJEXT
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3872 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3873 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
3875 else
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878
3879 int
3880 main ()
3881 {
3882 #ifndef __GNUC__
3883 choke me
3884 #endif
3885
3886 ;
3887 return 0;
3888 }
3889 _ACEOF
3890 if ac_fn_c_try_compile "$LINENO"; then :
3891 ac_compiler_gnu=yes
3892 else
3893 ac_compiler_gnu=no
3894 fi
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3897
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3900 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3901 if test $ac_compiler_gnu = yes; then
3902 GCC=yes
3903 else
3904 GCC=
3905 fi
3906 ac_test_CFLAGS=${CFLAGS+set}
3907 ac_save_CFLAGS=$CFLAGS
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3909 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3910 if test "${ac_cv_prog_cc_g+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 ac_save_c_werror_flag=$ac_c_werror_flag
3914 ac_c_werror_flag=yes
3915 ac_cv_prog_cc_g=no
3916 CFLAGS="-g"
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3919
3920 int
3921 main ()
3922 {
3923
3924 ;
3925 return 0;
3926 }
3927 _ACEOF
3928 if ac_fn_c_try_compile "$LINENO"; then :
3929 ac_cv_prog_cc_g=yes
3930 else
3931 CFLAGS=""
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934
3935 int
3936 main ()
3937 {
3938
3939 ;
3940 return 0;
3941 }
3942 _ACEOF
3943 if ac_fn_c_try_compile "$LINENO"; then :
3944
3945 else
3946 ac_c_werror_flag=$ac_save_c_werror_flag
3947 CFLAGS="-g"
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3950
3951 int
3952 main ()
3953 {
3954
3955 ;
3956 return 0;
3957 }
3958 _ACEOF
3959 if ac_fn_c_try_compile "$LINENO"; then :
3960 ac_cv_prog_cc_g=yes
3961 fi
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 fi
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 fi
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 ac_c_werror_flag=$ac_save_c_werror_flag
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3970 $as_echo "$ac_cv_prog_cc_g" >&6; }
3971 if test "$ac_test_CFLAGS" = set; then
3972 CFLAGS=$ac_save_CFLAGS
3973 elif test $ac_cv_prog_cc_g = yes; then
3974 if test "$GCC" = yes; then
3975 CFLAGS="-g -O2"
3976 else
3977 CFLAGS="-g"
3978 fi
3979 else
3980 if test "$GCC" = yes; then
3981 CFLAGS="-O2"
3982 else
3983 CFLAGS=
3984 fi
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3987 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3988 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 ac_cv_prog_cc_c89=no
3992 ac_save_CC=$CC
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 #include <stdarg.h>
3996 #include <stdio.h>
3997 #include <sys/types.h>
3998 #include <sys/stat.h>
3999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4000 struct buf { int x; };
4001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4002 static char *e (p, i)
4003 char **p;
4004 int i;
4005 {
4006 return p[i];
4007 }
4008 static char *f (char * (*g) (char **, int), char **p, ...)
4009 {
4010 char *s;
4011 va_list v;
4012 va_start (v,p);
4013 s = g (p, va_arg (v,int));
4014 va_end (v);
4015 return s;
4016 }
4017
4018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4019 function prototypes and stuff, but not '\xHH' hex character constants.
4020 These don't provoke an error unfortunately, instead are silently treated
4021 as 'x'. The following induces an error, until -std is added to get
4022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4023 array size at least. It's necessary to write '\x00'==0 to get something
4024 that's true only with -std. */
4025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4026
4027 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4028 inside strings and character constants. */
4029 #define FOO(x) 'x'
4030 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4031
4032 int test (int i, double x);
4033 struct s1 {int (*f) (int a);};
4034 struct s2 {int (*f) (double a);};
4035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4036 int argc;
4037 char **argv;
4038 int
4039 main ()
4040 {
4041 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4042 ;
4043 return 0;
4044 }
4045 _ACEOF
4046 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4047 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4048 do
4049 CC="$ac_save_CC $ac_arg"
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_cv_prog_cc_c89=$ac_arg
4052 fi
4053 rm -f core conftest.err conftest.$ac_objext
4054 test "x$ac_cv_prog_cc_c89" != "xno" && break
4055 done
4056 rm -f conftest.$ac_ext
4057 CC=$ac_save_CC
4058
4059 fi
4060 # AC_CACHE_VAL
4061 case "x$ac_cv_prog_cc_c89" in
4062 x)
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4064 $as_echo "none needed" >&6; } ;;
4065 xno)
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4067 $as_echo "unsupported" >&6; } ;;
4068 *)
4069 CC="$CC $ac_cv_prog_cc_c89"
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4071 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4072 esac
4073 if test "x$ac_cv_prog_cc_c89" != xno; then :
4074
4075 fi
4076
4077 ac_ext=c
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082 DEPDIR="${am__leading_dot}deps"
4083
4084 ac_config_commands="$ac_config_commands depfiles"
4085
4086
4087 am_make=${MAKE-make}
4088 cat > confinc << 'END'
4089 am__doit:
4090 @echo this is the am__doit target
4091 .PHONY: am__doit
4092 END
4093 # If we don't find an include directive, just comment out the code.
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4095 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4096 am__include="#"
4097 am__quote=
4098 _am_result=none
4099 # First try GNU make style include.
4100 echo "include confinc" > confmf
4101 # Ignore all kinds of additional output from `make'.
4102 case `$am_make -s -f confmf 2> /dev/null` in #(
4103 *the\ am__doit\ target*)
4104 am__include=include
4105 am__quote=
4106 _am_result=GNU
4107 ;;
4108 esac
4109 # Now try BSD make style include.
4110 if test "$am__include" = "#"; then
4111 echo '.include "confinc"' > confmf
4112 case `$am_make -s -f confmf 2> /dev/null` in #(
4113 *the\ am__doit\ target*)
4114 am__include=.include
4115 am__quote="\""
4116 _am_result=BSD
4117 ;;
4118 esac
4119 fi
4120
4121
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4123 $as_echo "$_am_result" >&6; }
4124 rm -f confinc confmf
4125
4126 # Check whether --enable-dependency-tracking was given.
4127 if test "${enable_dependency_tracking+set}" = set; then :
4128 enableval=$enable_dependency_tracking;
4129 fi
4130
4131 if test "x$enable_dependency_tracking" != xno; then
4132 am_depcomp="$ac_aux_dir/depcomp"
4133 AMDEPBACKSLASH='\'
4134 fi
4135 if test "x$enable_dependency_tracking" != xno; then
4136 AMDEP_TRUE=
4137 AMDEP_FALSE='#'
4138 else
4139 AMDEP_TRUE='#'
4140 AMDEP_FALSE=
4141 fi
4142
4143
4144
4145 depcc="$CC" am_compiler_list=
4146
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4148 $as_echo_n "checking dependency style of $depcc... " >&6; }
4149 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4153 # We make a subdir and do the tests there. Otherwise we can end up
4154 # making bogus files that we don't know about and never remove. For
4155 # instance it was reported that on HP-UX the gcc test will end up
4156 # making a dummy file named `D' -- because `-MD' means `put the output
4157 # in D'.
4158 mkdir conftest.dir
4159 # Copy depcomp to subdir because otherwise we won't find it if we're
4160 # using a relative directory.
4161 cp "$am_depcomp" conftest.dir
4162 cd conftest.dir
4163 # We will build objects and dependencies in a subdirectory because
4164 # it helps to detect inapplicable dependency modes. For instance
4165 # both Tru64's cc and ICC support -MD to output dependencies as a
4166 # side effect of compilation, but ICC will put the dependencies in
4167 # the current directory while Tru64 will put them in the object
4168 # directory.
4169 mkdir sub
4170
4171 am_cv_CC_dependencies_compiler_type=none
4172 if test "$am_compiler_list" = ""; then
4173 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4174 fi
4175 am__universal=false
4176 case " $depcc " in #(
4177 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4178 esac
4179
4180 for depmode in $am_compiler_list; do
4181 # Setup a source with many dependencies, because some compilers
4182 # like to wrap large dependency lists on column 80 (with \), and
4183 # we should not choose a depcomp mode which is confused by this.
4184 #
4185 # We need to recreate these files for each test, as the compiler may
4186 # overwrite some of them when testing with obscure command lines.
4187 # This happens at least with the AIX C compiler.
4188 : > sub/conftest.c
4189 for i in 1 2 3 4 5 6; do
4190 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4191 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4192 # Solaris 8's {/usr,}/bin/sh.
4193 touch sub/conftst$i.h
4194 done
4195 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4196
4197 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4198 # mode. It turns out that the SunPro C++ compiler does not properly
4199 # handle `-M -o', and we need to detect this. Also, some Intel
4200 # versions had trouble with output in subdirs
4201 am__obj=sub/conftest.${OBJEXT-o}
4202 am__minus_obj="-o $am__obj"
4203 case $depmode in
4204 gcc)
4205 # This depmode causes a compiler race in universal mode.
4206 test "$am__universal" = false || continue
4207 ;;
4208 nosideeffect)
4209 # after this tag, mechanisms are not by side-effect, so they'll
4210 # only be used when explicitly requested
4211 if test "x$enable_dependency_tracking" = xyes; then
4212 continue
4213 else
4214 break
4215 fi
4216 ;;
4217 msvisualcpp | msvcmsys)
4218 # This compiler won't grok `-c -o', but also, the minuso test has
4219 # not run yet. These depmodes are late enough in the game, and
4220 # so weak that their functioning should not be impacted.
4221 am__obj=conftest.${OBJEXT-o}
4222 am__minus_obj=
4223 ;;
4224 none) break ;;
4225 esac
4226 if depmode=$depmode \
4227 source=sub/conftest.c object=$am__obj \
4228 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4229 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4230 >/dev/null 2>conftest.err &&
4231 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4233 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4235 # icc doesn't choke on unknown options, it will just issue warnings
4236 # or remarks (even with -Werror). So we grep stderr for any message
4237 # that says an option was ignored or not supported.
4238 # When given -MP, icc 7.0 and 7.1 complain thusly:
4239 # icc: Command line warning: ignoring option '-M'; no argument required
4240 # The diagnosis changed in icc 8.0:
4241 # icc: Command line remark: option '-MP' not supported
4242 if (grep 'ignoring option' conftest.err ||
4243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4244 am_cv_CC_dependencies_compiler_type=$depmode
4245 break
4246 fi
4247 fi
4248 done
4249
4250 cd ..
4251 rm -rf conftest.dir
4252 else
4253 am_cv_CC_dependencies_compiler_type=none
4254 fi
4255
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4258 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4260
4261 if
4262 test "x$enable_dependency_tracking" != xno \
4263 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4264 am__fastdepCC_TRUE=
4265 am__fastdepCC_FALSE='#'
4266 else
4267 am__fastdepCC_TRUE='#'
4268 am__fastdepCC_FALSE=
4269 fi
4270
4271
4272 case `pwd` in
4273 *\ * | *\ *)
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4275 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4276 esac
4277
4278
4279
4280 macro_version='2.2.6b'
4281 macro_revision='1.3017'
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295 ltmain="$ac_aux_dir/ltmain.sh"
4296
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4298 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4299 if test "${ac_cv_path_SED+set}" = set; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4303 for ac_i in 1 2 3 4 5 6 7; do
4304 ac_script="$ac_script$as_nl$ac_script"
4305 done
4306 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4307 { ac_script=; unset ac_script;}
4308 if test -z "$SED"; then
4309 ac_path_SED_found=false
4310 # Loop through the user's path and test for each of PROGNAME-LIST
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_prog in sed gsed; do
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4319 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4320 # Check for GNU ac_path_SED and select it if it is found.
4321 # Check for GNU $ac_path_SED
4322 case `"$ac_path_SED" --version 2>&1` in
4323 *GNU*)
4324 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4325 *)
4326 ac_count=0
4327 $as_echo_n 0123456789 >"conftest.in"
4328 while :
4329 do
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo '' >> "conftest.nl"
4334 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336 as_fn_arith $ac_count + 1 && ac_count=$as_val
4337 if test $ac_count -gt ${ac_path_SED_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_SED="$ac_path_SED"
4340 ac_path_SED_max=$ac_count
4341 fi
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4344 done
4345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346 esac
4347
4348 $ac_path_SED_found && break 3
4349 done
4350 done
4351 done
4352 IFS=$as_save_IFS
4353 if test -z "$ac_cv_path_SED"; then
4354 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4355 fi
4356 else
4357 ac_cv_path_SED=$SED
4358 fi
4359
4360 fi
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4362 $as_echo "$ac_cv_path_SED" >&6; }
4363 SED="$ac_cv_path_SED"
4364 rm -f conftest.sed
4365
4366 test -z "$SED" && SED=sed
4367 Xsed="$SED -e 1s/^X//"
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4380 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4381 if test "${ac_cv_path_GREP+set}" = set; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if test -z "$GREP"; then
4385 ac_path_GREP_found=false
4386 # Loop through the user's path and test for each of PROGNAME-LIST
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4389 do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_prog in grep ggrep; do
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4395 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4396 # Check for GNU ac_path_GREP and select it if it is found.
4397 # Check for GNU $ac_path_GREP
4398 case `"$ac_path_GREP" --version 2>&1` in
4399 *GNU*)
4400 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4401 *)
4402 ac_count=0
4403 $as_echo_n 0123456789 >"conftest.in"
4404 while :
4405 do
4406 cat "conftest.in" "conftest.in" >"conftest.tmp"
4407 mv "conftest.tmp" "conftest.in"
4408 cp "conftest.in" "conftest.nl"
4409 $as_echo 'GREP' >> "conftest.nl"
4410 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4412 as_fn_arith $ac_count + 1 && ac_count=$as_val
4413 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4414 # Best one so far, save it but keep looking for a better one
4415 ac_cv_path_GREP="$ac_path_GREP"
4416 ac_path_GREP_max=$ac_count
4417 fi
4418 # 10*(2^10) chars as input seems more than enough
4419 test $ac_count -gt 10 && break
4420 done
4421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4422 esac
4423
4424 $ac_path_GREP_found && break 3
4425 done
4426 done
4427 done
4428 IFS=$as_save_IFS
4429 if test -z "$ac_cv_path_GREP"; then
4430 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4431 fi
4432 else
4433 ac_cv_path_GREP=$GREP
4434 fi
4435
4436 fi
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4438 $as_echo "$ac_cv_path_GREP" >&6; }
4439 GREP="$ac_cv_path_GREP"
4440
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4443 $as_echo_n "checking for egrep... " >&6; }
4444 if test "${ac_cv_path_EGREP+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4448 then ac_cv_path_EGREP="$GREP -E"
4449 else
4450 if test -z "$EGREP"; then
4451 ac_path_EGREP_found=false
4452 # Loop through the user's path and test for each of PROGNAME-LIST
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4455 do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_prog in egrep; do
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4461 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4462 # Check for GNU ac_path_EGREP and select it if it is found.
4463 # Check for GNU $ac_path_EGREP
4464 case `"$ac_path_EGREP" --version 2>&1` in
4465 *GNU*)
4466 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4467 *)
4468 ac_count=0
4469 $as_echo_n 0123456789 >"conftest.in"
4470 while :
4471 do
4472 cat "conftest.in" "conftest.in" >"conftest.tmp"
4473 mv "conftest.tmp" "conftest.in"
4474 cp "conftest.in" "conftest.nl"
4475 $as_echo 'EGREP' >> "conftest.nl"
4476 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4478 as_fn_arith $ac_count + 1 && ac_count=$as_val
4479 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4480 # Best one so far, save it but keep looking for a better one
4481 ac_cv_path_EGREP="$ac_path_EGREP"
4482 ac_path_EGREP_max=$ac_count
4483 fi
4484 # 10*(2^10) chars as input seems more than enough
4485 test $ac_count -gt 10 && break
4486 done
4487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4488 esac
4489
4490 $ac_path_EGREP_found && break 3
4491 done
4492 done
4493 done
4494 IFS=$as_save_IFS
4495 if test -z "$ac_cv_path_EGREP"; then
4496 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4497 fi
4498 else
4499 ac_cv_path_EGREP=$EGREP
4500 fi
4501
4502 fi
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4505 $as_echo "$ac_cv_path_EGREP" >&6; }
4506 EGREP="$ac_cv_path_EGREP"
4507
4508
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4510 $as_echo_n "checking for fgrep... " >&6; }
4511 if test "${ac_cv_path_FGREP+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4515 then ac_cv_path_FGREP="$GREP -F"
4516 else
4517 if test -z "$FGREP"; then
4518 ac_path_FGREP_found=false
4519 # Loop through the user's path and test for each of PROGNAME-LIST
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4522 do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_prog in fgrep; do
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4528 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4529 # Check for GNU ac_path_FGREP and select it if it is found.
4530 # Check for GNU $ac_path_FGREP
4531 case `"$ac_path_FGREP" --version 2>&1` in
4532 *GNU*)
4533 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4534 *)
4535 ac_count=0
4536 $as_echo_n 0123456789 >"conftest.in"
4537 while :
4538 do
4539 cat "conftest.in" "conftest.in" >"conftest.tmp"
4540 mv "conftest.tmp" "conftest.in"
4541 cp "conftest.in" "conftest.nl"
4542 $as_echo 'FGREP' >> "conftest.nl"
4543 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4545 as_fn_arith $ac_count + 1 && ac_count=$as_val
4546 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4547 # Best one so far, save it but keep looking for a better one
4548 ac_cv_path_FGREP="$ac_path_FGREP"
4549 ac_path_FGREP_max=$ac_count
4550 fi
4551 # 10*(2^10) chars as input seems more than enough
4552 test $ac_count -gt 10 && break
4553 done
4554 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4555 esac
4556
4557 $ac_path_FGREP_found && break 3
4558 done
4559 done
4560 done
4561 IFS=$as_save_IFS
4562 if test -z "$ac_cv_path_FGREP"; then
4563 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4564 fi
4565 else
4566 ac_cv_path_FGREP=$FGREP
4567 fi
4568
4569 fi
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4572 $as_echo "$ac_cv_path_FGREP" >&6; }
4573 FGREP="$ac_cv_path_FGREP"
4574
4575
4576 test -z "$GREP" && GREP=grep
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596 # Check whether --with-gnu-ld was given.
4597 if test "${with_gnu_ld+set}" = set; then :
4598 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4599 else
4600 with_gnu_ld=no
4601 fi
4602
4603 ac_prog=ld
4604 if test "$GCC" = yes; then
4605 # Check if gcc -print-prog-name=ld gives a path.
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4607 $as_echo_n "checking for ld used by $CC... " >&6; }
4608 case $host in
4609 *-*-mingw*)
4610 # gcc leaves a trailing carriage return which upsets mingw
4611 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4612 *)
4613 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4614 esac
4615 case $ac_prog in
4616 # Accept absolute paths.
4617 [\\/]* | ?:[\\/]*)
4618 re_direlt='/[^/][^/]*/\.\./'
4619 # Canonicalize the pathname of ld
4620 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4621 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4622 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4623 done
4624 test -z "$LD" && LD="$ac_prog"
4625 ;;
4626 "")
4627 # If it fails, then pretend we aren't using GCC.
4628 ac_prog=ld
4629 ;;
4630 *)
4631 # If it is relative, then search for the first ld in PATH.
4632 with_gnu_ld=unknown
4633 ;;
4634 esac
4635 elif test "$with_gnu_ld" = yes; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4637 $as_echo_n "checking for GNU ld... " >&6; }
4638 else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4640 $as_echo_n "checking for non-GNU ld... " >&6; }
4641 fi
4642 if test "${lt_cv_path_LD+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -z "$LD"; then
4646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4647 for ac_dir in $PATH; do
4648 IFS="$lt_save_ifs"
4649 test -z "$ac_dir" && ac_dir=.
4650 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4651 lt_cv_path_LD="$ac_dir/$ac_prog"
4652 # Check to see if the program is GNU ld. I'd rather use --version,
4653 # but apparently some variants of GNU ld only accept -v.
4654 # Break only if it was the GNU/non-GNU ld that we prefer.
4655 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4656 *GNU* | *'with BFD'*)
4657 test "$with_gnu_ld" != no && break
4658 ;;
4659 *)
4660 test "$with_gnu_ld" != yes && break
4661 ;;
4662 esac
4663 fi
4664 done
4665 IFS="$lt_save_ifs"
4666 else
4667 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4668 fi
4669 fi
4670
4671 LD="$lt_cv_path_LD"
4672 if test -n "$LD"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4674 $as_echo "$LD" >&6; }
4675 else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4681 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4682 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4686 case `$LD -v 2>&1 </dev/null` in
4687 *GNU* | *'with BFD'*)
4688 lt_cv_prog_gnu_ld=yes
4689 ;;
4690 *)
4691 lt_cv_prog_gnu_ld=no
4692 ;;
4693 esac
4694 fi
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4696 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4697 with_gnu_ld=$lt_cv_prog_gnu_ld
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4708 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4709 if test "${lt_cv_path_NM+set}" = set; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 if test -n "$NM"; then
4713 # Let the user override the test.
4714 lt_cv_path_NM="$NM"
4715 else
4716 lt_nm_to_check="${ac_tool_prefix}nm"
4717 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4718 lt_nm_to_check="$lt_nm_to_check nm"
4719 fi
4720 for lt_tmp_nm in $lt_nm_to_check; do
4721 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4722 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4723 IFS="$lt_save_ifs"
4724 test -z "$ac_dir" && ac_dir=.
4725 tmp_nm="$ac_dir/$lt_tmp_nm"
4726 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4727 # Check to see if the nm accepts a BSD-compat flag.
4728 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4729 # nm: unknown option "B" ignored
4730 # Tru64's nm complains that /dev/null is an invalid object file
4731 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4732 */dev/null* | *'Invalid file or object type'*)
4733 lt_cv_path_NM="$tmp_nm -B"
4734 break
4735 ;;
4736 *)
4737 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4738 */dev/null*)
4739 lt_cv_path_NM="$tmp_nm -p"
4740 break
4741 ;;
4742 *)
4743 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4744 continue # so that we can try to find one that supports BSD flags
4745 ;;
4746 esac
4747 ;;
4748 esac
4749 fi
4750 done
4751 IFS="$lt_save_ifs"
4752 done
4753 : ${lt_cv_path_NM=no}
4754 fi
4755 fi
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4757 $as_echo "$lt_cv_path_NM" >&6; }
4758 if test "$lt_cv_path_NM" != "no"; then
4759 NM="$lt_cv_path_NM"
4760 else
4761 # Didn't find any BSD compatible name lister, look for dumpbin.
4762 if test -n "$ac_tool_prefix"; then
4763 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4764 do
4765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 if test -n "$DUMPBIN"; then
4773 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4774 else
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4785 fi
4786 done
4787 done
4788 IFS=$as_save_IFS
4789
4790 fi
4791 fi
4792 DUMPBIN=$ac_cv_prog_DUMPBIN
4793 if test -n "$DUMPBIN"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4795 $as_echo "$DUMPBIN" >&6; }
4796 else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4799 fi
4800
4801
4802 test -n "$DUMPBIN" && break
4803 done
4804 fi
4805 if test -z "$DUMPBIN"; then
4806 ac_ct_DUMPBIN=$DUMPBIN
4807 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4808 do
4809 # Extract the first word of "$ac_prog", so it can be a program name with args.
4810 set dummy $ac_prog; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 if test -n "$ac_ct_DUMPBIN"; then
4817 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830 done
4831 done
4832 IFS=$as_save_IFS
4833
4834 fi
4835 fi
4836 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4837 if test -n "$ac_ct_DUMPBIN"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4839 $as_echo "$ac_ct_DUMPBIN" >&6; }
4840 else
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4843 fi
4844
4845
4846 test -n "$ac_ct_DUMPBIN" && break
4847 done
4848
4849 if test "x$ac_ct_DUMPBIN" = x; then
4850 DUMPBIN=":"
4851 else
4852 case $cross_compiling:$ac_tool_warned in
4853 yes:)
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4856 ac_tool_warned=yes ;;
4857 esac
4858 DUMPBIN=$ac_ct_DUMPBIN
4859 fi
4860 fi
4861
4862
4863 if test "$DUMPBIN" != ":"; then
4864 NM="$DUMPBIN"
4865 fi
4866 fi
4867 test -z "$NM" && NM=nm
4868
4869
4870
4871
4872
4873
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4875 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4876 if test "${lt_cv_nm_interface+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 lt_cv_nm_interface="BSD nm"
4880 echo "int some_variable = 0;" > conftest.$ac_ext
4881 (eval echo "\"\$as_me:4881: $ac_compile\"" >&5)
4882 (eval "$ac_compile" 2>conftest.err)
4883 cat conftest.err >&5
4884 (eval echo "\"\$as_me:4884: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4885 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4886 cat conftest.err >&5
4887 (eval echo "\"\$as_me:4887: output\"" >&5)
4888 cat conftest.out >&5
4889 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4890 lt_cv_nm_interface="MS dumpbin"
4891 fi
4892 rm -f conftest*
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4895 $as_echo "$lt_cv_nm_interface" >&6; }
4896
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4898 $as_echo_n "checking whether ln -s works... " >&6; }
4899 LN_S=$as_ln_s
4900 if test "$LN_S" = "ln -s"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4902 $as_echo "yes" >&6; }
4903 else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4905 $as_echo "no, using $LN_S" >&6; }
4906 fi
4907
4908 # find the maximum length of command line arguments
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4910 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4911 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 i=0
4915 teststring="ABCD"
4916
4917 case $build_os in
4918 msdosdjgpp*)
4919 # On DJGPP, this test can blow up pretty badly due to problems in libc
4920 # (any single argument exceeding 2000 bytes causes a buffer overrun
4921 # during glob expansion). Even if it were fixed, the result of this
4922 # check would be larger than it should be.
4923 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4924 ;;
4925
4926 gnu*)
4927 # Under GNU Hurd, this test is not required because there is
4928 # no limit to the length of command line arguments.
4929 # Libtool will interpret -1 as no limit whatsoever
4930 lt_cv_sys_max_cmd_len=-1;
4931 ;;
4932
4933 cygwin* | mingw* | cegcc*)
4934 # On Win9x/ME, this test blows up -- it succeeds, but takes
4935 # about 5 minutes as the teststring grows exponentially.
4936 # Worse, since 9x/ME are not pre-emptively multitasking,
4937 # you end up with a "frozen" computer, even though with patience
4938 # the test eventually succeeds (with a max line length of 256k).
4939 # Instead, let's just punt: use the minimum linelength reported by
4940 # all of the supported platforms: 8192 (on NT/2K/XP).
4941 lt_cv_sys_max_cmd_len=8192;
4942 ;;
4943
4944 amigaos*)
4945 # On AmigaOS with pdksh, this test takes hours, literally.
4946 # So we just punt and use a minimum line length of 8192.
4947 lt_cv_sys_max_cmd_len=8192;
4948 ;;
4949
4950 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4951 # This has been around since 386BSD, at least. Likely further.
4952 if test -x /sbin/sysctl; then
4953 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4954 elif test -x /usr/sbin/sysctl; then
4955 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4956 else
4957 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4958 fi
4959 # And add a safety zone
4960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4962 ;;
4963
4964 interix*)
4965 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4966 lt_cv_sys_max_cmd_len=196608
4967 ;;
4968
4969 osf*)
4970 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4971 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4972 # nice to cause kernel panics so lets avoid the loop below.
4973 # First set a reasonable default.
4974 lt_cv_sys_max_cmd_len=16384
4975 #
4976 if test -x /sbin/sysconfig; then
4977 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4978 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4979 esac
4980 fi
4981 ;;
4982 sco3.2v5*)
4983 lt_cv_sys_max_cmd_len=102400
4984 ;;
4985 sysv5* | sco5v6* | sysv4.2uw2*)
4986 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4987 if test -n "$kargmax"; then
4988 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4989 else
4990 lt_cv_sys_max_cmd_len=32768
4991 fi
4992 ;;
4993 *)
4994 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4995 if test -n "$lt_cv_sys_max_cmd_len"; then
4996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4998 else
4999 # Make teststring a little bigger before we do anything with it.
5000 # a 1K string should be a reasonable start.
5001 for i in 1 2 3 4 5 6 7 8 ; do
5002 teststring=$teststring$teststring
5003 done
5004 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5005 # If test is not a shell built-in, we'll probably end up computing a
5006 # maximum length that is only half of the actual maximum length, but
5007 # we can't tell.
5008 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5009 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5010 test $i != 17 # 1/2 MB should be enough
5011 do
5012 i=`expr $i + 1`
5013 teststring=$teststring$teststring
5014 done
5015 # Only check the string length outside the loop.
5016 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5017 teststring=
5018 # Add a significant safety factor because C++ compilers can tack on
5019 # massive amounts of additional arguments before passing them to the
5020 # linker. It appears as though 1/2 is a usable value.
5021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5022 fi
5023 ;;
5024 esac
5025
5026 fi
5027
5028 if test -n $lt_cv_sys_max_cmd_len ; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5030 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5033 $as_echo "none" >&6; }
5034 fi
5035 max_cmd_len=$lt_cv_sys_max_cmd_len
5036
5037
5038
5039
5040
5041
5042 : ${CP="cp -f"}
5043 : ${MV="mv -f"}
5044 : ${RM="rm -f"}
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5047 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5048 # Try some XSI features
5049 xsi_shell=no
5050 ( _lt_dummy="a/b/c"
5051 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5052 = c,a/b,, \
5053 && eval 'test $(( 1 + 1 )) -eq 2 \
5054 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5055 && xsi_shell=yes
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5057 $as_echo "$xsi_shell" >&6; }
5058
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5061 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5062 lt_shell_append=no
5063 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5064 >/dev/null 2>&1 \
5065 && lt_shell_append=yes
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5067 $as_echo "$lt_shell_append" >&6; }
5068
5069
5070 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5071 lt_unset=unset
5072 else
5073 lt_unset=false
5074 fi
5075
5076
5077
5078
5079
5080 # test EBCDIC or ASCII
5081 case `echo X|tr X '\101'` in
5082 A) # ASCII based system
5083 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5084 lt_SP2NL='tr \040 \012'
5085 lt_NL2SP='tr \015\012 \040\040'
5086 ;;
5087 *) # EBCDIC based system
5088 lt_SP2NL='tr \100 \n'
5089 lt_NL2SP='tr \r\n \100\100'
5090 ;;
5091 esac
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5102 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5103 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 lt_cv_ld_reload_flag='-r'
5107 fi
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5109 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5110 reload_flag=$lt_cv_ld_reload_flag
5111 case $reload_flag in
5112 "" | " "*) ;;
5113 *) reload_flag=" $reload_flag" ;;
5114 esac
5115 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5116 case $host_os in
5117 darwin*)
5118 if test "$GCC" = yes; then
5119 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5120 else
5121 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5122 fi
5123 ;;
5124 esac
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134 if test -n "$ac_tool_prefix"; then
5135 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5136 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -n "$OBJDUMP"; then
5143 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5147 do
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5155 fi
5156 done
5157 done
5158 IFS=$as_save_IFS
5159
5160 fi
5161 fi
5162 OBJDUMP=$ac_cv_prog_OBJDUMP
5163 if test -n "$OBJDUMP"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5165 $as_echo "$OBJDUMP" >&6; }
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 fi
5170
5171
5172 fi
5173 if test -z "$ac_cv_prog_OBJDUMP"; then
5174 ac_ct_OBJDUMP=$OBJDUMP
5175 # Extract the first word of "objdump", so it can be a program name with args.
5176 set dummy objdump; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if test -n "$ac_ct_OBJDUMP"; then
5183 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5195 fi
5196 done
5197 done
5198 IFS=$as_save_IFS
5199
5200 fi
5201 fi
5202 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5203 if test -n "$ac_ct_OBJDUMP"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5205 $as_echo "$ac_ct_OBJDUMP" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5209 fi
5210
5211 if test "x$ac_ct_OBJDUMP" = x; then
5212 OBJDUMP="false"
5213 else
5214 case $cross_compiling:$ac_tool_warned in
5215 yes:)
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218 ac_tool_warned=yes ;;
5219 esac
5220 OBJDUMP=$ac_ct_OBJDUMP
5221 fi
5222 else
5223 OBJDUMP="$ac_cv_prog_OBJDUMP"
5224 fi
5225
5226 test -z "$OBJDUMP" && OBJDUMP=objdump
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5237 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5238 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 lt_cv_file_magic_cmd='$MAGIC_CMD'
5242 lt_cv_file_magic_test_file=
5243 lt_cv_deplibs_check_method='unknown'
5244 # Need to set the preceding variable on all platforms that support
5245 # interlibrary dependencies.
5246 # 'none' -- dependencies not supported.
5247 # `unknown' -- same as none, but documents that we really don't know.
5248 # 'pass_all' -- all dependencies passed with no checks.
5249 # 'test_compile' -- check by making test program.
5250 # 'file_magic [[regex]]' -- check by looking for files in library path
5251 # which responds to the $file_magic_cmd with a given extended regex.
5252 # If you have `file' or equivalent on your system and you're not sure
5253 # whether `pass_all' will *always* work, you probably want this one.
5254
5255 case $host_os in
5256 aix[4-9]*)
5257 lt_cv_deplibs_check_method=pass_all
5258 ;;
5259
5260 beos*)
5261 lt_cv_deplibs_check_method=pass_all
5262 ;;
5263
5264 bsdi[45]*)
5265 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5266 lt_cv_file_magic_cmd='/usr/bin/file -L'
5267 lt_cv_file_magic_test_file=/shlib/libc.so
5268 ;;
5269
5270 cygwin*)
5271 # func_win32_libid is a shell function defined in ltmain.sh
5272 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5273 lt_cv_file_magic_cmd='func_win32_libid'
5274 ;;
5275
5276 mingw* | pw32*)
5277 # Base MSYS/MinGW do not provide the 'file' command needed by
5278 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5279 # unless we find 'file', for example because we are cross-compiling.
5280 if ( file / ) >/dev/null 2>&1; then
5281 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5282 lt_cv_file_magic_cmd='func_win32_libid'
5283 else
5284 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5285 lt_cv_file_magic_cmd='$OBJDUMP -f'
5286 fi
5287 ;;
5288
5289 cegcc)
5290 # use the weaker test based on 'objdump'. See mingw*.
5291 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5292 lt_cv_file_magic_cmd='$OBJDUMP -f'
5293 ;;
5294
5295 darwin* | rhapsody*)
5296 lt_cv_deplibs_check_method=pass_all
5297 ;;
5298
5299 freebsd* | dragonfly*)
5300 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5301 case $host_cpu in
5302 i*86 )
5303 # Not sure whether the presence of OpenBSD here was a mistake.
5304 # Let's accept both of them until this is cleared up.
5305 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5306 lt_cv_file_magic_cmd=/usr/bin/file
5307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5308 ;;
5309 esac
5310 else
5311 lt_cv_deplibs_check_method=pass_all
5312 fi
5313 ;;
5314
5315 gnu*)
5316 lt_cv_deplibs_check_method=pass_all
5317 ;;
5318
5319 hpux10.20* | hpux11*)
5320 lt_cv_file_magic_cmd=/usr/bin/file
5321 case $host_cpu in
5322 ia64*)
5323 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5324 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5325 ;;
5326 hppa*64*)
5327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5328 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5329 ;;
5330 *)
5331 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5332 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5333 ;;
5334 esac
5335 ;;
5336
5337 interix[3-9]*)
5338 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5340 ;;
5341
5342 irix5* | irix6* | nonstopux*)
5343 case $LD in
5344 *-32|*"-32 ") libmagic=32-bit;;
5345 *-n32|*"-n32 ") libmagic=N32;;
5346 *-64|*"-64 ") libmagic=64-bit;;
5347 *) libmagic=never-match;;
5348 esac
5349 lt_cv_deplibs_check_method=pass_all
5350 ;;
5351
5352 # This must be Linux ELF.
5353 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5354 lt_cv_deplibs_check_method=pass_all
5355 ;;
5356
5357 netbsd* | netbsdelf*-gnu)
5358 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5360 else
5361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5362 fi
5363 ;;
5364
5365 newos6*)
5366 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5367 lt_cv_file_magic_cmd=/usr/bin/file
5368 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5369 ;;
5370
5371 *nto* | *qnx*)
5372 lt_cv_deplibs_check_method=pass_all
5373 ;;
5374
5375 openbsd*)
5376 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5378 else
5379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5380 fi
5381 ;;
5382
5383 osf3* | osf4* | osf5*)
5384 lt_cv_deplibs_check_method=pass_all
5385 ;;
5386
5387 rdos*)
5388 lt_cv_deplibs_check_method=pass_all
5389 ;;
5390
5391 solaris*)
5392 lt_cv_deplibs_check_method=pass_all
5393 ;;
5394
5395 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5396 lt_cv_deplibs_check_method=pass_all
5397 ;;
5398
5399 sysv4 | sysv4.3*)
5400 case $host_vendor in
5401 motorola)
5402 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]'
5403 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5404 ;;
5405 ncr)
5406 lt_cv_deplibs_check_method=pass_all
5407 ;;
5408 sequent)
5409 lt_cv_file_magic_cmd='/bin/file'
5410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5411 ;;
5412 sni)
5413 lt_cv_file_magic_cmd='/bin/file'
5414 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5415 lt_cv_file_magic_test_file=/lib/libc.so
5416 ;;
5417 siemens)
5418 lt_cv_deplibs_check_method=pass_all
5419 ;;
5420 pc)
5421 lt_cv_deplibs_check_method=pass_all
5422 ;;
5423 esac
5424 ;;
5425
5426 tpf*)
5427 lt_cv_deplibs_check_method=pass_all
5428 ;;
5429 esac
5430
5431 fi
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5433 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5434 file_magic_cmd=$lt_cv_file_magic_cmd
5435 deplibs_check_method=$lt_cv_deplibs_check_method
5436 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449 if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5451 set dummy ${ac_tool_prefix}ar; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if test "${ac_cv_prog_AR+set}" = set; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -n "$AR"; then
5458 ac_cv_prog_AR="$AR" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_prog_AR="${ac_tool_prefix}ar"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5470 fi
5471 done
5472 done
5473 IFS=$as_save_IFS
5474
5475 fi
5476 fi
5477 AR=$ac_cv_prog_AR
5478 if test -n "$AR"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5480 $as_echo "$AR" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485
5486
5487 fi
5488 if test -z "$ac_cv_prog_AR"; then
5489 ac_ct_AR=$AR
5490 # Extract the first word of "ar", so it can be a program name with args.
5491 set dummy ar; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 if test -n "$ac_ct_AR"; then
5498 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_ac_ct_AR="ar"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5510 fi
5511 done
5512 done
5513 IFS=$as_save_IFS
5514
5515 fi
5516 fi
5517 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5518 if test -n "$ac_ct_AR"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5520 $as_echo "$ac_ct_AR" >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5524 fi
5525
5526 if test "x$ac_ct_AR" = x; then
5527 AR="false"
5528 else
5529 case $cross_compiling:$ac_tool_warned in
5530 yes:)
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533 ac_tool_warned=yes ;;
5534 esac
5535 AR=$ac_ct_AR
5536 fi
5537 else
5538 AR="$ac_cv_prog_AR"
5539 fi
5540
5541 test -z "$AR" && AR=ar
5542 test -z "$AR_FLAGS" && AR_FLAGS=cru
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554 if test -n "$ac_tool_prefix"; then
5555 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5556 set dummy ${ac_tool_prefix}strip; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if test "${ac_cv_prog_STRIP+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 if test -n "$STRIP"; then
5563 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2
5575 fi
5576 done
5577 done
5578 IFS=$as_save_IFS
5579
5580 fi
5581 fi
5582 STRIP=$ac_cv_prog_STRIP
5583 if test -n "$STRIP"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5585 $as_echo "$STRIP" >&6; }
5586 else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5589 fi
5590
5591
5592 fi
5593 if test -z "$ac_cv_prog_STRIP"; then
5594 ac_ct_STRIP=$STRIP
5595 # Extract the first word of "strip", so it can be a program name with args.
5596 set dummy strip; ac_word=$2
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598 $as_echo_n "checking for $ac_word... " >&6; }
5599 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 if test -n "$ac_ct_STRIP"; then
5603 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5604 else
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH
5607 do
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5612 ac_cv_prog_ac_ct_STRIP="strip"
5613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 break 2
5615 fi
5616 done
5617 done
5618 IFS=$as_save_IFS
5619
5620 fi
5621 fi
5622 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5623 if test -n "$ac_ct_STRIP"; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5625 $as_echo "$ac_ct_STRIP" >&6; }
5626 else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628 $as_echo "no" >&6; }
5629 fi
5630
5631 if test "x$ac_ct_STRIP" = x; then
5632 STRIP=":"
5633 else
5634 case $cross_compiling:$ac_tool_warned in
5635 yes:)
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5638 ac_tool_warned=yes ;;
5639 esac
5640 STRIP=$ac_ct_STRIP
5641 fi
5642 else
5643 STRIP="$ac_cv_prog_STRIP"
5644 fi
5645
5646 test -z "$STRIP" && STRIP=:
5647
5648
5649
5650
5651
5652
5653 if test -n "$ac_tool_prefix"; then
5654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5655 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 if test -n "$RANLIB"; then
5662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5663 else
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5666 do
5667 IFS=$as_save_IFS
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 break 2
5674 fi
5675 done
5676 done
5677 IFS=$as_save_IFS
5678
5679 fi
5680 fi
5681 RANLIB=$ac_cv_prog_RANLIB
5682 if test -n "$RANLIB"; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5684 $as_echo "$RANLIB" >&6; }
5685 else
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5688 fi
5689
5690
5691 fi
5692 if test -z "$ac_cv_prog_RANLIB"; then
5693 ac_ct_RANLIB=$RANLIB
5694 # Extract the first word of "ranlib", so it can be a program name with args.
5695 set dummy ranlib; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -n "$ac_ct_RANLIB"; then
5702 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_prog_ac_ct_RANLIB="ranlib"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5714 fi
5715 done
5716 done
5717 IFS=$as_save_IFS
5718
5719 fi
5720 fi
5721 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5722 if test -n "$ac_ct_RANLIB"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5724 $as_echo "$ac_ct_RANLIB" >&6; }
5725 else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5728 fi
5729
5730 if test "x$ac_ct_RANLIB" = x; then
5731 RANLIB=":"
5732 else
5733 case $cross_compiling:$ac_tool_warned in
5734 yes:)
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5737 ac_tool_warned=yes ;;
5738 esac
5739 RANLIB=$ac_ct_RANLIB
5740 fi
5741 else
5742 RANLIB="$ac_cv_prog_RANLIB"
5743 fi
5744
5745 test -z "$RANLIB" && RANLIB=:
5746
5747
5748
5749
5750
5751
5752 # Determine commands to create old-style static archives.
5753 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5754 old_postinstall_cmds='chmod 644 $oldlib'
5755 old_postuninstall_cmds=
5756
5757 if test -n "$RANLIB"; then
5758 case $host_os in
5759 openbsd*)
5760 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5761 ;;
5762 *)
5763 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5764 ;;
5765 esac
5766 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5767 fi
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802 # If no C compiler was specified, use CC.
5803 LTCC=${LTCC-"$CC"}
5804
5805 # If no C compiler flags were specified, use CFLAGS.
5806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5807
5808 # Allow CC to be a program name with arguments.
5809 compiler=$CC
5810
5811
5812 # Check for command to grab the raw symbol name followed by C symbol from nm.
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5814 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5815 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818
5819 # These are sane defaults that work on at least a few old systems.
5820 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5821
5822 # Character class describing NM global symbol codes.
5823 symcode='[BCDEGRST]'
5824
5825 # Regexp to match symbols that can be accessed directly from C.
5826 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5827
5828 # Define system-specific variables.
5829 case $host_os in
5830 aix*)
5831 symcode='[BCDT]'
5832 ;;
5833 cygwin* | mingw* | pw32* | cegcc*)
5834 symcode='[ABCDGISTW]'
5835 ;;
5836 hpux*)
5837 if test "$host_cpu" = ia64; then
5838 symcode='[ABCDEGRST]'
5839 fi
5840 ;;
5841 irix* | nonstopux*)
5842 symcode='[BCDEGRST]'
5843 ;;
5844 osf*)
5845 symcode='[BCDEGQRST]'
5846 ;;
5847 solaris*)
5848 symcode='[BDRT]'
5849 ;;
5850 sco3.2v5*)
5851 symcode='[DT]'
5852 ;;
5853 sysv4.2uw2*)
5854 symcode='[DT]'
5855 ;;
5856 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5857 symcode='[ABDT]'
5858 ;;
5859 sysv4)
5860 symcode='[DFNSTU]'
5861 ;;
5862 esac
5863
5864 # If we're using GNU nm, then use its standard symbol codes.
5865 case `$NM -V 2>&1` in
5866 *GNU* | *'with BFD'*)
5867 symcode='[ABCDGIRSTW]' ;;
5868 esac
5869
5870 # Transform an extracted symbol line into a proper C declaration.
5871 # Some systems (esp. on ia64) link data and code symbols differently,
5872 # so use this general approach.
5873 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5874
5875 # Transform an extracted symbol line into symbol name and symbol address
5876 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5877 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5878
5879 # Handle CRLF in mingw tool chain
5880 opt_cr=
5881 case $build_os in
5882 mingw*)
5883 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5884 ;;
5885 esac
5886
5887 # Try without a prefix underscore, then with it.
5888 for ac_symprfx in "" "_"; do
5889
5890 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5891 symxfrm="\\1 $ac_symprfx\\2 \\2"
5892
5893 # Write the raw and C identifiers.
5894 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5895 # Fake it for dumpbin and say T for any non-static function
5896 # and D for any global variable.
5897 # Also find C++ and __fastcall symbols from MSVC++,
5898 # which start with @ or ?.
5899 lt_cv_sys_global_symbol_pipe="$AWK '"\
5900 " {last_section=section; section=\$ 3};"\
5901 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5902 " \$ 0!~/External *\|/{next};"\
5903 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5904 " {if(hide[section]) next};"\
5905 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5906 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5907 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5908 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5909 " ' prfx=^$ac_symprfx"
5910 else
5911 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5912 fi
5913
5914 # Check to see that the pipe works correctly.
5915 pipe_works=no
5916
5917 rm -f conftest*
5918 cat > conftest.$ac_ext <<_LT_EOF
5919 #ifdef __cplusplus
5920 extern "C" {
5921 #endif
5922 char nm_test_var;
5923 void nm_test_func(void);
5924 void nm_test_func(void){}
5925 #ifdef __cplusplus
5926 }
5927 #endif
5928 int main(){nm_test_var='a';nm_test_func();return(0);}
5929 _LT_EOF
5930
5931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5932 (eval $ac_compile) 2>&5
5933 ac_status=$?
5934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5935 test $ac_status = 0; }; then
5936 # Now try to grab the symbols.
5937 nlist=conftest.nm
5938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5939 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5940 ac_status=$?
5941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942 test $ac_status = 0; } && test -s "$nlist"; then
5943 # Try sorting and uniquifying the output.
5944 if sort "$nlist" | uniq > "$nlist"T; then
5945 mv -f "$nlist"T "$nlist"
5946 else
5947 rm -f "$nlist"T
5948 fi
5949
5950 # Make sure that we snagged all the symbols we need.
5951 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5952 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5953 cat <<_LT_EOF > conftest.$ac_ext
5954 #ifdef __cplusplus
5955 extern "C" {
5956 #endif
5957
5958 _LT_EOF
5959 # Now generate the symbol file.
5960 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5961
5962 cat <<_LT_EOF >> conftest.$ac_ext
5963
5964 /* The mapping between symbol names and symbols. */
5965 const struct {
5966 const char *name;
5967 void *address;
5968 }
5969 lt__PROGRAM__LTX_preloaded_symbols[] =
5970 {
5971 { "@PROGRAM@", (void *) 0 },
5972 _LT_EOF
5973 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5974 cat <<\_LT_EOF >> conftest.$ac_ext
5975 {0, (void *) 0}
5976 };
5977
5978 /* This works around a problem in FreeBSD linker */
5979 #ifdef FREEBSD_WORKAROUND
5980 static const void *lt_preloaded_setup() {
5981 return lt__PROGRAM__LTX_preloaded_symbols;
5982 }
5983 #endif
5984
5985 #ifdef __cplusplus
5986 }
5987 #endif
5988 _LT_EOF
5989 # Now try linking the two files.
5990 mv conftest.$ac_objext conftstm.$ac_objext
5991 lt_save_LIBS="$LIBS"
5992 lt_save_CFLAGS="$CFLAGS"
5993 LIBS="conftstm.$ac_objext"
5994 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5996 (eval $ac_link) 2>&5
5997 ac_status=$?
5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6000 pipe_works=yes
6001 fi
6002 LIBS="$lt_save_LIBS"
6003 CFLAGS="$lt_save_CFLAGS"
6004 else
6005 echo "cannot find nm_test_func in $nlist" >&5
6006 fi
6007 else
6008 echo "cannot find nm_test_var in $nlist" >&5
6009 fi
6010 else
6011 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6012 fi
6013 else
6014 echo "$progname: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6016 fi
6017 rm -rf conftest* conftst*
6018
6019 # Do not use the global_symbol_pipe unless it works.
6020 if test "$pipe_works" = yes; then
6021 break
6022 else
6023 lt_cv_sys_global_symbol_pipe=
6024 fi
6025 done
6026
6027 fi
6028
6029 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6030 lt_cv_sys_global_symbol_to_cdecl=
6031 fi
6032 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6034 $as_echo "failed" >&6; }
6035 else
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6037 $as_echo "ok" >&6; }
6038 fi
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062 # Check whether --enable-libtool-lock was given.
6063 if test "${enable_libtool_lock+set}" = set; then :
6064 enableval=$enable_libtool_lock;
6065 fi
6066
6067 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6068
6069 # Some flags need to be propagated to the compiler or linker for good
6070 # libtool support.
6071 case $host in
6072 ia64-*-hpux*)
6073 # Find out which ABI we are using.
6074 echo 'int i;' > conftest.$ac_ext
6075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6076 (eval $ac_compile) 2>&5
6077 ac_status=$?
6078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6079 test $ac_status = 0; }; then
6080 case `/usr/bin/file conftest.$ac_objext` in
6081 *ELF-32*)
6082 HPUX_IA64_MODE="32"
6083 ;;
6084 *ELF-64*)
6085 HPUX_IA64_MODE="64"
6086 ;;
6087 esac
6088 fi
6089 rm -rf conftest*
6090 ;;
6091 *-*-irix6*)
6092 # Find out which ABI we are using.
6093 echo '#line 6093 "configure"' > conftest.$ac_ext
6094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6095 (eval $ac_compile) 2>&5
6096 ac_status=$?
6097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6098 test $ac_status = 0; }; then
6099 if test "$lt_cv_prog_gnu_ld" = yes; then
6100 case `/usr/bin/file conftest.$ac_objext` in
6101 *32-bit*)
6102 LD="${LD-ld} -melf32bsmip"
6103 ;;
6104 *N32*)
6105 LD="${LD-ld} -melf32bmipn32"
6106 ;;
6107 *64-bit*)
6108 LD="${LD-ld} -melf64bmip"
6109 ;;
6110 esac
6111 else
6112 case `/usr/bin/file conftest.$ac_objext` in
6113 *32-bit*)
6114 LD="${LD-ld} -32"
6115 ;;
6116 *N32*)
6117 LD="${LD-ld} -n32"
6118 ;;
6119 *64-bit*)
6120 LD="${LD-ld} -64"
6121 ;;
6122 esac
6123 fi
6124 fi
6125 rm -rf conftest*
6126 ;;
6127
6128 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6129 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6130 # Find out which ABI we are using.
6131 echo 'int i;' > conftest.$ac_ext
6132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6133 (eval $ac_compile) 2>&5
6134 ac_status=$?
6135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6136 test $ac_status = 0; }; then
6137 case `/usr/bin/file conftest.o` in
6138 *32-bit*)
6139 case $host in
6140 x86_64-*kfreebsd*-gnu)
6141 LD="${LD-ld} -m elf_i386_fbsd"
6142 ;;
6143 x86_64-*linux*)
6144 LD="${LD-ld} -m elf_i386"
6145 ;;
6146 ppc64-*linux*|powerpc64-*linux*)
6147 LD="${LD-ld} -m elf32ppclinux"
6148 ;;
6149 s390x-*linux*)
6150 LD="${LD-ld} -m elf_s390"
6151 ;;
6152 sparc64-*linux*)
6153 LD="${LD-ld} -m elf32_sparc"
6154 ;;
6155 esac
6156 ;;
6157 *64-bit*)
6158 case $host in
6159 x86_64-*kfreebsd*-gnu)
6160 LD="${LD-ld} -m elf_x86_64_fbsd"
6161 ;;
6162 x86_64-*linux*)
6163 LD="${LD-ld} -m elf_x86_64"
6164 ;;
6165 ppc*-*linux*|powerpc*-*linux*)
6166 LD="${LD-ld} -m elf64ppc"
6167 ;;
6168 s390*-*linux*|s390*-*tpf*)
6169 LD="${LD-ld} -m elf64_s390"
6170 ;;
6171 sparc*-*linux*)
6172 LD="${LD-ld} -m elf64_sparc"
6173 ;;
6174 esac
6175 ;;
6176 esac
6177 fi
6178 rm -rf conftest*
6179 ;;
6180
6181 *-*-sco3.2v5*)
6182 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6183 SAVE_CFLAGS="$CFLAGS"
6184 CFLAGS="$CFLAGS -belf"
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6186 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6187 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 ac_ext=c
6191 ac_cpp='$CPP $CPPFLAGS'
6192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6195
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198
6199 int
6200 main ()
6201 {
6202
6203 ;
6204 return 0;
6205 }
6206 _ACEOF
6207 if ac_fn_c_try_link "$LINENO"; then :
6208 lt_cv_cc_needs_belf=yes
6209 else
6210 lt_cv_cc_needs_belf=no
6211 fi
6212 rm -f core conftest.err conftest.$ac_objext \
6213 conftest$ac_exeext conftest.$ac_ext
6214 ac_ext=c
6215 ac_cpp='$CPP $CPPFLAGS'
6216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6219
6220 fi
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6222 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6223 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6224 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6225 CFLAGS="$SAVE_CFLAGS"
6226 fi
6227 ;;
6228 sparc*-*solaris*)
6229 # Find out which ABI we are using.
6230 echo 'int i;' > conftest.$ac_ext
6231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6232 (eval $ac_compile) 2>&5
6233 ac_status=$?
6234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6235 test $ac_status = 0; }; then
6236 case `/usr/bin/file conftest.o` in
6237 *64-bit*)
6238 case $lt_cv_prog_gnu_ld in
6239 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6240 *)
6241 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6242 LD="${LD-ld} -64"
6243 fi
6244 ;;
6245 esac
6246 ;;
6247 esac
6248 fi
6249 rm -rf conftest*
6250 ;;
6251 esac
6252
6253 need_locks="$enable_libtool_lock"
6254
6255
6256 case $host_os in
6257 rhapsody* | darwin*)
6258 if test -n "$ac_tool_prefix"; then
6259 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6260 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262 $as_echo_n "checking for $ac_word... " >&6; }
6263 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6264 $as_echo_n "(cached) " >&6
6265 else
6266 if test -n "$DSYMUTIL"; then
6267 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 break 2
6279 fi
6280 done
6281 done
6282 IFS=$as_save_IFS
6283
6284 fi
6285 fi
6286 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6287 if test -n "$DSYMUTIL"; then
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6289 $as_echo "$DSYMUTIL" >&6; }
6290 else
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292 $as_echo "no" >&6; }
6293 fi
6294
6295
6296 fi
6297 if test -z "$ac_cv_prog_DSYMUTIL"; then
6298 ac_ct_DSYMUTIL=$DSYMUTIL
6299 # Extract the first word of "dsymutil", so it can be a program name with args.
6300 set dummy dsymutil; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306 if test -n "$ac_ct_DSYMUTIL"; then
6307 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320 done
6321 done
6322 IFS=$as_save_IFS
6323
6324 fi
6325 fi
6326 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6327 if test -n "$ac_ct_DSYMUTIL"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6329 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6330 else
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6333 fi
6334
6335 if test "x$ac_ct_DSYMUTIL" = x; then
6336 DSYMUTIL=":"
6337 else
6338 case $cross_compiling:$ac_tool_warned in
6339 yes:)
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6342 ac_tool_warned=yes ;;
6343 esac
6344 DSYMUTIL=$ac_ct_DSYMUTIL
6345 fi
6346 else
6347 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6348 fi
6349
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 if test -n "$NMEDIT"; then
6359 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6363 do
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6371 fi
6372 done
6373 done
6374 IFS=$as_save_IFS
6375
6376 fi
6377 fi
6378 NMEDIT=$ac_cv_prog_NMEDIT
6379 if test -n "$NMEDIT"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6381 $as_echo "$NMEDIT" >&6; }
6382 else
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 $as_echo "no" >&6; }
6385 fi
6386
6387
6388 fi
6389 if test -z "$ac_cv_prog_NMEDIT"; then
6390 ac_ct_NMEDIT=$NMEDIT
6391 # Extract the first word of "nmedit", so it can be a program name with args.
6392 set dummy nmedit; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 if test -n "$ac_ct_NMEDIT"; then
6399 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6411 fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416 fi
6417 fi
6418 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6419 if test -n "$ac_ct_NMEDIT"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6421 $as_echo "$ac_ct_NMEDIT" >&6; }
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6425 fi
6426
6427 if test "x$ac_ct_NMEDIT" = x; then
6428 NMEDIT=":"
6429 else
6430 case $cross_compiling:$ac_tool_warned in
6431 yes:)
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434 ac_tool_warned=yes ;;
6435 esac
6436 NMEDIT=$ac_ct_NMEDIT
6437 fi
6438 else
6439 NMEDIT="$ac_cv_prog_NMEDIT"
6440 fi
6441
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if test "${ac_cv_prog_LIPO+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 if test -n "$LIPO"; then
6451 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6463 fi
6464 done
6465 done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 LIPO=$ac_cv_prog_LIPO
6471 if test -n "$LIPO"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6473 $as_echo "$LIPO" >&6; }
6474 else
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479
6480 fi
6481 if test -z "$ac_cv_prog_LIPO"; then
6482 ac_ct_LIPO=$LIPO
6483 # Extract the first word of "lipo", so it can be a program name with args.
6484 set dummy lipo; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 if test -n "$ac_ct_LIPO"; then
6491 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_prog_ac_ct_LIPO="lipo"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504 done
6505 done
6506 IFS=$as_save_IFS
6507
6508 fi
6509 fi
6510 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6511 if test -n "$ac_ct_LIPO"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6513 $as_echo "$ac_ct_LIPO" >&6; }
6514 else
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518
6519 if test "x$ac_ct_LIPO" = x; then
6520 LIPO=":"
6521 else
6522 case $cross_compiling:$ac_tool_warned in
6523 yes:)
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526 ac_tool_warned=yes ;;
6527 esac
6528 LIPO=$ac_ct_LIPO
6529 fi
6530 else
6531 LIPO="$ac_cv_prog_LIPO"
6532 fi
6533
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}otool; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 if test -n "$OTOOL"; then
6543 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6555 fi
6556 done
6557 done
6558 IFS=$as_save_IFS
6559
6560 fi
6561 fi
6562 OTOOL=$ac_cv_prog_OTOOL
6563 if test -n "$OTOOL"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6565 $as_echo "$OTOOL" >&6; }
6566 else
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570
6571
6572 fi
6573 if test -z "$ac_cv_prog_OTOOL"; then
6574 ac_ct_OTOOL=$OTOOL
6575 # Extract the first word of "otool", so it can be a program name with args.
6576 set dummy otool; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 if test -n "$ac_ct_OTOOL"; then
6583 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_ac_ct_OTOOL="otool"
6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600 fi
6601 fi
6602 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6603 if test -n "$ac_ct_OTOOL"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6605 $as_echo "$ac_ct_OTOOL" >&6; }
6606 else
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6609 fi
6610
6611 if test "x$ac_ct_OTOOL" = x; then
6612 OTOOL=":"
6613 else
6614 case $cross_compiling:$ac_tool_warned in
6615 yes:)
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618 ac_tool_warned=yes ;;
6619 esac
6620 OTOOL=$ac_ct_OTOOL
6621 fi
6622 else
6623 OTOOL="$ac_cv_prog_OTOOL"
6624 fi
6625
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 if test -n "$OTOOL64"; then
6635 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 OTOOL64=$ac_cv_prog_OTOOL64
6655 if test -n "$OTOOL64"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6657 $as_echo "$OTOOL64" >&6; }
6658 else
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661 fi
6662
6663
6664 fi
6665 if test -z "$ac_cv_prog_OTOOL64"; then
6666 ac_ct_OTOOL64=$OTOOL64
6667 # Extract the first word of "otool64", so it can be a program name with args.
6668 set dummy otool64; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 if test -n "$ac_ct_OTOOL64"; then
6675 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_ac_ct_OTOOL64="otool64"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692 fi
6693 fi
6694 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6695 if test -n "$ac_ct_OTOOL64"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6697 $as_echo "$ac_ct_OTOOL64" >&6; }
6698 else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6701 fi
6702
6703 if test "x$ac_ct_OTOOL64" = x; then
6704 OTOOL64=":"
6705 else
6706 case $cross_compiling:$ac_tool_warned in
6707 yes:)
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712 OTOOL64=$ac_ct_OTOOL64
6713 fi
6714 else
6715 OTOOL64="$ac_cv_prog_OTOOL64"
6716 fi
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6745 $as_echo_n "checking for -single_module linker flag... " >&6; }
6746 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 lt_cv_apple_cc_single_mod=no
6750 if test -z "${LT_MULTI_MODULE}"; then
6751 # By default we will add the -single_module flag. You can override
6752 # by either setting the environment variable LT_MULTI_MODULE
6753 # non-empty at configure time, or by adding -multi_module to the
6754 # link flags.
6755 rm -rf libconftest.dylib*
6756 echo "int foo(void){return 1;}" > conftest.c
6757 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6758 -dynamiclib -Wl,-single_module conftest.c" >&5
6759 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6760 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6761 _lt_result=$?
6762 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6763 lt_cv_apple_cc_single_mod=yes
6764 else
6765 cat conftest.err >&5
6766 fi
6767 rm -rf libconftest.dylib*
6768 rm -f conftest.*
6769 fi
6770 fi
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6772 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6774 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6775 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 lt_cv_ld_exported_symbols_list=no
6779 save_LDFLAGS=$LDFLAGS
6780 echo "_main" > conftest.sym
6781 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784
6785 int
6786 main ()
6787 {
6788
6789 ;
6790 return 0;
6791 }
6792 _ACEOF
6793 if ac_fn_c_try_link "$LINENO"; then :
6794 lt_cv_ld_exported_symbols_list=yes
6795 else
6796 lt_cv_ld_exported_symbols_list=no
6797 fi
6798 rm -f core conftest.err conftest.$ac_objext \
6799 conftest$ac_exeext conftest.$ac_ext
6800 LDFLAGS="$save_LDFLAGS"
6801
6802 fi
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6804 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6805 case $host_os in
6806 rhapsody* | darwin1.[012])
6807 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6808 darwin1.*)
6809 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6810 darwin*) # darwin 5.x on
6811 # if running on 10.5 or later, the deployment target defaults
6812 # to the OS version, if on x86, and 10.4, the deployment
6813 # target defaults to 10.4. Don't you love it?
6814 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6815 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6816 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6817 10.[012]*)
6818 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6819 10.*)
6820 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6821 esac
6822 ;;
6823 esac
6824 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6825 _lt_dar_single_mod='$single_module'
6826 fi
6827 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6828 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6829 else
6830 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6831 fi
6832 if test "$DSYMUTIL" != ":"; then
6833 _lt_dsymutil='~$DSYMUTIL $lib || :'
6834 else
6835 _lt_dsymutil=
6836 fi
6837 ;;
6838 esac
6839
6840 ac_ext=c
6841 ac_cpp='$CPP $CPPFLAGS'
6842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6846 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6847 # On Suns, sometimes $CPP names a directory.
6848 if test -n "$CPP" && test -d "$CPP"; then
6849 CPP=
6850 fi
6851 if test -z "$CPP"; then
6852 if test "${ac_cv_prog_CPP+set}" = set; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 # Double quotes because CPP needs to be expanded
6856 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6857 do
6858 ac_preproc_ok=false
6859 for ac_c_preproc_warn_flag in '' yes
6860 do
6861 # Use a header file that comes with gcc, so configuring glibc
6862 # with a fresh cross-compiler works.
6863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6864 # <limits.h> exists even on freestanding compilers.
6865 # On the NeXT, cc -E runs the code through the compiler's parser,
6866 # not just through cpp. "Syntax error" is here to catch this case.
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869 #ifdef __STDC__
6870 # include <limits.h>
6871 #else
6872 # include <assert.h>
6873 #endif
6874 Syntax error
6875 _ACEOF
6876 if ac_fn_c_try_cpp "$LINENO"; then :
6877
6878 else
6879 # Broken: fails on valid input.
6880 continue
6881 fi
6882 rm -f conftest.err conftest.i conftest.$ac_ext
6883
6884 # OK, works on sane cases. Now check whether nonexistent headers
6885 # can be detected and how.
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 #include <ac_nonexistent.h>
6889 _ACEOF
6890 if ac_fn_c_try_cpp "$LINENO"; then :
6891 # Broken: success on invalid input.
6892 continue
6893 else
6894 # Passes both tests.
6895 ac_preproc_ok=:
6896 break
6897 fi
6898 rm -f conftest.err conftest.i conftest.$ac_ext
6899
6900 done
6901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6902 rm -f conftest.i conftest.err conftest.$ac_ext
6903 if $ac_preproc_ok; then :
6904 break
6905 fi
6906
6907 done
6908 ac_cv_prog_CPP=$CPP
6909
6910 fi
6911 CPP=$ac_cv_prog_CPP
6912 else
6913 ac_cv_prog_CPP=$CPP
6914 fi
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6916 $as_echo "$CPP" >&6; }
6917 ac_preproc_ok=false
6918 for ac_c_preproc_warn_flag in '' yes
6919 do
6920 # Use a header file that comes with gcc, so configuring glibc
6921 # with a fresh cross-compiler works.
6922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6923 # <limits.h> exists even on freestanding compilers.
6924 # On the NeXT, cc -E runs the code through the compiler's parser,
6925 # not just through cpp. "Syntax error" is here to catch this case.
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928 #ifdef __STDC__
6929 # include <limits.h>
6930 #else
6931 # include <assert.h>
6932 #endif
6933 Syntax error
6934 _ACEOF
6935 if ac_fn_c_try_cpp "$LINENO"; then :
6936
6937 else
6938 # Broken: fails on valid input.
6939 continue
6940 fi
6941 rm -f conftest.err conftest.i conftest.$ac_ext
6942
6943 # OK, works on sane cases. Now check whether nonexistent headers
6944 # can be detected and how.
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947 #include <ac_nonexistent.h>
6948 _ACEOF
6949 if ac_fn_c_try_cpp "$LINENO"; then :
6950 # Broken: success on invalid input.
6951 continue
6952 else
6953 # Passes both tests.
6954 ac_preproc_ok=:
6955 break
6956 fi
6957 rm -f conftest.err conftest.i conftest.$ac_ext
6958
6959 done
6960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6961 rm -f conftest.i conftest.err conftest.$ac_ext
6962 if $ac_preproc_ok; then :
6963
6964 else
6965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6967 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6968 See \`config.log' for more details" "$LINENO" 5 ; }
6969 fi
6970
6971 ac_ext=c
6972 ac_cpp='$CPP $CPPFLAGS'
6973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6976
6977
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6979 $as_echo_n "checking for ANSI C header files... " >&6; }
6980 if test "${ac_cv_header_stdc+set}" = set; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6985 #include <stdlib.h>
6986 #include <stdarg.h>
6987 #include <string.h>
6988 #include <float.h>
6989
6990 int
6991 main ()
6992 {
6993
6994 ;
6995 return 0;
6996 }
6997 _ACEOF
6998 if ac_fn_c_try_compile "$LINENO"; then :
6999 ac_cv_header_stdc=yes
7000 else
7001 ac_cv_header_stdc=no
7002 fi
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004
7005 if test $ac_cv_header_stdc = yes; then
7006 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7009 #include <string.h>
7010
7011 _ACEOF
7012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7013 $EGREP "memchr" >/dev/null 2>&1; then :
7014
7015 else
7016 ac_cv_header_stdc=no
7017 fi
7018 rm -f conftest*
7019
7020 fi
7021
7022 if test $ac_cv_header_stdc = yes; then
7023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026 #include <stdlib.h>
7027
7028 _ACEOF
7029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7030 $EGREP "free" >/dev/null 2>&1; then :
7031
7032 else
7033 ac_cv_header_stdc=no
7034 fi
7035 rm -f conftest*
7036
7037 fi
7038
7039 if test $ac_cv_header_stdc = yes; then
7040 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7041 if test "$cross_compiling" = yes; then :
7042 :
7043 else
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7046 #include <ctype.h>
7047 #include <stdlib.h>
7048 #if ((' ' & 0x0FF) == 0x020)
7049 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7050 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7051 #else
7052 # define ISLOWER(c) \
7053 (('a' <= (c) && (c) <= 'i') \
7054 || ('j' <= (c) && (c) <= 'r') \
7055 || ('s' <= (c) && (c) <= 'z'))
7056 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7057 #endif
7058
7059 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7060 int
7061 main ()
7062 {
7063 int i;
7064 for (i = 0; i < 256; i++)
7065 if (XOR (islower (i), ISLOWER (i))
7066 || toupper (i) != TOUPPER (i))
7067 return 2;
7068 return 0;
7069 }
7070 _ACEOF
7071 if ac_fn_c_try_run "$LINENO"; then :
7072
7073 else
7074 ac_cv_header_stdc=no
7075 fi
7076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7077 conftest.$ac_objext conftest.beam conftest.$ac_ext
7078 fi
7079
7080 fi
7081 fi
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7083 $as_echo "$ac_cv_header_stdc" >&6; }
7084 if test $ac_cv_header_stdc = yes; then
7085
7086 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7087
7088 fi
7089
7090 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7091 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7092 inttypes.h stdint.h unistd.h
7093 do :
7094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7095 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7096 "
7097 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7098 cat >>confdefs.h <<_ACEOF
7099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7100 _ACEOF
7101
7102 fi
7103
7104 done
7105
7106
7107 for ac_header in dlfcn.h
7108 do :
7109 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7110 "
7111 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7112 cat >>confdefs.h <<_ACEOF
7113 #define HAVE_DLFCN_H 1
7114 _ACEOF
7115
7116 fi
7117
7118 done
7119
7120
7121
7122 # Set options
7123
7124
7125
7126 enable_dlopen=no
7127
7128
7129 enable_win32_dll=no
7130
7131
7132 # Check whether --enable-shared was given.
7133 if test "${enable_shared+set}" = set; then :
7134 enableval=$enable_shared; p=${PACKAGE-default}
7135 case $enableval in
7136 yes) enable_shared=yes ;;
7137 no) enable_shared=no ;;
7138 *)
7139 enable_shared=no
7140 # Look at the argument we got. We use all the common list separators.
7141 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7142 for pkg in $enableval; do
7143 IFS="$lt_save_ifs"
7144 if test "X$pkg" = "X$p"; then
7145 enable_shared=yes
7146 fi
7147 done
7148 IFS="$lt_save_ifs"
7149 ;;
7150 esac
7151 else
7152 enable_shared=yes
7153 fi
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163 # Check whether --enable-static was given.
7164 if test "${enable_static+set}" = set; then :
7165 enableval=$enable_static; p=${PACKAGE-default}
7166 case $enableval in
7167 yes) enable_static=yes ;;
7168 no) enable_static=no ;;
7169 *)
7170 enable_static=no
7171 # Look at the argument we got. We use all the common list separators.
7172 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7173 for pkg in $enableval; do
7174 IFS="$lt_save_ifs"
7175 if test "X$pkg" = "X$p"; then
7176 enable_static=yes
7177 fi
7178 done
7179 IFS="$lt_save_ifs"
7180 ;;
7181 esac
7182 else
7183 enable_static=yes
7184 fi
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195 # Check whether --with-pic was given.
7196 if test "${with_pic+set}" = set; then :
7197 withval=$with_pic; pic_mode="$withval"
7198 else
7199 pic_mode=default
7200 fi
7201
7202
7203 test -z "$pic_mode" && pic_mode=default
7204
7205
7206
7207
7208
7209
7210
7211 # Check whether --enable-fast-install was given.
7212 if test "${enable_fast_install+set}" = set; then :
7213 enableval=$enable_fast_install; p=${PACKAGE-default}
7214 case $enableval in
7215 yes) enable_fast_install=yes ;;
7216 no) enable_fast_install=no ;;
7217 *)
7218 enable_fast_install=no
7219 # Look at the argument we got. We use all the common list separators.
7220 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7221 for pkg in $enableval; do
7222 IFS="$lt_save_ifs"
7223 if test "X$pkg" = "X$p"; then
7224 enable_fast_install=yes
7225 fi
7226 done
7227 IFS="$lt_save_ifs"
7228 ;;
7229 esac
7230 else
7231 enable_fast_install=yes
7232 fi
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244 # This can be used to rebuild libtool when needed
7245 LIBTOOL_DEPS="$ltmain"
7246
7247 # Always use our own libtool.
7248 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274 test -z "$LN_S" && LN_S="ln -s"
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289 if test -n "${ZSH_VERSION+set}" ; then
7290 setopt NO_GLOB_SUBST
7291 fi
7292
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7294 $as_echo_n "checking for objdir... " >&6; }
7295 if test "${lt_cv_objdir+set}" = set; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 rm -f .libs 2>/dev/null
7299 mkdir .libs 2>/dev/null
7300 if test -d .libs; then
7301 lt_cv_objdir=.libs
7302 else
7303 # MS-DOS does not allow filenames that begin with a dot.
7304 lt_cv_objdir=_libs
7305 fi
7306 rmdir .libs 2>/dev/null
7307 fi
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7309 $as_echo "$lt_cv_objdir" >&6; }
7310 objdir=$lt_cv_objdir
7311
7312
7313
7314
7315
7316 cat >>confdefs.h <<_ACEOF
7317 #define LT_OBJDIR "$lt_cv_objdir/"
7318 _ACEOF
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336 case $host_os in
7337 aix3*)
7338 # AIX sometimes has problems with the GCC collect2 program. For some
7339 # reason, if we set the COLLECT_NAMES environment variable, the problems
7340 # vanish in a puff of smoke.
7341 if test "X${COLLECT_NAMES+set}" != Xset; then
7342 COLLECT_NAMES=
7343 export COLLECT_NAMES
7344 fi
7345 ;;
7346 esac
7347
7348 # Sed substitution that helps us do robust quoting. It backslashifies
7349 # metacharacters that are still active within double-quoted strings.
7350 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7351
7352 # Same as above, but do not quote variable references.
7353 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7354
7355 # Sed substitution to delay expansion of an escaped shell variable in a
7356 # double_quote_subst'ed string.
7357 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7358
7359 # Sed substitution to delay expansion of an escaped single quote.
7360 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7361
7362 # Sed substitution to avoid accidental globbing in evaled expressions
7363 no_glob_subst='s/\*/\\\*/g'
7364
7365 # Global variables:
7366 ofile=libtool
7367 can_build_shared=yes
7368
7369 # All known linkers require a `.a' archive for static linking (except MSVC,
7370 # which needs '.lib').
7371 libext=a
7372
7373 with_gnu_ld="$lt_cv_prog_gnu_ld"
7374
7375 old_CC="$CC"
7376 old_CFLAGS="$CFLAGS"
7377
7378 # Set sane defaults for various variables
7379 test -z "$CC" && CC=cc
7380 test -z "$LTCC" && LTCC=$CC
7381 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7382 test -z "$LD" && LD=ld
7383 test -z "$ac_objext" && ac_objext=o
7384
7385 for cc_temp in $compiler""; do
7386 case $cc_temp in
7387 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7388 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7389 \-*) ;;
7390 *) break;;
7391 esac
7392 done
7393 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7394
7395
7396 # Only perform the check for file, if the check method requires it
7397 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7398 case $deplibs_check_method in
7399 file_magic*)
7400 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7402 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7403 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 case $MAGIC_CMD in
7407 [\\/*] | ?:[\\/]*)
7408 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7409 ;;
7410 *)
7411 lt_save_MAGIC_CMD="$MAGIC_CMD"
7412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7413 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7414 for ac_dir in $ac_dummy; do
7415 IFS="$lt_save_ifs"
7416 test -z "$ac_dir" && ac_dir=.
7417 if test -f $ac_dir/${ac_tool_prefix}file; then
7418 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7419 if test -n "$file_magic_test_file"; then
7420 case $deplibs_check_method in
7421 "file_magic "*)
7422 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7424 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7425 $EGREP "$file_magic_regex" > /dev/null; then
7426 :
7427 else
7428 cat <<_LT_EOF 1>&2
7429
7430 *** Warning: the command libtool uses to detect shared libraries,
7431 *** $file_magic_cmd, produces output that libtool cannot recognize.
7432 *** The result is that libtool may fail to recognize shared libraries
7433 *** as such. This will affect the creation of libtool libraries that
7434 *** depend on shared libraries, but programs linked with such libtool
7435 *** libraries will work regardless of this problem. Nevertheless, you
7436 *** may want to report the problem to your system manager and/or to
7437 *** bug-libtool@gnu.org
7438
7439 _LT_EOF
7440 fi ;;
7441 esac
7442 fi
7443 break
7444 fi
7445 done
7446 IFS="$lt_save_ifs"
7447 MAGIC_CMD="$lt_save_MAGIC_CMD"
7448 ;;
7449 esac
7450 fi
7451
7452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7453 if test -n "$MAGIC_CMD"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7455 $as_echo "$MAGIC_CMD" >&6; }
7456 else
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7459 fi
7460
7461
7462
7463
7464
7465 if test -z "$lt_cv_path_MAGIC_CMD"; then
7466 if test -n "$ac_tool_prefix"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7468 $as_echo_n "checking for file... " >&6; }
7469 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 case $MAGIC_CMD in
7473 [\\/*] | ?:[\\/]*)
7474 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7475 ;;
7476 *)
7477 lt_save_MAGIC_CMD="$MAGIC_CMD"
7478 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7479 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7480 for ac_dir in $ac_dummy; do
7481 IFS="$lt_save_ifs"
7482 test -z "$ac_dir" && ac_dir=.
7483 if test -f $ac_dir/file; then
7484 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7485 if test -n "$file_magic_test_file"; then
7486 case $deplibs_check_method in
7487 "file_magic "*)
7488 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7490 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7491 $EGREP "$file_magic_regex" > /dev/null; then
7492 :
7493 else
7494 cat <<_LT_EOF 1>&2
7495
7496 *** Warning: the command libtool uses to detect shared libraries,
7497 *** $file_magic_cmd, produces output that libtool cannot recognize.
7498 *** The result is that libtool may fail to recognize shared libraries
7499 *** as such. This will affect the creation of libtool libraries that
7500 *** depend on shared libraries, but programs linked with such libtool
7501 *** libraries will work regardless of this problem. Nevertheless, you
7502 *** may want to report the problem to your system manager and/or to
7503 *** bug-libtool@gnu.org
7504
7505 _LT_EOF
7506 fi ;;
7507 esac
7508 fi
7509 break
7510 fi
7511 done
7512 IFS="$lt_save_ifs"
7513 MAGIC_CMD="$lt_save_MAGIC_CMD"
7514 ;;
7515 esac
7516 fi
7517
7518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7519 if test -n "$MAGIC_CMD"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7521 $as_echo "$MAGIC_CMD" >&6; }
7522 else
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7525 fi
7526
7527
7528 else
7529 MAGIC_CMD=:
7530 fi
7531 fi
7532
7533 fi
7534 ;;
7535 esac
7536
7537 # Use C for the default configuration in the libtool script
7538
7539 lt_save_CC="$CC"
7540 ac_ext=c
7541 ac_cpp='$CPP $CPPFLAGS'
7542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7545
7546
7547 # Source file extension for C test sources.
7548 ac_ext=c
7549
7550 # Object file extension for compiled C test sources.
7551 objext=o
7552 objext=$objext
7553
7554 # Code to be used in simple compile tests
7555 lt_simple_compile_test_code="int some_variable = 0;"
7556
7557 # Code to be used in simple link tests
7558 lt_simple_link_test_code='int main(){return(0);}'
7559
7560
7561
7562
7563
7564
7565
7566 # If no C compiler was specified, use CC.
7567 LTCC=${LTCC-"$CC"}
7568
7569 # If no C compiler flags were specified, use CFLAGS.
7570 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7571
7572 # Allow CC to be a program name with arguments.
7573 compiler=$CC
7574
7575 # Save the default compiler, since it gets overwritten when the other
7576 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7577 compiler_DEFAULT=$CC
7578
7579 # save warnings/boilerplate of simple test code
7580 ac_outfile=conftest.$ac_objext
7581 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7582 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7583 _lt_compiler_boilerplate=`cat conftest.err`
7584 $RM conftest*
7585
7586 ac_outfile=conftest.$ac_objext
7587 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7588 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7589 _lt_linker_boilerplate=`cat conftest.err`
7590 $RM -r conftest*
7591
7592
7593 if test -n "$compiler"; then
7594
7595 lt_prog_compiler_no_builtin_flag=
7596
7597 if test "$GCC" = yes; then
7598 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7599
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7601 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7602 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 lt_cv_prog_compiler_rtti_exceptions=no
7606 ac_outfile=conftest.$ac_objext
7607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7608 lt_compiler_flag="-fno-rtti -fno-exceptions"
7609 # Insert the option either (1) after the last *FLAGS variable, or
7610 # (2) before a word containing "conftest.", or (3) at the end.
7611 # Note that $ac_compile itself does not contain backslashes and begins
7612 # with a dollar sign (not a hyphen), so the echo should work correctly.
7613 # The option is referenced via a variable to avoid confusing sed.
7614 lt_compile=`echo "$ac_compile" | $SED \
7615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7617 -e 's:$: $lt_compiler_flag:'`
7618 (eval echo "\"\$as_me:7618: $lt_compile\"" >&5)
7619 (eval "$lt_compile" 2>conftest.err)
7620 ac_status=$?
7621 cat conftest.err >&5
7622 echo "$as_me:7622: \$? = $ac_status" >&5
7623 if (exit $ac_status) && test -s "$ac_outfile"; then
7624 # The compiler can only warn and ignore the option if not recognized
7625 # So say no if there are warnings other than the usual output.
7626 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7627 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7628 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7629 lt_cv_prog_compiler_rtti_exceptions=yes
7630 fi
7631 fi
7632 $RM conftest*
7633
7634 fi
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7636 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7637
7638 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7639 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7640 else
7641 :
7642 fi
7643
7644 fi
7645
7646
7647
7648
7649
7650
7651 lt_prog_compiler_wl=
7652 lt_prog_compiler_pic=
7653 lt_prog_compiler_static=
7654
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7656 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7657
7658 if test "$GCC" = yes; then
7659 lt_prog_compiler_wl='-Wl,'
7660 lt_prog_compiler_static='-static'
7661
7662 case $host_os in
7663 aix*)
7664 # All AIX code is PIC.
7665 if test "$host_cpu" = ia64; then
7666 # AIX 5 now supports IA64 processor
7667 lt_prog_compiler_static='-Bstatic'
7668 fi
7669 ;;
7670
7671 amigaos*)
7672 case $host_cpu in
7673 powerpc)
7674 # see comment about AmigaOS4 .so support
7675 lt_prog_compiler_pic='-fPIC'
7676 ;;
7677 m68k)
7678 # FIXME: we need at least 68020 code to build shared libraries, but
7679 # adding the `-m68020' flag to GCC prevents building anything better,
7680 # like `-m68040'.
7681 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7682 ;;
7683 esac
7684 ;;
7685
7686 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7687 # PIC is the default for these OSes.
7688 ;;
7689
7690 mingw* | cygwin* | pw32* | os2* | cegcc*)
7691 # This hack is so that the source file can tell whether it is being
7692 # built for inclusion in a dll (and should export symbols for example).
7693 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7694 # (--disable-auto-import) libraries
7695 lt_prog_compiler_pic='-DDLL_EXPORT'
7696 ;;
7697
7698 darwin* | rhapsody*)
7699 # PIC is the default on this platform
7700 # Common symbols not allowed in MH_DYLIB files
7701 lt_prog_compiler_pic='-fno-common'
7702 ;;
7703
7704 hpux*)
7705 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7706 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7707 # sets the default TLS model and affects inlining.
7708 case $host_cpu in
7709 hppa*64*)
7710 # +Z the default
7711 ;;
7712 *)
7713 lt_prog_compiler_pic='-fPIC'
7714 ;;
7715 esac
7716 ;;
7717
7718 interix[3-9]*)
7719 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7720 # Instead, we relocate shared libraries at runtime.
7721 ;;
7722
7723 msdosdjgpp*)
7724 # Just because we use GCC doesn't mean we suddenly get shared libraries
7725 # on systems that don't support them.
7726 lt_prog_compiler_can_build_shared=no
7727 enable_shared=no
7728 ;;
7729
7730 *nto* | *qnx*)
7731 # QNX uses GNU C++, but need to define -shared option too, otherwise
7732 # it will coredump.
7733 lt_prog_compiler_pic='-fPIC -shared'
7734 ;;
7735
7736 sysv4*MP*)
7737 if test -d /usr/nec; then
7738 lt_prog_compiler_pic=-Kconform_pic
7739 fi
7740 ;;
7741
7742 *)
7743 lt_prog_compiler_pic='-fPIC'
7744 ;;
7745 esac
7746 else
7747 # PORTME Check for flag to pass linker flags through the system compiler.
7748 case $host_os in
7749 aix*)
7750 lt_prog_compiler_wl='-Wl,'
7751 if test "$host_cpu" = ia64; then
7752 # AIX 5 now supports IA64 processor
7753 lt_prog_compiler_static='-Bstatic'
7754 else
7755 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7756 fi
7757 ;;
7758
7759 mingw* | cygwin* | pw32* | os2* | cegcc*)
7760 # This hack is so that the source file can tell whether it is being
7761 # built for inclusion in a dll (and should export symbols for example).
7762 lt_prog_compiler_pic='-DDLL_EXPORT'
7763 ;;
7764
7765 hpux9* | hpux10* | hpux11*)
7766 lt_prog_compiler_wl='-Wl,'
7767 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7768 # not for PA HP-UX.
7769 case $host_cpu in
7770 hppa*64*|ia64*)
7771 # +Z the default
7772 ;;
7773 *)
7774 lt_prog_compiler_pic='+Z'
7775 ;;
7776 esac
7777 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7778 lt_prog_compiler_static='${wl}-a ${wl}archive'
7779 ;;
7780
7781 irix5* | irix6* | nonstopux*)
7782 lt_prog_compiler_wl='-Wl,'
7783 # PIC (with -KPIC) is the default.
7784 lt_prog_compiler_static='-non_shared'
7785 ;;
7786
7787 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7788 case $cc_basename in
7789 # old Intel for x86_64 which still supported -KPIC.
7790 ecc*)
7791 lt_prog_compiler_wl='-Wl,'
7792 lt_prog_compiler_pic='-KPIC'
7793 lt_prog_compiler_static='-static'
7794 ;;
7795 # icc used to be incompatible with GCC.
7796 # ICC 10 doesn't accept -KPIC any more.
7797 icc* | ifort*)
7798 lt_prog_compiler_wl='-Wl,'
7799 lt_prog_compiler_pic='-fPIC'
7800 lt_prog_compiler_static='-static'
7801 ;;
7802 # Lahey Fortran 8.1.
7803 lf95*)
7804 lt_prog_compiler_wl='-Wl,'
7805 lt_prog_compiler_pic='--shared'
7806 lt_prog_compiler_static='--static'
7807 ;;
7808 pgcc* | pgf77* | pgf90* | pgf95*)
7809 # Portland Group compilers (*not* the Pentium gcc compiler,
7810 # which looks to be a dead project)
7811 lt_prog_compiler_wl='-Wl,'
7812 lt_prog_compiler_pic='-fpic'
7813 lt_prog_compiler_static='-Bstatic'
7814 ;;
7815 ccc*)
7816 lt_prog_compiler_wl='-Wl,'
7817 # All Alpha code is PIC.
7818 lt_prog_compiler_static='-non_shared'
7819 ;;
7820 xl*)
7821 # IBM XL C 8.0/Fortran 10.1 on PPC
7822 lt_prog_compiler_wl='-Wl,'
7823 lt_prog_compiler_pic='-qpic'
7824 lt_prog_compiler_static='-qstaticlink'
7825 ;;
7826 *)
7827 case `$CC -V 2>&1 | sed 5q` in
7828 *Sun\ C*)
7829 # Sun C 5.9
7830 lt_prog_compiler_pic='-KPIC'
7831 lt_prog_compiler_static='-Bstatic'
7832 lt_prog_compiler_wl='-Wl,'
7833 ;;
7834 *Sun\ F*)
7835 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7836 lt_prog_compiler_pic='-KPIC'
7837 lt_prog_compiler_static='-Bstatic'
7838 lt_prog_compiler_wl=''
7839 ;;
7840 esac
7841 ;;
7842 esac
7843 ;;
7844
7845 newsos6)
7846 lt_prog_compiler_pic='-KPIC'
7847 lt_prog_compiler_static='-Bstatic'
7848 ;;
7849
7850 *nto* | *qnx*)
7851 # QNX uses GNU C++, but need to define -shared option too, otherwise
7852 # it will coredump.
7853 lt_prog_compiler_pic='-fPIC -shared'
7854 ;;
7855
7856 osf3* | osf4* | osf5*)
7857 lt_prog_compiler_wl='-Wl,'
7858 # All OSF/1 code is PIC.
7859 lt_prog_compiler_static='-non_shared'
7860 ;;
7861
7862 rdos*)
7863 lt_prog_compiler_static='-non_shared'
7864 ;;
7865
7866 solaris*)
7867 lt_prog_compiler_pic='-KPIC'
7868 lt_prog_compiler_static='-Bstatic'
7869 case $cc_basename in
7870 f77* | f90* | f95*)
7871 lt_prog_compiler_wl='-Qoption ld ';;
7872 *)
7873 lt_prog_compiler_wl='-Wl,';;
7874 esac
7875 ;;
7876
7877 sunos4*)
7878 lt_prog_compiler_wl='-Qoption ld '
7879 lt_prog_compiler_pic='-PIC'
7880 lt_prog_compiler_static='-Bstatic'
7881 ;;
7882
7883 sysv4 | sysv4.2uw2* | sysv4.3*)
7884 lt_prog_compiler_wl='-Wl,'
7885 lt_prog_compiler_pic='-KPIC'
7886 lt_prog_compiler_static='-Bstatic'
7887 ;;
7888
7889 sysv4*MP*)
7890 if test -d /usr/nec ;then
7891 lt_prog_compiler_pic='-Kconform_pic'
7892 lt_prog_compiler_static='-Bstatic'
7893 fi
7894 ;;
7895
7896 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7897 lt_prog_compiler_wl='-Wl,'
7898 lt_prog_compiler_pic='-KPIC'
7899 lt_prog_compiler_static='-Bstatic'
7900 ;;
7901
7902 unicos*)
7903 lt_prog_compiler_wl='-Wl,'
7904 lt_prog_compiler_can_build_shared=no
7905 ;;
7906
7907 uts4*)
7908 lt_prog_compiler_pic='-pic'
7909 lt_prog_compiler_static='-Bstatic'
7910 ;;
7911
7912 *)
7913 lt_prog_compiler_can_build_shared=no
7914 ;;
7915 esac
7916 fi
7917
7918 case $host_os in
7919 # For platforms which do not support PIC, -DPIC is meaningless:
7920 *djgpp*)
7921 lt_prog_compiler_pic=
7922 ;;
7923 *)
7924 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7925 ;;
7926 esac
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7928 $as_echo "$lt_prog_compiler_pic" >&6; }
7929
7930
7931
7932
7933
7934
7935 #
7936 # Check to make sure the PIC flag actually works.
7937 #
7938 if test -n "$lt_prog_compiler_pic"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7940 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7941 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 lt_cv_prog_compiler_pic_works=no
7945 ac_outfile=conftest.$ac_objext
7946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7947 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7948 # Insert the option either (1) after the last *FLAGS variable, or
7949 # (2) before a word containing "conftest.", or (3) at the end.
7950 # Note that $ac_compile itself does not contain backslashes and begins
7951 # with a dollar sign (not a hyphen), so the echo should work correctly.
7952 # The option is referenced via a variable to avoid confusing sed.
7953 lt_compile=`echo "$ac_compile" | $SED \
7954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7956 -e 's:$: $lt_compiler_flag:'`
7957 (eval echo "\"\$as_me:7957: $lt_compile\"" >&5)
7958 (eval "$lt_compile" 2>conftest.err)
7959 ac_status=$?
7960 cat conftest.err >&5
7961 echo "$as_me:7961: \$? = $ac_status" >&5
7962 if (exit $ac_status) && test -s "$ac_outfile"; then
7963 # The compiler can only warn and ignore the option if not recognized
7964 # So say no if there are warnings other than the usual output.
7965 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7968 lt_cv_prog_compiler_pic_works=yes
7969 fi
7970 fi
7971 $RM conftest*
7972
7973 fi
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7975 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7976
7977 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7978 case $lt_prog_compiler_pic in
7979 "" | " "*) ;;
7980 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7981 esac
7982 else
7983 lt_prog_compiler_pic=
7984 lt_prog_compiler_can_build_shared=no
7985 fi
7986
7987 fi
7988
7989
7990
7991
7992
7993
7994 #
7995 # Check to make sure the static flag actually works.
7996 #
7997 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7999 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8000 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8001 $as_echo_n "(cached) " >&6
8002 else
8003 lt_cv_prog_compiler_static_works=no
8004 save_LDFLAGS="$LDFLAGS"
8005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8006 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8008 # The linker can only warn and ignore the option if not recognized
8009 # So say no if there are warnings
8010 if test -s conftest.err; then
8011 # Append any errors to the config.log.
8012 cat conftest.err 1>&5
8013 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8015 if diff conftest.exp conftest.er2 >/dev/null; then
8016 lt_cv_prog_compiler_static_works=yes
8017 fi
8018 else
8019 lt_cv_prog_compiler_static_works=yes
8020 fi
8021 fi
8022 $RM -r conftest*
8023 LDFLAGS="$save_LDFLAGS"
8024
8025 fi
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8027 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8028
8029 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8030 :
8031 else
8032 lt_prog_compiler_static=
8033 fi
8034
8035
8036
8037
8038
8039
8040
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8043 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 lt_cv_prog_compiler_c_o=no
8047 $RM -r conftest 2>/dev/null
8048 mkdir conftest
8049 cd conftest
8050 mkdir out
8051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8052
8053 lt_compiler_flag="-o out/conftest2.$ac_objext"
8054 # Insert the option either (1) after the last *FLAGS variable, or
8055 # (2) before a word containing "conftest.", or (3) at the end.
8056 # Note that $ac_compile itself does not contain backslashes and begins
8057 # with a dollar sign (not a hyphen), so the echo should work correctly.
8058 lt_compile=`echo "$ac_compile" | $SED \
8059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8061 -e 's:$: $lt_compiler_flag:'`
8062 (eval echo "\"\$as_me:8062: $lt_compile\"" >&5)
8063 (eval "$lt_compile" 2>out/conftest.err)
8064 ac_status=$?
8065 cat out/conftest.err >&5
8066 echo "$as_me:8066: \$? = $ac_status" >&5
8067 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8068 then
8069 # The compiler can only warn and ignore the option if not recognized
8070 # So say no if there are warnings
8071 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8074 lt_cv_prog_compiler_c_o=yes
8075 fi
8076 fi
8077 chmod u+w . 2>&5
8078 $RM conftest*
8079 # SGI C++ compiler will create directory out/ii_files/ for
8080 # template instantiation
8081 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8082 $RM out/* && rmdir out
8083 cd ..
8084 $RM -r conftest
8085 $RM conftest*
8086
8087 fi
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8089 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8090
8091
8092
8093
8094
8095
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8097 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8098 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 lt_cv_prog_compiler_c_o=no
8102 $RM -r conftest 2>/dev/null
8103 mkdir conftest
8104 cd conftest
8105 mkdir out
8106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8107
8108 lt_compiler_flag="-o out/conftest2.$ac_objext"
8109 # Insert the option either (1) after the last *FLAGS variable, or
8110 # (2) before a word containing "conftest.", or (3) at the end.
8111 # Note that $ac_compile itself does not contain backslashes and begins
8112 # with a dollar sign (not a hyphen), so the echo should work correctly.
8113 lt_compile=`echo "$ac_compile" | $SED \
8114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8116 -e 's:$: $lt_compiler_flag:'`
8117 (eval echo "\"\$as_me:8117: $lt_compile\"" >&5)
8118 (eval "$lt_compile" 2>out/conftest.err)
8119 ac_status=$?
8120 cat out/conftest.err >&5
8121 echo "$as_me:8121: \$? = $ac_status" >&5
8122 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8123 then
8124 # The compiler can only warn and ignore the option if not recognized
8125 # So say no if there are warnings
8126 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8129 lt_cv_prog_compiler_c_o=yes
8130 fi
8131 fi
8132 chmod u+w . 2>&5
8133 $RM conftest*
8134 # SGI C++ compiler will create directory out/ii_files/ for
8135 # template instantiation
8136 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8137 $RM out/* && rmdir out
8138 cd ..
8139 $RM -r conftest
8140 $RM conftest*
8141
8142 fi
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8144 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8145
8146
8147
8148
8149 hard_links="nottested"
8150 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8151 # do not overwrite the value of need_locks provided by the user
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8153 $as_echo_n "checking if we can lock with hard links... " >&6; }
8154 hard_links=yes
8155 $RM conftest*
8156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8157 touch conftest.a
8158 ln conftest.a conftest.b 2>&5 || hard_links=no
8159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8161 $as_echo "$hard_links" >&6; }
8162 if test "$hard_links" = no; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8164 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8165 need_locks=warn
8166 fi
8167 else
8168 need_locks=no
8169 fi
8170
8171
8172
8173
8174
8175
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8178
8179 runpath_var=
8180 allow_undefined_flag=
8181 always_export_symbols=no
8182 archive_cmds=
8183 archive_expsym_cmds=
8184 compiler_needs_object=no
8185 enable_shared_with_static_runtimes=no
8186 export_dynamic_flag_spec=
8187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8188 hardcode_automatic=no
8189 hardcode_direct=no
8190 hardcode_direct_absolute=no
8191 hardcode_libdir_flag_spec=
8192 hardcode_libdir_flag_spec_ld=
8193 hardcode_libdir_separator=
8194 hardcode_minus_L=no
8195 hardcode_shlibpath_var=unsupported
8196 inherit_rpath=no
8197 link_all_deplibs=unknown
8198 module_cmds=
8199 module_expsym_cmds=
8200 old_archive_from_new_cmds=
8201 old_archive_from_expsyms_cmds=
8202 thread_safe_flag_spec=
8203 whole_archive_flag_spec=
8204 # include_expsyms should be a list of space-separated symbols to be *always*
8205 # included in the symbol list
8206 include_expsyms=
8207 # exclude_expsyms can be an extended regexp of symbols to exclude
8208 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8209 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8210 # as well as any symbol that contains `d'.
8211 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8212 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8213 # platforms (ab)use it in PIC code, but their linkers get confused if
8214 # the symbol is explicitly referenced. Since portable code cannot
8215 # rely on this symbol name, it's probably fine to never include it in
8216 # preloaded symbol tables.
8217 # Exclude shared library initialization/finalization symbols.
8218 extract_expsyms_cmds=
8219
8220 case $host_os in
8221 cygwin* | mingw* | pw32* | cegcc*)
8222 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8223 # When not using gcc, we currently assume that we are using
8224 # Microsoft Visual C++.
8225 if test "$GCC" != yes; then
8226 with_gnu_ld=no
8227 fi
8228 ;;
8229 interix*)
8230 # we just hope/assume this is gcc and not c89 (= MSVC++)
8231 with_gnu_ld=yes
8232 ;;
8233 openbsd*)
8234 with_gnu_ld=no
8235 ;;
8236 linux* | k*bsd*-gnu)
8237 link_all_deplibs=no
8238 ;;
8239 esac
8240
8241 ld_shlibs=yes
8242 if test "$with_gnu_ld" = yes; then
8243 # If archive_cmds runs LD, not CC, wlarc should be empty
8244 wlarc='${wl}'
8245
8246 # Set some defaults for GNU ld with shared library support. These
8247 # are reset later if shared libraries are not supported. Putting them
8248 # here allows them to be overridden if necessary.
8249 runpath_var=LD_RUN_PATH
8250 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8251 export_dynamic_flag_spec='${wl}--export-dynamic'
8252 # ancient GNU ld didn't support --whole-archive et. al.
8253 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8254 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8255 else
8256 whole_archive_flag_spec=
8257 fi
8258 supports_anon_versioning=no
8259 case `$LD -v 2>&1` in
8260 *GNU\ gold*) supports_anon_versioning=yes ;;
8261 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8262 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8263 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8264 *\ 2.11.*) ;; # other 2.11 versions
8265 *) supports_anon_versioning=yes ;;
8266 esac
8267
8268 # See if GNU ld supports shared libraries.
8269 case $host_os in
8270 aix[3-9]*)
8271 # On AIX/PPC, the GNU linker is very broken
8272 if test "$host_cpu" != ia64; then
8273 ld_shlibs=no
8274 cat <<_LT_EOF 1>&2
8275
8276 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8277 *** to be unable to reliably create shared libraries on AIX.
8278 *** Therefore, libtool is disabling shared libraries support. If you
8279 *** really care for shared libraries, you may want to modify your PATH
8280 *** so that a non-GNU linker is found, and then restart.
8281
8282 _LT_EOF
8283 fi
8284 ;;
8285
8286 amigaos*)
8287 case $host_cpu in
8288 powerpc)
8289 # see comment about AmigaOS4 .so support
8290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8291 archive_expsym_cmds=''
8292 ;;
8293 m68k)
8294 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)'
8295 hardcode_libdir_flag_spec='-L$libdir'
8296 hardcode_minus_L=yes
8297 ;;
8298 esac
8299 ;;
8300
8301 beos*)
8302 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8303 allow_undefined_flag=unsupported
8304 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8305 # support --undefined. This deserves some investigation. FIXME
8306 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8307 else
8308 ld_shlibs=no
8309 fi
8310 ;;
8311
8312 cygwin* | mingw* | pw32* | cegcc*)
8313 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8314 # as there is no search path for DLLs.
8315 hardcode_libdir_flag_spec='-L$libdir'
8316 allow_undefined_flag=unsupported
8317 always_export_symbols=no
8318 enable_shared_with_static_runtimes=yes
8319 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8320
8321 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8323 # If the export-symbols file already is a .def file (1st line
8324 # is EXPORTS), use it as is; otherwise, prepend...
8325 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8326 cp $export_symbols $output_objdir/$soname.def;
8327 else
8328 echo EXPORTS > $output_objdir/$soname.def;
8329 cat $export_symbols >> $output_objdir/$soname.def;
8330 fi~
8331 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8332 else
8333 ld_shlibs=no
8334 fi
8335 ;;
8336
8337 interix[3-9]*)
8338 hardcode_direct=no
8339 hardcode_shlibpath_var=no
8340 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8341 export_dynamic_flag_spec='${wl}-E'
8342 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8343 # Instead, shared libraries are loaded at an image base (0x10000000 by
8344 # default) and relocated if they conflict, which is a slow very memory
8345 # consuming and fragmenting process. To avoid this, we pick a random,
8346 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8347 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8348 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8349 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'
8350 ;;
8351
8352 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8353 tmp_diet=no
8354 if test "$host_os" = linux-dietlibc; then
8355 case $cc_basename in
8356 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8357 esac
8358 fi
8359 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8360 && test "$tmp_diet" = no
8361 then
8362 tmp_addflag=
8363 tmp_sharedflag='-shared'
8364 case $cc_basename,$host_cpu in
8365 pgcc*) # Portland Group C compiler
8366 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8367 tmp_addflag=' $pic_flag'
8368 ;;
8369 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8370 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8371 tmp_addflag=' $pic_flag -Mnomain' ;;
8372 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8373 tmp_addflag=' -i_dynamic' ;;
8374 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8375 tmp_addflag=' -i_dynamic -nofor_main' ;;
8376 ifc* | ifort*) # Intel Fortran compiler
8377 tmp_addflag=' -nofor_main' ;;
8378 lf95*) # Lahey Fortran 8.1
8379 whole_archive_flag_spec=
8380 tmp_sharedflag='--shared' ;;
8381 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8382 tmp_sharedflag='-qmkshrobj'
8383 tmp_addflag= ;;
8384 esac
8385 case `$CC -V 2>&1 | sed 5q` in
8386 *Sun\ C*) # Sun C 5.9
8387 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8388 compiler_needs_object=yes
8389 tmp_sharedflag='-G' ;;
8390 *Sun\ F*) # Sun Fortran 8.3
8391 tmp_sharedflag='-G' ;;
8392 esac
8393 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8394
8395 if test "x$supports_anon_versioning" = xyes; then
8396 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8397 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8398 echo "local: *; };" >> $output_objdir/$libname.ver~
8399 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8400 fi
8401
8402 case $cc_basename in
8403 xlf*)
8404 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8405 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8406 hardcode_libdir_flag_spec=
8407 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8408 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8409 if test "x$supports_anon_versioning" = xyes; then
8410 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8411 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8412 echo "local: *; };" >> $output_objdir/$libname.ver~
8413 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8414 fi
8415 ;;
8416 esac
8417 else
8418 ld_shlibs=no
8419 fi
8420 ;;
8421
8422 netbsd* | netbsdelf*-gnu)
8423 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8424 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8425 wlarc=
8426 else
8427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8429 fi
8430 ;;
8431
8432 solaris*)
8433 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8434 ld_shlibs=no
8435 cat <<_LT_EOF 1>&2
8436
8437 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8438 *** create shared libraries on Solaris systems. Therefore, libtool
8439 *** is disabling shared libraries support. We urge you to upgrade GNU
8440 *** binutils to release 2.9.1 or newer. Another option is to modify
8441 *** your PATH or compiler configuration so that the native linker is
8442 *** used, and then restart.
8443
8444 _LT_EOF
8445 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8447 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8448 else
8449 ld_shlibs=no
8450 fi
8451 ;;
8452
8453 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8454 case `$LD -v 2>&1` in
8455 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8456 ld_shlibs=no
8457 cat <<_LT_EOF 1>&2
8458
8459 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8460 *** reliably create shared libraries on SCO systems. Therefore, libtool
8461 *** is disabling shared libraries support. We urge you to upgrade GNU
8462 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8463 *** your PATH or compiler configuration so that the native linker is
8464 *** used, and then restart.
8465
8466 _LT_EOF
8467 ;;
8468 *)
8469 # For security reasons, it is highly recommended that you always
8470 # use absolute paths for naming shared libraries, and exclude the
8471 # DT_RUNPATH tag from executables and libraries. But doing so
8472 # requires that you compile everything twice, which is a pain.
8473 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8474 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8476 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8477 else
8478 ld_shlibs=no
8479 fi
8480 ;;
8481 esac
8482 ;;
8483
8484 sunos4*)
8485 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8486 wlarc=
8487 hardcode_direct=yes
8488 hardcode_shlibpath_var=no
8489 ;;
8490
8491 *)
8492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8494 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8495 else
8496 ld_shlibs=no
8497 fi
8498 ;;
8499 esac
8500
8501 if test "$ld_shlibs" = no; then
8502 runpath_var=
8503 hardcode_libdir_flag_spec=
8504 export_dynamic_flag_spec=
8505 whole_archive_flag_spec=
8506 fi
8507 else
8508 # PORTME fill in a description of your system's linker (not GNU ld)
8509 case $host_os in
8510 aix3*)
8511 allow_undefined_flag=unsupported
8512 always_export_symbols=yes
8513 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'
8514 # Note: this linker hardcodes the directories in LIBPATH if there
8515 # are no directories specified by -L.
8516 hardcode_minus_L=yes
8517 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8518 # Neither direct hardcoding nor static linking is supported with a
8519 # broken collect2.
8520 hardcode_direct=unsupported
8521 fi
8522 ;;
8523
8524 aix[4-9]*)
8525 if test "$host_cpu" = ia64; then
8526 # On IA64, the linker does run time linking by default, so we don't
8527 # have to do anything special.
8528 aix_use_runtimelinking=no
8529 exp_sym_flag='-Bexport'
8530 no_entry_flag=""
8531 else
8532 # If we're using GNU nm, then we don't want the "-C" option.
8533 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8534 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8535 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8536 else
8537 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8538 fi
8539 aix_use_runtimelinking=no
8540
8541 # Test if we are trying to use run time linking or normal
8542 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8543 # need to do runtime linking.
8544 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8545 for ld_flag in $LDFLAGS; do
8546 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8547 aix_use_runtimelinking=yes
8548 break
8549 fi
8550 done
8551 ;;
8552 esac
8553
8554 exp_sym_flag='-bexport'
8555 no_entry_flag='-bnoentry'
8556 fi
8557
8558 # When large executables or shared objects are built, AIX ld can
8559 # have problems creating the table of contents. If linking a library
8560 # or program results in "error TOC overflow" add -mminimal-toc to
8561 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8562 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8563
8564 archive_cmds=''
8565 hardcode_direct=yes
8566 hardcode_direct_absolute=yes
8567 hardcode_libdir_separator=':'
8568 link_all_deplibs=yes
8569 file_list_spec='${wl}-f,'
8570
8571 if test "$GCC" = yes; then
8572 case $host_os in aix4.[012]|aix4.[012].*)
8573 # We only want to do this on AIX 4.2 and lower, the check
8574 # below for broken collect2 doesn't work under 4.3+
8575 collect2name=`${CC} -print-prog-name=collect2`
8576 if test -f "$collect2name" &&
8577 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8578 then
8579 # We have reworked collect2
8580 :
8581 else
8582 # We have old collect2
8583 hardcode_direct=unsupported
8584 # It fails to find uninstalled libraries when the uninstalled
8585 # path is not listed in the libpath. Setting hardcode_minus_L
8586 # to unsupported forces relinking
8587 hardcode_minus_L=yes
8588 hardcode_libdir_flag_spec='-L$libdir'
8589 hardcode_libdir_separator=
8590 fi
8591 ;;
8592 esac
8593 shared_flag='-shared'
8594 if test "$aix_use_runtimelinking" = yes; then
8595 shared_flag="$shared_flag "'${wl}-G'
8596 fi
8597 link_all_deplibs=no
8598 else
8599 # not using gcc
8600 if test "$host_cpu" = ia64; then
8601 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8602 # chokes on -Wl,-G. The following line is correct:
8603 shared_flag='-G'
8604 else
8605 if test "$aix_use_runtimelinking" = yes; then
8606 shared_flag='${wl}-G'
8607 else
8608 shared_flag='${wl}-bM:SRE'
8609 fi
8610 fi
8611 fi
8612
8613 export_dynamic_flag_spec='${wl}-bexpall'
8614 # It seems that -bexpall does not export symbols beginning with
8615 # underscore (_), so it is better to generate a list of symbols to export.
8616 always_export_symbols=yes
8617 if test "$aix_use_runtimelinking" = yes; then
8618 # Warning - without using the other runtime loading flags (-brtl),
8619 # -berok will link without error, but may produce a broken library.
8620 allow_undefined_flag='-berok'
8621 # Determine the default libpath from the value encoded in an
8622 # empty executable.
8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8625
8626 int
8627 main ()
8628 {
8629
8630 ;
8631 return 0;
8632 }
8633 _ACEOF
8634 if ac_fn_c_try_link "$LINENO"; then :
8635
8636 lt_aix_libpath_sed='
8637 /Import File Strings/,/^$/ {
8638 /^0/ {
8639 s/^0 *\(.*\)$/\1/
8640 p
8641 }
8642 }'
8643 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8644 # Check for a 64-bit object if we didn't find anything.
8645 if test -z "$aix_libpath"; then
8646 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8647 fi
8648 fi
8649 rm -f core conftest.err conftest.$ac_objext \
8650 conftest$ac_exeext conftest.$ac_ext
8651 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8652
8653 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8654 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8655 else
8656 if test "$host_cpu" = ia64; then
8657 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8658 allow_undefined_flag="-z nodefs"
8659 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"
8660 else
8661 # Determine the default libpath from the value encoded in an
8662 # empty executable.
8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8665
8666 int
8667 main ()
8668 {
8669
8670 ;
8671 return 0;
8672 }
8673 _ACEOF
8674 if ac_fn_c_try_link "$LINENO"; then :
8675
8676 lt_aix_libpath_sed='
8677 /Import File Strings/,/^$/ {
8678 /^0/ {
8679 s/^0 *\(.*\)$/\1/
8680 p
8681 }
8682 }'
8683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8684 # Check for a 64-bit object if we didn't find anything.
8685 if test -z "$aix_libpath"; then
8686 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8687 fi
8688 fi
8689 rm -f core conftest.err conftest.$ac_objext \
8690 conftest$ac_exeext conftest.$ac_ext
8691 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8692
8693 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8694 # Warning - without using the other run time loading flags,
8695 # -berok will link without error, but may produce a broken library.
8696 no_undefined_flag=' ${wl}-bernotok'
8697 allow_undefined_flag=' ${wl}-berok'
8698 # Exported symbols can be pulled into shared objects from archives
8699 whole_archive_flag_spec='$convenience'
8700 archive_cmds_need_lc=yes
8701 # This is similar to how AIX traditionally builds its shared libraries.
8702 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8703 fi
8704 fi
8705 ;;
8706
8707 amigaos*)
8708 case $host_cpu in
8709 powerpc)
8710 # see comment about AmigaOS4 .so support
8711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712 archive_expsym_cmds=''
8713 ;;
8714 m68k)
8715 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)'
8716 hardcode_libdir_flag_spec='-L$libdir'
8717 hardcode_minus_L=yes
8718 ;;
8719 esac
8720 ;;
8721
8722 bsdi[45]*)
8723 export_dynamic_flag_spec=-rdynamic
8724 ;;
8725
8726 cygwin* | mingw* | pw32* | cegcc*)
8727 # When not using gcc, we currently assume that we are using
8728 # Microsoft Visual C++.
8729 # hardcode_libdir_flag_spec is actually meaningless, as there is
8730 # no search path for DLLs.
8731 hardcode_libdir_flag_spec=' '
8732 allow_undefined_flag=unsupported
8733 # Tell ltmain to make .lib files, not .a files.
8734 libext=lib
8735 # Tell ltmain to make .dll files, not .so files.
8736 shrext_cmds=".dll"
8737 # FIXME: Setting linknames here is a bad hack.
8738 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8739 # The linker will automatically build a .lib file if we build a DLL.
8740 old_archive_from_new_cmds='true'
8741 # FIXME: Should let the user specify the lib program.
8742 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8743 fix_srcfile_path='`cygpath -w "$srcfile"`'
8744 enable_shared_with_static_runtimes=yes
8745 ;;
8746
8747 darwin* | rhapsody*)
8748
8749
8750 archive_cmds_need_lc=no
8751 hardcode_direct=no
8752 hardcode_automatic=yes
8753 hardcode_shlibpath_var=unsupported
8754 whole_archive_flag_spec=''
8755 link_all_deplibs=yes
8756 allow_undefined_flag="$_lt_dar_allow_undefined"
8757 case $cc_basename in
8758 ifort*) _lt_dar_can_shared=yes ;;
8759 *) _lt_dar_can_shared=$GCC ;;
8760 esac
8761 if test "$_lt_dar_can_shared" = "yes"; then
8762 output_verbose_link_cmd=echo
8763 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8764 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8765 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}"
8766 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}"
8767
8768 else
8769 ld_shlibs=no
8770 fi
8771
8772 ;;
8773
8774 dgux*)
8775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8776 hardcode_libdir_flag_spec='-L$libdir'
8777 hardcode_shlibpath_var=no
8778 ;;
8779
8780 freebsd1*)
8781 ld_shlibs=no
8782 ;;
8783
8784 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8785 # support. Future versions do this automatically, but an explicit c++rt0.o
8786 # does not break anything, and helps significantly (at the cost of a little
8787 # extra space).
8788 freebsd2.2*)
8789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8790 hardcode_libdir_flag_spec='-R$libdir'
8791 hardcode_direct=yes
8792 hardcode_shlibpath_var=no
8793 ;;
8794
8795 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8796 freebsd2*)
8797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8798 hardcode_direct=yes
8799 hardcode_minus_L=yes
8800 hardcode_shlibpath_var=no
8801 ;;
8802
8803 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8804 freebsd* | dragonfly*)
8805 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8806 hardcode_libdir_flag_spec='-R$libdir'
8807 hardcode_direct=yes
8808 hardcode_shlibpath_var=no
8809 ;;
8810
8811 hpux9*)
8812 if test "$GCC" = yes; then
8813 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8814 else
8815 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8816 fi
8817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8818 hardcode_libdir_separator=:
8819 hardcode_direct=yes
8820
8821 # hardcode_minus_L: Not really in the search PATH,
8822 # but as the default location of the library.
8823 hardcode_minus_L=yes
8824 export_dynamic_flag_spec='${wl}-E'
8825 ;;
8826
8827 hpux10*)
8828 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8829 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8830 else
8831 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8832 fi
8833 if test "$with_gnu_ld" = no; then
8834 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8835 hardcode_libdir_flag_spec_ld='+b $libdir'
8836 hardcode_libdir_separator=:
8837 hardcode_direct=yes
8838 hardcode_direct_absolute=yes
8839 export_dynamic_flag_spec='${wl}-E'
8840 # hardcode_minus_L: Not really in the search PATH,
8841 # but as the default location of the library.
8842 hardcode_minus_L=yes
8843 fi
8844 ;;
8845
8846 hpux11*)
8847 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8848 case $host_cpu in
8849 hppa*64*)
8850 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8851 ;;
8852 ia64*)
8853 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8854 ;;
8855 *)
8856 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8857 ;;
8858 esac
8859 else
8860 case $host_cpu in
8861 hppa*64*)
8862 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8863 ;;
8864 ia64*)
8865 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8866 ;;
8867 *)
8868 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8869 ;;
8870 esac
8871 fi
8872 if test "$with_gnu_ld" = no; then
8873 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8874 hardcode_libdir_separator=:
8875
8876 case $host_cpu in
8877 hppa*64*|ia64*)
8878 hardcode_direct=no
8879 hardcode_shlibpath_var=no
8880 ;;
8881 *)
8882 hardcode_direct=yes
8883 hardcode_direct_absolute=yes
8884 export_dynamic_flag_spec='${wl}-E'
8885
8886 # hardcode_minus_L: Not really in the search PATH,
8887 # but as the default location of the library.
8888 hardcode_minus_L=yes
8889 ;;
8890 esac
8891 fi
8892 ;;
8893
8894 irix5* | irix6* | nonstopux*)
8895 if test "$GCC" = yes; then
8896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8897 # Try to use the -exported_symbol ld option, if it does not
8898 # work, assume that -exports_file does not work either and
8899 # implicitly export all symbols.
8900 save_LDFLAGS="$LDFLAGS"
8901 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8904 int foo(void) {}
8905 _ACEOF
8906 if ac_fn_c_try_link "$LINENO"; then :
8907 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8908
8909 fi
8910 rm -f core conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
8912 LDFLAGS="$save_LDFLAGS"
8913 else
8914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8915 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8916 fi
8917 archive_cmds_need_lc='no'
8918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8919 hardcode_libdir_separator=:
8920 inherit_rpath=yes
8921 link_all_deplibs=yes
8922 ;;
8923
8924 netbsd* | netbsdelf*-gnu)
8925 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8926 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8927 else
8928 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8929 fi
8930 hardcode_libdir_flag_spec='-R$libdir'
8931 hardcode_direct=yes
8932 hardcode_shlibpath_var=no
8933 ;;
8934
8935 newsos6)
8936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8937 hardcode_direct=yes
8938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8939 hardcode_libdir_separator=:
8940 hardcode_shlibpath_var=no
8941 ;;
8942
8943 *nto* | *qnx*)
8944 ;;
8945
8946 openbsd*)
8947 if test -f /usr/libexec/ld.so; then
8948 hardcode_direct=yes
8949 hardcode_shlibpath_var=no
8950 hardcode_direct_absolute=yes
8951 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8953 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8954 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8955 export_dynamic_flag_spec='${wl}-E'
8956 else
8957 case $host_os in
8958 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8960 hardcode_libdir_flag_spec='-R$libdir'
8961 ;;
8962 *)
8963 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8964 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8965 ;;
8966 esac
8967 fi
8968 else
8969 ld_shlibs=no
8970 fi
8971 ;;
8972
8973 os2*)
8974 hardcode_libdir_flag_spec='-L$libdir'
8975 hardcode_minus_L=yes
8976 allow_undefined_flag=unsupported
8977 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8978 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8979 ;;
8980
8981 osf3*)
8982 if test "$GCC" = yes; then
8983 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8984 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8985 else
8986 allow_undefined_flag=' -expect_unresolved \*'
8987 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8988 fi
8989 archive_cmds_need_lc='no'
8990 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8991 hardcode_libdir_separator=:
8992 ;;
8993
8994 osf4* | osf5*) # as osf3* with the addition of -msym flag
8995 if test "$GCC" = yes; then
8996 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8997 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8999 else
9000 allow_undefined_flag=' -expect_unresolved \*'
9001 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9002 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~
9003 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9004
9005 # Both c and cxx compiler support -rpath directly
9006 hardcode_libdir_flag_spec='-rpath $libdir'
9007 fi
9008 archive_cmds_need_lc='no'
9009 hardcode_libdir_separator=:
9010 ;;
9011
9012 solaris*)
9013 no_undefined_flag=' -z defs'
9014 if test "$GCC" = yes; then
9015 wlarc='${wl}'
9016 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9017 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9018 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9019 else
9020 case `$CC -V 2>&1` in
9021 *"Compilers 5.0"*)
9022 wlarc=''
9023 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9024 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9025 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9026 ;;
9027 *)
9028 wlarc='${wl}'
9029 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9030 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9031 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9032 ;;
9033 esac
9034 fi
9035 hardcode_libdir_flag_spec='-R$libdir'
9036 hardcode_shlibpath_var=no
9037 case $host_os in
9038 solaris2.[0-5] | solaris2.[0-5].*) ;;
9039 *)
9040 # The compiler driver will combine and reorder linker options,
9041 # but understands `-z linker_flag'. GCC discards it without `$wl',
9042 # but is careful enough not to reorder.
9043 # Supported since Solaris 2.6 (maybe 2.5.1?)
9044 if test "$GCC" = yes; then
9045 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9046 else
9047 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9048 fi
9049 ;;
9050 esac
9051 link_all_deplibs=yes
9052 ;;
9053
9054 sunos4*)
9055 if test "x$host_vendor" = xsequent; then
9056 # Use $CC to link under sequent, because it throws in some extra .o
9057 # files that make .init and .fini sections work.
9058 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9059 else
9060 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9061 fi
9062 hardcode_libdir_flag_spec='-L$libdir'
9063 hardcode_direct=yes
9064 hardcode_minus_L=yes
9065 hardcode_shlibpath_var=no
9066 ;;
9067
9068 sysv4)
9069 case $host_vendor in
9070 sni)
9071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9072 hardcode_direct=yes # is this really true???
9073 ;;
9074 siemens)
9075 ## LD is ld it makes a PLAMLIB
9076 ## CC just makes a GrossModule.
9077 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9078 reload_cmds='$CC -r -o $output$reload_objs'
9079 hardcode_direct=no
9080 ;;
9081 motorola)
9082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9083 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9084 ;;
9085 esac
9086 runpath_var='LD_RUN_PATH'
9087 hardcode_shlibpath_var=no
9088 ;;
9089
9090 sysv4.3*)
9091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9092 hardcode_shlibpath_var=no
9093 export_dynamic_flag_spec='-Bexport'
9094 ;;
9095
9096 sysv4*MP*)
9097 if test -d /usr/nec; then
9098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9099 hardcode_shlibpath_var=no
9100 runpath_var=LD_RUN_PATH
9101 hardcode_runpath_var=yes
9102 ld_shlibs=yes
9103 fi
9104 ;;
9105
9106 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9107 no_undefined_flag='${wl}-z,text'
9108 archive_cmds_need_lc=no
9109 hardcode_shlibpath_var=no
9110 runpath_var='LD_RUN_PATH'
9111
9112 if test "$GCC" = yes; then
9113 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9114 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9115 else
9116 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9118 fi
9119 ;;
9120
9121 sysv5* | sco3.2v5* | sco5v6*)
9122 # Note: We can NOT use -z defs as we might desire, because we do not
9123 # link with -lc, and that would cause any symbols used from libc to
9124 # always be unresolved, which means just about no library would
9125 # ever link correctly. If we're not using GNU ld we use -z text
9126 # though, which does catch some bad symbols but isn't as heavy-handed
9127 # as -z defs.
9128 no_undefined_flag='${wl}-z,text'
9129 allow_undefined_flag='${wl}-z,nodefs'
9130 archive_cmds_need_lc=no
9131 hardcode_shlibpath_var=no
9132 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9133 hardcode_libdir_separator=':'
9134 link_all_deplibs=yes
9135 export_dynamic_flag_spec='${wl}-Bexport'
9136 runpath_var='LD_RUN_PATH'
9137
9138 if test "$GCC" = yes; then
9139 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9140 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9141 else
9142 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9143 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9144 fi
9145 ;;
9146
9147 uts4*)
9148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9149 hardcode_libdir_flag_spec='-L$libdir'
9150 hardcode_shlibpath_var=no
9151 ;;
9152
9153 *)
9154 ld_shlibs=no
9155 ;;
9156 esac
9157
9158 if test x$host_vendor = xsni; then
9159 case $host in
9160 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9161 export_dynamic_flag_spec='${wl}-Blargedynsym'
9162 ;;
9163 esac
9164 fi
9165 fi
9166
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9168 $as_echo "$ld_shlibs" >&6; }
9169 test "$ld_shlibs" = no && can_build_shared=no
9170
9171 with_gnu_ld=$with_gnu_ld
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187 #
9188 # Do we need to explicitly link libc?
9189 #
9190 case "x$archive_cmds_need_lc" in
9191 x|xyes)
9192 # Assume -lc should be added
9193 archive_cmds_need_lc=yes
9194
9195 if test "$enable_shared" = yes && test "$GCC" = yes; then
9196 case $archive_cmds in
9197 *'~'*)
9198 # FIXME: we may have to deal with multi-command sequences.
9199 ;;
9200 '$CC '*)
9201 # Test whether the compiler implicitly links with -lc since on some
9202 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9203 # to ld, don't add -lc before -lgcc.
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9205 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9206 $RM conftest*
9207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9208
9209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9210 (eval $ac_compile) 2>&5
9211 ac_status=$?
9212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9213 test $ac_status = 0; } 2>conftest.err; then
9214 soname=conftest
9215 lib=conftest
9216 libobjs=conftest.$ac_objext
9217 deplibs=
9218 wl=$lt_prog_compiler_wl
9219 pic_flag=$lt_prog_compiler_pic
9220 compiler_flags=-v
9221 linker_flags=-v
9222 verstring=
9223 output_objdir=.
9224 libname=conftest
9225 lt_save_allow_undefined_flag=$allow_undefined_flag
9226 allow_undefined_flag=
9227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9228 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9229 ac_status=$?
9230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9231 test $ac_status = 0; }
9232 then
9233 archive_cmds_need_lc=no
9234 else
9235 archive_cmds_need_lc=yes
9236 fi
9237 allow_undefined_flag=$lt_save_allow_undefined_flag
9238 else
9239 cat conftest.err 1>&5
9240 fi
9241 $RM conftest*
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9243 $as_echo "$archive_cmds_need_lc" >&6; }
9244 ;;
9245 esac
9246 fi
9247 ;;
9248 esac
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9407 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9408
9409 if test "$GCC" = yes; then
9410 case $host_os in
9411 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9412 *) lt_awk_arg="/^libraries:/" ;;
9413 esac
9414 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9415 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9416 # if the path contains ";" then we assume it to be the separator
9417 # otherwise default to the standard path separator (i.e. ":") - it is
9418 # assumed that no part of a normal pathname contains ";" but that should
9419 # okay in the real world where ";" in dirpaths is itself problematic.
9420 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9421 else
9422 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9423 fi
9424 # Ok, now we have the path, separated by spaces, we can step through it
9425 # and add multilib dir if necessary.
9426 lt_tmp_lt_search_path_spec=
9427 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9428 for lt_sys_path in $lt_search_path_spec; do
9429 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9430 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9431 else
9432 test -d "$lt_sys_path" && \
9433 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9434 fi
9435 done
9436 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9437 BEGIN {RS=" "; FS="/|\n";} {
9438 lt_foo="";
9439 lt_count=0;
9440 for (lt_i = NF; lt_i > 0; lt_i--) {
9441 if ($lt_i != "" && $lt_i != ".") {
9442 if ($lt_i == "..") {
9443 lt_count++;
9444 } else {
9445 if (lt_count == 0) {
9446 lt_foo="/" $lt_i lt_foo;
9447 } else {
9448 lt_count--;
9449 }
9450 }
9451 }
9452 }
9453 if (lt_foo != "") { lt_freq[lt_foo]++; }
9454 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9455 }'`
9456 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9457 else
9458 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9459 fi
9460 library_names_spec=
9461 libname_spec='lib$name'
9462 soname_spec=
9463 shrext_cmds=".so"
9464 postinstall_cmds=
9465 postuninstall_cmds=
9466 finish_cmds=
9467 finish_eval=
9468 shlibpath_var=
9469 shlibpath_overrides_runpath=unknown
9470 version_type=none
9471 dynamic_linker="$host_os ld.so"
9472 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9473 need_lib_prefix=unknown
9474 hardcode_into_libs=no
9475
9476 # when you set need_version to no, make sure it does not cause -set_version
9477 # flags to be left without arguments
9478 need_version=unknown
9479
9480 case $host_os in
9481 aix3*)
9482 version_type=linux
9483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9484 shlibpath_var=LIBPATH
9485
9486 # AIX 3 has no versioning support, so we append a major version to the name.
9487 soname_spec='${libname}${release}${shared_ext}$major'
9488 ;;
9489
9490 aix[4-9]*)
9491 version_type=linux
9492 need_lib_prefix=no
9493 need_version=no
9494 hardcode_into_libs=yes
9495 if test "$host_cpu" = ia64; then
9496 # AIX 5 supports IA64
9497 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9498 shlibpath_var=LD_LIBRARY_PATH
9499 else
9500 # With GCC up to 2.95.x, collect2 would create an import file
9501 # for dependence libraries. The import file would start with
9502 # the line `#! .'. This would cause the generated library to
9503 # depend on `.', always an invalid library. This was fixed in
9504 # development snapshots of GCC prior to 3.0.
9505 case $host_os in
9506 aix4 | aix4.[01] | aix4.[01].*)
9507 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9508 echo ' yes '
9509 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9510 :
9511 else
9512 can_build_shared=no
9513 fi
9514 ;;
9515 esac
9516 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9517 # soname into executable. Probably we can add versioning support to
9518 # collect2, so additional links can be useful in future.
9519 if test "$aix_use_runtimelinking" = yes; then
9520 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9521 # instead of lib<name>.a to let people know that these are not
9522 # typical AIX shared libraries.
9523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9524 else
9525 # We preserve .a as extension for shared libraries through AIX4.2
9526 # and later when we are not doing run time linking.
9527 library_names_spec='${libname}${release}.a $libname.a'
9528 soname_spec='${libname}${release}${shared_ext}$major'
9529 fi
9530 shlibpath_var=LIBPATH
9531 fi
9532 ;;
9533
9534 amigaos*)
9535 case $host_cpu in
9536 powerpc)
9537 # Since July 2007 AmigaOS4 officially supports .so libraries.
9538 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540 ;;
9541 m68k)
9542 library_names_spec='$libname.ixlibrary $libname.a'
9543 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9544 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9545 ;;
9546 esac
9547 ;;
9548
9549 beos*)
9550 library_names_spec='${libname}${shared_ext}'
9551 dynamic_linker="$host_os ld.so"
9552 shlibpath_var=LIBRARY_PATH
9553 ;;
9554
9555 bsdi[45]*)
9556 version_type=linux
9557 need_version=no
9558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9559 soname_spec='${libname}${release}${shared_ext}$major'
9560 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9561 shlibpath_var=LD_LIBRARY_PATH
9562 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9563 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9564 # the default ld.so.conf also contains /usr/contrib/lib and
9565 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9566 # libtool to hard-code these into programs
9567 ;;
9568
9569 cygwin* | mingw* | pw32* | cegcc*)
9570 version_type=windows
9571 shrext_cmds=".dll"
9572 need_version=no
9573 need_lib_prefix=no
9574
9575 case $GCC,$host_os in
9576 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9577 library_names_spec='$libname.dll.a'
9578 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9579 postinstall_cmds='base_file=`basename \${file}`~
9580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9581 dldir=$destdir/`dirname \$dlpath`~
9582 test -d \$dldir || mkdir -p \$dldir~
9583 $install_prog $dir/$dlname \$dldir/$dlname~
9584 chmod a+x \$dldir/$dlname~
9585 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9586 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9587 fi'
9588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9589 dlpath=$dir/\$dldll~
9590 $RM \$dlpath'
9591 shlibpath_overrides_runpath=yes
9592
9593 case $host_os in
9594 cygwin*)
9595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9596 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9597 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9598 ;;
9599 mingw* | cegcc*)
9600 # MinGW DLLs use traditional 'lib' prefix
9601 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9602 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9603 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9604 # It is most probably a Windows format PATH printed by
9605 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9606 # path with ; separators, and with drive letters. We can handle the
9607 # drive letters (cygwin fileutils understands them), so leave them,
9608 # especially as we might pass files found there to a mingw objdump,
9609 # which wouldn't understand a cygwinified path. Ahh.
9610 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9611 else
9612 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9613 fi
9614 ;;
9615 pw32*)
9616 # pw32 DLLs use 'pw' prefix rather than 'lib'
9617 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9618 ;;
9619 esac
9620 ;;
9621
9622 *)
9623 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9624 ;;
9625 esac
9626 dynamic_linker='Win32 ld.exe'
9627 # FIXME: first we should search . and the directory the executable is in
9628 shlibpath_var=PATH
9629 ;;
9630
9631 darwin* | rhapsody*)
9632 dynamic_linker="$host_os dyld"
9633 version_type=darwin
9634 need_lib_prefix=no
9635 need_version=no
9636 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9637 soname_spec='${libname}${release}${major}$shared_ext'
9638 shlibpath_overrides_runpath=yes
9639 shlibpath_var=DYLD_LIBRARY_PATH
9640 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9641
9642 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9643 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9644 ;;
9645
9646 dgux*)
9647 version_type=linux
9648 need_lib_prefix=no
9649 need_version=no
9650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9651 soname_spec='${libname}${release}${shared_ext}$major'
9652 shlibpath_var=LD_LIBRARY_PATH
9653 ;;
9654
9655 freebsd1*)
9656 dynamic_linker=no
9657 ;;
9658
9659 freebsd* | dragonfly*)
9660 # DragonFly does not have aout. When/if they implement a new
9661 # versioning mechanism, adjust this.
9662 if test -x /usr/bin/objformat; then
9663 objformat=`/usr/bin/objformat`
9664 else
9665 case $host_os in
9666 freebsd[123]*) objformat=aout ;;
9667 *) objformat=elf ;;
9668 esac
9669 fi
9670 version_type=freebsd-$objformat
9671 case $version_type in
9672 freebsd-elf*)
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9674 need_version=no
9675 need_lib_prefix=no
9676 ;;
9677 freebsd-*)
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9679 need_version=yes
9680 ;;
9681 esac
9682 shlibpath_var=LD_LIBRARY_PATH
9683 case $host_os in
9684 freebsd2*)
9685 shlibpath_overrides_runpath=yes
9686 ;;
9687 freebsd3.[01]* | freebsdelf3.[01]*)
9688 shlibpath_overrides_runpath=yes
9689 hardcode_into_libs=yes
9690 ;;
9691 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9692 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9693 shlibpath_overrides_runpath=no
9694 hardcode_into_libs=yes
9695 ;;
9696 *) # from 4.6 on, and DragonFly
9697 shlibpath_overrides_runpath=yes
9698 hardcode_into_libs=yes
9699 ;;
9700 esac
9701 ;;
9702
9703 gnu*)
9704 version_type=linux
9705 need_lib_prefix=no
9706 need_version=no
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 shlibpath_var=LD_LIBRARY_PATH
9710 hardcode_into_libs=yes
9711 ;;
9712
9713 hpux9* | hpux10* | hpux11*)
9714 # Give a soname corresponding to the major version so that dld.sl refuses to
9715 # link against other versions.
9716 version_type=sunos
9717 need_lib_prefix=no
9718 need_version=no
9719 case $host_cpu in
9720 ia64*)
9721 shrext_cmds='.so'
9722 hardcode_into_libs=yes
9723 dynamic_linker="$host_os dld.so"
9724 shlibpath_var=LD_LIBRARY_PATH
9725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 if test "X$HPUX_IA64_MODE" = X32; then
9729 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9730 else
9731 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9732 fi
9733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9734 ;;
9735 hppa*64*)
9736 shrext_cmds='.sl'
9737 hardcode_into_libs=yes
9738 dynamic_linker="$host_os dld.sl"
9739 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9742 soname_spec='${libname}${release}${shared_ext}$major'
9743 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9745 ;;
9746 *)
9747 shrext_cmds='.sl'
9748 dynamic_linker="$host_os dld.sl"
9749 shlibpath_var=SHLIB_PATH
9750 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752 soname_spec='${libname}${release}${shared_ext}$major'
9753 ;;
9754 esac
9755 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9756 postinstall_cmds='chmod 555 $lib'
9757 ;;
9758
9759 interix[3-9]*)
9760 version_type=linux
9761 need_lib_prefix=no
9762 need_version=no
9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9764 soname_spec='${libname}${release}${shared_ext}$major'
9765 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9766 shlibpath_var=LD_LIBRARY_PATH
9767 shlibpath_overrides_runpath=no
9768 hardcode_into_libs=yes
9769 ;;
9770
9771 irix5* | irix6* | nonstopux*)
9772 case $host_os in
9773 nonstopux*) version_type=nonstopux ;;
9774 *)
9775 if test "$lt_cv_prog_gnu_ld" = yes; then
9776 version_type=linux
9777 else
9778 version_type=irix
9779 fi ;;
9780 esac
9781 need_lib_prefix=no
9782 need_version=no
9783 soname_spec='${libname}${release}${shared_ext}$major'
9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9785 case $host_os in
9786 irix5* | nonstopux*)
9787 libsuff= shlibsuff=
9788 ;;
9789 *)
9790 case $LD in # libtool.m4 will add one of these switches to LD
9791 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9792 libsuff= shlibsuff= libmagic=32-bit;;
9793 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9794 libsuff=32 shlibsuff=N32 libmagic=N32;;
9795 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9796 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9797 *) libsuff= shlibsuff= libmagic=never-match;;
9798 esac
9799 ;;
9800 esac
9801 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9802 shlibpath_overrides_runpath=no
9803 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9804 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9805 hardcode_into_libs=yes
9806 ;;
9807
9808 # No shared lib support for Linux oldld, aout, or coff.
9809 linux*oldld* | linux*aout* | linux*coff*)
9810 dynamic_linker=no
9811 ;;
9812
9813 # This must be Linux ELF.
9814 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9815 version_type=linux
9816 need_lib_prefix=no
9817 need_version=no
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819 soname_spec='${libname}${release}${shared_ext}$major'
9820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9821 shlibpath_var=LD_LIBRARY_PATH
9822 shlibpath_overrides_runpath=no
9823 # Some binutils ld are patched to set DT_RUNPATH
9824 save_LDFLAGS=$LDFLAGS
9825 save_libdir=$libdir
9826 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9827 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9830
9831 int
9832 main ()
9833 {
9834
9835 ;
9836 return 0;
9837 }
9838 _ACEOF
9839 if ac_fn_c_try_link "$LINENO"; then :
9840 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9841 shlibpath_overrides_runpath=yes
9842 fi
9843 fi
9844 rm -f core conftest.err conftest.$ac_objext \
9845 conftest$ac_exeext conftest.$ac_ext
9846 LDFLAGS=$save_LDFLAGS
9847 libdir=$save_libdir
9848
9849 # This implies no fast_install, which is unacceptable.
9850 # Some rework will be needed to allow for fast_install
9851 # before this can be enabled.
9852 hardcode_into_libs=yes
9853
9854 # Append ld.so.conf contents to the search path
9855 if test -f /etc/ld.so.conf; then
9856 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9857 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9858 fi
9859
9860 # We used to test for /lib/ld.so.1 and disable shared libraries on
9861 # powerpc, because MkLinux only supported shared libraries with the
9862 # GNU dynamic linker. Since this was broken with cross compilers,
9863 # most powerpc-linux boxes support dynamic linking these days and
9864 # people can always --disable-shared, the test was removed, and we
9865 # assume the GNU/Linux dynamic linker is in use.
9866 dynamic_linker='GNU/Linux ld.so'
9867 ;;
9868
9869 netbsdelf*-gnu)
9870 version_type=linux
9871 need_lib_prefix=no
9872 need_version=no
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9874 soname_spec='${libname}${release}${shared_ext}$major'
9875 shlibpath_var=LD_LIBRARY_PATH
9876 shlibpath_overrides_runpath=no
9877 hardcode_into_libs=yes
9878 dynamic_linker='NetBSD ld.elf_so'
9879 ;;
9880
9881 netbsd*)
9882 version_type=sunos
9883 need_lib_prefix=no
9884 need_version=no
9885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9888 dynamic_linker='NetBSD (a.out) ld.so'
9889 else
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9891 soname_spec='${libname}${release}${shared_ext}$major'
9892 dynamic_linker='NetBSD ld.elf_so'
9893 fi
9894 shlibpath_var=LD_LIBRARY_PATH
9895 shlibpath_overrides_runpath=yes
9896 hardcode_into_libs=yes
9897 ;;
9898
9899 newsos6)
9900 version_type=linux
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902 shlibpath_var=LD_LIBRARY_PATH
9903 shlibpath_overrides_runpath=yes
9904 ;;
9905
9906 *nto* | *qnx*)
9907 version_type=qnx
9908 need_lib_prefix=no
9909 need_version=no
9910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9911 soname_spec='${libname}${release}${shared_ext}$major'
9912 shlibpath_var=LD_LIBRARY_PATH
9913 shlibpath_overrides_runpath=no
9914 hardcode_into_libs=yes
9915 dynamic_linker='ldqnx.so'
9916 ;;
9917
9918 openbsd*)
9919 version_type=sunos
9920 sys_lib_dlsearch_path_spec="/usr/lib"
9921 need_lib_prefix=no
9922 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9923 case $host_os in
9924 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9925 *) need_version=no ;;
9926 esac
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9929 shlibpath_var=LD_LIBRARY_PATH
9930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9931 case $host_os in
9932 openbsd2.[89] | openbsd2.[89].*)
9933 shlibpath_overrides_runpath=no
9934 ;;
9935 *)
9936 shlibpath_overrides_runpath=yes
9937 ;;
9938 esac
9939 else
9940 shlibpath_overrides_runpath=yes
9941 fi
9942 ;;
9943
9944 os2*)
9945 libname_spec='$name'
9946 shrext_cmds=".dll"
9947 need_lib_prefix=no
9948 library_names_spec='$libname${shared_ext} $libname.a'
9949 dynamic_linker='OS/2 ld.exe'
9950 shlibpath_var=LIBPATH
9951 ;;
9952
9953 osf3* | osf4* | osf5*)
9954 version_type=osf
9955 need_lib_prefix=no
9956 need_version=no
9957 soname_spec='${libname}${release}${shared_ext}$major'
9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959 shlibpath_var=LD_LIBRARY_PATH
9960 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9961 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9962 ;;
9963
9964 rdos*)
9965 dynamic_linker=no
9966 ;;
9967
9968 solaris*)
9969 version_type=linux
9970 need_lib_prefix=no
9971 need_version=no
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9973 soname_spec='${libname}${release}${shared_ext}$major'
9974 shlibpath_var=LD_LIBRARY_PATH
9975 shlibpath_overrides_runpath=yes
9976 hardcode_into_libs=yes
9977 # ldd complains unless libraries are executable
9978 postinstall_cmds='chmod +x $lib'
9979 ;;
9980
9981 sunos4*)
9982 version_type=sunos
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9984 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 shlibpath_overrides_runpath=yes
9987 if test "$with_gnu_ld" = yes; then
9988 need_lib_prefix=no
9989 fi
9990 need_version=yes
9991 ;;
9992
9993 sysv4 | sysv4.3*)
9994 version_type=linux
9995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9996 soname_spec='${libname}${release}${shared_ext}$major'
9997 shlibpath_var=LD_LIBRARY_PATH
9998 case $host_vendor in
9999 sni)
10000 shlibpath_overrides_runpath=no
10001 need_lib_prefix=no
10002 runpath_var=LD_RUN_PATH
10003 ;;
10004 siemens)
10005 need_lib_prefix=no
10006 ;;
10007 motorola)
10008 need_lib_prefix=no
10009 need_version=no
10010 shlibpath_overrides_runpath=no
10011 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10012 ;;
10013 esac
10014 ;;
10015
10016 sysv4*MP*)
10017 if test -d /usr/nec ;then
10018 version_type=linux
10019 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10020 soname_spec='$libname${shared_ext}.$major'
10021 shlibpath_var=LD_LIBRARY_PATH
10022 fi
10023 ;;
10024
10025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10026 version_type=freebsd-elf
10027 need_lib_prefix=no
10028 need_version=no
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 shlibpath_var=LD_LIBRARY_PATH
10032 shlibpath_overrides_runpath=yes
10033 hardcode_into_libs=yes
10034 if test "$with_gnu_ld" = yes; then
10035 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10036 else
10037 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10038 case $host_os in
10039 sco3.2v5*)
10040 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10041 ;;
10042 esac
10043 fi
10044 sys_lib_dlsearch_path_spec='/usr/lib'
10045 ;;
10046
10047 tpf*)
10048 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10049 version_type=linux
10050 need_lib_prefix=no
10051 need_version=no
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053 shlibpath_var=LD_LIBRARY_PATH
10054 shlibpath_overrides_runpath=no
10055 hardcode_into_libs=yes
10056 ;;
10057
10058 uts4*)
10059 version_type=linux
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 shlibpath_var=LD_LIBRARY_PATH
10063 ;;
10064
10065 *)
10066 dynamic_linker=no
10067 ;;
10068 esac
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10070 $as_echo "$dynamic_linker" >&6; }
10071 test "$dynamic_linker" = no && can_build_shared=no
10072
10073 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10074 if test "$GCC" = yes; then
10075 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10076 fi
10077
10078 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10079 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10080 fi
10081 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10082 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10083 fi
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10172 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10173 hardcode_action=
10174 if test -n "$hardcode_libdir_flag_spec" ||
10175 test -n "$runpath_var" ||
10176 test "X$hardcode_automatic" = "Xyes" ; then
10177
10178 # We can hardcode non-existent directories.
10179 if test "$hardcode_direct" != no &&
10180 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10181 # have to relink, otherwise we might link with an installed library
10182 # when we should be linking with a yet-to-be-installed one
10183 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10184 test "$hardcode_minus_L" != no; then
10185 # Linking always hardcodes the temporary library directory.
10186 hardcode_action=relink
10187 else
10188 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10189 hardcode_action=immediate
10190 fi
10191 else
10192 # We cannot hardcode anything, or else we can only hardcode existing
10193 # directories.
10194 hardcode_action=unsupported
10195 fi
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10197 $as_echo "$hardcode_action" >&6; }
10198
10199 if test "$hardcode_action" = relink ||
10200 test "$inherit_rpath" = yes; then
10201 # Fast installation is not supported
10202 enable_fast_install=no
10203 elif test "$shlibpath_overrides_runpath" = yes ||
10204 test "$enable_shared" = no; then
10205 # Fast installation is not necessary
10206 enable_fast_install=needless
10207 fi
10208
10209
10210
10211
10212
10213
10214 if test "x$enable_dlopen" != xyes; then
10215 enable_dlopen=unknown
10216 enable_dlopen_self=unknown
10217 enable_dlopen_self_static=unknown
10218 else
10219 lt_cv_dlopen=no
10220 lt_cv_dlopen_libs=
10221
10222 case $host_os in
10223 beos*)
10224 lt_cv_dlopen="load_add_on"
10225 lt_cv_dlopen_libs=
10226 lt_cv_dlopen_self=yes
10227 ;;
10228
10229 mingw* | pw32* | cegcc*)
10230 lt_cv_dlopen="LoadLibrary"
10231 lt_cv_dlopen_libs=
10232 ;;
10233
10234 cygwin*)
10235 lt_cv_dlopen="dlopen"
10236 lt_cv_dlopen_libs=
10237 ;;
10238
10239 darwin*)
10240 # if libdl is installed we need to link against it
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10242 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10243 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 ac_check_lib_save_LIBS=$LIBS
10247 LIBS="-ldl $LIBS"
10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10250
10251 /* Override any GCC internal prototype to avoid an error.
10252 Use char because int might match the return type of a GCC
10253 builtin and then its argument prototype would still apply. */
10254 #ifdef __cplusplus
10255 extern "C"
10256 #endif
10257 char dlopen ();
10258 int
10259 main ()
10260 {
10261 return dlopen ();
10262 ;
10263 return 0;
10264 }
10265 _ACEOF
10266 if ac_fn_c_try_link "$LINENO"; then :
10267 ac_cv_lib_dl_dlopen=yes
10268 else
10269 ac_cv_lib_dl_dlopen=no
10270 fi
10271 rm -f core conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10273 LIBS=$ac_check_lib_save_LIBS
10274 fi
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10276 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10277 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10278 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10279 else
10280
10281 lt_cv_dlopen="dyld"
10282 lt_cv_dlopen_libs=
10283 lt_cv_dlopen_self=yes
10284
10285 fi
10286
10287 ;;
10288
10289 *)
10290 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10291 if test "x$ac_cv_func_shl_load" = x""yes; then :
10292 lt_cv_dlopen="shl_load"
10293 else
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10295 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10296 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 ac_check_lib_save_LIBS=$LIBS
10300 LIBS="-ldld $LIBS"
10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10303
10304 /* Override any GCC internal prototype to avoid an error.
10305 Use char because int might match the return type of a GCC
10306 builtin and then its argument prototype would still apply. */
10307 #ifdef __cplusplus
10308 extern "C"
10309 #endif
10310 char shl_load ();
10311 int
10312 main ()
10313 {
10314 return shl_load ();
10315 ;
10316 return 0;
10317 }
10318 _ACEOF
10319 if ac_fn_c_try_link "$LINENO"; then :
10320 ac_cv_lib_dld_shl_load=yes
10321 else
10322 ac_cv_lib_dld_shl_load=no
10323 fi
10324 rm -f core conftest.err conftest.$ac_objext \
10325 conftest$ac_exeext conftest.$ac_ext
10326 LIBS=$ac_check_lib_save_LIBS
10327 fi
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10329 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10330 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10331 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10332 else
10333 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10334 if test "x$ac_cv_func_dlopen" = x""yes; then :
10335 lt_cv_dlopen="dlopen"
10336 else
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10338 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10340 $as_echo_n "(cached) " >&6
10341 else
10342 ac_check_lib_save_LIBS=$LIBS
10343 LIBS="-ldl $LIBS"
10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10346
10347 /* Override any GCC internal prototype to avoid an error.
10348 Use char because int might match the return type of a GCC
10349 builtin and then its argument prototype would still apply. */
10350 #ifdef __cplusplus
10351 extern "C"
10352 #endif
10353 char dlopen ();
10354 int
10355 main ()
10356 {
10357 return dlopen ();
10358 ;
10359 return 0;
10360 }
10361 _ACEOF
10362 if ac_fn_c_try_link "$LINENO"; then :
10363 ac_cv_lib_dl_dlopen=yes
10364 else
10365 ac_cv_lib_dl_dlopen=no
10366 fi
10367 rm -f core conftest.err conftest.$ac_objext \
10368 conftest$ac_exeext conftest.$ac_ext
10369 LIBS=$ac_check_lib_save_LIBS
10370 fi
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10372 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10373 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10375 else
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10377 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10378 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10379 $as_echo_n "(cached) " >&6
10380 else
10381 ac_check_lib_save_LIBS=$LIBS
10382 LIBS="-lsvld $LIBS"
10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10385
10386 /* Override any GCC internal prototype to avoid an error.
10387 Use char because int might match the return type of a GCC
10388 builtin and then its argument prototype would still apply. */
10389 #ifdef __cplusplus
10390 extern "C"
10391 #endif
10392 char dlopen ();
10393 int
10394 main ()
10395 {
10396 return dlopen ();
10397 ;
10398 return 0;
10399 }
10400 _ACEOF
10401 if ac_fn_c_try_link "$LINENO"; then :
10402 ac_cv_lib_svld_dlopen=yes
10403 else
10404 ac_cv_lib_svld_dlopen=no
10405 fi
10406 rm -f core conftest.err conftest.$ac_objext \
10407 conftest$ac_exeext conftest.$ac_ext
10408 LIBS=$ac_check_lib_save_LIBS
10409 fi
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10411 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10412 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10413 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10414 else
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10416 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10417 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10418 $as_echo_n "(cached) " >&6
10419 else
10420 ac_check_lib_save_LIBS=$LIBS
10421 LIBS="-ldld $LIBS"
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10424
10425 /* Override any GCC internal prototype to avoid an error.
10426 Use char because int might match the return type of a GCC
10427 builtin and then its argument prototype would still apply. */
10428 #ifdef __cplusplus
10429 extern "C"
10430 #endif
10431 char dld_link ();
10432 int
10433 main ()
10434 {
10435 return dld_link ();
10436 ;
10437 return 0;
10438 }
10439 _ACEOF
10440 if ac_fn_c_try_link "$LINENO"; then :
10441 ac_cv_lib_dld_dld_link=yes
10442 else
10443 ac_cv_lib_dld_dld_link=no
10444 fi
10445 rm -f core conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10447 LIBS=$ac_check_lib_save_LIBS
10448 fi
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10450 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10451 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10452 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10453 fi
10454
10455
10456 fi
10457
10458
10459 fi
10460
10461
10462 fi
10463
10464
10465 fi
10466
10467
10468 fi
10469
10470 ;;
10471 esac
10472
10473 if test "x$lt_cv_dlopen" != xno; then
10474 enable_dlopen=yes
10475 else
10476 enable_dlopen=no
10477 fi
10478
10479 case $lt_cv_dlopen in
10480 dlopen)
10481 save_CPPFLAGS="$CPPFLAGS"
10482 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10483
10484 save_LDFLAGS="$LDFLAGS"
10485 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10486
10487 save_LIBS="$LIBS"
10488 LIBS="$lt_cv_dlopen_libs $LIBS"
10489
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10491 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10492 if test "${lt_cv_dlopen_self+set}" = set; then :
10493 $as_echo_n "(cached) " >&6
10494 else
10495 if test "$cross_compiling" = yes; then :
10496 lt_cv_dlopen_self=cross
10497 else
10498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10499 lt_status=$lt_dlunknown
10500 cat > conftest.$ac_ext <<_LT_EOF
10501 #line 10501 "configure"
10502 #include "confdefs.h"
10503
10504 #if HAVE_DLFCN_H
10505 #include <dlfcn.h>
10506 #endif
10507
10508 #include <stdio.h>
10509
10510 #ifdef RTLD_GLOBAL
10511 # define LT_DLGLOBAL RTLD_GLOBAL
10512 #else
10513 # ifdef DL_GLOBAL
10514 # define LT_DLGLOBAL DL_GLOBAL
10515 # else
10516 # define LT_DLGLOBAL 0
10517 # endif
10518 #endif
10519
10520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10521 find out it does not work in some platform. */
10522 #ifndef LT_DLLAZY_OR_NOW
10523 # ifdef RTLD_LAZY
10524 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10525 # else
10526 # ifdef DL_LAZY
10527 # define LT_DLLAZY_OR_NOW DL_LAZY
10528 # else
10529 # ifdef RTLD_NOW
10530 # define LT_DLLAZY_OR_NOW RTLD_NOW
10531 # else
10532 # ifdef DL_NOW
10533 # define LT_DLLAZY_OR_NOW DL_NOW
10534 # else
10535 # define LT_DLLAZY_OR_NOW 0
10536 # endif
10537 # endif
10538 # endif
10539 # endif
10540 #endif
10541
10542 void fnord() { int i=42;}
10543 int main ()
10544 {
10545 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10546 int status = $lt_dlunknown;
10547
10548 if (self)
10549 {
10550 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10551 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10552 /* dlclose (self); */
10553 }
10554 else
10555 puts (dlerror ());
10556
10557 return status;
10558 }
10559 _LT_EOF
10560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10561 (eval $ac_link) 2>&5
10562 ac_status=$?
10563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10564 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10565 (./conftest; exit; ) >&5 2>/dev/null
10566 lt_status=$?
10567 case x$lt_status in
10568 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10569 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10570 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10571 esac
10572 else :
10573 # compilation failed
10574 lt_cv_dlopen_self=no
10575 fi
10576 fi
10577 rm -fr conftest*
10578
10579
10580 fi
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10582 $as_echo "$lt_cv_dlopen_self" >&6; }
10583
10584 if test "x$lt_cv_dlopen_self" = xyes; then
10585 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10587 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10588 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10589 $as_echo_n "(cached) " >&6
10590 else
10591 if test "$cross_compiling" = yes; then :
10592 lt_cv_dlopen_self_static=cross
10593 else
10594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10595 lt_status=$lt_dlunknown
10596 cat > conftest.$ac_ext <<_LT_EOF
10597 #line 10597 "configure"
10598 #include "confdefs.h"
10599
10600 #if HAVE_DLFCN_H
10601 #include <dlfcn.h>
10602 #endif
10603
10604 #include <stdio.h>
10605
10606 #ifdef RTLD_GLOBAL
10607 # define LT_DLGLOBAL RTLD_GLOBAL
10608 #else
10609 # ifdef DL_GLOBAL
10610 # define LT_DLGLOBAL DL_GLOBAL
10611 # else
10612 # define LT_DLGLOBAL 0
10613 # endif
10614 #endif
10615
10616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10617 find out it does not work in some platform. */
10618 #ifndef LT_DLLAZY_OR_NOW
10619 # ifdef RTLD_LAZY
10620 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10621 # else
10622 # ifdef DL_LAZY
10623 # define LT_DLLAZY_OR_NOW DL_LAZY
10624 # else
10625 # ifdef RTLD_NOW
10626 # define LT_DLLAZY_OR_NOW RTLD_NOW
10627 # else
10628 # ifdef DL_NOW
10629 # define LT_DLLAZY_OR_NOW DL_NOW
10630 # else
10631 # define LT_DLLAZY_OR_NOW 0
10632 # endif
10633 # endif
10634 # endif
10635 # endif
10636 #endif
10637
10638 void fnord() { int i=42;}
10639 int main ()
10640 {
10641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10642 int status = $lt_dlunknown;
10643
10644 if (self)
10645 {
10646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10648 /* dlclose (self); */
10649 }
10650 else
10651 puts (dlerror ());
10652
10653 return status;
10654 }
10655 _LT_EOF
10656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10657 (eval $ac_link) 2>&5
10658 ac_status=$?
10659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10660 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10661 (./conftest; exit; ) >&5 2>/dev/null
10662 lt_status=$?
10663 case x$lt_status in
10664 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10665 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10666 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10667 esac
10668 else :
10669 # compilation failed
10670 lt_cv_dlopen_self_static=no
10671 fi
10672 fi
10673 rm -fr conftest*
10674
10675
10676 fi
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10678 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10679 fi
10680
10681 CPPFLAGS="$save_CPPFLAGS"
10682 LDFLAGS="$save_LDFLAGS"
10683 LIBS="$save_LIBS"
10684 ;;
10685 esac
10686
10687 case $lt_cv_dlopen_self in
10688 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10689 *) enable_dlopen_self=unknown ;;
10690 esac
10691
10692 case $lt_cv_dlopen_self_static in
10693 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10694 *) enable_dlopen_self_static=unknown ;;
10695 esac
10696 fi
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714 striplib=
10715 old_striplib=
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10717 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10718 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10719 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10720 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10722 $as_echo "yes" >&6; }
10723 else
10724 # FIXME - insert some real tests, host_os isn't really good enough
10725 case $host_os in
10726 darwin*)
10727 if test -n "$STRIP" ; then
10728 striplib="$STRIP -x"
10729 old_striplib="$STRIP -S"
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10731 $as_echo "yes" >&6; }
10732 else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10735 fi
10736 ;;
10737 *)
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739 $as_echo "no" >&6; }
10740 ;;
10741 esac
10742 fi
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755 # Report which library types will actually be built
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10757 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10759 $as_echo "$can_build_shared" >&6; }
10760
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10762 $as_echo_n "checking whether to build shared libraries... " >&6; }
10763 test "$can_build_shared" = "no" && enable_shared=no
10764
10765 # On AIX, shared libraries and static libraries use the same namespace, and
10766 # are all built from PIC.
10767 case $host_os in
10768 aix3*)
10769 test "$enable_shared" = yes && enable_static=no
10770 if test -n "$RANLIB"; then
10771 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10772 postinstall_cmds='$RANLIB $lib'
10773 fi
10774 ;;
10775
10776 aix[4-9]*)
10777 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10778 test "$enable_shared" = yes && enable_static=no
10779 fi
10780 ;;
10781 esac
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10783 $as_echo "$enable_shared" >&6; }
10784
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10786 $as_echo_n "checking whether to build static libraries... " >&6; }
10787 # Make sure either enable_shared or enable_static is yes.
10788 test "$enable_shared" = yes || enable_static=yes
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10790 $as_echo "$enable_static" >&6; }
10791
10792
10793
10794
10795 fi
10796 ac_ext=c
10797 ac_cpp='$CPP $CPPFLAGS'
10798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10801
10802 CC="$lt_save_CC"
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816 ac_config_commands="$ac_config_commands libtool"
10817
10818
10819
10820
10821 # Only expand once:
10822
10823
10824 # By default we simply use the C compiler to build assembly code.
10825
10826 test "${CCAS+set}" = set || CCAS=$CC
10827 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10828
10829
10830
10831 depcc="$CCAS" am_compiler_list=
10832
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10834 $as_echo_n "checking dependency style of $depcc... " >&6; }
10835 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10839 # We make a subdir and do the tests there. Otherwise we can end up
10840 # making bogus files that we don't know about and never remove. For
10841 # instance it was reported that on HP-UX the gcc test will end up
10842 # making a dummy file named `D' -- because `-MD' means `put the output
10843 # in D'.
10844 mkdir conftest.dir
10845 # Copy depcomp to subdir because otherwise we won't find it if we're
10846 # using a relative directory.
10847 cp "$am_depcomp" conftest.dir
10848 cd conftest.dir
10849 # We will build objects and dependencies in a subdirectory because
10850 # it helps to detect inapplicable dependency modes. For instance
10851 # both Tru64's cc and ICC support -MD to output dependencies as a
10852 # side effect of compilation, but ICC will put the dependencies in
10853 # the current directory while Tru64 will put them in the object
10854 # directory.
10855 mkdir sub
10856
10857 am_cv_CCAS_dependencies_compiler_type=none
10858 if test "$am_compiler_list" = ""; then
10859 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10860 fi
10861 am__universal=false
10862
10863
10864 for depmode in $am_compiler_list; do
10865 # Setup a source with many dependencies, because some compilers
10866 # like to wrap large dependency lists on column 80 (with \), and
10867 # we should not choose a depcomp mode which is confused by this.
10868 #
10869 # We need to recreate these files for each test, as the compiler may
10870 # overwrite some of them when testing with obscure command lines.
10871 # This happens at least with the AIX C compiler.
10872 : > sub/conftest.c
10873 for i in 1 2 3 4 5 6; do
10874 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10875 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10876 # Solaris 8's {/usr,}/bin/sh.
10877 touch sub/conftst$i.h
10878 done
10879 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10880
10881 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10882 # mode. It turns out that the SunPro C++ compiler does not properly
10883 # handle `-M -o', and we need to detect this. Also, some Intel
10884 # versions had trouble with output in subdirs
10885 am__obj=sub/conftest.${OBJEXT-o}
10886 am__minus_obj="-o $am__obj"
10887 case $depmode in
10888 gcc)
10889 # This depmode causes a compiler race in universal mode.
10890 test "$am__universal" = false || continue
10891 ;;
10892 nosideeffect)
10893 # after this tag, mechanisms are not by side-effect, so they'll
10894 # only be used when explicitly requested
10895 if test "x$enable_dependency_tracking" = xyes; then
10896 continue
10897 else
10898 break
10899 fi
10900 ;;
10901 msvisualcpp | msvcmsys)
10902 # This compiler won't grok `-c -o', but also, the minuso test has
10903 # not run yet. These depmodes are late enough in the game, and
10904 # so weak that their functioning should not be impacted.
10905 am__obj=conftest.${OBJEXT-o}
10906 am__minus_obj=
10907 ;;
10908 none) break ;;
10909 esac
10910 if depmode=$depmode \
10911 source=sub/conftest.c object=$am__obj \
10912 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10913 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10914 >/dev/null 2>conftest.err &&
10915 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10916 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10917 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10918 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10919 # icc doesn't choke on unknown options, it will just issue warnings
10920 # or remarks (even with -Werror). So we grep stderr for any message
10921 # that says an option was ignored or not supported.
10922 # When given -MP, icc 7.0 and 7.1 complain thusly:
10923 # icc: Command line warning: ignoring option '-M'; no argument required
10924 # The diagnosis changed in icc 8.0:
10925 # icc: Command line remark: option '-MP' not supported
10926 if (grep 'ignoring option' conftest.err ||
10927 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10928 am_cv_CCAS_dependencies_compiler_type=$depmode
10929 break
10930 fi
10931 fi
10932 done
10933
10934 cd ..
10935 rm -rf conftest.dir
10936 else
10937 am_cv_CCAS_dependencies_compiler_type=none
10938 fi
10939
10940 fi
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
10942 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
10943 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
10944
10945 if
10946 test "x$enable_dependency_tracking" != xno \
10947 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
10948 am__fastdepCCAS_TRUE=
10949 am__fastdepCCAS_FALSE='#'
10950 else
10951 am__fastdepCCAS_TRUE='#'
10952 am__fastdepCCAS_FALSE=
10953 fi
10954
10955
10956
10957
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
10959 $as_echo_n "checking zfs author... " >&6; }
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
10961 $as_echo "$ZFS_META_AUTHOR" >&6; }
10962
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
10964 $as_echo_n "checking zfs license... " >&6; }
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
10966 $as_echo "$ZFS_META_LICENSE" >&6; }
10967
10968
10969
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
10971 $as_echo_n "checking linux distribution... " >&6; }
10972 if test -f /etc/toss-release ; then
10973 VENDOR=toss ;
10974 elif test -f /etc/fedora-release ; then
10975 VENDOR=fedora ;
10976 elif test -f /etc/redhat-release ; then
10977 VENDOR=redhat ;
10978 elif test -f /etc/gentoo-release ; then
10979 VENDOR=gentoo ;
10980 elif test -f /etc/arch-release ; then
10981 VENDOR=arch ;
10982 elif test -f /etc/SuSE-release ; then
10983 VENDOR=sles ;
10984 elif test -f /etc/slackware-version ; then
10985 VENDOR=slackware ;
10986 elif test -f /etc/lunar.release ; then
10987 VENDOR=lunar ;
10988 elif test -f /etc/lsb-release ; then
10989 VENDOR=ubuntu ;
10990 elif test -f /etc/debian_version ; then
10991 VENDOR=debian ;
10992 else
10993 VENDOR= ;
10994 fi
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
10996 $as_echo "$VENDOR" >&6; }
10997
10998
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
11000 $as_echo_n "checking default package type... " >&6; }
11001 case "$VENDOR" in
11002 toss) DEFAULT_PACKAGE=rpm ;;
11003 redhat) DEFAULT_PACKAGE=rpm ;;
11004 fedora) DEFAULT_PACKAGE=rpm ;;
11005 gentoo) DEFAULT_PACKAGE=tgz ;;
11006 arch) DEFAULT_PACKAGE=tgz ;;
11007 sles) DEFAULT_PACKAGE=rpm ;;
11008 slackware) DEFAULT_PACKAGE=tgz ;;
11009 lunar) DEFAULT_PACKAGE=tgz ;;
11010 ubuntu) DEFAULT_PACKAGE=deb ;;
11011 debian) DEFAULT_PACKAGE=deb ;;
11012 *) DEFAULT_PACKAGE=rpm ;;
11013 esac
11014
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
11016 $as_echo "$DEFAULT_PACKAGE" >&6; }
11017
11018
11019 DEFAULT_INIT_DIR=$sysconfdir/init.d
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
11021 $as_echo_n "checking default init directory... " >&6; }
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
11023 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11024
11025
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
11027 $as_echo_n "checking default init script type... " >&6; }
11028 case "$VENDOR" in
11029 toss) DEFAULT_INIT_SCRIPT=redhat ;;
11030 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
11031 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
11032 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
11033 arch) DEFAULT_INIT_SCRIPT=lsb ;;
11034 sles) DEFAULT_INIT_SCRIPT=lsb ;;
11035 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
11036 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
11037 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
11038 debian) DEFAULT_INIT_SCRIPT=lsb ;;
11039 *) DEFAULT_INIT_SCRIPT=lsb ;;
11040 esac
11041
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
11043 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11044
11045
11046
11047 RPM=rpm
11048 RPMBUILD=rpmbuild
11049
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
11051 $as_echo_n "checking whether $RPM is available... " >&6; }
11052 if tmp=$($RPM --version 2>/dev/null); then :
11053
11054 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11055 HAVE_RPM=yes
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
11057 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11058
11059 else
11060
11061 HAVE_RPM=no
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
11063 $as_echo "$HAVE_RPM" >&6; }
11064
11065 fi
11066
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
11068 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11069 if tmp=$($RPMBUILD --version 2>/dev/null); then :
11070
11071 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11072 HAVE_RPMBUILD=yes
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11074 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11075
11076 else
11077
11078 HAVE_RPMBUILD=no
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
11080 $as_echo "$HAVE_RPMBUILD" >&6; }
11081
11082 fi
11083
11084 RPM_DEFINE_COMMON=
11085 RPM_DEFINE_UTIL=
11086 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
11087 RPM_DEFINE_DKMS=
11088
11089 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
11090 SRPM_DEFINE_UTIL=
11091 SRPM_DEFINE_KMOD=
11092 SRPM_DEFINE_DKMS=
11093
11094 RPM_SPEC_DIR="rpm/generic"
11095
11096 # Check whether --with-spec was given.
11097 if test "${with_spec+set}" = set; then :
11098 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
11099 fi
11100
11101
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
11103 $as_echo_n "checking whether spec files are available... " >&6; }
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11105 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126 DPKG=dpkg
11127 DPKGBUILD=dpkg-buildpackage
11128
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
11130 $as_echo_n "checking whether $DPKG is available... " >&6; }
11131 if tmp=$($DPKG --version 2>/dev/null); then :
11132
11133 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11134 HAVE_DPKG=yes
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11136 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11137
11138 else
11139
11140 HAVE_DPKG=no
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
11142 $as_echo "$HAVE_DPKG" >&6; }
11143
11144 fi
11145
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
11147 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11148 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
11149
11150 DPKGBUILD_VERSION=$(echo $tmp | \
11151 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11152 HAVE_DPKGBUILD=yes
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11154 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11155
11156 else
11157
11158 HAVE_DPKGBUILD=no
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
11160 $as_echo "$HAVE_DPKGBUILD" >&6; }
11161
11162 fi
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173 ALIEN=alien
11174
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
11176 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11177 if tmp=$($ALIEN --version 2>/dev/null); then :
11178
11179 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11180 HAVE_ALIEN=yes
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11182 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11183
11184 else
11185
11186 HAVE_ALIEN=no
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
11188 $as_echo "$HAVE_ALIEN" >&6; }
11189
11190 fi
11191
11192
11193
11194
11195
11196
11197
11198 TARGET_ASM_DIR=asm-generic
11199
11200
11201 ZFS_CONFIG=all
11202
11203 # Check whether --with-config was given.
11204 if test "${with_config+set}" = set; then :
11205 withval=$with_config; ZFS_CONFIG="$withval"
11206 fi
11207
11208 # Check whether --enable-linux-builtin was given.
11209 if test "${enable_linux_builtin+set}" = set; then :
11210 enableval=$enable_linux_builtin;
11211 else
11212 enable_linux_builtin=no
11213 fi
11214
11215
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
11217 $as_echo_n "checking zfs config... " >&6; }
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
11219 $as_echo "$ZFS_CONFIG" >&6; };
11220
11221
11222
11223
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
11225 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11226
11227 saved_flags="$CFLAGS"
11228 CFLAGS="$CFLAGS -Wunused-but-set-variable"
11229
11230 if test "$cross_compiling" = yes; then :
11231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11233 as_fn_error $? "cannot run test program while cross compiling
11234 See \`config.log' for more details" "$LINENO" 5 ; }
11235 else
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11238
11239 int
11240 main ()
11241 {
11242
11243 ;
11244 return 0;
11245 }
11246 _ACEOF
11247 if ac_fn_c_try_run "$LINENO"; then :
11248
11249 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11251 $as_echo "yes" >&6; }
11252
11253 else
11254
11255 NO_UNUSED_BUT_SET_VARIABLE=
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11258
11259 fi
11260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11261 conftest.$ac_objext conftest.beam conftest.$ac_ext
11262 fi
11263
11264
11265 CFLAGS="$saved_flags"
11266
11267
11268
11269
11270 case "$ZFS_CONFIG" in
11271 kernel)
11272
11273
11274 # Check whether --with-linux was given.
11275 if test "${with_linux+set}" = set; then :
11276 withval=$with_linux; kernelsrc="$withval"
11277 fi
11278
11279
11280
11281 # Check whether --with-linux-obj was given.
11282 if test "${with_linux_obj+set}" = set; then :
11283 withval=$with_linux_obj; kernelbuild="$withval"
11284 fi
11285
11286
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
11288 $as_echo_n "checking kernel source directory... " >&6; }
11289 if test -z "$kernelsrc"; then :
11290
11291 if test -e "/lib/modules/$(uname -r)/source"; then :
11292
11293 headersdir="/lib/modules/$(uname -r)/source"
11294 sourcelink=$(readlink -f "$headersdir")
11295
11296 elif test -e "/lib/modules/$(uname -r)/build"; then :
11297
11298 headersdir="/lib/modules/$(uname -r)/build"
11299 sourcelink=$(readlink -f "$headersdir")
11300
11301 else
11302
11303 sourcelink=$(ls -1d /usr/src/kernels/* \
11304 /usr/src/linux-* \
11305 2>/dev/null | grep -v obj | tail -1)
11306
11307 fi
11308
11309 if test -n "$sourcelink" && test -e ${sourcelink}; then :
11310
11311 kernelsrc=`readlink -f ${sourcelink}`
11312
11313 else
11314
11315 kernelsrc="Not found"
11316
11317 fi
11318
11319 else
11320
11321 if test "$kernelsrc" = "NONE"; then :
11322
11323 kernsrcver=NONE
11324
11325 fi
11326
11327 fi
11328
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
11330 $as_echo "$kernelsrc" >&6; }
11331 if test ! -d "$kernelsrc"; then :
11332
11333 as_fn_error $? "
11334 *** Please make sure the kernel devel package for your distribution
11335 *** is installed then try again. If that fails you can specify the
11336 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
11337
11338 fi
11339
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
11341 $as_echo_n "checking kernel build directory... " >&6; }
11342 if test -z "$kernelbuild"; then :
11343
11344 if test -e "/lib/modules/$(uname -r)/build"; then :
11345
11346 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11347
11348 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
11349
11350 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11351
11352 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
11353
11354 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11355
11356 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
11357
11358 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11359
11360 else
11361
11362 kernelbuild=${kernelsrc}
11363
11364 fi
11365
11366 fi
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
11368 $as_echo "$kernelbuild" >&6; }
11369
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
11371 $as_echo_n "checking kernel source version... " >&6; }
11372 utsrelease1=$kernelbuild/include/linux/version.h
11373 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11374 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11375 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
11376
11377 utsrelease=linux/version.h
11378
11379 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
11380
11381 utsrelease=linux/utsrelease.h
11382
11383 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
11384
11385 utsrelease=generated/utsrelease.h
11386
11387 fi
11388
11389 if test "$utsrelease"; then :
11390
11391 kernsrcver=`(echo "#include <$utsrelease>";
11392 echo "kernsrcver=UTS_RELEASE") |
11393 cpp -I $kernelbuild/include |
11394 grep "^kernsrcver=" | cut -d \" -f 2`
11395
11396 if test -z "$kernsrcver"; then :
11397
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11399 $as_echo "Not found" >&6; }
11400 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
11401
11402 fi
11403
11404 else
11405
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11407 $as_echo "Not found" >&6; }
11408 if test "x$enable_linux_builtin" != xyes; then
11409 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
11410 else
11411 as_fn_error $? "
11412 *** Cannot find UTS_RELEASE definition.
11413 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
11414 fi
11415
11416 fi
11417
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
11419 $as_echo "$kernsrcver" >&6; }
11420
11421 LINUX=${kernelsrc}
11422 LINUX_OBJ=${kernelbuild}
11423 LINUX_VERSION=${kernsrcver}
11424
11425
11426
11427
11428
11429
11430 modpost=$LINUX/scripts/Makefile.modpost
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
11432 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11433 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
11434
11435 if grep -q Modules.symvers $modpost; then :
11436
11437 LINUX_SYMBOLS=Modules.symvers
11438
11439 else
11440
11441 LINUX_SYMBOLS=Module.symvers
11442
11443 fi
11444
11445 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
11446
11447 as_fn_error $? "
11448 *** Please make sure the kernel devel package for your distribution
11449 *** is installed. If your building with a custom kernel make sure the
11450 *** kernel is configured, built, and the '--with-linux=PATH' configure
11451 *** option refers to the location of the kernel source." "$LINENO" 5
11452
11453 fi
11454
11455 else
11456
11457 LINUX_SYMBOLS=NONE
11458
11459 fi
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
11461 $as_echo "$LINUX_SYMBOLS" >&6; }
11462
11463
11464
11465
11466
11467 # Check whether --with-spl was given.
11468 if test "${with_spl+set}" = set; then :
11469 withval=$with_spl; splsrc="$withval"
11470 fi
11471
11472
11473
11474 # Check whether --with-spl-obj was given.
11475 if test "${with_spl_obj+set}" = set; then :
11476 withval=$with_spl_obj; splbuild="$withval"
11477 fi
11478
11479
11480 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
11481 splsrc1="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
11482 splsrc2="/usr/src/spl-${VERSION}"
11483 splsrc3="../spl/"
11484 splsrc4="$LINUX"
11485
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
11487 $as_echo_n "checking spl source directory... " >&6; }
11488 if test -z "${splsrc}"; then :
11489
11490 if test -e "${splsrc0}/spl.release.in"; then :
11491
11492 splsrc=${splsrc0}
11493
11494 elif test -e "${splsrc1}/spl.release.in"; then :
11495
11496 splsrc=${splsrc1}
11497
11498 elif test -e "${splsrc2}/spl.release.in"; then :
11499
11500 splsrc=${splsrc2}
11501
11502 elif test -e "${splsrc3}/spl.release.in"; then :
11503
11504 splsrc=$(readlink -f "${splsrc3}")
11505
11506 elif test -e "${splsrc4}/spl.release.in" ; then :
11507
11508 splsrc=${splsrc4}
11509
11510 else
11511
11512 splsrc="Not found"
11513
11514 fi
11515
11516 else
11517
11518 if test "$splsrc" = "NONE"; then :
11519
11520 splbuild=NONE
11521 splsrcver=NONE
11522
11523 fi
11524
11525 fi
11526
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
11528 $as_echo "$splsrc" >&6; }
11529 if test ! -e "$splsrc/spl.release.in"; then :
11530
11531 as_fn_error $? "
11532 *** Please make sure the kmod spl devel package for your distribution
11533 *** is installed then try again. If that fails you can specify the
11534 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
11535
11536 fi
11537
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
11539 $as_echo_n "checking spl build directory... " >&6; }
11540 if test -z "$splbuild"; then :
11541
11542 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
11543
11544 splbuild="${splsrc}/${LINUX_VERSION}"
11545
11546 elif test -e "${splsrc}/spl_config.h" ; then :
11547
11548 splbuild="${splsrc}"
11549
11550 else
11551
11552 splbuild="Not found"
11553
11554 fi
11555
11556 fi
11557
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
11559 $as_echo "$splbuild" >&6; }
11560 if ! test -e "$splbuild/spl_config.h"; then :
11561
11562 as_fn_error $? "
11563 *** Please make sure the kmod spl devel <kernel> package for your
11564 *** distribution is installed then try again. If that fails you
11565 *** can specify the location of the spl objects with the
11566 *** '--with-spl-obj=PATH' option." "$LINENO" 5
11567
11568 fi
11569
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
11571 $as_echo_n "checking spl source version... " >&6; }
11572 if test -r $splbuild/spl_config.h &&
11573 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
11574
11575
11576 splsrcver=`(echo "#include <spl_config.h>";
11577 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
11578 cpp -I $splbuild |
11579 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
11580
11581 fi
11582
11583 if test -z "$splsrcver"; then :
11584
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11586 $as_echo "Not found" >&6; }
11587 as_fn_error $? "
11588 *** Cannot determine the version of the spl source.
11589 *** Please prepare the spl source before running this script" "$LINENO" 5
11590
11591 fi
11592
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
11594 $as_echo "$splsrcver" >&6; }
11595
11596 SPL=${splsrc}
11597 SPL_OBJ=${splbuild}
11598 SPL_VERSION=${splsrcver}
11599
11600
11601
11602
11603
11604
11605
11606 # Check whether --with-spl-timeout was given.
11607 if test "${with_spl_timeout+set}" = set; then :
11608 withval=$with_spl_timeout; timeout="$withval"
11609 else
11610 timeout=0
11611 fi
11612
11613
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
11615 $as_echo_n "checking spl file name for module symbols... " >&6; }
11616 SPL_SYMBOLS=NONE
11617
11618 while true; do
11619 if test -r $SPL_OBJ/Module.symvers; then :
11620
11621 SPL_SYMBOLS=Module.symvers
11622
11623 elif test -r $SPL_OBJ/Modules.symvers; then :
11624
11625 SPL_SYMBOLS=Modules.symvers
11626
11627 elif test -r $SPL_OBJ/module/Module.symvers; then :
11628
11629 SPL_SYMBOLS=Module.symvers
11630
11631 elif test -r $SPL_OBJ/module/Modules.symvers; then :
11632
11633 SPL_SYMBOLS=Modules.symvers
11634
11635 fi
11636
11637 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
11638
11639 break;
11640
11641 else
11642
11643 sleep 1
11644 timeout=$((timeout-1))
11645
11646 fi
11647 done
11648
11649 if test "$SPL_SYMBOLS" = NONE; then :
11650
11651 SPL_SYMBOLS=$LINUX_SYMBOLS
11652
11653 fi
11654
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
11656 $as_echo "$SPL_SYMBOLS" >&6; }
11657
11658
11659
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
11661 $as_echo_n "checking whether modules can be built... " >&6; }
11662
11663
11664 cat confdefs.h - <<_ACEOF >conftest.c
11665
11666
11667 int
11668 main (void)
11669 {
11670
11671 ;
11672 return 0;
11673 }
11674
11675 _ACEOF
11676
11677
11678 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11679 echo "obj-m := conftest.o" >build/Makefile
11680 modpost_flag=''
11681 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11682 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11689 (eval $ac_try) 2>&5
11690 ac_status=$?
11691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11692 test $ac_status = 0; }; }; then :
11693
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11695 $as_echo "yes" >&6; }
11696
11697 else
11698 $as_echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11700
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702 $as_echo "no" >&6; }
11703 if test "x$enable_linux_builtin" != xyes; then
11704 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
11705 else
11706 as_fn_error $? "
11707 *** Unable to build an empty module.
11708 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
11709 fi
11710
11711
11712
11713 fi
11714 rm -Rf build
11715
11716
11717
11718
11719
11720 if test "$ZFS_META_LICENSE" = GPL; then :
11721
11722
11723 $as_echo "#define HAVE_GPL_ONLY_SYMBOLS 1" >>confdefs.h
11724
11725
11726 fi
11727
11728
11729
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
11731 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
11732
11733
11734 cat confdefs.h - <<_ACEOF >conftest.c
11735
11736
11737 #include <linux/module.h>
11738
11739 int
11740 main (void)
11741 {
11742
11743 #ifndef CONFIG_DEBUG_LOCK_ALLOC
11744 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
11745 #endif
11746
11747 ;
11748 return 0;
11749 }
11750
11751 _ACEOF
11752
11753
11754 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11755 echo "obj-m := conftest.o" >build/Makefile
11756 modpost_flag=''
11757 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11758 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11760 (eval $ac_try) 2>&5
11761 ac_status=$?
11762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11763 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11765 (eval $ac_try) 2>&5
11766 ac_status=$?
11767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11768 test $ac_status = 0; }; }; then :
11769
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11771 $as_echo "yes" >&6; }
11772
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
11774 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
11775 tmp_flags="$EXTRA_KCFLAGS"
11776
11777
11778 cat confdefs.h - <<_ACEOF >conftest.c
11779
11780
11781 #include <linux/module.h>
11782 #include <linux/mutex.h>
11783
11784 MODULE_LICENSE("$ZFS_META_LICENSE");
11785
11786 int
11787 main (void)
11788 {
11789
11790 struct mutex lock;
11791
11792 mutex_init(&lock);
11793 mutex_lock(&lock);
11794 mutex_unlock(&lock);
11795
11796 ;
11797 return 0;
11798 }
11799
11800 _ACEOF
11801
11802
11803 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11804 echo "obj-m := conftest.o" >build/Makefile
11805 modpost_flag=''
11806 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11807 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11812 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11814 (eval $ac_try) 2>&5
11815 ac_status=$?
11816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817 test $ac_status = 0; }; }; then :
11818
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820 $as_echo "no" >&6; }
11821
11822 else
11823 $as_echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11825
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11827 $as_echo "yes" >&6; }
11828 as_fn_error $? "
11829 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
11830 *** with the CDDL license and will prevent the module linking stage
11831 *** from succeeding. You must rebuild your kernel without this
11832 *** option enabled." "$LINENO" 5
11833
11834
11835
11836 fi
11837 rm -Rf build
11838
11839
11840 EXTRA_KCFLAGS="$tmp_flags"
11841
11842
11843 else
11844 $as_echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11846
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11849
11850
11851
11852
11853 fi
11854 rm -Rf build
11855
11856
11857
11858
11859
11860
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
11862 $as_echo_n "checking block device operation prototypes... " >&6; }
11863 tmp_flags="$EXTRA_KCFLAGS"
11864 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
11865
11866
11867 cat confdefs.h - <<_ACEOF >conftest.c
11868
11869
11870 #include <linux/blkdev.h>
11871
11872 int blk_open(struct block_device *bdev, fmode_t mode)
11873 { return 0; }
11874 int blk_release(struct gendisk *g, fmode_t mode) { return 0; }
11875 int blk_ioctl(struct block_device *bdev, fmode_t mode,
11876 unsigned x, unsigned long y) { return 0; }
11877 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
11878 unsigned x, unsigned long y) { return 0; }
11879
11880 static const struct block_device_operations
11881 bops __attribute__ ((unused)) = {
11882 .open = blk_open,
11883 .release = blk_release,
11884 .ioctl = blk_ioctl,
11885 .compat_ioctl = blk_compat_ioctl,
11886 };
11887
11888 int
11889 main (void)
11890 {
11891
11892
11893 ;
11894 return 0;
11895 }
11896
11897 _ACEOF
11898
11899
11900 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11901 echo "obj-m := conftest.o" >build/Makefile
11902 modpost_flag=''
11903 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11904 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11909 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11911 (eval $ac_try) 2>&5
11912 ac_status=$?
11913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11914 test $ac_status = 0; }; }; then :
11915
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
11917 $as_echo "struct block_device" >&6; }
11918
11919 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
11920
11921
11922 else
11923 $as_echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11925
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
11927 $as_echo "struct inode" >&6; }
11928
11929
11930
11931 fi
11932 rm -Rf build
11933
11934
11935 EXTRA_KCFLAGS="$tmp_flags"
11936
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
11938 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
11939
11940
11941 cat confdefs.h - <<_ACEOF >conftest.c
11942
11943
11944 #include <linux/types.h>
11945
11946 int
11947 main (void)
11948 {
11949
11950 fmode_t *ptr __attribute__ ((unused));
11951
11952 ;
11953 return 0;
11954 }
11955
11956 _ACEOF
11957
11958
11959 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11960 echo "obj-m := conftest.o" >build/Makefile
11961 modpost_flag=''
11962 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11963 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11968 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11970 (eval $ac_try) 2>&5
11971 ac_status=$?
11972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11973 test $ac_status = 0; }; }; then :
11974
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11976 $as_echo "yes" >&6; }
11977
11978 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
11979
11980
11981 else
11982 $as_echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11984
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11987
11988
11989
11990 fi
11991 rm -Rf build
11992
11993
11994
11995
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
11997 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
11998
11999
12000 cat confdefs.h - <<_ACEOF >conftest.c
12001
12002
12003 #include <linux/kobject.h>
12004
12005 int
12006 main (void)
12007 {
12008
12009 int val __attribute__ ((unused));
12010 val = KOBJ_NAME_LEN;
12011
12012 ;
12013 return 0;
12014 }
12015
12016 _ACEOF
12017
12018
12019 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12020 echo "obj-m := conftest.o" >build/Makefile
12021 modpost_flag=''
12022 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12023 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12025 (eval $ac_try) 2>&5
12026 ac_status=$?
12027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12028 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12033 test $ac_status = 0; }; }; then :
12034
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036 $as_echo "yes" >&6; }
12037
12038 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
12039
12040
12041 else
12042 $as_echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12044
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12047
12048
12049
12050 fi
12051 rm -Rf build
12052
12053
12054
12055
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
12057 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
12058
12059
12060 cat confdefs.h - <<_ACEOF >conftest.c
12061
12062
12063 #include <linux/fs.h>
12064
12065 int
12066 main (void)
12067 {
12068
12069 struct block_device *bdev = NULL;
12070 (void) blkdev_get(bdev, 0, NULL);
12071
12072 ;
12073 return 0;
12074 }
12075
12076 _ACEOF
12077
12078
12079 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12080 echo "obj-m := conftest.o" >build/Makefile
12081 modpost_flag=''
12082 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12083 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12088 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12090 (eval $ac_try) 2>&5
12091 ac_status=$?
12092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12093 test $ac_status = 0; }; }; then :
12094
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12096 $as_echo "yes" >&6; }
12097
12098 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
12099
12100
12101 else
12102 $as_echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12104
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106 $as_echo "no" >&6; }
12107
12108
12109
12110 fi
12111 rm -Rf build
12112
12113
12114
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
12116 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
12117
12118
12119
12120 cat confdefs.h - <<_ACEOF >conftest.c
12121
12122
12123 #include <linux/fs.h>
12124
12125 int
12126 main (void)
12127 {
12128
12129 blkdev_get_by_path(NULL, 0, NULL);
12130
12131 ;
12132 return 0;
12133 }
12134
12135 _ACEOF
12136
12137
12138 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12139 echo "obj-m := conftest.o" >build/Makefile
12140 modpost_flag=''
12141 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12142 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12144 (eval $ac_try) 2>&5
12145 ac_status=$?
12146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12147 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12149 (eval $ac_try) 2>&5
12150 ac_status=$?
12151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12152 test $ac_status = 0; }; }; then :
12153 rc=0
12154 else
12155 $as_echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12157 rc=1
12158
12159
12160 fi
12161 rm -Rf build
12162
12163
12164 if test $rc -ne 0; then :
12165
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167 $as_echo "no" >&6; }
12168
12169 else
12170 if test "x$enable_linux_builtin" != xyes; then
12171
12172 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12173 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12174 rc=$?
12175 if test $rc -ne 0; then
12176 export=0
12177 for file in fs/block_dev.c; do
12178 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
12179 "$LINUX/$file" 2>/dev/null
12180 rc=$?
12181 if test $rc -eq 0; then
12182 export=1
12183 break;
12184 fi
12185 done
12186 if test $export -eq 0; then :
12187 rc=1
12188 else :
12189 rc=0
12190 fi
12191 else :
12192 rc=0
12193 fi
12194
12195 fi
12196 if test $rc -ne 0; then :
12197
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199 $as_echo "no" >&6; }
12200
12201 else :
12202
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12204 $as_echo "yes" >&6; }
12205
12206 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
12207
12208
12209 fi
12210 fi
12211
12212
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
12214 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
12215
12216
12217
12218 cat confdefs.h - <<_ACEOF >conftest.c
12219
12220
12221 #include <linux/fs.h>
12222
12223 int
12224 main (void)
12225 {
12226
12227 open_bdev_exclusive(NULL, 0, NULL);
12228
12229 ;
12230 return 0;
12231 }
12232
12233 _ACEOF
12234
12235
12236 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12237 echo "obj-m := conftest.o" >build/Makefile
12238 modpost_flag=''
12239 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12240 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12242 (eval $ac_try) 2>&5
12243 ac_status=$?
12244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12245 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
12249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12250 test $ac_status = 0; }; }; then :
12251 rc=0
12252 else
12253 $as_echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12255 rc=1
12256
12257
12258 fi
12259 rm -Rf build
12260
12261
12262 if test $rc -ne 0; then :
12263
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12266
12267 else
12268 if test "x$enable_linux_builtin" != xyes; then
12269
12270 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12271 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12272 rc=$?
12273 if test $rc -ne 0; then
12274 export=0
12275 for file in fs/block_dev.c; do
12276 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
12277 "$LINUX/$file" 2>/dev/null
12278 rc=$?
12279 if test $rc -eq 0; then
12280 export=1
12281 break;
12282 fi
12283 done
12284 if test $export -eq 0; then :
12285 rc=1
12286 else :
12287 rc=0
12288 fi
12289 else :
12290 rc=0
12291 fi
12292
12293 fi
12294 if test $rc -ne 0; then :
12295
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297 $as_echo "no" >&6; }
12298
12299 else :
12300
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12302 $as_echo "yes" >&6; }
12303
12304 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
12305
12306
12307 fi
12308 fi
12309
12310
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
12312 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
12313
12314
12315
12316 cat confdefs.h - <<_ACEOF >conftest.c
12317
12318
12319 #include <linux/fs.h>
12320
12321 int
12322 main (void)
12323 {
12324
12325 lookup_bdev(NULL);
12326
12327 ;
12328 return 0;
12329 }
12330
12331 _ACEOF
12332
12333
12334 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12335 echo "obj-m := conftest.o" >build/Makefile
12336 modpost_flag=''
12337 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12338 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12343 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
12347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12348 test $ac_status = 0; }; }; then :
12349 rc=0
12350 else
12351 $as_echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12353 rc=1
12354
12355
12356 fi
12357 rm -Rf build
12358
12359
12360 if test $rc -ne 0; then :
12361
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12364
12365 else
12366 if test "x$enable_linux_builtin" != xyes; then
12367
12368 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
12369 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12370 rc=$?
12371 if test $rc -ne 0; then
12372 export=0
12373 for file in fs/block_dev.c; do
12374 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
12375 "$LINUX/$file" 2>/dev/null
12376 rc=$?
12377 if test $rc -eq 0; then
12378 export=1
12379 break;
12380 fi
12381 done
12382 if test $export -eq 0; then :
12383 rc=1
12384 else :
12385 rc=0
12386 fi
12387 else :
12388 rc=0
12389 fi
12390
12391 fi
12392 if test $rc -ne 0; then :
12393
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12396
12397 else :
12398
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12400 $as_echo "yes" >&6; }
12401
12402 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
12403
12404
12405 fi
12406 fi
12407
12408
12409
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
12411 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12412
12413
12414 cat confdefs.h - <<_ACEOF >conftest.c
12415
12416
12417 #include <linux/buffer_head.h>
12418
12419 int
12420 main (void)
12421 {
12422
12423 struct block_device *bdev = NULL;
12424 invalidate_bdev(bdev);
12425
12426 ;
12427 return 0;
12428 }
12429
12430 _ACEOF
12431
12432
12433 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12434 echo "obj-m := conftest.o" >build/Makefile
12435 modpost_flag=''
12436 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12437 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12442 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12444 (eval $ac_try) 2>&5
12445 ac_status=$?
12446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12447 test $ac_status = 0; }; }; then :
12448
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12450 $as_echo "yes" >&6; }
12451
12452 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
12453
12454
12455 else
12456 $as_echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12458
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460 $as_echo "no" >&6; }
12461
12462
12463
12464 fi
12465 rm -Rf build
12466
12467
12468
12469
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
12471 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12472 tmp_flags="$EXTRA_KCFLAGS"
12473 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
12474
12475
12476 cat confdefs.h - <<_ACEOF >conftest.c
12477
12478
12479 #include <linux/blkdev.h>
12480
12481 int
12482 main (void)
12483 {
12484
12485 struct block_device *bdev = NULL;
12486 bdev_logical_block_size(bdev);
12487
12488 ;
12489 return 0;
12490 }
12491
12492 _ACEOF
12493
12494
12495 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12496 echo "obj-m := conftest.o" >build/Makefile
12497 modpost_flag=''
12498 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12499 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12504 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12509 test $ac_status = 0; }; }; then :
12510
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12512 $as_echo "yes" >&6; }
12513
12514 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
12515
12516
12517 else
12518 $as_echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12520
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522 $as_echo "no" >&6; }
12523
12524
12525
12526 fi
12527 rm -Rf build
12528
12529
12530 EXTRA_KCFLAGS="$tmp_flags"
12531
12532
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
12534 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
12535 tmp_flags="$EXTRA_KCFLAGS"
12536 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
12537
12538
12539 cat confdefs.h - <<_ACEOF >conftest.c
12540
12541
12542 #include <linux/blkdev.h>
12543
12544 int
12545 main (void)
12546 {
12547
12548 struct block_device *bdev = NULL;
12549 bdev_physical_block_size(bdev);
12550
12551 ;
12552 return 0;
12553 }
12554
12555 _ACEOF
12556
12557
12558 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12559 echo "obj-m := conftest.o" >build/Makefile
12560 modpost_flag=''
12561 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12562 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12564 (eval $ac_try) 2>&5
12565 ac_status=$?
12566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12567 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12569 (eval $ac_try) 2>&5
12570 ac_status=$?
12571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12572 test $ac_status = 0; }; }; then :
12573
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12575 $as_echo "yes" >&6; }
12576
12577 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
12578
12579
12580 else
12581 $as_echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12583
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12586
12587
12588
12589 fi
12590 rm -Rf build
12591
12592
12593 EXTRA_KCFLAGS="$tmp_flags"
12594
12595
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST is defined" >&5
12597 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
12598
12599
12600 cat confdefs.h - <<_ACEOF >conftest.c
12601
12602
12603 #include <linux/bio.h>
12604
12605 int
12606 main (void)
12607 {
12608
12609 int flags __attribute__ ((unused));
12610 flags = (1 << BIO_RW_FAILFAST);
12611
12612 ;
12613 return 0;
12614 }
12615
12616 _ACEOF
12617
12618
12619 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12620 echo "obj-m := conftest.o" >build/Makefile
12621 modpost_flag=''
12622 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12623 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12625 (eval $ac_try) 2>&5
12626 ac_status=$?
12627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12628 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12633 test $ac_status = 0; }; }; then :
12634
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12636 $as_echo "yes" >&6; }
12637
12638 $as_echo "#define HAVE_BIO_RW_FAILFAST 1" >>confdefs.h
12639
12640
12641 else
12642 $as_echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12644
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12647
12648
12649
12650 fi
12651 rm -Rf build
12652
12653
12654
12655
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
12657 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
12658
12659
12660 cat confdefs.h - <<_ACEOF >conftest.c
12661
12662
12663 #include <linux/bio.h>
12664
12665 int
12666 main (void)
12667 {
12668
12669 int flags __attribute__ ((unused));
12670 flags = ((1 << BIO_RW_FAILFAST_DEV) |
12671 (1 << BIO_RW_FAILFAST_TRANSPORT) |
12672 (1 << BIO_RW_FAILFAST_DRIVER));
12673
12674 ;
12675 return 0;
12676 }
12677
12678 _ACEOF
12679
12680
12681 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12682 echo "obj-m := conftest.o" >build/Makefile
12683 modpost_flag=''
12684 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12685 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12687 (eval $ac_try) 2>&5
12688 ac_status=$?
12689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12690 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12692 (eval $ac_try) 2>&5
12693 ac_status=$?
12694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12695 test $ac_status = 0; }; }; then :
12696
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12698 $as_echo "yes" >&6; }
12699
12700 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
12701
12702
12703 else
12704 $as_echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12706
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708 $as_echo "no" >&6; }
12709
12710
12711
12712 fi
12713 rm -Rf build
12714
12715
12716
12717
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
12719 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
12720
12721
12722 cat confdefs.h - <<_ACEOF >conftest.c
12723
12724
12725 #include <linux/bio.h>
12726
12727 int
12728 main (void)
12729 {
12730
12731 int flags __attribute__ ((unused));
12732 flags = REQ_FAILFAST_MASK;
12733
12734 ;
12735 return 0;
12736 }
12737
12738 _ACEOF
12739
12740
12741 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12742 echo "obj-m := conftest.o" >build/Makefile
12743 modpost_flag=''
12744 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12745 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12750 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12752 (eval $ac_try) 2>&5
12753 ac_status=$?
12754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12755 test $ac_status = 0; }; }; then :
12756
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12758 $as_echo "yes" >&6; }
12759
12760 $as_echo "#define HAVE_BIO_REQ_FAILFAST_MASK 1" >>confdefs.h
12761
12762
12763 else
12764 $as_echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12766
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12769
12770
12771
12772 fi
12773 rm -Rf build
12774
12775
12776
12777
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 2 args" >&5
12779 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
12780
12781
12782 cat confdefs.h - <<_ACEOF >conftest.c
12783
12784
12785 #include <linux/bio.h>
12786
12787 void wanted_end_io(struct bio *bio, int x) { return; }
12788
12789 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
12790
12791 int
12792 main (void)
12793 {
12794
12795
12796 ;
12797 return 0;
12798 }
12799
12800 _ACEOF
12801
12802
12803 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12804 echo "obj-m := conftest.o" >build/Makefile
12805 modpost_flag=''
12806 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12807 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12809 (eval $ac_try) 2>&5
12810 ac_status=$?
12811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12812 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12817 test $ac_status = 0; }; }; then :
12818
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12820 $as_echo "yes" >&6; }
12821
12822 $as_echo "#define HAVE_2ARGS_BIO_END_IO_T 1" >>confdefs.h
12823
12824
12825 else
12826 $as_echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12828
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12831
12832
12833
12834 fi
12835 rm -Rf build
12836
12837
12838
12839
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNC is defined" >&5
12841 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
12842
12843
12844 cat confdefs.h - <<_ACEOF >conftest.c
12845
12846
12847 #include <linux/bio.h>
12848
12849 int
12850 main (void)
12851 {
12852
12853 int flags __attribute__ ((unused));
12854 flags = BIO_RW_SYNC;
12855
12856 ;
12857 return 0;
12858 }
12859
12860 _ACEOF
12861
12862
12863 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12864 echo "obj-m := conftest.o" >build/Makefile
12865 modpost_flag=''
12866 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12867 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12869 (eval $ac_try) 2>&5
12870 ac_status=$?
12871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12872 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12874 (eval $ac_try) 2>&5
12875 ac_status=$?
12876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12877 test $ac_status = 0; }; }; then :
12878
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12880 $as_echo "yes" >&6; }
12881
12882 $as_echo "#define HAVE_BIO_RW_SYNC 1" >>confdefs.h
12883
12884
12885 else
12886 $as_echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12888
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12891
12892
12893
12894 fi
12895 rm -Rf build
12896
12897
12898
12899
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNCIO is defined" >&5
12901 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
12902
12903
12904 cat confdefs.h - <<_ACEOF >conftest.c
12905
12906
12907 #include <linux/bio.h>
12908
12909 int
12910 main (void)
12911 {
12912
12913 int flags __attribute__ ((unused));
12914 flags = BIO_RW_SYNCIO;
12915
12916 ;
12917 return 0;
12918 }
12919
12920 _ACEOF
12921
12922
12923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12924 echo "obj-m := conftest.o" >build/Makefile
12925 modpost_flag=''
12926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12927 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12929 (eval $ac_try) 2>&5
12930 ac_status=$?
12931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12932 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12937 test $ac_status = 0; }; }; then :
12938
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12940 $as_echo "yes" >&6; }
12941
12942 $as_echo "#define HAVE_BIO_RW_SYNCIO 1" >>confdefs.h
12943
12944
12945 else
12946 $as_echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950 $as_echo "no" >&6; }
12951
12952
12953
12954 fi
12955 rm -Rf build
12956
12957
12958
12959
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_SYNC is defined" >&5
12961 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
12962
12963
12964 cat confdefs.h - <<_ACEOF >conftest.c
12965
12966
12967 #include <linux/bio.h>
12968
12969 int
12970 main (void)
12971 {
12972
12973 int flags __attribute__ ((unused));
12974 flags = REQ_SYNC;
12975
12976 ;
12977 return 0;
12978 }
12979
12980 _ACEOF
12981
12982
12983 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12984 echo "obj-m := conftest.o" >build/Makefile
12985 modpost_flag=''
12986 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12987 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12989 (eval $ac_try) 2>&5
12990 ac_status=$?
12991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12992 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12997 test $ac_status = 0; }; }; then :
12998
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13000 $as_echo "yes" >&6; }
13001
13002 $as_echo "#define HAVE_REQ_SYNC 1" >>confdefs.h
13003
13004
13005 else
13006 $as_echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13008
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13010 $as_echo "no" >&6; }
13011
13012
13013
13014 fi
13015 rm -Rf build
13016
13017
13018
13019
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is available" >&5
13021 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13022 tmp_flags="$EXTRA_KCFLAGS"
13023 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13024
13025
13026 cat confdefs.h - <<_ACEOF >conftest.c
13027
13028
13029 #include <linux/blkdev.h>
13030
13031 int
13032 main (void)
13033 {
13034
13035 struct request *req = NULL;
13036 (void) blk_end_request(req, 0, 0);
13037
13038 ;
13039 return 0;
13040 }
13041
13042 _ACEOF
13043
13044
13045 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13046 echo "obj-m := conftest.o" >build/Makefile
13047 modpost_flag=''
13048 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13049 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13051 (eval $ac_try) 2>&5
13052 ac_status=$?
13053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13054 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13056 (eval $ac_try) 2>&5
13057 ac_status=$?
13058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13059 test $ac_status = 0; }; }; then :
13060
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13062 $as_echo "yes" >&6; }
13063
13064 $as_echo "#define HAVE_BLK_END_REQUEST 1" >>confdefs.h
13065
13066
13067 else
13068 $as_echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13070
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 $as_echo "no" >&6; }
13073
13074
13075
13076 fi
13077 rm -Rf build
13078
13079
13080
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is GPL-only" >&5
13082 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13083
13084
13085 cat confdefs.h - <<_ACEOF >conftest.c
13086
13087
13088 #include <linux/module.h>
13089 #include <linux/blkdev.h>
13090
13091 MODULE_LICENSE("CDDL");
13092
13093 int
13094 main (void)
13095 {
13096
13097 struct request *req = NULL;
13098 (void) blk_end_request(req, 0, 0);
13099
13100 ;
13101 return 0;
13102 }
13103
13104 _ACEOF
13105
13106
13107 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13108 echo "obj-m := conftest.o" >build/Makefile
13109 modpost_flag=''
13110 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13111 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13113 (eval $ac_try) 2>&5
13114 ac_status=$?
13115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13116 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13118 (eval $ac_try) 2>&5
13119 ac_status=$?
13120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13121 test $ac_status = 0; }; }; then :
13122
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 $as_echo "no" >&6; }
13125
13126 else
13127 $as_echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13129
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13131 $as_echo "yes" >&6; }
13132
13133 $as_echo "#define HAVE_BLK_END_REQUEST_GPL_ONLY 1" >>confdefs.h
13134
13135
13136
13137
13138 fi
13139 rm -Rf build
13140
13141
13142 EXTRA_KCFLAGS="$tmp_flags"
13143
13144
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
13146 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
13147 tmp_flags="$EXTRA_KCFLAGS"
13148 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13149
13150
13151 cat confdefs.h - <<_ACEOF >conftest.c
13152
13153
13154 #include <linux/blkdev.h>
13155
13156 int
13157 main (void)
13158 {
13159
13160 struct request_queue *q = NULL;
13161 (void) blk_queue_flush(q, REQ_FLUSH);
13162
13163 ;
13164 return 0;
13165 }
13166
13167 _ACEOF
13168
13169
13170 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13171 echo "obj-m := conftest.o" >build/Makefile
13172 modpost_flag=''
13173 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13174 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13176 (eval $ac_try) 2>&5
13177 ac_status=$?
13178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13179 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13181 (eval $ac_try) 2>&5
13182 ac_status=$?
13183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13184 test $ac_status = 0; }; }; then :
13185
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13187 $as_echo "yes" >&6; }
13188
13189 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
13190
13191
13192 else
13193 $as_echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13195
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 $as_echo "no" >&6; }
13198
13199
13200
13201 fi
13202 rm -Rf build
13203
13204
13205
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
13207 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
13208
13209
13210 cat confdefs.h - <<_ACEOF >conftest.c
13211
13212
13213 #include <linux/module.h>
13214 #include <linux/blkdev.h>
13215
13216 MODULE_LICENSE("CDDL");
13217
13218 int
13219 main (void)
13220 {
13221
13222 struct request_queue *q = NULL;
13223 (void) blk_queue_flush(q, REQ_FLUSH);
13224
13225 ;
13226 return 0;
13227 }
13228
13229 _ACEOF
13230
13231
13232 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13233 echo "obj-m := conftest.o" >build/Makefile
13234 modpost_flag=''
13235 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13236 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13238 (eval $ac_try) 2>&5
13239 ac_status=$?
13240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13241 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13243 (eval $ac_try) 2>&5
13244 ac_status=$?
13245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13246 test $ac_status = 0; }; }; then :
13247
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13250
13251 else
13252 $as_echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13256 $as_echo "yes" >&6; }
13257
13258 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
13259
13260
13261
13262
13263 fi
13264 rm -Rf build
13265
13266
13267 EXTRA_KCFLAGS="$tmp_flags"
13268
13269
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
13271 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
13272 tmp_flags="$EXTRA_KCFLAGS"
13273 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13274
13275
13276 cat confdefs.h - <<_ACEOF >conftest.c
13277
13278
13279 #include <linux/blkdev.h>
13280
13281 int
13282 main (void)
13283 {
13284
13285 struct request_queue *q = NULL;
13286 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
13287
13288 ;
13289 return 0;
13290 }
13291
13292 _ACEOF
13293
13294
13295 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13296 echo "obj-m := conftest.o" >build/Makefile
13297 modpost_flag=''
13298 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13299 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13304 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13309 test $ac_status = 0; }; }; then :
13310
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13312 $as_echo "yes" >&6; }
13313
13314 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
13315
13316
13317 else
13318 $as_echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13320
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 $as_echo "no" >&6; }
13323
13324
13325
13326 fi
13327 rm -Rf build
13328
13329
13330 EXTRA_KCFLAGS="$tmp_flags"
13331
13332
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
13334 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
13335 tmp_flags="$EXTRA_KCFLAGS"
13336 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13337
13338
13339 cat confdefs.h - <<_ACEOF >conftest.c
13340
13341
13342 #include <linux/blkdev.h>
13343
13344 int
13345 main (void)
13346 {
13347
13348 struct request_queue *q = NULL;
13349 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
13350
13351 ;
13352 return 0;
13353 }
13354
13355 _ACEOF
13356
13357
13358 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13359 echo "obj-m := conftest.o" >build/Makefile
13360 modpost_flag=''
13361 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13362 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13364 (eval $ac_try) 2>&5
13365 ac_status=$?
13366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13367 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13369 (eval $ac_try) 2>&5
13370 ac_status=$?
13371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13372 test $ac_status = 0; }; }; then :
13373
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13375 $as_echo "yes" >&6; }
13376
13377 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
13378
13379
13380 else
13381 $as_echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.$ac_ext >&5
13383
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13385 $as_echo "no" >&6; }
13386
13387
13388
13389 fi
13390 rm -Rf build
13391
13392
13393 EXTRA_KCFLAGS="$tmp_flags"
13394
13395
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_physical_block_size() is available" >&5
13397 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
13398 tmp_flags="$EXTRA_KCFLAGS"
13399 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13400
13401
13402 cat confdefs.h - <<_ACEOF >conftest.c
13403
13404
13405 #include <linux/blkdev.h>
13406
13407 int
13408 main (void)
13409 {
13410
13411 struct request_queue *q = NULL;
13412 unsigned short block_size = 1;
13413 (void) blk_queue_physical_block_size(q, block_size);
13414
13415 ;
13416 return 0;
13417 }
13418
13419 _ACEOF
13420
13421
13422 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13423 echo "obj-m := conftest.o" >build/Makefile
13424 modpost_flag=''
13425 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13426 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13428 (eval $ac_try) 2>&5
13429 ac_status=$?
13430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13431 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13433 (eval $ac_try) 2>&5
13434 ac_status=$?
13435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13436 test $ac_status = 0; }; }; then :
13437
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13439 $as_echo "yes" >&6; }
13440
13441 $as_echo "#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
13442
13443
13444 else
13445 $as_echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13447
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13450
13451
13452
13453 fi
13454 rm -Rf build
13455
13456
13457 EXTRA_KCFLAGS="$tmp_flags"
13458
13459
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_io_opt() is available" >&5
13461 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
13462 tmp_flags="$EXTRA_KCFLAGS"
13463 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13464
13465
13466 cat confdefs.h - <<_ACEOF >conftest.c
13467
13468
13469 #include <linux/blkdev.h>
13470
13471 int
13472 main (void)
13473 {
13474
13475 struct request_queue *q = NULL;
13476 unsigned int opt = 1;
13477 (void) blk_queue_io_opt(q, opt);
13478
13479 ;
13480 return 0;
13481 }
13482
13483 _ACEOF
13484
13485
13486 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13487 echo "obj-m := conftest.o" >build/Makefile
13488 modpost_flag=''
13489 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13490 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13495 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13497 (eval $ac_try) 2>&5
13498 ac_status=$?
13499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13500 test $ac_status = 0; }; }; then :
13501
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13503 $as_echo "yes" >&6; }
13504
13505 $as_echo "#define HAVE_BLK_QUEUE_IO_OPT 1" >>confdefs.h
13506
13507
13508 else
13509 $as_echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13511
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 $as_echo "no" >&6; }
13514
13515
13516
13517 fi
13518 rm -Rf build
13519
13520
13521 EXTRA_KCFLAGS="$tmp_flags"
13522
13523
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_nonrot() is available" >&5
13525 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
13526 tmp_flags="$EXTRA_KCFLAGS"
13527 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13528
13529
13530 cat confdefs.h - <<_ACEOF >conftest.c
13531
13532
13533 #include <linux/blkdev.h>
13534
13535 int
13536 main (void)
13537 {
13538
13539 struct request_queue *q = NULL;
13540 (void) blk_queue_nonrot(q);
13541
13542 ;
13543 return 0;
13544 }
13545
13546 _ACEOF
13547
13548
13549 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13550 echo "obj-m := conftest.o" >build/Makefile
13551 modpost_flag=''
13552 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13553 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13555 (eval $ac_try) 2>&5
13556 ac_status=$?
13557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13558 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13560 (eval $ac_try) 2>&5
13561 ac_status=$?
13562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13563 test $ac_status = 0; }; }; then :
13564
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13566 $as_echo "yes" >&6; }
13567
13568 $as_echo "#define HAVE_BLK_QUEUE_NONROT 1" >>confdefs.h
13569
13570
13571 else
13572 $as_echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13574
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13576 $as_echo "no" >&6; }
13577
13578
13579
13580 fi
13581 rm -Rf build
13582
13583
13584 EXTRA_KCFLAGS="$tmp_flags"
13585
13586
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_discard() is available" >&5
13588 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
13589 tmp_flags="$EXTRA_KCFLAGS"
13590 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13591
13592
13593 cat confdefs.h - <<_ACEOF >conftest.c
13594
13595
13596 #include <linux/blkdev.h>
13597
13598 int
13599 main (void)
13600 {
13601
13602 struct request_queue *q = NULL;
13603 (void) blk_queue_discard(q);
13604
13605 ;
13606 return 0;
13607 }
13608
13609 _ACEOF
13610
13611
13612 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13613 echo "obj-m := conftest.o" >build/Makefile
13614 modpost_flag=''
13615 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13616 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13618 (eval $ac_try) 2>&5
13619 ac_status=$?
13620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13621 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13623 (eval $ac_try) 2>&5
13624 ac_status=$?
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626 test $ac_status = 0; }; }; then :
13627
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13629 $as_echo "yes" >&6; }
13630
13631 $as_echo "#define HAVE_BLK_QUEUE_DISCARD 1" >>confdefs.h
13632
13633
13634 else
13635 $as_echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13639 $as_echo "no" >&6; }
13640
13641
13642
13643 fi
13644 rm -Rf build
13645
13646
13647 EXTRA_KCFLAGS="$tmp_flags"
13648
13649
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_fetch_request() is available" >&5
13651 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
13652 tmp_flags="$EXTRA_KCFLAGS"
13653 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13654
13655
13656 cat confdefs.h - <<_ACEOF >conftest.c
13657
13658
13659 #include <linux/blkdev.h>
13660
13661 int
13662 main (void)
13663 {
13664
13665 struct request_queue *q = NULL;
13666 (void) blk_fetch_request(q);
13667
13668 ;
13669 return 0;
13670 }
13671
13672 _ACEOF
13673
13674
13675 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13676 echo "obj-m := conftest.o" >build/Makefile
13677 modpost_flag=''
13678 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13679 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13681 (eval $ac_try) 2>&5
13682 ac_status=$?
13683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13684 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13689 test $ac_status = 0; }; }; then :
13690
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13692 $as_echo "yes" >&6; }
13693
13694 $as_echo "#define HAVE_BLK_FETCH_REQUEST 1" >>confdefs.h
13695
13696
13697 else
13698 $as_echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13702 $as_echo "no" >&6; }
13703
13704
13705
13706 fi
13707 rm -Rf build
13708
13709
13710 EXTRA_KCFLAGS="$tmp_flags"
13711
13712
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_requeue_request() is available" >&5
13714 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13715 tmp_flags="$EXTRA_KCFLAGS"
13716 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13717
13718
13719 cat confdefs.h - <<_ACEOF >conftest.c
13720
13721
13722 #include <linux/blkdev.h>
13723
13724 int
13725 main (void)
13726 {
13727
13728 struct request_queue *q = NULL;
13729 struct request *req = NULL;
13730 blk_requeue_request(q, req);
13731
13732 ;
13733 return 0;
13734 }
13735
13736 _ACEOF
13737
13738
13739 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13740 echo "obj-m := conftest.o" >build/Makefile
13741 modpost_flag=''
13742 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13743 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13745 (eval $ac_try) 2>&5
13746 ac_status=$?
13747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13748 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13753 test $ac_status = 0; }; }; then :
13754
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13756 $as_echo "yes" >&6; }
13757
13758 $as_echo "#define HAVE_BLK_REQUEUE_REQUEST 1" >>confdefs.h
13759
13760
13761 else
13762 $as_echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13764
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766 $as_echo "no" >&6; }
13767
13768
13769
13770 fi
13771 rm -Rf build
13772
13773
13774 EXTRA_KCFLAGS="$tmp_flags"
13775
13776
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is available" >&5
13778 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13779 tmp_flags="$EXTRA_KCFLAGS"
13780 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13781
13782
13783 cat confdefs.h - <<_ACEOF >conftest.c
13784
13785
13786 #include <linux/blkdev.h>
13787
13788 int
13789 main (void)
13790 {
13791
13792 struct request *req = NULL;
13793 (void) blk_rq_bytes(req);
13794
13795 ;
13796 return 0;
13797 }
13798
13799 _ACEOF
13800
13801
13802 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13803 echo "obj-m := conftest.o" >build/Makefile
13804 modpost_flag=''
13805 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13806 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13808 (eval $ac_try) 2>&5
13809 ac_status=$?
13810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13811 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13816 test $ac_status = 0; }; }; then :
13817
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13819 $as_echo "yes" >&6; }
13820
13821 $as_echo "#define HAVE_BLK_RQ_BYTES 1" >>confdefs.h
13822
13823
13824 else
13825 $as_echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13827
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13829 $as_echo "no" >&6; }
13830
13831
13832
13833 fi
13834 rm -Rf build
13835
13836
13837
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is GPL-only" >&5
13839 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13840
13841
13842 cat confdefs.h - <<_ACEOF >conftest.c
13843
13844
13845 #include <linux/module.h>
13846 #include <linux/blkdev.h>
13847
13848 MODULE_LICENSE("CDDL");
13849
13850 int
13851 main (void)
13852 {
13853
13854 struct request *req = NULL;
13855 (void) blk_rq_bytes(req);
13856
13857 ;
13858 return 0;
13859 }
13860
13861 _ACEOF
13862
13863
13864 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13865 echo "obj-m := conftest.o" >build/Makefile
13866 modpost_flag=''
13867 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13868 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13870 (eval $ac_try) 2>&5
13871 ac_status=$?
13872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13873 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13875 (eval $ac_try) 2>&5
13876 ac_status=$?
13877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13878 test $ac_status = 0; }; }; then :
13879
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13881 $as_echo "no" >&6; }
13882
13883 else
13884 $as_echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13886
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13888 $as_echo "yes" >&6; }
13889
13890 $as_echo "#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1" >>confdefs.h
13891
13892
13893
13894
13895 fi
13896 rm -Rf build
13897
13898
13899 EXTRA_KCFLAGS="$tmp_flags"
13900
13901
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_pos() is available" >&5
13903 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13904 tmp_flags="$EXTRA_KCFLAGS"
13905 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13906
13907
13908 cat confdefs.h - <<_ACEOF >conftest.c
13909
13910
13911 #include <linux/blkdev.h>
13912
13913 int
13914 main (void)
13915 {
13916
13917 struct request *req = NULL;
13918 (void) blk_rq_pos(req);
13919
13920 ;
13921 return 0;
13922 }
13923
13924 _ACEOF
13925
13926
13927 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13928 echo "obj-m := conftest.o" >build/Makefile
13929 modpost_flag=''
13930 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13931 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13936 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13941 test $ac_status = 0; }; }; then :
13942
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13944 $as_echo "yes" >&6; }
13945
13946 $as_echo "#define HAVE_BLK_RQ_POS 1" >>confdefs.h
13947
13948
13949 else
13950 $as_echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13954 $as_echo "no" >&6; }
13955
13956
13957
13958 fi
13959 rm -Rf build
13960
13961
13962 EXTRA_KCFLAGS="$tmp_flags"
13963
13964
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_sectors() is available" >&5
13966 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13967 tmp_flags="$EXTRA_KCFLAGS"
13968 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13969
13970
13971 cat confdefs.h - <<_ACEOF >conftest.c
13972
13973
13974 #include <linux/blkdev.h>
13975
13976 int
13977 main (void)
13978 {
13979
13980 struct request *req = NULL;
13981 (void) blk_rq_sectors(req);
13982
13983 ;
13984 return 0;
13985 }
13986
13987 _ACEOF
13988
13989
13990 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13991 echo "obj-m := conftest.o" >build/Makefile
13992 modpost_flag=''
13993 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13994 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13996 (eval $ac_try) 2>&5
13997 ac_status=$?
13998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13999 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14001 (eval $ac_try) 2>&5
14002 ac_status=$?
14003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14004 test $ac_status = 0; }; }; then :
14005
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14007 $as_echo "yes" >&6; }
14008
14009 $as_echo "#define HAVE_BLK_RQ_SECTORS 1" >>confdefs.h
14010
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
14019
14020
14021 fi
14022 rm -Rf build
14023
14024
14025 EXTRA_KCFLAGS="$tmp_flags"
14026
14027
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
14029 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14030 tmp_flags="$EXTRA_KCFLAGS"
14031 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14032
14033
14034 cat confdefs.h - <<_ACEOF >conftest.c
14035
14036
14037 #include <linux/blkdev.h>
14038
14039 int
14040 main (void)
14041 {
14042
14043 struct gendisk *disk = NULL;
14044 (void) get_disk_ro(disk);
14045
14046 ;
14047 return 0;
14048 }
14049
14050 _ACEOF
14051
14052
14053 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14054 echo "obj-m := conftest.o" >build/Makefile
14055 modpost_flag=''
14056 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14057 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14059 (eval $ac_try) 2>&5
14060 ac_status=$?
14061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14062 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14064 (eval $ac_try) 2>&5
14065 ac_status=$?
14066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14067 test $ac_status = 0; }; }; then :
14068
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14070 $as_echo "yes" >&6; }
14071
14072 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
14073
14074
14075 else
14076 $as_echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14078
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080 $as_echo "no" >&6; }
14081
14082
14083
14084 fi
14085 rm -Rf build
14086
14087
14088 EXTRA_KCFLAGS="$tmp_flags"
14089
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
14091 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
14092
14093
14094
14095 cat confdefs.h - <<_ACEOF >conftest.c
14096
14097
14098 #include <linux/genhd.h>
14099
14100 int
14101 main (void)
14102 {
14103
14104 get_gendisk(0, NULL);
14105
14106 ;
14107 return 0;
14108 }
14109
14110 _ACEOF
14111
14112
14113 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14114 echo "obj-m := conftest.o" >build/Makefile
14115 modpost_flag=''
14116 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14117 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14122 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14124 (eval $ac_try) 2>&5
14125 ac_status=$?
14126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14127 test $ac_status = 0; }; }; then :
14128 rc=0
14129 else
14130 $as_echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14132 rc=1
14133
14134
14135 fi
14136 rm -Rf build
14137
14138
14139 if test $rc -ne 0; then :
14140
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14142 $as_echo "no" >&6; }
14143
14144 else
14145 if test "x$enable_linux_builtin" != xyes; then
14146
14147 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
14148 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14149 rc=$?
14150 if test $rc -ne 0; then
14151 export=0
14152 for file in block/genhd.c; do
14153 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
14154 "$LINUX/$file" 2>/dev/null
14155 rc=$?
14156 if test $rc -eq 0; then
14157 export=1
14158 break;
14159 fi
14160 done
14161 if test $export -eq 0; then :
14162 rc=1
14163 else :
14164 rc=0
14165 fi
14166 else :
14167 rc=0
14168 fi
14169
14170 fi
14171 if test $rc -ne 0; then :
14172
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14174 $as_echo "no" >&6; }
14175
14176 else :
14177
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14179 $as_echo "yes" >&6; }
14180
14181 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
14182
14183
14184 fi
14185 fi
14186
14187
14188
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_is_sync() is available" >&5
14190 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
14191 tmp_flags="$EXTRA_KCFLAGS"
14192 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14193
14194
14195 cat confdefs.h - <<_ACEOF >conftest.c
14196
14197
14198 #include <linux/blkdev.h>
14199
14200 int
14201 main (void)
14202 {
14203
14204 struct request *req = NULL;
14205 (void) rq_is_sync(req);
14206
14207 ;
14208 return 0;
14209 }
14210
14211 _ACEOF
14212
14213
14214 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14215 echo "obj-m := conftest.o" >build/Makefile
14216 modpost_flag=''
14217 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14218 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14220 (eval $ac_try) 2>&5
14221 ac_status=$?
14222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14223 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14225 (eval $ac_try) 2>&5
14226 ac_status=$?
14227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14228 test $ac_status = 0; }; }; then :
14229
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14231 $as_echo "yes" >&6; }
14232
14233 $as_echo "#define HAVE_RQ_IS_SYNC 1" >>confdefs.h
14234
14235
14236 else
14237 $as_echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14239
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14241 $as_echo "no" >&6; }
14242
14243
14244
14245 fi
14246 rm -Rf build
14247
14248
14249 EXTRA_KCFLAGS="$tmp_flags"
14250
14251
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() is available" >&5
14253 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
14254 tmp_flags="$EXTRA_KCFLAGS"
14255 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14256
14257
14258 cat confdefs.h - <<_ACEOF >conftest.c
14259
14260
14261 #include <linux/blkdev.h>
14262
14263 int
14264 main (void)
14265 {
14266
14267 struct bio_vec *bv;
14268 struct req_iterator iter;
14269 struct request *req = NULL;
14270 rq_for_each_segment(bv, req, iter) { }
14271
14272 ;
14273 return 0;
14274 }
14275
14276 _ACEOF
14277
14278
14279 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14280 echo "obj-m := conftest.o" >build/Makefile
14281 modpost_flag=''
14282 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14283 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14285 (eval $ac_try) 2>&5
14286 ac_status=$?
14287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14288 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14293 test $ac_status = 0; }; }; then :
14294
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14296 $as_echo "yes" >&6; }
14297
14298 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
14299
14300
14301 else
14302 $as_echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14304
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14306 $as_echo "no" >&6; }
14307
14308
14309
14310 fi
14311 rm -Rf build
14312
14313
14314 EXTRA_KCFLAGS="$tmp_flags"
14315
14316
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
14318 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
14319
14320
14321 cat confdefs.h - <<_ACEOF >conftest.c
14322
14323
14324 #include <linux/blkdev.h>
14325
14326 int
14327 main (void)
14328 {
14329
14330 struct queue_limits ql __attribute__ ((unused));
14331
14332 ql.discard_granularity = 0;
14333
14334 ;
14335 return 0;
14336 }
14337
14338 _ACEOF
14339
14340
14341 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14342 echo "obj-m := conftest.o" >build/Makefile
14343 modpost_flag=''
14344 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14345 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14347 (eval $ac_try) 2>&5
14348 ac_status=$?
14349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14350 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14352 (eval $ac_try) 2>&5
14353 ac_status=$?
14354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14355 test $ac_status = 0; }; }; then :
14356
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14358 $as_echo "yes" >&6; }
14359
14360 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
14361
14362
14363 else
14364 $as_echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368 $as_echo "no" >&6; }
14369
14370
14371
14372 fi
14373 rm -Rf build
14374
14375
14376
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_hander" >&5
14378 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
14379
14380
14381 cat confdefs.h - <<_ACEOF >conftest.c
14382
14383
14384 #include <linux/fs.h>
14385 #include <linux/xattr.h>
14386
14387 const struct xattr_handler xattr_test_handler = {
14388 .prefix = "test",
14389 .get = NULL,
14390 .set = NULL,
14391 };
14392
14393 const struct xattr_handler *xattr_handlers[] = {
14394 &xattr_test_handler,
14395 };
14396
14397 int
14398 main (void)
14399 {
14400
14401 struct super_block sb __attribute__ ((unused));
14402
14403 sb.s_xattr = xattr_handlers;
14404
14405 ;
14406 return 0;
14407 }
14408
14409 _ACEOF
14410
14411
14412 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14413 echo "obj-m := conftest.o" >build/Makefile
14414 modpost_flag=''
14415 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14416 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14418 (eval $ac_try) 2>&5
14419 ac_status=$?
14420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14421 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14423 (eval $ac_try) 2>&5
14424 ac_status=$?
14425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14426 test $ac_status = 0; }; }; then :
14427
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14429 $as_echo "yes" >&6; }
14430
14431 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
14432
14433
14434 else
14435 $as_echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14437
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14439 $as_echo "no" >&6; }
14440
14441
14442
14443 fi
14444 rm -Rf build
14445
14446
14447
14448
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
14450 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14451
14452
14453 cat confdefs.h - <<_ACEOF >conftest.c
14454
14455
14456 #include <linux/xattr.h>
14457
14458 int
14459 main (void)
14460 {
14461
14462 int (*get)(struct dentry *dentry, const char *name,
14463 void *buffer, size_t size, int handler_flags) = NULL;
14464 struct xattr_handler xops __attribute__ ((unused));
14465
14466 xops.get = get;
14467
14468 ;
14469 return 0;
14470 }
14471
14472 _ACEOF
14473
14474
14475 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14476 echo "obj-m := conftest.o" >build/Makefile
14477 modpost_flag=''
14478 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14479 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14481 (eval $ac_try) 2>&5
14482 ac_status=$?
14483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14484 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14486 (eval $ac_try) 2>&5
14487 ac_status=$?
14488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14489 test $ac_status = 0; }; }; then :
14490
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14492 $as_echo "yes" >&6; }
14493
14494 $as_echo "#define HAVE_DENTRY_XATTR_GET 1" >>confdefs.h
14495
14496
14497 else
14498 $as_echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14500
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502 $as_echo "no" >&6; }
14503
14504
14505
14506 fi
14507 rm -Rf build
14508
14509
14510
14511
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
14513 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
14514
14515
14516 cat confdefs.h - <<_ACEOF >conftest.c
14517
14518
14519 #include <linux/xattr.h>
14520
14521 int
14522 main (void)
14523 {
14524
14525 int (*set)(struct dentry *dentry, const char *name,
14526 const void *buffer, size_t size, int flags,
14527 int handler_flags) = NULL;
14528 struct xattr_handler xops __attribute__ ((unused));
14529
14530 xops.set = set;
14531
14532 ;
14533 return 0;
14534 }
14535
14536 _ACEOF
14537
14538
14539 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14540 echo "obj-m := conftest.o" >build/Makefile
14541 modpost_flag=''
14542 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14543 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14545 (eval $ac_try) 2>&5
14546 ac_status=$?
14547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14548 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14550 (eval $ac_try) 2>&5
14551 ac_status=$?
14552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14553 test $ac_status = 0; }; }; then :
14554
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14556 $as_echo "yes" >&6; }
14557
14558 $as_echo "#define HAVE_DENTRY_XATTR_SET 1" >>confdefs.h
14559
14560
14561 else
14562 $as_echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14564
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566 $as_echo "no" >&6; }
14567
14568
14569
14570 fi
14571 rm -Rf build
14572
14573
14574
14575
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
14577 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
14578
14579
14580
14581 cat confdefs.h - <<_ACEOF >conftest.c
14582
14583
14584 #include <linux/fs.h>
14585
14586 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
14587 static struct super_operations sops __attribute__ ((unused)) = {
14588 .show_options = show_options,
14589 };
14590
14591 int
14592 main (void)
14593 {
14594
14595
14596 ;
14597 return 0;
14598 }
14599
14600 _ACEOF
14601
14602
14603 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14604 echo "obj-m := conftest.o" >build/Makefile
14605 modpost_flag=''
14606 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14607 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14609 (eval $ac_try) 2>&5
14610 ac_status=$?
14611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14612 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14614 (eval $ac_try) 2>&5
14615 ac_status=$?
14616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14617 test $ac_status = 0; }; }; then :
14618
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14620 $as_echo "yes" >&6; }
14621
14622 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
14623
14624
14625 else
14626 $as_echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14628
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630 $as_echo "no" >&6; }
14631
14632
14633
14634 fi
14635 rm -Rf build
14636
14637
14638
14639
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
14641 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
14642
14643
14644
14645 cat confdefs.h - <<_ACEOF >conftest.c
14646
14647
14648 #include <linux/fs.h>
14649
14650 int test_fsync(struct file *f, struct dentry *dentry, int x)
14651 { return 0; }
14652
14653 static const struct file_operations
14654 fops __attribute__ ((unused)) = {
14655 .fsync = test_fsync,
14656 };
14657
14658 int
14659 main (void)
14660 {
14661
14662
14663 ;
14664 return 0;
14665 }
14666
14667 _ACEOF
14668
14669
14670 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14671 echo "obj-m := conftest.o" >build/Makefile
14672 modpost_flag=''
14673 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14674 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14676 (eval $ac_try) 2>&5
14677 ac_status=$?
14678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14679 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14681 (eval $ac_try) 2>&5
14682 ac_status=$?
14683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14684 test $ac_status = 0; }; }; then :
14685
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
14687 $as_echo "dentry" >&6; }
14688
14689 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
14690
14691
14692 else
14693 $as_echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14695
14696
14697
14698
14699 fi
14700 rm -Rf build
14701
14702
14703
14704
14705
14706
14707 cat confdefs.h - <<_ACEOF >conftest.c
14708
14709
14710 #include <linux/fs.h>
14711
14712 int test_fsync(struct file *f, int x) { return 0; }
14713
14714 static const struct file_operations
14715 fops __attribute__ ((unused)) = {
14716 .fsync = test_fsync,
14717 };
14718
14719 int
14720 main (void)
14721 {
14722
14723
14724 ;
14725 return 0;
14726 }
14727
14728 _ACEOF
14729
14730
14731 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14732 echo "obj-m := conftest.o" >build/Makefile
14733 modpost_flag=''
14734 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14735 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14737 (eval $ac_try) 2>&5
14738 ac_status=$?
14739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14740 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14742 (eval $ac_try) 2>&5
14743 ac_status=$?
14744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14745 test $ac_status = 0; }; }; then :
14746
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
14748 $as_echo "no dentry" >&6; }
14749
14750 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
14751
14752
14753 else
14754 $as_echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757
14758
14759
14760 fi
14761 rm -Rf build
14762
14763
14764
14765
14766
14767
14768 cat confdefs.h - <<_ACEOF >conftest.c
14769
14770
14771 #include <linux/fs.h>
14772
14773 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
14774 { return 0; }
14775
14776 static const struct file_operations
14777 fops __attribute__ ((unused)) = {
14778 .fsync = test_fsync,
14779 };
14780
14781 int
14782 main (void)
14783 {
14784
14785
14786 ;
14787 return 0;
14788 }
14789
14790 _ACEOF
14791
14792
14793 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14794 echo "obj-m := conftest.o" >build/Makefile
14795 modpost_flag=''
14796 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14797 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14799 (eval $ac_try) 2>&5
14800 ac_status=$?
14801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14802 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14804 (eval $ac_try) 2>&5
14805 ac_status=$?
14806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14807 test $ac_status = 0; }; }; then :
14808
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
14810 $as_echo "range" >&6; }
14811
14812 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
14813
14814
14815 else
14816 $as_echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14818
14819
14820
14821
14822 fi
14823 rm -Rf build
14824
14825
14826
14827
14828
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
14830 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
14831
14832
14833 cat confdefs.h - <<_ACEOF >conftest.c
14834
14835
14836 #include <linux/fs.h>
14837 void evict_inode (struct inode * t) { return; }
14838 static struct super_operations sops __attribute__ ((unused)) = {
14839 .evict_inode = evict_inode,
14840 };
14841
14842 int
14843 main (void)
14844 {
14845
14846
14847 ;
14848 return 0;
14849 }
14850
14851 _ACEOF
14852
14853
14854 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14855 echo "obj-m := conftest.o" >build/Makefile
14856 modpost_flag=''
14857 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14858 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14860 (eval $ac_try) 2>&5
14861 ac_status=$?
14862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14863 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14865 (eval $ac_try) 2>&5
14866 ac_status=$?
14867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14868 test $ac_status = 0; }; }; then :
14869
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14871 $as_echo "yes" >&6; }
14872
14873 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
14874
14875
14876 else
14877 $as_echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14879
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14881 $as_echo "no" >&6; }
14882
14883
14884
14885 fi
14886 rm -Rf build
14887
14888
14889
14890
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
14892 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
14893
14894
14895 cat confdefs.h - <<_ACEOF >conftest.c
14896
14897
14898 #include <linux/fs.h>
14899
14900 void dirty_inode(struct inode *a, int b) { return; }
14901
14902 static const struct super_operations
14903 sops __attribute__ ((unused)) = {
14904 .dirty_inode = dirty_inode,
14905 };
14906
14907 int
14908 main (void)
14909 {
14910
14911
14912 ;
14913 return 0;
14914 }
14915
14916 _ACEOF
14917
14918
14919 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14920 echo "obj-m := conftest.o" >build/Makefile
14921 modpost_flag=''
14922 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14923 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14925 (eval $ac_try) 2>&5
14926 ac_status=$?
14927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14928 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14933 test $ac_status = 0; }; }; then :
14934
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14936 $as_echo "yes" >&6; }
14937
14938 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
14939
14940
14941 else
14942 $as_echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14946 $as_echo "no" >&6; }
14947
14948
14949
14950 fi
14951 rm -Rf build
14952
14953
14954
14955
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
14957 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
14958
14959
14960 cat confdefs.h - <<_ACEOF >conftest.c
14961
14962
14963 #include <linux/fs.h>
14964
14965 int nr_cached_objects(struct super_block *sb) { return 0; }
14966
14967 static const struct super_operations
14968 sops __attribute__ ((unused)) = {
14969 .nr_cached_objects = nr_cached_objects,
14970 };
14971
14972 int
14973 main (void)
14974 {
14975
14976
14977 ;
14978 return 0;
14979 }
14980
14981 _ACEOF
14982
14983
14984 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14985 echo "obj-m := conftest.o" >build/Makefile
14986 modpost_flag=''
14987 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14988 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14990 (eval $ac_try) 2>&5
14991 ac_status=$?
14992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14993 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14995 (eval $ac_try) 2>&5
14996 ac_status=$?
14997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14998 test $ac_status = 0; }; }; then :
14999
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15001 $as_echo "yes" >&6; }
15002
15003 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
15004
15005
15006 else
15007 $as_echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15009
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15011 $as_echo "no" >&6; }
15012
15013
15014
15015 fi
15016 rm -Rf build
15017
15018
15019
15020
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
15022 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
15023
15024
15025 cat confdefs.h - <<_ACEOF >conftest.c
15026
15027
15028 #include <linux/fs.h>
15029
15030 void free_cached_objects(struct super_block *sb, int x)
15031 { return; }
15032
15033 static const struct super_operations
15034 sops __attribute__ ((unused)) = {
15035 .free_cached_objects = free_cached_objects,
15036 };
15037
15038 int
15039 main (void)
15040 {
15041
15042
15043 ;
15044 return 0;
15045 }
15046
15047 _ACEOF
15048
15049
15050 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15051 echo "obj-m := conftest.o" >build/Makefile
15052 modpost_flag=''
15053 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15054 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15056 (eval $ac_try) 2>&5
15057 ac_status=$?
15058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15059 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15061 (eval $ac_try) 2>&5
15062 ac_status=$?
15063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15064 test $ac_status = 0; }; }; then :
15065
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15067 $as_echo "yes" >&6; }
15068
15069 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
15070
15071
15072 else
15073 $as_echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15075
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15077 $as_echo "no" >&6; }
15078
15079
15080
15081 fi
15082 rm -Rf build
15083
15084
15085
15086
15087
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
15089 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
15090
15091
15092 cat confdefs.h - <<_ACEOF >conftest.c
15093
15094
15095 #include <linux/fs.h>
15096
15097 long test_fallocate(struct file *file, int mode,
15098 loff_t offset, loff_t len) { return 0; }
15099
15100 static const struct file_operations
15101 fops __attribute__ ((unused)) = {
15102 .fallocate = test_fallocate,
15103 };
15104
15105 int
15106 main (void)
15107 {
15108
15109
15110 ;
15111 return 0;
15112 }
15113
15114 _ACEOF
15115
15116
15117 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15118 echo "obj-m := conftest.o" >build/Makefile
15119 modpost_flag=''
15120 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15121 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15123 (eval $ac_try) 2>&5
15124 ac_status=$?
15125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15126 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15128 (eval $ac_try) 2>&5
15129 ac_status=$?
15130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15131 test $ac_status = 0; }; }; then :
15132
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15134 $as_echo "yes" >&6; }
15135
15136 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
15137
15138
15139 else
15140 $as_echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15142
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15144 $as_echo "no" >&6; }
15145
15146
15147
15148 fi
15149 rm -Rf build
15150
15151
15152
15153
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
15155 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
15156
15157
15158 cat confdefs.h - <<_ACEOF >conftest.c
15159
15160
15161 #include <linux/fs.h>
15162
15163 long test_fallocate(struct inode *inode, int mode,
15164 loff_t offset, loff_t len) { return 0; }
15165
15166 static const struct inode_operations
15167 fops __attribute__ ((unused)) = {
15168 .fallocate = test_fallocate,
15169 };
15170
15171 int
15172 main (void)
15173 {
15174
15175
15176 ;
15177 return 0;
15178 }
15179
15180 _ACEOF
15181
15182
15183 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15184 echo "obj-m := conftest.o" >build/Makefile
15185 modpost_flag=''
15186 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15187 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15194 (eval $ac_try) 2>&5
15195 ac_status=$?
15196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15197 test $ac_status = 0; }; }; then :
15198
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15200 $as_echo "yes" >&6; }
15201
15202 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
15203
15204
15205 else
15206 $as_echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15208
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15210 $as_echo "no" >&6; }
15211
15212
15213
15214 fi
15215 rm -Rf build
15216
15217
15218
15219
15220
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
15222 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
15223
15224
15225 cat confdefs.h - <<_ACEOF >conftest.c
15226
15227
15228 #include <linux/fs.h>
15229
15230 int mkdir(struct inode *inode, struct dentry *dentry,
15231 umode_t umode) { return 0; }
15232
15233 static const struct inode_operations
15234 iops __attribute__ ((unused)) = {
15235 .mkdir = mkdir,
15236 };
15237
15238 int
15239 main (void)
15240 {
15241
15242
15243 ;
15244 return 0;
15245 }
15246
15247 _ACEOF
15248
15249
15250 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15251 echo "obj-m := conftest.o" >build/Makefile
15252 modpost_flag=''
15253 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15254 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15256 (eval $ac_try) 2>&5
15257 ac_status=$?
15258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15259 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15261 (eval $ac_try) 2>&5
15262 ac_status=$?
15263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15264 test $ac_status = 0; }; }; then :
15265
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15267 $as_echo "yes" >&6; }
15268
15269 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
15270
15271
15272 else
15273 $as_echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15275
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15277 $as_echo "no" >&6; }
15278
15279
15280
15281 fi
15282 rm -Rf build
15283
15284
15285
15286
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() takes struct nameidata" >&5
15288 $as_echo_n "checking whether iops->lookup() takes struct nameidata... " >&6; }
15289
15290
15291 cat confdefs.h - <<_ACEOF >conftest.c
15292
15293
15294 #include <linux/fs.h>
15295
15296 struct dentry *inode_lookup(struct inode *inode,
15297 struct dentry *dentry, struct nameidata *nidata)
15298 { return NULL; }
15299
15300 static const struct inode_operations iops
15301 __attribute__ ((unused)) = {
15302 .lookup = inode_lookup,
15303 };
15304
15305 int
15306 main (void)
15307 {
15308
15309
15310 ;
15311 return 0;
15312 }
15313
15314 _ACEOF
15315
15316
15317 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15318 echo "obj-m := conftest.o" >build/Makefile
15319 modpost_flag=''
15320 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15321 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15326 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15328 (eval $ac_try) 2>&5
15329 ac_status=$?
15330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15331 test $ac_status = 0; }; }; then :
15332
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15334 $as_echo "yes" >&6; }
15335
15336 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
15337
15338
15339 else
15340 $as_echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15342
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15344 $as_echo "no" >&6; }
15345
15346
15347
15348 fi
15349 rm -Rf build
15350
15351
15352
15353
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() takes struct nameidata" >&5
15355 $as_echo_n "checking whether iops->create() takes struct nameidata... " >&6; }
15356
15357
15358 cat confdefs.h - <<_ACEOF >conftest.c
15359
15360
15361 #include <linux/fs.h>
15362
15363 #ifdef HAVE_MKDIR_UMODE_T
15364 int inode_create(struct inode *inode ,struct dentry *dentry,
15365 umode_t umode, struct nameidata *nidata) { return 0; }
15366 #else
15367 int inode_create(struct inode *inode,struct dentry *dentry,
15368 int umode, struct nameidata * nidata) { return 0; }
15369 #endif
15370
15371 static const struct inode_operations
15372 iops __attribute__ ((unused)) = {
15373 .create = inode_create,
15374 };
15375
15376 int
15377 main (void)
15378 {
15379
15380
15381 ;
15382 return 0;
15383 }
15384
15385 _ACEOF
15386
15387
15388 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15389 echo "obj-m := conftest.o" >build/Makefile
15390 modpost_flag=''
15391 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15392 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15397 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15399 (eval $ac_try) 2>&5
15400 ac_status=$?
15401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15402 test $ac_status = 0; }; }; then :
15403
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15405 $as_echo "yes" >&6; }
15406
15407 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
15408
15409
15410 else
15411 $as_echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15413
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15415 $as_echo "no" >&6; }
15416
15417
15418
15419 fi
15420 rm -Rf build
15421
15422
15423
15424
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
15426 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
15427
15428
15429 cat confdefs.h - <<_ACEOF >conftest.c
15430
15431
15432 #include <linux/fs.h>
15433 void truncate_range(struct inode *inode, loff_t start,
15434 loff_t end) { return; }
15435 static struct inode_operations iops __attribute__ ((unused)) = {
15436 .truncate_range = truncate_range,
15437 };
15438
15439 int
15440 main (void)
15441 {
15442
15443
15444 ;
15445 return 0;
15446 }
15447
15448 _ACEOF
15449
15450
15451 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15452 echo "obj-m := conftest.o" >build/Makefile
15453 modpost_flag=''
15454 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15455 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15457 (eval $ac_try) 2>&5
15458 ac_status=$?
15459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15460 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15465 test $ac_status = 0; }; }; then :
15466
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15468 $as_echo "yes" >&6; }
15469
15470 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
15471
15472
15473 else
15474 $as_echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15476
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15478 $as_echo "no" >&6; }
15479
15480
15481
15482 fi
15483 rm -Rf build
15484
15485
15486
15487
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
15489 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
15490
15491
15492 cat confdefs.h - <<_ACEOF >conftest.c
15493
15494
15495 #include <linux/dcache.h>
15496 struct vfsmount *d_automount(struct path *p) { return NULL; }
15497 struct dentry_operations dops __attribute__ ((unused)) = {
15498 .d_automount = d_automount,
15499 };
15500
15501 int
15502 main (void)
15503 {
15504
15505
15506 ;
15507 return 0;
15508 }
15509
15510 _ACEOF
15511
15512
15513 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15514 echo "obj-m := conftest.o" >build/Makefile
15515 modpost_flag=''
15516 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15517 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15519 (eval $ac_try) 2>&5
15520 ac_status=$?
15521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15522 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15524 (eval $ac_try) 2>&5
15525 ac_status=$?
15526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15527 test $ac_status = 0; }; }; then :
15528
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15530 $as_echo "yes" >&6; }
15531
15532 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
15533
15534
15535 else
15536 $as_echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15538
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15540 $as_echo "no" >&6; }
15541
15542
15543
15544 fi
15545 rm -Rf build
15546
15547
15548
15549
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
15551 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
15552
15553
15554 cat confdefs.h - <<_ACEOF >conftest.c
15555
15556
15557 #include <linux/exportfs.h>
15558 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
15559 struct inode *parent) { return 0; }
15560 static struct export_operations eops __attribute__ ((unused))={
15561 .encode_fh = encode_fh,
15562 };
15563
15564 int
15565 main (void)
15566 {
15567
15568
15569 ;
15570 return 0;
15571 }
15572
15573 _ACEOF
15574
15575
15576 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15577 echo "obj-m := conftest.o" >build/Makefile
15578 modpost_flag=''
15579 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15580 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15582 (eval $ac_try) 2>&5
15583 ac_status=$?
15584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15585 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15587 (eval $ac_try) 2>&5
15588 ac_status=$?
15589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15590 test $ac_status = 0; }; }; then :
15591
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15593 $as_echo "yes" >&6; }
15594
15595 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
15596
15597
15598 else
15599 $as_echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15601
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15603 $as_echo "no" >&6; }
15604
15605
15606
15607 fi
15608 rm -Rf build
15609
15610
15611
15612
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
15614 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
15615
15616
15617 cat confdefs.h - <<_ACEOF >conftest.c
15618
15619
15620 #include <linux/exportfs.h>
15621 int commit_metadata(struct inode *inode) { return 0; }
15622 static struct export_operations eops __attribute__ ((unused))={
15623 .commit_metadata = commit_metadata,
15624 };
15625
15626 int
15627 main (void)
15628 {
15629
15630
15631 ;
15632 return 0;
15633 }
15634
15635 _ACEOF
15636
15637
15638 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15639 echo "obj-m := conftest.o" >build/Makefile
15640 modpost_flag=''
15641 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15642 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15644 (eval $ac_try) 2>&5
15645 ac_status=$?
15646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15647 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15649 (eval $ac_try) 2>&5
15650 ac_status=$?
15651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15652 test $ac_status = 0; }; }; then :
15653
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15655 $as_echo "yes" >&6; }
15656
15657 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
15658
15659
15660 else
15661 $as_echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15663
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15665 $as_echo "no" >&6; }
15666
15667
15668
15669 fi
15670 rm -Rf build
15671
15672
15673
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
15675 $as_echo_n "checking whether clear_inode() is available... " >&6; }
15676
15677
15678
15679 cat confdefs.h - <<_ACEOF >conftest.c
15680
15681
15682 #include <linux/fs.h>
15683
15684 int
15685 main (void)
15686 {
15687
15688 clear_inode(NULL);
15689
15690 ;
15691 return 0;
15692 }
15693
15694 _ACEOF
15695
15696
15697 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15698 echo "obj-m := conftest.o" >build/Makefile
15699 modpost_flag=''
15700 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15701 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15706 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15708 (eval $ac_try) 2>&5
15709 ac_status=$?
15710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15711 test $ac_status = 0; }; }; then :
15712 rc=0
15713 else
15714 $as_echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.$ac_ext >&5
15716 rc=1
15717
15718
15719 fi
15720 rm -Rf build
15721
15722
15723 if test $rc -ne 0; then :
15724
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15726 $as_echo "no" >&6; }
15727
15728 else
15729 if test "x$enable_linux_builtin" != xyes; then
15730
15731 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
15732 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15733 rc=$?
15734 if test $rc -ne 0; then
15735 export=0
15736 for file in fs/inode.c; do
15737 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
15738 "$LINUX/$file" 2>/dev/null
15739 rc=$?
15740 if test $rc -eq 0; then
15741 export=1
15742 break;
15743 fi
15744 done
15745 if test $export -eq 0; then :
15746 rc=1
15747 else :
15748 rc=0
15749 fi
15750 else :
15751 rc=0
15752 fi
15753
15754 fi
15755 if test $rc -ne 0; then :
15756
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15758 $as_echo "no" >&6; }
15759
15760 else :
15761
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15763 $as_echo "yes" >&6; }
15764
15765 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
15766
15767
15768 fi
15769 fi
15770
15771
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
15773 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
15774
15775
15776
15777 cat confdefs.h - <<_ACEOF >conftest.c
15778
15779
15780 #include <linux/fs.h>
15781
15782 int
15783 main (void)
15784 {
15785
15786 insert_inode_locked(NULL);
15787
15788 ;
15789 return 0;
15790 }
15791
15792 _ACEOF
15793
15794
15795 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15796 echo "obj-m := conftest.o" >build/Makefile
15797 modpost_flag=''
15798 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15799 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15804 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15806 (eval $ac_try) 2>&5
15807 ac_status=$?
15808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15809 test $ac_status = 0; }; }; then :
15810 rc=0
15811 else
15812 $as_echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15814 rc=1
15815
15816
15817 fi
15818 rm -Rf build
15819
15820
15821 if test $rc -ne 0; then :
15822
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15824 $as_echo "no" >&6; }
15825
15826 else
15827 if test "x$enable_linux_builtin" != xyes; then
15828
15829 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
15830 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15831 rc=$?
15832 if test $rc -ne 0; then
15833 export=0
15834 for file in fs/inode.c; do
15835 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
15836 "$LINUX/$file" 2>/dev/null
15837 rc=$?
15838 if test $rc -eq 0; then
15839 export=1
15840 break;
15841 fi
15842 done
15843 if test $export -eq 0; then :
15844 rc=1
15845 else :
15846 rc=0
15847 fi
15848 else :
15849 rc=0
15850 fi
15851
15852 fi
15853 if test $rc -ne 0; then :
15854
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15856 $as_echo "no" >&6; }
15857
15858 else :
15859
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15861 $as_echo "yes" >&6; }
15862
15863 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
15864
15865
15866 fi
15867 fi
15868
15869
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
15871 $as_echo_n "checking whether d_make_root() is available... " >&6; }
15872
15873
15874
15875 cat confdefs.h - <<_ACEOF >conftest.c
15876
15877
15878 #include <linux/dcache.h>
15879
15880 int
15881 main (void)
15882 {
15883
15884 d_make_root(NULL);
15885
15886 ;
15887 return 0;
15888 }
15889
15890 _ACEOF
15891
15892
15893 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15894 echo "obj-m := conftest.o" >build/Makefile
15895 modpost_flag=''
15896 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15897 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15902 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15904 (eval $ac_try) 2>&5
15905 ac_status=$?
15906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15907 test $ac_status = 0; }; }; then :
15908 rc=0
15909 else
15910 $as_echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15912 rc=1
15913
15914
15915 fi
15916 rm -Rf build
15917
15918
15919 if test $rc -ne 0; then :
15920
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15922 $as_echo "no" >&6; }
15923
15924 else
15925 if test "x$enable_linux_builtin" != xyes; then
15926
15927 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
15928 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15929 rc=$?
15930 if test $rc -ne 0; then
15931 export=0
15932 for file in fs/dcache.c; do
15933 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
15934 "$LINUX/$file" 2>/dev/null
15935 rc=$?
15936 if test $rc -eq 0; then
15937 export=1
15938 break;
15939 fi
15940 done
15941 if test $export -eq 0; then :
15942 rc=1
15943 else :
15944 rc=0
15945 fi
15946 else :
15947 rc=0
15948 fi
15949
15950 fi
15951 if test $rc -ne 0; then :
15952
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15954 $as_echo "no" >&6; }
15955
15956 else :
15957
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15959 $as_echo "yes" >&6; }
15960
15961 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
15962
15963
15964 fi
15965 fi
15966
15967
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
15969 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
15970
15971
15972
15973 cat confdefs.h - <<_ACEOF >conftest.c
15974
15975
15976 #include <linux/dcache.h>
15977
15978 int
15979 main (void)
15980 {
15981
15982 d_obtain_alias(NULL);
15983
15984 ;
15985 return 0;
15986 }
15987
15988 _ACEOF
15989
15990
15991 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15992 echo "obj-m := conftest.o" >build/Makefile
15993 modpost_flag=''
15994 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15995 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15997 (eval $ac_try) 2>&5
15998 ac_status=$?
15999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16000 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16002 (eval $ac_try) 2>&5
16003 ac_status=$?
16004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16005 test $ac_status = 0; }; }; then :
16006 rc=0
16007 else
16008 $as_echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16010 rc=1
16011
16012
16013 fi
16014 rm -Rf build
16015
16016
16017 if test $rc -ne 0; then :
16018
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16020 $as_echo "no" >&6; }
16021
16022 else
16023 if test "x$enable_linux_builtin" != xyes; then
16024
16025 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
16026 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16027 rc=$?
16028 if test $rc -ne 0; then
16029 export=0
16030 for file in fs/dcache.c; do
16031 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
16032 "$LINUX/$file" 2>/dev/null
16033 rc=$?
16034 if test $rc -eq 0; then
16035 export=1
16036 break;
16037 fi
16038 done
16039 if test $export -eq 0; then :
16040 rc=1
16041 else :
16042 rc=0
16043 fi
16044 else :
16045 rc=0
16046 fi
16047
16048 fi
16049 if test $rc -ne 0; then :
16050
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16052 $as_echo "no" >&6; }
16053
16054 else :
16055
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16057 $as_echo "yes" >&6; }
16058
16059 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
16060
16061
16062 fi
16063 fi
16064
16065
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
16067 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
16068
16069
16070
16071 cat confdefs.h - <<_ACEOF >conftest.c
16072
16073
16074 #include <linux/dcache.h>
16075
16076 int
16077 main (void)
16078 {
16079
16080 d_set_d_op(NULL, NULL);
16081
16082 ;
16083 return 0;
16084 }
16085
16086 _ACEOF
16087
16088
16089 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16090 echo "obj-m := conftest.o" >build/Makefile
16091 modpost_flag=''
16092 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16093 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16095 (eval $ac_try) 2>&5
16096 ac_status=$?
16097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16098 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16100 (eval $ac_try) 2>&5
16101 ac_status=$?
16102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16103 test $ac_status = 0; }; }; then :
16104 rc=0
16105 else
16106 $as_echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16108 rc=1
16109
16110
16111 fi
16112 rm -Rf build
16113
16114
16115 if test $rc -ne 0; then :
16116
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16118 $as_echo "no" >&6; }
16119
16120 else
16121 if test "x$enable_linux_builtin" != xyes; then
16122
16123 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
16124 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16125 rc=$?
16126 if test $rc -ne 0; then
16127 export=0
16128 for file in fs/dcache.c; do
16129 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
16130 "$LINUX/$file" 2>/dev/null
16131 rc=$?
16132 if test $rc -eq 0; then
16133 export=1
16134 break;
16135 fi
16136 done
16137 if test $export -eq 0; then :
16138 rc=1
16139 else :
16140 rc=0
16141 fi
16142 else :
16143 rc=0
16144 fi
16145
16146 fi
16147 if test $rc -ne 0; then :
16148
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16150 $as_echo "no" >&6; }
16151
16152 else :
16153
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16155 $as_echo "yes" >&6; }
16156
16157 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
16158
16159
16160 fi
16161 fi
16162
16163
16164
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
16166 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
16167
16168
16169 cat confdefs.h - <<_ACEOF >conftest.c
16170
16171
16172 #include <linux/dcache.h>
16173
16174 int revalidate (struct dentry *dentry,
16175 struct nameidata *nidata) { return 0; }
16176
16177 static const struct dentry_operations
16178 dops __attribute__ ((unused)) = {
16179 .d_revalidate = revalidate,
16180 };
16181
16182 int
16183 main (void)
16184 {
16185
16186
16187 ;
16188 return 0;
16189 }
16190
16191 _ACEOF
16192
16193
16194 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16195 echo "obj-m := conftest.o" >build/Makefile
16196 modpost_flag=''
16197 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16198 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16203 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16208 test $ac_status = 0; }; }; then :
16209
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16211 $as_echo "yes" >&6; }
16212
16213 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
16214
16215
16216 else
16217 $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16219
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16221 $as_echo "no" >&6; }
16222
16223
16224
16225 fi
16226 rm -Rf build
16227
16228
16229
16230
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
16232 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
16233
16234
16235 cat confdefs.h - <<_ACEOF >conftest.c
16236
16237
16238 #include <linux/dcache.h>
16239
16240 const struct dentry_operations test_d_op = {
16241 .d_revalidate = NULL,
16242 };
16243
16244 int
16245 main (void)
16246 {
16247
16248 struct dentry d __attribute__ ((unused));
16249
16250 d.d_op = &test_d_op;
16251
16252 ;
16253 return 0;
16254 }
16255
16256 _ACEOF
16257
16258
16259 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16260 echo "obj-m := conftest.o" >build/Makefile
16261 modpost_flag=''
16262 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16263 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16265 (eval $ac_try) 2>&5
16266 ac_status=$?
16267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16268 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16270 (eval $ac_try) 2>&5
16271 ac_status=$?
16272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16273 test $ac_status = 0; }; }; then :
16274
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16276 $as_echo "yes" >&6; }
16277
16278 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
16279
16280
16281 else
16282 $as_echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.$ac_ext >&5
16284
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286 $as_echo "no" >&6; }
16287
16288
16289
16290 fi
16291 rm -Rf build
16292
16293
16294
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
16296 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
16297
16298
16299
16300 cat confdefs.h - <<_ACEOF >conftest.c
16301
16302
16303 #include <linux/fs.h>
16304
16305 int
16306 main (void)
16307 {
16308
16309 check_disk_size_change(NULL, NULL);
16310
16311 ;
16312 return 0;
16313 }
16314
16315 _ACEOF
16316
16317
16318 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16319 echo "obj-m := conftest.o" >build/Makefile
16320 modpost_flag=''
16321 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16322 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16324 (eval $ac_try) 2>&5
16325 ac_status=$?
16326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16327 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16329 (eval $ac_try) 2>&5
16330 ac_status=$?
16331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16332 test $ac_status = 0; }; }; then :
16333 rc=0
16334 else
16335 $as_echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16337 rc=1
16338
16339
16340 fi
16341 rm -Rf build
16342
16343
16344 if test $rc -ne 0; then :
16345
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16347 $as_echo "no" >&6; }
16348
16349 else
16350 if test "x$enable_linux_builtin" != xyes; then
16351
16352 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
16353 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16354 rc=$?
16355 if test $rc -ne 0; then
16356 export=0
16357 for file in fs/block_dev.c; do
16358 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
16359 "$LINUX/$file" 2>/dev/null
16360 rc=$?
16361 if test $rc -eq 0; then
16362 export=1
16363 break;
16364 fi
16365 done
16366 if test $export -eq 0; then :
16367 rc=1
16368 else :
16369 rc=0
16370 fi
16371 else :
16372 rc=0
16373 fi
16374
16375 fi
16376 if test $rc -ne 0; then :
16377
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16379 $as_echo "no" >&6; }
16380
16381 else :
16382
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16384 $as_echo "yes" >&6; }
16385
16386 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
16387
16388
16389 fi
16390 fi
16391
16392
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
16394 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
16395
16396
16397
16398 cat confdefs.h - <<_ACEOF >conftest.c
16399
16400
16401 #include <linux/mm.h>
16402
16403 int
16404 main (void)
16405 {
16406
16407 truncate_setsize(NULL, 0);
16408
16409 ;
16410 return 0;
16411 }
16412
16413 _ACEOF
16414
16415
16416 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16417 echo "obj-m := conftest.o" >build/Makefile
16418 modpost_flag=''
16419 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16420 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16422 (eval $ac_try) 2>&5
16423 ac_status=$?
16424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16425 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16427 (eval $ac_try) 2>&5
16428 ac_status=$?
16429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16430 test $ac_status = 0; }; }; then :
16431 rc=0
16432 else
16433 $as_echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16435 rc=1
16436
16437
16438 fi
16439 rm -Rf build
16440
16441
16442 if test $rc -ne 0; then :
16443
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16445 $as_echo "no" >&6; }
16446
16447 else
16448 if test "x$enable_linux_builtin" != xyes; then
16449
16450 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
16451 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16452 rc=$?
16453 if test $rc -ne 0; then
16454 export=0
16455 for file in mm/truncate.c; do
16456 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
16457 "$LINUX/$file" 2>/dev/null
16458 rc=$?
16459 if test $rc -eq 0; then
16460 export=1
16461 break;
16462 fi
16463 done
16464 if test $export -eq 0; then :
16465 rc=1
16466 else :
16467 rc=0
16468 fi
16469 else :
16470 rc=0
16471 fi
16472
16473 fi
16474 if test $rc -ne 0; then :
16475
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16477 $as_echo "no" >&6; }
16478
16479 else :
16480
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16482 $as_echo "yes" >&6; }
16483
16484 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
16485
16486
16487 fi
16488 fi
16489
16490
16491
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
16493 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
16494
16495
16496 cat confdefs.h - <<_ACEOF >conftest.c
16497
16498
16499 #include <linux/security.h>
16500
16501 int
16502 main (void)
16503 {
16504
16505 struct inode *ip __attribute__ ((unused)) = NULL;
16506 struct inode *dip __attribute__ ((unused)) = NULL;
16507 const struct qstr *str __attribute__ ((unused)) = NULL;
16508 char *name __attribute__ ((unused)) = NULL;
16509 void *value __attribute__ ((unused)) = NULL;
16510 size_t len __attribute__ ((unused)) = 0;
16511
16512 security_inode_init_security(ip, dip, str, &name, &value, &len);
16513
16514 ;
16515 return 0;
16516 }
16517
16518 _ACEOF
16519
16520
16521 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16522 echo "obj-m := conftest.o" >build/Makefile
16523 modpost_flag=''
16524 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16525 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16527 (eval $ac_try) 2>&5
16528 ac_status=$?
16529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16530 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16532 (eval $ac_try) 2>&5
16533 ac_status=$?
16534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16535 test $ac_status = 0; }; }; then :
16536
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16538 $as_echo "yes" >&6; }
16539
16540 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
16541
16542
16543 else
16544 $as_echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16548 $as_echo "no" >&6; }
16549
16550
16551
16552 fi
16553 rm -Rf build
16554
16555
16556
16557
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
16559 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
16560
16561
16562 cat confdefs.h - <<_ACEOF >conftest.c
16563
16564
16565 #include <linux/security.h>
16566
16567 int
16568 main (void)
16569 {
16570
16571 struct inode *ip __attribute__ ((unused)) = NULL;
16572 struct inode *dip __attribute__ ((unused)) = NULL;
16573 const struct qstr *str __attribute__ ((unused)) = NULL;
16574 initxattrs func __attribute__ ((unused)) = NULL;
16575
16576 security_inode_init_security(ip, dip, str, func, NULL);
16577
16578 ;
16579 return 0;
16580 }
16581
16582 _ACEOF
16583
16584
16585 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16586 echo "obj-m := conftest.o" >build/Makefile
16587 modpost_flag=''
16588 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16589 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16591 (eval $ac_try) 2>&5
16592 ac_status=$?
16593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16594 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16596 (eval $ac_try) 2>&5
16597 ac_status=$?
16598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16599 test $ac_status = 0; }; }; then :
16600
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16602 $as_echo "yes" >&6; }
16603
16604 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
16605
16606
16607 else
16608 $as_echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16610
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16613
16614
16615
16616 fi
16617 rm -Rf build
16618
16619
16620
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
16622 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
16623
16624
16625
16626 cat confdefs.h - <<_ACEOF >conftest.c
16627
16628
16629 #include <linux/fs.h>
16630
16631 int
16632 main (void)
16633 {
16634
16635 mount_nodev(NULL, 0, NULL, NULL);
16636
16637 ;
16638 return 0;
16639 }
16640
16641 _ACEOF
16642
16643
16644 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16645 echo "obj-m := conftest.o" >build/Makefile
16646 modpost_flag=''
16647 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16648 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16650 (eval $ac_try) 2>&5
16651 ac_status=$?
16652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16653 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16655 (eval $ac_try) 2>&5
16656 ac_status=$?
16657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16658 test $ac_status = 0; }; }; then :
16659 rc=0
16660 else
16661 $as_echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16663 rc=1
16664
16665
16666 fi
16667 rm -Rf build
16668
16669
16670 if test $rc -ne 0; then :
16671
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16673 $as_echo "no" >&6; }
16674
16675 else
16676 if test "x$enable_linux_builtin" != xyes; then
16677
16678 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
16679 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16680 rc=$?
16681 if test $rc -ne 0; then
16682 export=0
16683 for file in fs/super.c; do
16684 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
16685 "$LINUX/$file" 2>/dev/null
16686 rc=$?
16687 if test $rc -eq 0; then
16688 export=1
16689 break;
16690 fi
16691 done
16692 if test $export -eq 0; then :
16693 rc=1
16694 else :
16695 rc=0
16696 fi
16697 else :
16698 rc=0
16699 fi
16700
16701 fi
16702 if test $rc -ne 0; then :
16703
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16705 $as_echo "no" >&6; }
16706
16707 else :
16708
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16710 $as_echo "yes" >&6; }
16711
16712 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
16713
16714
16715 fi
16716 fi
16717
16718
16719
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
16721 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
16722
16723
16724 cat confdefs.h - <<_ACEOF >conftest.c
16725
16726
16727 #include <linux/fs.h>
16728
16729 int shrink(struct shrinker *s, struct shrink_control *sc)
16730 { return 0; }
16731
16732 static const struct super_block
16733 sb __attribute__ ((unused)) = {
16734 .s_shrink.shrink = shrink,
16735 .s_shrink.seeks = DEFAULT_SEEKS,
16736 .s_shrink.batch = 0,
16737 };
16738
16739 int
16740 main (void)
16741 {
16742
16743
16744 ;
16745 return 0;
16746 }
16747
16748 _ACEOF
16749
16750
16751 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16752 echo "obj-m := conftest.o" >build/Makefile
16753 modpost_flag=''
16754 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16755 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16757 (eval $ac_try) 2>&5
16758 ac_status=$?
16759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16760 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16762 (eval $ac_try) 2>&5
16763 ac_status=$?
16764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16765 test $ac_status = 0; }; }; then :
16766
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16768 $as_echo "yes" >&6; }
16769
16770 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
16771
16772
16773
16774 else
16775 $as_echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16777
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16779 $as_echo "no" >&6; }
16780
16781
16782
16783 fi
16784 rm -Rf build
16785
16786
16787
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
16789 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
16790
16791
16792 cat confdefs.h - <<_ACEOF >conftest.c
16793
16794
16795 #include <linux/fs.h>
16796
16797 int
16798 main (void)
16799 {
16800
16801 struct super_block sb __attribute__ ((unused));
16802 sb.s_d_op = NULL;
16803
16804 ;
16805 return 0;
16806 }
16807
16808 _ACEOF
16809
16810
16811 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16812 echo "obj-m := conftest.o" >build/Makefile
16813 modpost_flag=''
16814 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16815 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16817 (eval $ac_try) 2>&5
16818 ac_status=$?
16819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16820 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16822 (eval $ac_try) 2>&5
16823 ac_status=$?
16824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16825 test $ac_status = 0; }; }; then :
16826
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16828 $as_echo "yes" >&6; }
16829
16830 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
16831
16832
16833 else
16834 $as_echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16836
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16838 $as_echo "no" >&6; }
16839
16840
16841
16842 fi
16843 rm -Rf build
16844
16845
16846
16847
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_bdi" >&5
16849 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
16850
16851
16852 cat confdefs.h - <<_ACEOF >conftest.c
16853
16854
16855 #include <linux/fs.h>
16856
16857 int
16858 main (void)
16859 {
16860
16861 struct super_block sb __attribute__ ((unused));
16862 sb.s_bdi = NULL;
16863
16864 ;
16865 return 0;
16866 }
16867
16868 _ACEOF
16869
16870
16871 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16872 echo "obj-m := conftest.o" >build/Makefile
16873 modpost_flag=''
16874 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16875 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16877 (eval $ac_try) 2>&5
16878 ac_status=$?
16879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16880 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16882 (eval $ac_try) 2>&5
16883 ac_status=$?
16884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16885 test $ac_status = 0; }; }; then :
16886
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16888 $as_echo "yes" >&6; }
16889
16890 $as_echo "#define HAVE_BDI 1" >>confdefs.h
16891
16892
16893 else
16894 $as_echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16896
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16898 $as_echo "no" >&6; }
16899
16900
16901
16902 fi
16903 rm -Rf build
16904
16905
16906
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() is available" >&5
16908 $as_echo_n "checking whether bdi_setup_and_register() is available... " >&6; }
16909
16910
16911
16912 cat confdefs.h - <<_ACEOF >conftest.c
16913
16914
16915 #include <linux/backing-dev.h>
16916
16917 int
16918 main (void)
16919 {
16920
16921 bdi_setup_and_register(NULL, NULL, 0);
16922
16923 ;
16924 return 0;
16925 }
16926
16927 _ACEOF
16928
16929
16930 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16931 echo "obj-m := conftest.o" >build/Makefile
16932 modpost_flag=''
16933 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16934 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16939 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16941 (eval $ac_try) 2>&5
16942 ac_status=$?
16943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16944 test $ac_status = 0; }; }; then :
16945 rc=0
16946 else
16947 $as_echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16949 rc=1
16950
16951
16952 fi
16953 rm -Rf build
16954
16955
16956 if test $rc -ne 0; then :
16957
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16959 $as_echo "no" >&6; }
16960
16961 else
16962 if test "x$enable_linux_builtin" != xyes; then
16963
16964 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
16965 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16966 rc=$?
16967 if test $rc -ne 0; then
16968 export=0
16969 for file in mm/backing-dev.c; do
16970 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
16971 "$LINUX/$file" 2>/dev/null
16972 rc=$?
16973 if test $rc -eq 0; then
16974 export=1
16975 break;
16976 fi
16977 done
16978 if test $export -eq 0; then :
16979 rc=1
16980 else :
16981 rc=0
16982 fi
16983 else :
16984 rc=0
16985 fi
16986
16987 fi
16988 if test $rc -ne 0; then :
16989
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16991 $as_echo "no" >&6; }
16992
16993 else :
16994
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16996 $as_echo "yes" >&6; }
16997
16998 $as_echo "#define HAVE_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
16999
17000
17001 fi
17002 fi
17003
17004
17005
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
17007 $as_echo_n "checking whether set_nlink() is available... " >&6; }
17008
17009
17010 cat confdefs.h - <<_ACEOF >conftest.c
17011
17012
17013 #include <linux/fs.h>
17014
17015 int
17016 main (void)
17017 {
17018
17019 struct inode node;
17020 unsigned int link = 0;
17021 (void) set_nlink(&node, link);
17022
17023 ;
17024 return 0;
17025 }
17026
17027 _ACEOF
17028
17029
17030 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17031 echo "obj-m := conftest.o" >build/Makefile
17032 modpost_flag=''
17033 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17034 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17036 (eval $ac_try) 2>&5
17037 ac_status=$?
17038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17039 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17041 (eval $ac_try) 2>&5
17042 ac_status=$?
17043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17044 test $ac_status = 0; }; }; then :
17045
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17047 $as_echo "yes" >&6; }
17048
17049 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
17050
17051
17052 else
17053 $as_echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.$ac_ext >&5
17055
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17057 $as_echo "no" >&6; }
17058
17059
17060
17061 fi
17062 rm -Rf build
17063
17064
17065
17066
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
17068 $as_echo_n "checking whether elevator_change() is available... " >&6; }
17069 tmp_flags="$EXTRA_KCFLAGS"
17070 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17071
17072
17073 cat confdefs.h - <<_ACEOF >conftest.c
17074
17075
17076 #include <linux/blkdev.h>
17077 #include <linux/elevator.h>
17078
17079 int
17080 main (void)
17081 {
17082
17083 int ret;
17084 struct request_queue *q = NULL;
17085 char *elevator = NULL;
17086 ret = elevator_change(q, elevator);
17087
17088 ;
17089 return 0;
17090 }
17091
17092 _ACEOF
17093
17094
17095 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17096 echo "obj-m := conftest.o" >build/Makefile
17097 modpost_flag=''
17098 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17099 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17104 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17106 (eval $ac_try) 2>&5
17107 ac_status=$?
17108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17109 test $ac_status = 0; }; }; then :
17110
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17112 $as_echo "yes" >&6; }
17113
17114 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
17115
17116
17117 else
17118 $as_echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17120
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17122 $as_echo "no" >&6; }
17123
17124
17125
17126 fi
17127 rm -Rf build
17128
17129
17130 EXTRA_KCFLAGS="$tmp_flags"
17131
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
17133 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
17134
17135
17136 cat confdefs.h - <<_ACEOF >conftest.c
17137
17138
17139 #include <linux/fs.h>
17140
17141 int
17142 main (void)
17143 {
17144
17145 struct file_system_type *type = NULL;
17146 int (*test)(struct super_block *,void *) = NULL;
17147 int (*set)(struct super_block *,void *) = NULL;
17148 int flags = 0;
17149 void *data = NULL;
17150 (void) sget(type, test, set, flags, data);
17151
17152 ;
17153 return 0;
17154 }
17155
17156 _ACEOF
17157
17158
17159 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17160 echo "obj-m := conftest.o" >build/Makefile
17161 modpost_flag=''
17162 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17163 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17165 (eval $ac_try) 2>&5
17166 ac_status=$?
17167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17168 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17170 (eval $ac_try) 2>&5
17171 ac_status=$?
17172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17173 test $ac_status = 0; }; }; then :
17174
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17176 $as_echo "yes" >&6; }
17177
17178 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
17179
17180
17181 else
17182 $as_echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.$ac_ext >&5
17184
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17186 $as_echo "no" >&6; }
17187
17188
17189
17190 fi
17191 rm -Rf build
17192
17193
17194
17195
17196 if test "$LINUX_OBJ" != "$LINUX"; then :
17197
17198 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
17199
17200 fi
17201
17202
17203
17204 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
17205 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
17206 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
17207
17208
17209 ;;
17210 user)
17211
17212
17213 # Check whether --with-udevdir was given.
17214 if test "${with_udevdir+set}" = set; then :
17215 withval=$with_udevdir; udevdir=$withval
17216 else
17217 udevdir='${exec_prefix}/lib/udev'
17218 fi
17219
17220
17221
17222 # Check whether --with-udevruledir was given.
17223 if test "${with_udevruledir+set}" = set; then :
17224 withval=$with_udevruledir; udevruledir=$withval
17225 else
17226 udevruledir='${udevdir}/rules.d'
17227 fi
17228
17229
17230
17231
17232
17233
17234
17235 # Check whether --with-dracutdir was given.
17236 if test "${with_dracutdir+set}" = set; then :
17237 withval=$with_dracutdir; dracutdir=$withval
17238 else
17239 dracutdir='${exec_prefix}/lib/dracut'
17240 fi
17241
17242
17243
17244
17245
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
17247 $as_echo_n "checking for target asm dir... " >&6; }
17248 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
17249
17250 case $TARGET_ARCH in
17251 i386|x86_64)
17252 TARGET_ASM_DIR=asm-${TARGET_ARCH}
17253 ;;
17254 *)
17255 TARGET_ASM_DIR=asm-generic
17256 ;;
17257 esac
17258
17259
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
17261 $as_echo "$TARGET_ASM_DIR" >&6; }
17262
17263
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl()" >&5
17265 $as_echo_n "checking for ioctl()... " >&6; }
17266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17267 /* end confdefs.h. */
17268 #include <unistd.h>
17269
17270 _ACEOF
17271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17272 $EGREP "ioctl" >/dev/null 2>&1; then :
17273 is_unistd=yes
17274 else
17275 is_unistd=no
17276 fi
17277 rm -f conftest*
17278
17279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17280 /* end confdefs.h. */
17281 #include <sys/ioctl.h>
17282
17283 _ACEOF
17284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17285 $EGREP "ioctl" >/dev/null 2>&1; then :
17286 is_sys_ioctl=yes
17287 else
17288 is_sys_ioctl=no
17289 fi
17290 rm -f conftest*
17291
17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h. */
17294 #include <stropts.h>
17295
17296 _ACEOF
17297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17298 $EGREP "ioctl" >/dev/null 2>&1; then :
17299 is_stropts=yes
17300 else
17301 is_stropts=no
17302 fi
17303 rm -f conftest*
17304
17305
17306 if test $is_unistd = yes; then
17307 result=unistd.h
17308
17309 $as_echo "#define HAVE_IOCTL_IN_UNISTD_H 1" >>confdefs.h
17310
17311 else
17312
17313 if test $is_sys_ioctl = yes; then
17314 result=sys/ioctl.h
17315
17316 $as_echo "#define HAVE_IOCTL_IN_SYS_IOCTL_H 1" >>confdefs.h
17317
17318 elif test $is_stropts = yes; then
17319
17320 $as_echo "#define HAVE_IOCTL_IN_STROPTS_H 1" >>confdefs.h
17321
17322 else
17323 result=no
17324 fi
17325 fi
17326
17327 if test $result = no; then
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17329 $as_echo "no" >&6; }
17330 as_fn_error $? "*** Cannot locate ioctl() definition" "$LINENO" 5
17331 else
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17333 $as_echo "yes" >&6; }
17334 fi
17335
17336
17337 ZLIB=
17338
17339 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17340 if test "x$ac_cv_header_zlib_h" = x""yes; then :
17341
17342 else
17343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17345 as_fn_error $? "
17346 *** zlib.h missing, zlib-devel package required
17347 See \`config.log' for more details" "$LINENO" 5 ; }
17348 fi
17349
17350
17351
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
17353 $as_echo_n "checking for compress2 in -lz... " >&6; }
17354 if test "${ac_cv_lib_z_compress2+set}" = set; then :
17355 $as_echo_n "(cached) " >&6
17356 else
17357 ac_check_lib_save_LIBS=$LIBS
17358 LIBS="-lz $LIBS"
17359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17360 /* end confdefs.h. */
17361
17362 /* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17365 #ifdef __cplusplus
17366 extern "C"
17367 #endif
17368 char compress2 ();
17369 int
17370 main ()
17371 {
17372 return compress2 ();
17373 ;
17374 return 0;
17375 }
17376 _ACEOF
17377 if ac_fn_c_try_link "$LINENO"; then :
17378 ac_cv_lib_z_compress2=yes
17379 else
17380 ac_cv_lib_z_compress2=no
17381 fi
17382 rm -f core conftest.err conftest.$ac_objext \
17383 conftest$ac_exeext conftest.$ac_ext
17384 LIBS=$ac_check_lib_save_LIBS
17385 fi
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
17387 $as_echo "$ac_cv_lib_z_compress2" >&6; }
17388 if test "x$ac_cv_lib_z_compress2" = x""yes; then :
17389 cat >>confdefs.h <<_ACEOF
17390 #define HAVE_LIBZ 1
17391 _ACEOF
17392
17393 LIBS="-lz $LIBS"
17394
17395 else
17396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17398 as_fn_error $? "
17399 *** compress2() missing, zlib-devel package required
17400 See \`config.log' for more details" "$LINENO" 5 ; }
17401 fi
17402
17403
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
17405 $as_echo_n "checking for uncompress in -lz... " >&6; }
17406 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
17407 $as_echo_n "(cached) " >&6
17408 else
17409 ac_check_lib_save_LIBS=$LIBS
17410 LIBS="-lz $LIBS"
17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17412 /* end confdefs.h. */
17413
17414 /* Override any GCC internal prototype to avoid an error.
17415 Use char because int might match the return type of a GCC
17416 builtin and then its argument prototype would still apply. */
17417 #ifdef __cplusplus
17418 extern "C"
17419 #endif
17420 char uncompress ();
17421 int
17422 main ()
17423 {
17424 return uncompress ();
17425 ;
17426 return 0;
17427 }
17428 _ACEOF
17429 if ac_fn_c_try_link "$LINENO"; then :
17430 ac_cv_lib_z_uncompress=yes
17431 else
17432 ac_cv_lib_z_uncompress=no
17433 fi
17434 rm -f core conftest.err conftest.$ac_objext \
17435 conftest$ac_exeext conftest.$ac_ext
17436 LIBS=$ac_check_lib_save_LIBS
17437 fi
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
17439 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
17440 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
17441 cat >>confdefs.h <<_ACEOF
17442 #define HAVE_LIBZ 1
17443 _ACEOF
17444
17445 LIBS="-lz $LIBS"
17446
17447 else
17448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17450 as_fn_error $? "
17451 *** uncompress() missing, zlib-devel package required
17452 See \`config.log' for more details" "$LINENO" 5 ; }
17453 fi
17454
17455
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
17457 $as_echo_n "checking for crc32 in -lz... " >&6; }
17458 if test "${ac_cv_lib_z_crc32+set}" = set; then :
17459 $as_echo_n "(cached) " >&6
17460 else
17461 ac_check_lib_save_LIBS=$LIBS
17462 LIBS="-lz $LIBS"
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17465
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17469 #ifdef __cplusplus
17470 extern "C"
17471 #endif
17472 char crc32 ();
17473 int
17474 main ()
17475 {
17476 return crc32 ();
17477 ;
17478 return 0;
17479 }
17480 _ACEOF
17481 if ac_fn_c_try_link "$LINENO"; then :
17482 ac_cv_lib_z_crc32=yes
17483 else
17484 ac_cv_lib_z_crc32=no
17485 fi
17486 rm -f core conftest.err conftest.$ac_objext \
17487 conftest$ac_exeext conftest.$ac_ext
17488 LIBS=$ac_check_lib_save_LIBS
17489 fi
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
17491 $as_echo "$ac_cv_lib_z_crc32" >&6; }
17492 if test "x$ac_cv_lib_z_crc32" = x""yes; then :
17493 cat >>confdefs.h <<_ACEOF
17494 #define HAVE_LIBZ 1
17495 _ACEOF
17496
17497 LIBS="-lz $LIBS"
17498
17499 else
17500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17502 as_fn_error $? "
17503 *** crc32() missing, zlib-devel package required
17504 See \`config.log' for more details" "$LINENO" 5 ; }
17505 fi
17506
17507
17508 ZLIB="-lz"
17509
17510
17511 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
17512
17513
17514
17515 LIBUUID=
17516
17517 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
17518 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
17519
17520 else
17521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17523 as_fn_error $? "
17524 *** uuid/uuid.h missing, libuuid-devel package required
17525 See \`config.log' for more details" "$LINENO" 5 ; }
17526 fi
17527
17528
17529
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
17531 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17532 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
17533 $as_echo_n "(cached) " >&6
17534 else
17535 ac_check_lib_save_LIBS=$LIBS
17536 LIBS="-luuid $LIBS"
17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h. */
17539
17540 /* Override any GCC internal prototype to avoid an error.
17541 Use char because int might match the return type of a GCC
17542 builtin and then its argument prototype would still apply. */
17543 #ifdef __cplusplus
17544 extern "C"
17545 #endif
17546 char uuid_generate ();
17547 int
17548 main ()
17549 {
17550 return uuid_generate ();
17551 ;
17552 return 0;
17553 }
17554 _ACEOF
17555 if ac_fn_c_try_link "$LINENO"; then :
17556 ac_cv_lib_uuid_uuid_generate=yes
17557 else
17558 ac_cv_lib_uuid_uuid_generate=no
17559 fi
17560 rm -f core conftest.err conftest.$ac_objext \
17561 conftest$ac_exeext conftest.$ac_ext
17562 LIBS=$ac_check_lib_save_LIBS
17563 fi
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
17565 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17566 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
17567 cat >>confdefs.h <<_ACEOF
17568 #define HAVE_LIBUUID 1
17569 _ACEOF
17570
17571 LIBS="-luuid $LIBS"
17572
17573 else
17574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17576 as_fn_error $? "
17577 *** uuid_generate() missing, libuuid-devel package required
17578 See \`config.log' for more details" "$LINENO" 5 ; }
17579 fi
17580
17581
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
17583 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
17584 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then :
17585 $as_echo_n "(cached) " >&6
17586 else
17587 ac_check_lib_save_LIBS=$LIBS
17588 LIBS="-luuid $LIBS"
17589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17590 /* end confdefs.h. */
17591
17592 /* Override any GCC internal prototype to avoid an error.
17593 Use char because int might match the return type of a GCC
17594 builtin and then its argument prototype would still apply. */
17595 #ifdef __cplusplus
17596 extern "C"
17597 #endif
17598 char uuid_is_null ();
17599 int
17600 main ()
17601 {
17602 return uuid_is_null ();
17603 ;
17604 return 0;
17605 }
17606 _ACEOF
17607 if ac_fn_c_try_link "$LINENO"; then :
17608 ac_cv_lib_uuid_uuid_is_null=yes
17609 else
17610 ac_cv_lib_uuid_uuid_is_null=no
17611 fi
17612 rm -f core conftest.err conftest.$ac_objext \
17613 conftest$ac_exeext conftest.$ac_ext
17614 LIBS=$ac_check_lib_save_LIBS
17615 fi
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
17617 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
17618 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then :
17619 cat >>confdefs.h <<_ACEOF
17620 #define HAVE_LIBUUID 1
17621 _ACEOF
17622
17623 LIBS="-luuid $LIBS"
17624
17625 else
17626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17628 as_fn_error $? "
17629 *** uuid_is_null() missing, libuuid-devel package required
17630 See \`config.log' for more details" "$LINENO" 5 ; }
17631 fi
17632
17633
17634 LIBUUID="-luuid"
17635
17636
17637 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
17638
17639
17640
17641
17642 # Check whether --with-blkid was given.
17643 if test "${with_blkid+set}" = set; then :
17644 withval=$with_blkid;
17645 else
17646 with_blkid=check
17647 fi
17648
17649
17650 LIBBLKID=
17651 if test "x$with_blkid" != xno; then :
17652
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
17654 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
17655 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
17656 $as_echo_n "(cached) " >&6
17657 else
17658 ac_check_lib_save_LIBS=$LIBS
17659 LIBS="-lblkid $LIBS"
17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h. */
17662
17663 /* Override any GCC internal prototype to avoid an error.
17664 Use char because int might match the return type of a GCC
17665 builtin and then its argument prototype would still apply. */
17666 #ifdef __cplusplus
17667 extern "C"
17668 #endif
17669 char blkid_get_cache ();
17670 int
17671 main ()
17672 {
17673 return blkid_get_cache ();
17674 ;
17675 return 0;
17676 }
17677 _ACEOF
17678 if ac_fn_c_try_link "$LINENO"; then :
17679 ac_cv_lib_blkid_blkid_get_cache=yes
17680 else
17681 ac_cv_lib_blkid_blkid_get_cache=no
17682 fi
17683 rm -f core conftest.err conftest.$ac_objext \
17684 conftest$ac_exeext conftest.$ac_ext
17685 LIBS=$ac_check_lib_save_LIBS
17686 fi
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
17688 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
17689 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
17690
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
17692 $as_echo_n "checking for blkid zfs support... " >&6; }
17693
17694 ZFS_DEV=`mktemp`
17695 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
17696 >/dev/null 2>/dev/null
17697 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
17698 dd of=$ZFS_DEV bs=1k count=8 \
17699 seek=132 conv=notrunc &>/dev/null \
17700 >/dev/null 2>/dev/null
17701
17702 saved_LDFLAGS="$LDFLAGS"
17703 LDFLAGS="-lblkid"
17704
17705 if test "$cross_compiling" = yes; then :
17706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17708 as_fn_error $? "cannot run test program while cross compiling
17709 See \`config.log' for more details" "$LINENO" 5 ; }
17710 else
17711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17712 /* end confdefs.h. */
17713
17714 #include <stdio.h>
17715 #include <blkid/blkid.h>
17716
17717 int
17718 main ()
17719 {
17720
17721 blkid_cache cache;
17722 char *value;
17723
17724 if (blkid_get_cache(&cache, NULL) < 0)
17725 return 1;
17726
17727 value = blkid_get_tag_value(cache, "TYPE",
17728 "$ZFS_DEV");
17729 if (!value) {
17730 blkid_put_cache(cache);
17731 return 2;
17732 }
17733
17734 if (strcmp(value, "zfs")) {
17735 free(value);
17736 blkid_put_cache(cache);
17737 return 3;
17738 }
17739
17740 free(value);
17741 blkid_put_cache(cache);
17742
17743 ;
17744 return 0;
17745 }
17746 _ACEOF
17747 if ac_fn_c_try_run "$LINENO"; then :
17748
17749 rm -f $ZFS_DEV
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17751 $as_echo "yes" >&6; }
17752 LIBBLKID="-lblkid"
17753
17754
17755 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
17756
17757
17758 else
17759
17760 rm -f $ZFS_DEV
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17762 $as_echo "no" >&6; }
17763 if test "x$with_blkid" != xcheck; then :
17764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17766 as_fn_error $? "--with-blkid given but unavailable
17767 See \`config.log' for more details" "$LINENO" 5 ; }
17768 fi
17769
17770 fi
17771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17772 conftest.$ac_objext conftest.beam conftest.$ac_ext
17773 fi
17774
17775
17776 LDFLAGS="$saved_LDFLAGS"
17777
17778 else
17779
17780 if test "x$with_blkid" != xcheck; then :
17781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17783 as_fn_error $? "--with-blkid given but unavailable
17784 See \`config.log' for more details" "$LINENO" 5 ; }
17785 fi
17786
17787
17788 fi
17789
17790
17791 fi
17792
17793
17794
17795 # Check whether --with-selinux was given.
17796 if test "${with_selinux+set}" = set; then :
17797 withval=$with_selinux;
17798 else
17799 with_selinux=check
17800 fi
17801
17802
17803 LIBSELINUX=
17804 if test "x$with_selinux" != xno; then :
17805
17806 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
17807 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
17808
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
17810 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
17811 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
17812 $as_echo_n "(cached) " >&6
17813 else
17814 ac_check_lib_save_LIBS=$LIBS
17815 LIBS="-lselinux $LIBS"
17816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h. */
17818
17819 /* Override any GCC internal prototype to avoid an error.
17820 Use char because int might match the return type of a GCC
17821 builtin and then its argument prototype would still apply. */
17822 #ifdef __cplusplus
17823 extern "C"
17824 #endif
17825 char is_selinux_enabled ();
17826 int
17827 main ()
17828 {
17829 return is_selinux_enabled ();
17830 ;
17831 return 0;
17832 }
17833 _ACEOF
17834 if ac_fn_c_try_link "$LINENO"; then :
17835 ac_cv_lib_selinux_is_selinux_enabled=yes
17836 else
17837 ac_cv_lib_selinux_is_selinux_enabled=no
17838 fi
17839 rm -f core conftest.err conftest.$ac_objext \
17840 conftest$ac_exeext conftest.$ac_ext
17841 LIBS=$ac_check_lib_save_LIBS
17842 fi
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
17844 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
17845 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
17846
17847 LIBSELINUX="-lselinux"
17848
17849
17850 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
17851
17852
17853 else
17854
17855 if test "x$with_selinux" != xcheck; then :
17856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17858 as_fn_error $? "--with-selinux given but unavailable
17859 See \`config.log' for more details" "$LINENO" 5 ; }
17860
17861 fi
17862
17863 fi
17864
17865
17866 else
17867
17868 if test "x$with_selinux" != xcheck; then :
17869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17871 as_fn_error $? "--with-selinux given but unavailable
17872 See \`config.log' for more details" "$LINENO" 5 ; }
17873
17874 fi
17875
17876 fi
17877
17878
17879
17880 else
17881
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux support" >&5
17883 $as_echo_n "checking for selinux support... " >&6; }
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17885 $as_echo "no" >&6; }
17886
17887 fi
17888
17889
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
17891 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
17892
17893 saved_flags="$CFLAGS"
17894 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
17895
17896 if test "$cross_compiling" = yes; then :
17897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17899 as_fn_error $? "cannot run test program while cross compiling
17900 See \`config.log' for more details" "$LINENO" 5 ; }
17901 else
17902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17903 /* end confdefs.h. */
17904
17905 int
17906 main ()
17907 {
17908
17909 ;
17910 return 0;
17911 }
17912 _ACEOF
17913 if ac_fn_c_try_run "$LINENO"; then :
17914
17915 FRAME_LARGER_THAN=-Wframe-larger-than=1024
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17917 $as_echo "yes" >&6; }
17918
17919 else
17920
17921 FRAME_LARGER_THAN=
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17923 $as_echo "no" >&6; }
17924
17925 fi
17926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17927 conftest.$ac_objext conftest.beam conftest.$ac_ext
17928 fi
17929
17930
17931 CFLAGS="$saved_flags"
17932
17933
17934 ;;
17935 all)
17936
17937
17938 # Check whether --with-linux was given.
17939 if test "${with_linux+set}" = set; then :
17940 withval=$with_linux; kernelsrc="$withval"
17941 fi
17942
17943
17944
17945 # Check whether --with-linux-obj was given.
17946 if test "${with_linux_obj+set}" = set; then :
17947 withval=$with_linux_obj; kernelbuild="$withval"
17948 fi
17949
17950
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
17952 $as_echo_n "checking kernel source directory... " >&6; }
17953 if test -z "$kernelsrc"; then :
17954
17955 if test -e "/lib/modules/$(uname -r)/source"; then :
17956
17957 headersdir="/lib/modules/$(uname -r)/source"
17958 sourcelink=$(readlink -f "$headersdir")
17959
17960 elif test -e "/lib/modules/$(uname -r)/build"; then :
17961
17962 headersdir="/lib/modules/$(uname -r)/build"
17963 sourcelink=$(readlink -f "$headersdir")
17964
17965 else
17966
17967 sourcelink=$(ls -1d /usr/src/kernels/* \
17968 /usr/src/linux-* \
17969 2>/dev/null | grep -v obj | tail -1)
17970
17971 fi
17972
17973 if test -n "$sourcelink" && test -e ${sourcelink}; then :
17974
17975 kernelsrc=`readlink -f ${sourcelink}`
17976
17977 else
17978
17979 kernelsrc="Not found"
17980
17981 fi
17982
17983 else
17984
17985 if test "$kernelsrc" = "NONE"; then :
17986
17987 kernsrcver=NONE
17988
17989 fi
17990
17991 fi
17992
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
17994 $as_echo "$kernelsrc" >&6; }
17995 if test ! -d "$kernelsrc"; then :
17996
17997 as_fn_error $? "
17998 *** Please make sure the kernel devel package for your distribution
17999 *** is installed then try again. If that fails you can specify the
18000 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
18001
18002 fi
18003
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
18005 $as_echo_n "checking kernel build directory... " >&6; }
18006 if test -z "$kernelbuild"; then :
18007
18008 if test -e "/lib/modules/$(uname -r)/build"; then :
18009
18010 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
18011
18012 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
18013
18014 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
18015
18016 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
18017
18018 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
18019
18020 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
18021
18022 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
18023
18024 else
18025
18026 kernelbuild=${kernelsrc}
18027
18028 fi
18029
18030 fi
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
18032 $as_echo "$kernelbuild" >&6; }
18033
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
18035 $as_echo_n "checking kernel source version... " >&6; }
18036 utsrelease1=$kernelbuild/include/linux/version.h
18037 utsrelease2=$kernelbuild/include/linux/utsrelease.h
18038 utsrelease3=$kernelbuild/include/generated/utsrelease.h
18039 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
18040
18041 utsrelease=linux/version.h
18042
18043 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
18044
18045 utsrelease=linux/utsrelease.h
18046
18047 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
18048
18049 utsrelease=generated/utsrelease.h
18050
18051 fi
18052
18053 if test "$utsrelease"; then :
18054
18055 kernsrcver=`(echo "#include <$utsrelease>";
18056 echo "kernsrcver=UTS_RELEASE") |
18057 cpp -I $kernelbuild/include |
18058 grep "^kernsrcver=" | cut -d \" -f 2`
18059
18060 if test -z "$kernsrcver"; then :
18061
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
18063 $as_echo "Not found" >&6; }
18064 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
18065
18066 fi
18067
18068 else
18069
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
18071 $as_echo "Not found" >&6; }
18072 if test "x$enable_linux_builtin" != xyes; then
18073 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
18074 else
18075 as_fn_error $? "
18076 *** Cannot find UTS_RELEASE definition.
18077 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
18078 fi
18079
18080 fi
18081
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
18083 $as_echo "$kernsrcver" >&6; }
18084
18085 LINUX=${kernelsrc}
18086 LINUX_OBJ=${kernelbuild}
18087 LINUX_VERSION=${kernsrcver}
18088
18089
18090
18091
18092
18093
18094 modpost=$LINUX/scripts/Makefile.modpost
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
18096 $as_echo_n "checking kernel file name for module symbols... " >&6; }
18097 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
18098
18099 if grep -q Modules.symvers $modpost; then :
18100
18101 LINUX_SYMBOLS=Modules.symvers
18102
18103 else
18104
18105 LINUX_SYMBOLS=Module.symvers
18106
18107 fi
18108
18109 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
18110
18111 as_fn_error $? "
18112 *** Please make sure the kernel devel package for your distribution
18113 *** is installed. If your building with a custom kernel make sure the
18114 *** kernel is configured, built, and the '--with-linux=PATH' configure
18115 *** option refers to the location of the kernel source." "$LINENO" 5
18116
18117 fi
18118
18119 else
18120
18121 LINUX_SYMBOLS=NONE
18122
18123 fi
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
18125 $as_echo "$LINUX_SYMBOLS" >&6; }
18126
18127
18128
18129
18130
18131 # Check whether --with-spl was given.
18132 if test "${with_spl+set}" = set; then :
18133 withval=$with_spl; splsrc="$withval"
18134 fi
18135
18136
18137
18138 # Check whether --with-spl-obj was given.
18139 if test "${with_spl_obj+set}" = set; then :
18140 withval=$with_spl_obj; splbuild="$withval"
18141 fi
18142
18143
18144 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
18145 splsrc1="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
18146 splsrc2="/usr/src/spl-${VERSION}"
18147 splsrc3="../spl/"
18148 splsrc4="$LINUX"
18149
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
18151 $as_echo_n "checking spl source directory... " >&6; }
18152 if test -z "${splsrc}"; then :
18153
18154 if test -e "${splsrc0}/spl.release.in"; then :
18155
18156 splsrc=${splsrc0}
18157
18158 elif test -e "${splsrc1}/spl.release.in"; then :
18159
18160 splsrc=${splsrc1}
18161
18162 elif test -e "${splsrc2}/spl.release.in"; then :
18163
18164 splsrc=${splsrc2}
18165
18166 elif test -e "${splsrc3}/spl.release.in"; then :
18167
18168 splsrc=$(readlink -f "${splsrc3}")
18169
18170 elif test -e "${splsrc4}/spl.release.in" ; then :
18171
18172 splsrc=${splsrc4}
18173
18174 else
18175
18176 splsrc="Not found"
18177
18178 fi
18179
18180 else
18181
18182 if test "$splsrc" = "NONE"; then :
18183
18184 splbuild=NONE
18185 splsrcver=NONE
18186
18187 fi
18188
18189 fi
18190
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
18192 $as_echo "$splsrc" >&6; }
18193 if test ! -e "$splsrc/spl.release.in"; then :
18194
18195 as_fn_error $? "
18196 *** Please make sure the kmod spl devel package for your distribution
18197 *** is installed then try again. If that fails you can specify the
18198 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
18199
18200 fi
18201
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
18203 $as_echo_n "checking spl build directory... " >&6; }
18204 if test -z "$splbuild"; then :
18205
18206 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
18207
18208 splbuild="${splsrc}/${LINUX_VERSION}"
18209
18210 elif test -e "${splsrc}/spl_config.h" ; then :
18211
18212 splbuild="${splsrc}"
18213
18214 else
18215
18216 splbuild="Not found"
18217
18218 fi
18219
18220 fi
18221
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
18223 $as_echo "$splbuild" >&6; }
18224 if ! test -e "$splbuild/spl_config.h"; then :
18225
18226 as_fn_error $? "
18227 *** Please make sure the kmod spl devel <kernel> package for your
18228 *** distribution is installed then try again. If that fails you
18229 *** can specify the location of the spl objects with the
18230 *** '--with-spl-obj=PATH' option." "$LINENO" 5
18231
18232 fi
18233
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
18235 $as_echo_n "checking spl source version... " >&6; }
18236 if test -r $splbuild/spl_config.h &&
18237 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
18238
18239
18240 splsrcver=`(echo "#include <spl_config.h>";
18241 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
18242 cpp -I $splbuild |
18243 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
18244
18245 fi
18246
18247 if test -z "$splsrcver"; then :
18248
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
18250 $as_echo "Not found" >&6; }
18251 as_fn_error $? "
18252 *** Cannot determine the version of the spl source.
18253 *** Please prepare the spl source before running this script" "$LINENO" 5
18254
18255 fi
18256
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
18258 $as_echo "$splsrcver" >&6; }
18259
18260 SPL=${splsrc}
18261 SPL_OBJ=${splbuild}
18262 SPL_VERSION=${splsrcver}
18263
18264
18265
18266
18267
18268
18269
18270 # Check whether --with-spl-timeout was given.
18271 if test "${with_spl_timeout+set}" = set; then :
18272 withval=$with_spl_timeout; timeout="$withval"
18273 else
18274 timeout=0
18275 fi
18276
18277
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
18279 $as_echo_n "checking spl file name for module symbols... " >&6; }
18280 SPL_SYMBOLS=NONE
18281
18282 while true; do
18283 if test -r $SPL_OBJ/Module.symvers; then :
18284
18285 SPL_SYMBOLS=Module.symvers
18286
18287 elif test -r $SPL_OBJ/Modules.symvers; then :
18288
18289 SPL_SYMBOLS=Modules.symvers
18290
18291 elif test -r $SPL_OBJ/module/Module.symvers; then :
18292
18293 SPL_SYMBOLS=Module.symvers
18294
18295 elif test -r $SPL_OBJ/module/Modules.symvers; then :
18296
18297 SPL_SYMBOLS=Modules.symvers
18298
18299 fi
18300
18301 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
18302
18303 break;
18304
18305 else
18306
18307 sleep 1
18308 timeout=$((timeout-1))
18309
18310 fi
18311 done
18312
18313 if test "$SPL_SYMBOLS" = NONE; then :
18314
18315 SPL_SYMBOLS=$LINUX_SYMBOLS
18316
18317 fi
18318
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
18320 $as_echo "$SPL_SYMBOLS" >&6; }
18321
18322
18323
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
18325 $as_echo_n "checking whether modules can be built... " >&6; }
18326
18327
18328 cat confdefs.h - <<_ACEOF >conftest.c
18329
18330
18331 int
18332 main (void)
18333 {
18334
18335 ;
18336 return 0;
18337 }
18338
18339 _ACEOF
18340
18341
18342 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18343 echo "obj-m := conftest.o" >build/Makefile
18344 modpost_flag=''
18345 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18346 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18351 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18356 test $ac_status = 0; }; }; then :
18357
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18359 $as_echo "yes" >&6; }
18360
18361 else
18362 $as_echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18364
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18366 $as_echo "no" >&6; }
18367 if test "x$enable_linux_builtin" != xyes; then
18368 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
18369 else
18370 as_fn_error $? "
18371 *** Unable to build an empty module.
18372 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
18373 fi
18374
18375
18376
18377 fi
18378 rm -Rf build
18379
18380
18381
18382
18383
18384 if test "$ZFS_META_LICENSE" = GPL; then :
18385
18386
18387 $as_echo "#define HAVE_GPL_ONLY_SYMBOLS 1" >>confdefs.h
18388
18389
18390 fi
18391
18392
18393
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
18395 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
18396
18397
18398 cat confdefs.h - <<_ACEOF >conftest.c
18399
18400
18401 #include <linux/module.h>
18402
18403 int
18404 main (void)
18405 {
18406
18407 #ifndef CONFIG_DEBUG_LOCK_ALLOC
18408 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
18409 #endif
18410
18411 ;
18412 return 0;
18413 }
18414
18415 _ACEOF
18416
18417
18418 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18419 echo "obj-m := conftest.o" >build/Makefile
18420 modpost_flag=''
18421 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18422 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18424 (eval $ac_try) 2>&5
18425 ac_status=$?
18426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18427 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18429 (eval $ac_try) 2>&5
18430 ac_status=$?
18431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18432 test $ac_status = 0; }; }; then :
18433
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18435 $as_echo "yes" >&6; }
18436
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
18438 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
18439 tmp_flags="$EXTRA_KCFLAGS"
18440
18441
18442 cat confdefs.h - <<_ACEOF >conftest.c
18443
18444
18445 #include <linux/module.h>
18446 #include <linux/mutex.h>
18447
18448 MODULE_LICENSE("$ZFS_META_LICENSE");
18449
18450 int
18451 main (void)
18452 {
18453
18454 struct mutex lock;
18455
18456 mutex_init(&lock);
18457 mutex_lock(&lock);
18458 mutex_unlock(&lock);
18459
18460 ;
18461 return 0;
18462 }
18463
18464 _ACEOF
18465
18466
18467 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18468 echo "obj-m := conftest.o" >build/Makefile
18469 modpost_flag=''
18470 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18471 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18476 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
18480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18481 test $ac_status = 0; }; }; then :
18482
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18484 $as_echo "no" >&6; }
18485
18486 else
18487 $as_echo "$as_me: failed program was:" >&5
18488 sed 's/^/| /' conftest.$ac_ext >&5
18489
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18491 $as_echo "yes" >&6; }
18492 as_fn_error $? "
18493 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
18494 *** with the CDDL license and will prevent the module linking stage
18495 *** from succeeding. You must rebuild your kernel without this
18496 *** option enabled." "$LINENO" 5
18497
18498
18499
18500 fi
18501 rm -Rf build
18502
18503
18504 EXTRA_KCFLAGS="$tmp_flags"
18505
18506
18507 else
18508 $as_echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18510
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18512 $as_echo "no" >&6; }
18513
18514
18515
18516
18517 fi
18518 rm -Rf build
18519
18520
18521
18522
18523
18524
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
18526 $as_echo_n "checking block device operation prototypes... " >&6; }
18527 tmp_flags="$EXTRA_KCFLAGS"
18528 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
18529
18530
18531 cat confdefs.h - <<_ACEOF >conftest.c
18532
18533
18534 #include <linux/blkdev.h>
18535
18536 int blk_open(struct block_device *bdev, fmode_t mode)
18537 { return 0; }
18538 int blk_release(struct gendisk *g, fmode_t mode) { return 0; }
18539 int blk_ioctl(struct block_device *bdev, fmode_t mode,
18540 unsigned x, unsigned long y) { return 0; }
18541 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
18542 unsigned x, unsigned long y) { return 0; }
18543
18544 static const struct block_device_operations
18545 bops __attribute__ ((unused)) = {
18546 .open = blk_open,
18547 .release = blk_release,
18548 .ioctl = blk_ioctl,
18549 .compat_ioctl = blk_compat_ioctl,
18550 };
18551
18552 int
18553 main (void)
18554 {
18555
18556
18557 ;
18558 return 0;
18559 }
18560
18561 _ACEOF
18562
18563
18564 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18565 echo "obj-m := conftest.o" >build/Makefile
18566 modpost_flag=''
18567 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18568 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18570 (eval $ac_try) 2>&5
18571 ac_status=$?
18572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18573 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18575 (eval $ac_try) 2>&5
18576 ac_status=$?
18577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18578 test $ac_status = 0; }; }; then :
18579
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
18581 $as_echo "struct block_device" >&6; }
18582
18583 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
18584
18585
18586 else
18587 $as_echo "$as_me: failed program was:" >&5
18588 sed 's/^/| /' conftest.$ac_ext >&5
18589
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
18591 $as_echo "struct inode" >&6; }
18592
18593
18594
18595 fi
18596 rm -Rf build
18597
18598
18599 EXTRA_KCFLAGS="$tmp_flags"
18600
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
18602 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
18603
18604
18605 cat confdefs.h - <<_ACEOF >conftest.c
18606
18607
18608 #include <linux/types.h>
18609
18610 int
18611 main (void)
18612 {
18613
18614 fmode_t *ptr __attribute__ ((unused));
18615
18616 ;
18617 return 0;
18618 }
18619
18620 _ACEOF
18621
18622
18623 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18624 echo "obj-m := conftest.o" >build/Makefile
18625 modpost_flag=''
18626 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18627 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18632 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18634 (eval $ac_try) 2>&5
18635 ac_status=$?
18636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18637 test $ac_status = 0; }; }; then :
18638
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18640 $as_echo "yes" >&6; }
18641
18642 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
18643
18644
18645 else
18646 $as_echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18648
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18650 $as_echo "no" >&6; }
18651
18652
18653
18654 fi
18655 rm -Rf build
18656
18657
18658
18659
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
18661 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
18662
18663
18664 cat confdefs.h - <<_ACEOF >conftest.c
18665
18666
18667 #include <linux/kobject.h>
18668
18669 int
18670 main (void)
18671 {
18672
18673 int val __attribute__ ((unused));
18674 val = KOBJ_NAME_LEN;
18675
18676 ;
18677 return 0;
18678 }
18679
18680 _ACEOF
18681
18682
18683 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18684 echo "obj-m := conftest.o" >build/Makefile
18685 modpost_flag=''
18686 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18687 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18692 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18694 (eval $ac_try) 2>&5
18695 ac_status=$?
18696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18697 test $ac_status = 0; }; }; then :
18698
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18700 $as_echo "yes" >&6; }
18701
18702 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
18703
18704
18705 else
18706 $as_echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18708
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18710 $as_echo "no" >&6; }
18711
18712
18713
18714 fi
18715 rm -Rf build
18716
18717
18718
18719
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
18721 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
18722
18723
18724 cat confdefs.h - <<_ACEOF >conftest.c
18725
18726
18727 #include <linux/fs.h>
18728
18729 int
18730 main (void)
18731 {
18732
18733 struct block_device *bdev = NULL;
18734 (void) blkdev_get(bdev, 0, NULL);
18735
18736 ;
18737 return 0;
18738 }
18739
18740 _ACEOF
18741
18742
18743 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18744 echo "obj-m := conftest.o" >build/Makefile
18745 modpost_flag=''
18746 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18747 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
18751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18752 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18754 (eval $ac_try) 2>&5
18755 ac_status=$?
18756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18757 test $ac_status = 0; }; }; then :
18758
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18760 $as_echo "yes" >&6; }
18761
18762 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
18763
18764
18765 else
18766 $as_echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18768
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18770 $as_echo "no" >&6; }
18771
18772
18773
18774 fi
18775 rm -Rf build
18776
18777
18778
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
18780 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
18781
18782
18783
18784 cat confdefs.h - <<_ACEOF >conftest.c
18785
18786
18787 #include <linux/fs.h>
18788
18789 int
18790 main (void)
18791 {
18792
18793 blkdev_get_by_path(NULL, 0, NULL);
18794
18795 ;
18796 return 0;
18797 }
18798
18799 _ACEOF
18800
18801
18802 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18803 echo "obj-m := conftest.o" >build/Makefile
18804 modpost_flag=''
18805 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18806 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18808 (eval $ac_try) 2>&5
18809 ac_status=$?
18810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18811 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18813 (eval $ac_try) 2>&5
18814 ac_status=$?
18815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18816 test $ac_status = 0; }; }; then :
18817 rc=0
18818 else
18819 $as_echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18821 rc=1
18822
18823
18824 fi
18825 rm -Rf build
18826
18827
18828 if test $rc -ne 0; then :
18829
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18831 $as_echo "no" >&6; }
18832
18833 else
18834 if test "x$enable_linux_builtin" != xyes; then
18835
18836 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
18837 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18838 rc=$?
18839 if test $rc -ne 0; then
18840 export=0
18841 for file in fs/block_dev.c; do
18842 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
18843 "$LINUX/$file" 2>/dev/null
18844 rc=$?
18845 if test $rc -eq 0; then
18846 export=1
18847 break;
18848 fi
18849 done
18850 if test $export -eq 0; then :
18851 rc=1
18852 else :
18853 rc=0
18854 fi
18855 else :
18856 rc=0
18857 fi
18858
18859 fi
18860 if test $rc -ne 0; then :
18861
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18863 $as_echo "no" >&6; }
18864
18865 else :
18866
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18868 $as_echo "yes" >&6; }
18869
18870 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
18871
18872
18873 fi
18874 fi
18875
18876
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
18878 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
18879
18880
18881
18882 cat confdefs.h - <<_ACEOF >conftest.c
18883
18884
18885 #include <linux/fs.h>
18886
18887 int
18888 main (void)
18889 {
18890
18891 open_bdev_exclusive(NULL, 0, NULL);
18892
18893 ;
18894 return 0;
18895 }
18896
18897 _ACEOF
18898
18899
18900 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18901 echo "obj-m := conftest.o" >build/Makefile
18902 modpost_flag=''
18903 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18904 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18906 (eval $ac_try) 2>&5
18907 ac_status=$?
18908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18909 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18911 (eval $ac_try) 2>&5
18912 ac_status=$?
18913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18914 test $ac_status = 0; }; }; then :
18915 rc=0
18916 else
18917 $as_echo "$as_me: failed program was:" >&5
18918 sed 's/^/| /' conftest.$ac_ext >&5
18919 rc=1
18920
18921
18922 fi
18923 rm -Rf build
18924
18925
18926 if test $rc -ne 0; then :
18927
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18929 $as_echo "no" >&6; }
18930
18931 else
18932 if test "x$enable_linux_builtin" != xyes; then
18933
18934 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
18935 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18936 rc=$?
18937 if test $rc -ne 0; then
18938 export=0
18939 for file in fs/block_dev.c; do
18940 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
18941 "$LINUX/$file" 2>/dev/null
18942 rc=$?
18943 if test $rc -eq 0; then
18944 export=1
18945 break;
18946 fi
18947 done
18948 if test $export -eq 0; then :
18949 rc=1
18950 else :
18951 rc=0
18952 fi
18953 else :
18954 rc=0
18955 fi
18956
18957 fi
18958 if test $rc -ne 0; then :
18959
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18961 $as_echo "no" >&6; }
18962
18963 else :
18964
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18966 $as_echo "yes" >&6; }
18967
18968 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
18969
18970
18971 fi
18972 fi
18973
18974
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
18976 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
18977
18978
18979
18980 cat confdefs.h - <<_ACEOF >conftest.c
18981
18982
18983 #include <linux/fs.h>
18984
18985 int
18986 main (void)
18987 {
18988
18989 lookup_bdev(NULL);
18990
18991 ;
18992 return 0;
18993 }
18994
18995 _ACEOF
18996
18997
18998 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18999 echo "obj-m := conftest.o" >build/Makefile
19000 modpost_flag=''
19001 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19002 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19004 (eval $ac_try) 2>&5
19005 ac_status=$?
19006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19007 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19009 (eval $ac_try) 2>&5
19010 ac_status=$?
19011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19012 test $ac_status = 0; }; }; then :
19013 rc=0
19014 else
19015 $as_echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017 rc=1
19018
19019
19020 fi
19021 rm -Rf build
19022
19023
19024 if test $rc -ne 0; then :
19025
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19027 $as_echo "no" >&6; }
19028
19029 else
19030 if test "x$enable_linux_builtin" != xyes; then
19031
19032 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
19033 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19034 rc=$?
19035 if test $rc -ne 0; then
19036 export=0
19037 for file in fs/block_dev.c; do
19038 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
19039 "$LINUX/$file" 2>/dev/null
19040 rc=$?
19041 if test $rc -eq 0; then
19042 export=1
19043 break;
19044 fi
19045 done
19046 if test $export -eq 0; then :
19047 rc=1
19048 else :
19049 rc=0
19050 fi
19051 else :
19052 rc=0
19053 fi
19054
19055 fi
19056 if test $rc -ne 0; then :
19057
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19059 $as_echo "no" >&6; }
19060
19061 else :
19062
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19064 $as_echo "yes" >&6; }
19065
19066 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
19067
19068
19069 fi
19070 fi
19071
19072
19073
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
19075 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
19076
19077
19078 cat confdefs.h - <<_ACEOF >conftest.c
19079
19080
19081 #include <linux/buffer_head.h>
19082
19083 int
19084 main (void)
19085 {
19086
19087 struct block_device *bdev = NULL;
19088 invalidate_bdev(bdev);
19089
19090 ;
19091 return 0;
19092 }
19093
19094 _ACEOF
19095
19096
19097 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19098 echo "obj-m := conftest.o" >build/Makefile
19099 modpost_flag=''
19100 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19101 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19103 (eval $ac_try) 2>&5
19104 ac_status=$?
19105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19106 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19108 (eval $ac_try) 2>&5
19109 ac_status=$?
19110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19111 test $ac_status = 0; }; }; then :
19112
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19114 $as_echo "yes" >&6; }
19115
19116 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
19117
19118
19119 else
19120 $as_echo "$as_me: failed program was:" >&5
19121 sed 's/^/| /' conftest.$ac_ext >&5
19122
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19124 $as_echo "no" >&6; }
19125
19126
19127
19128 fi
19129 rm -Rf build
19130
19131
19132
19133
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
19135 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
19136 tmp_flags="$EXTRA_KCFLAGS"
19137 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
19138
19139
19140 cat confdefs.h - <<_ACEOF >conftest.c
19141
19142
19143 #include <linux/blkdev.h>
19144
19145 int
19146 main (void)
19147 {
19148
19149 struct block_device *bdev = NULL;
19150 bdev_logical_block_size(bdev);
19151
19152 ;
19153 return 0;
19154 }
19155
19156 _ACEOF
19157
19158
19159 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19160 echo "obj-m := conftest.o" >build/Makefile
19161 modpost_flag=''
19162 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19163 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19165 (eval $ac_try) 2>&5
19166 ac_status=$?
19167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19168 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19170 (eval $ac_try) 2>&5
19171 ac_status=$?
19172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19173 test $ac_status = 0; }; }; then :
19174
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19176 $as_echo "yes" >&6; }
19177
19178 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
19179
19180
19181 else
19182 $as_echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19184
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19186 $as_echo "no" >&6; }
19187
19188
19189
19190 fi
19191 rm -Rf build
19192
19193
19194 EXTRA_KCFLAGS="$tmp_flags"
19195
19196
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
19198 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
19199 tmp_flags="$EXTRA_KCFLAGS"
19200 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
19201
19202
19203 cat confdefs.h - <<_ACEOF >conftest.c
19204
19205
19206 #include <linux/blkdev.h>
19207
19208 int
19209 main (void)
19210 {
19211
19212 struct block_device *bdev = NULL;
19213 bdev_physical_block_size(bdev);
19214
19215 ;
19216 return 0;
19217 }
19218
19219 _ACEOF
19220
19221
19222 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19223 echo "obj-m := conftest.o" >build/Makefile
19224 modpost_flag=''
19225 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19226 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19228 (eval $ac_try) 2>&5
19229 ac_status=$?
19230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19231 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19233 (eval $ac_try) 2>&5
19234 ac_status=$?
19235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19236 test $ac_status = 0; }; }; then :
19237
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19239 $as_echo "yes" >&6; }
19240
19241 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
19242
19243
19244 else
19245 $as_echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19247
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19249 $as_echo "no" >&6; }
19250
19251
19252
19253 fi
19254 rm -Rf build
19255
19256
19257 EXTRA_KCFLAGS="$tmp_flags"
19258
19259
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST is defined" >&5
19261 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
19262
19263
19264 cat confdefs.h - <<_ACEOF >conftest.c
19265
19266
19267 #include <linux/bio.h>
19268
19269 int
19270 main (void)
19271 {
19272
19273 int flags __attribute__ ((unused));
19274 flags = (1 << BIO_RW_FAILFAST);
19275
19276 ;
19277 return 0;
19278 }
19279
19280 _ACEOF
19281
19282
19283 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19284 echo "obj-m := conftest.o" >build/Makefile
19285 modpost_flag=''
19286 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19287 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19289 (eval $ac_try) 2>&5
19290 ac_status=$?
19291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19292 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19297 test $ac_status = 0; }; }; then :
19298
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19300 $as_echo "yes" >&6; }
19301
19302 $as_echo "#define HAVE_BIO_RW_FAILFAST 1" >>confdefs.h
19303
19304
19305 else
19306 $as_echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19308
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19310 $as_echo "no" >&6; }
19311
19312
19313
19314 fi
19315 rm -Rf build
19316
19317
19318
19319
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
19321 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
19322
19323
19324 cat confdefs.h - <<_ACEOF >conftest.c
19325
19326
19327 #include <linux/bio.h>
19328
19329 int
19330 main (void)
19331 {
19332
19333 int flags __attribute__ ((unused));
19334 flags = ((1 << BIO_RW_FAILFAST_DEV) |
19335 (1 << BIO_RW_FAILFAST_TRANSPORT) |
19336 (1 << BIO_RW_FAILFAST_DRIVER));
19337
19338 ;
19339 return 0;
19340 }
19341
19342 _ACEOF
19343
19344
19345 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19346 echo "obj-m := conftest.o" >build/Makefile
19347 modpost_flag=''
19348 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19349 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19351 (eval $ac_try) 2>&5
19352 ac_status=$?
19353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19354 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19356 (eval $ac_try) 2>&5
19357 ac_status=$?
19358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19359 test $ac_status = 0; }; }; then :
19360
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19362 $as_echo "yes" >&6; }
19363
19364 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
19365
19366
19367 else
19368 $as_echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19370
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19372 $as_echo "no" >&6; }
19373
19374
19375
19376 fi
19377 rm -Rf build
19378
19379
19380
19381
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
19383 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
19384
19385
19386 cat confdefs.h - <<_ACEOF >conftest.c
19387
19388
19389 #include <linux/bio.h>
19390
19391 int
19392 main (void)
19393 {
19394
19395 int flags __attribute__ ((unused));
19396 flags = REQ_FAILFAST_MASK;
19397
19398 ;
19399 return 0;
19400 }
19401
19402 _ACEOF
19403
19404
19405 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19406 echo "obj-m := conftest.o" >build/Makefile
19407 modpost_flag=''
19408 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19409 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19411 (eval $ac_try) 2>&5
19412 ac_status=$?
19413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19414 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19416 (eval $ac_try) 2>&5
19417 ac_status=$?
19418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19419 test $ac_status = 0; }; }; then :
19420
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19422 $as_echo "yes" >&6; }
19423
19424 $as_echo "#define HAVE_BIO_REQ_FAILFAST_MASK 1" >>confdefs.h
19425
19426
19427 else
19428 $as_echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19430
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19432 $as_echo "no" >&6; }
19433
19434
19435
19436 fi
19437 rm -Rf build
19438
19439
19440
19441
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 2 args" >&5
19443 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
19444
19445
19446 cat confdefs.h - <<_ACEOF >conftest.c
19447
19448
19449 #include <linux/bio.h>
19450
19451 void wanted_end_io(struct bio *bio, int x) { return; }
19452
19453 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
19454
19455 int
19456 main (void)
19457 {
19458
19459
19460 ;
19461 return 0;
19462 }
19463
19464 _ACEOF
19465
19466
19467 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19468 echo "obj-m := conftest.o" >build/Makefile
19469 modpost_flag=''
19470 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19471 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19473 (eval $ac_try) 2>&5
19474 ac_status=$?
19475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19476 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19481 test $ac_status = 0; }; }; then :
19482
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19484 $as_echo "yes" >&6; }
19485
19486 $as_echo "#define HAVE_2ARGS_BIO_END_IO_T 1" >>confdefs.h
19487
19488
19489 else
19490 $as_echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19492
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19494 $as_echo "no" >&6; }
19495
19496
19497
19498 fi
19499 rm -Rf build
19500
19501
19502
19503
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNC is defined" >&5
19505 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
19506
19507
19508 cat confdefs.h - <<_ACEOF >conftest.c
19509
19510
19511 #include <linux/bio.h>
19512
19513 int
19514 main (void)
19515 {
19516
19517 int flags __attribute__ ((unused));
19518 flags = BIO_RW_SYNC;
19519
19520 ;
19521 return 0;
19522 }
19523
19524 _ACEOF
19525
19526
19527 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19528 echo "obj-m := conftest.o" >build/Makefile
19529 modpost_flag=''
19530 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19531 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19536 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19538 (eval $ac_try) 2>&5
19539 ac_status=$?
19540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19541 test $ac_status = 0; }; }; then :
19542
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19544 $as_echo "yes" >&6; }
19545
19546 $as_echo "#define HAVE_BIO_RW_SYNC 1" >>confdefs.h
19547
19548
19549 else
19550 $as_echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19552
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19554 $as_echo "no" >&6; }
19555
19556
19557
19558 fi
19559 rm -Rf build
19560
19561
19562
19563
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNCIO is defined" >&5
19565 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
19566
19567
19568 cat confdefs.h - <<_ACEOF >conftest.c
19569
19570
19571 #include <linux/bio.h>
19572
19573 int
19574 main (void)
19575 {
19576
19577 int flags __attribute__ ((unused));
19578 flags = BIO_RW_SYNCIO;
19579
19580 ;
19581 return 0;
19582 }
19583
19584 _ACEOF
19585
19586
19587 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19588 echo "obj-m := conftest.o" >build/Makefile
19589 modpost_flag=''
19590 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19591 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19593 (eval $ac_try) 2>&5
19594 ac_status=$?
19595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19596 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19598 (eval $ac_try) 2>&5
19599 ac_status=$?
19600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19601 test $ac_status = 0; }; }; then :
19602
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19604 $as_echo "yes" >&6; }
19605
19606 $as_echo "#define HAVE_BIO_RW_SYNCIO 1" >>confdefs.h
19607
19608
19609 else
19610 $as_echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19612
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19614 $as_echo "no" >&6; }
19615
19616
19617
19618 fi
19619 rm -Rf build
19620
19621
19622
19623
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_SYNC is defined" >&5
19625 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
19626
19627
19628 cat confdefs.h - <<_ACEOF >conftest.c
19629
19630
19631 #include <linux/bio.h>
19632
19633 int
19634 main (void)
19635 {
19636
19637 int flags __attribute__ ((unused));
19638 flags = REQ_SYNC;
19639
19640 ;
19641 return 0;
19642 }
19643
19644 _ACEOF
19645
19646
19647 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19648 echo "obj-m := conftest.o" >build/Makefile
19649 modpost_flag=''
19650 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19651 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19653 (eval $ac_try) 2>&5
19654 ac_status=$?
19655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19656 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19658 (eval $ac_try) 2>&5
19659 ac_status=$?
19660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19661 test $ac_status = 0; }; }; then :
19662
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19664 $as_echo "yes" >&6; }
19665
19666 $as_echo "#define HAVE_REQ_SYNC 1" >>confdefs.h
19667
19668
19669 else
19670 $as_echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19672
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19674 $as_echo "no" >&6; }
19675
19676
19677
19678 fi
19679 rm -Rf build
19680
19681
19682
19683
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is available" >&5
19685 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
19686 tmp_flags="$EXTRA_KCFLAGS"
19687 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
19688
19689
19690 cat confdefs.h - <<_ACEOF >conftest.c
19691
19692
19693 #include <linux/blkdev.h>
19694
19695 int
19696 main (void)
19697 {
19698
19699 struct request *req = NULL;
19700 (void) blk_end_request(req, 0, 0);
19701
19702 ;
19703 return 0;
19704 }
19705
19706 _ACEOF
19707
19708
19709 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19710 echo "obj-m := conftest.o" >build/Makefile
19711 modpost_flag=''
19712 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19713 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19715 (eval $ac_try) 2>&5
19716 ac_status=$?
19717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19718 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19723 test $ac_status = 0; }; }; then :
19724
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19726 $as_echo "yes" >&6; }
19727
19728 $as_echo "#define HAVE_BLK_END_REQUEST 1" >>confdefs.h
19729
19730
19731 else
19732 $as_echo "$as_me: failed program was:" >&5
19733 sed 's/^/| /' conftest.$ac_ext >&5
19734
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19736 $as_echo "no" >&6; }
19737
19738
19739
19740 fi
19741 rm -Rf build
19742
19743
19744
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is GPL-only" >&5
19746 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
19747
19748
19749 cat confdefs.h - <<_ACEOF >conftest.c
19750
19751
19752 #include <linux/module.h>
19753 #include <linux/blkdev.h>
19754
19755 MODULE_LICENSE("CDDL");
19756
19757 int
19758 main (void)
19759 {
19760
19761 struct request *req = NULL;
19762 (void) blk_end_request(req, 0, 0);
19763
19764 ;
19765 return 0;
19766 }
19767
19768 _ACEOF
19769
19770
19771 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19772 echo "obj-m := conftest.o" >build/Makefile
19773 modpost_flag=''
19774 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19775 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
19779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19780 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19785 test $ac_status = 0; }; }; then :
19786
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19788 $as_echo "no" >&6; }
19789
19790 else
19791 $as_echo "$as_me: failed program was:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19793
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19795 $as_echo "yes" >&6; }
19796
19797 $as_echo "#define HAVE_BLK_END_REQUEST_GPL_ONLY 1" >>confdefs.h
19798
19799
19800
19801
19802 fi
19803 rm -Rf build
19804
19805
19806 EXTRA_KCFLAGS="$tmp_flags"
19807
19808
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
19810 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
19811 tmp_flags="$EXTRA_KCFLAGS"
19812 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
19813
19814
19815 cat confdefs.h - <<_ACEOF >conftest.c
19816
19817
19818 #include <linux/blkdev.h>
19819
19820 int
19821 main (void)
19822 {
19823
19824 struct request_queue *q = NULL;
19825 (void) blk_queue_flush(q, REQ_FLUSH);
19826
19827 ;
19828 return 0;
19829 }
19830
19831 _ACEOF
19832
19833
19834 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19835 echo "obj-m := conftest.o" >build/Makefile
19836 modpost_flag=''
19837 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19838 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19840 (eval $ac_try) 2>&5
19841 ac_status=$?
19842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19843 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19845 (eval $ac_try) 2>&5
19846 ac_status=$?
19847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19848 test $ac_status = 0; }; }; then :
19849
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19851 $as_echo "yes" >&6; }
19852
19853 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
19854
19855
19856 else
19857 $as_echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19859
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19861 $as_echo "no" >&6; }
19862
19863
19864
19865 fi
19866 rm -Rf build
19867
19868
19869
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
19871 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
19872
19873
19874 cat confdefs.h - <<_ACEOF >conftest.c
19875
19876
19877 #include <linux/module.h>
19878 #include <linux/blkdev.h>
19879
19880 MODULE_LICENSE("CDDL");
19881
19882 int
19883 main (void)
19884 {
19885
19886 struct request_queue *q = NULL;
19887 (void) blk_queue_flush(q, REQ_FLUSH);
19888
19889 ;
19890 return 0;
19891 }
19892
19893 _ACEOF
19894
19895
19896 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19897 echo "obj-m := conftest.o" >build/Makefile
19898 modpost_flag=''
19899 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19900 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19902 (eval $ac_try) 2>&5
19903 ac_status=$?
19904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19905 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19907 (eval $ac_try) 2>&5
19908 ac_status=$?
19909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19910 test $ac_status = 0; }; }; then :
19911
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19913 $as_echo "no" >&6; }
19914
19915 else
19916 $as_echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19918
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19920 $as_echo "yes" >&6; }
19921
19922 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
19923
19924
19925
19926
19927 fi
19928 rm -Rf build
19929
19930
19931 EXTRA_KCFLAGS="$tmp_flags"
19932
19933
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
19935 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
19936 tmp_flags="$EXTRA_KCFLAGS"
19937 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
19938
19939
19940 cat confdefs.h - <<_ACEOF >conftest.c
19941
19942
19943 #include <linux/blkdev.h>
19944
19945 int
19946 main (void)
19947 {
19948
19949 struct request_queue *q = NULL;
19950 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
19951
19952 ;
19953 return 0;
19954 }
19955
19956 _ACEOF
19957
19958
19959 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19960 echo "obj-m := conftest.o" >build/Makefile
19961 modpost_flag=''
19962 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19963 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19965 (eval $ac_try) 2>&5
19966 ac_status=$?
19967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19968 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19970 (eval $ac_try) 2>&5
19971 ac_status=$?
19972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19973 test $ac_status = 0; }; }; then :
19974
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19976 $as_echo "yes" >&6; }
19977
19978 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
19979
19980
19981 else
19982 $as_echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19984
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19986 $as_echo "no" >&6; }
19987
19988
19989
19990 fi
19991 rm -Rf build
19992
19993
19994 EXTRA_KCFLAGS="$tmp_flags"
19995
19996
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
19998 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
19999 tmp_flags="$EXTRA_KCFLAGS"
20000 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20001
20002
20003 cat confdefs.h - <<_ACEOF >conftest.c
20004
20005
20006 #include <linux/blkdev.h>
20007
20008 int
20009 main (void)
20010 {
20011
20012 struct request_queue *q = NULL;
20013 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
20014
20015 ;
20016 return 0;
20017 }
20018
20019 _ACEOF
20020
20021
20022 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20023 echo "obj-m := conftest.o" >build/Makefile
20024 modpost_flag=''
20025 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20026 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20028 (eval $ac_try) 2>&5
20029 ac_status=$?
20030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20031 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20033 (eval $ac_try) 2>&5
20034 ac_status=$?
20035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20036 test $ac_status = 0; }; }; then :
20037
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20039 $as_echo "yes" >&6; }
20040
20041 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
20042
20043
20044 else
20045 $as_echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20047
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20049 $as_echo "no" >&6; }
20050
20051
20052
20053 fi
20054 rm -Rf build
20055
20056
20057 EXTRA_KCFLAGS="$tmp_flags"
20058
20059
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_physical_block_size() is available" >&5
20061 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
20062 tmp_flags="$EXTRA_KCFLAGS"
20063 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20064
20065
20066 cat confdefs.h - <<_ACEOF >conftest.c
20067
20068
20069 #include <linux/blkdev.h>
20070
20071 int
20072 main (void)
20073 {
20074
20075 struct request_queue *q = NULL;
20076 unsigned short block_size = 1;
20077 (void) blk_queue_physical_block_size(q, block_size);
20078
20079 ;
20080 return 0;
20081 }
20082
20083 _ACEOF
20084
20085
20086 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20087 echo "obj-m := conftest.o" >build/Makefile
20088 modpost_flag=''
20089 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20090 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20092 (eval $ac_try) 2>&5
20093 ac_status=$?
20094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20095 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20100 test $ac_status = 0; }; }; then :
20101
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20103 $as_echo "yes" >&6; }
20104
20105 $as_echo "#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
20106
20107
20108 else
20109 $as_echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20111
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20113 $as_echo "no" >&6; }
20114
20115
20116
20117 fi
20118 rm -Rf build
20119
20120
20121 EXTRA_KCFLAGS="$tmp_flags"
20122
20123
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_io_opt() is available" >&5
20125 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
20126 tmp_flags="$EXTRA_KCFLAGS"
20127 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20128
20129
20130 cat confdefs.h - <<_ACEOF >conftest.c
20131
20132
20133 #include <linux/blkdev.h>
20134
20135 int
20136 main (void)
20137 {
20138
20139 struct request_queue *q = NULL;
20140 unsigned int opt = 1;
20141 (void) blk_queue_io_opt(q, opt);
20142
20143 ;
20144 return 0;
20145 }
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 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_BLK_QUEUE_IO_OPT 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 EXTRA_KCFLAGS="$tmp_flags"
20186
20187
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_nonrot() is available" >&5
20189 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
20190 tmp_flags="$EXTRA_KCFLAGS"
20191 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20192
20193
20194 cat confdefs.h - <<_ACEOF >conftest.c
20195
20196
20197 #include <linux/blkdev.h>
20198
20199 int
20200 main (void)
20201 {
20202
20203 struct request_queue *q = NULL;
20204 (void) blk_queue_nonrot(q);
20205
20206 ;
20207 return 0;
20208 }
20209
20210 _ACEOF
20211
20212
20213 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20214 echo "obj-m := conftest.o" >build/Makefile
20215 modpost_flag=''
20216 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20217 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20219 (eval $ac_try) 2>&5
20220 ac_status=$?
20221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20222 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20224 (eval $ac_try) 2>&5
20225 ac_status=$?
20226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20227 test $ac_status = 0; }; }; then :
20228
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20230 $as_echo "yes" >&6; }
20231
20232 $as_echo "#define HAVE_BLK_QUEUE_NONROT 1" >>confdefs.h
20233
20234
20235 else
20236 $as_echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20238
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20240 $as_echo "no" >&6; }
20241
20242
20243
20244 fi
20245 rm -Rf build
20246
20247
20248 EXTRA_KCFLAGS="$tmp_flags"
20249
20250
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_discard() is available" >&5
20252 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
20253 tmp_flags="$EXTRA_KCFLAGS"
20254 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20255
20256
20257 cat confdefs.h - <<_ACEOF >conftest.c
20258
20259
20260 #include <linux/blkdev.h>
20261
20262 int
20263 main (void)
20264 {
20265
20266 struct request_queue *q = NULL;
20267 (void) blk_queue_discard(q);
20268
20269 ;
20270 return 0;
20271 }
20272
20273 _ACEOF
20274
20275
20276 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20277 echo "obj-m := conftest.o" >build/Makefile
20278 modpost_flag=''
20279 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20280 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20282 (eval $ac_try) 2>&5
20283 ac_status=$?
20284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20285 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20287 (eval $ac_try) 2>&5
20288 ac_status=$?
20289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20290 test $ac_status = 0; }; }; then :
20291
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20293 $as_echo "yes" >&6; }
20294
20295 $as_echo "#define HAVE_BLK_QUEUE_DISCARD 1" >>confdefs.h
20296
20297
20298 else
20299 $as_echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20303 $as_echo "no" >&6; }
20304
20305
20306
20307 fi
20308 rm -Rf build
20309
20310
20311 EXTRA_KCFLAGS="$tmp_flags"
20312
20313
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_fetch_request() is available" >&5
20315 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
20316 tmp_flags="$EXTRA_KCFLAGS"
20317 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20318
20319
20320 cat confdefs.h - <<_ACEOF >conftest.c
20321
20322
20323 #include <linux/blkdev.h>
20324
20325 int
20326 main (void)
20327 {
20328
20329 struct request_queue *q = NULL;
20330 (void) blk_fetch_request(q);
20331
20332 ;
20333 return 0;
20334 }
20335
20336 _ACEOF
20337
20338
20339 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20340 echo "obj-m := conftest.o" >build/Makefile
20341 modpost_flag=''
20342 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20343 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20345 (eval $ac_try) 2>&5
20346 ac_status=$?
20347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20348 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20350 (eval $ac_try) 2>&5
20351 ac_status=$?
20352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20353 test $ac_status = 0; }; }; then :
20354
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20356 $as_echo "yes" >&6; }
20357
20358 $as_echo "#define HAVE_BLK_FETCH_REQUEST 1" >>confdefs.h
20359
20360
20361 else
20362 $as_echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20364
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20366 $as_echo "no" >&6; }
20367
20368
20369
20370 fi
20371 rm -Rf build
20372
20373
20374 EXTRA_KCFLAGS="$tmp_flags"
20375
20376
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_requeue_request() is available" >&5
20378 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
20379 tmp_flags="$EXTRA_KCFLAGS"
20380 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20381
20382
20383 cat confdefs.h - <<_ACEOF >conftest.c
20384
20385
20386 #include <linux/blkdev.h>
20387
20388 int
20389 main (void)
20390 {
20391
20392 struct request_queue *q = NULL;
20393 struct request *req = NULL;
20394 blk_requeue_request(q, req);
20395
20396 ;
20397 return 0;
20398 }
20399
20400 _ACEOF
20401
20402
20403 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20404 echo "obj-m := conftest.o" >build/Makefile
20405 modpost_flag=''
20406 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20407 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20409 (eval $ac_try) 2>&5
20410 ac_status=$?
20411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20412 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20414 (eval $ac_try) 2>&5
20415 ac_status=$?
20416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20417 test $ac_status = 0; }; }; then :
20418
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20420 $as_echo "yes" >&6; }
20421
20422 $as_echo "#define HAVE_BLK_REQUEUE_REQUEST 1" >>confdefs.h
20423
20424
20425 else
20426 $as_echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20428
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20430 $as_echo "no" >&6; }
20431
20432
20433
20434 fi
20435 rm -Rf build
20436
20437
20438 EXTRA_KCFLAGS="$tmp_flags"
20439
20440
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is available" >&5
20442 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
20443 tmp_flags="$EXTRA_KCFLAGS"
20444 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20445
20446
20447 cat confdefs.h - <<_ACEOF >conftest.c
20448
20449
20450 #include <linux/blkdev.h>
20451
20452 int
20453 main (void)
20454 {
20455
20456 struct request *req = NULL;
20457 (void) blk_rq_bytes(req);
20458
20459 ;
20460 return 0;
20461 }
20462
20463 _ACEOF
20464
20465
20466 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20467 echo "obj-m := conftest.o" >build/Makefile
20468 modpost_flag=''
20469 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20470 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20472 (eval $ac_try) 2>&5
20473 ac_status=$?
20474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20475 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20477 (eval $ac_try) 2>&5
20478 ac_status=$?
20479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20480 test $ac_status = 0; }; }; then :
20481
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20483 $as_echo "yes" >&6; }
20484
20485 $as_echo "#define HAVE_BLK_RQ_BYTES 1" >>confdefs.h
20486
20487
20488 else
20489 $as_echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20491
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20493 $as_echo "no" >&6; }
20494
20495
20496
20497 fi
20498 rm -Rf build
20499
20500
20501
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is GPL-only" >&5
20503 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
20504
20505
20506 cat confdefs.h - <<_ACEOF >conftest.c
20507
20508
20509 #include <linux/module.h>
20510 #include <linux/blkdev.h>
20511
20512 MODULE_LICENSE("CDDL");
20513
20514 int
20515 main (void)
20516 {
20517
20518 struct request *req = NULL;
20519 (void) blk_rq_bytes(req);
20520
20521 ;
20522 return 0;
20523 }
20524
20525 _ACEOF
20526
20527
20528 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20529 echo "obj-m := conftest.o" >build/Makefile
20530 modpost_flag=''
20531 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20532 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20534 (eval $ac_try) 2>&5
20535 ac_status=$?
20536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20537 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20539 (eval $ac_try) 2>&5
20540 ac_status=$?
20541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20542 test $ac_status = 0; }; }; then :
20543
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20545 $as_echo "no" >&6; }
20546
20547 else
20548 $as_echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20550
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20552 $as_echo "yes" >&6; }
20553
20554 $as_echo "#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1" >>confdefs.h
20555
20556
20557
20558
20559 fi
20560 rm -Rf build
20561
20562
20563 EXTRA_KCFLAGS="$tmp_flags"
20564
20565
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_pos() is available" >&5
20567 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
20568 tmp_flags="$EXTRA_KCFLAGS"
20569 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20570
20571
20572 cat confdefs.h - <<_ACEOF >conftest.c
20573
20574
20575 #include <linux/blkdev.h>
20576
20577 int
20578 main (void)
20579 {
20580
20581 struct request *req = NULL;
20582 (void) blk_rq_pos(req);
20583
20584 ;
20585 return 0;
20586 }
20587
20588 _ACEOF
20589
20590
20591 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20592 echo "obj-m := conftest.o" >build/Makefile
20593 modpost_flag=''
20594 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20595 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20597 (eval $ac_try) 2>&5
20598 ac_status=$?
20599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20600 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20602 (eval $ac_try) 2>&5
20603 ac_status=$?
20604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20605 test $ac_status = 0; }; }; then :
20606
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20608 $as_echo "yes" >&6; }
20609
20610 $as_echo "#define HAVE_BLK_RQ_POS 1" >>confdefs.h
20611
20612
20613 else
20614 $as_echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20616
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20618 $as_echo "no" >&6; }
20619
20620
20621
20622 fi
20623 rm -Rf build
20624
20625
20626 EXTRA_KCFLAGS="$tmp_flags"
20627
20628
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_sectors() is available" >&5
20630 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
20631 tmp_flags="$EXTRA_KCFLAGS"
20632 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20633
20634
20635 cat confdefs.h - <<_ACEOF >conftest.c
20636
20637
20638 #include <linux/blkdev.h>
20639
20640 int
20641 main (void)
20642 {
20643
20644 struct request *req = NULL;
20645 (void) blk_rq_sectors(req);
20646
20647 ;
20648 return 0;
20649 }
20650
20651 _ACEOF
20652
20653
20654 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20655 echo "obj-m := conftest.o" >build/Makefile
20656 modpost_flag=''
20657 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20658 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20660 (eval $ac_try) 2>&5
20661 ac_status=$?
20662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20663 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20665 (eval $ac_try) 2>&5
20666 ac_status=$?
20667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20668 test $ac_status = 0; }; }; then :
20669
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20671 $as_echo "yes" >&6; }
20672
20673 $as_echo "#define HAVE_BLK_RQ_SECTORS 1" >>confdefs.h
20674
20675
20676 else
20677 $as_echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20679
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20681 $as_echo "no" >&6; }
20682
20683
20684
20685 fi
20686 rm -Rf build
20687
20688
20689 EXTRA_KCFLAGS="$tmp_flags"
20690
20691
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
20693 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
20694 tmp_flags="$EXTRA_KCFLAGS"
20695 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20696
20697
20698 cat confdefs.h - <<_ACEOF >conftest.c
20699
20700
20701 #include <linux/blkdev.h>
20702
20703 int
20704 main (void)
20705 {
20706
20707 struct gendisk *disk = NULL;
20708 (void) get_disk_ro(disk);
20709
20710 ;
20711 return 0;
20712 }
20713
20714 _ACEOF
20715
20716
20717 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20718 echo "obj-m := conftest.o" >build/Makefile
20719 modpost_flag=''
20720 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20721 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20723 (eval $ac_try) 2>&5
20724 ac_status=$?
20725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20726 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20728 (eval $ac_try) 2>&5
20729 ac_status=$?
20730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20731 test $ac_status = 0; }; }; then :
20732
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20734 $as_echo "yes" >&6; }
20735
20736 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
20737
20738
20739 else
20740 $as_echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.$ac_ext >&5
20742
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20744 $as_echo "no" >&6; }
20745
20746
20747
20748 fi
20749 rm -Rf build
20750
20751
20752 EXTRA_KCFLAGS="$tmp_flags"
20753
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
20755 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
20756
20757
20758
20759 cat confdefs.h - <<_ACEOF >conftest.c
20760
20761
20762 #include <linux/genhd.h>
20763
20764 int
20765 main (void)
20766 {
20767
20768 get_gendisk(0, NULL);
20769
20770 ;
20771 return 0;
20772 }
20773
20774 _ACEOF
20775
20776
20777 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20778 echo "obj-m := conftest.o" >build/Makefile
20779 modpost_flag=''
20780 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20781 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20783 (eval $ac_try) 2>&5
20784 ac_status=$?
20785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20786 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20788 (eval $ac_try) 2>&5
20789 ac_status=$?
20790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20791 test $ac_status = 0; }; }; then :
20792 rc=0
20793 else
20794 $as_echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20796 rc=1
20797
20798
20799 fi
20800 rm -Rf build
20801
20802
20803 if test $rc -ne 0; then :
20804
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20806 $as_echo "no" >&6; }
20807
20808 else
20809 if test "x$enable_linux_builtin" != xyes; then
20810
20811 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
20812 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20813 rc=$?
20814 if test $rc -ne 0; then
20815 export=0
20816 for file in block/genhd.c; do
20817 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
20818 "$LINUX/$file" 2>/dev/null
20819 rc=$?
20820 if test $rc -eq 0; then
20821 export=1
20822 break;
20823 fi
20824 done
20825 if test $export -eq 0; then :
20826 rc=1
20827 else :
20828 rc=0
20829 fi
20830 else :
20831 rc=0
20832 fi
20833
20834 fi
20835 if test $rc -ne 0; then :
20836
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20838 $as_echo "no" >&6; }
20839
20840 else :
20841
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20843 $as_echo "yes" >&6; }
20844
20845 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
20846
20847
20848 fi
20849 fi
20850
20851
20852
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_is_sync() is available" >&5
20854 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
20855 tmp_flags="$EXTRA_KCFLAGS"
20856 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20857
20858
20859 cat confdefs.h - <<_ACEOF >conftest.c
20860
20861
20862 #include <linux/blkdev.h>
20863
20864 int
20865 main (void)
20866 {
20867
20868 struct request *req = NULL;
20869 (void) rq_is_sync(req);
20870
20871 ;
20872 return 0;
20873 }
20874
20875 _ACEOF
20876
20877
20878 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20879 echo "obj-m := conftest.o" >build/Makefile
20880 modpost_flag=''
20881 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20882 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20884 (eval $ac_try) 2>&5
20885 ac_status=$?
20886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20887 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20889 (eval $ac_try) 2>&5
20890 ac_status=$?
20891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20892 test $ac_status = 0; }; }; then :
20893
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20895 $as_echo "yes" >&6; }
20896
20897 $as_echo "#define HAVE_RQ_IS_SYNC 1" >>confdefs.h
20898
20899
20900 else
20901 $as_echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20903
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20905 $as_echo "no" >&6; }
20906
20907
20908
20909 fi
20910 rm -Rf build
20911
20912
20913 EXTRA_KCFLAGS="$tmp_flags"
20914
20915
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() is available" >&5
20917 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
20918 tmp_flags="$EXTRA_KCFLAGS"
20919 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20920
20921
20922 cat confdefs.h - <<_ACEOF >conftest.c
20923
20924
20925 #include <linux/blkdev.h>
20926
20927 int
20928 main (void)
20929 {
20930
20931 struct bio_vec *bv;
20932 struct req_iterator iter;
20933 struct request *req = NULL;
20934 rq_for_each_segment(bv, req, iter) { }
20935
20936 ;
20937 return 0;
20938 }
20939
20940 _ACEOF
20941
20942
20943 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20944 echo "obj-m := conftest.o" >build/Makefile
20945 modpost_flag=''
20946 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20947 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20949 (eval $ac_try) 2>&5
20950 ac_status=$?
20951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20952 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20954 (eval $ac_try) 2>&5
20955 ac_status=$?
20956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20957 test $ac_status = 0; }; }; then :
20958
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20960 $as_echo "yes" >&6; }
20961
20962 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
20963
20964
20965 else
20966 $as_echo "$as_me: failed program was:" >&5
20967 sed 's/^/| /' conftest.$ac_ext >&5
20968
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20970 $as_echo "no" >&6; }
20971
20972
20973
20974 fi
20975 rm -Rf build
20976
20977
20978 EXTRA_KCFLAGS="$tmp_flags"
20979
20980
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
20982 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
20983
20984
20985 cat confdefs.h - <<_ACEOF >conftest.c
20986
20987
20988 #include <linux/blkdev.h>
20989
20990 int
20991 main (void)
20992 {
20993
20994 struct queue_limits ql __attribute__ ((unused));
20995
20996 ql.discard_granularity = 0;
20997
20998 ;
20999 return 0;
21000 }
21001
21002 _ACEOF
21003
21004
21005 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21006 echo "obj-m := conftest.o" >build/Makefile
21007 modpost_flag=''
21008 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21009 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21014 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21016 (eval $ac_try) 2>&5
21017 ac_status=$?
21018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21019 test $ac_status = 0; }; }; then :
21020
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21022 $as_echo "yes" >&6; }
21023
21024 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
21025
21026
21027 else
21028 $as_echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21030
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21032 $as_echo "no" >&6; }
21033
21034
21035
21036 fi
21037 rm -Rf build
21038
21039
21040
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_hander" >&5
21042 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
21043
21044
21045 cat confdefs.h - <<_ACEOF >conftest.c
21046
21047
21048 #include <linux/fs.h>
21049 #include <linux/xattr.h>
21050
21051 const struct xattr_handler xattr_test_handler = {
21052 .prefix = "test",
21053 .get = NULL,
21054 .set = NULL,
21055 };
21056
21057 const struct xattr_handler *xattr_handlers[] = {
21058 &xattr_test_handler,
21059 };
21060
21061 int
21062 main (void)
21063 {
21064
21065 struct super_block sb __attribute__ ((unused));
21066
21067 sb.s_xattr = xattr_handlers;
21068
21069 ;
21070 return 0;
21071 }
21072
21073 _ACEOF
21074
21075
21076 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21077 echo "obj-m := conftest.o" >build/Makefile
21078 modpost_flag=''
21079 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21080 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21082 (eval $ac_try) 2>&5
21083 ac_status=$?
21084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21085 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21087 (eval $ac_try) 2>&5
21088 ac_status=$?
21089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21090 test $ac_status = 0; }; }; then :
21091
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21093 $as_echo "yes" >&6; }
21094
21095 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
21096
21097
21098 else
21099 $as_echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21101
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21103 $as_echo "no" >&6; }
21104
21105
21106
21107 fi
21108 rm -Rf build
21109
21110
21111
21112
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
21114 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
21115
21116
21117 cat confdefs.h - <<_ACEOF >conftest.c
21118
21119
21120 #include <linux/xattr.h>
21121
21122 int
21123 main (void)
21124 {
21125
21126 int (*get)(struct dentry *dentry, const char *name,
21127 void *buffer, size_t size, int handler_flags) = NULL;
21128 struct xattr_handler xops __attribute__ ((unused));
21129
21130 xops.get = get;
21131
21132 ;
21133 return 0;
21134 }
21135
21136 _ACEOF
21137
21138
21139 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21140 echo "obj-m := conftest.o" >build/Makefile
21141 modpost_flag=''
21142 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21143 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21145 (eval $ac_try) 2>&5
21146 ac_status=$?
21147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21148 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21150 (eval $ac_try) 2>&5
21151 ac_status=$?
21152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21153 test $ac_status = 0; }; }; then :
21154
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21156 $as_echo "yes" >&6; }
21157
21158 $as_echo "#define HAVE_DENTRY_XATTR_GET 1" >>confdefs.h
21159
21160
21161 else
21162 $as_echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21164
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21166 $as_echo "no" >&6; }
21167
21168
21169
21170 fi
21171 rm -Rf build
21172
21173
21174
21175
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
21177 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
21178
21179
21180 cat confdefs.h - <<_ACEOF >conftest.c
21181
21182
21183 #include <linux/xattr.h>
21184
21185 int
21186 main (void)
21187 {
21188
21189 int (*set)(struct dentry *dentry, const char *name,
21190 const void *buffer, size_t size, int flags,
21191 int handler_flags) = NULL;
21192 struct xattr_handler xops __attribute__ ((unused));
21193
21194 xops.set = set;
21195
21196 ;
21197 return 0;
21198 }
21199
21200 _ACEOF
21201
21202
21203 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21204 echo "obj-m := conftest.o" >build/Makefile
21205 modpost_flag=''
21206 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21207 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21209 (eval $ac_try) 2>&5
21210 ac_status=$?
21211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21212 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21214 (eval $ac_try) 2>&5
21215 ac_status=$?
21216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21217 test $ac_status = 0; }; }; then :
21218
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21220 $as_echo "yes" >&6; }
21221
21222 $as_echo "#define HAVE_DENTRY_XATTR_SET 1" >>confdefs.h
21223
21224
21225 else
21226 $as_echo "$as_me: failed program was:" >&5
21227 sed 's/^/| /' conftest.$ac_ext >&5
21228
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21230 $as_echo "no" >&6; }
21231
21232
21233
21234 fi
21235 rm -Rf build
21236
21237
21238
21239
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
21241 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
21242
21243
21244
21245 cat confdefs.h - <<_ACEOF >conftest.c
21246
21247
21248 #include <linux/fs.h>
21249
21250 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
21251 static struct super_operations sops __attribute__ ((unused)) = {
21252 .show_options = show_options,
21253 };
21254
21255 int
21256 main (void)
21257 {
21258
21259
21260 ;
21261 return 0;
21262 }
21263
21264 _ACEOF
21265
21266
21267 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21268 echo "obj-m := conftest.o" >build/Makefile
21269 modpost_flag=''
21270 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21271 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21273 (eval $ac_try) 2>&5
21274 ac_status=$?
21275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21276 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21278 (eval $ac_try) 2>&5
21279 ac_status=$?
21280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21281 test $ac_status = 0; }; }; then :
21282
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21284 $as_echo "yes" >&6; }
21285
21286 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
21287
21288
21289 else
21290 $as_echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21292
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21294 $as_echo "no" >&6; }
21295
21296
21297
21298 fi
21299 rm -Rf build
21300
21301
21302
21303
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
21305 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
21306
21307
21308
21309 cat confdefs.h - <<_ACEOF >conftest.c
21310
21311
21312 #include <linux/fs.h>
21313
21314 int test_fsync(struct file *f, struct dentry *dentry, int x)
21315 { return 0; }
21316
21317 static const struct file_operations
21318 fops __attribute__ ((unused)) = {
21319 .fsync = test_fsync,
21320 };
21321
21322 int
21323 main (void)
21324 {
21325
21326
21327 ;
21328 return 0;
21329 }
21330
21331 _ACEOF
21332
21333
21334 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21335 echo "obj-m := conftest.o" >build/Makefile
21336 modpost_flag=''
21337 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21338 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21340 (eval $ac_try) 2>&5
21341 ac_status=$?
21342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21343 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21345 (eval $ac_try) 2>&5
21346 ac_status=$?
21347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21348 test $ac_status = 0; }; }; then :
21349
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
21351 $as_echo "dentry" >&6; }
21352
21353 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
21354
21355
21356 else
21357 $as_echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21359
21360
21361
21362
21363 fi
21364 rm -Rf build
21365
21366
21367
21368
21369
21370
21371 cat confdefs.h - <<_ACEOF >conftest.c
21372
21373
21374 #include <linux/fs.h>
21375
21376 int test_fsync(struct file *f, int x) { return 0; }
21377
21378 static const struct file_operations
21379 fops __attribute__ ((unused)) = {
21380 .fsync = test_fsync,
21381 };
21382
21383 int
21384 main (void)
21385 {
21386
21387
21388 ;
21389 return 0;
21390 }
21391
21392 _ACEOF
21393
21394
21395 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21396 echo "obj-m := conftest.o" >build/Makefile
21397 modpost_flag=''
21398 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21399 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21401 (eval $ac_try) 2>&5
21402 ac_status=$?
21403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21404 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21406 (eval $ac_try) 2>&5
21407 ac_status=$?
21408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21409 test $ac_status = 0; }; }; then :
21410
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
21412 $as_echo "no dentry" >&6; }
21413
21414 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
21415
21416
21417 else
21418 $as_echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21420
21421
21422
21423
21424 fi
21425 rm -Rf build
21426
21427
21428
21429
21430
21431
21432 cat confdefs.h - <<_ACEOF >conftest.c
21433
21434
21435 #include <linux/fs.h>
21436
21437 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
21438 { return 0; }
21439
21440 static const struct file_operations
21441 fops __attribute__ ((unused)) = {
21442 .fsync = test_fsync,
21443 };
21444
21445 int
21446 main (void)
21447 {
21448
21449
21450 ;
21451 return 0;
21452 }
21453
21454 _ACEOF
21455
21456
21457 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21458 echo "obj-m := conftest.o" >build/Makefile
21459 modpost_flag=''
21460 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21461 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21463 (eval $ac_try) 2>&5
21464 ac_status=$?
21465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21466 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21468 (eval $ac_try) 2>&5
21469 ac_status=$?
21470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21471 test $ac_status = 0; }; }; then :
21472
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
21474 $as_echo "range" >&6; }
21475
21476 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
21477
21478
21479 else
21480 $as_echo "$as_me: failed program was:" >&5
21481 sed 's/^/| /' conftest.$ac_ext >&5
21482
21483
21484
21485
21486 fi
21487 rm -Rf build
21488
21489
21490
21491
21492
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
21494 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
21495
21496
21497 cat confdefs.h - <<_ACEOF >conftest.c
21498
21499
21500 #include <linux/fs.h>
21501 void evict_inode (struct inode * t) { return; }
21502 static struct super_operations sops __attribute__ ((unused)) = {
21503 .evict_inode = evict_inode,
21504 };
21505
21506 int
21507 main (void)
21508 {
21509
21510
21511 ;
21512 return 0;
21513 }
21514
21515 _ACEOF
21516
21517
21518 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21519 echo "obj-m := conftest.o" >build/Makefile
21520 modpost_flag=''
21521 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21522 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21524 (eval $ac_try) 2>&5
21525 ac_status=$?
21526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21527 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21529 (eval $ac_try) 2>&5
21530 ac_status=$?
21531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21532 test $ac_status = 0; }; }; then :
21533
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21535 $as_echo "yes" >&6; }
21536
21537 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
21538
21539
21540 else
21541 $as_echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21543
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21545 $as_echo "no" >&6; }
21546
21547
21548
21549 fi
21550 rm -Rf build
21551
21552
21553
21554
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
21556 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
21557
21558
21559 cat confdefs.h - <<_ACEOF >conftest.c
21560
21561
21562 #include <linux/fs.h>
21563
21564 void dirty_inode(struct inode *a, int b) { return; }
21565
21566 static const struct super_operations
21567 sops __attribute__ ((unused)) = {
21568 .dirty_inode = dirty_inode,
21569 };
21570
21571 int
21572 main (void)
21573 {
21574
21575
21576 ;
21577 return 0;
21578 }
21579
21580 _ACEOF
21581
21582
21583 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21584 echo "obj-m := conftest.o" >build/Makefile
21585 modpost_flag=''
21586 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21587 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21589 (eval $ac_try) 2>&5
21590 ac_status=$?
21591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21592 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21594 (eval $ac_try) 2>&5
21595 ac_status=$?
21596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21597 test $ac_status = 0; }; }; then :
21598
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21600 $as_echo "yes" >&6; }
21601
21602 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
21603
21604
21605 else
21606 $as_echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21608
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21610 $as_echo "no" >&6; }
21611
21612
21613
21614 fi
21615 rm -Rf build
21616
21617
21618
21619
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
21621 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
21622
21623
21624 cat confdefs.h - <<_ACEOF >conftest.c
21625
21626
21627 #include <linux/fs.h>
21628
21629 int nr_cached_objects(struct super_block *sb) { return 0; }
21630
21631 static const struct super_operations
21632 sops __attribute__ ((unused)) = {
21633 .nr_cached_objects = nr_cached_objects,
21634 };
21635
21636 int
21637 main (void)
21638 {
21639
21640
21641 ;
21642 return 0;
21643 }
21644
21645 _ACEOF
21646
21647
21648 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21649 echo "obj-m := conftest.o" >build/Makefile
21650 modpost_flag=''
21651 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21652 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21654 (eval $ac_try) 2>&5
21655 ac_status=$?
21656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21657 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21659 (eval $ac_try) 2>&5
21660 ac_status=$?
21661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21662 test $ac_status = 0; }; }; then :
21663
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21665 $as_echo "yes" >&6; }
21666
21667 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
21668
21669
21670 else
21671 $as_echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21673
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21675 $as_echo "no" >&6; }
21676
21677
21678
21679 fi
21680 rm -Rf build
21681
21682
21683
21684
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
21686 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
21687
21688
21689 cat confdefs.h - <<_ACEOF >conftest.c
21690
21691
21692 #include <linux/fs.h>
21693
21694 void free_cached_objects(struct super_block *sb, int x)
21695 { return; }
21696
21697 static const struct super_operations
21698 sops __attribute__ ((unused)) = {
21699 .free_cached_objects = free_cached_objects,
21700 };
21701
21702 int
21703 main (void)
21704 {
21705
21706
21707 ;
21708 return 0;
21709 }
21710
21711 _ACEOF
21712
21713
21714 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21715 echo "obj-m := conftest.o" >build/Makefile
21716 modpost_flag=''
21717 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21718 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21720 (eval $ac_try) 2>&5
21721 ac_status=$?
21722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21723 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21725 (eval $ac_try) 2>&5
21726 ac_status=$?
21727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21728 test $ac_status = 0; }; }; then :
21729
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21731 $as_echo "yes" >&6; }
21732
21733 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
21734
21735
21736 else
21737 $as_echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21739
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21741 $as_echo "no" >&6; }
21742
21743
21744
21745 fi
21746 rm -Rf build
21747
21748
21749
21750
21751
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
21753 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
21754
21755
21756 cat confdefs.h - <<_ACEOF >conftest.c
21757
21758
21759 #include <linux/fs.h>
21760
21761 long test_fallocate(struct file *file, int mode,
21762 loff_t offset, loff_t len) { return 0; }
21763
21764 static const struct file_operations
21765 fops __attribute__ ((unused)) = {
21766 .fallocate = test_fallocate,
21767 };
21768
21769 int
21770 main (void)
21771 {
21772
21773
21774 ;
21775 return 0;
21776 }
21777
21778 _ACEOF
21779
21780
21781 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21782 echo "obj-m := conftest.o" >build/Makefile
21783 modpost_flag=''
21784 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21785 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21792 (eval $ac_try) 2>&5
21793 ac_status=$?
21794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21795 test $ac_status = 0; }; }; then :
21796
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21798 $as_echo "yes" >&6; }
21799
21800 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
21801
21802
21803 else
21804 $as_echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21806
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21808 $as_echo "no" >&6; }
21809
21810
21811
21812 fi
21813 rm -Rf build
21814
21815
21816
21817
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
21819 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
21820
21821
21822 cat confdefs.h - <<_ACEOF >conftest.c
21823
21824
21825 #include <linux/fs.h>
21826
21827 long test_fallocate(struct inode *inode, int mode,
21828 loff_t offset, loff_t len) { return 0; }
21829
21830 static const struct inode_operations
21831 fops __attribute__ ((unused)) = {
21832 .fallocate = test_fallocate,
21833 };
21834
21835 int
21836 main (void)
21837 {
21838
21839
21840 ;
21841 return 0;
21842 }
21843
21844 _ACEOF
21845
21846
21847 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21848 echo "obj-m := conftest.o" >build/Makefile
21849 modpost_flag=''
21850 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21851 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21853 (eval $ac_try) 2>&5
21854 ac_status=$?
21855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21856 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21858 (eval $ac_try) 2>&5
21859 ac_status=$?
21860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21861 test $ac_status = 0; }; }; then :
21862
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21864 $as_echo "yes" >&6; }
21865
21866 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
21867
21868
21869 else
21870 $as_echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21872
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21874 $as_echo "no" >&6; }
21875
21876
21877
21878 fi
21879 rm -Rf build
21880
21881
21882
21883
21884
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
21886 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
21887
21888
21889 cat confdefs.h - <<_ACEOF >conftest.c
21890
21891
21892 #include <linux/fs.h>
21893
21894 int mkdir(struct inode *inode, struct dentry *dentry,
21895 umode_t umode) { return 0; }
21896
21897 static const struct inode_operations
21898 iops __attribute__ ((unused)) = {
21899 .mkdir = mkdir,
21900 };
21901
21902 int
21903 main (void)
21904 {
21905
21906
21907 ;
21908 return 0;
21909 }
21910
21911 _ACEOF
21912
21913
21914 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21915 echo "obj-m := conftest.o" >build/Makefile
21916 modpost_flag=''
21917 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21918 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21920 (eval $ac_try) 2>&5
21921 ac_status=$?
21922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21923 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21925 (eval $ac_try) 2>&5
21926 ac_status=$?
21927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21928 test $ac_status = 0; }; }; then :
21929
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21931 $as_echo "yes" >&6; }
21932
21933 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
21934
21935
21936 else
21937 $as_echo "$as_me: failed program was:" >&5
21938 sed 's/^/| /' conftest.$ac_ext >&5
21939
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21941 $as_echo "no" >&6; }
21942
21943
21944
21945 fi
21946 rm -Rf build
21947
21948
21949
21950
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() takes struct nameidata" >&5
21952 $as_echo_n "checking whether iops->lookup() takes struct nameidata... " >&6; }
21953
21954
21955 cat confdefs.h - <<_ACEOF >conftest.c
21956
21957
21958 #include <linux/fs.h>
21959
21960 struct dentry *inode_lookup(struct inode *inode,
21961 struct dentry *dentry, struct nameidata *nidata)
21962 { return NULL; }
21963
21964 static const struct inode_operations iops
21965 __attribute__ ((unused)) = {
21966 .lookup = inode_lookup,
21967 };
21968
21969 int
21970 main (void)
21971 {
21972
21973
21974 ;
21975 return 0;
21976 }
21977
21978 _ACEOF
21979
21980
21981 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21982 echo "obj-m := conftest.o" >build/Makefile
21983 modpost_flag=''
21984 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21985 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21987 (eval $ac_try) 2>&5
21988 ac_status=$?
21989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21990 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21992 (eval $ac_try) 2>&5
21993 ac_status=$?
21994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21995 test $ac_status = 0; }; }; then :
21996
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21998 $as_echo "yes" >&6; }
21999
22000 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
22001
22002
22003 else
22004 $as_echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22006
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22008 $as_echo "no" >&6; }
22009
22010
22011
22012 fi
22013 rm -Rf build
22014
22015
22016
22017
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() takes struct nameidata" >&5
22019 $as_echo_n "checking whether iops->create() takes struct nameidata... " >&6; }
22020
22021
22022 cat confdefs.h - <<_ACEOF >conftest.c
22023
22024
22025 #include <linux/fs.h>
22026
22027 #ifdef HAVE_MKDIR_UMODE_T
22028 int inode_create(struct inode *inode ,struct dentry *dentry,
22029 umode_t umode, struct nameidata *nidata) { return 0; }
22030 #else
22031 int inode_create(struct inode *inode,struct dentry *dentry,
22032 int umode, struct nameidata * nidata) { return 0; }
22033 #endif
22034
22035 static const struct inode_operations
22036 iops __attribute__ ((unused)) = {
22037 .create = inode_create,
22038 };
22039
22040 int
22041 main (void)
22042 {
22043
22044
22045 ;
22046 return 0;
22047 }
22048
22049 _ACEOF
22050
22051
22052 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22053 echo "obj-m := conftest.o" >build/Makefile
22054 modpost_flag=''
22055 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22056 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22058 (eval $ac_try) 2>&5
22059 ac_status=$?
22060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22061 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22063 (eval $ac_try) 2>&5
22064 ac_status=$?
22065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22066 test $ac_status = 0; }; }; then :
22067
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22069 $as_echo "yes" >&6; }
22070
22071 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
22072
22073
22074 else
22075 $as_echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22079 $as_echo "no" >&6; }
22080
22081
22082
22083 fi
22084 rm -Rf build
22085
22086
22087
22088
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
22090 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
22091
22092
22093 cat confdefs.h - <<_ACEOF >conftest.c
22094
22095
22096 #include <linux/fs.h>
22097 void truncate_range(struct inode *inode, loff_t start,
22098 loff_t end) { return; }
22099 static struct inode_operations iops __attribute__ ((unused)) = {
22100 .truncate_range = truncate_range,
22101 };
22102
22103 int
22104 main (void)
22105 {
22106
22107
22108 ;
22109 return 0;
22110 }
22111
22112 _ACEOF
22113
22114
22115 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22116 echo "obj-m := conftest.o" >build/Makefile
22117 modpost_flag=''
22118 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22119 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22121 (eval $ac_try) 2>&5
22122 ac_status=$?
22123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22124 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22126 (eval $ac_try) 2>&5
22127 ac_status=$?
22128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22129 test $ac_status = 0; }; }; then :
22130
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22132 $as_echo "yes" >&6; }
22133
22134 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
22135
22136
22137 else
22138 $as_echo "$as_me: failed program was:" >&5
22139 sed 's/^/| /' conftest.$ac_ext >&5
22140
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22142 $as_echo "no" >&6; }
22143
22144
22145
22146 fi
22147 rm -Rf build
22148
22149
22150
22151
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
22153 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
22154
22155
22156 cat confdefs.h - <<_ACEOF >conftest.c
22157
22158
22159 #include <linux/dcache.h>
22160 struct vfsmount *d_automount(struct path *p) { return NULL; }
22161 struct dentry_operations dops __attribute__ ((unused)) = {
22162 .d_automount = d_automount,
22163 };
22164
22165 int
22166 main (void)
22167 {
22168
22169
22170 ;
22171 return 0;
22172 }
22173
22174 _ACEOF
22175
22176
22177 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22178 echo "obj-m := conftest.o" >build/Makefile
22179 modpost_flag=''
22180 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22181 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22183 (eval $ac_try) 2>&5
22184 ac_status=$?
22185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22186 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22188 (eval $ac_try) 2>&5
22189 ac_status=$?
22190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22191 test $ac_status = 0; }; }; then :
22192
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22194 $as_echo "yes" >&6; }
22195
22196 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
22197
22198
22199 else
22200 $as_echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22202
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22204 $as_echo "no" >&6; }
22205
22206
22207
22208 fi
22209 rm -Rf build
22210
22211
22212
22213
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
22215 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
22216
22217
22218 cat confdefs.h - <<_ACEOF >conftest.c
22219
22220
22221 #include <linux/exportfs.h>
22222 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
22223 struct inode *parent) { return 0; }
22224 static struct export_operations eops __attribute__ ((unused))={
22225 .encode_fh = encode_fh,
22226 };
22227
22228 int
22229 main (void)
22230 {
22231
22232
22233 ;
22234 return 0;
22235 }
22236
22237 _ACEOF
22238
22239
22240 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22241 echo "obj-m := conftest.o" >build/Makefile
22242 modpost_flag=''
22243 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22244 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22246 (eval $ac_try) 2>&5
22247 ac_status=$?
22248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22249 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22251 (eval $ac_try) 2>&5
22252 ac_status=$?
22253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22254 test $ac_status = 0; }; }; then :
22255
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22257 $as_echo "yes" >&6; }
22258
22259 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
22260
22261
22262 else
22263 $as_echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22265
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22267 $as_echo "no" >&6; }
22268
22269
22270
22271 fi
22272 rm -Rf build
22273
22274
22275
22276
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
22278 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
22279
22280
22281 cat confdefs.h - <<_ACEOF >conftest.c
22282
22283
22284 #include <linux/exportfs.h>
22285 int commit_metadata(struct inode *inode) { return 0; }
22286 static struct export_operations eops __attribute__ ((unused))={
22287 .commit_metadata = commit_metadata,
22288 };
22289
22290 int
22291 main (void)
22292 {
22293
22294
22295 ;
22296 return 0;
22297 }
22298
22299 _ACEOF
22300
22301
22302 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22303 echo "obj-m := conftest.o" >build/Makefile
22304 modpost_flag=''
22305 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22306 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22308 (eval $ac_try) 2>&5
22309 ac_status=$?
22310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22311 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22313 (eval $ac_try) 2>&5
22314 ac_status=$?
22315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22316 test $ac_status = 0; }; }; then :
22317
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22319 $as_echo "yes" >&6; }
22320
22321 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
22322
22323
22324 else
22325 $as_echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.$ac_ext >&5
22327
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22329 $as_echo "no" >&6; }
22330
22331
22332
22333 fi
22334 rm -Rf build
22335
22336
22337
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
22339 $as_echo_n "checking whether clear_inode() is available... " >&6; }
22340
22341
22342
22343 cat confdefs.h - <<_ACEOF >conftest.c
22344
22345
22346 #include <linux/fs.h>
22347
22348 int
22349 main (void)
22350 {
22351
22352 clear_inode(NULL);
22353
22354 ;
22355 return 0;
22356 }
22357
22358 _ACEOF
22359
22360
22361 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22362 echo "obj-m := conftest.o" >build/Makefile
22363 modpost_flag=''
22364 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22365 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22367 (eval $ac_try) 2>&5
22368 ac_status=$?
22369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22370 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22372 (eval $ac_try) 2>&5
22373 ac_status=$?
22374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22375 test $ac_status = 0; }; }; then :
22376 rc=0
22377 else
22378 $as_echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22380 rc=1
22381
22382
22383 fi
22384 rm -Rf build
22385
22386
22387 if test $rc -ne 0; then :
22388
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22390 $as_echo "no" >&6; }
22391
22392 else
22393 if test "x$enable_linux_builtin" != xyes; then
22394
22395 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
22396 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22397 rc=$?
22398 if test $rc -ne 0; then
22399 export=0
22400 for file in fs/inode.c; do
22401 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
22402 "$LINUX/$file" 2>/dev/null
22403 rc=$?
22404 if test $rc -eq 0; then
22405 export=1
22406 break;
22407 fi
22408 done
22409 if test $export -eq 0; then :
22410 rc=1
22411 else :
22412 rc=0
22413 fi
22414 else :
22415 rc=0
22416 fi
22417
22418 fi
22419 if test $rc -ne 0; then :
22420
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22422 $as_echo "no" >&6; }
22423
22424 else :
22425
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22427 $as_echo "yes" >&6; }
22428
22429 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
22430
22431
22432 fi
22433 fi
22434
22435
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
22437 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
22438
22439
22440
22441 cat confdefs.h - <<_ACEOF >conftest.c
22442
22443
22444 #include <linux/fs.h>
22445
22446 int
22447 main (void)
22448 {
22449
22450 insert_inode_locked(NULL);
22451
22452 ;
22453 return 0;
22454 }
22455
22456 _ACEOF
22457
22458
22459 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22460 echo "obj-m := conftest.o" >build/Makefile
22461 modpost_flag=''
22462 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22463 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22465 (eval $ac_try) 2>&5
22466 ac_status=$?
22467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22468 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22470 (eval $ac_try) 2>&5
22471 ac_status=$?
22472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22473 test $ac_status = 0; }; }; then :
22474 rc=0
22475 else
22476 $as_echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22478 rc=1
22479
22480
22481 fi
22482 rm -Rf build
22483
22484
22485 if test $rc -ne 0; then :
22486
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22488 $as_echo "no" >&6; }
22489
22490 else
22491 if test "x$enable_linux_builtin" != xyes; then
22492
22493 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
22494 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22495 rc=$?
22496 if test $rc -ne 0; then
22497 export=0
22498 for file in fs/inode.c; do
22499 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
22500 "$LINUX/$file" 2>/dev/null
22501 rc=$?
22502 if test $rc -eq 0; then
22503 export=1
22504 break;
22505 fi
22506 done
22507 if test $export -eq 0; then :
22508 rc=1
22509 else :
22510 rc=0
22511 fi
22512 else :
22513 rc=0
22514 fi
22515
22516 fi
22517 if test $rc -ne 0; then :
22518
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22520 $as_echo "no" >&6; }
22521
22522 else :
22523
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22525 $as_echo "yes" >&6; }
22526
22527 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
22528
22529
22530 fi
22531 fi
22532
22533
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
22535 $as_echo_n "checking whether d_make_root() is available... " >&6; }
22536
22537
22538
22539 cat confdefs.h - <<_ACEOF >conftest.c
22540
22541
22542 #include <linux/dcache.h>
22543
22544 int
22545 main (void)
22546 {
22547
22548 d_make_root(NULL);
22549
22550 ;
22551 return 0;
22552 }
22553
22554 _ACEOF
22555
22556
22557 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22558 echo "obj-m := conftest.o" >build/Makefile
22559 modpost_flag=''
22560 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22561 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22563 (eval $ac_try) 2>&5
22564 ac_status=$?
22565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22566 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22571 test $ac_status = 0; }; }; then :
22572 rc=0
22573 else
22574 $as_echo "$as_me: failed program was:" >&5
22575 sed 's/^/| /' conftest.$ac_ext >&5
22576 rc=1
22577
22578
22579 fi
22580 rm -Rf build
22581
22582
22583 if test $rc -ne 0; then :
22584
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22586 $as_echo "no" >&6; }
22587
22588 else
22589 if test "x$enable_linux_builtin" != xyes; then
22590
22591 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
22592 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22593 rc=$?
22594 if test $rc -ne 0; then
22595 export=0
22596 for file in fs/dcache.c; do
22597 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
22598 "$LINUX/$file" 2>/dev/null
22599 rc=$?
22600 if test $rc -eq 0; then
22601 export=1
22602 break;
22603 fi
22604 done
22605 if test $export -eq 0; then :
22606 rc=1
22607 else :
22608 rc=0
22609 fi
22610 else :
22611 rc=0
22612 fi
22613
22614 fi
22615 if test $rc -ne 0; then :
22616
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22618 $as_echo "no" >&6; }
22619
22620 else :
22621
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22623 $as_echo "yes" >&6; }
22624
22625 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
22626
22627
22628 fi
22629 fi
22630
22631
22632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
22633 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
22634
22635
22636
22637 cat confdefs.h - <<_ACEOF >conftest.c
22638
22639
22640 #include <linux/dcache.h>
22641
22642 int
22643 main (void)
22644 {
22645
22646 d_obtain_alias(NULL);
22647
22648 ;
22649 return 0;
22650 }
22651
22652 _ACEOF
22653
22654
22655 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22656 echo "obj-m := conftest.o" >build/Makefile
22657 modpost_flag=''
22658 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22659 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22661 (eval $ac_try) 2>&5
22662 ac_status=$?
22663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22664 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22666 (eval $ac_try) 2>&5
22667 ac_status=$?
22668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22669 test $ac_status = 0; }; }; then :
22670 rc=0
22671 else
22672 $as_echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22674 rc=1
22675
22676
22677 fi
22678 rm -Rf build
22679
22680
22681 if test $rc -ne 0; then :
22682
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22684 $as_echo "no" >&6; }
22685
22686 else
22687 if test "x$enable_linux_builtin" != xyes; then
22688
22689 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
22690 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22691 rc=$?
22692 if test $rc -ne 0; then
22693 export=0
22694 for file in fs/dcache.c; do
22695 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
22696 "$LINUX/$file" 2>/dev/null
22697 rc=$?
22698 if test $rc -eq 0; then
22699 export=1
22700 break;
22701 fi
22702 done
22703 if test $export -eq 0; then :
22704 rc=1
22705 else :
22706 rc=0
22707 fi
22708 else :
22709 rc=0
22710 fi
22711
22712 fi
22713 if test $rc -ne 0; then :
22714
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22716 $as_echo "no" >&6; }
22717
22718 else :
22719
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22721 $as_echo "yes" >&6; }
22722
22723 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
22724
22725
22726 fi
22727 fi
22728
22729
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
22731 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
22732
22733
22734
22735 cat confdefs.h - <<_ACEOF >conftest.c
22736
22737
22738 #include <linux/dcache.h>
22739
22740 int
22741 main (void)
22742 {
22743
22744 d_set_d_op(NULL, NULL);
22745
22746 ;
22747 return 0;
22748 }
22749
22750 _ACEOF
22751
22752
22753 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22754 echo "obj-m := conftest.o" >build/Makefile
22755 modpost_flag=''
22756 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22757 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22762 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22764 (eval $ac_try) 2>&5
22765 ac_status=$?
22766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22767 test $ac_status = 0; }; }; then :
22768 rc=0
22769 else
22770 $as_echo "$as_me: failed program was:" >&5
22771 sed 's/^/| /' conftest.$ac_ext >&5
22772 rc=1
22773
22774
22775 fi
22776 rm -Rf build
22777
22778
22779 if test $rc -ne 0; then :
22780
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22782 $as_echo "no" >&6; }
22783
22784 else
22785 if test "x$enable_linux_builtin" != xyes; then
22786
22787 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
22788 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22789 rc=$?
22790 if test $rc -ne 0; then
22791 export=0
22792 for file in fs/dcache.c; do
22793 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
22794 "$LINUX/$file" 2>/dev/null
22795 rc=$?
22796 if test $rc -eq 0; then
22797 export=1
22798 break;
22799 fi
22800 done
22801 if test $export -eq 0; then :
22802 rc=1
22803 else :
22804 rc=0
22805 fi
22806 else :
22807 rc=0
22808 fi
22809
22810 fi
22811 if test $rc -ne 0; then :
22812
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22814 $as_echo "no" >&6; }
22815
22816 else :
22817
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22819 $as_echo "yes" >&6; }
22820
22821 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
22822
22823
22824 fi
22825 fi
22826
22827
22828
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
22830 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
22831
22832
22833 cat confdefs.h - <<_ACEOF >conftest.c
22834
22835
22836 #include <linux/dcache.h>
22837
22838 int revalidate (struct dentry *dentry,
22839 struct nameidata *nidata) { return 0; }
22840
22841 static const struct dentry_operations
22842 dops __attribute__ ((unused)) = {
22843 .d_revalidate = revalidate,
22844 };
22845
22846 int
22847 main (void)
22848 {
22849
22850
22851 ;
22852 return 0;
22853 }
22854
22855 _ACEOF
22856
22857
22858 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22859 echo "obj-m := conftest.o" >build/Makefile
22860 modpost_flag=''
22861 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22862 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22864 (eval $ac_try) 2>&5
22865 ac_status=$?
22866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22867 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22869 (eval $ac_try) 2>&5
22870 ac_status=$?
22871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22872 test $ac_status = 0; }; }; then :
22873
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22875 $as_echo "yes" >&6; }
22876
22877 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
22878
22879
22880 else
22881 $as_echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22883
22884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22885 $as_echo "no" >&6; }
22886
22887
22888
22889 fi
22890 rm -Rf build
22891
22892
22893
22894
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
22896 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
22897
22898
22899 cat confdefs.h - <<_ACEOF >conftest.c
22900
22901
22902 #include <linux/dcache.h>
22903
22904 const struct dentry_operations test_d_op = {
22905 .d_revalidate = NULL,
22906 };
22907
22908 int
22909 main (void)
22910 {
22911
22912 struct dentry d __attribute__ ((unused));
22913
22914 d.d_op = &test_d_op;
22915
22916 ;
22917 return 0;
22918 }
22919
22920 _ACEOF
22921
22922
22923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22924 echo "obj-m := conftest.o" >build/Makefile
22925 modpost_flag=''
22926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22927 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22929 (eval $ac_try) 2>&5
22930 ac_status=$?
22931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22932 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22934 (eval $ac_try) 2>&5
22935 ac_status=$?
22936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22937 test $ac_status = 0; }; }; then :
22938
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22940 $as_echo "yes" >&6; }
22941
22942 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
22943
22944
22945 else
22946 $as_echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22948
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22950 $as_echo "no" >&6; }
22951
22952
22953
22954 fi
22955 rm -Rf build
22956
22957
22958
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
22960 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
22961
22962
22963
22964 cat confdefs.h - <<_ACEOF >conftest.c
22965
22966
22967 #include <linux/fs.h>
22968
22969 int
22970 main (void)
22971 {
22972
22973 check_disk_size_change(NULL, NULL);
22974
22975 ;
22976 return 0;
22977 }
22978
22979 _ACEOF
22980
22981
22982 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22983 echo "obj-m := conftest.o" >build/Makefile
22984 modpost_flag=''
22985 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22986 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22988 (eval $ac_try) 2>&5
22989 ac_status=$?
22990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22991 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22993 (eval $ac_try) 2>&5
22994 ac_status=$?
22995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22996 test $ac_status = 0; }; }; then :
22997 rc=0
22998 else
22999 $as_echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23001 rc=1
23002
23003
23004 fi
23005 rm -Rf build
23006
23007
23008 if test $rc -ne 0; then :
23009
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23011 $as_echo "no" >&6; }
23012
23013 else
23014 if test "x$enable_linux_builtin" != xyes; then
23015
23016 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
23017 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23018 rc=$?
23019 if test $rc -ne 0; then
23020 export=0
23021 for file in fs/block_dev.c; do
23022 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
23023 "$LINUX/$file" 2>/dev/null
23024 rc=$?
23025 if test $rc -eq 0; then
23026 export=1
23027 break;
23028 fi
23029 done
23030 if test $export -eq 0; then :
23031 rc=1
23032 else :
23033 rc=0
23034 fi
23035 else :
23036 rc=0
23037 fi
23038
23039 fi
23040 if test $rc -ne 0; then :
23041
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23043 $as_echo "no" >&6; }
23044
23045 else :
23046
23047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23048 $as_echo "yes" >&6; }
23049
23050 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
23051
23052
23053 fi
23054 fi
23055
23056
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
23058 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
23059
23060
23061
23062 cat confdefs.h - <<_ACEOF >conftest.c
23063
23064
23065 #include <linux/mm.h>
23066
23067 int
23068 main (void)
23069 {
23070
23071 truncate_setsize(NULL, 0);
23072
23073 ;
23074 return 0;
23075 }
23076
23077 _ACEOF
23078
23079
23080 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23081 echo "obj-m := conftest.o" >build/Makefile
23082 modpost_flag=''
23083 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23084 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23086 (eval $ac_try) 2>&5
23087 ac_status=$?
23088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23089 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23091 (eval $ac_try) 2>&5
23092 ac_status=$?
23093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23094 test $ac_status = 0; }; }; then :
23095 rc=0
23096 else
23097 $as_echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23099 rc=1
23100
23101
23102 fi
23103 rm -Rf build
23104
23105
23106 if test $rc -ne 0; then :
23107
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23109 $as_echo "no" >&6; }
23110
23111 else
23112 if test "x$enable_linux_builtin" != xyes; then
23113
23114 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
23115 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23116 rc=$?
23117 if test $rc -ne 0; then
23118 export=0
23119 for file in mm/truncate.c; do
23120 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
23121 "$LINUX/$file" 2>/dev/null
23122 rc=$?
23123 if test $rc -eq 0; then
23124 export=1
23125 break;
23126 fi
23127 done
23128 if test $export -eq 0; then :
23129 rc=1
23130 else :
23131 rc=0
23132 fi
23133 else :
23134 rc=0
23135 fi
23136
23137 fi
23138 if test $rc -ne 0; then :
23139
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23141 $as_echo "no" >&6; }
23142
23143 else :
23144
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23146 $as_echo "yes" >&6; }
23147
23148 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
23149
23150
23151 fi
23152 fi
23153
23154
23155
23156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
23157 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
23158
23159
23160 cat confdefs.h - <<_ACEOF >conftest.c
23161
23162
23163 #include <linux/security.h>
23164
23165 int
23166 main (void)
23167 {
23168
23169 struct inode *ip __attribute__ ((unused)) = NULL;
23170 struct inode *dip __attribute__ ((unused)) = NULL;
23171 const struct qstr *str __attribute__ ((unused)) = NULL;
23172 char *name __attribute__ ((unused)) = NULL;
23173 void *value __attribute__ ((unused)) = NULL;
23174 size_t len __attribute__ ((unused)) = 0;
23175
23176 security_inode_init_security(ip, dip, str, &name, &value, &len);
23177
23178 ;
23179 return 0;
23180 }
23181
23182 _ACEOF
23183
23184
23185 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23186 echo "obj-m := conftest.o" >build/Makefile
23187 modpost_flag=''
23188 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23189 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23191 (eval $ac_try) 2>&5
23192 ac_status=$?
23193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23194 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23196 (eval $ac_try) 2>&5
23197 ac_status=$?
23198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23199 test $ac_status = 0; }; }; then :
23200
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23202 $as_echo "yes" >&6; }
23203
23204 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
23205
23206
23207 else
23208 $as_echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23210
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23212 $as_echo "no" >&6; }
23213
23214
23215
23216 fi
23217 rm -Rf build
23218
23219
23220
23221
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
23223 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
23224
23225
23226 cat confdefs.h - <<_ACEOF >conftest.c
23227
23228
23229 #include <linux/security.h>
23230
23231 int
23232 main (void)
23233 {
23234
23235 struct inode *ip __attribute__ ((unused)) = NULL;
23236 struct inode *dip __attribute__ ((unused)) = NULL;
23237 const struct qstr *str __attribute__ ((unused)) = NULL;
23238 initxattrs func __attribute__ ((unused)) = NULL;
23239
23240 security_inode_init_security(ip, dip, str, func, NULL);
23241
23242 ;
23243 return 0;
23244 }
23245
23246 _ACEOF
23247
23248
23249 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23250 echo "obj-m := conftest.o" >build/Makefile
23251 modpost_flag=''
23252 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23253 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23255 (eval $ac_try) 2>&5
23256 ac_status=$?
23257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23258 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23260 (eval $ac_try) 2>&5
23261 ac_status=$?
23262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23263 test $ac_status = 0; }; }; then :
23264
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23266 $as_echo "yes" >&6; }
23267
23268 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
23269
23270
23271 else
23272 $as_echo "$as_me: failed program was:" >&5
23273 sed 's/^/| /' conftest.$ac_ext >&5
23274
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23276 $as_echo "no" >&6; }
23277
23278
23279
23280 fi
23281 rm -Rf build
23282
23283
23284
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
23286 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
23287
23288
23289
23290 cat confdefs.h - <<_ACEOF >conftest.c
23291
23292
23293 #include <linux/fs.h>
23294
23295 int
23296 main (void)
23297 {
23298
23299 mount_nodev(NULL, 0, NULL, NULL);
23300
23301 ;
23302 return 0;
23303 }
23304
23305 _ACEOF
23306
23307
23308 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23309 echo "obj-m := conftest.o" >build/Makefile
23310 modpost_flag=''
23311 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23312 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23314 (eval $ac_try) 2>&5
23315 ac_status=$?
23316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23317 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23319 (eval $ac_try) 2>&5
23320 ac_status=$?
23321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23322 test $ac_status = 0; }; }; then :
23323 rc=0
23324 else
23325 $as_echo "$as_me: failed program was:" >&5
23326 sed 's/^/| /' conftest.$ac_ext >&5
23327 rc=1
23328
23329
23330 fi
23331 rm -Rf build
23332
23333
23334 if test $rc -ne 0; then :
23335
23336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23337 $as_echo "no" >&6; }
23338
23339 else
23340 if test "x$enable_linux_builtin" != xyes; then
23341
23342 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
23343 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23344 rc=$?
23345 if test $rc -ne 0; then
23346 export=0
23347 for file in fs/super.c; do
23348 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
23349 "$LINUX/$file" 2>/dev/null
23350 rc=$?
23351 if test $rc -eq 0; then
23352 export=1
23353 break;
23354 fi
23355 done
23356 if test $export -eq 0; then :
23357 rc=1
23358 else :
23359 rc=0
23360 fi
23361 else :
23362 rc=0
23363 fi
23364
23365 fi
23366 if test $rc -ne 0; then :
23367
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23369 $as_echo "no" >&6; }
23370
23371 else :
23372
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23374 $as_echo "yes" >&6; }
23375
23376 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
23377
23378
23379 fi
23380 fi
23381
23382
23383
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
23385 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
23386
23387
23388 cat confdefs.h - <<_ACEOF >conftest.c
23389
23390
23391 #include <linux/fs.h>
23392
23393 int shrink(struct shrinker *s, struct shrink_control *sc)
23394 { return 0; }
23395
23396 static const struct super_block
23397 sb __attribute__ ((unused)) = {
23398 .s_shrink.shrink = shrink,
23399 .s_shrink.seeks = DEFAULT_SEEKS,
23400 .s_shrink.batch = 0,
23401 };
23402
23403 int
23404 main (void)
23405 {
23406
23407
23408 ;
23409 return 0;
23410 }
23411
23412 _ACEOF
23413
23414
23415 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23416 echo "obj-m := conftest.o" >build/Makefile
23417 modpost_flag=''
23418 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23419 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23421 (eval $ac_try) 2>&5
23422 ac_status=$?
23423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23424 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23426 (eval $ac_try) 2>&5
23427 ac_status=$?
23428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23429 test $ac_status = 0; }; }; then :
23430
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23432 $as_echo "yes" >&6; }
23433
23434 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
23435
23436
23437
23438 else
23439 $as_echo "$as_me: failed program was:" >&5
23440 sed 's/^/| /' conftest.$ac_ext >&5
23441
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23443 $as_echo "no" >&6; }
23444
23445
23446
23447 fi
23448 rm -Rf build
23449
23450
23451
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
23453 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
23454
23455
23456 cat confdefs.h - <<_ACEOF >conftest.c
23457
23458
23459 #include <linux/fs.h>
23460
23461 int
23462 main (void)
23463 {
23464
23465 struct super_block sb __attribute__ ((unused));
23466 sb.s_d_op = NULL;
23467
23468 ;
23469 return 0;
23470 }
23471
23472 _ACEOF
23473
23474
23475 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23476 echo "obj-m := conftest.o" >build/Makefile
23477 modpost_flag=''
23478 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23479 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23481 (eval $ac_try) 2>&5
23482 ac_status=$?
23483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23484 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23486 (eval $ac_try) 2>&5
23487 ac_status=$?
23488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23489 test $ac_status = 0; }; }; then :
23490
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23492 $as_echo "yes" >&6; }
23493
23494 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
23495
23496
23497 else
23498 $as_echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23500
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23502 $as_echo "no" >&6; }
23503
23504
23505
23506 fi
23507 rm -Rf build
23508
23509
23510
23511
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_bdi" >&5
23513 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
23514
23515
23516 cat confdefs.h - <<_ACEOF >conftest.c
23517
23518
23519 #include <linux/fs.h>
23520
23521 int
23522 main (void)
23523 {
23524
23525 struct super_block sb __attribute__ ((unused));
23526 sb.s_bdi = NULL;
23527
23528 ;
23529 return 0;
23530 }
23531
23532 _ACEOF
23533
23534
23535 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23536 echo "obj-m := conftest.o" >build/Makefile
23537 modpost_flag=''
23538 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23539 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23541 (eval $ac_try) 2>&5
23542 ac_status=$?
23543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23544 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23546 (eval $ac_try) 2>&5
23547 ac_status=$?
23548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23549 test $ac_status = 0; }; }; then :
23550
23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23552 $as_echo "yes" >&6; }
23553
23554 $as_echo "#define HAVE_BDI 1" >>confdefs.h
23555
23556
23557 else
23558 $as_echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.$ac_ext >&5
23560
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23562 $as_echo "no" >&6; }
23563
23564
23565
23566 fi
23567 rm -Rf build
23568
23569
23570
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() is available" >&5
23572 $as_echo_n "checking whether bdi_setup_and_register() is available... " >&6; }
23573
23574
23575
23576 cat confdefs.h - <<_ACEOF >conftest.c
23577
23578
23579 #include <linux/backing-dev.h>
23580
23581 int
23582 main (void)
23583 {
23584
23585 bdi_setup_and_register(NULL, NULL, 0);
23586
23587 ;
23588 return 0;
23589 }
23590
23591 _ACEOF
23592
23593
23594 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23595 echo "obj-m := conftest.o" >build/Makefile
23596 modpost_flag=''
23597 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23598 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23600 (eval $ac_try) 2>&5
23601 ac_status=$?
23602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23603 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23605 (eval $ac_try) 2>&5
23606 ac_status=$?
23607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23608 test $ac_status = 0; }; }; then :
23609 rc=0
23610 else
23611 $as_echo "$as_me: failed program was:" >&5
23612 sed 's/^/| /' conftest.$ac_ext >&5
23613 rc=1
23614
23615
23616 fi
23617 rm -Rf build
23618
23619
23620 if test $rc -ne 0; then :
23621
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23623 $as_echo "no" >&6; }
23624
23625 else
23626 if test "x$enable_linux_builtin" != xyes; then
23627
23628 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23629 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23630 rc=$?
23631 if test $rc -ne 0; then
23632 export=0
23633 for file in mm/backing-dev.c; do
23634 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23635 "$LINUX/$file" 2>/dev/null
23636 rc=$?
23637 if test $rc -eq 0; then
23638 export=1
23639 break;
23640 fi
23641 done
23642 if test $export -eq 0; then :
23643 rc=1
23644 else :
23645 rc=0
23646 fi
23647 else :
23648 rc=0
23649 fi
23650
23651 fi
23652 if test $rc -ne 0; then :
23653
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23655 $as_echo "no" >&6; }
23656
23657 else :
23658
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23660 $as_echo "yes" >&6; }
23661
23662 $as_echo "#define HAVE_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23663
23664
23665 fi
23666 fi
23667
23668
23669
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
23671 $as_echo_n "checking whether set_nlink() is available... " >&6; }
23672
23673
23674 cat confdefs.h - <<_ACEOF >conftest.c
23675
23676
23677 #include <linux/fs.h>
23678
23679 int
23680 main (void)
23681 {
23682
23683 struct inode node;
23684 unsigned int link = 0;
23685 (void) set_nlink(&node, link);
23686
23687 ;
23688 return 0;
23689 }
23690
23691 _ACEOF
23692
23693
23694 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23695 echo "obj-m := conftest.o" >build/Makefile
23696 modpost_flag=''
23697 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23698 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23700 (eval $ac_try) 2>&5
23701 ac_status=$?
23702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23703 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23705 (eval $ac_try) 2>&5
23706 ac_status=$?
23707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23708 test $ac_status = 0; }; }; then :
23709
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23711 $as_echo "yes" >&6; }
23712
23713 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
23714
23715
23716 else
23717 $as_echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23719
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23721 $as_echo "no" >&6; }
23722
23723
23724
23725 fi
23726 rm -Rf build
23727
23728
23729
23730
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
23732 $as_echo_n "checking whether elevator_change() is available... " >&6; }
23733 tmp_flags="$EXTRA_KCFLAGS"
23734 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
23735
23736
23737 cat confdefs.h - <<_ACEOF >conftest.c
23738
23739
23740 #include <linux/blkdev.h>
23741 #include <linux/elevator.h>
23742
23743 int
23744 main (void)
23745 {
23746
23747 int ret;
23748 struct request_queue *q = NULL;
23749 char *elevator = NULL;
23750 ret = elevator_change(q, elevator);
23751
23752 ;
23753 return 0;
23754 }
23755
23756 _ACEOF
23757
23758
23759 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23760 echo "obj-m := conftest.o" >build/Makefile
23761 modpost_flag=''
23762 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23763 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23765 (eval $ac_try) 2>&5
23766 ac_status=$?
23767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23768 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23770 (eval $ac_try) 2>&5
23771 ac_status=$?
23772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23773 test $ac_status = 0; }; }; then :
23774
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23776 $as_echo "yes" >&6; }
23777
23778 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
23779
23780
23781 else
23782 $as_echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23784
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23786 $as_echo "no" >&6; }
23787
23788
23789
23790 fi
23791 rm -Rf build
23792
23793
23794 EXTRA_KCFLAGS="$tmp_flags"
23795
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
23797 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
23798
23799
23800 cat confdefs.h - <<_ACEOF >conftest.c
23801
23802
23803 #include <linux/fs.h>
23804
23805 int
23806 main (void)
23807 {
23808
23809 struct file_system_type *type = NULL;
23810 int (*test)(struct super_block *,void *) = NULL;
23811 int (*set)(struct super_block *,void *) = NULL;
23812 int flags = 0;
23813 void *data = NULL;
23814 (void) sget(type, test, set, flags, data);
23815
23816 ;
23817 return 0;
23818 }
23819
23820 _ACEOF
23821
23822
23823 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23824 echo "obj-m := conftest.o" >build/Makefile
23825 modpost_flag=''
23826 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23827 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23829 (eval $ac_try) 2>&5
23830 ac_status=$?
23831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23832 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23834 (eval $ac_try) 2>&5
23835 ac_status=$?
23836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23837 test $ac_status = 0; }; }; then :
23838
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23840 $as_echo "yes" >&6; }
23841
23842 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
23843
23844
23845 else
23846 $as_echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23848
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23850 $as_echo "no" >&6; }
23851
23852
23853
23854 fi
23855 rm -Rf build
23856
23857
23858
23859
23860 if test "$LINUX_OBJ" != "$LINUX"; then :
23861
23862 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
23863
23864 fi
23865
23866
23867
23868 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
23869 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
23870 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
23871
23872
23873
23874
23875
23876
23877 # Check whether --with-udevdir was given.
23878 if test "${with_udevdir+set}" = set; then :
23879 withval=$with_udevdir; udevdir=$withval
23880 else
23881 udevdir='${exec_prefix}/lib/udev'
23882 fi
23883
23884
23885
23886 # Check whether --with-udevruledir was given.
23887 if test "${with_udevruledir+set}" = set; then :
23888 withval=$with_udevruledir; udevruledir=$withval
23889 else
23890 udevruledir='${udevdir}/rules.d'
23891 fi
23892
23893
23894
23895
23896
23897
23898
23899 # Check whether --with-dracutdir was given.
23900 if test "${with_dracutdir+set}" = set; then :
23901 withval=$with_dracutdir; dracutdir=$withval
23902 else
23903 dracutdir='${exec_prefix}/lib/dracut'
23904 fi
23905
23906
23907
23908
23909
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
23911 $as_echo_n "checking for target asm dir... " >&6; }
23912 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
23913
23914 case $TARGET_ARCH in
23915 i386|x86_64)
23916 TARGET_ASM_DIR=asm-${TARGET_ARCH}
23917 ;;
23918 *)
23919 TARGET_ASM_DIR=asm-generic
23920 ;;
23921 esac
23922
23923
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
23925 $as_echo "$TARGET_ASM_DIR" >&6; }
23926
23927
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl()" >&5
23929 $as_echo_n "checking for ioctl()... " >&6; }
23930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23931 /* end confdefs.h. */
23932 #include <unistd.h>
23933
23934 _ACEOF
23935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23936 $EGREP "ioctl" >/dev/null 2>&1; then :
23937 is_unistd=yes
23938 else
23939 is_unistd=no
23940 fi
23941 rm -f conftest*
23942
23943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23944 /* end confdefs.h. */
23945 #include <sys/ioctl.h>
23946
23947 _ACEOF
23948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23949 $EGREP "ioctl" >/dev/null 2>&1; then :
23950 is_sys_ioctl=yes
23951 else
23952 is_sys_ioctl=no
23953 fi
23954 rm -f conftest*
23955
23956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23957 /* end confdefs.h. */
23958 #include <stropts.h>
23959
23960 _ACEOF
23961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23962 $EGREP "ioctl" >/dev/null 2>&1; then :
23963 is_stropts=yes
23964 else
23965 is_stropts=no
23966 fi
23967 rm -f conftest*
23968
23969
23970 if test $is_unistd = yes; then
23971 result=unistd.h
23972
23973 $as_echo "#define HAVE_IOCTL_IN_UNISTD_H 1" >>confdefs.h
23974
23975 else
23976
23977 if test $is_sys_ioctl = yes; then
23978 result=sys/ioctl.h
23979
23980 $as_echo "#define HAVE_IOCTL_IN_SYS_IOCTL_H 1" >>confdefs.h
23981
23982 elif test $is_stropts = yes; then
23983
23984 $as_echo "#define HAVE_IOCTL_IN_STROPTS_H 1" >>confdefs.h
23985
23986 else
23987 result=no
23988 fi
23989 fi
23990
23991 if test $result = no; then
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23993 $as_echo "no" >&6; }
23994 as_fn_error $? "*** Cannot locate ioctl() definition" "$LINENO" 5
23995 else
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23997 $as_echo "yes" >&6; }
23998 fi
23999
24000
24001 ZLIB=
24002
24003 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24004 if test "x$ac_cv_header_zlib_h" = x""yes; then :
24005
24006 else
24007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24009 as_fn_error $? "
24010 *** zlib.h missing, zlib-devel package required
24011 See \`config.log' for more details" "$LINENO" 5 ; }
24012 fi
24013
24014
24015
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
24017 $as_echo_n "checking for compress2 in -lz... " >&6; }
24018 if test "${ac_cv_lib_z_compress2+set}" = set; then :
24019 $as_echo_n "(cached) " >&6
24020 else
24021 ac_check_lib_save_LIBS=$LIBS
24022 LIBS="-lz $LIBS"
24023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24024 /* end confdefs.h. */
24025
24026 /* Override any GCC internal prototype to avoid an error.
24027 Use char because int might match the return type of a GCC
24028 builtin and then its argument prototype would still apply. */
24029 #ifdef __cplusplus
24030 extern "C"
24031 #endif
24032 char compress2 ();
24033 int
24034 main ()
24035 {
24036 return compress2 ();
24037 ;
24038 return 0;
24039 }
24040 _ACEOF
24041 if ac_fn_c_try_link "$LINENO"; then :
24042 ac_cv_lib_z_compress2=yes
24043 else
24044 ac_cv_lib_z_compress2=no
24045 fi
24046 rm -f core conftest.err conftest.$ac_objext \
24047 conftest$ac_exeext conftest.$ac_ext
24048 LIBS=$ac_check_lib_save_LIBS
24049 fi
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
24051 $as_echo "$ac_cv_lib_z_compress2" >&6; }
24052 if test "x$ac_cv_lib_z_compress2" = x""yes; then :
24053 cat >>confdefs.h <<_ACEOF
24054 #define HAVE_LIBZ 1
24055 _ACEOF
24056
24057 LIBS="-lz $LIBS"
24058
24059 else
24060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24062 as_fn_error $? "
24063 *** compress2() missing, zlib-devel package required
24064 See \`config.log' for more details" "$LINENO" 5 ; }
24065 fi
24066
24067
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
24069 $as_echo_n "checking for uncompress in -lz... " >&6; }
24070 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
24071 $as_echo_n "(cached) " >&6
24072 else
24073 ac_check_lib_save_LIBS=$LIBS
24074 LIBS="-lz $LIBS"
24075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24076 /* end confdefs.h. */
24077
24078 /* Override any GCC internal prototype to avoid an error.
24079 Use char because int might match the return type of a GCC
24080 builtin and then its argument prototype would still apply. */
24081 #ifdef __cplusplus
24082 extern "C"
24083 #endif
24084 char uncompress ();
24085 int
24086 main ()
24087 {
24088 return uncompress ();
24089 ;
24090 return 0;
24091 }
24092 _ACEOF
24093 if ac_fn_c_try_link "$LINENO"; then :
24094 ac_cv_lib_z_uncompress=yes
24095 else
24096 ac_cv_lib_z_uncompress=no
24097 fi
24098 rm -f core conftest.err conftest.$ac_objext \
24099 conftest$ac_exeext conftest.$ac_ext
24100 LIBS=$ac_check_lib_save_LIBS
24101 fi
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
24103 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
24104 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
24105 cat >>confdefs.h <<_ACEOF
24106 #define HAVE_LIBZ 1
24107 _ACEOF
24108
24109 LIBS="-lz $LIBS"
24110
24111 else
24112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24114 as_fn_error $? "
24115 *** uncompress() missing, zlib-devel package required
24116 See \`config.log' for more details" "$LINENO" 5 ; }
24117 fi
24118
24119
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
24121 $as_echo_n "checking for crc32 in -lz... " >&6; }
24122 if test "${ac_cv_lib_z_crc32+set}" = set; then :
24123 $as_echo_n "(cached) " >&6
24124 else
24125 ac_check_lib_save_LIBS=$LIBS
24126 LIBS="-lz $LIBS"
24127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24128 /* end confdefs.h. */
24129
24130 /* Override any GCC internal prototype to avoid an error.
24131 Use char because int might match the return type of a GCC
24132 builtin and then its argument prototype would still apply. */
24133 #ifdef __cplusplus
24134 extern "C"
24135 #endif
24136 char crc32 ();
24137 int
24138 main ()
24139 {
24140 return crc32 ();
24141 ;
24142 return 0;
24143 }
24144 _ACEOF
24145 if ac_fn_c_try_link "$LINENO"; then :
24146 ac_cv_lib_z_crc32=yes
24147 else
24148 ac_cv_lib_z_crc32=no
24149 fi
24150 rm -f core conftest.err conftest.$ac_objext \
24151 conftest$ac_exeext conftest.$ac_ext
24152 LIBS=$ac_check_lib_save_LIBS
24153 fi
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
24155 $as_echo "$ac_cv_lib_z_crc32" >&6; }
24156 if test "x$ac_cv_lib_z_crc32" = x""yes; then :
24157 cat >>confdefs.h <<_ACEOF
24158 #define HAVE_LIBZ 1
24159 _ACEOF
24160
24161 LIBS="-lz $LIBS"
24162
24163 else
24164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24166 as_fn_error $? "
24167 *** crc32() missing, zlib-devel package required
24168 See \`config.log' for more details" "$LINENO" 5 ; }
24169 fi
24170
24171
24172 ZLIB="-lz"
24173
24174
24175 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
24176
24177
24178
24179 LIBUUID=
24180
24181 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
24182 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
24183
24184 else
24185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24187 as_fn_error $? "
24188 *** uuid/uuid.h missing, libuuid-devel package required
24189 See \`config.log' for more details" "$LINENO" 5 ; }
24190 fi
24191
24192
24193
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
24195 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
24196 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
24197 $as_echo_n "(cached) " >&6
24198 else
24199 ac_check_lib_save_LIBS=$LIBS
24200 LIBS="-luuid $LIBS"
24201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24202 /* end confdefs.h. */
24203
24204 /* Override any GCC internal prototype to avoid an error.
24205 Use char because int might match the return type of a GCC
24206 builtin and then its argument prototype would still apply. */
24207 #ifdef __cplusplus
24208 extern "C"
24209 #endif
24210 char uuid_generate ();
24211 int
24212 main ()
24213 {
24214 return uuid_generate ();
24215 ;
24216 return 0;
24217 }
24218 _ACEOF
24219 if ac_fn_c_try_link "$LINENO"; then :
24220 ac_cv_lib_uuid_uuid_generate=yes
24221 else
24222 ac_cv_lib_uuid_uuid_generate=no
24223 fi
24224 rm -f core conftest.err conftest.$ac_objext \
24225 conftest$ac_exeext conftest.$ac_ext
24226 LIBS=$ac_check_lib_save_LIBS
24227 fi
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
24229 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
24230 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
24231 cat >>confdefs.h <<_ACEOF
24232 #define HAVE_LIBUUID 1
24233 _ACEOF
24234
24235 LIBS="-luuid $LIBS"
24236
24237 else
24238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24240 as_fn_error $? "
24241 *** uuid_generate() missing, libuuid-devel package required
24242 See \`config.log' for more details" "$LINENO" 5 ; }
24243 fi
24244
24245
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
24247 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
24248 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then :
24249 $as_echo_n "(cached) " >&6
24250 else
24251 ac_check_lib_save_LIBS=$LIBS
24252 LIBS="-luuid $LIBS"
24253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24254 /* end confdefs.h. */
24255
24256 /* Override any GCC internal prototype to avoid an error.
24257 Use char because int might match the return type of a GCC
24258 builtin and then its argument prototype would still apply. */
24259 #ifdef __cplusplus
24260 extern "C"
24261 #endif
24262 char uuid_is_null ();
24263 int
24264 main ()
24265 {
24266 return uuid_is_null ();
24267 ;
24268 return 0;
24269 }
24270 _ACEOF
24271 if ac_fn_c_try_link "$LINENO"; then :
24272 ac_cv_lib_uuid_uuid_is_null=yes
24273 else
24274 ac_cv_lib_uuid_uuid_is_null=no
24275 fi
24276 rm -f core conftest.err conftest.$ac_objext \
24277 conftest$ac_exeext conftest.$ac_ext
24278 LIBS=$ac_check_lib_save_LIBS
24279 fi
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
24281 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
24282 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then :
24283 cat >>confdefs.h <<_ACEOF
24284 #define HAVE_LIBUUID 1
24285 _ACEOF
24286
24287 LIBS="-luuid $LIBS"
24288
24289 else
24290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24292 as_fn_error $? "
24293 *** uuid_is_null() missing, libuuid-devel package required
24294 See \`config.log' for more details" "$LINENO" 5 ; }
24295 fi
24296
24297
24298 LIBUUID="-luuid"
24299
24300
24301 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
24302
24303
24304
24305
24306 # Check whether --with-blkid was given.
24307 if test "${with_blkid+set}" = set; then :
24308 withval=$with_blkid;
24309 else
24310 with_blkid=check
24311 fi
24312
24313
24314 LIBBLKID=
24315 if test "x$with_blkid" != xno; then :
24316
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
24318 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
24319 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
24320 $as_echo_n "(cached) " >&6
24321 else
24322 ac_check_lib_save_LIBS=$LIBS
24323 LIBS="-lblkid $LIBS"
24324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24325 /* end confdefs.h. */
24326
24327 /* Override any GCC internal prototype to avoid an error.
24328 Use char because int might match the return type of a GCC
24329 builtin and then its argument prototype would still apply. */
24330 #ifdef __cplusplus
24331 extern "C"
24332 #endif
24333 char blkid_get_cache ();
24334 int
24335 main ()
24336 {
24337 return blkid_get_cache ();
24338 ;
24339 return 0;
24340 }
24341 _ACEOF
24342 if ac_fn_c_try_link "$LINENO"; then :
24343 ac_cv_lib_blkid_blkid_get_cache=yes
24344 else
24345 ac_cv_lib_blkid_blkid_get_cache=no
24346 fi
24347 rm -f core conftest.err conftest.$ac_objext \
24348 conftest$ac_exeext conftest.$ac_ext
24349 LIBS=$ac_check_lib_save_LIBS
24350 fi
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
24352 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
24353 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
24354
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
24356 $as_echo_n "checking for blkid zfs support... " >&6; }
24357
24358 ZFS_DEV=`mktemp`
24359 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
24360 >/dev/null 2>/dev/null
24361 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
24362 dd of=$ZFS_DEV bs=1k count=8 \
24363 seek=132 conv=notrunc &>/dev/null \
24364 >/dev/null 2>/dev/null
24365
24366 saved_LDFLAGS="$LDFLAGS"
24367 LDFLAGS="-lblkid"
24368
24369 if test "$cross_compiling" = yes; then :
24370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24372 as_fn_error $? "cannot run test program while cross compiling
24373 See \`config.log' for more details" "$LINENO" 5 ; }
24374 else
24375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24376 /* end confdefs.h. */
24377
24378 #include <stdio.h>
24379 #include <blkid/blkid.h>
24380
24381 int
24382 main ()
24383 {
24384
24385 blkid_cache cache;
24386 char *value;
24387
24388 if (blkid_get_cache(&cache, NULL) < 0)
24389 return 1;
24390
24391 value = blkid_get_tag_value(cache, "TYPE",
24392 "$ZFS_DEV");
24393 if (!value) {
24394 blkid_put_cache(cache);
24395 return 2;
24396 }
24397
24398 if (strcmp(value, "zfs")) {
24399 free(value);
24400 blkid_put_cache(cache);
24401 return 3;
24402 }
24403
24404 free(value);
24405 blkid_put_cache(cache);
24406
24407 ;
24408 return 0;
24409 }
24410 _ACEOF
24411 if ac_fn_c_try_run "$LINENO"; then :
24412
24413 rm -f $ZFS_DEV
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24415 $as_echo "yes" >&6; }
24416 LIBBLKID="-lblkid"
24417
24418
24419 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
24420
24421
24422 else
24423
24424 rm -f $ZFS_DEV
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24426 $as_echo "no" >&6; }
24427 if test "x$with_blkid" != xcheck; then :
24428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24430 as_fn_error $? "--with-blkid given but unavailable
24431 See \`config.log' for more details" "$LINENO" 5 ; }
24432 fi
24433
24434 fi
24435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24436 conftest.$ac_objext conftest.beam conftest.$ac_ext
24437 fi
24438
24439
24440 LDFLAGS="$saved_LDFLAGS"
24441
24442 else
24443
24444 if test "x$with_blkid" != xcheck; then :
24445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24447 as_fn_error $? "--with-blkid given but unavailable
24448 See \`config.log' for more details" "$LINENO" 5 ; }
24449 fi
24450
24451
24452 fi
24453
24454
24455 fi
24456
24457
24458
24459 # Check whether --with-selinux was given.
24460 if test "${with_selinux+set}" = set; then :
24461 withval=$with_selinux;
24462 else
24463 with_selinux=check
24464 fi
24465
24466
24467 LIBSELINUX=
24468 if test "x$with_selinux" != xno; then :
24469
24470 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
24471 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
24472
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
24474 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
24475 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
24476 $as_echo_n "(cached) " >&6
24477 else
24478 ac_check_lib_save_LIBS=$LIBS
24479 LIBS="-lselinux $LIBS"
24480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24481 /* end confdefs.h. */
24482
24483 /* Override any GCC internal prototype to avoid an error.
24484 Use char because int might match the return type of a GCC
24485 builtin and then its argument prototype would still apply. */
24486 #ifdef __cplusplus
24487 extern "C"
24488 #endif
24489 char is_selinux_enabled ();
24490 int
24491 main ()
24492 {
24493 return is_selinux_enabled ();
24494 ;
24495 return 0;
24496 }
24497 _ACEOF
24498 if ac_fn_c_try_link "$LINENO"; then :
24499 ac_cv_lib_selinux_is_selinux_enabled=yes
24500 else
24501 ac_cv_lib_selinux_is_selinux_enabled=no
24502 fi
24503 rm -f core conftest.err conftest.$ac_objext \
24504 conftest$ac_exeext conftest.$ac_ext
24505 LIBS=$ac_check_lib_save_LIBS
24506 fi
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
24508 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
24509 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
24510
24511 LIBSELINUX="-lselinux"
24512
24513
24514 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
24515
24516
24517 else
24518
24519 if test "x$with_selinux" != xcheck; then :
24520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24522 as_fn_error $? "--with-selinux given but unavailable
24523 See \`config.log' for more details" "$LINENO" 5 ; }
24524
24525 fi
24526
24527 fi
24528
24529
24530 else
24531
24532 if test "x$with_selinux" != xcheck; then :
24533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24535 as_fn_error $? "--with-selinux given but unavailable
24536 See \`config.log' for more details" "$LINENO" 5 ; }
24537
24538 fi
24539
24540 fi
24541
24542
24543
24544 else
24545
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux support" >&5
24547 $as_echo_n "checking for selinux support... " >&6; }
24548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24549 $as_echo "no" >&6; }
24550
24551 fi
24552
24553
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
24555 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
24556
24557 saved_flags="$CFLAGS"
24558 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
24559
24560 if test "$cross_compiling" = yes; then :
24561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24563 as_fn_error $? "cannot run test program while cross compiling
24564 See \`config.log' for more details" "$LINENO" 5 ; }
24565 else
24566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24567 /* end confdefs.h. */
24568
24569 int
24570 main ()
24571 {
24572
24573 ;
24574 return 0;
24575 }
24576 _ACEOF
24577 if ac_fn_c_try_run "$LINENO"; then :
24578
24579 FRAME_LARGER_THAN=-Wframe-larger-than=1024
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24581 $as_echo "yes" >&6; }
24582
24583 else
24584
24585 FRAME_LARGER_THAN=
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24587 $as_echo "no" >&6; }
24588
24589 fi
24590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24591 conftest.$ac_objext conftest.beam conftest.$ac_ext
24592 fi
24593
24594
24595 CFLAGS="$saved_flags"
24596
24597
24598 ;;
24599 srpm) ;;
24600 *)
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
24602 $as_echo "Error!" >&6; }
24603 as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config,
24604 user kernel|user|all|srpm" "$LINENO" 5 ;;
24605 esac
24606
24607 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
24608 CONFIG_USER_TRUE=
24609 CONFIG_USER_FALSE='#'
24610 else
24611 CONFIG_USER_TRUE='#'
24612 CONFIG_USER_FALSE=
24613 fi
24614
24615 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
24616 test "x$enable_linux_builtin" != xyes ; then
24617 CONFIG_KERNEL_TRUE=
24618 CONFIG_KERNEL_FALSE='#'
24619 else
24620 CONFIG_KERNEL_TRUE='#'
24621 CONFIG_KERNEL_FALSE=
24622 fi
24623
24624
24625
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
24627 $as_echo_n "checking whether debugging is enabled... " >&6; }
24628 # Check whether --enable-debug was given.
24629 if test "${enable_debug+set}" = set; then :
24630 enableval=$enable_debug;
24631 else
24632 enable_debug=no
24633 fi
24634
24635
24636 if test "x$enable_debug" = xyes; then :
24637
24638 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
24639 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
24640 DEBUG_CFLAGS="-DDEBUG -Werror"
24641 DEBUG_STACKFLAGS="-fstack-check"
24642 DEBUG_ZFS="_with_debug"
24643
24644 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
24645
24646
24647 else
24648
24649 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
24650 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
24651 DEBUG_CFLAGS="-DNDEBUG"
24652 DEBUG_STACKFLAGS=""
24653 DEBUG_ZFS="_without_debug"
24654
24655 fi
24656
24657
24658
24659
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
24661 $as_echo "$enable_debug" >&6; }
24662
24663
24664 # Check whether --enable-debug-dmu-tx was given.
24665 if test "${enable_debug_dmu_tx+set}" = set; then :
24666 enableval=$enable_debug_dmu_tx;
24667 else
24668 enable_debug_dmu_tx=no
24669 fi
24670
24671
24672 if test "x$enable_debug_dmu_tx" = xyes; then :
24673
24674 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
24675 DEBUG_DMU_TX="_with_debug_dmu_tx"
24676
24677 $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
24678
24679
24680 else
24681
24682 DEBUG_DMU_TX="_without_debug_dmu_tx"
24683
24684 fi
24685
24686
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
24688 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
24690 $as_echo "$enable_debug_dmu_tx" >&6; }
24691
24692
24693 ac_config_files="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile man/Makefile man/man1/Makefile man/man5/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zhack/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/zstreamdump/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/fsck_zfs/Makefile cmd/zvol_id/Makefile cmd/vdev_id/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/common.sh rpm/Makefile rpm/fedora/Makefile rpm/fedora/zfs.spec rpm/fedora/zfs-kmod.spec rpm/fedora/zfs-dkms.spec rpm/generic/Makefile rpm/generic/zfs.spec rpm/generic/zfs-kmod.spec rpm/generic/zfs-dkms.spec zfs-script-config.sh zfs.release"
24694
24695
24696 cat >confcache <<\_ACEOF
24697 # This file is a shell script that caches the results of configure
24698 # tests run on this system so they can be shared between configure
24699 # scripts and configure runs, see configure's option --config-cache.
24700 # It is not useful on other systems. If it contains results you don't
24701 # want to keep, you may remove or edit it.
24702 #
24703 # config.status only pays attention to the cache file if you give it
24704 # the --recheck option to rerun configure.
24705 #
24706 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24708 # following values.
24709
24710 _ACEOF
24711
24712 # The following way of writing the cache mishandles newlines in values,
24713 # but we know of no workaround that is simple, portable, and efficient.
24714 # So, we kill variables containing newlines.
24715 # Ultrix sh set writes to stderr and can't be redirected directly,
24716 # and sets the high bit in the cache file unless we assign to the vars.
24717 (
24718 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24719 eval ac_val=\$$ac_var
24720 case $ac_val in #(
24721 *${as_nl}*)
24722 case $ac_var in #(
24723 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24724 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24725 esac
24726 case $ac_var in #(
24727 _ | IFS | as_nl) ;; #(
24728 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24729 *) { eval $ac_var=; unset $ac_var;} ;;
24730 esac ;;
24731 esac
24732 done
24733
24734 (set) 2>&1 |
24735 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24736 *${as_nl}ac_space=\ *)
24737 # `set' does not quote correctly, so add quotes: double-quote
24738 # substitution turns \\\\ into \\, and sed turns \\ into \.
24739 sed -n \
24740 "s/'/'\\\\''/g;
24741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24742 ;; #(
24743 *)
24744 # `set' quotes correctly as required by POSIX, so do not add quotes.
24745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24746 ;;
24747 esac |
24748 sort
24749 ) |
24750 sed '
24751 /^ac_cv_env_/b end
24752 t clear
24753 :clear
24754 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24755 t end
24756 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24757 :end' >>confcache
24758 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24759 if test -w "$cache_file"; then
24760 test "x$cache_file" != "x/dev/null" &&
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24762 $as_echo "$as_me: updating cache $cache_file" >&6;}
24763 cat confcache >$cache_file
24764 else
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24766 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24767 fi
24768 fi
24769 rm -f confcache
24770
24771 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24772 # Let make expand exec_prefix.
24773 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24774
24775 DEFS=-DHAVE_CONFIG_H
24776
24777 ac_libobjs=
24778 ac_ltlibobjs=
24779 U=
24780 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24781 # 1. Remove the extension, and $U if already installed.
24782 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24783 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24784 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24785 # will be set to the directory where LIBOBJS objects are built.
24786 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24787 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24788 done
24789 LIBOBJS=$ac_libobjs
24790
24791 LTLIBOBJS=$ac_ltlibobjs
24792
24793
24794 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24795 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
24796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24797 fi
24798 if test -n "$EXEEXT"; then
24799 am__EXEEXT_TRUE=
24800 am__EXEEXT_FALSE='#'
24801 else
24802 am__EXEEXT_TRUE='#'
24803 am__EXEEXT_FALSE=
24804 fi
24805
24806 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24807 as_fn_error $? "conditional \"AMDEP\" was never defined.
24808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24809 fi
24810 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24811 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24813 fi
24814 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
24815 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
24816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24817 fi
24818 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
24819 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
24820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24821 fi
24822 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
24823 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
24824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24825 fi
24826
24827 : ${CONFIG_STATUS=./config.status}
24828 ac_write_fail=0
24829 ac_clean_files_save=$ac_clean_files
24830 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24832 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24833 as_write_fail=0
24834 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24835 #! $SHELL
24836 # Generated by $as_me.
24837 # Run this file to recreate the current configuration.
24838 # Compiler output produced by configure, useful for debugging
24839 # configure, is in config.log if it exists.
24840
24841 debug=false
24842 ac_cs_recheck=false
24843 ac_cs_silent=false
24844
24845 SHELL=\${CONFIG_SHELL-$SHELL}
24846 export SHELL
24847 _ASEOF
24848 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24849 ## -------------------- ##
24850 ## M4sh Initialization. ##
24851 ## -------------------- ##
24852
24853 # Be more Bourne compatible
24854 DUALCASE=1; export DUALCASE # for MKS sh
24855 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24856 emulate sh
24857 NULLCMD=:
24858 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24859 # is contrary to our usage. Disable this feature.
24860 alias -g '${1+"$@"}'='"$@"'
24861 setopt NO_GLOB_SUBST
24862 else
24863 case `(set -o) 2>/dev/null` in #(
24864 *posix*) :
24865 set -o posix ;; #(
24866 *) :
24867 ;;
24868 esac
24869 fi
24870
24871
24872 as_nl='
24873 '
24874 export as_nl
24875 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24876 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24878 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24879 # Prefer a ksh shell builtin over an external printf program on Solaris,
24880 # but without wasting forks for bash or zsh.
24881 if test -z "$BASH_VERSION$ZSH_VERSION" \
24882 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24883 as_echo='print -r --'
24884 as_echo_n='print -rn --'
24885 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24886 as_echo='printf %s\n'
24887 as_echo_n='printf %s'
24888 else
24889 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24890 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24891 as_echo_n='/usr/ucb/echo -n'
24892 else
24893 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24894 as_echo_n_body='eval
24895 arg=$1;
24896 case $arg in #(
24897 *"$as_nl"*)
24898 expr "X$arg" : "X\\(.*\\)$as_nl";
24899 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24900 esac;
24901 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24902 '
24903 export as_echo_n_body
24904 as_echo_n='sh -c $as_echo_n_body as_echo'
24905 fi
24906 export as_echo_body
24907 as_echo='sh -c $as_echo_body as_echo'
24908 fi
24909
24910 # The user is always right.
24911 if test "${PATH_SEPARATOR+set}" != set; then
24912 PATH_SEPARATOR=:
24913 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24914 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24915 PATH_SEPARATOR=';'
24916 }
24917 fi
24918
24919
24920 # IFS
24921 # We need space, tab and new line, in precisely that order. Quoting is
24922 # there to prevent editors from complaining about space-tab.
24923 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24924 # splitting by setting IFS to empty value.)
24925 IFS=" "" $as_nl"
24926
24927 # Find who we are. Look in the path if we contain no directory separator.
24928 case $0 in #((
24929 *[\\/]* ) as_myself=$0 ;;
24930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24931 for as_dir in $PATH
24932 do
24933 IFS=$as_save_IFS
24934 test -z "$as_dir" && as_dir=.
24935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24936 done
24937 IFS=$as_save_IFS
24938
24939 ;;
24940 esac
24941 # We did not find ourselves, most probably we were run as `sh COMMAND'
24942 # in which case we are not to be found in the path.
24943 if test "x$as_myself" = x; then
24944 as_myself=$0
24945 fi
24946 if test ! -f "$as_myself"; then
24947 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24948 exit 1
24949 fi
24950
24951 # Unset variables that we do not need and which cause bugs (e.g. in
24952 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24953 # suppresses any "Segmentation fault" message there. '((' could
24954 # trigger a bug in pdksh 5.2.14.
24955 for as_var in BASH_ENV ENV MAIL MAILPATH
24956 do eval test x\${$as_var+set} = xset \
24957 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24958 done
24959 PS1='$ '
24960 PS2='> '
24961 PS4='+ '
24962
24963 # NLS nuisances.
24964 LC_ALL=C
24965 export LC_ALL
24966 LANGUAGE=C
24967 export LANGUAGE
24968
24969 # CDPATH.
24970 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24971
24972
24973 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24974 # ----------------------------------------
24975 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24976 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24977 # script with STATUS, using 1 if that was 0.
24978 as_fn_error ()
24979 {
24980 as_status=$1; test $as_status -eq 0 && as_status=1
24981 if test "$4"; then
24982 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24983 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24984 fi
24985 $as_echo "$as_me: error: $2" >&2
24986 as_fn_exit $as_status
24987 } # as_fn_error
24988
24989
24990 # as_fn_set_status STATUS
24991 # -----------------------
24992 # Set $? to STATUS, without forking.
24993 as_fn_set_status ()
24994 {
24995 return $1
24996 } # as_fn_set_status
24997
24998 # as_fn_exit STATUS
24999 # -----------------
25000 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25001 as_fn_exit ()
25002 {
25003 set +e
25004 as_fn_set_status $1
25005 exit $1
25006 } # as_fn_exit
25007
25008 # as_fn_unset VAR
25009 # ---------------
25010 # Portably unset VAR.
25011 as_fn_unset ()
25012 {
25013 { eval $1=; unset $1;}
25014 }
25015 as_unset=as_fn_unset
25016 # as_fn_append VAR VALUE
25017 # ----------------------
25018 # Append the text in VALUE to the end of the definition contained in VAR. Take
25019 # advantage of any shell optimizations that allow amortized linear growth over
25020 # repeated appends, instead of the typical quadratic growth present in naive
25021 # implementations.
25022 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25023 eval 'as_fn_append ()
25024 {
25025 eval $1+=\$2
25026 }'
25027 else
25028 as_fn_append ()
25029 {
25030 eval $1=\$$1\$2
25031 }
25032 fi # as_fn_append
25033
25034 # as_fn_arith ARG...
25035 # ------------------
25036 # Perform arithmetic evaluation on the ARGs, and store the result in the
25037 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25038 # must be portable across $(()) and expr.
25039 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25040 eval 'as_fn_arith ()
25041 {
25042 as_val=$(( $* ))
25043 }'
25044 else
25045 as_fn_arith ()
25046 {
25047 as_val=`expr "$@" || test $? -eq 1`
25048 }
25049 fi # as_fn_arith
25050
25051
25052 if expr a : '\(a\)' >/dev/null 2>&1 &&
25053 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25054 as_expr=expr
25055 else
25056 as_expr=false
25057 fi
25058
25059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25060 as_basename=basename
25061 else
25062 as_basename=false
25063 fi
25064
25065 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25066 as_dirname=dirname
25067 else
25068 as_dirname=false
25069 fi
25070
25071 as_me=`$as_basename -- "$0" ||
25072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25073 X"$0" : 'X\(//\)$' \| \
25074 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25075 $as_echo X/"$0" |
25076 sed '/^.*\/\([^/][^/]*\)\/*$/{
25077 s//\1/
25078 q
25079 }
25080 /^X\/\(\/\/\)$/{
25081 s//\1/
25082 q
25083 }
25084 /^X\/\(\/\).*/{
25085 s//\1/
25086 q
25087 }
25088 s/.*/./; q'`
25089
25090 # Avoid depending upon Character Ranges.
25091 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25092 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25093 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25094 as_cr_digits='0123456789'
25095 as_cr_alnum=$as_cr_Letters$as_cr_digits
25096
25097 ECHO_C= ECHO_N= ECHO_T=
25098 case `echo -n x` in #(((((
25099 -n*)
25100 case `echo 'xy\c'` in
25101 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25102 xy) ECHO_C='\c';;
25103 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25104 ECHO_T=' ';;
25105 esac;;
25106 *)
25107 ECHO_N='-n';;
25108 esac
25109
25110 rm -f conf$$ conf$$.exe conf$$.file
25111 if test -d conf$$.dir; then
25112 rm -f conf$$.dir/conf$$.file
25113 else
25114 rm -f conf$$.dir
25115 mkdir conf$$.dir 2>/dev/null
25116 fi
25117 if (echo >conf$$.file) 2>/dev/null; then
25118 if ln -s conf$$.file conf$$ 2>/dev/null; then
25119 as_ln_s='ln -s'
25120 # ... but there are two gotchas:
25121 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25122 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25123 # In both cases, we have to default to `cp -p'.
25124 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25125 as_ln_s='cp -p'
25126 elif ln conf$$.file conf$$ 2>/dev/null; then
25127 as_ln_s=ln
25128 else
25129 as_ln_s='cp -p'
25130 fi
25131 else
25132 as_ln_s='cp -p'
25133 fi
25134 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25135 rmdir conf$$.dir 2>/dev/null
25136
25137
25138 # as_fn_mkdir_p
25139 # -------------
25140 # Create "$as_dir" as a directory, including parents if necessary.
25141 as_fn_mkdir_p ()
25142 {
25143
25144 case $as_dir in #(
25145 -*) as_dir=./$as_dir;;
25146 esac
25147 test -d "$as_dir" || eval $as_mkdir_p || {
25148 as_dirs=
25149 while :; do
25150 case $as_dir in #(
25151 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25152 *) as_qdir=$as_dir;;
25153 esac
25154 as_dirs="'$as_qdir' $as_dirs"
25155 as_dir=`$as_dirname -- "$as_dir" ||
25156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25157 X"$as_dir" : 'X\(//\)[^/]' \| \
25158 X"$as_dir" : 'X\(//\)$' \| \
25159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25160 $as_echo X"$as_dir" |
25161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25162 s//\1/
25163 q
25164 }
25165 /^X\(\/\/\)[^/].*/{
25166 s//\1/
25167 q
25168 }
25169 /^X\(\/\/\)$/{
25170 s//\1/
25171 q
25172 }
25173 /^X\(\/\).*/{
25174 s//\1/
25175 q
25176 }
25177 s/.*/./; q'`
25178 test -d "$as_dir" && break
25179 done
25180 test -z "$as_dirs" || eval "mkdir $as_dirs"
25181 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25182
25183
25184 } # as_fn_mkdir_p
25185 if mkdir -p . 2>/dev/null; then
25186 as_mkdir_p='mkdir -p "$as_dir"'
25187 else
25188 test -d ./-p && rmdir ./-p
25189 as_mkdir_p=false
25190 fi
25191
25192 if test -x / >/dev/null 2>&1; then
25193 as_test_x='test -x'
25194 else
25195 if ls -dL / >/dev/null 2>&1; then
25196 as_ls_L_option=L
25197 else
25198 as_ls_L_option=
25199 fi
25200 as_test_x='
25201 eval sh -c '\''
25202 if test -d "$1"; then
25203 test -d "$1/.";
25204 else
25205 case $1 in #(
25206 -*)set "./$1";;
25207 esac;
25208 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25209 ???[sx]*):;;*)false;;esac;fi
25210 '\'' sh
25211 '
25212 fi
25213 as_executable_p=$as_test_x
25214
25215 # Sed expression to map a string onto a valid CPP name.
25216 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25217
25218 # Sed expression to map a string onto a valid variable name.
25219 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25220
25221
25222 exec 6>&1
25223 ## ----------------------------------- ##
25224 ## Main body of $CONFIG_STATUS script. ##
25225 ## ----------------------------------- ##
25226 _ASEOF
25227 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25228
25229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25230 # Save the log message, to keep $0 and so on meaningful, and to
25231 # report actual input values of CONFIG_FILES etc. instead of their
25232 # values after options handling.
25233 ac_log="
25234 This file was extended by $as_me, which was
25235 generated by GNU Autoconf 2.67. Invocation command line was
25236
25237 CONFIG_FILES = $CONFIG_FILES
25238 CONFIG_HEADERS = $CONFIG_HEADERS
25239 CONFIG_LINKS = $CONFIG_LINKS
25240 CONFIG_COMMANDS = $CONFIG_COMMANDS
25241 $ $0 $@
25242
25243 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25244 "
25245
25246 _ACEOF
25247
25248 case $ac_config_files in *"
25249 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25250 esac
25251
25252 case $ac_config_headers in *"
25253 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25254 esac
25255
25256
25257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25258 # Files that config.status was made for.
25259 config_files="$ac_config_files"
25260 config_headers="$ac_config_headers"
25261 config_commands="$ac_config_commands"
25262
25263 _ACEOF
25264
25265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25266 ac_cs_usage="\
25267 \`$as_me' instantiates files and other configuration actions
25268 from templates according to the current configuration. Unless the files
25269 and actions are specified as TAGs, all are instantiated by default.
25270
25271 Usage: $0 [OPTION]... [TAG]...
25272
25273 -h, --help print this help, then exit
25274 -V, --version print version number and configuration settings, then exit
25275 --config print configuration, then exit
25276 -q, --quiet, --silent
25277 do not print progress messages
25278 -d, --debug don't remove temporary files
25279 --recheck update $as_me by reconfiguring in the same conditions
25280 --file=FILE[:TEMPLATE]
25281 instantiate the configuration file FILE
25282 --header=FILE[:TEMPLATE]
25283 instantiate the configuration header FILE
25284
25285 Configuration files:
25286 $config_files
25287
25288 Configuration headers:
25289 $config_headers
25290
25291 Configuration commands:
25292 $config_commands
25293
25294 Report bugs to the package provider."
25295
25296 _ACEOF
25297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25298 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25299 ac_cs_version="\\
25300 config.status
25301 configured by $0, generated by GNU Autoconf 2.67,
25302 with options \\"\$ac_cs_config\\"
25303
25304 Copyright (C) 2010 Free Software Foundation, Inc.
25305 This config.status script is free software; the Free Software Foundation
25306 gives unlimited permission to copy, distribute and modify it."
25307
25308 ac_pwd='$ac_pwd'
25309 srcdir='$srcdir'
25310 INSTALL='$INSTALL'
25311 MKDIR_P='$MKDIR_P'
25312 AWK='$AWK'
25313 test -n "\$AWK" || AWK=awk
25314 _ACEOF
25315
25316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25317 # The default lists apply if the user does not specify any file.
25318 ac_need_defaults=:
25319 while test $# != 0
25320 do
25321 case $1 in
25322 --*=?*)
25323 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25324 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25325 ac_shift=:
25326 ;;
25327 --*=)
25328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25329 ac_optarg=
25330 ac_shift=:
25331 ;;
25332 *)
25333 ac_option=$1
25334 ac_optarg=$2
25335 ac_shift=shift
25336 ;;
25337 esac
25338
25339 case $ac_option in
25340 # Handling of the options.
25341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25342 ac_cs_recheck=: ;;
25343 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25344 $as_echo "$ac_cs_version"; exit ;;
25345 --config | --confi | --conf | --con | --co | --c )
25346 $as_echo "$ac_cs_config"; exit ;;
25347 --debug | --debu | --deb | --de | --d | -d )
25348 debug=: ;;
25349 --file | --fil | --fi | --f )
25350 $ac_shift
25351 case $ac_optarg in
25352 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25353 '') as_fn_error $? "missing file argument" ;;
25354 esac
25355 as_fn_append CONFIG_FILES " '$ac_optarg'"
25356 ac_need_defaults=false;;
25357 --header | --heade | --head | --hea )
25358 $ac_shift
25359 case $ac_optarg in
25360 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25361 esac
25362 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25363 ac_need_defaults=false;;
25364 --he | --h)
25365 # Conflict between --help and --header
25366 as_fn_error $? "ambiguous option: \`$1'
25367 Try \`$0 --help' for more information.";;
25368 --help | --hel | -h )
25369 $as_echo "$ac_cs_usage"; exit ;;
25370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25371 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25372 ac_cs_silent=: ;;
25373
25374 # This is an error.
25375 -*) as_fn_error $? "unrecognized option: \`$1'
25376 Try \`$0 --help' for more information." ;;
25377
25378 *) as_fn_append ac_config_targets " $1"
25379 ac_need_defaults=false ;;
25380
25381 esac
25382 shift
25383 done
25384
25385 ac_configure_extra_args=
25386
25387 if $ac_cs_silent; then
25388 exec 6>/dev/null
25389 ac_configure_extra_args="$ac_configure_extra_args --silent"
25390 fi
25391
25392 _ACEOF
25393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25394 if \$ac_cs_recheck; then
25395 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25396 shift
25397 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25398 CONFIG_SHELL='$SHELL'
25399 export CONFIG_SHELL
25400 exec "\$@"
25401 fi
25402
25403 _ACEOF
25404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25405 exec 5>>config.log
25406 {
25407 echo
25408 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25409 ## Running $as_me. ##
25410 _ASBOX
25411 $as_echo "$ac_log"
25412 } >&5
25413
25414 _ACEOF
25415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25416 #
25417 # INIT-COMMANDS
25418 #
25419 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25420
25421
25422 # The HP-UX ksh and POSIX shell print the target directory to stdout
25423 # if CDPATH is set.
25424 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25425
25426 sed_quote_subst='$sed_quote_subst'
25427 double_quote_subst='$double_quote_subst'
25428 delay_variable_subst='$delay_variable_subst'
25429 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25430 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25431 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25432 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25433 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25434 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
25435 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
25436 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
25437 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
25438 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
25439 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
25440 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
25441 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
25442 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
25443 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
25444 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
25445 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
25446 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
25447 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
25448 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
25449 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
25450 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
25451 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
25452 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
25453 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
25454 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
25455 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
25456 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25457 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
25458 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
25459 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
25460 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
25461 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25462 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
25463 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
25464 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25465 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25466 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25467 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
25468 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25469 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
25470 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
25471 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
25472 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
25473 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
25474 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25475 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
25476 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
25477 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
25478 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
25479 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
25480 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
25481 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
25482 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
25483 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
25484 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
25485 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
25486 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
25487 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
25488 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
25489 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
25490 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
25491 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25492 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25493 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
25494 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
25495 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25496 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25497 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
25498 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25499 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25500 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25501 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25502 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25503 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25504 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
25505 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25506 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25507 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25508 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
25509 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
25510 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
25511 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
25512 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
25513 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25514 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
25515 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
25516 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
25517 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
25518 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
25519 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25520 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25521 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25522 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25523 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
25524 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
25525 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25526 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
25527 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
25528 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25529 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25530 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
25531 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25532 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
25533 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25534 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25535 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25536 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25537 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
25538 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
25539 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25540 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25541 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
25542 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
25543 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
25544 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
25545 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
25546 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
25547
25548 LTCC='$LTCC'
25549 LTCFLAGS='$LTCFLAGS'
25550 compiler='$compiler_DEFAULT'
25551
25552 # Quote evaled strings.
25553 for var in SED \
25554 GREP \
25555 EGREP \
25556 FGREP \
25557 LD \
25558 NM \
25559 LN_S \
25560 lt_SP2NL \
25561 lt_NL2SP \
25562 reload_flag \
25563 OBJDUMP \
25564 deplibs_check_method \
25565 file_magic_cmd \
25566 AR \
25567 AR_FLAGS \
25568 STRIP \
25569 RANLIB \
25570 CC \
25571 CFLAGS \
25572 compiler \
25573 lt_cv_sys_global_symbol_pipe \
25574 lt_cv_sys_global_symbol_to_cdecl \
25575 lt_cv_sys_global_symbol_to_c_name_address \
25576 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25577 SHELL \
25578 ECHO \
25579 lt_prog_compiler_no_builtin_flag \
25580 lt_prog_compiler_wl \
25581 lt_prog_compiler_pic \
25582 lt_prog_compiler_static \
25583 lt_cv_prog_compiler_c_o \
25584 need_locks \
25585 DSYMUTIL \
25586 NMEDIT \
25587 LIPO \
25588 OTOOL \
25589 OTOOL64 \
25590 shrext_cmds \
25591 export_dynamic_flag_spec \
25592 whole_archive_flag_spec \
25593 compiler_needs_object \
25594 with_gnu_ld \
25595 allow_undefined_flag \
25596 no_undefined_flag \
25597 hardcode_libdir_flag_spec \
25598 hardcode_libdir_flag_spec_ld \
25599 hardcode_libdir_separator \
25600 fix_srcfile_path \
25601 exclude_expsyms \
25602 include_expsyms \
25603 file_list_spec \
25604 variables_saved_for_relink \
25605 libname_spec \
25606 library_names_spec \
25607 soname_spec \
25608 finish_eval \
25609 old_striplib \
25610 striplib; do
25611 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25612 *[\\\\\\\`\\"\\\$]*)
25613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25614 ;;
25615 *)
25616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25617 ;;
25618 esac
25619 done
25620
25621 # Double-quote double-evaled strings.
25622 for var in reload_cmds \
25623 old_postinstall_cmds \
25624 old_postuninstall_cmds \
25625 old_archive_cmds \
25626 extract_expsyms_cmds \
25627 old_archive_from_new_cmds \
25628 old_archive_from_expsyms_cmds \
25629 archive_cmds \
25630 archive_expsym_cmds \
25631 module_cmds \
25632 module_expsym_cmds \
25633 export_symbols_cmds \
25634 prelink_cmds \
25635 postinstall_cmds \
25636 postuninstall_cmds \
25637 finish_cmds \
25638 sys_lib_search_path_spec \
25639 sys_lib_dlsearch_path_spec; do
25640 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25641 *[\\\\\\\`\\"\\\$]*)
25642 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25643 ;;
25644 *)
25645 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25646 ;;
25647 esac
25648 done
25649
25650 # Fix-up fallback echo if it was mangled by the above quoting rules.
25651 case \$lt_ECHO in
25652 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
25653 ;;
25654 esac
25655
25656 ac_aux_dir='$ac_aux_dir'
25657 xsi_shell='$xsi_shell'
25658 lt_shell_append='$lt_shell_append'
25659
25660 # See if we are running on zsh, and set the options which allow our
25661 # commands through without removal of \ escapes INIT.
25662 if test -n "\${ZSH_VERSION+set}" ; then
25663 setopt NO_GLOB_SUBST
25664 fi
25665
25666
25667 PACKAGE='$PACKAGE'
25668 VERSION='$VERSION'
25669 TIMESTAMP='$TIMESTAMP'
25670 RM='$RM'
25671 ofile='$ofile'
25672
25673
25674
25675
25676 _ACEOF
25677
25678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25679
25680 # Handling of arguments.
25681 for ac_config_target in $ac_config_targets
25682 do
25683 case $ac_config_target in
25684 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
25685 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25686 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25687 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25688 "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
25689 "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
25690 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
25691 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
25692 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
25693 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
25694 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
25695 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
25696 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
25697 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
25698 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
25699 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25700 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
25701 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
25702 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
25703 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
25704 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
25705 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
25706 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
25707 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
25708 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
25709 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
25710 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
25711 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
25712 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
25713 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
25714 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
25715 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
25716 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
25717 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
25718 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
25719 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
25720 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
25721 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
25722 "cmd/zhack/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zhack/Makefile" ;;
25723 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
25724 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
25725 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
25726 "cmd/zstreamdump/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
25727 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
25728 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
25729 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
25730 "cmd/fsck_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
25731 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
25732 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
25733 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
25734 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
25735 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
25736 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
25737 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
25738 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
25739 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
25740 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25741 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
25742 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
25743 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
25744 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
25745 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
25746 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
25747 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
25748 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
25749 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
25750 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
25751 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
25752 "rpm/fedora/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/fedora/Makefile" ;;
25753 "rpm/fedora/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/fedora/zfs.spec" ;;
25754 "rpm/fedora/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/fedora/zfs-kmod.spec" ;;
25755 "rpm/fedora/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/fedora/zfs-dkms.spec" ;;
25756 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
25757 "rpm/generic/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs.spec" ;;
25758 "rpm/generic/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
25759 "rpm/generic/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
25760 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
25761 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
25762
25763 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
25764 esac
25765 done
25766
25767
25768 # If the user did not use the arguments to specify the items to instantiate,
25769 # then the envvar interface is used. Set only those that are not.
25770 # We use the long form for the default assignment because of an extremely
25771 # bizarre bug on SunOS 4.1.3.
25772 if $ac_need_defaults; then
25773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25774 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25775 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25776 fi
25777
25778 # Have a temporary directory for convenience. Make it in the build tree
25779 # simply because there is no reason against having it here, and in addition,
25780 # creating and moving files from /tmp can sometimes cause problems.
25781 # Hook for its removal unless debugging.
25782 # Note that there is a small window in which the directory will not be cleaned:
25783 # after its creation but before its name has been assigned to `$tmp'.
25784 $debug ||
25785 {
25786 tmp=
25787 trap 'exit_status=$?
25788 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25789 ' 0
25790 trap 'as_fn_exit 1' 1 2 13 15
25791 }
25792 # Create a (secure) tmp directory for tmp files.
25793
25794 {
25795 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25796 test -n "$tmp" && test -d "$tmp"
25797 } ||
25798 {
25799 tmp=./conf$$-$RANDOM
25800 (umask 077 && mkdir "$tmp")
25801 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25802
25803 # Set up the scripts for CONFIG_FILES section.
25804 # No need to generate them if there are no CONFIG_FILES.
25805 # This happens for instance with `./config.status config.h'.
25806 if test -n "$CONFIG_FILES"; then
25807
25808
25809 ac_cr=`echo X | tr X '\015'`
25810 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25811 # But we know of no other shell where ac_cr would be empty at this
25812 # point, so we can use a bashism as a fallback.
25813 if test "x$ac_cr" = x; then
25814 eval ac_cr=\$\'\\r\'
25815 fi
25816 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25817 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25818 ac_cs_awk_cr='\\r'
25819 else
25820 ac_cs_awk_cr=$ac_cr
25821 fi
25822
25823 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25824 _ACEOF
25825
25826
25827 {
25828 echo "cat >conf$$subs.awk <<_ACEOF" &&
25829 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25830 echo "_ACEOF"
25831 } >conf$$subs.sh ||
25832 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25833 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25834 ac_delim='%!_!# '
25835 for ac_last_try in false false false false false :; do
25836 . ./conf$$subs.sh ||
25837 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25838
25839 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25840 if test $ac_delim_n = $ac_delim_num; then
25841 break
25842 elif $ac_last_try; then
25843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25844 else
25845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25846 fi
25847 done
25848 rm -f conf$$subs.sh
25849
25850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25851 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25852 _ACEOF
25853 sed -n '
25854 h
25855 s/^/S["/; s/!.*/"]=/
25856 p
25857 g
25858 s/^[^!]*!//
25859 :repl
25860 t repl
25861 s/'"$ac_delim"'$//
25862 t delim
25863 :nl
25864 h
25865 s/\(.\{148\}\)..*/\1/
25866 t more1
25867 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25868 p
25869 n
25870 b repl
25871 :more1
25872 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25873 p
25874 g
25875 s/.\{148\}//
25876 t nl
25877 :delim
25878 h
25879 s/\(.\{148\}\)..*/\1/
25880 t more2
25881 s/["\\]/\\&/g; s/^/"/; s/$/"/
25882 p
25883 b
25884 :more2
25885 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25886 p
25887 g
25888 s/.\{148\}//
25889 t delim
25890 ' <conf$$subs.awk | sed '
25891 /^[^""]/{
25892 N
25893 s/\n//
25894 }
25895 ' >>$CONFIG_STATUS || ac_write_fail=1
25896 rm -f conf$$subs.awk
25897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25898 _ACAWK
25899 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25900 for (key in S) S_is_set[key] = 1
25901 FS = "\a"
25902
25903 }
25904 {
25905 line = $ 0
25906 nfields = split(line, field, "@")
25907 substed = 0
25908 len = length(field[1])
25909 for (i = 2; i < nfields; i++) {
25910 key = field[i]
25911 keylen = length(key)
25912 if (S_is_set[key]) {
25913 value = S[key]
25914 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25915 len += length(value) + length(field[++i])
25916 substed = 1
25917 } else
25918 len += 1 + keylen
25919 }
25920
25921 print line
25922 }
25923
25924 _ACAWK
25925 _ACEOF
25926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25927 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25928 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25929 else
25930 cat
25931 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25932 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25933 _ACEOF
25934
25935 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25936 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25937 # trailing colons and then remove the whole line if VPATH becomes empty
25938 # (actually we leave an empty line to preserve line numbers).
25939 if test "x$srcdir" = x.; then
25940 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25941 h
25942 s///
25943 s/^/:/
25944 s/[ ]*$/:/
25945 s/:\$(srcdir):/:/g
25946 s/:\${srcdir}:/:/g
25947 s/:@srcdir@:/:/g
25948 s/^:*//
25949 s/:*$//
25950 x
25951 s/\(=[ ]*\).*/\1/
25952 G
25953 s/\n//
25954 s/^[^=]*=[ ]*$//
25955 }'
25956 fi
25957
25958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25959 fi # test -n "$CONFIG_FILES"
25960
25961 # Set up the scripts for CONFIG_HEADERS section.
25962 # No need to generate them if there are no CONFIG_HEADERS.
25963 # This happens for instance with `./config.status Makefile'.
25964 if test -n "$CONFIG_HEADERS"; then
25965 cat >"$tmp/defines.awk" <<\_ACAWK ||
25966 BEGIN {
25967 _ACEOF
25968
25969 # Transform confdefs.h into an awk script `defines.awk', embedded as
25970 # here-document in config.status, that substitutes the proper values into
25971 # config.h.in to produce config.h.
25972
25973 # Create a delimiter string that does not exist in confdefs.h, to ease
25974 # handling of long lines.
25975 ac_delim='%!_!# '
25976 for ac_last_try in false false :; do
25977 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25978 if test -z "$ac_t"; then
25979 break
25980 elif $ac_last_try; then
25981 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25982 else
25983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25984 fi
25985 done
25986
25987 # For the awk script, D is an array of macro values keyed by name,
25988 # likewise P contains macro parameters if any. Preserve backslash
25989 # newline sequences.
25990
25991 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25992 sed -n '
25993 s/.\{148\}/&'"$ac_delim"'/g
25994 t rset
25995 :rset
25996 s/^[ ]*#[ ]*define[ ][ ]*/ /
25997 t def
25998 d
25999 :def
26000 s/\\$//
26001 t bsnl
26002 s/["\\]/\\&/g
26003 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26004 D["\1"]=" \3"/p
26005 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26006 d
26007 :bsnl
26008 s/["\\]/\\&/g
26009 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26010 D["\1"]=" \3\\\\\\n"\\/p
26011 t cont
26012 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26013 t cont
26014 d
26015 :cont
26016 n
26017 s/.\{148\}/&'"$ac_delim"'/g
26018 t clear
26019 :clear
26020 s/\\$//
26021 t bsnlc
26022 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26023 d
26024 :bsnlc
26025 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26026 b cont
26027 ' <confdefs.h | sed '
26028 s/'"$ac_delim"'/"\\\
26029 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26030
26031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26032 for (key in D) D_is_set[key] = 1
26033 FS = "\a"
26034 }
26035 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26036 line = \$ 0
26037 split(line, arg, " ")
26038 if (arg[1] == "#") {
26039 defundef = arg[2]
26040 mac1 = arg[3]
26041 } else {
26042 defundef = substr(arg[1], 2)
26043 mac1 = arg[2]
26044 }
26045 split(mac1, mac2, "(") #)
26046 macro = mac2[1]
26047 prefix = substr(line, 1, index(line, defundef) - 1)
26048 if (D_is_set[macro]) {
26049 # Preserve the white space surrounding the "#".
26050 print prefix "define", macro P[macro] D[macro]
26051 next
26052 } else {
26053 # Replace #undef with comments. This is necessary, for example,
26054 # in the case of _POSIX_SOURCE, which is predefined and required
26055 # on some systems where configure will not decide to define it.
26056 if (defundef == "undef") {
26057 print "/*", prefix defundef, macro, "*/"
26058 next
26059 }
26060 }
26061 }
26062 { print }
26063 _ACAWK
26064 _ACEOF
26065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26066 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26067 fi # test -n "$CONFIG_HEADERS"
26068
26069
26070 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26071 shift
26072 for ac_tag
26073 do
26074 case $ac_tag in
26075 :[FHLC]) ac_mode=$ac_tag; continue;;
26076 esac
26077 case $ac_mode$ac_tag in
26078 :[FHL]*:*);;
26079 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
26080 :[FH]-) ac_tag=-:-;;
26081 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26082 esac
26083 ac_save_IFS=$IFS
26084 IFS=:
26085 set x $ac_tag
26086 IFS=$ac_save_IFS
26087 shift
26088 ac_file=$1
26089 shift
26090
26091 case $ac_mode in
26092 :L) ac_source=$1;;
26093 :[FH])
26094 ac_file_inputs=
26095 for ac_f
26096 do
26097 case $ac_f in
26098 -) ac_f="$tmp/stdin";;
26099 *) # Look for the file first in the build tree, then in the source tree
26100 # (if the path is not absolute). The absolute path cannot be DOS-style,
26101 # because $ac_f cannot contain `:'.
26102 test -f "$ac_f" ||
26103 case $ac_f in
26104 [\\/$]*) false;;
26105 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26106 esac ||
26107 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
26108 esac
26109 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26110 as_fn_append ac_file_inputs " '$ac_f'"
26111 done
26112
26113 # Let's still pretend it is `configure' which instantiates (i.e., don't
26114 # use $as_me), people would be surprised to read:
26115 # /* config.h. Generated by config.status. */
26116 configure_input='Generated from '`
26117 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26118 `' by configure.'
26119 if test x"$ac_file" != x-; then
26120 configure_input="$ac_file. $configure_input"
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26122 $as_echo "$as_me: creating $ac_file" >&6;}
26123 fi
26124 # Neutralize special characters interpreted by sed in replacement strings.
26125 case $configure_input in #(
26126 *\&* | *\|* | *\\* )
26127 ac_sed_conf_input=`$as_echo "$configure_input" |
26128 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26129 *) ac_sed_conf_input=$configure_input;;
26130 esac
26131
26132 case $ac_tag in
26133 *:-:* | *:-) cat >"$tmp/stdin" \
26134 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26135 esac
26136 ;;
26137 esac
26138
26139 ac_dir=`$as_dirname -- "$ac_file" ||
26140 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26141 X"$ac_file" : 'X\(//\)[^/]' \| \
26142 X"$ac_file" : 'X\(//\)$' \| \
26143 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26144 $as_echo X"$ac_file" |
26145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26146 s//\1/
26147 q
26148 }
26149 /^X\(\/\/\)[^/].*/{
26150 s//\1/
26151 q
26152 }
26153 /^X\(\/\/\)$/{
26154 s//\1/
26155 q
26156 }
26157 /^X\(\/\).*/{
26158 s//\1/
26159 q
26160 }
26161 s/.*/./; q'`
26162 as_dir="$ac_dir"; as_fn_mkdir_p
26163 ac_builddir=.
26164
26165 case "$ac_dir" in
26166 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26167 *)
26168 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26169 # A ".." for each directory in $ac_dir_suffix.
26170 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26171 case $ac_top_builddir_sub in
26172 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26173 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26174 esac ;;
26175 esac
26176 ac_abs_top_builddir=$ac_pwd
26177 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26178 # for backward compatibility:
26179 ac_top_builddir=$ac_top_build_prefix
26180
26181 case $srcdir in
26182 .) # We are building in place.
26183 ac_srcdir=.
26184 ac_top_srcdir=$ac_top_builddir_sub
26185 ac_abs_top_srcdir=$ac_pwd ;;
26186 [\\/]* | ?:[\\/]* ) # Absolute name.
26187 ac_srcdir=$srcdir$ac_dir_suffix;
26188 ac_top_srcdir=$srcdir
26189 ac_abs_top_srcdir=$srcdir ;;
26190 *) # Relative name.
26191 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26192 ac_top_srcdir=$ac_top_build_prefix$srcdir
26193 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26194 esac
26195 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26196
26197
26198 case $ac_mode in
26199 :F)
26200 #
26201 # CONFIG_FILE
26202 #
26203
26204 case $INSTALL in
26205 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26206 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26207 esac
26208 ac_MKDIR_P=$MKDIR_P
26209 case $MKDIR_P in
26210 [\\/$]* | ?:[\\/]* ) ;;
26211 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26212 esac
26213 _ACEOF
26214
26215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26216 # If the template does not know about datarootdir, expand it.
26217 # FIXME: This hack should be removed a few years after 2.60.
26218 ac_datarootdir_hack=; ac_datarootdir_seen=
26219 ac_sed_dataroot='
26220 /datarootdir/ {
26221 p
26222 q
26223 }
26224 /@datadir@/p
26225 /@docdir@/p
26226 /@infodir@/p
26227 /@localedir@/p
26228 /@mandir@/p'
26229 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26230 *datarootdir*) ac_datarootdir_seen=yes;;
26231 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26233 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26234 _ACEOF
26235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26236 ac_datarootdir_hack='
26237 s&@datadir@&$datadir&g
26238 s&@docdir@&$docdir&g
26239 s&@infodir@&$infodir&g
26240 s&@localedir@&$localedir&g
26241 s&@mandir@&$mandir&g
26242 s&\\\${datarootdir}&$datarootdir&g' ;;
26243 esac
26244 _ACEOF
26245
26246 # Neutralize VPATH when `$srcdir' = `.'.
26247 # Shell code in configure.ac might set extrasub.
26248 # FIXME: do we really want to maintain this feature?
26249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26250 ac_sed_extra="$ac_vpsub
26251 $extrasub
26252 _ACEOF
26253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26254 :t
26255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26256 s|@configure_input@|$ac_sed_conf_input|;t t
26257 s&@top_builddir@&$ac_top_builddir_sub&;t t
26258 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26259 s&@srcdir@&$ac_srcdir&;t t
26260 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26261 s&@top_srcdir@&$ac_top_srcdir&;t t
26262 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26263 s&@builddir@&$ac_builddir&;t t
26264 s&@abs_builddir@&$ac_abs_builddir&;t t
26265 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26266 s&@INSTALL@&$ac_INSTALL&;t t
26267 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26268 $ac_datarootdir_hack
26269 "
26270 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26271 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26272
26273 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26274 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26275 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26277 which seems to be undefined. Please make sure it is defined" >&5
26278 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26279 which seems to be undefined. Please make sure it is defined" >&2;}
26280
26281 rm -f "$tmp/stdin"
26282 case $ac_file in
26283 -) cat "$tmp/out" && rm -f "$tmp/out";;
26284 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26285 esac \
26286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26287 ;;
26288 :H)
26289 #
26290 # CONFIG_HEADER
26291 #
26292 if test x"$ac_file" != x-; then
26293 {
26294 $as_echo "/* $configure_input */" \
26295 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26296 } >"$tmp/config.h" \
26297 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26298 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26300 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26301 else
26302 rm -f "$ac_file"
26303 mv "$tmp/config.h" "$ac_file" \
26304 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26305 fi
26306 else
26307 $as_echo "/* $configure_input */" \
26308 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26309 || as_fn_error $? "could not create -" "$LINENO" 5
26310 fi
26311 # Compute "$ac_file"'s index in $config_headers.
26312 _am_arg="$ac_file"
26313 _am_stamp_count=1
26314 for _am_header in $config_headers :; do
26315 case $_am_header in
26316 $_am_arg | $_am_arg:* )
26317 break ;;
26318 * )
26319 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26320 esac
26321 done
26322 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26323 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26324 X"$_am_arg" : 'X\(//\)[^/]' \| \
26325 X"$_am_arg" : 'X\(//\)$' \| \
26326 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26327 $as_echo X"$_am_arg" |
26328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26329 s//\1/
26330 q
26331 }
26332 /^X\(\/\/\)[^/].*/{
26333 s//\1/
26334 q
26335 }
26336 /^X\(\/\/\)$/{
26337 s//\1/
26338 q
26339 }
26340 /^X\(\/\).*/{
26341 s//\1/
26342 q
26343 }
26344 s/.*/./; q'`/stamp-h$_am_stamp_count
26345 ;;
26346
26347 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26348 $as_echo "$as_me: executing $ac_file commands" >&6;}
26349 ;;
26350 esac
26351
26352
26353 case $ac_file$ac_mode in
26354 "zfs_config.h":H)
26355 (mv zfs_config.h zfs_config.h.tmp &&
26356 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
26357 rm zfs_config.h.tmp) || exit 1 ;;
26358 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26359 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26360 # are listed without --file. Let's play safe and only enable the eval
26361 # if we detect the quoting.
26362 case $CONFIG_FILES in
26363 *\'*) eval set x "$CONFIG_FILES" ;;
26364 *) set x $CONFIG_FILES ;;
26365 esac
26366 shift
26367 for mf
26368 do
26369 # Strip MF so we end up with the name of the file.
26370 mf=`echo "$mf" | sed -e 's/:.*$//'`
26371 # Check whether this is an Automake generated Makefile or not.
26372 # We used to match only the files named `Makefile.in', but
26373 # some people rename them; so instead we look at the file content.
26374 # Grep'ing the first line is not enough: some people post-process
26375 # each Makefile.in and add a new line on top of each file to say so.
26376 # Grep'ing the whole file is not good either: AIX grep has a line
26377 # limit of 2048, but all sed's we know have understand at least 4000.
26378 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26379 dirpart=`$as_dirname -- "$mf" ||
26380 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26381 X"$mf" : 'X\(//\)[^/]' \| \
26382 X"$mf" : 'X\(//\)$' \| \
26383 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26384 $as_echo X"$mf" |
26385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26386 s//\1/
26387 q
26388 }
26389 /^X\(\/\/\)[^/].*/{
26390 s//\1/
26391 q
26392 }
26393 /^X\(\/\/\)$/{
26394 s//\1/
26395 q
26396 }
26397 /^X\(\/\).*/{
26398 s//\1/
26399 q
26400 }
26401 s/.*/./; q'`
26402 else
26403 continue
26404 fi
26405 # Extract the definition of DEPDIR, am__include, and am__quote
26406 # from the Makefile without running `make'.
26407 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26408 test -z "$DEPDIR" && continue
26409 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26410 test -z "am__include" && continue
26411 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26412 # When using ansi2knr, U may be empty or an underscore; expand it
26413 U=`sed -n 's/^U = //p' < "$mf"`
26414 # Find all dependency output files, they are included files with
26415 # $(DEPDIR) in their names. We invoke sed twice because it is the
26416 # simplest approach to changing $(DEPDIR) to its actual value in the
26417 # expansion.
26418 for file in `sed -n "
26419 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26420 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26421 # Make sure the directory exists.
26422 test -f "$dirpart/$file" && continue
26423 fdir=`$as_dirname -- "$file" ||
26424 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26425 X"$file" : 'X\(//\)[^/]' \| \
26426 X"$file" : 'X\(//\)$' \| \
26427 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26428 $as_echo X"$file" |
26429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26430 s//\1/
26431 q
26432 }
26433 /^X\(\/\/\)[^/].*/{
26434 s//\1/
26435 q
26436 }
26437 /^X\(\/\/\)$/{
26438 s//\1/
26439 q
26440 }
26441 /^X\(\/\).*/{
26442 s//\1/
26443 q
26444 }
26445 s/.*/./; q'`
26446 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26447 # echo "creating $dirpart/$file"
26448 echo '# dummy' > "$dirpart/$file"
26449 done
26450 done
26451 }
26452 ;;
26453 "libtool":C)
26454
26455 # See if we are running on zsh, and set the options which allow our
26456 # commands through without removal of \ escapes.
26457 if test -n "${ZSH_VERSION+set}" ; then
26458 setopt NO_GLOB_SUBST
26459 fi
26460
26461 cfgfile="${ofile}T"
26462 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26463 $RM "$cfgfile"
26464
26465 cat <<_LT_EOF >> "$cfgfile"
26466 #! $SHELL
26467
26468 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26469 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26470 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26471 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26472 #
26473 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26474 # 2006, 2007, 2008 Free Software Foundation, Inc.
26475 # Written by Gordon Matzigkeit, 1996
26476 #
26477 # This file is part of GNU Libtool.
26478 #
26479 # GNU Libtool is free software; you can redistribute it and/or
26480 # modify it under the terms of the GNU General Public License as
26481 # published by the Free Software Foundation; either version 2 of
26482 # the License, or (at your option) any later version.
26483 #
26484 # As a special exception to the GNU General Public License,
26485 # if you distribute this file as part of a program or library that
26486 # is built using GNU Libtool, you may include this file under the
26487 # same distribution terms that you use for the rest of that program.
26488 #
26489 # GNU Libtool is distributed in the hope that it will be useful,
26490 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26491 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26492 # GNU General Public License for more details.
26493 #
26494 # You should have received a copy of the GNU General Public License
26495 # along with GNU Libtool; see the file COPYING. If not, a copy
26496 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26497 # obtained by writing to the Free Software Foundation, Inc.,
26498 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26499
26500
26501 # The names of the tagged configurations supported by this script.
26502 available_tags=""
26503
26504 # ### BEGIN LIBTOOL CONFIG
26505
26506 # Which release of libtool.m4 was used?
26507 macro_version=$macro_version
26508 macro_revision=$macro_revision
26509
26510 # Whether or not to build shared libraries.
26511 build_libtool_libs=$enable_shared
26512
26513 # Whether or not to build static libraries.
26514 build_old_libs=$enable_static
26515
26516 # What type of objects to build.
26517 pic_mode=$pic_mode
26518
26519 # Whether or not to optimize for fast installation.
26520 fast_install=$enable_fast_install
26521
26522 # The host system.
26523 host_alias=$host_alias
26524 host=$host
26525 host_os=$host_os
26526
26527 # The build system.
26528 build_alias=$build_alias
26529 build=$build
26530 build_os=$build_os
26531
26532 # A sed program that does not truncate output.
26533 SED=$lt_SED
26534
26535 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26536 Xsed="\$SED -e 1s/^X//"
26537
26538 # A grep program that handles long lines.
26539 GREP=$lt_GREP
26540
26541 # An ERE matcher.
26542 EGREP=$lt_EGREP
26543
26544 # A literal string matcher.
26545 FGREP=$lt_FGREP
26546
26547 # A BSD- or MS-compatible name lister.
26548 NM=$lt_NM
26549
26550 # Whether we need soft or hard links.
26551 LN_S=$lt_LN_S
26552
26553 # What is the maximum length of a command?
26554 max_cmd_len=$max_cmd_len
26555
26556 # Object file suffix (normally "o").
26557 objext=$ac_objext
26558
26559 # Executable file suffix (normally "").
26560 exeext=$exeext
26561
26562 # whether the shell understands "unset".
26563 lt_unset=$lt_unset
26564
26565 # turn spaces into newlines.
26566 SP2NL=$lt_lt_SP2NL
26567
26568 # turn newlines into spaces.
26569 NL2SP=$lt_lt_NL2SP
26570
26571 # How to create reloadable object files.
26572 reload_flag=$lt_reload_flag
26573 reload_cmds=$lt_reload_cmds
26574
26575 # An object symbol dumper.
26576 OBJDUMP=$lt_OBJDUMP
26577
26578 # Method to check whether dependent libraries are shared objects.
26579 deplibs_check_method=$lt_deplibs_check_method
26580
26581 # Command to use when deplibs_check_method == "file_magic".
26582 file_magic_cmd=$lt_file_magic_cmd
26583
26584 # The archiver.
26585 AR=$lt_AR
26586 AR_FLAGS=$lt_AR_FLAGS
26587
26588 # A symbol stripping program.
26589 STRIP=$lt_STRIP
26590
26591 # Commands used to install an old-style archive.
26592 RANLIB=$lt_RANLIB
26593 old_postinstall_cmds=$lt_old_postinstall_cmds
26594 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26595
26596 # A C compiler.
26597 LTCC=$lt_CC
26598
26599 # LTCC compiler flags.
26600 LTCFLAGS=$lt_CFLAGS
26601
26602 # Take the output of nm and produce a listing of raw symbols and C names.
26603 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26604
26605 # Transform the output of nm in a proper C declaration.
26606 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26607
26608 # Transform the output of nm in a C name address pair.
26609 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26610
26611 # Transform the output of nm in a C name address pair when lib prefix is needed.
26612 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26613
26614 # The name of the directory that contains temporary libtool files.
26615 objdir=$objdir
26616
26617 # Shell to use when invoking shell scripts.
26618 SHELL=$lt_SHELL
26619
26620 # An echo program that does not interpret backslashes.
26621 ECHO=$lt_ECHO
26622
26623 # Used to examine libraries when file_magic_cmd begins with "file".
26624 MAGIC_CMD=$MAGIC_CMD
26625
26626 # Must we lock files when doing compilation?
26627 need_locks=$lt_need_locks
26628
26629 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26630 DSYMUTIL=$lt_DSYMUTIL
26631
26632 # Tool to change global to local symbols on Mac OS X.
26633 NMEDIT=$lt_NMEDIT
26634
26635 # Tool to manipulate fat objects and archives on Mac OS X.
26636 LIPO=$lt_LIPO
26637
26638 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26639 OTOOL=$lt_OTOOL
26640
26641 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26642 OTOOL64=$lt_OTOOL64
26643
26644 # Old archive suffix (normally "a").
26645 libext=$libext
26646
26647 # Shared library suffix (normally ".so").
26648 shrext_cmds=$lt_shrext_cmds
26649
26650 # The commands to extract the exported symbol list from a shared archive.
26651 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26652
26653 # Variables whose values should be saved in libtool wrapper scripts and
26654 # restored at link time.
26655 variables_saved_for_relink=$lt_variables_saved_for_relink
26656
26657 # Do we need the "lib" prefix for modules?
26658 need_lib_prefix=$need_lib_prefix
26659
26660 # Do we need a version for libraries?
26661 need_version=$need_version
26662
26663 # Library versioning type.
26664 version_type=$version_type
26665
26666 # Shared library runtime path variable.
26667 runpath_var=$runpath_var
26668
26669 # Shared library path variable.
26670 shlibpath_var=$shlibpath_var
26671
26672 # Is shlibpath searched before the hard-coded library search path?
26673 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26674
26675 # Format of library name prefix.
26676 libname_spec=$lt_libname_spec
26677
26678 # List of archive names. First name is the real one, the rest are links.
26679 # The last name is the one that the linker finds with -lNAME
26680 library_names_spec=$lt_library_names_spec
26681
26682 # The coded name of the library, if different from the real name.
26683 soname_spec=$lt_soname_spec
26684
26685 # Command to use after installation of a shared archive.
26686 postinstall_cmds=$lt_postinstall_cmds
26687
26688 # Command to use after uninstallation of a shared archive.
26689 postuninstall_cmds=$lt_postuninstall_cmds
26690
26691 # Commands used to finish a libtool library installation in a directory.
26692 finish_cmds=$lt_finish_cmds
26693
26694 # As "finish_cmds", except a single script fragment to be evaled but
26695 # not shown.
26696 finish_eval=$lt_finish_eval
26697
26698 # Whether we should hardcode library paths into libraries.
26699 hardcode_into_libs=$hardcode_into_libs
26700
26701 # Compile-time system search path for libraries.
26702 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26703
26704 # Run-time system search path for libraries.
26705 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26706
26707 # Whether dlopen is supported.
26708 dlopen_support=$enable_dlopen
26709
26710 # Whether dlopen of programs is supported.
26711 dlopen_self=$enable_dlopen_self
26712
26713 # Whether dlopen of statically linked programs is supported.
26714 dlopen_self_static=$enable_dlopen_self_static
26715
26716 # Commands to strip libraries.
26717 old_striplib=$lt_old_striplib
26718 striplib=$lt_striplib
26719
26720
26721 # The linker used to build libraries.
26722 LD=$lt_LD
26723
26724 # Commands used to build an old-style archive.
26725 old_archive_cmds=$lt_old_archive_cmds
26726
26727 # A language specific compiler.
26728 CC=$lt_compiler
26729
26730 # Is the compiler the GNU compiler?
26731 with_gcc=$GCC
26732
26733 # Compiler flag to turn off builtin functions.
26734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26735
26736 # How to pass a linker flag through the compiler.
26737 wl=$lt_lt_prog_compiler_wl
26738
26739 # Additional compiler flags for building library objects.
26740 pic_flag=$lt_lt_prog_compiler_pic
26741
26742 # Compiler flag to prevent dynamic linking.
26743 link_static_flag=$lt_lt_prog_compiler_static
26744
26745 # Does compiler simultaneously support -c and -o options?
26746 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26747
26748 # Whether or not to add -lc for building shared libraries.
26749 build_libtool_need_lc=$archive_cmds_need_lc
26750
26751 # Whether or not to disallow shared libs when runtime libs are static.
26752 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26753
26754 # Compiler flag to allow reflexive dlopens.
26755 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26756
26757 # Compiler flag to generate shared objects directly from archives.
26758 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26759
26760 # Whether the compiler copes with passing no objects directly.
26761 compiler_needs_object=$lt_compiler_needs_object
26762
26763 # Create an old-style archive from a shared archive.
26764 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26765
26766 # Create a temporary old-style archive to link instead of a shared archive.
26767 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26768
26769 # Commands used to build a shared archive.
26770 archive_cmds=$lt_archive_cmds
26771 archive_expsym_cmds=$lt_archive_expsym_cmds
26772
26773 # Commands used to build a loadable module if different from building
26774 # a shared archive.
26775 module_cmds=$lt_module_cmds
26776 module_expsym_cmds=$lt_module_expsym_cmds
26777
26778 # Whether we are building with GNU ld or not.
26779 with_gnu_ld=$lt_with_gnu_ld
26780
26781 # Flag that allows shared libraries with undefined symbols to be built.
26782 allow_undefined_flag=$lt_allow_undefined_flag
26783
26784 # Flag that enforces no undefined symbols.
26785 no_undefined_flag=$lt_no_undefined_flag
26786
26787 # Flag to hardcode \$libdir into a binary during linking.
26788 # This must work even if \$libdir does not exist
26789 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26790
26791 # If ld is used when linking, flag to hardcode \$libdir into a binary
26792 # during linking. This must work even if \$libdir does not exist.
26793 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26794
26795 # Whether we need a single "-rpath" flag with a separated argument.
26796 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26797
26798 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26799 # DIR into the resulting binary.
26800 hardcode_direct=$hardcode_direct
26801
26802 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26803 # DIR into the resulting binary and the resulting library dependency is
26804 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26805 # library is relocated.
26806 hardcode_direct_absolute=$hardcode_direct_absolute
26807
26808 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26809 # into the resulting binary.
26810 hardcode_minus_L=$hardcode_minus_L
26811
26812 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26813 # into the resulting binary.
26814 hardcode_shlibpath_var=$hardcode_shlibpath_var
26815
26816 # Set to "yes" if building a shared library automatically hardcodes DIR
26817 # into the library and all subsequent libraries and executables linked
26818 # against it.
26819 hardcode_automatic=$hardcode_automatic
26820
26821 # Set to yes if linker adds runtime paths of dependent libraries
26822 # to runtime path list.
26823 inherit_rpath=$inherit_rpath
26824
26825 # Whether libtool must link a program against all its dependency libraries.
26826 link_all_deplibs=$link_all_deplibs
26827
26828 # Fix the shell variable \$srcfile for the compiler.
26829 fix_srcfile_path=$lt_fix_srcfile_path
26830
26831 # Set to "yes" if exported symbols are required.
26832 always_export_symbols=$always_export_symbols
26833
26834 # The commands to list exported symbols.
26835 export_symbols_cmds=$lt_export_symbols_cmds
26836
26837 # Symbols that should not be listed in the preloaded symbols.
26838 exclude_expsyms=$lt_exclude_expsyms
26839
26840 # Symbols that must always be exported.
26841 include_expsyms=$lt_include_expsyms
26842
26843 # Commands necessary for linking programs (against libraries) with templates.
26844 prelink_cmds=$lt_prelink_cmds
26845
26846 # Specify filename containing input files.
26847 file_list_spec=$lt_file_list_spec
26848
26849 # How to hardcode a shared library path into an executable.
26850 hardcode_action=$hardcode_action
26851
26852 # ### END LIBTOOL CONFIG
26853
26854 _LT_EOF
26855
26856 case $host_os in
26857 aix3*)
26858 cat <<\_LT_EOF >> "$cfgfile"
26859 # AIX sometimes has problems with the GCC collect2 program. For some
26860 # reason, if we set the COLLECT_NAMES environment variable, the problems
26861 # vanish in a puff of smoke.
26862 if test "X${COLLECT_NAMES+set}" != Xset; then
26863 COLLECT_NAMES=
26864 export COLLECT_NAMES
26865 fi
26866 _LT_EOF
26867 ;;
26868 esac
26869
26870
26871 ltmain="$ac_aux_dir/ltmain.sh"
26872
26873
26874 # We use sed instead of cat because bash on DJGPP gets confused if
26875 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26876 # text mode, it properly converts lines to CR/LF. This bash problem
26877 # is reportedly fixed, but why not run on old versions too?
26878 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
26879 || (rm -f "$cfgfile"; exit 1)
26880
26881 case $xsi_shell in
26882 yes)
26883 cat << \_LT_EOF >> "$cfgfile"
26884
26885 # func_dirname file append nondir_replacement
26886 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26887 # otherwise set result to NONDIR_REPLACEMENT.
26888 func_dirname ()
26889 {
26890 case ${1} in
26891 */*) func_dirname_result="${1%/*}${2}" ;;
26892 * ) func_dirname_result="${3}" ;;
26893 esac
26894 }
26895
26896 # func_basename file
26897 func_basename ()
26898 {
26899 func_basename_result="${1##*/}"
26900 }
26901
26902 # func_dirname_and_basename file append nondir_replacement
26903 # perform func_basename and func_dirname in a single function
26904 # call:
26905 # dirname: Compute the dirname of FILE. If nonempty,
26906 # add APPEND to the result, otherwise set result
26907 # to NONDIR_REPLACEMENT.
26908 # value returned in "$func_dirname_result"
26909 # basename: Compute filename of FILE.
26910 # value retuned in "$func_basename_result"
26911 # Implementation must be kept synchronized with func_dirname
26912 # and func_basename. For efficiency, we do not delegate to
26913 # those functions but instead duplicate the functionality here.
26914 func_dirname_and_basename ()
26915 {
26916 case ${1} in
26917 */*) func_dirname_result="${1%/*}${2}" ;;
26918 * ) func_dirname_result="${3}" ;;
26919 esac
26920 func_basename_result="${1##*/}"
26921 }
26922
26923 # func_stripname prefix suffix name
26924 # strip PREFIX and SUFFIX off of NAME.
26925 # PREFIX and SUFFIX must not contain globbing or regex special
26926 # characters, hashes, percent signs, but SUFFIX may contain a leading
26927 # dot (in which case that matches only a dot).
26928 func_stripname ()
26929 {
26930 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
26931 # positional parameters, so assign one to ordinary parameter first.
26932 func_stripname_result=${3}
26933 func_stripname_result=${func_stripname_result#"${1}"}
26934 func_stripname_result=${func_stripname_result%"${2}"}
26935 }
26936
26937 # func_opt_split
26938 func_opt_split ()
26939 {
26940 func_opt_split_opt=${1%%=*}
26941 func_opt_split_arg=${1#*=}
26942 }
26943
26944 # func_lo2o object
26945 func_lo2o ()
26946 {
26947 case ${1} in
26948 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
26949 *) func_lo2o_result=${1} ;;
26950 esac
26951 }
26952
26953 # func_xform libobj-or-source
26954 func_xform ()
26955 {
26956 func_xform_result=${1%.*}.lo
26957 }
26958
26959 # func_arith arithmetic-term...
26960 func_arith ()
26961 {
26962 func_arith_result=$(( $* ))
26963 }
26964
26965 # func_len string
26966 # STRING may not start with a hyphen.
26967 func_len ()
26968 {
26969 func_len_result=${#1}
26970 }
26971
26972 _LT_EOF
26973 ;;
26974 *) # Bourne compatible functions.
26975 cat << \_LT_EOF >> "$cfgfile"
26976
26977 # func_dirname file append nondir_replacement
26978 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26979 # otherwise set result to NONDIR_REPLACEMENT.
26980 func_dirname ()
26981 {
26982 # Extract subdirectory from the argument.
26983 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
26984 if test "X$func_dirname_result" = "X${1}"; then
26985 func_dirname_result="${3}"
26986 else
26987 func_dirname_result="$func_dirname_result${2}"
26988 fi
26989 }
26990
26991 # func_basename file
26992 func_basename ()
26993 {
26994 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
26995 }
26996
26997
26998 # func_stripname prefix suffix name
26999 # strip PREFIX and SUFFIX off of NAME.
27000 # PREFIX and SUFFIX must not contain globbing or regex special
27001 # characters, hashes, percent signs, but SUFFIX may contain a leading
27002 # dot (in which case that matches only a dot).
27003 # func_strip_suffix prefix name
27004 func_stripname ()
27005 {
27006 case ${2} in
27007 .*) func_stripname_result=`$ECHO "X${3}" \
27008 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27009 *) func_stripname_result=`$ECHO "X${3}" \
27010 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27011 esac
27012 }
27013
27014 # sed scripts:
27015 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27016 my_sed_long_arg='1s/^-[^=]*=//'
27017
27018 # func_opt_split
27019 func_opt_split ()
27020 {
27021 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27022 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27023 }
27024
27025 # func_lo2o object
27026 func_lo2o ()
27027 {
27028 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27029 }
27030
27031 # func_xform libobj-or-source
27032 func_xform ()
27033 {
27034 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27035 }
27036
27037 # func_arith arithmetic-term...
27038 func_arith ()
27039 {
27040 func_arith_result=`expr "$@"`
27041 }
27042
27043 # func_len string
27044 # STRING may not start with a hyphen.
27045 func_len ()
27046 {
27047 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27048 }
27049
27050 _LT_EOF
27051 esac
27052
27053 case $lt_shell_append in
27054 yes)
27055 cat << \_LT_EOF >> "$cfgfile"
27056
27057 # func_append var value
27058 # Append VALUE to the end of shell variable VAR.
27059 func_append ()
27060 {
27061 eval "$1+=\$2"
27062 }
27063 _LT_EOF
27064 ;;
27065 *)
27066 cat << \_LT_EOF >> "$cfgfile"
27067
27068 # func_append var value
27069 # Append VALUE to the end of shell variable VAR.
27070 func_append ()
27071 {
27072 eval "$1=\$$1\$2"
27073 }
27074
27075 _LT_EOF
27076 ;;
27077 esac
27078
27079
27080 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27081 || (rm -f "$cfgfile"; exit 1)
27082
27083 mv -f "$cfgfile" "$ofile" ||
27084 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27085 chmod +x "$ofile"
27086
27087 ;;
27088
27089 esac
27090 done # for ac_tag
27091
27092
27093 as_fn_exit 0
27094 _ACEOF
27095 ac_clean_files=$ac_clean_files_save
27096
27097 test $ac_write_fail = 0 ||
27098 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27099
27100
27101 # configure is writing to config.log, and then calls config.status.
27102 # config.status does its own redirection, appending to config.log.
27103 # Unfortunately, on DOS this fails, as config.log is still kept open
27104 # by configure, so config.status won't be able to write to it; its
27105 # output is simply discarded. So we exec the FD to /dev/null,
27106 # effectively closing config.log, so it can be properly (re)opened and
27107 # appended to by config.status. When coming back to configure, we
27108 # need to make the FD available again.
27109 if test "$no_create" != yes; then
27110 ac_cs_success=:
27111 ac_config_status_args=
27112 test "$silent" = yes &&
27113 ac_config_status_args="$ac_config_status_args --quiet"
27114 exec 5>/dev/null
27115 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27116 exec 5>>config.log
27117 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27118 # would make configure fail if this is the last instruction.
27119 $ac_cs_success || as_fn_exit 1
27120 fi
27121 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27123 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27124 fi
27125