]> git.proxmox.com Git - mirror_zfs-debian.git/blob - configure
Linux 3.5 compat, eops->encode_fh() takes inodes
[mirror_zfs-debian.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604 $*
605 _LT_EOF
606 exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 # Factoring default headers for most tests.
751 ac_includes_default="\
752 #include <stdio.h>
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
755 #endif
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
758 #endif
759 #ifdef STDC_HEADERS
760 # include <stdlib.h>
761 # include <stddef.h>
762 #else
763 # ifdef HAVE_STDLIB_H
764 # include <stdlib.h>
765 # endif
766 #endif
767 #ifdef HAVE_STRING_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769 # include <memory.h>
770 # endif
771 # include <string.h>
772 #endif
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
775 #endif
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
778 #endif
779 #ifdef HAVE_STDINT_H
780 # include <stdint.h>
781 #endif
782 #ifdef HAVE_UNISTD_H
783 # include <unistd.h>
784 #endif"
785
786 ac_subst_vars='am__EXEEXT_FALSE
787 am__EXEEXT_TRUE
788 LTLIBOBJS
789 LIBOBJS
790 DEBUG_DMU_TX
791 DEBUG_ZFS
792 DEBUG_STACKFLAGS
793 DEBUG_CFLAGS
794 CONFIG_KERNEL_FALSE
795 CONFIG_KERNEL_TRUE
796 CONFIG_USER_FALSE
797 CONFIG_USER_TRUE
798 FRAME_LARGER_THAN
799 LIBSELINUX
800 LIBBLKID
801 LIBUUID
802 ZLIB
803 udevruledir
804 udevdir
805 KERNELCPPFLAGS
806 KERNELMAKE_PARAMS
807 SPL_SYMBOLS
808 SPL_VERSION
809 SPL_OBJ
810 SPL
811 LINUX_SYMBOLS
812 LINUX_VERSION
813 LINUX_OBJ
814 LINUX
815 NO_UNUSED_BUT_SET_VARIABLE
816 ZFS_CONFIG
817 TARGET_ASM_DIR
818 MAKEPKG_VERSION
819 MAKEPKG
820 HAVE_MAKEPKG
821 PACMAN_VERSION
822 PACMAN
823 HAVE_PACMAN
824 ALIEN_VERSION
825 ALIEN
826 HAVE_ALIEN
827 DPKGBUILD_VERSION
828 DPKGBUILD
829 HAVE_DPKGBUILD
830 DPKG_VERSION
831 DPKG
832 HAVE_DPKG
833 RPMBUILD_VERSION
834 RPMBUILD
835 HAVE_RPMBUILD
836 RPM_VERSION
837 RPM
838 HAVE_RPM
839 DEFAULT_INIT_SCRIPT
840 DEFAULT_INIT_DIR
841 DEFAULT_PACKAGE
842 VENDOR
843 am__fastdepCCAS_FALSE
844 am__fastdepCCAS_TRUE
845 CCASDEPMODE
846 CCASFLAGS
847 CCAS
848 CPP
849 OTOOL64
850 OTOOL
851 LIPO
852 NMEDIT
853 DSYMUTIL
854 lt_ECHO
855 RANLIB
856 AR
857 OBJDUMP
858 LN_S
859 NM
860 ac_ct_DUMPBIN
861 DUMPBIN
862 LD
863 FGREP
864 EGREP
865 GREP
866 SED
867 LIBTOOL
868 am__fastdepCC_FALSE
869 am__fastdepCC_TRUE
870 CCDEPMODE
871 AMDEPBACKSLASH
872 AMDEP_FALSE
873 AMDEP_TRUE
874 am__quote
875 am__include
876 DEPDIR
877 OBJEXT
878 EXEEXT
879 ac_ct_CC
880 CPPFLAGS
881 LDFLAGS
882 CFLAGS
883 CC
884 am__untar
885 am__tar
886 AMTAR
887 am__leading_dot
888 SET_MAKE
889 AWK
890 mkdir_p
891 MKDIR_P
892 INSTALL_STRIP_PROGRAM
893 STRIP
894 install_sh
895 MAKEINFO
896 AUTOHEADER
897 AUTOMAKE
898 AUTOCONF
899 ACLOCAL
900 VERSION
901 PACKAGE
902 CYGPATH_W
903 am__isrc
904 INSTALL_DATA
905 INSTALL_SCRIPT
906 INSTALL_PROGRAM
907 AM_BACKSLASH
908 AM_DEFAULT_VERBOSITY
909 MAINT
910 MAINTAINER_MODE_FALSE
911 MAINTAINER_MODE_TRUE
912 target_os
913 target_vendor
914 target_cpu
915 target
916 host_os
917 host_vendor
918 host_cpu
919 host
920 build_os
921 build_vendor
922 build_cpu
923 build
924 ZFS_META_LT_AGE
925 ZFS_META_LT_REVISION
926 ZFS_META_LT_CURRENT
927 ZFS_META_AUTHOR
928 ZFS_META_DATA
929 ZFS_META_ALIAS
930 ZFS_META_LICENSE
931 ZFS_META_RELEASE
932 ZFS_META_VERSION
933 ZFS_META_NAME
934 target_alias
935 host_alias
936 build_alias
937 LIBS
938 ECHO_T
939 ECHO_N
940 ECHO_C
941 DEFS
942 mandir
943 localedir
944 libdir
945 psdir
946 pdfdir
947 dvidir
948 htmldir
949 infodir
950 docdir
951 oldincludedir
952 includedir
953 localstatedir
954 sharedstatedir
955 sysconfdir
956 datadir
957 datarootdir
958 libexecdir
959 sbindir
960 bindir
961 program_transform_name
962 prefix
963 exec_prefix
964 PACKAGE_BUGREPORT
965 PACKAGE_STRING
966 PACKAGE_VERSION
967 PACKAGE_TARNAME
968 PACKAGE_NAME
969 PATH_SEPARATOR
970 SHELL'
971 ac_subst_files=''
972 ac_user_opts='
973 enable_option_checking
974 enable_maintainer_mode
975 enable_silent_rules
976 enable_dependency_tracking
977 enable_shared
978 enable_static
979 with_pic
980 enable_fast_install
981 with_gnu_ld
982 enable_libtool_lock
983 with_config
984 with_linux
985 with_linux_obj
986 with_spl
987 with_spl_obj
988 with_udevdir
989 with_udevruledir
990 with_blkid
991 with_selinux
992 enable_debug
993 enable_debug_dmu_tx
994 '
995 ac_precious_vars='build_alias
996 host_alias
997 target_alias
998 CC
999 CFLAGS
1000 LDFLAGS
1001 LIBS
1002 CPPFLAGS
1003 CPP
1004 CCAS
1005 CCASFLAGS'
1006
1007
1008 # Initialize some variables set by options.
1009 ac_init_help=
1010 ac_init_version=false
1011 ac_unrecognized_opts=
1012 ac_unrecognized_sep=
1013 # The variables have the same names as the options, with
1014 # dashes changed to underlines.
1015 cache_file=/dev/null
1016 exec_prefix=NONE
1017 no_create=
1018 no_recursion=
1019 prefix=NONE
1020 program_prefix=NONE
1021 program_suffix=NONE
1022 program_transform_name=s,x,x,
1023 silent=
1024 site=
1025 srcdir=
1026 verbose=
1027 x_includes=NONE
1028 x_libraries=NONE
1029
1030 # Installation directory options.
1031 # These are left unexpanded so users can "make install exec_prefix=/foo"
1032 # and all the variables that are supposed to be based on exec_prefix
1033 # by default will actually change.
1034 # Use braces instead of parens because sh, perl, etc. also accept them.
1035 # (The list follows the same order as the GNU Coding Standards.)
1036 bindir='${exec_prefix}/bin'
1037 sbindir='${exec_prefix}/sbin'
1038 libexecdir='${exec_prefix}/libexec'
1039 datarootdir='${prefix}/share'
1040 datadir='${datarootdir}'
1041 sysconfdir='${prefix}/etc'
1042 sharedstatedir='${prefix}/com'
1043 localstatedir='${prefix}/var'
1044 includedir='${prefix}/include'
1045 oldincludedir='/usr/include'
1046 docdir='${datarootdir}/doc/${PACKAGE}'
1047 infodir='${datarootdir}/info'
1048 htmldir='${docdir}'
1049 dvidir='${docdir}'
1050 pdfdir='${docdir}'
1051 psdir='${docdir}'
1052 libdir='${exec_prefix}/lib'
1053 localedir='${datarootdir}/locale'
1054 mandir='${datarootdir}/man'
1055
1056 ac_prev=
1057 ac_dashdash=
1058 for ac_option
1059 do
1060 # If the previous option needs an argument, assign it.
1061 if test -n "$ac_prev"; then
1062 eval $ac_prev=\$ac_option
1063 ac_prev=
1064 continue
1065 fi
1066
1067 case $ac_option in
1068 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1069 *) ac_optarg=yes ;;
1070 esac
1071
1072 # Accept the important Cygnus configure options, so we can diagnose typos.
1073
1074 case $ac_dashdash$ac_option in
1075 --)
1076 ac_dashdash=yes ;;
1077
1078 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1079 ac_prev=bindir ;;
1080 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1081 bindir=$ac_optarg ;;
1082
1083 -build | --build | --buil | --bui | --bu)
1084 ac_prev=build_alias ;;
1085 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1086 build_alias=$ac_optarg ;;
1087
1088 -cache-file | --cache-file | --cache-fil | --cache-fi \
1089 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1090 ac_prev=cache_file ;;
1091 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1092 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1093 cache_file=$ac_optarg ;;
1094
1095 --config-cache | -C)
1096 cache_file=config.cache ;;
1097
1098 -datadir | --datadir | --datadi | --datad)
1099 ac_prev=datadir ;;
1100 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1101 datadir=$ac_optarg ;;
1102
1103 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1104 | --dataroo | --dataro | --datar)
1105 ac_prev=datarootdir ;;
1106 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1107 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1108 datarootdir=$ac_optarg ;;
1109
1110 -disable-* | --disable-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120 "enable_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval enable_$ac_useropt=no ;;
1126
1127 -docdir | --docdir | --docdi | --doc | --do)
1128 ac_prev=docdir ;;
1129 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1130 docdir=$ac_optarg ;;
1131
1132 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1133 ac_prev=dvidir ;;
1134 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1135 dvidir=$ac_optarg ;;
1136
1137 -enable-* | --enable-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "enable_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval enable_$ac_useropt=\$ac_optarg ;;
1153
1154 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1155 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1156 | --exec | --exe | --ex)
1157 ac_prev=exec_prefix ;;
1158 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1159 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1160 | --exec=* | --exe=* | --ex=*)
1161 exec_prefix=$ac_optarg ;;
1162
1163 -gas | --gas | --ga | --g)
1164 # Obsolete; use --with-gas.
1165 with_gas=yes ;;
1166
1167 -help | --help | --hel | --he | -h)
1168 ac_init_help=long ;;
1169 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1170 ac_init_help=recursive ;;
1171 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1172 ac_init_help=short ;;
1173
1174 -host | --host | --hos | --ho)
1175 ac_prev=host_alias ;;
1176 -host=* | --host=* | --hos=* | --ho=*)
1177 host_alias=$ac_optarg ;;
1178
1179 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1180 ac_prev=htmldir ;;
1181 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1182 | --ht=*)
1183 htmldir=$ac_optarg ;;
1184
1185 -includedir | --includedir | --includedi | --included | --include \
1186 | --includ | --inclu | --incl | --inc)
1187 ac_prev=includedir ;;
1188 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1189 | --includ=* | --inclu=* | --incl=* | --inc=*)
1190 includedir=$ac_optarg ;;
1191
1192 -infodir | --infodir | --infodi | --infod | --info | --inf)
1193 ac_prev=infodir ;;
1194 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1195 infodir=$ac_optarg ;;
1196
1197 -libdir | --libdir | --libdi | --libd)
1198 ac_prev=libdir ;;
1199 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1200 libdir=$ac_optarg ;;
1201
1202 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1203 | --libexe | --libex | --libe)
1204 ac_prev=libexecdir ;;
1205 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1206 | --libexe=* | --libex=* | --libe=*)
1207 libexecdir=$ac_optarg ;;
1208
1209 -localedir | --localedir | --localedi | --localed | --locale)
1210 ac_prev=localedir ;;
1211 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1212 localedir=$ac_optarg ;;
1213
1214 -localstatedir | --localstatedir | --localstatedi | --localstated \
1215 | --localstate | --localstat | --localsta | --localst | --locals)
1216 ac_prev=localstatedir ;;
1217 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1218 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1219 localstatedir=$ac_optarg ;;
1220
1221 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1222 ac_prev=mandir ;;
1223 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1224 mandir=$ac_optarg ;;
1225
1226 -nfp | --nfp | --nf)
1227 # Obsolete; use --without-fp.
1228 with_fp=no ;;
1229
1230 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1231 | --no-cr | --no-c | -n)
1232 no_create=yes ;;
1233
1234 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1235 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1236 no_recursion=yes ;;
1237
1238 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1239 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1240 | --oldin | --oldi | --old | --ol | --o)
1241 ac_prev=oldincludedir ;;
1242 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1243 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1244 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1245 oldincludedir=$ac_optarg ;;
1246
1247 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1248 ac_prev=prefix ;;
1249 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1250 prefix=$ac_optarg ;;
1251
1252 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1253 | --program-pre | --program-pr | --program-p)
1254 ac_prev=program_prefix ;;
1255 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1256 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1257 program_prefix=$ac_optarg ;;
1258
1259 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1260 | --program-suf | --program-su | --program-s)
1261 ac_prev=program_suffix ;;
1262 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1263 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1264 program_suffix=$ac_optarg ;;
1265
1266 -program-transform-name | --program-transform-name \
1267 | --program-transform-nam | --program-transform-na \
1268 | --program-transform-n | --program-transform- \
1269 | --program-transform | --program-transfor \
1270 | --program-transfo | --program-transf \
1271 | --program-trans | --program-tran \
1272 | --progr-tra | --program-tr | --program-t)
1273 ac_prev=program_transform_name ;;
1274 -program-transform-name=* | --program-transform-name=* \
1275 | --program-transform-nam=* | --program-transform-na=* \
1276 | --program-transform-n=* | --program-transform-=* \
1277 | --program-transform=* | --program-transfor=* \
1278 | --program-transfo=* | --program-transf=* \
1279 | --program-trans=* | --program-tran=* \
1280 | --progr-tra=* | --program-tr=* | --program-t=*)
1281 program_transform_name=$ac_optarg ;;
1282
1283 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1284 ac_prev=pdfdir ;;
1285 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1286 pdfdir=$ac_optarg ;;
1287
1288 -psdir | --psdir | --psdi | --psd | --ps)
1289 ac_prev=psdir ;;
1290 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1291 psdir=$ac_optarg ;;
1292
1293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1294 | -silent | --silent | --silen | --sile | --sil)
1295 silent=yes ;;
1296
1297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1298 ac_prev=sbindir ;;
1299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1300 | --sbi=* | --sb=*)
1301 sbindir=$ac_optarg ;;
1302
1303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1305 | --sharedst | --shareds | --shared | --share | --shar \
1306 | --sha | --sh)
1307 ac_prev=sharedstatedir ;;
1308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1311 | --sha=* | --sh=*)
1312 sharedstatedir=$ac_optarg ;;
1313
1314 -site | --site | --sit)
1315 ac_prev=site ;;
1316 -site=* | --site=* | --sit=*)
1317 site=$ac_optarg ;;
1318
1319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1320 ac_prev=srcdir ;;
1321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1322 srcdir=$ac_optarg ;;
1323
1324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1325 | --syscon | --sysco | --sysc | --sys | --sy)
1326 ac_prev=sysconfdir ;;
1327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1329 sysconfdir=$ac_optarg ;;
1330
1331 -target | --target | --targe | --targ | --tar | --ta | --t)
1332 ac_prev=target_alias ;;
1333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1334 target_alias=$ac_optarg ;;
1335
1336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1337 verbose=yes ;;
1338
1339 -version | --version | --versio | --versi | --vers | -V)
1340 ac_init_version=: ;;
1341
1342 -with-* | --with-*)
1343 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1347 { (exit 1); exit 1; }; }
1348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1351 *"
1352 "with_$ac_useropt"
1353 "*) ;;
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1356 esac
1357 eval with_$ac_useropt=\$ac_optarg ;;
1358
1359 -without-* | --without-*)
1360 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1361 # Reject names that are not valid shell variable names.
1362 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1363 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1364 { (exit 1); exit 1; }; }
1365 ac_useropt_orig=$ac_useropt
1366 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367 case $ac_user_opts in
1368 *"
1369 "with_$ac_useropt"
1370 "*) ;;
1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1372 ac_unrecognized_sep=', ';;
1373 esac
1374 eval with_$ac_useropt=no ;;
1375
1376 --x)
1377 # Obsolete; use --with-x.
1378 with_x=yes ;;
1379
1380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1381 | --x-incl | --x-inc | --x-in | --x-i)
1382 ac_prev=x_includes ;;
1383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1385 x_includes=$ac_optarg ;;
1386
1387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1389 ac_prev=x_libraries ;;
1390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1392 x_libraries=$ac_optarg ;;
1393
1394 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1395 Try \`$0 --help' for more information." >&2
1396 { (exit 1); exit 1; }; }
1397 ;;
1398
1399 *=*)
1400 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1401 # Reject names that are not valid shell variable names.
1402 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1403 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1404 { (exit 1); exit 1; }; }
1405 eval $ac_envvar=\$ac_optarg
1406 export $ac_envvar ;;
1407
1408 *)
1409 # FIXME: should be removed in autoconf 3.0.
1410 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1411 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1412 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1413 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1414 ;;
1415
1416 esac
1417 done
1418
1419 if test -n "$ac_prev"; then
1420 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1421 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1422 { (exit 1); exit 1; }; }
1423 fi
1424
1425 if test -n "$ac_unrecognized_opts"; then
1426 case $enable_option_checking in
1427 no) ;;
1428 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1429 { (exit 1); exit 1; }; } ;;
1430 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1431 esac
1432 fi
1433
1434 # Check all directory arguments for consistency.
1435 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1436 datadir sysconfdir sharedstatedir localstatedir includedir \
1437 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1438 libdir localedir mandir
1439 do
1440 eval ac_val=\$$ac_var
1441 # Remove trailing slashes.
1442 case $ac_val in
1443 */ )
1444 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1445 eval $ac_var=\$ac_val;;
1446 esac
1447 # Be sure to have absolute directory names.
1448 case $ac_val in
1449 [\\/$]* | ?:[\\/]* ) continue;;
1450 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1451 esac
1452 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1453 { (exit 1); exit 1; }; }
1454 done
1455
1456 # There might be people who depend on the old broken behavior: `$host'
1457 # used to hold the argument of --host etc.
1458 # FIXME: To remove some day.
1459 build=$build_alias
1460 host=$host_alias
1461 target=$target_alias
1462
1463 # FIXME: To remove some day.
1464 if test "x$host_alias" != x; then
1465 if test "x$build_alias" = x; then
1466 cross_compiling=maybe
1467 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1468 If a cross compiler is detected then cross compile mode will be used." >&2
1469 elif test "x$build_alias" != "x$host_alias"; then
1470 cross_compiling=yes
1471 fi
1472 fi
1473
1474 ac_tool_prefix=
1475 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1476
1477 test "$silent" = yes && exec 6>/dev/null
1478
1479
1480 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1481 ac_ls_di=`ls -di .` &&
1482 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1483 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1484 { (exit 1); exit 1; }; }
1485 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1486 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1487 { (exit 1); exit 1; }; }
1488
1489
1490 # Find the source files, if location was not specified.
1491 if test -z "$srcdir"; then
1492 ac_srcdir_defaulted=yes
1493 # Try the directory containing this script, then the parent directory.
1494 ac_confdir=`$as_dirname -- "$as_myself" ||
1495 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1496 X"$as_myself" : 'X\(//\)[^/]' \| \
1497 X"$as_myself" : 'X\(//\)$' \| \
1498 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1499 $as_echo X"$as_myself" |
1500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1501 s//\1/
1502 q
1503 }
1504 /^X\(\/\/\)[^/].*/{
1505 s//\1/
1506 q
1507 }
1508 /^X\(\/\/\)$/{
1509 s//\1/
1510 q
1511 }
1512 /^X\(\/\).*/{
1513 s//\1/
1514 q
1515 }
1516 s/.*/./; q'`
1517 srcdir=$ac_confdir
1518 if test ! -r "$srcdir/$ac_unique_file"; then
1519 srcdir=..
1520 fi
1521 else
1522 ac_srcdir_defaulted=no
1523 fi
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1525 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1526 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1527 { (exit 1); exit 1; }; }
1528 fi
1529 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1530 ac_abs_confdir=`(
1531 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1532 { (exit 1); exit 1; }; }
1533 pwd)`
1534 # When building in place, set srcdir=.
1535 if test "$ac_abs_confdir" = "$ac_pwd"; then
1536 srcdir=.
1537 fi
1538 # Remove unnecessary trailing slashes from srcdir.
1539 # Double slashes in file names in object file debugging info
1540 # mess up M-x gdb in Emacs.
1541 case $srcdir in
1542 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1543 esac
1544 for ac_var in $ac_precious_vars; do
1545 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1546 eval ac_env_${ac_var}_value=\$${ac_var}
1547 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1548 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1549 done
1550
1551 #
1552 # Report the --help message.
1553 #
1554 if test "$ac_init_help" = "long"; then
1555 # Omit some internal or obsolete options to make the list less imposing.
1556 # This message is too long to be a string in the A/UX 3.1 sh.
1557 cat <<_ACEOF
1558 \`configure' configures this package to adapt to many kinds of systems.
1559
1560 Usage: $0 [OPTION]... [VAR=VALUE]...
1561
1562 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1563 VAR=VALUE. See below for descriptions of some of the useful variables.
1564
1565 Defaults for the options are specified in brackets.
1566
1567 Configuration:
1568 -h, --help display this help and exit
1569 --help=short display options specific to this package
1570 --help=recursive display the short help of all the included packages
1571 -V, --version display version information and exit
1572 -q, --quiet, --silent do not print \`checking...' messages
1573 --cache-file=FILE cache test results in FILE [disabled]
1574 -C, --config-cache alias for \`--cache-file=config.cache'
1575 -n, --no-create do not create output files
1576 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1577
1578 Installation directories:
1579 --prefix=PREFIX install architecture-independent files in PREFIX
1580 [$ac_default_prefix]
1581 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1582 [PREFIX]
1583
1584 By default, \`make install' will install all the files in
1585 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1586 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1587 for instance \`--prefix=\$HOME'.
1588
1589 For better control, use the options below.
1590
1591 Fine tuning of the installation directories:
1592 --bindir=DIR user executables [EPREFIX/bin]
1593 --sbindir=DIR system admin executables [EPREFIX/sbin]
1594 --libexecdir=DIR program executables [EPREFIX/libexec]
1595 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1596 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1597 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1598 --libdir=DIR object code libraries [EPREFIX/lib]
1599 --includedir=DIR C header files [PREFIX/include]
1600 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1601 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1602 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1603 --infodir=DIR info documentation [DATAROOTDIR/info]
1604 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1605 --mandir=DIR man documentation [DATAROOTDIR/man]
1606 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1607 --htmldir=DIR html documentation [DOCDIR]
1608 --dvidir=DIR dvi documentation [DOCDIR]
1609 --pdfdir=DIR pdf documentation [DOCDIR]
1610 --psdir=DIR ps documentation [DOCDIR]
1611 _ACEOF
1612
1613 cat <<\_ACEOF
1614
1615 Program names:
1616 --program-prefix=PREFIX prepend PREFIX to installed program names
1617 --program-suffix=SUFFIX append SUFFIX to installed program names
1618 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1619
1620 System types:
1621 --build=BUILD configure for building on BUILD [guessed]
1622 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1623 --target=TARGET configure for building compilers for TARGET [HOST]
1624 _ACEOF
1625 fi
1626
1627 if test -n "$ac_init_help"; then
1628
1629 cat <<\_ACEOF
1630
1631 Optional Features:
1632 --disable-option-checking ignore unrecognized --enable/--with options
1633 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1634 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1635 --enable-maintainer-mode enable make rules and dependencies not useful
1636 (and sometimes confusing) to the casual installer
1637 --enable-silent-rules less verbose build output (undo: `make V=1')
1638 --disable-silent-rules verbose build output (undo: `make V=0')
1639 --disable-dependency-tracking speeds up one-time build
1640 --enable-dependency-tracking do not reject slow dependency extractors
1641 --enable-shared[=PKGS] build shared libraries [default=yes]
1642 --enable-static[=PKGS] build static libraries [default=yes]
1643 --enable-fast-install[=PKGS]
1644 optimize for fast installation [default=yes]
1645 --disable-libtool-lock avoid locking (might break parallel builds)
1646 --enable-debug Enable generic debug support [default=no]
1647 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1648
1649 Optional Packages:
1650 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1651 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1652 --with-pic try to use only PIC/non-PIC objects [default=use
1653 both]
1654 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1655 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1656 --with-linux=PATH Path to kernel source
1657 --with-linux-obj=PATH Path to kernel build objects
1658 --with-spl=PATH Path to spl source
1659 --with-spl-obj=PATH Path to spl build objects
1660 --with-udevdir=DIR install udev helpers [EPREFIX/lib/udev]
1661 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
1662 --with-blkid support blkid caching [default=check]
1663 --with-selinux support selinux [default=check]
1664
1665 Some influential environment variables:
1666 CC C compiler command
1667 CFLAGS C compiler flags
1668 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1669 nonstandard directory <lib dir>
1670 LIBS libraries to pass to the linker, e.g. -l<library>
1671 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1672 you have headers in a nonstandard directory <include dir>
1673 CPP C preprocessor
1674 CCAS assembler compiler command (defaults to CC)
1675 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1676
1677 Use these variables to override the choices made by `configure' or to help
1678 it to find libraries and programs with nonstandard names/locations.
1679
1680 _ACEOF
1681 ac_status=$?
1682 fi
1683
1684 if test "$ac_init_help" = "recursive"; then
1685 # If there are subdirs, report their specific --help.
1686 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1687 test -d "$ac_dir" ||
1688 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1689 continue
1690 ac_builddir=.
1691
1692 case "$ac_dir" in
1693 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1694 *)
1695 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1696 # A ".." for each directory in $ac_dir_suffix.
1697 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1698 case $ac_top_builddir_sub in
1699 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1701 esac ;;
1702 esac
1703 ac_abs_top_builddir=$ac_pwd
1704 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1705 # for backward compatibility:
1706 ac_top_builddir=$ac_top_build_prefix
1707
1708 case $srcdir in
1709 .) # We are building in place.
1710 ac_srcdir=.
1711 ac_top_srcdir=$ac_top_builddir_sub
1712 ac_abs_top_srcdir=$ac_pwd ;;
1713 [\\/]* | ?:[\\/]* ) # Absolute name.
1714 ac_srcdir=$srcdir$ac_dir_suffix;
1715 ac_top_srcdir=$srcdir
1716 ac_abs_top_srcdir=$srcdir ;;
1717 *) # Relative name.
1718 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1719 ac_top_srcdir=$ac_top_build_prefix$srcdir
1720 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1721 esac
1722 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1723
1724 cd "$ac_dir" || { ac_status=$?; continue; }
1725 # Check for guested configure.
1726 if test -f "$ac_srcdir/configure.gnu"; then
1727 echo &&
1728 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1729 elif test -f "$ac_srcdir/configure"; then
1730 echo &&
1731 $SHELL "$ac_srcdir/configure" --help=recursive
1732 else
1733 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1734 fi || ac_status=$?
1735 cd "$ac_pwd" || { ac_status=$?; break; }
1736 done
1737 fi
1738
1739 test -n "$ac_init_help" && exit $ac_status
1740 if $ac_init_version; then
1741 cat <<\_ACEOF
1742 configure
1743 generated by GNU Autoconf 2.63
1744
1745 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1746 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1747 This configure script is free software; the Free Software Foundation
1748 gives unlimited permission to copy, distribute and modify it.
1749 _ACEOF
1750 exit
1751 fi
1752 cat >config.log <<_ACEOF
1753 This file contains any messages produced by compilers while
1754 running configure, to aid debugging if configure makes a mistake.
1755
1756 It was created by $as_me, which was
1757 generated by GNU Autoconf 2.63. Invocation command line was
1758
1759 $ $0 $@
1760
1761 _ACEOF
1762 exec 5>>config.log
1763 {
1764 cat <<_ASUNAME
1765 ## --------- ##
1766 ## Platform. ##
1767 ## --------- ##
1768
1769 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1770 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1771 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1772 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1773 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1774
1775 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1776 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1777
1778 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1779 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1780 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1781 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1782 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1783 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1784 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1785
1786 _ASUNAME
1787
1788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 for as_dir in $PATH
1790 do
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 $as_echo "PATH: $as_dir"
1794 done
1795 IFS=$as_save_IFS
1796
1797 } >&5
1798
1799 cat >&5 <<_ACEOF
1800
1801
1802 ## ----------- ##
1803 ## Core tests. ##
1804 ## ----------- ##
1805
1806 _ACEOF
1807
1808
1809 # Keep a trace of the command line.
1810 # Strip out --no-create and --no-recursion so they do not pile up.
1811 # Strip out --silent because we don't want to record it for future runs.
1812 # Also quote any args containing shell meta-characters.
1813 # Make two passes to allow for proper duplicate-argument suppression.
1814 ac_configure_args=
1815 ac_configure_args0=
1816 ac_configure_args1=
1817 ac_must_keep_next=false
1818 for ac_pass in 1 2
1819 do
1820 for ac_arg
1821 do
1822 case $ac_arg in
1823 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1824 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1825 | -silent | --silent | --silen | --sile | --sil)
1826 continue ;;
1827 *\'*)
1828 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1829 esac
1830 case $ac_pass in
1831 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1832 2)
1833 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1834 if test $ac_must_keep_next = true; then
1835 ac_must_keep_next=false # Got value, back to normal.
1836 else
1837 case $ac_arg in
1838 *=* | --config-cache | -C | -disable-* | --disable-* \
1839 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1840 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1841 | -with-* | --with-* | -without-* | --without-* | --x)
1842 case "$ac_configure_args0 " in
1843 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1844 esac
1845 ;;
1846 -* ) ac_must_keep_next=true ;;
1847 esac
1848 fi
1849 ac_configure_args="$ac_configure_args '$ac_arg'"
1850 ;;
1851 esac
1852 done
1853 done
1854 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1855 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1856
1857 # When interrupted or exit'd, cleanup temporary files, and complete
1858 # config.log. We remove comments because anyway the quotes in there
1859 # would cause problems or look ugly.
1860 # WARNING: Use '\'' to represent an apostrophe within the trap.
1861 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1862 trap 'exit_status=$?
1863 # Save into config.log some information that might help in debugging.
1864 {
1865 echo
1866
1867 cat <<\_ASBOX
1868 ## ---------------- ##
1869 ## Cache variables. ##
1870 ## ---------------- ##
1871 _ASBOX
1872 echo
1873 # The following way of writing the cache mishandles newlines in values,
1874 (
1875 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1876 eval ac_val=\$$ac_var
1877 case $ac_val in #(
1878 *${as_nl}*)
1879 case $ac_var in #(
1880 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1881 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1882 esac
1883 case $ac_var in #(
1884 _ | IFS | as_nl) ;; #(
1885 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1886 *) $as_unset $ac_var ;;
1887 esac ;;
1888 esac
1889 done
1890 (set) 2>&1 |
1891 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1892 *${as_nl}ac_space=\ *)
1893 sed -n \
1894 "s/'\''/'\''\\\\'\'''\''/g;
1895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1896 ;; #(
1897 *)
1898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1899 ;;
1900 esac |
1901 sort
1902 )
1903 echo
1904
1905 cat <<\_ASBOX
1906 ## ----------------- ##
1907 ## Output variables. ##
1908 ## ----------------- ##
1909 _ASBOX
1910 echo
1911 for ac_var in $ac_subst_vars
1912 do
1913 eval ac_val=\$$ac_var
1914 case $ac_val in
1915 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916 esac
1917 $as_echo "$ac_var='\''$ac_val'\''"
1918 done | sort
1919 echo
1920
1921 if test -n "$ac_subst_files"; then
1922 cat <<\_ASBOX
1923 ## ------------------- ##
1924 ## File substitutions. ##
1925 ## ------------------- ##
1926 _ASBOX
1927 echo
1928 for ac_var in $ac_subst_files
1929 do
1930 eval ac_val=\$$ac_var
1931 case $ac_val in
1932 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1933 esac
1934 $as_echo "$ac_var='\''$ac_val'\''"
1935 done | sort
1936 echo
1937 fi
1938
1939 if test -s confdefs.h; then
1940 cat <<\_ASBOX
1941 ## ----------- ##
1942 ## confdefs.h. ##
1943 ## ----------- ##
1944 _ASBOX
1945 echo
1946 cat confdefs.h
1947 echo
1948 fi
1949 test "$ac_signal" != 0 &&
1950 $as_echo "$as_me: caught signal $ac_signal"
1951 $as_echo "$as_me: exit $exit_status"
1952 } >&5
1953 rm -f core *.core core.conftest.* &&
1954 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1955 exit $exit_status
1956 ' 0
1957 for ac_signal in 1 2 13 15; do
1958 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1959 done
1960 ac_signal=0
1961
1962 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1963 rm -f -r conftest* confdefs.h
1964
1965 # Predefined preprocessor variables.
1966
1967 cat >>confdefs.h <<_ACEOF
1968 #define PACKAGE_NAME "$PACKAGE_NAME"
1969 _ACEOF
1970
1971
1972 cat >>confdefs.h <<_ACEOF
1973 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1974 _ACEOF
1975
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1979 _ACEOF
1980
1981
1982 cat >>confdefs.h <<_ACEOF
1983 #define PACKAGE_STRING "$PACKAGE_STRING"
1984 _ACEOF
1985
1986
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1989 _ACEOF
1990
1991
1992 # Let the site file select an alternate cache file if it wants to.
1993 # Prefer an explicitly selected file to automatically selected ones.
1994 ac_site_file1=NONE
1995 ac_site_file2=NONE
1996 if test -n "$CONFIG_SITE"; then
1997 ac_site_file1=$CONFIG_SITE
1998 elif test "x$prefix" != xNONE; then
1999 ac_site_file1=$prefix/share/config.site
2000 ac_site_file2=$prefix/etc/config.site
2001 else
2002 ac_site_file1=$ac_default_prefix/share/config.site
2003 ac_site_file2=$ac_default_prefix/etc/config.site
2004 fi
2005 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2006 do
2007 test "x$ac_site_file" = xNONE && continue
2008 if test -r "$ac_site_file"; then
2009 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2010 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2011 sed 's/^/| /' "$ac_site_file" >&5
2012 . "$ac_site_file"
2013 fi
2014 done
2015
2016 if test -r "$cache_file"; then
2017 # Some versions of bash will fail to source /dev/null (special
2018 # files actually), so we avoid doing that.
2019 if test -f "$cache_file"; then
2020 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2021 $as_echo "$as_me: loading cache $cache_file" >&6;}
2022 case $cache_file in
2023 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2024 *) . "./$cache_file";;
2025 esac
2026 fi
2027 else
2028 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2029 $as_echo "$as_me: creating cache $cache_file" >&6;}
2030 >$cache_file
2031 fi
2032
2033 # Check that the precious variables saved in the cache have kept the same
2034 # value.
2035 ac_cache_corrupted=false
2036 for ac_var in $ac_precious_vars; do
2037 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2038 eval ac_new_set=\$ac_env_${ac_var}_set
2039 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2040 eval ac_new_val=\$ac_env_${ac_var}_value
2041 case $ac_old_set,$ac_new_set in
2042 set,)
2043 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2044 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2045 ac_cache_corrupted=: ;;
2046 ,set)
2047 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2048 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2049 ac_cache_corrupted=: ;;
2050 ,);;
2051 *)
2052 if test "x$ac_old_val" != "x$ac_new_val"; then
2053 # differences in whitespace do not lead to failure.
2054 ac_old_val_w=`echo x $ac_old_val`
2055 ac_new_val_w=`echo x $ac_new_val`
2056 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2057 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2058 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2059 ac_cache_corrupted=:
2060 else
2061 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2062 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2063 eval $ac_var=\$ac_old_val
2064 fi
2065 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2066 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2067 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2068 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2069 fi;;
2070 esac
2071 # Pass precious variables to config.status.
2072 if test "$ac_new_set" = set; then
2073 case $ac_new_val in
2074 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2075 *) ac_arg=$ac_var=$ac_new_val ;;
2076 esac
2077 case " $ac_configure_args " in
2078 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2079 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2080 esac
2081 fi
2082 done
2083 if $ac_cache_corrupted; then
2084 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2086 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2087 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2088 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2089 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2090 { (exit 1); exit 1; }; }
2091 fi
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109 ac_ext=c
2110 ac_cpp='$CPP $CPPFLAGS'
2111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2114
2115
2116 ac_ext=c
2117 ac_cpp='$CPP $CPPFLAGS'
2118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2121
2122
2123
2124
2125
2126
2127 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2128 $as_echo_n "checking metadata... " >&6; }
2129
2130 META="$srcdir/META"
2131 _zfs_ac_meta_got_file=no
2132 if test -f "$META"; then
2133 _zfs_ac_meta_got_file=yes
2134
2135 ZFS_META_NAME=`perl -n\
2136 -e "BEGIN { \\$key=shift @ARGV; }"\
2137 -e "next unless s/^\s*\\$key[:=]//i;"\
2138 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2139 -e "s/^\s+//;"\
2140 -e "s/\s+$//;"\
2141 -e "s/^(['\"])(.*)\1/\\$2/;"\
2142 -e "\\$val=\\$_;"\
2143 -e "END { print \\$val if defined \\$val; }"\
2144 '(?:NAME|PROJECT|PACKAGE)' $META`;
2145 if test -n "$ZFS_META_NAME"; then
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define ZFS_META_NAME "$ZFS_META_NAME"
2149 _ACEOF
2150
2151
2152 fi
2153
2154 ZFS_META_VERSION=`perl -n\
2155 -e "BEGIN { \\$key=shift @ARGV; }"\
2156 -e "next unless s/^\s*\\$key[:=]//i;"\
2157 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2158 -e "s/^\s+//;"\
2159 -e "s/\s+$//;"\
2160 -e "s/^(['\"])(.*)\1/\\$2/;"\
2161 -e "\\$val=\\$_;"\
2162 -e "END { print \\$val if defined \\$val; }"\
2163 'VERSION' $META`;
2164 if test -n "$ZFS_META_VERSION"; then
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2168 _ACEOF
2169
2170
2171 fi
2172
2173 ZFS_META_RELEASE=`perl -n\
2174 -e "BEGIN { \\$key=shift @ARGV; }"\
2175 -e "next unless s/^\s*\\$key[:=]//i;"\
2176 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2177 -e "s/^\s+//;"\
2178 -e "s/\s+$//;"\
2179 -e "s/^(['\"])(.*)\1/\\$2/;"\
2180 -e "\\$val=\\$_;"\
2181 -e "END { print \\$val if defined \\$val; }"\
2182 'RELEASE' $META`;
2183 if test -n "$ZFS_META_RELEASE"; then
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2187 _ACEOF
2188
2189
2190 fi
2191
2192 ZFS_META_LICENSE=`perl -n\
2193 -e "BEGIN { \\$key=shift @ARGV; }"\
2194 -e "next unless s/^\s*\\$key[:=]//i;"\
2195 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2196 -e "s/^\s+//;"\
2197 -e "s/\s+$//;"\
2198 -e "s/^(['\"])(.*)\1/\\$2/;"\
2199 -e "\\$val=\\$_;"\
2200 -e "END { print \\$val if defined \\$val; }"\
2201 'LICENSE' $META`;
2202 if test -n "$ZFS_META_LICENSE"; then
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2206 _ACEOF
2207
2208
2209 fi
2210
2211 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2212 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2213 test -n "$ZFS_META_RELEASE" &&
2214 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2215
2216 cat >>confdefs.h <<_ACEOF
2217 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2218 _ACEOF
2219
2220
2221 fi
2222
2223 ZFS_META_DATA=`perl -n\
2224 -e "BEGIN { \\$key=shift @ARGV; }"\
2225 -e "next unless s/^\s*\\$key[:=]//i;"\
2226 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2227 -e "s/^\s+//;"\
2228 -e "s/\s+$//;"\
2229 -e "s/^(['\"])(.*)\1/\\$2/;"\
2230 -e "\\$val=\\$_;"\
2231 -e "END { print \\$val if defined \\$val; }"\
2232 'DATE' $META`;
2233 if test -n "$ZFS_META_DATA"; then
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define ZFS_META_DATA "$ZFS_META_DATA"
2237 _ACEOF
2238
2239
2240 fi
2241
2242 ZFS_META_AUTHOR=`perl -n\
2243 -e "BEGIN { \\$key=shift @ARGV; }"\
2244 -e "next unless s/^\s*\\$key[:=]//i;"\
2245 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2246 -e "s/^\s+//;"\
2247 -e "s/\s+$//;"\
2248 -e "s/^(['\"])(.*)\1/\\$2/;"\
2249 -e "\\$val=\\$_;"\
2250 -e "END { print \\$val if defined \\$val; }"\
2251 'AUTHOR' $META`;
2252 if test -n "$ZFS_META_AUTHOR"; then
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2256 _ACEOF
2257
2258
2259 fi
2260
2261
2262 ZFS_META_LT_CURRENT=`perl -n\
2263 -e "BEGIN { \\$key=shift @ARGV; }"\
2264 -e "next unless s/^\s*\\$key[:=]//i;"\
2265 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2266 -e "s/^\s+//;"\
2267 -e "s/\s+$//;"\
2268 -e "s/^(['\"])(.*)\1/\\$2/;"\
2269 -e "\\$val=\\$_;"\
2270 -e "END { print \\$val if defined \\$val; }"\
2271 'LT_CURRENT' $META`;
2272 ZFS_META_LT_REVISION=`perl -n\
2273 -e "BEGIN { \\$key=shift @ARGV; }"\
2274 -e "next unless s/^\s*\\$key[:=]//i;"\
2275 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2276 -e "s/^\s+//;"\
2277 -e "s/\s+$//;"\
2278 -e "s/^(['\"])(.*)\1/\\$2/;"\
2279 -e "\\$val=\\$_;"\
2280 -e "END { print \\$val if defined \\$val; }"\
2281 'LT_REVISION' $META`;
2282 ZFS_META_LT_AGE=`perl -n\
2283 -e "BEGIN { \\$key=shift @ARGV; }"\
2284 -e "next unless s/^\s*\\$key[:=]//i;"\
2285 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2286 -e "s/^\s+//;"\
2287 -e "s/\s+$//;"\
2288 -e "s/^(['\"])(.*)\1/\\$2/;"\
2289 -e "\\$val=\\$_;"\
2290 -e "END { print \\$val if defined \\$val; }"\
2291 'LT_AGE' $META`;
2292 if test -n "$ZFS_META_LT_CURRENT" \
2293 -o -n "$ZFS_META_LT_REVISION" \
2294 -o -n "$ZFS_META_LT_AGE"; then
2295 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2296 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2297 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2301 _ACEOF
2302
2303
2304 cat >>confdefs.h <<_ACEOF
2305 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2306 _ACEOF
2307
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2311 _ACEOF
2312
2313
2314
2315
2316 fi
2317 fi
2318
2319 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2320 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2321
2322
2323 ac_aux_dir=
2324 for ac_dir in config "$srcdir"/config; do
2325 if test -f "$ac_dir/install-sh"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/install-sh -c"
2328 break
2329 elif test -f "$ac_dir/install.sh"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/install.sh -c"
2332 break
2333 elif test -f "$ac_dir/shtool"; then
2334 ac_aux_dir=$ac_dir
2335 ac_install_sh="$ac_aux_dir/shtool install -c"
2336 break
2337 fi
2338 done
2339 if test -z "$ac_aux_dir"; then
2340 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2341 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2342 { (exit 1); exit 1; }; }
2343 fi
2344
2345 # These three variables are undocumented and unsupported,
2346 # and are intended to be withdrawn in a future Autoconf release.
2347 # They can cause serious problems if a builder's source tree is in a directory
2348 # whose full name contains unusual characters.
2349 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2350 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2351 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2352
2353
2354 # Make sure we can run config.sub.
2355 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2356 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2357 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2358 { (exit 1); exit 1; }; }
2359
2360 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2361 $as_echo_n "checking build system type... " >&6; }
2362 if test "${ac_cv_build+set}" = set; then
2363 $as_echo_n "(cached) " >&6
2364 else
2365 ac_build_alias=$build_alias
2366 test "x$ac_build_alias" = x &&
2367 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2368 test "x$ac_build_alias" = x &&
2369 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2370 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2371 { (exit 1); exit 1; }; }
2372 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2373 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2374 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2375 { (exit 1); exit 1; }; }
2376
2377 fi
2378 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2379 $as_echo "$ac_cv_build" >&6; }
2380 case $ac_cv_build in
2381 *-*-*) ;;
2382 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2383 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2384 { (exit 1); exit 1; }; };;
2385 esac
2386 build=$ac_cv_build
2387 ac_save_IFS=$IFS; IFS='-'
2388 set x $ac_cv_build
2389 shift
2390 build_cpu=$1
2391 build_vendor=$2
2392 shift; shift
2393 # Remember, the first character of IFS is used to create $*,
2394 # except with old shells:
2395 build_os=$*
2396 IFS=$ac_save_IFS
2397 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2398
2399
2400 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2401 $as_echo_n "checking host system type... " >&6; }
2402 if test "${ac_cv_host+set}" = set; then
2403 $as_echo_n "(cached) " >&6
2404 else
2405 if test "x$host_alias" = x; then
2406 ac_cv_host=$ac_cv_build
2407 else
2408 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2409 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2410 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2411 { (exit 1); exit 1; }; }
2412 fi
2413
2414 fi
2415 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2416 $as_echo "$ac_cv_host" >&6; }
2417 case $ac_cv_host in
2418 *-*-*) ;;
2419 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2420 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2421 { (exit 1); exit 1; }; };;
2422 esac
2423 host=$ac_cv_host
2424 ac_save_IFS=$IFS; IFS='-'
2425 set x $ac_cv_host
2426 shift
2427 host_cpu=$1
2428 host_vendor=$2
2429 shift; shift
2430 # Remember, the first character of IFS is used to create $*,
2431 # except with old shells:
2432 host_os=$*
2433 IFS=$ac_save_IFS
2434 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2435
2436
2437 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2438 $as_echo_n "checking target system type... " >&6; }
2439 if test "${ac_cv_target+set}" = set; then
2440 $as_echo_n "(cached) " >&6
2441 else
2442 if test "x$target_alias" = x; then
2443 ac_cv_target=$ac_cv_host
2444 else
2445 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2446 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2447 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2448 { (exit 1); exit 1; }; }
2449 fi
2450
2451 fi
2452 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2453 $as_echo "$ac_cv_target" >&6; }
2454 case $ac_cv_target in
2455 *-*-*) ;;
2456 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2457 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2458 { (exit 1); exit 1; }; };;
2459 esac
2460 target=$ac_cv_target
2461 ac_save_IFS=$IFS; IFS='-'
2462 set x $ac_cv_target
2463 shift
2464 target_cpu=$1
2465 target_vendor=$2
2466 shift; shift
2467 # Remember, the first character of IFS is used to create $*,
2468 # except with old shells:
2469 target_os=$*
2470 IFS=$ac_save_IFS
2471 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2472
2473
2474 # The aliases save the names the user supplied, while $host etc.
2475 # will get canonicalized.
2476 test -n "$target_alias" &&
2477 test "$program_prefix$program_suffix$program_transform_name" = \
2478 NONENONEs,x,x, &&
2479 program_prefix=${target_alias}-
2480
2481 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2482 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2483 # Check whether --enable-maintainer-mode was given.
2484 if test "${enable_maintainer_mode+set}" = set; then
2485 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2486 else
2487 USE_MAINTAINER_MODE=no
2488 fi
2489
2490 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2491 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2492 if test $USE_MAINTAINER_MODE = yes; then
2493 MAINTAINER_MODE_TRUE=
2494 MAINTAINER_MODE_FALSE='#'
2495 else
2496 MAINTAINER_MODE_TRUE='#'
2497 MAINTAINER_MODE_FALSE=
2498 fi
2499
2500 MAINT=$MAINTAINER_MODE_TRUE
2501
2502
2503 # Check whether --enable-silent-rules was given.
2504 if test "${enable_silent_rules+set}" = set; then
2505 enableval=$enable_silent_rules;
2506 fi
2507
2508 case $enable_silent_rules in
2509 yes) AM_DEFAULT_VERBOSITY=0;;
2510 no) AM_DEFAULT_VERBOSITY=1;;
2511 *) AM_DEFAULT_VERBOSITY=1;;
2512 esac
2513 AM_BACKSLASH='\'
2514
2515 am__api_version='1.11'
2516
2517 # Find a good install program. We prefer a C program (faster),
2518 # so one script is as good as another. But avoid the broken or
2519 # incompatible versions:
2520 # SysV /etc/install, /usr/sbin/install
2521 # SunOS /usr/etc/install
2522 # IRIX /sbin/install
2523 # AIX /bin/install
2524 # AmigaOS /C/install, which installs bootblocks on floppy discs
2525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2528 # OS/2's system install, which has a completely different semantic
2529 # ./install, which can be erroneously created by make from ./install.sh.
2530 # Reject install programs that cannot install multiple files.
2531 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2532 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2533 if test -z "$INSTALL"; then
2534 if test "${ac_cv_path_install+set}" = set; then
2535 $as_echo_n "(cached) " >&6
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 # Account for people who put trailing slashes in PATH elements.
2543 case $as_dir/ in
2544 ./ | .// | /cC/* | \
2545 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2546 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2547 /usr/ucb/* ) ;;
2548 *)
2549 # OSF1 and SCO ODT 3.0 have their own names for install.
2550 # Don't use installbsd from OSF since it installs stuff as root
2551 # by default.
2552 for ac_prog in ginstall scoinst install; do
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2555 if test $ac_prog = install &&
2556 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2557 # AIX install. It has an incompatible calling convention.
2558 :
2559 elif test $ac_prog = install &&
2560 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2561 # program-specific install script used by HP pwplus--don't use.
2562 :
2563 else
2564 rm -rf conftest.one conftest.two conftest.dir
2565 echo one > conftest.one
2566 echo two > conftest.two
2567 mkdir conftest.dir
2568 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2569 test -s conftest.one && test -s conftest.two &&
2570 test -s conftest.dir/conftest.one &&
2571 test -s conftest.dir/conftest.two
2572 then
2573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2574 break 3
2575 fi
2576 fi
2577 fi
2578 done
2579 done
2580 ;;
2581 esac
2582
2583 done
2584 IFS=$as_save_IFS
2585
2586 rm -rf conftest.one conftest.two conftest.dir
2587
2588 fi
2589 if test "${ac_cv_path_install+set}" = set; then
2590 INSTALL=$ac_cv_path_install
2591 else
2592 # As a last resort, use the slow shell script. Don't cache a
2593 # value for INSTALL within a source directory, because that will
2594 # break other packages using the cache if that directory is
2595 # removed, or if the value is a relative name.
2596 INSTALL=$ac_install_sh
2597 fi
2598 fi
2599 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2600 $as_echo "$INSTALL" >&6; }
2601
2602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2603 # It thinks the first close brace ends the variable substitution.
2604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2605
2606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2607
2608 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2609
2610 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2611 $as_echo_n "checking whether build environment is sane... " >&6; }
2612 # Just in case
2613 sleep 1
2614 echo timestamp > conftest.file
2615 # Reject unsafe characters in $srcdir or the absolute working directory
2616 # name. Accept space and tab only in the latter.
2617 am_lf='
2618 '
2619 case `pwd` in
2620 *[\\\"\#\$\&\'\`$am_lf]*)
2621 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2622 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2623 { (exit 1); exit 1; }; };;
2624 esac
2625 case $srcdir in
2626 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2627 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2628 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2629 { (exit 1); exit 1; }; };;
2630 esac
2631
2632 # Do `set' in a subshell so we don't clobber the current shell's
2633 # arguments. Must try -L first in case configure is actually a
2634 # symlink; some systems play weird games with the mod time of symlinks
2635 # (eg FreeBSD returns the mod time of the symlink's containing
2636 # directory).
2637 if (
2638 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2639 if test "$*" = "X"; then
2640 # -L didn't work.
2641 set X `ls -t "$srcdir/configure" conftest.file`
2642 fi
2643 rm -f conftest.file
2644 if test "$*" != "X $srcdir/configure conftest.file" \
2645 && test "$*" != "X conftest.file $srcdir/configure"; then
2646
2647 # If neither matched, then we have a broken ls. This can happen
2648 # if, for instance, CONFIG_SHELL is bash and it inherits a
2649 # broken ls alias from the environment. This has actually
2650 # happened. Such a system could not be considered "sane".
2651 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2652 alias in your environment" >&5
2653 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2654 alias in your environment" >&2;}
2655 { (exit 1); exit 1; }; }
2656 fi
2657
2658 test "$2" = conftest.file
2659 )
2660 then
2661 # Ok.
2662 :
2663 else
2664 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2665 Check your system clock" >&5
2666 $as_echo "$as_me: error: newly created file is older than distributed files!
2667 Check your system clock" >&2;}
2668 { (exit 1); exit 1; }; }
2669 fi
2670 { $as_echo "$as_me:$LINENO: result: yes" >&5
2671 $as_echo "yes" >&6; }
2672 test "$program_prefix" != NONE &&
2673 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2674 # Use a double $ so make ignores it.
2675 test "$program_suffix" != NONE &&
2676 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2677 # Double any \ or $.
2678 # By default was `s,x,x', remove it if useless.
2679 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2680 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2681
2682 # expand $ac_aux_dir to an absolute path
2683 am_aux_dir=`cd $ac_aux_dir && pwd`
2684
2685 if test x"${MISSING+set}" != xset; then
2686 case $am_aux_dir in
2687 *\ * | *\ *)
2688 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2689 *)
2690 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2691 esac
2692 fi
2693 # Use eval to expand $SHELL
2694 if eval "$MISSING --run true"; then
2695 am_missing_run="$MISSING --run "
2696 else
2697 am_missing_run=
2698 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2699 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2700 fi
2701
2702 if test x"${install_sh}" != xset; then
2703 case $am_aux_dir in
2704 *\ * | *\ *)
2705 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2706 *)
2707 install_sh="\${SHELL} $am_aux_dir/install-sh"
2708 esac
2709 fi
2710
2711 # Installed binaries are usually stripped using `strip' when the user
2712 # run `make install-strip'. However `strip' might not be the right
2713 # tool to use in cross-compilation environments, therefore Automake
2714 # will honor the `STRIP' environment variable to overrule this program.
2715 if test "$cross_compiling" != no; then
2716 if test -n "$ac_tool_prefix"; then
2717 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2718 set dummy ${ac_tool_prefix}strip; ac_word=$2
2719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if test "${ac_cv_prog_STRIP+set}" = set; then
2722 $as_echo_n "(cached) " >&6
2723 else
2724 if test -n "$STRIP"; then
2725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 STRIP=$ac_cv_prog_STRIP
2745 if test -n "$STRIP"; then
2746 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2747 $as_echo "$STRIP" >&6; }
2748 else
2749 { $as_echo "$as_me:$LINENO: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753
2754 fi
2755 if test -z "$ac_cv_prog_STRIP"; then
2756 ac_ct_STRIP=$STRIP
2757 # Extract the first word of "strip", so it can be a program name with args.
2758 set dummy strip; ac_word=$2
2759 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 $as_echo_n "checking for $ac_word... " >&6; }
2761 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2762 $as_echo_n "(cached) " >&6
2763 else
2764 if test -n "$ac_ct_STRIP"; then
2765 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 ac_cv_prog_ac_ct_STRIP="strip"
2775 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2777 fi
2778 done
2779 done
2780 IFS=$as_save_IFS
2781
2782 fi
2783 fi
2784 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2785 if test -n "$ac_ct_STRIP"; then
2786 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2787 $as_echo "$ac_ct_STRIP" >&6; }
2788 else
2789 { $as_echo "$as_me:$LINENO: result: no" >&5
2790 $as_echo "no" >&6; }
2791 fi
2792
2793 if test "x$ac_ct_STRIP" = x; then
2794 STRIP=":"
2795 else
2796 case $cross_compiling:$ac_tool_warned in
2797 yes:)
2798 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2800 ac_tool_warned=yes ;;
2801 esac
2802 STRIP=$ac_ct_STRIP
2803 fi
2804 else
2805 STRIP="$ac_cv_prog_STRIP"
2806 fi
2807
2808 fi
2809 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2810
2811 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2812 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2813 if test -z "$MKDIR_P"; then
2814 if test "${ac_cv_path_mkdir+set}" = set; then
2815 $as_echo_n "(cached) " >&6
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2819 do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_prog in mkdir gmkdir; do
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2825 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2826 'mkdir (GNU coreutils) '* | \
2827 'mkdir (coreutils) '* | \
2828 'mkdir (fileutils) '4.1*)
2829 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2830 break 3;;
2831 esac
2832 done
2833 done
2834 done
2835 IFS=$as_save_IFS
2836
2837 fi
2838
2839 if test "${ac_cv_path_mkdir+set}" = set; then
2840 MKDIR_P="$ac_cv_path_mkdir -p"
2841 else
2842 # As a last resort, use the slow shell script. Don't cache a
2843 # value for MKDIR_P within a source directory, because that will
2844 # break other packages using the cache if that directory is
2845 # removed, or if the value is a relative name.
2846 test -d ./--version && rmdir ./--version
2847 MKDIR_P="$ac_install_sh -d"
2848 fi
2849 fi
2850 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2851 $as_echo "$MKDIR_P" >&6; }
2852
2853 mkdir_p="$MKDIR_P"
2854 case $mkdir_p in
2855 [\\/$]* | ?:[\\/]*) ;;
2856 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2857 esac
2858
2859 for ac_prog in gawk mawk nawk awk
2860 do
2861 # Extract the first word of "$ac_prog", so it can be a program name with args.
2862 set dummy $ac_prog; ac_word=$2
2863 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if test "${ac_cv_prog_AWK+set}" = set; then
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test -n "$AWK"; then
2869 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_AWK="$ac_prog"
2879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2881 fi
2882 done
2883 done
2884 IFS=$as_save_IFS
2885
2886 fi
2887 fi
2888 AWK=$ac_cv_prog_AWK
2889 if test -n "$AWK"; then
2890 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2891 $as_echo "$AWK" >&6; }
2892 else
2893 { $as_echo "$as_me:$LINENO: result: no" >&5
2894 $as_echo "no" >&6; }
2895 fi
2896
2897
2898 test -n "$AWK" && break
2899 done
2900
2901 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2902 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2903 set x ${MAKE-make}
2904 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2905 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2906 $as_echo_n "(cached) " >&6
2907 else
2908 cat >conftest.make <<\_ACEOF
2909 SHELL = /bin/sh
2910 all:
2911 @echo '@@@%%%=$(MAKE)=@@@%%%'
2912 _ACEOF
2913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2914 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2915 *@@@%%%=?*=@@@%%%*)
2916 eval ac_cv_prog_make_${ac_make}_set=yes;;
2917 *)
2918 eval ac_cv_prog_make_${ac_make}_set=no;;
2919 esac
2920 rm -f conftest.make
2921 fi
2922 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2923 { $as_echo "$as_me:$LINENO: result: yes" >&5
2924 $as_echo "yes" >&6; }
2925 SET_MAKE=
2926 else
2927 { $as_echo "$as_me:$LINENO: result: no" >&5
2928 $as_echo "no" >&6; }
2929 SET_MAKE="MAKE=${MAKE-make}"
2930 fi
2931
2932 rm -rf .tst 2>/dev/null
2933 mkdir .tst 2>/dev/null
2934 if test -d .tst; then
2935 am__leading_dot=.
2936 else
2937 am__leading_dot=_
2938 fi
2939 rmdir .tst 2>/dev/null
2940
2941 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2942 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2943 # is not polluted with repeated "-I."
2944 am__isrc=' -I$(srcdir)'
2945 # test to see if srcdir already configured
2946 if test -f $srcdir/config.status; then
2947 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2948 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2949 { (exit 1); exit 1; }; }
2950 fi
2951 fi
2952
2953 # test whether we have cygpath
2954 if test -z "$CYGPATH_W"; then
2955 if (cygpath --version) >/dev/null 2>/dev/null; then
2956 CYGPATH_W='cygpath -w'
2957 else
2958 CYGPATH_W=echo
2959 fi
2960 fi
2961
2962
2963 # Define the identity of the package.
2964 PACKAGE=$ZFS_META_NAME
2965 VERSION=$ZFS_META_VERSION
2966
2967
2968 cat >>confdefs.h <<_ACEOF
2969 #define PACKAGE "$PACKAGE"
2970 _ACEOF
2971
2972
2973 cat >>confdefs.h <<_ACEOF
2974 #define VERSION "$VERSION"
2975 _ACEOF
2976
2977 # Some tools Automake needs.
2978
2979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2980
2981
2982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2983
2984
2985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2986
2987
2988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2989
2990
2991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2992
2993 # We need awk for the "check" target. The system "awk" is bad on
2994 # some platforms.
2995 # Always define AMTAR for backward compatibility.
2996
2997 AMTAR=${AMTAR-"${am_missing_run}tar"}
2998
2999 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3000
3001
3002
3003
3004
3005 ac_config_headers="$ac_config_headers zfs_config.h"
3006
3007
3008 # Find a good install program. We prefer a C program (faster),
3009 # so one script is as good as another. But avoid the broken or
3010 # incompatible versions:
3011 # SysV /etc/install, /usr/sbin/install
3012 # SunOS /usr/etc/install
3013 # IRIX /sbin/install
3014 # AIX /bin/install
3015 # AmigaOS /C/install, which installs bootblocks on floppy discs
3016 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3017 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3018 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3019 # OS/2's system install, which has a completely different semantic
3020 # ./install, which can be erroneously created by make from ./install.sh.
3021 # Reject install programs that cannot install multiple files.
3022 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3023 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3024 if test -z "$INSTALL"; then
3025 if test "${ac_cv_path_install+set}" = set; then
3026 $as_echo_n "(cached) " >&6
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 # Account for people who put trailing slashes in PATH elements.
3034 case $as_dir/ in
3035 ./ | .// | /cC/* | \
3036 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3037 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3038 /usr/ucb/* ) ;;
3039 *)
3040 # OSF1 and SCO ODT 3.0 have their own names for install.
3041 # Don't use installbsd from OSF since it installs stuff as root
3042 # by default.
3043 for ac_prog in ginstall scoinst install; do
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3046 if test $ac_prog = install &&
3047 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3048 # AIX install. It has an incompatible calling convention.
3049 :
3050 elif test $ac_prog = install &&
3051 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3052 # program-specific install script used by HP pwplus--don't use.
3053 :
3054 else
3055 rm -rf conftest.one conftest.two conftest.dir
3056 echo one > conftest.one
3057 echo two > conftest.two
3058 mkdir conftest.dir
3059 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3060 test -s conftest.one && test -s conftest.two &&
3061 test -s conftest.dir/conftest.one &&
3062 test -s conftest.dir/conftest.two
3063 then
3064 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3065 break 3
3066 fi
3067 fi
3068 fi
3069 done
3070 done
3071 ;;
3072 esac
3073
3074 done
3075 IFS=$as_save_IFS
3076
3077 rm -rf conftest.one conftest.two conftest.dir
3078
3079 fi
3080 if test "${ac_cv_path_install+set}" = set; then
3081 INSTALL=$ac_cv_path_install
3082 else
3083 # As a last resort, use the slow shell script. Don't cache a
3084 # value for INSTALL within a source directory, because that will
3085 # break other packages using the cache if that directory is
3086 # removed, or if the value is a relative name.
3087 INSTALL=$ac_install_sh
3088 fi
3089 fi
3090 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3091 $as_echo "$INSTALL" >&6; }
3092
3093 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3094 # It thinks the first close brace ends the variable substitution.
3095 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3096
3097 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3098
3099 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3100
3101 ac_ext=c
3102 ac_cpp='$CPP $CPPFLAGS'
3103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3106 if test -n "$ac_tool_prefix"; then
3107 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3108 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3109 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if test "${ac_cv_prog_CC+set}" = set; then
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test -n "$CC"; then
3115 ac_cv_prog_CC="$CC" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3119 do
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3125 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3127 fi
3128 done
3129 done
3130 IFS=$as_save_IFS
3131
3132 fi
3133 fi
3134 CC=$ac_cv_prog_CC
3135 if test -n "$CC"; then
3136 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3137 $as_echo "$CC" >&6; }
3138 else
3139 { $as_echo "$as_me:$LINENO: result: no" >&5
3140 $as_echo "no" >&6; }
3141 fi
3142
3143
3144 fi
3145 if test -z "$ac_cv_prog_CC"; then
3146 ac_ct_CC=$CC
3147 # Extract the first word of "gcc", so it can be a program name with args.
3148 set dummy gcc; ac_word=$2
3149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3152 $as_echo_n "(cached) " >&6
3153 else
3154 if test -n "$ac_ct_CC"; then
3155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="gcc"
3165 $as_echo "$as_me:$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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3175 if test -n "$ac_ct_CC"; then
3176 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3177 $as_echo "$ac_ct_CC" >&6; }
3178 else
3179 { $as_echo "$as_me:$LINENO: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183 if test "x$ac_ct_CC" = x; then
3184 CC=""
3185 else
3186 case $cross_compiling:$ac_tool_warned in
3187 yes:)
3188 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3190 ac_tool_warned=yes ;;
3191 esac
3192 CC=$ac_ct_CC
3193 fi
3194 else
3195 CC="$ac_cv_prog_CC"
3196 fi
3197
3198 if test -z "$CC"; then
3199 if test -n "$ac_tool_prefix"; then
3200 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3201 set dummy ${ac_tool_prefix}cc; ac_word=$2
3202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if test "${ac_cv_prog_CC+set}" = set; then
3205 $as_echo_n "(cached) " >&6
3206 else
3207 if test -n "$CC"; then
3208 ac_cv_prog_CC="$CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 ac_cv_prog_CC="${ac_tool_prefix}cc"
3218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221 done
3222 done
3223 IFS=$as_save_IFS
3224
3225 fi
3226 fi
3227 CC=$ac_cv_prog_CC
3228 if test -n "$CC"; then
3229 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3230 $as_echo "$CC" >&6; }
3231 else
3232 { $as_echo "$as_me:$LINENO: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236
3237 fi
3238 fi
3239 if test -z "$CC"; then
3240 # Extract the first word of "cc", so it can be a program name with args.
3241 set dummy cc; ac_word=$2
3242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if test "${ac_cv_prog_CC+set}" = set; then
3245 $as_echo_n "(cached) " >&6
3246 else
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3249 else
3250 ac_prog_rejected=no
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3259 ac_prog_rejected=yes
3260 continue
3261 fi
3262 ac_cv_prog_CC="cc"
3263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 if test $ac_prog_rejected = yes; then
3271 # We found a bogon in the path, so make sure we never use it.
3272 set dummy $ac_cv_prog_CC
3273 shift
3274 if test $# != 0; then
3275 # We chose a different compiler from the bogus one.
3276 # However, it has the same basename, so the bogon will be chosen
3277 # first if we set CC to just the basename; use the full file name.
3278 shift
3279 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3280 fi
3281 fi
3282 fi
3283 fi
3284 CC=$ac_cv_prog_CC
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3288 else
3289 { $as_echo "$as_me:$LINENO: result: no" >&5
3290 $as_echo "no" >&6; }
3291 fi
3292
3293
3294 fi
3295 if test -z "$CC"; then
3296 if test -n "$ac_tool_prefix"; then
3297 for ac_prog in cl.exe
3298 do
3299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3301 { $as_echo "$as_me:$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$ac_prog"
3317 $as_echo "$as_me:$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:$LINENO: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3330 else
3331 { $as_echo "$as_me:$LINENO: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335
3336 test -n "$CC" && break
3337 done
3338 fi
3339 if test -z "$CC"; then
3340 ac_ct_CC=$CC
3341 for ac_prog in cl.exe
3342 do
3343 # Extract the first word of "$ac_prog", so it can be a program name with args.
3344 set dummy $ac_prog; ac_word=$2
3345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3348 $as_echo_n "(cached) " >&6
3349 else
3350 if test -n "$ac_ct_CC"; then
3351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360 ac_cv_prog_ac_ct_CC="$ac_prog"
3361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 break 2
3363 fi
3364 done
3365 done
3366 IFS=$as_save_IFS
3367
3368 fi
3369 fi
3370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3371 if test -n "$ac_ct_CC"; then
3372 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3373 $as_echo "$ac_ct_CC" >&6; }
3374 else
3375 { $as_echo "$as_me:$LINENO: result: no" >&5
3376 $as_echo "no" >&6; }
3377 fi
3378
3379
3380 test -n "$ac_ct_CC" && break
3381 done
3382
3383 if test "x$ac_ct_CC" = x; then
3384 CC=""
3385 else
3386 case $cross_compiling:$ac_tool_warned in
3387 yes:)
3388 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3390 ac_tool_warned=yes ;;
3391 esac
3392 CC=$ac_ct_CC
3393 fi
3394 fi
3395
3396 fi
3397
3398
3399 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3402 See \`config.log' for more details." >&5
3403 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3404 See \`config.log' for more details." >&2;}
3405 { (exit 1); exit 1; }; }; }
3406
3407 # Provide some information about the compiler.
3408 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3409 set X $ac_compile
3410 ac_compiler=$2
3411 { (ac_try="$ac_compiler --version >&5"
3412 case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3417 $as_echo "$ac_try_echo") >&5
3418 (eval "$ac_compiler --version >&5") 2>&5
3419 ac_status=$?
3420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }
3422 { (ac_try="$ac_compiler -v >&5"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3428 $as_echo "$ac_try_echo") >&5
3429 (eval "$ac_compiler -v >&5") 2>&5
3430 ac_status=$?
3431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }
3433 { (ac_try="$ac_compiler -V >&5"
3434 case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437 esac
3438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3439 $as_echo "$ac_try_echo") >&5
3440 (eval "$ac_compiler -V >&5") 2>&5
3441 ac_status=$?
3442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }
3444
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451
3452 int
3453 main ()
3454 {
3455
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 ac_clean_files_save=$ac_clean_files
3461 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3462 # Try to create an executable without -o first, disregard a.out.
3463 # It will help us diagnose broken compilers, and finding out an intuition
3464 # of exeext.
3465 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3466 $as_echo_n "checking for C compiler default output file name... " >&6; }
3467 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3468
3469 # The possible output files:
3470 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3471
3472 ac_rmfiles=
3473 for ac_file in $ac_files
3474 do
3475 case $ac_file in
3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3477 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3478 esac
3479 done
3480 rm -f $ac_rmfiles
3481
3482 if { (ac_try="$ac_link_default"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3488 $as_echo "$ac_try_echo") >&5
3489 (eval "$ac_link_default") 2>&5
3490 ac_status=$?
3491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; then
3493 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3494 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3495 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3496 # so that the user can short-circuit this test for compilers unknown to
3497 # Autoconf.
3498 for ac_file in $ac_files ''
3499 do
3500 test -f "$ac_file" || continue
3501 case $ac_file in
3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3503 ;;
3504 [ab].out )
3505 # We found the default executable, but exeext='' is most
3506 # certainly right.
3507 break;;
3508 *.* )
3509 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3510 then :; else
3511 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3512 fi
3513 # We set ac_cv_exeext here because the later test for it is not
3514 # safe: cross compilers may not add the suffix if given an `-o'
3515 # argument, so we may need to know it at that point already.
3516 # Even if this section looks crufty: it has the advantage of
3517 # actually working.
3518 break;;
3519 * )
3520 break;;
3521 esac
3522 done
3523 test "$ac_cv_exeext" = no && ac_cv_exeext=
3524
3525 else
3526 ac_file=''
3527 fi
3528
3529 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3530 $as_echo "$ac_file" >&6; }
3531 if test -z "$ac_file"; then
3532 $as_echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3538 See \`config.log' for more details." >&5
3539 $as_echo "$as_me: error: C compiler cannot create executables
3540 See \`config.log' for more details." >&2;}
3541 { (exit 77); exit 77; }; }; }
3542 fi
3543
3544 ac_exeext=$ac_cv_exeext
3545
3546 # Check that the compiler produces executables we can run. If not, either
3547 # the compiler is broken, or we cross compile.
3548 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3549 $as_echo_n "checking whether the C compiler works... " >&6; }
3550 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3551 # If not cross compiling, check that we can run a simple program.
3552 if test "$cross_compiling" != yes; then
3553 if { ac_try='./$ac_file'
3554 { (case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3559 $as_echo "$ac_try_echo") >&5
3560 (eval "$ac_try") 2>&5
3561 ac_status=$?
3562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3564 cross_compiling=no
3565 else
3566 if test "$cross_compiling" = maybe; then
3567 cross_compiling=yes
3568 else
3569 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3572 If you meant to cross compile, use \`--host'.
3573 See \`config.log' for more details." >&5
3574 $as_echo "$as_me: error: cannot run C compiled programs.
3575 If you meant to cross compile, use \`--host'.
3576 See \`config.log' for more details." >&2;}
3577 { (exit 1); exit 1; }; }; }
3578 fi
3579 fi
3580 fi
3581 { $as_echo "$as_me:$LINENO: result: yes" >&5
3582 $as_echo "yes" >&6; }
3583
3584 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3585 ac_clean_files=$ac_clean_files_save
3586 # Check that the compiler produces executables we can run. If not, either
3587 # the compiler is broken, or we cross compile.
3588 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3589 $as_echo_n "checking whether we are cross compiling... " >&6; }
3590 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3591 $as_echo "$cross_compiling" >&6; }
3592
3593 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3594 $as_echo_n "checking for suffix of executables... " >&6; }
3595 if { (ac_try="$ac_link"
3596 case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3601 $as_echo "$ac_try_echo") >&5
3602 (eval "$ac_link") 2>&5
3603 ac_status=$?
3604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; then
3606 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3607 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3608 # work properly (i.e., refer to `conftest.exe'), while it won't with
3609 # `rm'.
3610 for ac_file in conftest.exe conftest conftest.*; do
3611 test -f "$ac_file" || continue
3612 case $ac_file in
3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3614 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3615 break;;
3616 * ) break;;
3617 esac
3618 done
3619 else
3620 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3623 See \`config.log' for more details." >&5
3624 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3625 See \`config.log' for more details." >&2;}
3626 { (exit 1); exit 1; }; }; }
3627 fi
3628
3629 rm -f conftest$ac_cv_exeext
3630 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3631 $as_echo "$ac_cv_exeext" >&6; }
3632
3633 rm -f conftest.$ac_ext
3634 EXEEXT=$ac_cv_exeext
3635 ac_exeext=$EXEEXT
3636 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3637 $as_echo_n "checking for suffix of object files... " >&6; }
3638 if test "${ac_cv_objext+set}" = set; then
3639 $as_echo_n "(cached) " >&6
3640 else
3641 cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h. */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3647
3648 int
3649 main ()
3650 {
3651
3652 ;
3653 return 0;
3654 }
3655 _ACEOF
3656 rm -f conftest.o conftest.obj
3657 if { (ac_try="$ac_compile"
3658 case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663 $as_echo "$ac_try_echo") >&5
3664 (eval "$ac_compile") 2>&5
3665 ac_status=$?
3666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; then
3668 for ac_file in conftest.o conftest.obj conftest.*; do
3669 test -f "$ac_file" || continue;
3670 case $ac_file in
3671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3672 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3673 break;;
3674 esac
3675 done
3676 else
3677 $as_echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3679
3680 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3683 See \`config.log' for more details." >&5
3684 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3685 See \`config.log' for more details." >&2;}
3686 { (exit 1); exit 1; }; }; }
3687 fi
3688
3689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3690 fi
3691 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3692 $as_echo "$ac_cv_objext" >&6; }
3693 OBJEXT=$ac_cv_objext
3694 ac_objext=$OBJEXT
3695 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3696 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3697 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3698 $as_echo_n "(cached) " >&6
3699 else
3700 cat >conftest.$ac_ext <<_ACEOF
3701 /* confdefs.h. */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706
3707 int
3708 main ()
3709 {
3710 #ifndef __GNUC__
3711 choke me
3712 #endif
3713
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 rm -f conftest.$ac_objext
3719 if { (ac_try="$ac_compile"
3720 case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723 esac
3724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3725 $as_echo "$ac_try_echo") >&5
3726 (eval "$ac_compile") 2>conftest.er1
3727 ac_status=$?
3728 grep -v '^ *+' conftest.er1 >conftest.err
3729 rm -f conftest.er1
3730 cat conftest.err >&5
3731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } && {
3733 test -z "$ac_c_werror_flag" ||
3734 test ! -s conftest.err
3735 } && test -s conftest.$ac_objext; then
3736 ac_compiler_gnu=yes
3737 else
3738 $as_echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 ac_compiler_gnu=no
3742 fi
3743
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3746
3747 fi
3748 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3749 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3750 if test $ac_compiler_gnu = yes; then
3751 GCC=yes
3752 else
3753 GCC=
3754 fi
3755 ac_test_CFLAGS=${CFLAGS+set}
3756 ac_save_CFLAGS=$CFLAGS
3757 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3758 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3759 if test "${ac_cv_prog_cc_g+set}" = set; then
3760 $as_echo_n "(cached) " >&6
3761 else
3762 ac_save_c_werror_flag=$ac_c_werror_flag
3763 ac_c_werror_flag=yes
3764 ac_cv_prog_cc_g=no
3765 CFLAGS="-g"
3766 cat >conftest.$ac_ext <<_ACEOF
3767 /* confdefs.h. */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3772
3773 int
3774 main ()
3775 {
3776
3777 ;
3778 return 0;
3779 }
3780 _ACEOF
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788 $as_echo "$ac_try_echo") >&5
3789 (eval "$ac_compile") 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest.$ac_objext; then
3799 ac_cv_prog_cc_g=yes
3800 else
3801 $as_echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804 CFLAGS=""
3805 cat >conftest.$ac_ext <<_ACEOF
3806 /* confdefs.h. */
3807 _ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3811
3812 int
3813 main ()
3814 {
3815
3816 ;
3817 return 0;
3818 }
3819 _ACEOF
3820 rm -f conftest.$ac_objext
3821 if { (ac_try="$ac_compile"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3827 $as_echo "$ac_try_echo") >&5
3828 (eval "$ac_compile") 2>conftest.er1
3829 ac_status=$?
3830 grep -v '^ *+' conftest.er1 >conftest.err
3831 rm -f conftest.er1
3832 cat conftest.err >&5
3833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } && {
3835 test -z "$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3837 } && test -s conftest.$ac_objext; then
3838 :
3839 else
3840 $as_echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843 ac_c_werror_flag=$ac_save_c_werror_flag
3844 CFLAGS="-g"
3845 cat >conftest.$ac_ext <<_ACEOF
3846 /* confdefs.h. */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851
3852 int
3853 main ()
3854 {
3855
3856 ;
3857 return 0;
3858 }
3859 _ACEOF
3860 rm -f conftest.$ac_objext
3861 if { (ac_try="$ac_compile"
3862 case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865 esac
3866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3867 $as_echo "$ac_try_echo") >&5
3868 (eval "$ac_compile") 2>conftest.er1
3869 ac_status=$?
3870 grep -v '^ *+' conftest.er1 >conftest.err
3871 rm -f conftest.er1
3872 cat conftest.err >&5
3873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } && {
3875 test -z "$ac_c_werror_flag" ||
3876 test ! -s conftest.err
3877 } && test -s conftest.$ac_objext; then
3878 ac_cv_prog_cc_g=yes
3879 else
3880 $as_echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3882
3883
3884 fi
3885
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 fi
3888
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 fi
3891
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 ac_c_werror_flag=$ac_save_c_werror_flag
3894 fi
3895 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3896 $as_echo "$ac_cv_prog_cc_g" >&6; }
3897 if test "$ac_test_CFLAGS" = set; then
3898 CFLAGS=$ac_save_CFLAGS
3899 elif test $ac_cv_prog_cc_g = yes; then
3900 if test "$GCC" = yes; then
3901 CFLAGS="-g -O2"
3902 else
3903 CFLAGS="-g"
3904 fi
3905 else
3906 if test "$GCC" = yes; then
3907 CFLAGS="-O2"
3908 else
3909 CFLAGS=
3910 fi
3911 fi
3912 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3913 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3914 if test "${ac_cv_prog_cc_c89+set}" = set; then
3915 $as_echo_n "(cached) " >&6
3916 else
3917 ac_cv_prog_cc_c89=no
3918 ac_save_CC=$CC
3919 cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h. */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 #include <stdarg.h>
3926 #include <stdio.h>
3927 #include <sys/types.h>
3928 #include <sys/stat.h>
3929 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3930 struct buf { int x; };
3931 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3932 static char *e (p, i)
3933 char **p;
3934 int i;
3935 {
3936 return p[i];
3937 }
3938 static char *f (char * (*g) (char **, int), char **p, ...)
3939 {
3940 char *s;
3941 va_list v;
3942 va_start (v,p);
3943 s = g (p, va_arg (v,int));
3944 va_end (v);
3945 return s;
3946 }
3947
3948 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3949 function prototypes and stuff, but not '\xHH' hex character constants.
3950 These don't provoke an error unfortunately, instead are silently treated
3951 as 'x'. The following induces an error, until -std is added to get
3952 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3953 array size at least. It's necessary to write '\x00'==0 to get something
3954 that's true only with -std. */
3955 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3956
3957 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3958 inside strings and character constants. */
3959 #define FOO(x) 'x'
3960 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3961
3962 int test (int i, double x);
3963 struct s1 {int (*f) (int a);};
3964 struct s2 {int (*f) (double a);};
3965 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3966 int argc;
3967 char **argv;
3968 int
3969 main ()
3970 {
3971 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3972 ;
3973 return 0;
3974 }
3975 _ACEOF
3976 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3977 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3978 do
3979 CC="$ac_save_CC $ac_arg"
3980 rm -f conftest.$ac_objext
3981 if { (ac_try="$ac_compile"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3987 $as_echo "$ac_try_echo") >&5
3988 (eval "$ac_compile") 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && {
3995 test -z "$ac_c_werror_flag" ||
3996 test ! -s conftest.err
3997 } && test -s conftest.$ac_objext; then
3998 ac_cv_prog_cc_c89=$ac_arg
3999 else
4000 $as_echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003
4004 fi
4005
4006 rm -f core conftest.err conftest.$ac_objext
4007 test "x$ac_cv_prog_cc_c89" != "xno" && break
4008 done
4009 rm -f conftest.$ac_ext
4010 CC=$ac_save_CC
4011
4012 fi
4013 # AC_CACHE_VAL
4014 case "x$ac_cv_prog_cc_c89" in
4015 x)
4016 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4017 $as_echo "none needed" >&6; } ;;
4018 xno)
4019 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4020 $as_echo "unsupported" >&6; } ;;
4021 *)
4022 CC="$CC $ac_cv_prog_cc_c89"
4023 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4024 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4025 esac
4026
4027
4028 ac_ext=c
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033 DEPDIR="${am__leading_dot}deps"
4034
4035 ac_config_commands="$ac_config_commands depfiles"
4036
4037
4038 am_make=${MAKE-make}
4039 cat > confinc << 'END'
4040 am__doit:
4041 @echo this is the am__doit target
4042 .PHONY: am__doit
4043 END
4044 # If we don't find an include directive, just comment out the code.
4045 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4046 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4047 am__include="#"
4048 am__quote=
4049 _am_result=none
4050 # First try GNU make style include.
4051 echo "include confinc" > confmf
4052 # Ignore all kinds of additional output from `make'.
4053 case `$am_make -s -f confmf 2> /dev/null` in #(
4054 *the\ am__doit\ target*)
4055 am__include=include
4056 am__quote=
4057 _am_result=GNU
4058 ;;
4059 esac
4060 # Now try BSD make style include.
4061 if test "$am__include" = "#"; then
4062 echo '.include "confinc"' > confmf
4063 case `$am_make -s -f confmf 2> /dev/null` in #(
4064 *the\ am__doit\ target*)
4065 am__include=.include
4066 am__quote="\""
4067 _am_result=BSD
4068 ;;
4069 esac
4070 fi
4071
4072
4073 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4074 $as_echo "$_am_result" >&6; }
4075 rm -f confinc confmf
4076
4077 # Check whether --enable-dependency-tracking was given.
4078 if test "${enable_dependency_tracking+set}" = set; then
4079 enableval=$enable_dependency_tracking;
4080 fi
4081
4082 if test "x$enable_dependency_tracking" != xno; then
4083 am_depcomp="$ac_aux_dir/depcomp"
4084 AMDEPBACKSLASH='\'
4085 fi
4086 if test "x$enable_dependency_tracking" != xno; then
4087 AMDEP_TRUE=
4088 AMDEP_FALSE='#'
4089 else
4090 AMDEP_TRUE='#'
4091 AMDEP_FALSE=
4092 fi
4093
4094
4095
4096 depcc="$CC" am_compiler_list=
4097
4098 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4099 $as_echo_n "checking dependency style of $depcc... " >&6; }
4100 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4101 $as_echo_n "(cached) " >&6
4102 else
4103 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4104 # We make a subdir and do the tests there. Otherwise we can end up
4105 # making bogus files that we don't know about and never remove. For
4106 # instance it was reported that on HP-UX the gcc test will end up
4107 # making a dummy file named `D' -- because `-MD' means `put the output
4108 # in D'.
4109 mkdir conftest.dir
4110 # Copy depcomp to subdir because otherwise we won't find it if we're
4111 # using a relative directory.
4112 cp "$am_depcomp" conftest.dir
4113 cd conftest.dir
4114 # We will build objects and dependencies in a subdirectory because
4115 # it helps to detect inapplicable dependency modes. For instance
4116 # both Tru64's cc and ICC support -MD to output dependencies as a
4117 # side effect of compilation, but ICC will put the dependencies in
4118 # the current directory while Tru64 will put them in the object
4119 # directory.
4120 mkdir sub
4121
4122 am_cv_CC_dependencies_compiler_type=none
4123 if test "$am_compiler_list" = ""; then
4124 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4125 fi
4126 am__universal=false
4127 case " $depcc " in #(
4128 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4129 esac
4130
4131 for depmode in $am_compiler_list; do
4132 # Setup a source with many dependencies, because some compilers
4133 # like to wrap large dependency lists on column 80 (with \), and
4134 # we should not choose a depcomp mode which is confused by this.
4135 #
4136 # We need to recreate these files for each test, as the compiler may
4137 # overwrite some of them when testing with obscure command lines.
4138 # This happens at least with the AIX C compiler.
4139 : > sub/conftest.c
4140 for i in 1 2 3 4 5 6; do
4141 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4142 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4143 # Solaris 8's {/usr,}/bin/sh.
4144 touch sub/conftst$i.h
4145 done
4146 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4147
4148 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4149 # mode. It turns out that the SunPro C++ compiler does not properly
4150 # handle `-M -o', and we need to detect this. Also, some Intel
4151 # versions had trouble with output in subdirs
4152 am__obj=sub/conftest.${OBJEXT-o}
4153 am__minus_obj="-o $am__obj"
4154 case $depmode in
4155 gcc)
4156 # This depmode causes a compiler race in universal mode.
4157 test "$am__universal" = false || continue
4158 ;;
4159 nosideeffect)
4160 # after this tag, mechanisms are not by side-effect, so they'll
4161 # only be used when explicitly requested
4162 if test "x$enable_dependency_tracking" = xyes; then
4163 continue
4164 else
4165 break
4166 fi
4167 ;;
4168 msvisualcpp | msvcmsys)
4169 # This compiler won't grok `-c -o', but also, the minuso test has
4170 # not run yet. These depmodes are late enough in the game, and
4171 # so weak that their functioning should not be impacted.
4172 am__obj=conftest.${OBJEXT-o}
4173 am__minus_obj=
4174 ;;
4175 none) break ;;
4176 esac
4177 if depmode=$depmode \
4178 source=sub/conftest.c object=$am__obj \
4179 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4180 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4181 >/dev/null 2>conftest.err &&
4182 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4183 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4184 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4185 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4186 # icc doesn't choke on unknown options, it will just issue warnings
4187 # or remarks (even with -Werror). So we grep stderr for any message
4188 # that says an option was ignored or not supported.
4189 # When given -MP, icc 7.0 and 7.1 complain thusly:
4190 # icc: Command line warning: ignoring option '-M'; no argument required
4191 # The diagnosis changed in icc 8.0:
4192 # icc: Command line remark: option '-MP' not supported
4193 if (grep 'ignoring option' conftest.err ||
4194 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4195 am_cv_CC_dependencies_compiler_type=$depmode
4196 break
4197 fi
4198 fi
4199 done
4200
4201 cd ..
4202 rm -rf conftest.dir
4203 else
4204 am_cv_CC_dependencies_compiler_type=none
4205 fi
4206
4207 fi
4208 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4209 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4210 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4211
4212 if
4213 test "x$enable_dependency_tracking" != xno \
4214 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4215 am__fastdepCC_TRUE=
4216 am__fastdepCC_FALSE='#'
4217 else
4218 am__fastdepCC_TRUE='#'
4219 am__fastdepCC_FALSE=
4220 fi
4221
4222
4223 case `pwd` in
4224 *\ * | *\ *)
4225 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4226 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4227 esac
4228
4229
4230
4231 macro_version='2.2.6b'
4232 macro_revision='1.3017'
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246 ltmain="$ac_aux_dir/ltmain.sh"
4247
4248 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4249 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4250 if test "${ac_cv_path_SED+set}" = set; then
4251 $as_echo_n "(cached) " >&6
4252 else
4253 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4254 for ac_i in 1 2 3 4 5 6 7; do
4255 ac_script="$ac_script$as_nl$ac_script"
4256 done
4257 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4258 $as_unset ac_script || ac_script=
4259 if test -z "$SED"; then
4260 ac_path_SED_found=false
4261 # Loop through the user's path and test for each of PROGNAME-LIST
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4264 do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_prog in sed gsed; do
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4270 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4271 # Check for GNU ac_path_SED and select it if it is found.
4272 # Check for GNU $ac_path_SED
4273 case `"$ac_path_SED" --version 2>&1` in
4274 *GNU*)
4275 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4276 *)
4277 ac_count=0
4278 $as_echo_n 0123456789 >"conftest.in"
4279 while :
4280 do
4281 cat "conftest.in" "conftest.in" >"conftest.tmp"
4282 mv "conftest.tmp" "conftest.in"
4283 cp "conftest.in" "conftest.nl"
4284 $as_echo '' >> "conftest.nl"
4285 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4287 ac_count=`expr $ac_count + 1`
4288 if test $ac_count -gt ${ac_path_SED_max-0}; then
4289 # Best one so far, save it but keep looking for a better one
4290 ac_cv_path_SED="$ac_path_SED"
4291 ac_path_SED_max=$ac_count
4292 fi
4293 # 10*(2^10) chars as input seems more than enough
4294 test $ac_count -gt 10 && break
4295 done
4296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4297 esac
4298
4299 $ac_path_SED_found && break 3
4300 done
4301 done
4302 done
4303 IFS=$as_save_IFS
4304 if test -z "$ac_cv_path_SED"; then
4305 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4306 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4307 { (exit 1); exit 1; }; }
4308 fi
4309 else
4310 ac_cv_path_SED=$SED
4311 fi
4312
4313 fi
4314 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4315 $as_echo "$ac_cv_path_SED" >&6; }
4316 SED="$ac_cv_path_SED"
4317 rm -f conftest.sed
4318
4319 test -z "$SED" && SED=sed
4320 Xsed="$SED -e 1s/^X//"
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4333 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4334 if test "${ac_cv_path_GREP+set}" = set; then
4335 $as_echo_n "(cached) " >&6
4336 else
4337 if test -z "$GREP"; then
4338 ac_path_GREP_found=false
4339 # Loop through the user's path and test for each of PROGNAME-LIST
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4342 do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_prog in grep ggrep; do
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4348 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4349 # Check for GNU ac_path_GREP and select it if it is found.
4350 # Check for GNU $ac_path_GREP
4351 case `"$ac_path_GREP" --version 2>&1` in
4352 *GNU*)
4353 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4354 *)
4355 ac_count=0
4356 $as_echo_n 0123456789 >"conftest.in"
4357 while :
4358 do
4359 cat "conftest.in" "conftest.in" >"conftest.tmp"
4360 mv "conftest.tmp" "conftest.in"
4361 cp "conftest.in" "conftest.nl"
4362 $as_echo 'GREP' >> "conftest.nl"
4363 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4365 ac_count=`expr $ac_count + 1`
4366 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4367 # Best one so far, save it but keep looking for a better one
4368 ac_cv_path_GREP="$ac_path_GREP"
4369 ac_path_GREP_max=$ac_count
4370 fi
4371 # 10*(2^10) chars as input seems more than enough
4372 test $ac_count -gt 10 && break
4373 done
4374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4375 esac
4376
4377 $ac_path_GREP_found && break 3
4378 done
4379 done
4380 done
4381 IFS=$as_save_IFS
4382 if test -z "$ac_cv_path_GREP"; then
4383 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4384 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4385 { (exit 1); exit 1; }; }
4386 fi
4387 else
4388 ac_cv_path_GREP=$GREP
4389 fi
4390
4391 fi
4392 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4393 $as_echo "$ac_cv_path_GREP" >&6; }
4394 GREP="$ac_cv_path_GREP"
4395
4396
4397 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4398 $as_echo_n "checking for egrep... " >&6; }
4399 if test "${ac_cv_path_EGREP+set}" = set; then
4400 $as_echo_n "(cached) " >&6
4401 else
4402 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4403 then ac_cv_path_EGREP="$GREP -E"
4404 else
4405 if test -z "$EGREP"; then
4406 ac_path_EGREP_found=false
4407 # Loop through the user's path and test for each of PROGNAME-LIST
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4410 do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_prog in egrep; do
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4416 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4417 # Check for GNU ac_path_EGREP and select it if it is found.
4418 # Check for GNU $ac_path_EGREP
4419 case `"$ac_path_EGREP" --version 2>&1` in
4420 *GNU*)
4421 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4422 *)
4423 ac_count=0
4424 $as_echo_n 0123456789 >"conftest.in"
4425 while :
4426 do
4427 cat "conftest.in" "conftest.in" >"conftest.tmp"
4428 mv "conftest.tmp" "conftest.in"
4429 cp "conftest.in" "conftest.nl"
4430 $as_echo 'EGREP' >> "conftest.nl"
4431 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4432 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4433 ac_count=`expr $ac_count + 1`
4434 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4435 # Best one so far, save it but keep looking for a better one
4436 ac_cv_path_EGREP="$ac_path_EGREP"
4437 ac_path_EGREP_max=$ac_count
4438 fi
4439 # 10*(2^10) chars as input seems more than enough
4440 test $ac_count -gt 10 && break
4441 done
4442 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4443 esac
4444
4445 $ac_path_EGREP_found && break 3
4446 done
4447 done
4448 done
4449 IFS=$as_save_IFS
4450 if test -z "$ac_cv_path_EGREP"; then
4451 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4452 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4453 { (exit 1); exit 1; }; }
4454 fi
4455 else
4456 ac_cv_path_EGREP=$EGREP
4457 fi
4458
4459 fi
4460 fi
4461 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4462 $as_echo "$ac_cv_path_EGREP" >&6; }
4463 EGREP="$ac_cv_path_EGREP"
4464
4465
4466 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4467 $as_echo_n "checking for fgrep... " >&6; }
4468 if test "${ac_cv_path_FGREP+set}" = set; then
4469 $as_echo_n "(cached) " >&6
4470 else
4471 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4472 then ac_cv_path_FGREP="$GREP -F"
4473 else
4474 if test -z "$FGREP"; then
4475 ac_path_FGREP_found=false
4476 # Loop through the user's path and test for each of PROGNAME-LIST
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4479 do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_prog in fgrep; do
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4485 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4486 # Check for GNU ac_path_FGREP and select it if it is found.
4487 # Check for GNU $ac_path_FGREP
4488 case `"$ac_path_FGREP" --version 2>&1` in
4489 *GNU*)
4490 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4491 *)
4492 ac_count=0
4493 $as_echo_n 0123456789 >"conftest.in"
4494 while :
4495 do
4496 cat "conftest.in" "conftest.in" >"conftest.tmp"
4497 mv "conftest.tmp" "conftest.in"
4498 cp "conftest.in" "conftest.nl"
4499 $as_echo 'FGREP' >> "conftest.nl"
4500 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4502 ac_count=`expr $ac_count + 1`
4503 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4504 # Best one so far, save it but keep looking for a better one
4505 ac_cv_path_FGREP="$ac_path_FGREP"
4506 ac_path_FGREP_max=$ac_count
4507 fi
4508 # 10*(2^10) chars as input seems more than enough
4509 test $ac_count -gt 10 && break
4510 done
4511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4512 esac
4513
4514 $ac_path_FGREP_found && break 3
4515 done
4516 done
4517 done
4518 IFS=$as_save_IFS
4519 if test -z "$ac_cv_path_FGREP"; then
4520 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4521 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4522 { (exit 1); exit 1; }; }
4523 fi
4524 else
4525 ac_cv_path_FGREP=$FGREP
4526 fi
4527
4528 fi
4529 fi
4530 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4531 $as_echo "$ac_cv_path_FGREP" >&6; }
4532 FGREP="$ac_cv_path_FGREP"
4533
4534
4535 test -z "$GREP" && GREP=grep
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555 # Check whether --with-gnu-ld was given.
4556 if test "${with_gnu_ld+set}" = set; then
4557 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4558 else
4559 with_gnu_ld=no
4560 fi
4561
4562 ac_prog=ld
4563 if test "$GCC" = yes; then
4564 # Check if gcc -print-prog-name=ld gives a path.
4565 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4566 $as_echo_n "checking for ld used by $CC... " >&6; }
4567 case $host in
4568 *-*-mingw*)
4569 # gcc leaves a trailing carriage return which upsets mingw
4570 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4571 *)
4572 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4573 esac
4574 case $ac_prog in
4575 # Accept absolute paths.
4576 [\\/]* | ?:[\\/]*)
4577 re_direlt='/[^/][^/]*/\.\./'
4578 # Canonicalize the pathname of ld
4579 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4580 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4581 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4582 done
4583 test -z "$LD" && LD="$ac_prog"
4584 ;;
4585 "")
4586 # If it fails, then pretend we aren't using GCC.
4587 ac_prog=ld
4588 ;;
4589 *)
4590 # If it is relative, then search for the first ld in PATH.
4591 with_gnu_ld=unknown
4592 ;;
4593 esac
4594 elif test "$with_gnu_ld" = yes; then
4595 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4596 $as_echo_n "checking for GNU ld... " >&6; }
4597 else
4598 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4599 $as_echo_n "checking for non-GNU ld... " >&6; }
4600 fi
4601 if test "${lt_cv_path_LD+set}" = set; then
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -z "$LD"; then
4605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4606 for ac_dir in $PATH; do
4607 IFS="$lt_save_ifs"
4608 test -z "$ac_dir" && ac_dir=.
4609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4610 lt_cv_path_LD="$ac_dir/$ac_prog"
4611 # Check to see if the program is GNU ld. I'd rather use --version,
4612 # but apparently some variants of GNU ld only accept -v.
4613 # Break only if it was the GNU/non-GNU ld that we prefer.
4614 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4615 *GNU* | *'with BFD'*)
4616 test "$with_gnu_ld" != no && break
4617 ;;
4618 *)
4619 test "$with_gnu_ld" != yes && break
4620 ;;
4621 esac
4622 fi
4623 done
4624 IFS="$lt_save_ifs"
4625 else
4626 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4627 fi
4628 fi
4629
4630 LD="$lt_cv_path_LD"
4631 if test -n "$LD"; then
4632 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4633 $as_echo "$LD" >&6; }
4634 else
4635 { $as_echo "$as_me:$LINENO: result: no" >&5
4636 $as_echo "no" >&6; }
4637 fi
4638 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4639 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4640 { (exit 1); exit 1; }; }
4641 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4642 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4643 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4644 $as_echo_n "(cached) " >&6
4645 else
4646 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4647 case `$LD -v 2>&1 </dev/null` in
4648 *GNU* | *'with BFD'*)
4649 lt_cv_prog_gnu_ld=yes
4650 ;;
4651 *)
4652 lt_cv_prog_gnu_ld=no
4653 ;;
4654 esac
4655 fi
4656 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4657 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4658 with_gnu_ld=$lt_cv_prog_gnu_ld
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4669 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4670 if test "${lt_cv_path_NM+set}" = set; then
4671 $as_echo_n "(cached) " >&6
4672 else
4673 if test -n "$NM"; then
4674 # Let the user override the test.
4675 lt_cv_path_NM="$NM"
4676 else
4677 lt_nm_to_check="${ac_tool_prefix}nm"
4678 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4679 lt_nm_to_check="$lt_nm_to_check nm"
4680 fi
4681 for lt_tmp_nm in $lt_nm_to_check; do
4682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4683 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4684 IFS="$lt_save_ifs"
4685 test -z "$ac_dir" && ac_dir=.
4686 tmp_nm="$ac_dir/$lt_tmp_nm"
4687 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4688 # Check to see if the nm accepts a BSD-compat flag.
4689 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4690 # nm: unknown option "B" ignored
4691 # Tru64's nm complains that /dev/null is an invalid object file
4692 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4693 */dev/null* | *'Invalid file or object type'*)
4694 lt_cv_path_NM="$tmp_nm -B"
4695 break
4696 ;;
4697 *)
4698 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4699 */dev/null*)
4700 lt_cv_path_NM="$tmp_nm -p"
4701 break
4702 ;;
4703 *)
4704 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4705 continue # so that we can try to find one that supports BSD flags
4706 ;;
4707 esac
4708 ;;
4709 esac
4710 fi
4711 done
4712 IFS="$lt_save_ifs"
4713 done
4714 : ${lt_cv_path_NM=no}
4715 fi
4716 fi
4717 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4718 $as_echo "$lt_cv_path_NM" >&6; }
4719 if test "$lt_cv_path_NM" != "no"; then
4720 NM="$lt_cv_path_NM"
4721 else
4722 # Didn't find any BSD compatible name lister, look for dumpbin.
4723 if test -n "$ac_tool_prefix"; then
4724 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4725 do
4726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4727 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4731 $as_echo_n "(cached) " >&6
4732 else
4733 if test -n "$DUMPBIN"; then
4734 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4735 else
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4738 do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747 done
4748 done
4749 IFS=$as_save_IFS
4750
4751 fi
4752 fi
4753 DUMPBIN=$ac_cv_prog_DUMPBIN
4754 if test -n "$DUMPBIN"; then
4755 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4756 $as_echo "$DUMPBIN" >&6; }
4757 else
4758 { $as_echo "$as_me:$LINENO: result: no" >&5
4759 $as_echo "no" >&6; }
4760 fi
4761
4762
4763 test -n "$DUMPBIN" && break
4764 done
4765 fi
4766 if test -z "$DUMPBIN"; then
4767 ac_ct_DUMPBIN=$DUMPBIN
4768 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4769 do
4770 # Extract the first word of "$ac_prog", so it can be a program name with args.
4771 set dummy $ac_prog; ac_word=$2
4772 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4775 $as_echo_n "(cached) " >&6
4776 else
4777 if test -n "$ac_ct_DUMPBIN"; then
4778 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4779 else
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4788 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791 done
4792 done
4793 IFS=$as_save_IFS
4794
4795 fi
4796 fi
4797 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4798 if test -n "$ac_ct_DUMPBIN"; then
4799 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4800 $as_echo "$ac_ct_DUMPBIN" >&6; }
4801 else
4802 { $as_echo "$as_me:$LINENO: result: no" >&5
4803 $as_echo "no" >&6; }
4804 fi
4805
4806
4807 test -n "$ac_ct_DUMPBIN" && break
4808 done
4809
4810 if test "x$ac_ct_DUMPBIN" = x; then
4811 DUMPBIN=":"
4812 else
4813 case $cross_compiling:$ac_tool_warned in
4814 yes:)
4815 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4818 esac
4819 DUMPBIN=$ac_ct_DUMPBIN
4820 fi
4821 fi
4822
4823
4824 if test "$DUMPBIN" != ":"; then
4825 NM="$DUMPBIN"
4826 fi
4827 fi
4828 test -z "$NM" && NM=nm
4829
4830
4831
4832
4833
4834
4835 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4836 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4837 if test "${lt_cv_nm_interface+set}" = set; then
4838 $as_echo_n "(cached) " >&6
4839 else
4840 lt_cv_nm_interface="BSD nm"
4841 echo "int some_variable = 0;" > conftest.$ac_ext
4842 (eval echo "\"\$as_me:4842: $ac_compile\"" >&5)
4843 (eval "$ac_compile" 2>conftest.err)
4844 cat conftest.err >&5
4845 (eval echo "\"\$as_me:4845: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4846 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4847 cat conftest.err >&5
4848 (eval echo "\"\$as_me:4848: output\"" >&5)
4849 cat conftest.out >&5
4850 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4851 lt_cv_nm_interface="MS dumpbin"
4852 fi
4853 rm -f conftest*
4854 fi
4855 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4856 $as_echo "$lt_cv_nm_interface" >&6; }
4857
4858 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4859 $as_echo_n "checking whether ln -s works... " >&6; }
4860 LN_S=$as_ln_s
4861 if test "$LN_S" = "ln -s"; then
4862 { $as_echo "$as_me:$LINENO: result: yes" >&5
4863 $as_echo "yes" >&6; }
4864 else
4865 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4866 $as_echo "no, using $LN_S" >&6; }
4867 fi
4868
4869 # find the maximum length of command line arguments
4870 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4871 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4872 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4873 $as_echo_n "(cached) " >&6
4874 else
4875 i=0
4876 teststring="ABCD"
4877
4878 case $build_os in
4879 msdosdjgpp*)
4880 # On DJGPP, this test can blow up pretty badly due to problems in libc
4881 # (any single argument exceeding 2000 bytes causes a buffer overrun
4882 # during glob expansion). Even if it were fixed, the result of this
4883 # check would be larger than it should be.
4884 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4885 ;;
4886
4887 gnu*)
4888 # Under GNU Hurd, this test is not required because there is
4889 # no limit to the length of command line arguments.
4890 # Libtool will interpret -1 as no limit whatsoever
4891 lt_cv_sys_max_cmd_len=-1;
4892 ;;
4893
4894 cygwin* | mingw* | cegcc*)
4895 # On Win9x/ME, this test blows up -- it succeeds, but takes
4896 # about 5 minutes as the teststring grows exponentially.
4897 # Worse, since 9x/ME are not pre-emptively multitasking,
4898 # you end up with a "frozen" computer, even though with patience
4899 # the test eventually succeeds (with a max line length of 256k).
4900 # Instead, let's just punt: use the minimum linelength reported by
4901 # all of the supported platforms: 8192 (on NT/2K/XP).
4902 lt_cv_sys_max_cmd_len=8192;
4903 ;;
4904
4905 amigaos*)
4906 # On AmigaOS with pdksh, this test takes hours, literally.
4907 # So we just punt and use a minimum line length of 8192.
4908 lt_cv_sys_max_cmd_len=8192;
4909 ;;
4910
4911 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4912 # This has been around since 386BSD, at least. Likely further.
4913 if test -x /sbin/sysctl; then
4914 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4915 elif test -x /usr/sbin/sysctl; then
4916 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4917 else
4918 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4919 fi
4920 # And add a safety zone
4921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4922 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4923 ;;
4924
4925 interix*)
4926 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4927 lt_cv_sys_max_cmd_len=196608
4928 ;;
4929
4930 osf*)
4931 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4932 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4933 # nice to cause kernel panics so lets avoid the loop below.
4934 # First set a reasonable default.
4935 lt_cv_sys_max_cmd_len=16384
4936 #
4937 if test -x /sbin/sysconfig; then
4938 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4939 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4940 esac
4941 fi
4942 ;;
4943 sco3.2v5*)
4944 lt_cv_sys_max_cmd_len=102400
4945 ;;
4946 sysv5* | sco5v6* | sysv4.2uw2*)
4947 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4948 if test -n "$kargmax"; then
4949 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4950 else
4951 lt_cv_sys_max_cmd_len=32768
4952 fi
4953 ;;
4954 *)
4955 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4956 if test -n "$lt_cv_sys_max_cmd_len"; then
4957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4959 else
4960 # Make teststring a little bigger before we do anything with it.
4961 # a 1K string should be a reasonable start.
4962 for i in 1 2 3 4 5 6 7 8 ; do
4963 teststring=$teststring$teststring
4964 done
4965 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4966 # If test is not a shell built-in, we'll probably end up computing a
4967 # maximum length that is only half of the actual maximum length, but
4968 # we can't tell.
4969 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4970 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4971 test $i != 17 # 1/2 MB should be enough
4972 do
4973 i=`expr $i + 1`
4974 teststring=$teststring$teststring
4975 done
4976 # Only check the string length outside the loop.
4977 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4978 teststring=
4979 # Add a significant safety factor because C++ compilers can tack on
4980 # massive amounts of additional arguments before passing them to the
4981 # linker. It appears as though 1/2 is a usable value.
4982 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4983 fi
4984 ;;
4985 esac
4986
4987 fi
4988
4989 if test -n $lt_cv_sys_max_cmd_len ; then
4990 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4991 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4992 else
4993 { $as_echo "$as_me:$LINENO: result: none" >&5
4994 $as_echo "none" >&6; }
4995 fi
4996 max_cmd_len=$lt_cv_sys_max_cmd_len
4997
4998
4999
5000
5001
5002
5003 : ${CP="cp -f"}
5004 : ${MV="mv -f"}
5005 : ${RM="rm -f"}
5006
5007 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5008 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5009 # Try some XSI features
5010 xsi_shell=no
5011 ( _lt_dummy="a/b/c"
5012 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5013 = c,a/b,, \
5014 && eval 'test $(( 1 + 1 )) -eq 2 \
5015 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5016 && xsi_shell=yes
5017 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5018 $as_echo "$xsi_shell" >&6; }
5019
5020
5021 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5022 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5023 lt_shell_append=no
5024 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5025 >/dev/null 2>&1 \
5026 && lt_shell_append=yes
5027 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5028 $as_echo "$lt_shell_append" >&6; }
5029
5030
5031 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5032 lt_unset=unset
5033 else
5034 lt_unset=false
5035 fi
5036
5037
5038
5039
5040
5041 # test EBCDIC or ASCII
5042 case `echo X|tr X '\101'` in
5043 A) # ASCII based system
5044 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5045 lt_SP2NL='tr \040 \012'
5046 lt_NL2SP='tr \015\012 \040\040'
5047 ;;
5048 *) # EBCDIC based system
5049 lt_SP2NL='tr \100 \n'
5050 lt_NL2SP='tr \r\n \100\100'
5051 ;;
5052 esac
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5063 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5064 if test "${lt_cv_ld_reload_flag+set}" = set; then
5065 $as_echo_n "(cached) " >&6
5066 else
5067 lt_cv_ld_reload_flag='-r'
5068 fi
5069 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5070 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5071 reload_flag=$lt_cv_ld_reload_flag
5072 case $reload_flag in
5073 "" | " "*) ;;
5074 *) reload_flag=" $reload_flag" ;;
5075 esac
5076 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5077 case $host_os in
5078 darwin*)
5079 if test "$GCC" = yes; then
5080 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5081 else
5082 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5083 fi
5084 ;;
5085 esac
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095 if test -n "$ac_tool_prefix"; then
5096 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5097 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -n "$OBJDUMP"; then
5104 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5116 fi
5117 done
5118 done
5119 IFS=$as_save_IFS
5120
5121 fi
5122 fi
5123 OBJDUMP=$ac_cv_prog_OBJDUMP
5124 if test -n "$OBJDUMP"; then
5125 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5126 $as_echo "$OBJDUMP" >&6; }
5127 else
5128 { $as_echo "$as_me:$LINENO: result: no" >&5
5129 $as_echo "no" >&6; }
5130 fi
5131
5132
5133 fi
5134 if test -z "$ac_cv_prog_OBJDUMP"; then
5135 ac_ct_OBJDUMP=$OBJDUMP
5136 # Extract the first word of "objdump", so it can be a program name with args.
5137 set dummy objdump; ac_word=$2
5138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5141 $as_echo_n "(cached) " >&6
5142 else
5143 if test -n "$ac_ct_OBJDUMP"; then
5144 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5156 fi
5157 done
5158 done
5159 IFS=$as_save_IFS
5160
5161 fi
5162 fi
5163 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5164 if test -n "$ac_ct_OBJDUMP"; then
5165 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5166 $as_echo "$ac_ct_OBJDUMP" >&6; }
5167 else
5168 { $as_echo "$as_me:$LINENO: result: no" >&5
5169 $as_echo "no" >&6; }
5170 fi
5171
5172 if test "x$ac_ct_OBJDUMP" = x; then
5173 OBJDUMP="false"
5174 else
5175 case $cross_compiling:$ac_tool_warned in
5176 yes:)
5177 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5179 ac_tool_warned=yes ;;
5180 esac
5181 OBJDUMP=$ac_ct_OBJDUMP
5182 fi
5183 else
5184 OBJDUMP="$ac_cv_prog_OBJDUMP"
5185 fi
5186
5187 test -z "$OBJDUMP" && OBJDUMP=objdump
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5198 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5199 if test "${lt_cv_deplibs_check_method+set}" = set; then
5200 $as_echo_n "(cached) " >&6
5201 else
5202 lt_cv_file_magic_cmd='$MAGIC_CMD'
5203 lt_cv_file_magic_test_file=
5204 lt_cv_deplibs_check_method='unknown'
5205 # Need to set the preceding variable on all platforms that support
5206 # interlibrary dependencies.
5207 # 'none' -- dependencies not supported.
5208 # `unknown' -- same as none, but documents that we really don't know.
5209 # 'pass_all' -- all dependencies passed with no checks.
5210 # 'test_compile' -- check by making test program.
5211 # 'file_magic [[regex]]' -- check by looking for files in library path
5212 # which responds to the $file_magic_cmd with a given extended regex.
5213 # If you have `file' or equivalent on your system and you're not sure
5214 # whether `pass_all' will *always* work, you probably want this one.
5215
5216 case $host_os in
5217 aix[4-9]*)
5218 lt_cv_deplibs_check_method=pass_all
5219 ;;
5220
5221 beos*)
5222 lt_cv_deplibs_check_method=pass_all
5223 ;;
5224
5225 bsdi[45]*)
5226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5227 lt_cv_file_magic_cmd='/usr/bin/file -L'
5228 lt_cv_file_magic_test_file=/shlib/libc.so
5229 ;;
5230
5231 cygwin*)
5232 # func_win32_libid is a shell function defined in ltmain.sh
5233 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5234 lt_cv_file_magic_cmd='func_win32_libid'
5235 ;;
5236
5237 mingw* | pw32*)
5238 # Base MSYS/MinGW do not provide the 'file' command needed by
5239 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5240 # unless we find 'file', for example because we are cross-compiling.
5241 if ( file / ) >/dev/null 2>&1; then
5242 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5243 lt_cv_file_magic_cmd='func_win32_libid'
5244 else
5245 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5246 lt_cv_file_magic_cmd='$OBJDUMP -f'
5247 fi
5248 ;;
5249
5250 cegcc)
5251 # use the weaker test based on 'objdump'. See mingw*.
5252 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5253 lt_cv_file_magic_cmd='$OBJDUMP -f'
5254 ;;
5255
5256 darwin* | rhapsody*)
5257 lt_cv_deplibs_check_method=pass_all
5258 ;;
5259
5260 freebsd* | dragonfly*)
5261 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5262 case $host_cpu in
5263 i*86 )
5264 # Not sure whether the presence of OpenBSD here was a mistake.
5265 # Let's accept both of them until this is cleared up.
5266 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5267 lt_cv_file_magic_cmd=/usr/bin/file
5268 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5269 ;;
5270 esac
5271 else
5272 lt_cv_deplibs_check_method=pass_all
5273 fi
5274 ;;
5275
5276 gnu*)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
5279
5280 hpux10.20* | hpux11*)
5281 lt_cv_file_magic_cmd=/usr/bin/file
5282 case $host_cpu in
5283 ia64*)
5284 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5285 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5286 ;;
5287 hppa*64*)
5288 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]'
5289 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5290 ;;
5291 *)
5292 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5293 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5294 ;;
5295 esac
5296 ;;
5297
5298 interix[3-9]*)
5299 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5301 ;;
5302
5303 irix5* | irix6* | nonstopux*)
5304 case $LD in
5305 *-32|*"-32 ") libmagic=32-bit;;
5306 *-n32|*"-n32 ") libmagic=N32;;
5307 *-64|*"-64 ") libmagic=64-bit;;
5308 *) libmagic=never-match;;
5309 esac
5310 lt_cv_deplibs_check_method=pass_all
5311 ;;
5312
5313 # This must be Linux ELF.
5314 linux* | k*bsd*-gnu)
5315 lt_cv_deplibs_check_method=pass_all
5316 ;;
5317
5318 netbsd*)
5319 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5321 else
5322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5323 fi
5324 ;;
5325
5326 newos6*)
5327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5328 lt_cv_file_magic_cmd=/usr/bin/file
5329 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5330 ;;
5331
5332 *nto* | *qnx*)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335
5336 openbsd*)
5337 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5339 else
5340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5341 fi
5342 ;;
5343
5344 osf3* | osf4* | osf5*)
5345 lt_cv_deplibs_check_method=pass_all
5346 ;;
5347
5348 rdos*)
5349 lt_cv_deplibs_check_method=pass_all
5350 ;;
5351
5352 solaris*)
5353 lt_cv_deplibs_check_method=pass_all
5354 ;;
5355
5356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5357 lt_cv_deplibs_check_method=pass_all
5358 ;;
5359
5360 sysv4 | sysv4.3*)
5361 case $host_vendor in
5362 motorola)
5363 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]'
5364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5365 ;;
5366 ncr)
5367 lt_cv_deplibs_check_method=pass_all
5368 ;;
5369 sequent)
5370 lt_cv_file_magic_cmd='/bin/file'
5371 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5372 ;;
5373 sni)
5374 lt_cv_file_magic_cmd='/bin/file'
5375 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5376 lt_cv_file_magic_test_file=/lib/libc.so
5377 ;;
5378 siemens)
5379 lt_cv_deplibs_check_method=pass_all
5380 ;;
5381 pc)
5382 lt_cv_deplibs_check_method=pass_all
5383 ;;
5384 esac
5385 ;;
5386
5387 tpf*)
5388 lt_cv_deplibs_check_method=pass_all
5389 ;;
5390 esac
5391
5392 fi
5393 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5394 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5395 file_magic_cmd=$lt_cv_file_magic_cmd
5396 deplibs_check_method=$lt_cv_deplibs_check_method
5397 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410 if test -n "$ac_tool_prefix"; then
5411 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5412 set dummy ${ac_tool_prefix}ar; ac_word=$2
5413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5414 $as_echo_n "checking for $ac_word... " >&6; }
5415 if test "${ac_cv_prog_AR+set}" = set; then
5416 $as_echo_n "(cached) " >&6
5417 else
5418 if test -n "$AR"; then
5419 ac_cv_prog_AR="$AR" # Let the user override the test.
5420 else
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH
5423 do
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5428 ac_cv_prog_AR="${ac_tool_prefix}ar"
5429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 break 2
5431 fi
5432 done
5433 done
5434 IFS=$as_save_IFS
5435
5436 fi
5437 fi
5438 AR=$ac_cv_prog_AR
5439 if test -n "$AR"; then
5440 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5441 $as_echo "$AR" >&6; }
5442 else
5443 { $as_echo "$as_me:$LINENO: result: no" >&5
5444 $as_echo "no" >&6; }
5445 fi
5446
5447
5448 fi
5449 if test -z "$ac_cv_prog_AR"; then
5450 ac_ct_AR=$AR
5451 # Extract the first word of "ar", so it can be a program name with args.
5452 set dummy ar; ac_word=$2
5453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5456 $as_echo_n "(cached) " >&6
5457 else
5458 if test -n "$ac_ct_AR"; then
5459 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5460 else
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5463 do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468 ac_cv_prog_ac_ct_AR="ar"
5469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5471 fi
5472 done
5473 done
5474 IFS=$as_save_IFS
5475
5476 fi
5477 fi
5478 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5479 if test -n "$ac_ct_AR"; then
5480 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5481 $as_echo "$ac_ct_AR" >&6; }
5482 else
5483 { $as_echo "$as_me:$LINENO: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486
5487 if test "x$ac_ct_AR" = x; then
5488 AR="false"
5489 else
5490 case $cross_compiling:$ac_tool_warned in
5491 yes:)
5492 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494 ac_tool_warned=yes ;;
5495 esac
5496 AR=$ac_ct_AR
5497 fi
5498 else
5499 AR="$ac_cv_prog_AR"
5500 fi
5501
5502 test -z "$AR" && AR=ar
5503 test -z "$AR_FLAGS" && AR_FLAGS=cru
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515 if test -n "$ac_tool_prefix"; then
5516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5517 set dummy ${ac_tool_prefix}strip; ac_word=$2
5518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if test "${ac_cv_prog_STRIP+set}" = set; then
5521 $as_echo_n "(cached) " >&6
5522 else
5523 if test -n "$STRIP"; then
5524 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5525 else
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5528 do
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5536 fi
5537 done
5538 done
5539 IFS=$as_save_IFS
5540
5541 fi
5542 fi
5543 STRIP=$ac_cv_prog_STRIP
5544 if test -n "$STRIP"; then
5545 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5546 $as_echo "$STRIP" >&6; }
5547 else
5548 { $as_echo "$as_me:$LINENO: result: no" >&5
5549 $as_echo "no" >&6; }
5550 fi
5551
5552
5553 fi
5554 if test -z "$ac_cv_prog_STRIP"; then
5555 ac_ct_STRIP=$STRIP
5556 # Extract the first word of "strip", so it can be a program name with args.
5557 set dummy strip; ac_word=$2
5558 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5561 $as_echo_n "(cached) " >&6
5562 else
5563 if test -n "$ac_ct_STRIP"; then
5564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_prog_ac_ct_STRIP="strip"
5574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 break 2
5576 fi
5577 done
5578 done
5579 IFS=$as_save_IFS
5580
5581 fi
5582 fi
5583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5584 if test -n "$ac_ct_STRIP"; then
5585 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5586 $as_echo "$ac_ct_STRIP" >&6; }
5587 else
5588 { $as_echo "$as_me:$LINENO: result: no" >&5
5589 $as_echo "no" >&6; }
5590 fi
5591
5592 if test "x$ac_ct_STRIP" = x; then
5593 STRIP=":"
5594 else
5595 case $cross_compiling:$ac_tool_warned in
5596 yes:)
5597 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5599 ac_tool_warned=yes ;;
5600 esac
5601 STRIP=$ac_ct_STRIP
5602 fi
5603 else
5604 STRIP="$ac_cv_prog_STRIP"
5605 fi
5606
5607 test -z "$STRIP" && STRIP=:
5608
5609
5610
5611
5612
5613
5614 if test -n "$ac_tool_prefix"; then
5615 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5616 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if test "${ac_cv_prog_RANLIB+set}" = set; then
5620 $as_echo_n "(cached) " >&6
5621 else
5622 if test -n "$RANLIB"; then
5623 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5633 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2
5635 fi
5636 done
5637 done
5638 IFS=$as_save_IFS
5639
5640 fi
5641 fi
5642 RANLIB=$ac_cv_prog_RANLIB
5643 if test -n "$RANLIB"; then
5644 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5645 $as_echo "$RANLIB" >&6; }
5646 else
5647 { $as_echo "$as_me:$LINENO: result: no" >&5
5648 $as_echo "no" >&6; }
5649 fi
5650
5651
5652 fi
5653 if test -z "$ac_cv_prog_RANLIB"; then
5654 ac_ct_RANLIB=$RANLIB
5655 # Extract the first word of "ranlib", so it can be a program name with args.
5656 set dummy ranlib; ac_word=$2
5657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5660 $as_echo_n "(cached) " >&6
5661 else
5662 if test -n "$ac_ct_RANLIB"; then
5663 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5664 else
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH
5667 do
5668 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5672 ac_cv_prog_ac_ct_RANLIB="ranlib"
5673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 break 2
5675 fi
5676 done
5677 done
5678 IFS=$as_save_IFS
5679
5680 fi
5681 fi
5682 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5683 if test -n "$ac_ct_RANLIB"; then
5684 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5685 $as_echo "$ac_ct_RANLIB" >&6; }
5686 else
5687 { $as_echo "$as_me:$LINENO: result: no" >&5
5688 $as_echo "no" >&6; }
5689 fi
5690
5691 if test "x$ac_ct_RANLIB" = x; then
5692 RANLIB=":"
5693 else
5694 case $cross_compiling:$ac_tool_warned in
5695 yes:)
5696 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5698 ac_tool_warned=yes ;;
5699 esac
5700 RANLIB=$ac_ct_RANLIB
5701 fi
5702 else
5703 RANLIB="$ac_cv_prog_RANLIB"
5704 fi
5705
5706 test -z "$RANLIB" && RANLIB=:
5707
5708
5709
5710
5711
5712
5713 # Determine commands to create old-style static archives.
5714 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5715 old_postinstall_cmds='chmod 644 $oldlib'
5716 old_postuninstall_cmds=
5717
5718 if test -n "$RANLIB"; then
5719 case $host_os in
5720 openbsd*)
5721 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5722 ;;
5723 *)
5724 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5725 ;;
5726 esac
5727 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5728 fi
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763 # If no C compiler was specified, use CC.
5764 LTCC=${LTCC-"$CC"}
5765
5766 # If no C compiler flags were specified, use CFLAGS.
5767 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5768
5769 # Allow CC to be a program name with arguments.
5770 compiler=$CC
5771
5772
5773 # Check for command to grab the raw symbol name followed by C symbol from nm.
5774 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5775 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5776 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5777 $as_echo_n "(cached) " >&6
5778 else
5779
5780 # These are sane defaults that work on at least a few old systems.
5781 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5782
5783 # Character class describing NM global symbol codes.
5784 symcode='[BCDEGRST]'
5785
5786 # Regexp to match symbols that can be accessed directly from C.
5787 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5788
5789 # Define system-specific variables.
5790 case $host_os in
5791 aix*)
5792 symcode='[BCDT]'
5793 ;;
5794 cygwin* | mingw* | pw32* | cegcc*)
5795 symcode='[ABCDGISTW]'
5796 ;;
5797 hpux*)
5798 if test "$host_cpu" = ia64; then
5799 symcode='[ABCDEGRST]'
5800 fi
5801 ;;
5802 irix* | nonstopux*)
5803 symcode='[BCDEGRST]'
5804 ;;
5805 osf*)
5806 symcode='[BCDEGQRST]'
5807 ;;
5808 solaris*)
5809 symcode='[BDRT]'
5810 ;;
5811 sco3.2v5*)
5812 symcode='[DT]'
5813 ;;
5814 sysv4.2uw2*)
5815 symcode='[DT]'
5816 ;;
5817 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5818 symcode='[ABDT]'
5819 ;;
5820 sysv4)
5821 symcode='[DFNSTU]'
5822 ;;
5823 esac
5824
5825 # If we're using GNU nm, then use its standard symbol codes.
5826 case `$NM -V 2>&1` in
5827 *GNU* | *'with BFD'*)
5828 symcode='[ABCDGIRSTW]' ;;
5829 esac
5830
5831 # Transform an extracted symbol line into a proper C declaration.
5832 # Some systems (esp. on ia64) link data and code symbols differently,
5833 # so use this general approach.
5834 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5835
5836 # Transform an extracted symbol line into symbol name and symbol address
5837 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5838 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'"
5839
5840 # Handle CRLF in mingw tool chain
5841 opt_cr=
5842 case $build_os in
5843 mingw*)
5844 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5845 ;;
5846 esac
5847
5848 # Try without a prefix underscore, then with it.
5849 for ac_symprfx in "" "_"; do
5850
5851 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5852 symxfrm="\\1 $ac_symprfx\\2 \\2"
5853
5854 # Write the raw and C identifiers.
5855 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5856 # Fake it for dumpbin and say T for any non-static function
5857 # and D for any global variable.
5858 # Also find C++ and __fastcall symbols from MSVC++,
5859 # which start with @ or ?.
5860 lt_cv_sys_global_symbol_pipe="$AWK '"\
5861 " {last_section=section; section=\$ 3};"\
5862 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5863 " \$ 0!~/External *\|/{next};"\
5864 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5865 " {if(hide[section]) next};"\
5866 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5867 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5868 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5869 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5870 " ' prfx=^$ac_symprfx"
5871 else
5872 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5873 fi
5874
5875 # Check to see that the pipe works correctly.
5876 pipe_works=no
5877
5878 rm -f conftest*
5879 cat > conftest.$ac_ext <<_LT_EOF
5880 #ifdef __cplusplus
5881 extern "C" {
5882 #endif
5883 char nm_test_var;
5884 void nm_test_func(void);
5885 void nm_test_func(void){}
5886 #ifdef __cplusplus
5887 }
5888 #endif
5889 int main(){nm_test_var='a';nm_test_func();return(0);}
5890 _LT_EOF
5891
5892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5893 (eval $ac_compile) 2>&5
5894 ac_status=$?
5895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; then
5897 # Now try to grab the symbols.
5898 nlist=conftest.nm
5899 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5900 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5901 ac_status=$?
5902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && test -s "$nlist"; then
5904 # Try sorting and uniquifying the output.
5905 if sort "$nlist" | uniq > "$nlist"T; then
5906 mv -f "$nlist"T "$nlist"
5907 else
5908 rm -f "$nlist"T
5909 fi
5910
5911 # Make sure that we snagged all the symbols we need.
5912 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5913 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5914 cat <<_LT_EOF > conftest.$ac_ext
5915 #ifdef __cplusplus
5916 extern "C" {
5917 #endif
5918
5919 _LT_EOF
5920 # Now generate the symbol file.
5921 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5922
5923 cat <<_LT_EOF >> conftest.$ac_ext
5924
5925 /* The mapping between symbol names and symbols. */
5926 const struct {
5927 const char *name;
5928 void *address;
5929 }
5930 lt__PROGRAM__LTX_preloaded_symbols[] =
5931 {
5932 { "@PROGRAM@", (void *) 0 },
5933 _LT_EOF
5934 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5935 cat <<\_LT_EOF >> conftest.$ac_ext
5936 {0, (void *) 0}
5937 };
5938
5939 /* This works around a problem in FreeBSD linker */
5940 #ifdef FREEBSD_WORKAROUND
5941 static const void *lt_preloaded_setup() {
5942 return lt__PROGRAM__LTX_preloaded_symbols;
5943 }
5944 #endif
5945
5946 #ifdef __cplusplus
5947 }
5948 #endif
5949 _LT_EOF
5950 # Now try linking the two files.
5951 mv conftest.$ac_objext conftstm.$ac_objext
5952 lt_save_LIBS="$LIBS"
5953 lt_save_CFLAGS="$CFLAGS"
5954 LIBS="conftstm.$ac_objext"
5955 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5957 (eval $ac_link) 2>&5
5958 ac_status=$?
5959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5961 pipe_works=yes
5962 fi
5963 LIBS="$lt_save_LIBS"
5964 CFLAGS="$lt_save_CFLAGS"
5965 else
5966 echo "cannot find nm_test_func in $nlist" >&5
5967 fi
5968 else
5969 echo "cannot find nm_test_var in $nlist" >&5
5970 fi
5971 else
5972 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5973 fi
5974 else
5975 echo "$progname: failed program was:" >&5
5976 cat conftest.$ac_ext >&5
5977 fi
5978 rm -rf conftest* conftst*
5979
5980 # Do not use the global_symbol_pipe unless it works.
5981 if test "$pipe_works" = yes; then
5982 break
5983 else
5984 lt_cv_sys_global_symbol_pipe=
5985 fi
5986 done
5987
5988 fi
5989
5990 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5991 lt_cv_sys_global_symbol_to_cdecl=
5992 fi
5993 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5994 { $as_echo "$as_me:$LINENO: result: failed" >&5
5995 $as_echo "failed" >&6; }
5996 else
5997 { $as_echo "$as_me:$LINENO: result: ok" >&5
5998 $as_echo "ok" >&6; }
5999 fi
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023 # Check whether --enable-libtool-lock was given.
6024 if test "${enable_libtool_lock+set}" = set; then
6025 enableval=$enable_libtool_lock;
6026 fi
6027
6028 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6029
6030 # Some flags need to be propagated to the compiler or linker for good
6031 # libtool support.
6032 case $host in
6033 ia64-*-hpux*)
6034 # Find out which ABI we are using.
6035 echo 'int i;' > conftest.$ac_ext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>&5
6038 ac_status=$?
6039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; then
6041 case `/usr/bin/file conftest.$ac_objext` in
6042 *ELF-32*)
6043 HPUX_IA64_MODE="32"
6044 ;;
6045 *ELF-64*)
6046 HPUX_IA64_MODE="64"
6047 ;;
6048 esac
6049 fi
6050 rm -rf conftest*
6051 ;;
6052 *-*-irix6*)
6053 # Find out which ABI we are using.
6054 echo '#line 6054 "configure"' > conftest.$ac_ext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6056 (eval $ac_compile) 2>&5
6057 ac_status=$?
6058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; then
6060 if test "$lt_cv_prog_gnu_ld" = yes; then
6061 case `/usr/bin/file conftest.$ac_objext` in
6062 *32-bit*)
6063 LD="${LD-ld} -melf32bsmip"
6064 ;;
6065 *N32*)
6066 LD="${LD-ld} -melf32bmipn32"
6067 ;;
6068 *64-bit*)
6069 LD="${LD-ld} -melf64bmip"
6070 ;;
6071 esac
6072 else
6073 case `/usr/bin/file conftest.$ac_objext` in
6074 *32-bit*)
6075 LD="${LD-ld} -32"
6076 ;;
6077 *N32*)
6078 LD="${LD-ld} -n32"
6079 ;;
6080 *64-bit*)
6081 LD="${LD-ld} -64"
6082 ;;
6083 esac
6084 fi
6085 fi
6086 rm -rf conftest*
6087 ;;
6088
6089 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6090 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6091 # Find out which ABI we are using.
6092 echo 'int i;' > conftest.$ac_ext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6094 (eval $ac_compile) 2>&5
6095 ac_status=$?
6096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; then
6098 case `/usr/bin/file conftest.o` in
6099 *32-bit*)
6100 case $host in
6101 x86_64-*kfreebsd*-gnu)
6102 LD="${LD-ld} -m elf_i386_fbsd"
6103 ;;
6104 x86_64-*linux*)
6105 LD="${LD-ld} -m elf_i386"
6106 ;;
6107 ppc64-*linux*|powerpc64-*linux*)
6108 LD="${LD-ld} -m elf32ppclinux"
6109 ;;
6110 s390x-*linux*)
6111 LD="${LD-ld} -m elf_s390"
6112 ;;
6113 sparc64-*linux*)
6114 LD="${LD-ld} -m elf32_sparc"
6115 ;;
6116 esac
6117 ;;
6118 *64-bit*)
6119 case $host in
6120 x86_64-*kfreebsd*-gnu)
6121 LD="${LD-ld} -m elf_x86_64_fbsd"
6122 ;;
6123 x86_64-*linux*)
6124 LD="${LD-ld} -m elf_x86_64"
6125 ;;
6126 ppc*-*linux*|powerpc*-*linux*)
6127 LD="${LD-ld} -m elf64ppc"
6128 ;;
6129 s390*-*linux*|s390*-*tpf*)
6130 LD="${LD-ld} -m elf64_s390"
6131 ;;
6132 sparc*-*linux*)
6133 LD="${LD-ld} -m elf64_sparc"
6134 ;;
6135 esac
6136 ;;
6137 esac
6138 fi
6139 rm -rf conftest*
6140 ;;
6141
6142 *-*-sco3.2v5*)
6143 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6144 SAVE_CFLAGS="$CFLAGS"
6145 CFLAGS="$CFLAGS -belf"
6146 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6147 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6148 if test "${lt_cv_cc_needs_belf+set}" = set; then
6149 $as_echo_n "(cached) " >&6
6150 else
6151 ac_ext=c
6152 ac_cpp='$CPP $CPPFLAGS'
6153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163
6164 int
6165 main ()
6166 {
6167
6168 ;
6169 return 0;
6170 }
6171 _ACEOF
6172 rm -f conftest.$ac_objext conftest$ac_exeext
6173 if { (ac_try="$ac_link"
6174 case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177 esac
6178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6179 $as_echo "$ac_try_echo") >&5
6180 (eval "$ac_link") 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest$ac_exeext && {
6190 test "$cross_compiling" = yes ||
6191 $as_test_x conftest$ac_exeext
6192 }; then
6193 lt_cv_cc_needs_belf=yes
6194 else
6195 $as_echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198 lt_cv_cc_needs_belf=no
6199 fi
6200
6201 rm -rf conftest.dSYM
6202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6203 conftest$ac_exeext conftest.$ac_ext
6204 ac_ext=c
6205 ac_cpp='$CPP $CPPFLAGS'
6206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209
6210 fi
6211 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6212 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6213 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6214 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6215 CFLAGS="$SAVE_CFLAGS"
6216 fi
6217 ;;
6218 sparc*-*solaris*)
6219 # Find out which ABI we are using.
6220 echo 'int i;' > conftest.$ac_ext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6222 (eval $ac_compile) 2>&5
6223 ac_status=$?
6224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; then
6226 case `/usr/bin/file conftest.o` in
6227 *64-bit*)
6228 case $lt_cv_prog_gnu_ld in
6229 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6230 *)
6231 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6232 LD="${LD-ld} -64"
6233 fi
6234 ;;
6235 esac
6236 ;;
6237 esac
6238 fi
6239 rm -rf conftest*
6240 ;;
6241 esac
6242
6243 need_locks="$enable_libtool_lock"
6244
6245
6246 case $host_os in
6247 rhapsody* | darwin*)
6248 if test -n "$ac_tool_prefix"; then
6249 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6254 $as_echo_n "(cached) " >&6
6255 else
6256 if test -n "$DSYMUTIL"; then
6257 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6269 fi
6270 done
6271 done
6272 IFS=$as_save_IFS
6273
6274 fi
6275 fi
6276 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6277 if test -n "$DSYMUTIL"; then
6278 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6279 $as_echo "$DSYMUTIL" >&6; }
6280 else
6281 { $as_echo "$as_me:$LINENO: result: no" >&5
6282 $as_echo "no" >&6; }
6283 fi
6284
6285
6286 fi
6287 if test -z "$ac_cv_prog_DSYMUTIL"; then
6288 ac_ct_DSYMUTIL=$DSYMUTIL
6289 # Extract the first word of "dsymutil", so it can be a program name with args.
6290 set dummy dsymutil; ac_word=$2
6291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6294 $as_echo_n "(cached) " >&6
6295 else
6296 if test -n "$ac_ct_DSYMUTIL"; then
6297 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 break 2
6309 fi
6310 done
6311 done
6312 IFS=$as_save_IFS
6313
6314 fi
6315 fi
6316 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6317 if test -n "$ac_ct_DSYMUTIL"; then
6318 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6319 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6320 else
6321 { $as_echo "$as_me:$LINENO: result: no" >&5
6322 $as_echo "no" >&6; }
6323 fi
6324
6325 if test "x$ac_ct_DSYMUTIL" = x; then
6326 DSYMUTIL=":"
6327 else
6328 case $cross_compiling:$ac_tool_warned in
6329 yes:)
6330 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6332 ac_tool_warned=yes ;;
6333 esac
6334 DSYMUTIL=$ac_ct_DSYMUTIL
6335 fi
6336 else
6337 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6338 fi
6339
6340 if test -n "$ac_tool_prefix"; then
6341 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6342 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6346 $as_echo_n "(cached) " >&6
6347 else
6348 if test -n "$NMEDIT"; then
6349 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6350 else
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 break 2
6361 fi
6362 done
6363 done
6364 IFS=$as_save_IFS
6365
6366 fi
6367 fi
6368 NMEDIT=$ac_cv_prog_NMEDIT
6369 if test -n "$NMEDIT"; then
6370 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6371 $as_echo "$NMEDIT" >&6; }
6372 else
6373 { $as_echo "$as_me:$LINENO: result: no" >&5
6374 $as_echo "no" >&6; }
6375 fi
6376
6377
6378 fi
6379 if test -z "$ac_cv_prog_NMEDIT"; then
6380 ac_ct_NMEDIT=$NMEDIT
6381 # Extract the first word of "nmedit", so it can be a program name with args.
6382 set dummy nmedit; ac_word=$2
6383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6386 $as_echo_n "(cached) " >&6
6387 else
6388 if test -n "$ac_ct_NMEDIT"; then
6389 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 break 2
6401 fi
6402 done
6403 done
6404 IFS=$as_save_IFS
6405
6406 fi
6407 fi
6408 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6409 if test -n "$ac_ct_NMEDIT"; then
6410 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6411 $as_echo "$ac_ct_NMEDIT" >&6; }
6412 else
6413 { $as_echo "$as_me:$LINENO: result: no" >&5
6414 $as_echo "no" >&6; }
6415 fi
6416
6417 if test "x$ac_ct_NMEDIT" = x; then
6418 NMEDIT=":"
6419 else
6420 case $cross_compiling:$ac_tool_warned in
6421 yes:)
6422 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424 ac_tool_warned=yes ;;
6425 esac
6426 NMEDIT=$ac_ct_NMEDIT
6427 fi
6428 else
6429 NMEDIT="$ac_cv_prog_NMEDIT"
6430 fi
6431
6432 if test -n "$ac_tool_prefix"; then
6433 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6434 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if test "${ac_cv_prog_LIPO+set}" = set; then
6438 $as_echo_n "(cached) " >&6
6439 else
6440 if test -n "$LIPO"; then
6441 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454 done
6455 done
6456 IFS=$as_save_IFS
6457
6458 fi
6459 fi
6460 LIPO=$ac_cv_prog_LIPO
6461 if test -n "$LIPO"; then
6462 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6463 $as_echo "$LIPO" >&6; }
6464 else
6465 { $as_echo "$as_me:$LINENO: result: no" >&5
6466 $as_echo "no" >&6; }
6467 fi
6468
6469
6470 fi
6471 if test -z "$ac_cv_prog_LIPO"; then
6472 ac_ct_LIPO=$LIPO
6473 # Extract the first word of "lipo", so it can be a program name with args.
6474 set dummy lipo; ac_word=$2
6475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6476 $as_echo_n "checking for $ac_word... " >&6; }
6477 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6478 $as_echo_n "(cached) " >&6
6479 else
6480 if test -n "$ac_ct_LIPO"; then
6481 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486 IFS=$as_save_IFS
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6490 ac_cv_prog_ac_ct_LIPO="lipo"
6491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492 break 2
6493 fi
6494 done
6495 done
6496 IFS=$as_save_IFS
6497
6498 fi
6499 fi
6500 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6501 if test -n "$ac_ct_LIPO"; then
6502 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6503 $as_echo "$ac_ct_LIPO" >&6; }
6504 else
6505 { $as_echo "$as_me:$LINENO: result: no" >&5
6506 $as_echo "no" >&6; }
6507 fi
6508
6509 if test "x$ac_ct_LIPO" = x; then
6510 LIPO=":"
6511 else
6512 case $cross_compiling:$ac_tool_warned in
6513 yes:)
6514 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6516 ac_tool_warned=yes ;;
6517 esac
6518 LIPO=$ac_ct_LIPO
6519 fi
6520 else
6521 LIPO="$ac_cv_prog_LIPO"
6522 fi
6523
6524 if test -n "$ac_tool_prefix"; then
6525 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6526 set dummy ${ac_tool_prefix}otool; ac_word=$2
6527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if test "${ac_cv_prog_OTOOL+set}" = set; then
6530 $as_echo_n "(cached) " >&6
6531 else
6532 if test -n "$OTOOL"; then
6533 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550 fi
6551 fi
6552 OTOOL=$ac_cv_prog_OTOOL
6553 if test -n "$OTOOL"; then
6554 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6555 $as_echo "$OTOOL" >&6; }
6556 else
6557 { $as_echo "$as_me:$LINENO: result: no" >&5
6558 $as_echo "no" >&6; }
6559 fi
6560
6561
6562 fi
6563 if test -z "$ac_cv_prog_OTOOL"; then
6564 ac_ct_OTOOL=$OTOOL
6565 # Extract the first word of "otool", so it can be a program name with args.
6566 set dummy otool; ac_word=$2
6567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6568 $as_echo_n "checking for $ac_word... " >&6; }
6569 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6570 $as_echo_n "(cached) " >&6
6571 else
6572 if test -n "$ac_ct_OTOOL"; then
6573 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_prog_ac_ct_OTOOL="otool"
6583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590 fi
6591 fi
6592 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6593 if test -n "$ac_ct_OTOOL"; then
6594 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6595 $as_echo "$ac_ct_OTOOL" >&6; }
6596 else
6597 { $as_echo "$as_me:$LINENO: result: no" >&5
6598 $as_echo "no" >&6; }
6599 fi
6600
6601 if test "x$ac_ct_OTOOL" = x; then
6602 OTOOL=":"
6603 else
6604 case $cross_compiling:$ac_tool_warned in
6605 yes:)
6606 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6608 ac_tool_warned=yes ;;
6609 esac
6610 OTOOL=$ac_ct_OTOOL
6611 fi
6612 else
6613 OTOOL="$ac_cv_prog_OTOOL"
6614 fi
6615
6616 if test -n "$ac_tool_prefix"; then
6617 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6618 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6619 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6620 $as_echo_n "checking for $ac_word... " >&6; }
6621 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6622 $as_echo_n "(cached) " >&6
6623 else
6624 if test -n "$OTOOL64"; then
6625 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6626 else
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6629 do
6630 IFS=$as_save_IFS
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 break 2
6637 fi
6638 done
6639 done
6640 IFS=$as_save_IFS
6641
6642 fi
6643 fi
6644 OTOOL64=$ac_cv_prog_OTOOL64
6645 if test -n "$OTOOL64"; then
6646 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6647 $as_echo "$OTOOL64" >&6; }
6648 else
6649 { $as_echo "$as_me:$LINENO: result: no" >&5
6650 $as_echo "no" >&6; }
6651 fi
6652
6653
6654 fi
6655 if test -z "$ac_cv_prog_OTOOL64"; then
6656 ac_ct_OTOOL64=$OTOOL64
6657 # Extract the first word of "otool64", so it can be a program name with args.
6658 set dummy otool64; ac_word=$2
6659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6660 $as_echo_n "checking for $ac_word... " >&6; }
6661 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6662 $as_echo_n "(cached) " >&6
6663 else
6664 if test -n "$ac_ct_OTOOL64"; then
6665 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6666 else
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6669 do
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_prog_ac_ct_OTOOL64="otool64"
6675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 break 2
6677 fi
6678 done
6679 done
6680 IFS=$as_save_IFS
6681
6682 fi
6683 fi
6684 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6685 if test -n "$ac_ct_OTOOL64"; then
6686 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6687 $as_echo "$ac_ct_OTOOL64" >&6; }
6688 else
6689 { $as_echo "$as_me:$LINENO: result: no" >&5
6690 $as_echo "no" >&6; }
6691 fi
6692
6693 if test "x$ac_ct_OTOOL64" = x; then
6694 OTOOL64=":"
6695 else
6696 case $cross_compiling:$ac_tool_warned in
6697 yes:)
6698 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6700 ac_tool_warned=yes ;;
6701 esac
6702 OTOOL64=$ac_ct_OTOOL64
6703 fi
6704 else
6705 OTOOL64="$ac_cv_prog_OTOOL64"
6706 fi
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6735 $as_echo_n "checking for -single_module linker flag... " >&6; }
6736 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6737 $as_echo_n "(cached) " >&6
6738 else
6739 lt_cv_apple_cc_single_mod=no
6740 if test -z "${LT_MULTI_MODULE}"; then
6741 # By default we will add the -single_module flag. You can override
6742 # by either setting the environment variable LT_MULTI_MODULE
6743 # non-empty at configure time, or by adding -multi_module to the
6744 # link flags.
6745 rm -rf libconftest.dylib*
6746 echo "int foo(void){return 1;}" > conftest.c
6747 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6748 -dynamiclib -Wl,-single_module conftest.c" >&5
6749 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6750 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6751 _lt_result=$?
6752 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6753 lt_cv_apple_cc_single_mod=yes
6754 else
6755 cat conftest.err >&5
6756 fi
6757 rm -rf libconftest.dylib*
6758 rm -f conftest.*
6759 fi
6760 fi
6761 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6762 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6763 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6764 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6765 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6766 $as_echo_n "(cached) " >&6
6767 else
6768 lt_cv_ld_exported_symbols_list=no
6769 save_LDFLAGS=$LDFLAGS
6770 echo "_main" > conftest.sym
6771 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6772 cat >conftest.$ac_ext <<_ACEOF
6773 /* confdefs.h. */
6774 _ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6778
6779 int
6780 main ()
6781 {
6782
6783 ;
6784 return 0;
6785 }
6786 _ACEOF
6787 rm -f conftest.$ac_objext conftest$ac_exeext
6788 if { (ac_try="$ac_link"
6789 case "(($ac_try" in
6790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6791 *) ac_try_echo=$ac_try;;
6792 esac
6793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6794 $as_echo "$ac_try_echo") >&5
6795 (eval "$ac_link") 2>conftest.er1
6796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
6800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } && {
6802 test -z "$ac_c_werror_flag" ||
6803 test ! -s conftest.err
6804 } && test -s conftest$ac_exeext && {
6805 test "$cross_compiling" = yes ||
6806 $as_test_x conftest$ac_exeext
6807 }; then
6808 lt_cv_ld_exported_symbols_list=yes
6809 else
6810 $as_echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6812
6813 lt_cv_ld_exported_symbols_list=no
6814 fi
6815
6816 rm -rf conftest.dSYM
6817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6818 conftest$ac_exeext conftest.$ac_ext
6819 LDFLAGS="$save_LDFLAGS"
6820
6821 fi
6822 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6823 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6824 case $host_os in
6825 rhapsody* | darwin1.[012])
6826 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6827 darwin1.*)
6828 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6829 darwin*) # darwin 5.x on
6830 # if running on 10.5 or later, the deployment target defaults
6831 # to the OS version, if on x86, and 10.4, the deployment
6832 # target defaults to 10.4. Don't you love it?
6833 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6834 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6835 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6836 10.[012]*)
6837 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6838 10.*)
6839 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6840 esac
6841 ;;
6842 esac
6843 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6844 _lt_dar_single_mod='$single_module'
6845 fi
6846 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6847 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6848 else
6849 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6850 fi
6851 if test "$DSYMUTIL" != ":"; then
6852 _lt_dsymutil='~$DSYMUTIL $lib || :'
6853 else
6854 _lt_dsymutil=
6855 fi
6856 ;;
6857 esac
6858
6859 ac_ext=c
6860 ac_cpp='$CPP $CPPFLAGS'
6861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6864 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6865 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6866 # On Suns, sometimes $CPP names a directory.
6867 if test -n "$CPP" && test -d "$CPP"; then
6868 CPP=
6869 fi
6870 if test -z "$CPP"; then
6871 if test "${ac_cv_prog_CPP+set}" = set; then
6872 $as_echo_n "(cached) " >&6
6873 else
6874 # Double quotes because CPP needs to be expanded
6875 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6876 do
6877 ac_preproc_ok=false
6878 for ac_c_preproc_warn_flag in '' yes
6879 do
6880 # Use a header file that comes with gcc, so configuring glibc
6881 # with a fresh cross-compiler works.
6882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6883 # <limits.h> exists even on freestanding compilers.
6884 # On the NeXT, cc -E runs the code through the compiler's parser,
6885 # not just through cpp. "Syntax error" is here to catch this case.
6886 cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h. */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 #ifdef __STDC__
6893 # include <limits.h>
6894 #else
6895 # include <assert.h>
6896 #endif
6897 Syntax error
6898 _ACEOF
6899 if { (ac_try="$ac_cpp conftest.$ac_ext"
6900 case "(($ac_try" in
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6903 esac
6904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6905 $as_echo "$ac_try_echo") >&5
6906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } >/dev/null && {
6913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 }; then
6916 :
6917 else
6918 $as_echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6920
6921 # Broken: fails on valid input.
6922 continue
6923 fi
6924
6925 rm -f conftest.err conftest.$ac_ext
6926
6927 # OK, works on sane cases. Now check whether nonexistent headers
6928 # can be detected and how.
6929 cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 #include <ac_nonexistent.h>
6936 _ACEOF
6937 if { (ac_try="$ac_cpp conftest.$ac_ext"
6938 case "(($ac_try" in
6939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940 *) ac_try_echo=$ac_try;;
6941 esac
6942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6943 $as_echo "$ac_try_echo") >&5
6944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6945 ac_status=$?
6946 grep -v '^ *+' conftest.er1 >conftest.err
6947 rm -f conftest.er1
6948 cat conftest.err >&5
6949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } >/dev/null && {
6951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6952 test ! -s conftest.err
6953 }; then
6954 # Broken: success on invalid input.
6955 continue
6956 else
6957 $as_echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 # Passes both tests.
6961 ac_preproc_ok=:
6962 break
6963 fi
6964
6965 rm -f conftest.err conftest.$ac_ext
6966
6967 done
6968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6969 rm -f conftest.err conftest.$ac_ext
6970 if $ac_preproc_ok; then
6971 break
6972 fi
6973
6974 done
6975 ac_cv_prog_CPP=$CPP
6976
6977 fi
6978 CPP=$ac_cv_prog_CPP
6979 else
6980 ac_cv_prog_CPP=$CPP
6981 fi
6982 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6983 $as_echo "$CPP" >&6; }
6984 ac_preproc_ok=false
6985 for ac_c_preproc_warn_flag in '' yes
6986 do
6987 # Use a header file that comes with gcc, so configuring glibc
6988 # with a fresh cross-compiler works.
6989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6990 # <limits.h> exists even on freestanding compilers.
6991 # On the NeXT, cc -E runs the code through the compiler's parser,
6992 # not just through cpp. "Syntax error" is here to catch this case.
6993 cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h. */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 #ifdef __STDC__
7000 # include <limits.h>
7001 #else
7002 # include <assert.h>
7003 #endif
7004 Syntax error
7005 _ACEOF
7006 if { (ac_try="$ac_cpp conftest.$ac_ext"
7007 case "(($ac_try" in
7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7010 esac
7011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7012 $as_echo "$ac_try_echo") >&5
7013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } >/dev/null && {
7020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 }; then
7023 :
7024 else
7025 $as_echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028 # Broken: fails on valid input.
7029 continue
7030 fi
7031
7032 rm -f conftest.err conftest.$ac_ext
7033
7034 # OK, works on sane cases. Now check whether nonexistent headers
7035 # can be detected and how.
7036 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h. */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 #include <ac_nonexistent.h>
7043 _ACEOF
7044 if { (ac_try="$ac_cpp conftest.$ac_ext"
7045 case "(($ac_try" in
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7048 esac
7049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7050 $as_echo "$ac_try_echo") >&5
7051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7052 ac_status=$?
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
7056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } >/dev/null && {
7058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7059 test ! -s conftest.err
7060 }; then
7061 # Broken: success on invalid input.
7062 continue
7063 else
7064 $as_echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067 # Passes both tests.
7068 ac_preproc_ok=:
7069 break
7070 fi
7071
7072 rm -f conftest.err conftest.$ac_ext
7073
7074 done
7075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7076 rm -f conftest.err conftest.$ac_ext
7077 if $ac_preproc_ok; then
7078 :
7079 else
7080 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7082 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7083 See \`config.log' for more details." >&5
7084 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7085 See \`config.log' for more details." >&2;}
7086 { (exit 1); exit 1; }; }; }
7087 fi
7088
7089 ac_ext=c
7090 ac_cpp='$CPP $CPPFLAGS'
7091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7094
7095
7096 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7097 $as_echo_n "checking for ANSI C header files... " >&6; }
7098 if test "${ac_cv_header_stdc+set}" = set; then
7099 $as_echo_n "(cached) " >&6
7100 else
7101 cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h. */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7107 #include <stdlib.h>
7108 #include <stdarg.h>
7109 #include <string.h>
7110 #include <float.h>
7111
7112 int
7113 main ()
7114 {
7115
7116 ;
7117 return 0;
7118 }
7119 _ACEOF
7120 rm -f conftest.$ac_objext
7121 if { (ac_try="$ac_compile"
7122 case "(($ac_try" in
7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7125 esac
7126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7127 $as_echo "$ac_try_echo") >&5
7128 (eval "$ac_compile") 2>conftest.er1
7129 ac_status=$?
7130 grep -v '^ *+' conftest.er1 >conftest.err
7131 rm -f conftest.er1
7132 cat conftest.err >&5
7133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } && {
7135 test -z "$ac_c_werror_flag" ||
7136 test ! -s conftest.err
7137 } && test -s conftest.$ac_objext; then
7138 ac_cv_header_stdc=yes
7139 else
7140 $as_echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7142
7143 ac_cv_header_stdc=no
7144 fi
7145
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147
7148 if test $ac_cv_header_stdc = yes; then
7149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7150 cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h. */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7156 #include <string.h>
7157
7158 _ACEOF
7159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7160 $EGREP "memchr" >/dev/null 2>&1; then
7161 :
7162 else
7163 ac_cv_header_stdc=no
7164 fi
7165 rm -f conftest*
7166
7167 fi
7168
7169 if test $ac_cv_header_stdc = yes; then
7170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h. */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <stdlib.h>
7178
7179 _ACEOF
7180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7181 $EGREP "free" >/dev/null 2>&1; then
7182 :
7183 else
7184 ac_cv_header_stdc=no
7185 fi
7186 rm -f conftest*
7187
7188 fi
7189
7190 if test $ac_cv_header_stdc = yes; then
7191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7192 if test "$cross_compiling" = yes; then
7193 :
7194 else
7195 cat >conftest.$ac_ext <<_ACEOF
7196 /* confdefs.h. */
7197 _ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7201 #include <ctype.h>
7202 #include <stdlib.h>
7203 #if ((' ' & 0x0FF) == 0x020)
7204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7206 #else
7207 # define ISLOWER(c) \
7208 (('a' <= (c) && (c) <= 'i') \
7209 || ('j' <= (c) && (c) <= 'r') \
7210 || ('s' <= (c) && (c) <= 'z'))
7211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7212 #endif
7213
7214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7215 int
7216 main ()
7217 {
7218 int i;
7219 for (i = 0; i < 256; i++)
7220 if (XOR (islower (i), ISLOWER (i))
7221 || toupper (i) != TOUPPER (i))
7222 return 2;
7223 return 0;
7224 }
7225 _ACEOF
7226 rm -f conftest$ac_exeext
7227 if { (ac_try="$ac_link"
7228 case "(($ac_try" in
7229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230 *) ac_try_echo=$ac_try;;
7231 esac
7232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7233 $as_echo "$ac_try_echo") >&5
7234 (eval "$ac_link") 2>&5
7235 ac_status=$?
7236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7238 { (case "(($ac_try" in
7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7241 esac
7242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7243 $as_echo "$ac_try_echo") >&5
7244 (eval "$ac_try") 2>&5
7245 ac_status=$?
7246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; }; then
7248 :
7249 else
7250 $as_echo "$as_me: program exited with status $ac_status" >&5
7251 $as_echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7253
7254 ( exit $ac_status )
7255 ac_cv_header_stdc=no
7256 fi
7257 rm -rf conftest.dSYM
7258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7259 fi
7260
7261
7262 fi
7263 fi
7264 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7265 $as_echo "$ac_cv_header_stdc" >&6; }
7266 if test $ac_cv_header_stdc = yes; then
7267
7268 cat >>confdefs.h <<\_ACEOF
7269 #define STDC_HEADERS 1
7270 _ACEOF
7271
7272 fi
7273
7274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7285 inttypes.h stdint.h unistd.h
7286 do
7287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7289 $as_echo_n "checking for $ac_header... " >&6; }
7290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7291 $as_echo_n "(cached) " >&6
7292 else
7293 cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h. */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 $ac_includes_default
7300
7301 #include <$ac_header>
7302 _ACEOF
7303 rm -f conftest.$ac_objext
7304 if { (ac_try="$ac_compile"
7305 case "(($ac_try" in
7306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307 *) ac_try_echo=$ac_try;;
7308 esac
7309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7310 $as_echo "$ac_try_echo") >&5
7311 (eval "$ac_compile") 2>conftest.er1
7312 ac_status=$?
7313 grep -v '^ *+' conftest.er1 >conftest.err
7314 rm -f conftest.er1
7315 cat conftest.err >&5
7316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } && {
7318 test -z "$ac_c_werror_flag" ||
7319 test ! -s conftest.err
7320 } && test -s conftest.$ac_objext; then
7321 eval "$as_ac_Header=yes"
7322 else
7323 $as_echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7325
7326 eval "$as_ac_Header=no"
7327 fi
7328
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 fi
7331 ac_res=`eval 'as_val=${'$as_ac_Header'}
7332 $as_echo "$as_val"'`
7333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7334 $as_echo "$ac_res" >&6; }
7335 as_val=`eval 'as_val=${'$as_ac_Header'}
7336 $as_echo "$as_val"'`
7337 if test "x$as_val" = x""yes; then
7338 cat >>confdefs.h <<_ACEOF
7339 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7340 _ACEOF
7341
7342 fi
7343
7344 done
7345
7346
7347
7348 for ac_header in dlfcn.h
7349 do
7350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7352 $as_echo_n "checking for $ac_header... " >&6; }
7353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7354 $as_echo_n "(cached) " >&6
7355 else
7356 cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h. */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 $ac_includes_default
7363
7364 #include <$ac_header>
7365 _ACEOF
7366 rm -f conftest.$ac_objext
7367 if { (ac_try="$ac_compile"
7368 case "(($ac_try" in
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7371 esac
7372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7373 $as_echo "$ac_try_echo") >&5
7374 (eval "$ac_compile") 2>conftest.er1
7375 ac_status=$?
7376 grep -v '^ *+' conftest.er1 >conftest.err
7377 rm -f conftest.er1
7378 cat conftest.err >&5
7379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } && {
7381 test -z "$ac_c_werror_flag" ||
7382 test ! -s conftest.err
7383 } && test -s conftest.$ac_objext; then
7384 eval "$as_ac_Header=yes"
7385 else
7386 $as_echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7388
7389 eval "$as_ac_Header=no"
7390 fi
7391
7392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393 fi
7394 ac_res=`eval 'as_val=${'$as_ac_Header'}
7395 $as_echo "$as_val"'`
7396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7397 $as_echo "$ac_res" >&6; }
7398 as_val=`eval 'as_val=${'$as_ac_Header'}
7399 $as_echo "$as_val"'`
7400 if test "x$as_val" = x""yes; then
7401 cat >>confdefs.h <<_ACEOF
7402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7403 _ACEOF
7404
7405 fi
7406
7407 done
7408
7409
7410
7411 # Set options
7412
7413
7414
7415 enable_dlopen=no
7416
7417
7418 enable_win32_dll=no
7419
7420
7421 # Check whether --enable-shared was given.
7422 if test "${enable_shared+set}" = set; then
7423 enableval=$enable_shared; p=${PACKAGE-default}
7424 case $enableval in
7425 yes) enable_shared=yes ;;
7426 no) enable_shared=no ;;
7427 *)
7428 enable_shared=no
7429 # Look at the argument we got. We use all the common list separators.
7430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7431 for pkg in $enableval; do
7432 IFS="$lt_save_ifs"
7433 if test "X$pkg" = "X$p"; then
7434 enable_shared=yes
7435 fi
7436 done
7437 IFS="$lt_save_ifs"
7438 ;;
7439 esac
7440 else
7441 enable_shared=yes
7442 fi
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452 # Check whether --enable-static was given.
7453 if test "${enable_static+set}" = set; then
7454 enableval=$enable_static; p=${PACKAGE-default}
7455 case $enableval in
7456 yes) enable_static=yes ;;
7457 no) enable_static=no ;;
7458 *)
7459 enable_static=no
7460 # Look at the argument we got. We use all the common list separators.
7461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7462 for pkg in $enableval; do
7463 IFS="$lt_save_ifs"
7464 if test "X$pkg" = "X$p"; then
7465 enable_static=yes
7466 fi
7467 done
7468 IFS="$lt_save_ifs"
7469 ;;
7470 esac
7471 else
7472 enable_static=yes
7473 fi
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484 # Check whether --with-pic was given.
7485 if test "${with_pic+set}" = set; then
7486 withval=$with_pic; pic_mode="$withval"
7487 else
7488 pic_mode=default
7489 fi
7490
7491
7492 test -z "$pic_mode" && pic_mode=default
7493
7494
7495
7496
7497
7498
7499
7500 # Check whether --enable-fast-install was given.
7501 if test "${enable_fast_install+set}" = set; then
7502 enableval=$enable_fast_install; p=${PACKAGE-default}
7503 case $enableval in
7504 yes) enable_fast_install=yes ;;
7505 no) enable_fast_install=no ;;
7506 *)
7507 enable_fast_install=no
7508 # Look at the argument we got. We use all the common list separators.
7509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7510 for pkg in $enableval; do
7511 IFS="$lt_save_ifs"
7512 if test "X$pkg" = "X$p"; then
7513 enable_fast_install=yes
7514 fi
7515 done
7516 IFS="$lt_save_ifs"
7517 ;;
7518 esac
7519 else
7520 enable_fast_install=yes
7521 fi
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533 # This can be used to rebuild libtool when needed
7534 LIBTOOL_DEPS="$ltmain"
7535
7536 # Always use our own libtool.
7537 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563 test -z "$LN_S" && LN_S="ln -s"
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578 if test -n "${ZSH_VERSION+set}" ; then
7579 setopt NO_GLOB_SUBST
7580 fi
7581
7582 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7583 $as_echo_n "checking for objdir... " >&6; }
7584 if test "${lt_cv_objdir+set}" = set; then
7585 $as_echo_n "(cached) " >&6
7586 else
7587 rm -f .libs 2>/dev/null
7588 mkdir .libs 2>/dev/null
7589 if test -d .libs; then
7590 lt_cv_objdir=.libs
7591 else
7592 # MS-DOS does not allow filenames that begin with a dot.
7593 lt_cv_objdir=_libs
7594 fi
7595 rmdir .libs 2>/dev/null
7596 fi
7597 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7598 $as_echo "$lt_cv_objdir" >&6; }
7599 objdir=$lt_cv_objdir
7600
7601
7602
7603
7604
7605 cat >>confdefs.h <<_ACEOF
7606 #define LT_OBJDIR "$lt_cv_objdir/"
7607 _ACEOF
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625 case $host_os in
7626 aix3*)
7627 # AIX sometimes has problems with the GCC collect2 program. For some
7628 # reason, if we set the COLLECT_NAMES environment variable, the problems
7629 # vanish in a puff of smoke.
7630 if test "X${COLLECT_NAMES+set}" != Xset; then
7631 COLLECT_NAMES=
7632 export COLLECT_NAMES
7633 fi
7634 ;;
7635 esac
7636
7637 # Sed substitution that helps us do robust quoting. It backslashifies
7638 # metacharacters that are still active within double-quoted strings.
7639 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7640
7641 # Same as above, but do not quote variable references.
7642 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7643
7644 # Sed substitution to delay expansion of an escaped shell variable in a
7645 # double_quote_subst'ed string.
7646 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7647
7648 # Sed substitution to delay expansion of an escaped single quote.
7649 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7650
7651 # Sed substitution to avoid accidental globbing in evaled expressions
7652 no_glob_subst='s/\*/\\\*/g'
7653
7654 # Global variables:
7655 ofile=libtool
7656 can_build_shared=yes
7657
7658 # All known linkers require a `.a' archive for static linking (except MSVC,
7659 # which needs '.lib').
7660 libext=a
7661
7662 with_gnu_ld="$lt_cv_prog_gnu_ld"
7663
7664 old_CC="$CC"
7665 old_CFLAGS="$CFLAGS"
7666
7667 # Set sane defaults for various variables
7668 test -z "$CC" && CC=cc
7669 test -z "$LTCC" && LTCC=$CC
7670 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7671 test -z "$LD" && LD=ld
7672 test -z "$ac_objext" && ac_objext=o
7673
7674 for cc_temp in $compiler""; do
7675 case $cc_temp in
7676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7678 \-*) ;;
7679 *) break;;
7680 esac
7681 done
7682 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7683
7684
7685 # Only perform the check for file, if the check method requires it
7686 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7687 case $deplibs_check_method in
7688 file_magic*)
7689 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7690 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7691 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7692 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7693 $as_echo_n "(cached) " >&6
7694 else
7695 case $MAGIC_CMD in
7696 [\\/*] | ?:[\\/]*)
7697 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7698 ;;
7699 *)
7700 lt_save_MAGIC_CMD="$MAGIC_CMD"
7701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7702 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7703 for ac_dir in $ac_dummy; do
7704 IFS="$lt_save_ifs"
7705 test -z "$ac_dir" && ac_dir=.
7706 if test -f $ac_dir/${ac_tool_prefix}file; then
7707 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7708 if test -n "$file_magic_test_file"; then
7709 case $deplibs_check_method in
7710 "file_magic "*)
7711 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7712 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7713 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7714 $EGREP "$file_magic_regex" > /dev/null; then
7715 :
7716 else
7717 cat <<_LT_EOF 1>&2
7718
7719 *** Warning: the command libtool uses to detect shared libraries,
7720 *** $file_magic_cmd, produces output that libtool cannot recognize.
7721 *** The result is that libtool may fail to recognize shared libraries
7722 *** as such. This will affect the creation of libtool libraries that
7723 *** depend on shared libraries, but programs linked with such libtool
7724 *** libraries will work regardless of this problem. Nevertheless, you
7725 *** may want to report the problem to your system manager and/or to
7726 *** bug-libtool@gnu.org
7727
7728 _LT_EOF
7729 fi ;;
7730 esac
7731 fi
7732 break
7733 fi
7734 done
7735 IFS="$lt_save_ifs"
7736 MAGIC_CMD="$lt_save_MAGIC_CMD"
7737 ;;
7738 esac
7739 fi
7740
7741 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7742 if test -n "$MAGIC_CMD"; then
7743 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7744 $as_echo "$MAGIC_CMD" >&6; }
7745 else
7746 { $as_echo "$as_me:$LINENO: result: no" >&5
7747 $as_echo "no" >&6; }
7748 fi
7749
7750
7751
7752
7753
7754 if test -z "$lt_cv_path_MAGIC_CMD"; then
7755 if test -n "$ac_tool_prefix"; then
7756 { $as_echo "$as_me:$LINENO: checking for file" >&5
7757 $as_echo_n "checking for file... " >&6; }
7758 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7759 $as_echo_n "(cached) " >&6
7760 else
7761 case $MAGIC_CMD in
7762 [\\/*] | ?:[\\/]*)
7763 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7764 ;;
7765 *)
7766 lt_save_MAGIC_CMD="$MAGIC_CMD"
7767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7768 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7769 for ac_dir in $ac_dummy; do
7770 IFS="$lt_save_ifs"
7771 test -z "$ac_dir" && ac_dir=.
7772 if test -f $ac_dir/file; then
7773 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7774 if test -n "$file_magic_test_file"; then
7775 case $deplibs_check_method in
7776 "file_magic "*)
7777 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7778 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7779 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7780 $EGREP "$file_magic_regex" > /dev/null; then
7781 :
7782 else
7783 cat <<_LT_EOF 1>&2
7784
7785 *** Warning: the command libtool uses to detect shared libraries,
7786 *** $file_magic_cmd, produces output that libtool cannot recognize.
7787 *** The result is that libtool may fail to recognize shared libraries
7788 *** as such. This will affect the creation of libtool libraries that
7789 *** depend on shared libraries, but programs linked with such libtool
7790 *** libraries will work regardless of this problem. Nevertheless, you
7791 *** may want to report the problem to your system manager and/or to
7792 *** bug-libtool@gnu.org
7793
7794 _LT_EOF
7795 fi ;;
7796 esac
7797 fi
7798 break
7799 fi
7800 done
7801 IFS="$lt_save_ifs"
7802 MAGIC_CMD="$lt_save_MAGIC_CMD"
7803 ;;
7804 esac
7805 fi
7806
7807 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7808 if test -n "$MAGIC_CMD"; then
7809 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7810 $as_echo "$MAGIC_CMD" >&6; }
7811 else
7812 { $as_echo "$as_me:$LINENO: result: no" >&5
7813 $as_echo "no" >&6; }
7814 fi
7815
7816
7817 else
7818 MAGIC_CMD=:
7819 fi
7820 fi
7821
7822 fi
7823 ;;
7824 esac
7825
7826 # Use C for the default configuration in the libtool script
7827
7828 lt_save_CC="$CC"
7829 ac_ext=c
7830 ac_cpp='$CPP $CPPFLAGS'
7831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834
7835
7836 # Source file extension for C test sources.
7837 ac_ext=c
7838
7839 # Object file extension for compiled C test sources.
7840 objext=o
7841 objext=$objext
7842
7843 # Code to be used in simple compile tests
7844 lt_simple_compile_test_code="int some_variable = 0;"
7845
7846 # Code to be used in simple link tests
7847 lt_simple_link_test_code='int main(){return(0);}'
7848
7849
7850
7851
7852
7853
7854
7855 # If no C compiler was specified, use CC.
7856 LTCC=${LTCC-"$CC"}
7857
7858 # If no C compiler flags were specified, use CFLAGS.
7859 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7860
7861 # Allow CC to be a program name with arguments.
7862 compiler=$CC
7863
7864 # Save the default compiler, since it gets overwritten when the other
7865 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7866 compiler_DEFAULT=$CC
7867
7868 # save warnings/boilerplate of simple test code
7869 ac_outfile=conftest.$ac_objext
7870 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7871 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7872 _lt_compiler_boilerplate=`cat conftest.err`
7873 $RM conftest*
7874
7875 ac_outfile=conftest.$ac_objext
7876 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7877 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7878 _lt_linker_boilerplate=`cat conftest.err`
7879 $RM -r conftest*
7880
7881
7882 if test -n "$compiler"; then
7883
7884 lt_prog_compiler_no_builtin_flag=
7885
7886 if test "$GCC" = yes; then
7887 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7888
7889 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7890 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7891 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7892 $as_echo_n "(cached) " >&6
7893 else
7894 lt_cv_prog_compiler_rtti_exceptions=no
7895 ac_outfile=conftest.$ac_objext
7896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7897 lt_compiler_flag="-fno-rtti -fno-exceptions"
7898 # Insert the option either (1) after the last *FLAGS variable, or
7899 # (2) before a word containing "conftest.", or (3) at the end.
7900 # Note that $ac_compile itself does not contain backslashes and begins
7901 # with a dollar sign (not a hyphen), so the echo should work correctly.
7902 # The option is referenced via a variable to avoid confusing sed.
7903 lt_compile=`echo "$ac_compile" | $SED \
7904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7906 -e 's:$: $lt_compiler_flag:'`
7907 (eval echo "\"\$as_me:7907: $lt_compile\"" >&5)
7908 (eval "$lt_compile" 2>conftest.err)
7909 ac_status=$?
7910 cat conftest.err >&5
7911 echo "$as_me:7911: \$? = $ac_status" >&5
7912 if (exit $ac_status) && test -s "$ac_outfile"; then
7913 # The compiler can only warn and ignore the option if not recognized
7914 # So say no if there are warnings other than the usual output.
7915 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7917 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7918 lt_cv_prog_compiler_rtti_exceptions=yes
7919 fi
7920 fi
7921 $RM conftest*
7922
7923 fi
7924 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7925 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7926
7927 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7928 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7929 else
7930 :
7931 fi
7932
7933 fi
7934
7935
7936
7937
7938
7939
7940 lt_prog_compiler_wl=
7941 lt_prog_compiler_pic=
7942 lt_prog_compiler_static=
7943
7944 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7945 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7946
7947 if test "$GCC" = yes; then
7948 lt_prog_compiler_wl='-Wl,'
7949 lt_prog_compiler_static='-static'
7950
7951 case $host_os in
7952 aix*)
7953 # All AIX code is PIC.
7954 if test "$host_cpu" = ia64; then
7955 # AIX 5 now supports IA64 processor
7956 lt_prog_compiler_static='-Bstatic'
7957 fi
7958 ;;
7959
7960 amigaos*)
7961 case $host_cpu in
7962 powerpc)
7963 # see comment about AmigaOS4 .so support
7964 lt_prog_compiler_pic='-fPIC'
7965 ;;
7966 m68k)
7967 # FIXME: we need at least 68020 code to build shared libraries, but
7968 # adding the `-m68020' flag to GCC prevents building anything better,
7969 # like `-m68040'.
7970 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7971 ;;
7972 esac
7973 ;;
7974
7975 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7976 # PIC is the default for these OSes.
7977 ;;
7978
7979 mingw* | cygwin* | pw32* | os2* | cegcc*)
7980 # This hack is so that the source file can tell whether it is being
7981 # built for inclusion in a dll (and should export symbols for example).
7982 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7983 # (--disable-auto-import) libraries
7984 lt_prog_compiler_pic='-DDLL_EXPORT'
7985 ;;
7986
7987 darwin* | rhapsody*)
7988 # PIC is the default on this platform
7989 # Common symbols not allowed in MH_DYLIB files
7990 lt_prog_compiler_pic='-fno-common'
7991 ;;
7992
7993 hpux*)
7994 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7995 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7996 # sets the default TLS model and affects inlining.
7997 case $host_cpu in
7998 hppa*64*)
7999 # +Z the default
8000 ;;
8001 *)
8002 lt_prog_compiler_pic='-fPIC'
8003 ;;
8004 esac
8005 ;;
8006
8007 interix[3-9]*)
8008 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8009 # Instead, we relocate shared libraries at runtime.
8010 ;;
8011
8012 msdosdjgpp*)
8013 # Just because we use GCC doesn't mean we suddenly get shared libraries
8014 # on systems that don't support them.
8015 lt_prog_compiler_can_build_shared=no
8016 enable_shared=no
8017 ;;
8018
8019 *nto* | *qnx*)
8020 # QNX uses GNU C++, but need to define -shared option too, otherwise
8021 # it will coredump.
8022 lt_prog_compiler_pic='-fPIC -shared'
8023 ;;
8024
8025 sysv4*MP*)
8026 if test -d /usr/nec; then
8027 lt_prog_compiler_pic=-Kconform_pic
8028 fi
8029 ;;
8030
8031 *)
8032 lt_prog_compiler_pic='-fPIC'
8033 ;;
8034 esac
8035 else
8036 # PORTME Check for flag to pass linker flags through the system compiler.
8037 case $host_os in
8038 aix*)
8039 lt_prog_compiler_wl='-Wl,'
8040 if test "$host_cpu" = ia64; then
8041 # AIX 5 now supports IA64 processor
8042 lt_prog_compiler_static='-Bstatic'
8043 else
8044 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8045 fi
8046 ;;
8047
8048 mingw* | cygwin* | pw32* | os2* | cegcc*)
8049 # This hack is so that the source file can tell whether it is being
8050 # built for inclusion in a dll (and should export symbols for example).
8051 lt_prog_compiler_pic='-DDLL_EXPORT'
8052 ;;
8053
8054 hpux9* | hpux10* | hpux11*)
8055 lt_prog_compiler_wl='-Wl,'
8056 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8057 # not for PA HP-UX.
8058 case $host_cpu in
8059 hppa*64*|ia64*)
8060 # +Z the default
8061 ;;
8062 *)
8063 lt_prog_compiler_pic='+Z'
8064 ;;
8065 esac
8066 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8067 lt_prog_compiler_static='${wl}-a ${wl}archive'
8068 ;;
8069
8070 irix5* | irix6* | nonstopux*)
8071 lt_prog_compiler_wl='-Wl,'
8072 # PIC (with -KPIC) is the default.
8073 lt_prog_compiler_static='-non_shared'
8074 ;;
8075
8076 linux* | k*bsd*-gnu)
8077 case $cc_basename in
8078 # old Intel for x86_64 which still supported -KPIC.
8079 ecc*)
8080 lt_prog_compiler_wl='-Wl,'
8081 lt_prog_compiler_pic='-KPIC'
8082 lt_prog_compiler_static='-static'
8083 ;;
8084 # icc used to be incompatible with GCC.
8085 # ICC 10 doesn't accept -KPIC any more.
8086 icc* | ifort*)
8087 lt_prog_compiler_wl='-Wl,'
8088 lt_prog_compiler_pic='-fPIC'
8089 lt_prog_compiler_static='-static'
8090 ;;
8091 # Lahey Fortran 8.1.
8092 lf95*)
8093 lt_prog_compiler_wl='-Wl,'
8094 lt_prog_compiler_pic='--shared'
8095 lt_prog_compiler_static='--static'
8096 ;;
8097 pgcc* | pgf77* | pgf90* | pgf95*)
8098 # Portland Group compilers (*not* the Pentium gcc compiler,
8099 # which looks to be a dead project)
8100 lt_prog_compiler_wl='-Wl,'
8101 lt_prog_compiler_pic='-fpic'
8102 lt_prog_compiler_static='-Bstatic'
8103 ;;
8104 ccc*)
8105 lt_prog_compiler_wl='-Wl,'
8106 # All Alpha code is PIC.
8107 lt_prog_compiler_static='-non_shared'
8108 ;;
8109 xl*)
8110 # IBM XL C 8.0/Fortran 10.1 on PPC
8111 lt_prog_compiler_wl='-Wl,'
8112 lt_prog_compiler_pic='-qpic'
8113 lt_prog_compiler_static='-qstaticlink'
8114 ;;
8115 *)
8116 case `$CC -V 2>&1 | sed 5q` in
8117 *Sun\ C*)
8118 # Sun C 5.9
8119 lt_prog_compiler_pic='-KPIC'
8120 lt_prog_compiler_static='-Bstatic'
8121 lt_prog_compiler_wl='-Wl,'
8122 ;;
8123 *Sun\ F*)
8124 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8125 lt_prog_compiler_pic='-KPIC'
8126 lt_prog_compiler_static='-Bstatic'
8127 lt_prog_compiler_wl=''
8128 ;;
8129 esac
8130 ;;
8131 esac
8132 ;;
8133
8134 newsos6)
8135 lt_prog_compiler_pic='-KPIC'
8136 lt_prog_compiler_static='-Bstatic'
8137 ;;
8138
8139 *nto* | *qnx*)
8140 # QNX uses GNU C++, but need to define -shared option too, otherwise
8141 # it will coredump.
8142 lt_prog_compiler_pic='-fPIC -shared'
8143 ;;
8144
8145 osf3* | osf4* | osf5*)
8146 lt_prog_compiler_wl='-Wl,'
8147 # All OSF/1 code is PIC.
8148 lt_prog_compiler_static='-non_shared'
8149 ;;
8150
8151 rdos*)
8152 lt_prog_compiler_static='-non_shared'
8153 ;;
8154
8155 solaris*)
8156 lt_prog_compiler_pic='-KPIC'
8157 lt_prog_compiler_static='-Bstatic'
8158 case $cc_basename in
8159 f77* | f90* | f95*)
8160 lt_prog_compiler_wl='-Qoption ld ';;
8161 *)
8162 lt_prog_compiler_wl='-Wl,';;
8163 esac
8164 ;;
8165
8166 sunos4*)
8167 lt_prog_compiler_wl='-Qoption ld '
8168 lt_prog_compiler_pic='-PIC'
8169 lt_prog_compiler_static='-Bstatic'
8170 ;;
8171
8172 sysv4 | sysv4.2uw2* | sysv4.3*)
8173 lt_prog_compiler_wl='-Wl,'
8174 lt_prog_compiler_pic='-KPIC'
8175 lt_prog_compiler_static='-Bstatic'
8176 ;;
8177
8178 sysv4*MP*)
8179 if test -d /usr/nec ;then
8180 lt_prog_compiler_pic='-Kconform_pic'
8181 lt_prog_compiler_static='-Bstatic'
8182 fi
8183 ;;
8184
8185 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8186 lt_prog_compiler_wl='-Wl,'
8187 lt_prog_compiler_pic='-KPIC'
8188 lt_prog_compiler_static='-Bstatic'
8189 ;;
8190
8191 unicos*)
8192 lt_prog_compiler_wl='-Wl,'
8193 lt_prog_compiler_can_build_shared=no
8194 ;;
8195
8196 uts4*)
8197 lt_prog_compiler_pic='-pic'
8198 lt_prog_compiler_static='-Bstatic'
8199 ;;
8200
8201 *)
8202 lt_prog_compiler_can_build_shared=no
8203 ;;
8204 esac
8205 fi
8206
8207 case $host_os in
8208 # For platforms which do not support PIC, -DPIC is meaningless:
8209 *djgpp*)
8210 lt_prog_compiler_pic=
8211 ;;
8212 *)
8213 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8214 ;;
8215 esac
8216 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8217 $as_echo "$lt_prog_compiler_pic" >&6; }
8218
8219
8220
8221
8222
8223
8224 #
8225 # Check to make sure the PIC flag actually works.
8226 #
8227 if test -n "$lt_prog_compiler_pic"; then
8228 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8229 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8230 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8231 $as_echo_n "(cached) " >&6
8232 else
8233 lt_cv_prog_compiler_pic_works=no
8234 ac_outfile=conftest.$ac_objext
8235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8236 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8237 # Insert the option either (1) after the last *FLAGS variable, or
8238 # (2) before a word containing "conftest.", or (3) at the end.
8239 # Note that $ac_compile itself does not contain backslashes and begins
8240 # with a dollar sign (not a hyphen), so the echo should work correctly.
8241 # The option is referenced via a variable to avoid confusing sed.
8242 lt_compile=`echo "$ac_compile" | $SED \
8243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8245 -e 's:$: $lt_compiler_flag:'`
8246 (eval echo "\"\$as_me:8246: $lt_compile\"" >&5)
8247 (eval "$lt_compile" 2>conftest.err)
8248 ac_status=$?
8249 cat conftest.err >&5
8250 echo "$as_me:8250: \$? = $ac_status" >&5
8251 if (exit $ac_status) && test -s "$ac_outfile"; then
8252 # The compiler can only warn and ignore the option if not recognized
8253 # So say no if there are warnings other than the usual output.
8254 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8256 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8257 lt_cv_prog_compiler_pic_works=yes
8258 fi
8259 fi
8260 $RM conftest*
8261
8262 fi
8263 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8264 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8265
8266 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8267 case $lt_prog_compiler_pic in
8268 "" | " "*) ;;
8269 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8270 esac
8271 else
8272 lt_prog_compiler_pic=
8273 lt_prog_compiler_can_build_shared=no
8274 fi
8275
8276 fi
8277
8278
8279
8280
8281
8282
8283 #
8284 # Check to make sure the static flag actually works.
8285 #
8286 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8287 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8288 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8289 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8290 $as_echo_n "(cached) " >&6
8291 else
8292 lt_cv_prog_compiler_static_works=no
8293 save_LDFLAGS="$LDFLAGS"
8294 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8295 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8296 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8297 # The linker can only warn and ignore the option if not recognized
8298 # So say no if there are warnings
8299 if test -s conftest.err; then
8300 # Append any errors to the config.log.
8301 cat conftest.err 1>&5
8302 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8304 if diff conftest.exp conftest.er2 >/dev/null; then
8305 lt_cv_prog_compiler_static_works=yes
8306 fi
8307 else
8308 lt_cv_prog_compiler_static_works=yes
8309 fi
8310 fi
8311 $RM -r conftest*
8312 LDFLAGS="$save_LDFLAGS"
8313
8314 fi
8315 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8316 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8317
8318 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8319 :
8320 else
8321 lt_prog_compiler_static=
8322 fi
8323
8324
8325
8326
8327
8328
8329
8330 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8331 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8332 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8333 $as_echo_n "(cached) " >&6
8334 else
8335 lt_cv_prog_compiler_c_o=no
8336 $RM -r conftest 2>/dev/null
8337 mkdir conftest
8338 cd conftest
8339 mkdir out
8340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8341
8342 lt_compiler_flag="-o out/conftest2.$ac_objext"
8343 # Insert the option either (1) after the last *FLAGS variable, or
8344 # (2) before a word containing "conftest.", or (3) at the end.
8345 # Note that $ac_compile itself does not contain backslashes and begins
8346 # with a dollar sign (not a hyphen), so the echo should work correctly.
8347 lt_compile=`echo "$ac_compile" | $SED \
8348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8350 -e 's:$: $lt_compiler_flag:'`
8351 (eval echo "\"\$as_me:8351: $lt_compile\"" >&5)
8352 (eval "$lt_compile" 2>out/conftest.err)
8353 ac_status=$?
8354 cat out/conftest.err >&5
8355 echo "$as_me:8355: \$? = $ac_status" >&5
8356 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8357 then
8358 # The compiler can only warn and ignore the option if not recognized
8359 # So say no if there are warnings
8360 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8361 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8362 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8363 lt_cv_prog_compiler_c_o=yes
8364 fi
8365 fi
8366 chmod u+w . 2>&5
8367 $RM conftest*
8368 # SGI C++ compiler will create directory out/ii_files/ for
8369 # template instantiation
8370 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8371 $RM out/* && rmdir out
8372 cd ..
8373 $RM -r conftest
8374 $RM conftest*
8375
8376 fi
8377 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8378 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8379
8380
8381
8382
8383
8384
8385 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8386 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8387 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8388 $as_echo_n "(cached) " >&6
8389 else
8390 lt_cv_prog_compiler_c_o=no
8391 $RM -r conftest 2>/dev/null
8392 mkdir conftest
8393 cd conftest
8394 mkdir out
8395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8396
8397 lt_compiler_flag="-o out/conftest2.$ac_objext"
8398 # Insert the option either (1) after the last *FLAGS variable, or
8399 # (2) before a word containing "conftest.", or (3) at the end.
8400 # Note that $ac_compile itself does not contain backslashes and begins
8401 # with a dollar sign (not a hyphen), so the echo should work correctly.
8402 lt_compile=`echo "$ac_compile" | $SED \
8403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8405 -e 's:$: $lt_compiler_flag:'`
8406 (eval echo "\"\$as_me:8406: $lt_compile\"" >&5)
8407 (eval "$lt_compile" 2>out/conftest.err)
8408 ac_status=$?
8409 cat out/conftest.err >&5
8410 echo "$as_me:8410: \$? = $ac_status" >&5
8411 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8412 then
8413 # The compiler can only warn and ignore the option if not recognized
8414 # So say no if there are warnings
8415 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8416 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8417 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8418 lt_cv_prog_compiler_c_o=yes
8419 fi
8420 fi
8421 chmod u+w . 2>&5
8422 $RM conftest*
8423 # SGI C++ compiler will create directory out/ii_files/ for
8424 # template instantiation
8425 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8426 $RM out/* && rmdir out
8427 cd ..
8428 $RM -r conftest
8429 $RM conftest*
8430
8431 fi
8432 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8433 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8434
8435
8436
8437
8438 hard_links="nottested"
8439 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8440 # do not overwrite the value of need_locks provided by the user
8441 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8442 $as_echo_n "checking if we can lock with hard links... " >&6; }
8443 hard_links=yes
8444 $RM conftest*
8445 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8446 touch conftest.a
8447 ln conftest.a conftest.b 2>&5 || hard_links=no
8448 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8449 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8450 $as_echo "$hard_links" >&6; }
8451 if test "$hard_links" = no; then
8452 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8453 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8454 need_locks=warn
8455 fi
8456 else
8457 need_locks=no
8458 fi
8459
8460
8461
8462
8463
8464
8465 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8466 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8467
8468 runpath_var=
8469 allow_undefined_flag=
8470 always_export_symbols=no
8471 archive_cmds=
8472 archive_expsym_cmds=
8473 compiler_needs_object=no
8474 enable_shared_with_static_runtimes=no
8475 export_dynamic_flag_spec=
8476 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8477 hardcode_automatic=no
8478 hardcode_direct=no
8479 hardcode_direct_absolute=no
8480 hardcode_libdir_flag_spec=
8481 hardcode_libdir_flag_spec_ld=
8482 hardcode_libdir_separator=
8483 hardcode_minus_L=no
8484 hardcode_shlibpath_var=unsupported
8485 inherit_rpath=no
8486 link_all_deplibs=unknown
8487 module_cmds=
8488 module_expsym_cmds=
8489 old_archive_from_new_cmds=
8490 old_archive_from_expsyms_cmds=
8491 thread_safe_flag_spec=
8492 whole_archive_flag_spec=
8493 # include_expsyms should be a list of space-separated symbols to be *always*
8494 # included in the symbol list
8495 include_expsyms=
8496 # exclude_expsyms can be an extended regexp of symbols to exclude
8497 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8498 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8499 # as well as any symbol that contains `d'.
8500 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8501 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8502 # platforms (ab)use it in PIC code, but their linkers get confused if
8503 # the symbol is explicitly referenced. Since portable code cannot
8504 # rely on this symbol name, it's probably fine to never include it in
8505 # preloaded symbol tables.
8506 # Exclude shared library initialization/finalization symbols.
8507 extract_expsyms_cmds=
8508
8509 case $host_os in
8510 cygwin* | mingw* | pw32* | cegcc*)
8511 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8512 # When not using gcc, we currently assume that we are using
8513 # Microsoft Visual C++.
8514 if test "$GCC" != yes; then
8515 with_gnu_ld=no
8516 fi
8517 ;;
8518 interix*)
8519 # we just hope/assume this is gcc and not c89 (= MSVC++)
8520 with_gnu_ld=yes
8521 ;;
8522 openbsd*)
8523 with_gnu_ld=no
8524 ;;
8525 esac
8526
8527 ld_shlibs=yes
8528 if test "$with_gnu_ld" = yes; then
8529 # If archive_cmds runs LD, not CC, wlarc should be empty
8530 wlarc='${wl}'
8531
8532 # Set some defaults for GNU ld with shared library support. These
8533 # are reset later if shared libraries are not supported. Putting them
8534 # here allows them to be overridden if necessary.
8535 runpath_var=LD_RUN_PATH
8536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8537 export_dynamic_flag_spec='${wl}--export-dynamic'
8538 # ancient GNU ld didn't support --whole-archive et. al.
8539 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8540 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8541 else
8542 whole_archive_flag_spec=
8543 fi
8544 supports_anon_versioning=no
8545 case `$LD -v 2>&1` in
8546 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8547 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8548 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8549 *\ 2.11.*) ;; # other 2.11 versions
8550 *) supports_anon_versioning=yes ;;
8551 esac
8552
8553 # See if GNU ld supports shared libraries.
8554 case $host_os in
8555 aix[3-9]*)
8556 # On AIX/PPC, the GNU linker is very broken
8557 if test "$host_cpu" != ia64; then
8558 ld_shlibs=no
8559 cat <<_LT_EOF 1>&2
8560
8561 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8562 *** to be unable to reliably create shared libraries on AIX.
8563 *** Therefore, libtool is disabling shared libraries support. If you
8564 *** really care for shared libraries, you may want to modify your PATH
8565 *** so that a non-GNU linker is found, and then restart.
8566
8567 _LT_EOF
8568 fi
8569 ;;
8570
8571 amigaos*)
8572 case $host_cpu in
8573 powerpc)
8574 # see comment about AmigaOS4 .so support
8575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8576 archive_expsym_cmds=''
8577 ;;
8578 m68k)
8579 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)'
8580 hardcode_libdir_flag_spec='-L$libdir'
8581 hardcode_minus_L=yes
8582 ;;
8583 esac
8584 ;;
8585
8586 beos*)
8587 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8588 allow_undefined_flag=unsupported
8589 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8590 # support --undefined. This deserves some investigation. FIXME
8591 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8592 else
8593 ld_shlibs=no
8594 fi
8595 ;;
8596
8597 cygwin* | mingw* | pw32* | cegcc*)
8598 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8599 # as there is no search path for DLLs.
8600 hardcode_libdir_flag_spec='-L$libdir'
8601 allow_undefined_flag=unsupported
8602 always_export_symbols=no
8603 enable_shared_with_static_runtimes=yes
8604 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8605
8606 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8608 # If the export-symbols file already is a .def file (1st line
8609 # is EXPORTS), use it as is; otherwise, prepend...
8610 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8611 cp $export_symbols $output_objdir/$soname.def;
8612 else
8613 echo EXPORTS > $output_objdir/$soname.def;
8614 cat $export_symbols >> $output_objdir/$soname.def;
8615 fi~
8616 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8617 else
8618 ld_shlibs=no
8619 fi
8620 ;;
8621
8622 interix[3-9]*)
8623 hardcode_direct=no
8624 hardcode_shlibpath_var=no
8625 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8626 export_dynamic_flag_spec='${wl}-E'
8627 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8628 # Instead, shared libraries are loaded at an image base (0x10000000 by
8629 # default) and relocated if they conflict, which is a slow very memory
8630 # consuming and fragmenting process. To avoid this, we pick a random,
8631 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8632 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8633 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8634 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'
8635 ;;
8636
8637 gnu* | linux* | tpf* | k*bsd*-gnu)
8638 tmp_diet=no
8639 if test "$host_os" = linux-dietlibc; then
8640 case $cc_basename in
8641 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8642 esac
8643 fi
8644 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8645 && test "$tmp_diet" = no
8646 then
8647 tmp_addflag=
8648 tmp_sharedflag='-shared'
8649 case $cc_basename,$host_cpu in
8650 pgcc*) # Portland Group C compiler
8651 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'
8652 tmp_addflag=' $pic_flag'
8653 ;;
8654 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8655 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'
8656 tmp_addflag=' $pic_flag -Mnomain' ;;
8657 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8658 tmp_addflag=' -i_dynamic' ;;
8659 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8660 tmp_addflag=' -i_dynamic -nofor_main' ;;
8661 ifc* | ifort*) # Intel Fortran compiler
8662 tmp_addflag=' -nofor_main' ;;
8663 lf95*) # Lahey Fortran 8.1
8664 whole_archive_flag_spec=
8665 tmp_sharedflag='--shared' ;;
8666 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8667 tmp_sharedflag='-qmkshrobj'
8668 tmp_addflag= ;;
8669 esac
8670 case `$CC -V 2>&1 | sed 5q` in
8671 *Sun\ C*) # Sun C 5.9
8672 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'
8673 compiler_needs_object=yes
8674 tmp_sharedflag='-G' ;;
8675 *Sun\ F*) # Sun Fortran 8.3
8676 tmp_sharedflag='-G' ;;
8677 esac
8678 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8679
8680 if test "x$supports_anon_versioning" = xyes; then
8681 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8682 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8683 echo "local: *; };" >> $output_objdir/$libname.ver~
8684 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8685 fi
8686
8687 case $cc_basename in
8688 xlf*)
8689 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8690 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8691 hardcode_libdir_flag_spec=
8692 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8693 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8694 if test "x$supports_anon_versioning" = xyes; then
8695 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8697 echo "local: *; };" >> $output_objdir/$libname.ver~
8698 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8699 fi
8700 ;;
8701 esac
8702 else
8703 ld_shlibs=no
8704 fi
8705 ;;
8706
8707 netbsd*)
8708 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8709 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8710 wlarc=
8711 else
8712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8714 fi
8715 ;;
8716
8717 solaris*)
8718 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8719 ld_shlibs=no
8720 cat <<_LT_EOF 1>&2
8721
8722 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8723 *** create shared libraries on Solaris systems. Therefore, libtool
8724 *** is disabling shared libraries support. We urge you to upgrade GNU
8725 *** binutils to release 2.9.1 or newer. Another option is to modify
8726 *** your PATH or compiler configuration so that the native linker is
8727 *** used, and then restart.
8728
8729 _LT_EOF
8730 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8732 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8733 else
8734 ld_shlibs=no
8735 fi
8736 ;;
8737
8738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8739 case `$LD -v 2>&1` in
8740 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8741 ld_shlibs=no
8742 cat <<_LT_EOF 1>&2
8743
8744 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8745 *** reliably create shared libraries on SCO systems. Therefore, libtool
8746 *** is disabling shared libraries support. We urge you to upgrade GNU
8747 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8748 *** your PATH or compiler configuration so that the native linker is
8749 *** used, and then restart.
8750
8751 _LT_EOF
8752 ;;
8753 *)
8754 # For security reasons, it is highly recommended that you always
8755 # use absolute paths for naming shared libraries, and exclude the
8756 # DT_RUNPATH tag from executables and libraries. But doing so
8757 # requires that you compile everything twice, which is a pain.
8758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8762 else
8763 ld_shlibs=no
8764 fi
8765 ;;
8766 esac
8767 ;;
8768
8769 sunos4*)
8770 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8771 wlarc=
8772 hardcode_direct=yes
8773 hardcode_shlibpath_var=no
8774 ;;
8775
8776 *)
8777 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8779 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8780 else
8781 ld_shlibs=no
8782 fi
8783 ;;
8784 esac
8785
8786 if test "$ld_shlibs" = no; then
8787 runpath_var=
8788 hardcode_libdir_flag_spec=
8789 export_dynamic_flag_spec=
8790 whole_archive_flag_spec=
8791 fi
8792 else
8793 # PORTME fill in a description of your system's linker (not GNU ld)
8794 case $host_os in
8795 aix3*)
8796 allow_undefined_flag=unsupported
8797 always_export_symbols=yes
8798 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'
8799 # Note: this linker hardcodes the directories in LIBPATH if there
8800 # are no directories specified by -L.
8801 hardcode_minus_L=yes
8802 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8803 # Neither direct hardcoding nor static linking is supported with a
8804 # broken collect2.
8805 hardcode_direct=unsupported
8806 fi
8807 ;;
8808
8809 aix[4-9]*)
8810 if test "$host_cpu" = ia64; then
8811 # On IA64, the linker does run time linking by default, so we don't
8812 # have to do anything special.
8813 aix_use_runtimelinking=no
8814 exp_sym_flag='-Bexport'
8815 no_entry_flag=""
8816 else
8817 # If we're using GNU nm, then we don't want the "-C" option.
8818 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8819 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8820 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'
8821 else
8822 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'
8823 fi
8824 aix_use_runtimelinking=no
8825
8826 # Test if we are trying to use run time linking or normal
8827 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8828 # need to do runtime linking.
8829 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8830 for ld_flag in $LDFLAGS; do
8831 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8832 aix_use_runtimelinking=yes
8833 break
8834 fi
8835 done
8836 ;;
8837 esac
8838
8839 exp_sym_flag='-bexport'
8840 no_entry_flag='-bnoentry'
8841 fi
8842
8843 # When large executables or shared objects are built, AIX ld can
8844 # have problems creating the table of contents. If linking a library
8845 # or program results in "error TOC overflow" add -mminimal-toc to
8846 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8847 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8848
8849 archive_cmds=''
8850 hardcode_direct=yes
8851 hardcode_direct_absolute=yes
8852 hardcode_libdir_separator=':'
8853 link_all_deplibs=yes
8854 file_list_spec='${wl}-f,'
8855
8856 if test "$GCC" = yes; then
8857 case $host_os in aix4.[012]|aix4.[012].*)
8858 # We only want to do this on AIX 4.2 and lower, the check
8859 # below for broken collect2 doesn't work under 4.3+
8860 collect2name=`${CC} -print-prog-name=collect2`
8861 if test -f "$collect2name" &&
8862 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8863 then
8864 # We have reworked collect2
8865 :
8866 else
8867 # We have old collect2
8868 hardcode_direct=unsupported
8869 # It fails to find uninstalled libraries when the uninstalled
8870 # path is not listed in the libpath. Setting hardcode_minus_L
8871 # to unsupported forces relinking
8872 hardcode_minus_L=yes
8873 hardcode_libdir_flag_spec='-L$libdir'
8874 hardcode_libdir_separator=
8875 fi
8876 ;;
8877 esac
8878 shared_flag='-shared'
8879 if test "$aix_use_runtimelinking" = yes; then
8880 shared_flag="$shared_flag "'${wl}-G'
8881 fi
8882 else
8883 # not using gcc
8884 if test "$host_cpu" = ia64; then
8885 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8886 # chokes on -Wl,-G. The following line is correct:
8887 shared_flag='-G'
8888 else
8889 if test "$aix_use_runtimelinking" = yes; then
8890 shared_flag='${wl}-G'
8891 else
8892 shared_flag='${wl}-bM:SRE'
8893 fi
8894 fi
8895 fi
8896
8897 export_dynamic_flag_spec='${wl}-bexpall'
8898 # It seems that -bexpall does not export symbols beginning with
8899 # underscore (_), so it is better to generate a list of symbols to export.
8900 always_export_symbols=yes
8901 if test "$aix_use_runtimelinking" = yes; then
8902 # Warning - without using the other runtime loading flags (-brtl),
8903 # -berok will link without error, but may produce a broken library.
8904 allow_undefined_flag='-berok'
8905 # Determine the default libpath from the value encoded in an
8906 # empty executable.
8907 cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h. */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913
8914 int
8915 main ()
8916 {
8917
8918 ;
8919 return 0;
8920 }
8921 _ACEOF
8922 rm -f conftest.$ac_objext conftest$ac_exeext
8923 if { (ac_try="$ac_link"
8924 case "(($ac_try" in
8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8927 esac
8928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8929 $as_echo "$ac_try_echo") >&5
8930 (eval "$ac_link") 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && {
8937 test -z "$ac_c_werror_flag" ||
8938 test ! -s conftest.err
8939 } && test -s conftest$ac_exeext && {
8940 test "$cross_compiling" = yes ||
8941 $as_test_x conftest$ac_exeext
8942 }; then
8943
8944 lt_aix_libpath_sed='
8945 /Import File Strings/,/^$/ {
8946 /^0/ {
8947 s/^0 *\(.*\)$/\1/
8948 p
8949 }
8950 }'
8951 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8952 # Check for a 64-bit object if we didn't find anything.
8953 if test -z "$aix_libpath"; then
8954 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8955 fi
8956 else
8957 $as_echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8959
8960
8961 fi
8962
8963 rm -rf conftest.dSYM
8964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8965 conftest$ac_exeext conftest.$ac_ext
8966 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8967
8968 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8969 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"
8970 else
8971 if test "$host_cpu" = ia64; then
8972 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8973 allow_undefined_flag="-z nodefs"
8974 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"
8975 else
8976 # Determine the default libpath from the value encoded in an
8977 # empty executable.
8978 cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h. */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8984
8985 int
8986 main ()
8987 {
8988
8989 ;
8990 return 0;
8991 }
8992 _ACEOF
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (ac_try="$ac_link"
8995 case "(($ac_try" in
8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997 *) ac_try_echo=$ac_try;;
8998 esac
8999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9000 $as_echo "$ac_try_echo") >&5
9001 (eval "$ac_link") 2>conftest.er1
9002 ac_status=$?
9003 grep -v '^ *+' conftest.er1 >conftest.err
9004 rm -f conftest.er1
9005 cat conftest.err >&5
9006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } && {
9008 test -z "$ac_c_werror_flag" ||
9009 test ! -s conftest.err
9010 } && test -s conftest$ac_exeext && {
9011 test "$cross_compiling" = yes ||
9012 $as_test_x conftest$ac_exeext
9013 }; then
9014
9015 lt_aix_libpath_sed='
9016 /Import File Strings/,/^$/ {
9017 /^0/ {
9018 s/^0 *\(.*\)$/\1/
9019 p
9020 }
9021 }'
9022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9023 # Check for a 64-bit object if we didn't find anything.
9024 if test -z "$aix_libpath"; then
9025 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9026 fi
9027 else
9028 $as_echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031
9032 fi
9033
9034 rm -rf conftest.dSYM
9035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9036 conftest$ac_exeext conftest.$ac_ext
9037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9038
9039 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9040 # Warning - without using the other run time loading flags,
9041 # -berok will link without error, but may produce a broken library.
9042 no_undefined_flag=' ${wl}-bernotok'
9043 allow_undefined_flag=' ${wl}-berok'
9044 # Exported symbols can be pulled into shared objects from archives
9045 whole_archive_flag_spec='$convenience'
9046 archive_cmds_need_lc=yes
9047 # This is similar to how AIX traditionally builds its shared libraries.
9048 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'
9049 fi
9050 fi
9051 ;;
9052
9053 amigaos*)
9054 case $host_cpu in
9055 powerpc)
9056 # see comment about AmigaOS4 .so support
9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058 archive_expsym_cmds=''
9059 ;;
9060 m68k)
9061 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)'
9062 hardcode_libdir_flag_spec='-L$libdir'
9063 hardcode_minus_L=yes
9064 ;;
9065 esac
9066 ;;
9067
9068 bsdi[45]*)
9069 export_dynamic_flag_spec=-rdynamic
9070 ;;
9071
9072 cygwin* | mingw* | pw32* | cegcc*)
9073 # When not using gcc, we currently assume that we are using
9074 # Microsoft Visual C++.
9075 # hardcode_libdir_flag_spec is actually meaningless, as there is
9076 # no search path for DLLs.
9077 hardcode_libdir_flag_spec=' '
9078 allow_undefined_flag=unsupported
9079 # Tell ltmain to make .lib files, not .a files.
9080 libext=lib
9081 # Tell ltmain to make .dll files, not .so files.
9082 shrext_cmds=".dll"
9083 # FIXME: Setting linknames here is a bad hack.
9084 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9085 # The linker will automatically build a .lib file if we build a DLL.
9086 old_archive_from_new_cmds='true'
9087 # FIXME: Should let the user specify the lib program.
9088 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9089 fix_srcfile_path='`cygpath -w "$srcfile"`'
9090 enable_shared_with_static_runtimes=yes
9091 ;;
9092
9093 darwin* | rhapsody*)
9094
9095
9096 archive_cmds_need_lc=no
9097 hardcode_direct=no
9098 hardcode_automatic=yes
9099 hardcode_shlibpath_var=unsupported
9100 whole_archive_flag_spec=''
9101 link_all_deplibs=yes
9102 allow_undefined_flag="$_lt_dar_allow_undefined"
9103 case $cc_basename in
9104 ifort*) _lt_dar_can_shared=yes ;;
9105 *) _lt_dar_can_shared=$GCC ;;
9106 esac
9107 if test "$_lt_dar_can_shared" = "yes"; then
9108 output_verbose_link_cmd=echo
9109 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9110 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9111 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}"
9112 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}"
9113
9114 else
9115 ld_shlibs=no
9116 fi
9117
9118 ;;
9119
9120 dgux*)
9121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122 hardcode_libdir_flag_spec='-L$libdir'
9123 hardcode_shlibpath_var=no
9124 ;;
9125
9126 freebsd1*)
9127 ld_shlibs=no
9128 ;;
9129
9130 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9131 # support. Future versions do this automatically, but an explicit c++rt0.o
9132 # does not break anything, and helps significantly (at the cost of a little
9133 # extra space).
9134 freebsd2.2*)
9135 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9136 hardcode_libdir_flag_spec='-R$libdir'
9137 hardcode_direct=yes
9138 hardcode_shlibpath_var=no
9139 ;;
9140
9141 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9142 freebsd2*)
9143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9144 hardcode_direct=yes
9145 hardcode_minus_L=yes
9146 hardcode_shlibpath_var=no
9147 ;;
9148
9149 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9150 freebsd* | dragonfly*)
9151 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9152 hardcode_libdir_flag_spec='-R$libdir'
9153 hardcode_direct=yes
9154 hardcode_shlibpath_var=no
9155 ;;
9156
9157 hpux9*)
9158 if test "$GCC" = yes; then
9159 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'
9160 else
9161 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'
9162 fi
9163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9164 hardcode_libdir_separator=:
9165 hardcode_direct=yes
9166
9167 # hardcode_minus_L: Not really in the search PATH,
9168 # but as the default location of the library.
9169 hardcode_minus_L=yes
9170 export_dynamic_flag_spec='${wl}-E'
9171 ;;
9172
9173 hpux10*)
9174 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9175 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9176 else
9177 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9178 fi
9179 if test "$with_gnu_ld" = no; then
9180 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9181 hardcode_libdir_flag_spec_ld='+b $libdir'
9182 hardcode_libdir_separator=:
9183 hardcode_direct=yes
9184 hardcode_direct_absolute=yes
9185 export_dynamic_flag_spec='${wl}-E'
9186 # hardcode_minus_L: Not really in the search PATH,
9187 # but as the default location of the library.
9188 hardcode_minus_L=yes
9189 fi
9190 ;;
9191
9192 hpux11*)
9193 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9194 case $host_cpu in
9195 hppa*64*)
9196 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9197 ;;
9198 ia64*)
9199 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9200 ;;
9201 *)
9202 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9203 ;;
9204 esac
9205 else
9206 case $host_cpu in
9207 hppa*64*)
9208 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9209 ;;
9210 ia64*)
9211 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9212 ;;
9213 *)
9214 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9215 ;;
9216 esac
9217 fi
9218 if test "$with_gnu_ld" = no; then
9219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9220 hardcode_libdir_separator=:
9221
9222 case $host_cpu in
9223 hppa*64*|ia64*)
9224 hardcode_direct=no
9225 hardcode_shlibpath_var=no
9226 ;;
9227 *)
9228 hardcode_direct=yes
9229 hardcode_direct_absolute=yes
9230 export_dynamic_flag_spec='${wl}-E'
9231
9232 # hardcode_minus_L: Not really in the search PATH,
9233 # but as the default location of the library.
9234 hardcode_minus_L=yes
9235 ;;
9236 esac
9237 fi
9238 ;;
9239
9240 irix5* | irix6* | nonstopux*)
9241 if test "$GCC" = yes; then
9242 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'
9243 # Try to use the -exported_symbol ld option, if it does not
9244 # work, assume that -exports_file does not work either and
9245 # implicitly export all symbols.
9246 save_LDFLAGS="$LDFLAGS"
9247 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9248 cat >conftest.$ac_ext <<_ACEOF
9249 int foo(void) {}
9250 _ACEOF
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (ac_try="$ac_link"
9253 case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9256 esac
9257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9258 $as_echo "$ac_try_echo") >&5
9259 (eval "$ac_link") 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } && {
9266 test -z "$ac_c_werror_flag" ||
9267 test ! -s conftest.err
9268 } && test -s conftest$ac_exeext && {
9269 test "$cross_compiling" = yes ||
9270 $as_test_x conftest$ac_exeext
9271 }; then
9272 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'
9273
9274 else
9275 $as_echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9277
9278
9279 fi
9280
9281 rm -rf conftest.dSYM
9282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9283 conftest$ac_exeext conftest.$ac_ext
9284 LDFLAGS="$save_LDFLAGS"
9285 else
9286 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'
9287 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'
9288 fi
9289 archive_cmds_need_lc='no'
9290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9291 hardcode_libdir_separator=:
9292 inherit_rpath=yes
9293 link_all_deplibs=yes
9294 ;;
9295
9296 netbsd*)
9297 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9299 else
9300 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9301 fi
9302 hardcode_libdir_flag_spec='-R$libdir'
9303 hardcode_direct=yes
9304 hardcode_shlibpath_var=no
9305 ;;
9306
9307 newsos6)
9308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9309 hardcode_direct=yes
9310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9311 hardcode_libdir_separator=:
9312 hardcode_shlibpath_var=no
9313 ;;
9314
9315 *nto* | *qnx*)
9316 ;;
9317
9318 openbsd*)
9319 if test -f /usr/libexec/ld.so; then
9320 hardcode_direct=yes
9321 hardcode_shlibpath_var=no
9322 hardcode_direct_absolute=yes
9323 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9324 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9325 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9326 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9327 export_dynamic_flag_spec='${wl}-E'
9328 else
9329 case $host_os in
9330 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9332 hardcode_libdir_flag_spec='-R$libdir'
9333 ;;
9334 *)
9335 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9336 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9337 ;;
9338 esac
9339 fi
9340 else
9341 ld_shlibs=no
9342 fi
9343 ;;
9344
9345 os2*)
9346 hardcode_libdir_flag_spec='-L$libdir'
9347 hardcode_minus_L=yes
9348 allow_undefined_flag=unsupported
9349 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'
9350 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9351 ;;
9352
9353 osf3*)
9354 if test "$GCC" = yes; then
9355 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9356 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'
9357 else
9358 allow_undefined_flag=' -expect_unresolved \*'
9359 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'
9360 fi
9361 archive_cmds_need_lc='no'
9362 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9363 hardcode_libdir_separator=:
9364 ;;
9365
9366 osf4* | osf5*) # as osf3* with the addition of -msym flag
9367 if test "$GCC" = yes; then
9368 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9369 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'
9370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9371 else
9372 allow_undefined_flag=' -expect_unresolved \*'
9373 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'
9374 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~
9375 $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'
9376
9377 # Both c and cxx compiler support -rpath directly
9378 hardcode_libdir_flag_spec='-rpath $libdir'
9379 fi
9380 archive_cmds_need_lc='no'
9381 hardcode_libdir_separator=:
9382 ;;
9383
9384 solaris*)
9385 no_undefined_flag=' -z defs'
9386 if test "$GCC" = yes; then
9387 wlarc='${wl}'
9388 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9390 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9391 else
9392 case `$CC -V 2>&1` in
9393 *"Compilers 5.0"*)
9394 wlarc=''
9395 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9397 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9398 ;;
9399 *)
9400 wlarc='${wl}'
9401 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9403 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9404 ;;
9405 esac
9406 fi
9407 hardcode_libdir_flag_spec='-R$libdir'
9408 hardcode_shlibpath_var=no
9409 case $host_os in
9410 solaris2.[0-5] | solaris2.[0-5].*) ;;
9411 *)
9412 # The compiler driver will combine and reorder linker options,
9413 # but understands `-z linker_flag'. GCC discards it without `$wl',
9414 # but is careful enough not to reorder.
9415 # Supported since Solaris 2.6 (maybe 2.5.1?)
9416 if test "$GCC" = yes; then
9417 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9418 else
9419 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9420 fi
9421 ;;
9422 esac
9423 link_all_deplibs=yes
9424 ;;
9425
9426 sunos4*)
9427 if test "x$host_vendor" = xsequent; then
9428 # Use $CC to link under sequent, because it throws in some extra .o
9429 # files that make .init and .fini sections work.
9430 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9431 else
9432 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9433 fi
9434 hardcode_libdir_flag_spec='-L$libdir'
9435 hardcode_direct=yes
9436 hardcode_minus_L=yes
9437 hardcode_shlibpath_var=no
9438 ;;
9439
9440 sysv4)
9441 case $host_vendor in
9442 sni)
9443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9444 hardcode_direct=yes # is this really true???
9445 ;;
9446 siemens)
9447 ## LD is ld it makes a PLAMLIB
9448 ## CC just makes a GrossModule.
9449 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9450 reload_cmds='$CC -r -o $output$reload_objs'
9451 hardcode_direct=no
9452 ;;
9453 motorola)
9454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9456 ;;
9457 esac
9458 runpath_var='LD_RUN_PATH'
9459 hardcode_shlibpath_var=no
9460 ;;
9461
9462 sysv4.3*)
9463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9464 hardcode_shlibpath_var=no
9465 export_dynamic_flag_spec='-Bexport'
9466 ;;
9467
9468 sysv4*MP*)
9469 if test -d /usr/nec; then
9470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9471 hardcode_shlibpath_var=no
9472 runpath_var=LD_RUN_PATH
9473 hardcode_runpath_var=yes
9474 ld_shlibs=yes
9475 fi
9476 ;;
9477
9478 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9479 no_undefined_flag='${wl}-z,text'
9480 archive_cmds_need_lc=no
9481 hardcode_shlibpath_var=no
9482 runpath_var='LD_RUN_PATH'
9483
9484 if test "$GCC" = yes; then
9485 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9486 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9487 else
9488 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9489 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490 fi
9491 ;;
9492
9493 sysv5* | sco3.2v5* | sco5v6*)
9494 # Note: We can NOT use -z defs as we might desire, because we do not
9495 # link with -lc, and that would cause any symbols used from libc to
9496 # always be unresolved, which means just about no library would
9497 # ever link correctly. If we're not using GNU ld we use -z text
9498 # though, which does catch some bad symbols but isn't as heavy-handed
9499 # as -z defs.
9500 no_undefined_flag='${wl}-z,text'
9501 allow_undefined_flag='${wl}-z,nodefs'
9502 archive_cmds_need_lc=no
9503 hardcode_shlibpath_var=no
9504 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9505 hardcode_libdir_separator=':'
9506 link_all_deplibs=yes
9507 export_dynamic_flag_spec='${wl}-Bexport'
9508 runpath_var='LD_RUN_PATH'
9509
9510 if test "$GCC" = yes; then
9511 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9513 else
9514 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9515 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9516 fi
9517 ;;
9518
9519 uts4*)
9520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9521 hardcode_libdir_flag_spec='-L$libdir'
9522 hardcode_shlibpath_var=no
9523 ;;
9524
9525 *)
9526 ld_shlibs=no
9527 ;;
9528 esac
9529
9530 if test x$host_vendor = xsni; then
9531 case $host in
9532 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9533 export_dynamic_flag_spec='${wl}-Blargedynsym'
9534 ;;
9535 esac
9536 fi
9537 fi
9538
9539 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9540 $as_echo "$ld_shlibs" >&6; }
9541 test "$ld_shlibs" = no && can_build_shared=no
9542
9543 with_gnu_ld=$with_gnu_ld
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559 #
9560 # Do we need to explicitly link libc?
9561 #
9562 case "x$archive_cmds_need_lc" in
9563 x|xyes)
9564 # Assume -lc should be added
9565 archive_cmds_need_lc=yes
9566
9567 if test "$enable_shared" = yes && test "$GCC" = yes; then
9568 case $archive_cmds in
9569 *'~'*)
9570 # FIXME: we may have to deal with multi-command sequences.
9571 ;;
9572 '$CC '*)
9573 # Test whether the compiler implicitly links with -lc since on some
9574 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9575 # to ld, don't add -lc before -lgcc.
9576 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9577 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9578 $RM conftest*
9579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9580
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>&5
9583 ac_status=$?
9584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } 2>conftest.err; then
9586 soname=conftest
9587 lib=conftest
9588 libobjs=conftest.$ac_objext
9589 deplibs=
9590 wl=$lt_prog_compiler_wl
9591 pic_flag=$lt_prog_compiler_pic
9592 compiler_flags=-v
9593 linker_flags=-v
9594 verstring=
9595 output_objdir=.
9596 libname=conftest
9597 lt_save_allow_undefined_flag=$allow_undefined_flag
9598 allow_undefined_flag=
9599 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9600 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9601 ac_status=$?
9602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }
9604 then
9605 archive_cmds_need_lc=no
9606 else
9607 archive_cmds_need_lc=yes
9608 fi
9609 allow_undefined_flag=$lt_save_allow_undefined_flag
9610 else
9611 cat conftest.err 1>&5
9612 fi
9613 $RM conftest*
9614 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9615 $as_echo "$archive_cmds_need_lc" >&6; }
9616 ;;
9617 esac
9618 fi
9619 ;;
9620 esac
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9779 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9780
9781 if test "$GCC" = yes; then
9782 case $host_os in
9783 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9784 *) lt_awk_arg="/^libraries:/" ;;
9785 esac
9786 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9787 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9788 # if the path contains ";" then we assume it to be the separator
9789 # otherwise default to the standard path separator (i.e. ":") - it is
9790 # assumed that no part of a normal pathname contains ";" but that should
9791 # okay in the real world where ";" in dirpaths is itself problematic.
9792 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9793 else
9794 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9795 fi
9796 # Ok, now we have the path, separated by spaces, we can step through it
9797 # and add multilib dir if necessary.
9798 lt_tmp_lt_search_path_spec=
9799 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9800 for lt_sys_path in $lt_search_path_spec; do
9801 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9802 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9803 else
9804 test -d "$lt_sys_path" && \
9805 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9806 fi
9807 done
9808 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9809 BEGIN {RS=" "; FS="/|\n";} {
9810 lt_foo="";
9811 lt_count=0;
9812 for (lt_i = NF; lt_i > 0; lt_i--) {
9813 if ($lt_i != "" && $lt_i != ".") {
9814 if ($lt_i == "..") {
9815 lt_count++;
9816 } else {
9817 if (lt_count == 0) {
9818 lt_foo="/" $lt_i lt_foo;
9819 } else {
9820 lt_count--;
9821 }
9822 }
9823 }
9824 }
9825 if (lt_foo != "") { lt_freq[lt_foo]++; }
9826 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9827 }'`
9828 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9829 else
9830 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9831 fi
9832 library_names_spec=
9833 libname_spec='lib$name'
9834 soname_spec=
9835 shrext_cmds=".so"
9836 postinstall_cmds=
9837 postuninstall_cmds=
9838 finish_cmds=
9839 finish_eval=
9840 shlibpath_var=
9841 shlibpath_overrides_runpath=unknown
9842 version_type=none
9843 dynamic_linker="$host_os ld.so"
9844 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9845 need_lib_prefix=unknown
9846 hardcode_into_libs=no
9847
9848 # when you set need_version to no, make sure it does not cause -set_version
9849 # flags to be left without arguments
9850 need_version=unknown
9851
9852 case $host_os in
9853 aix3*)
9854 version_type=linux
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9856 shlibpath_var=LIBPATH
9857
9858 # AIX 3 has no versioning support, so we append a major version to the name.
9859 soname_spec='${libname}${release}${shared_ext}$major'
9860 ;;
9861
9862 aix[4-9]*)
9863 version_type=linux
9864 need_lib_prefix=no
9865 need_version=no
9866 hardcode_into_libs=yes
9867 if test "$host_cpu" = ia64; then
9868 # AIX 5 supports IA64
9869 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9870 shlibpath_var=LD_LIBRARY_PATH
9871 else
9872 # With GCC up to 2.95.x, collect2 would create an import file
9873 # for dependence libraries. The import file would start with
9874 # the line `#! .'. This would cause the generated library to
9875 # depend on `.', always an invalid library. This was fixed in
9876 # development snapshots of GCC prior to 3.0.
9877 case $host_os in
9878 aix4 | aix4.[01] | aix4.[01].*)
9879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9880 echo ' yes '
9881 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9882 :
9883 else
9884 can_build_shared=no
9885 fi
9886 ;;
9887 esac
9888 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9889 # soname into executable. Probably we can add versioning support to
9890 # collect2, so additional links can be useful in future.
9891 if test "$aix_use_runtimelinking" = yes; then
9892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9893 # instead of lib<name>.a to let people know that these are not
9894 # typical AIX shared libraries.
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896 else
9897 # We preserve .a as extension for shared libraries through AIX4.2
9898 # and later when we are not doing run time linking.
9899 library_names_spec='${libname}${release}.a $libname.a'
9900 soname_spec='${libname}${release}${shared_ext}$major'
9901 fi
9902 shlibpath_var=LIBPATH
9903 fi
9904 ;;
9905
9906 amigaos*)
9907 case $host_cpu in
9908 powerpc)
9909 # Since July 2007 AmigaOS4 officially supports .so libraries.
9910 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 ;;
9913 m68k)
9914 library_names_spec='$libname.ixlibrary $libname.a'
9915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9916 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'
9917 ;;
9918 esac
9919 ;;
9920
9921 beos*)
9922 library_names_spec='${libname}${shared_ext}'
9923 dynamic_linker="$host_os ld.so"
9924 shlibpath_var=LIBRARY_PATH
9925 ;;
9926
9927 bsdi[45]*)
9928 version_type=linux
9929 need_version=no
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9932 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9933 shlibpath_var=LD_LIBRARY_PATH
9934 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9935 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9936 # the default ld.so.conf also contains /usr/contrib/lib and
9937 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9938 # libtool to hard-code these into programs
9939 ;;
9940
9941 cygwin* | mingw* | pw32* | cegcc*)
9942 version_type=windows
9943 shrext_cmds=".dll"
9944 need_version=no
9945 need_lib_prefix=no
9946
9947 case $GCC,$host_os in
9948 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9949 library_names_spec='$libname.dll.a'
9950 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9951 postinstall_cmds='base_file=`basename \${file}`~
9952 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9953 dldir=$destdir/`dirname \$dlpath`~
9954 test -d \$dldir || mkdir -p \$dldir~
9955 $install_prog $dir/$dlname \$dldir/$dlname~
9956 chmod a+x \$dldir/$dlname~
9957 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9958 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9959 fi'
9960 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9961 dlpath=$dir/\$dldll~
9962 $RM \$dlpath'
9963 shlibpath_overrides_runpath=yes
9964
9965 case $host_os in
9966 cygwin*)
9967 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9968 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9969 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9970 ;;
9971 mingw* | cegcc*)
9972 # MinGW DLLs use traditional 'lib' prefix
9973 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9974 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9975 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9976 # It is most probably a Windows format PATH printed by
9977 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9978 # path with ; separators, and with drive letters. We can handle the
9979 # drive letters (cygwin fileutils understands them), so leave them,
9980 # especially as we might pass files found there to a mingw objdump,
9981 # which wouldn't understand a cygwinified path. Ahh.
9982 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9983 else
9984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9985 fi
9986 ;;
9987 pw32*)
9988 # pw32 DLLs use 'pw' prefix rather than 'lib'
9989 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9990 ;;
9991 esac
9992 ;;
9993
9994 *)
9995 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9996 ;;
9997 esac
9998 dynamic_linker='Win32 ld.exe'
9999 # FIXME: first we should search . and the directory the executable is in
10000 shlibpath_var=PATH
10001 ;;
10002
10003 darwin* | rhapsody*)
10004 dynamic_linker="$host_os dyld"
10005 version_type=darwin
10006 need_lib_prefix=no
10007 need_version=no
10008 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10009 soname_spec='${libname}${release}${major}$shared_ext'
10010 shlibpath_overrides_runpath=yes
10011 shlibpath_var=DYLD_LIBRARY_PATH
10012 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10013
10014 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10015 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10016 ;;
10017
10018 dgux*)
10019 version_type=linux
10020 need_lib_prefix=no
10021 need_version=no
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 ;;
10026
10027 freebsd1*)
10028 dynamic_linker=no
10029 ;;
10030
10031 freebsd* | dragonfly*)
10032 # DragonFly does not have aout. When/if they implement a new
10033 # versioning mechanism, adjust this.
10034 if test -x /usr/bin/objformat; then
10035 objformat=`/usr/bin/objformat`
10036 else
10037 case $host_os in
10038 freebsd[123]*) objformat=aout ;;
10039 *) objformat=elf ;;
10040 esac
10041 fi
10042 version_type=freebsd-$objformat
10043 case $version_type in
10044 freebsd-elf*)
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10046 need_version=no
10047 need_lib_prefix=no
10048 ;;
10049 freebsd-*)
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10051 need_version=yes
10052 ;;
10053 esac
10054 shlibpath_var=LD_LIBRARY_PATH
10055 case $host_os in
10056 freebsd2*)
10057 shlibpath_overrides_runpath=yes
10058 ;;
10059 freebsd3.[01]* | freebsdelf3.[01]*)
10060 shlibpath_overrides_runpath=yes
10061 hardcode_into_libs=yes
10062 ;;
10063 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10064 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10065 shlibpath_overrides_runpath=no
10066 hardcode_into_libs=yes
10067 ;;
10068 *) # from 4.6 on, and DragonFly
10069 shlibpath_overrides_runpath=yes
10070 hardcode_into_libs=yes
10071 ;;
10072 esac
10073 ;;
10074
10075 gnu*)
10076 version_type=linux
10077 need_lib_prefix=no
10078 need_version=no
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 shlibpath_var=LD_LIBRARY_PATH
10082 hardcode_into_libs=yes
10083 ;;
10084
10085 hpux9* | hpux10* | hpux11*)
10086 # Give a soname corresponding to the major version so that dld.sl refuses to
10087 # link against other versions.
10088 version_type=sunos
10089 need_lib_prefix=no
10090 need_version=no
10091 case $host_cpu in
10092 ia64*)
10093 shrext_cmds='.so'
10094 hardcode_into_libs=yes
10095 dynamic_linker="$host_os dld.so"
10096 shlibpath_var=LD_LIBRARY_PATH
10097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 if test "X$HPUX_IA64_MODE" = X32; then
10101 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10102 else
10103 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10104 fi
10105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10106 ;;
10107 hppa*64*)
10108 shrext_cmds='.sl'
10109 hardcode_into_libs=yes
10110 dynamic_linker="$host_os dld.sl"
10111 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 soname_spec='${libname}${release}${shared_ext}$major'
10115 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10117 ;;
10118 *)
10119 shrext_cmds='.sl'
10120 dynamic_linker="$host_os dld.sl"
10121 shlibpath_var=SHLIB_PATH
10122 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 soname_spec='${libname}${release}${shared_ext}$major'
10125 ;;
10126 esac
10127 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10128 postinstall_cmds='chmod 555 $lib'
10129 ;;
10130
10131 interix[3-9]*)
10132 version_type=linux
10133 need_lib_prefix=no
10134 need_version=no
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10138 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=no
10140 hardcode_into_libs=yes
10141 ;;
10142
10143 irix5* | irix6* | nonstopux*)
10144 case $host_os in
10145 nonstopux*) version_type=nonstopux ;;
10146 *)
10147 if test "$lt_cv_prog_gnu_ld" = yes; then
10148 version_type=linux
10149 else
10150 version_type=irix
10151 fi ;;
10152 esac
10153 need_lib_prefix=no
10154 need_version=no
10155 soname_spec='${libname}${release}${shared_ext}$major'
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10157 case $host_os in
10158 irix5* | nonstopux*)
10159 libsuff= shlibsuff=
10160 ;;
10161 *)
10162 case $LD in # libtool.m4 will add one of these switches to LD
10163 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10164 libsuff= shlibsuff= libmagic=32-bit;;
10165 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10166 libsuff=32 shlibsuff=N32 libmagic=N32;;
10167 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10168 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10169 *) libsuff= shlibsuff= libmagic=never-match;;
10170 esac
10171 ;;
10172 esac
10173 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10174 shlibpath_overrides_runpath=no
10175 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10176 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10177 hardcode_into_libs=yes
10178 ;;
10179
10180 # No shared lib support for Linux oldld, aout, or coff.
10181 linux*oldld* | linux*aout* | linux*coff*)
10182 dynamic_linker=no
10183 ;;
10184
10185 # This must be Linux ELF.
10186 linux* | k*bsd*-gnu)
10187 version_type=linux
10188 need_lib_prefix=no
10189 need_version=no
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath=no
10195 # Some binutils ld are patched to set DT_RUNPATH
10196 save_LDFLAGS=$LDFLAGS
10197 save_libdir=$libdir
10198 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10199 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h. */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206
10207 int
10208 main ()
10209 {
10210
10211 ;
10212 return 0;
10213 }
10214 _ACEOF
10215 rm -f conftest.$ac_objext conftest$ac_exeext
10216 if { (ac_try="$ac_link"
10217 case "(($ac_try" in
10218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10219 *) ac_try_echo=$ac_try;;
10220 esac
10221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10222 $as_echo "$ac_try_echo") >&5
10223 (eval "$ac_link") 2>conftest.er1
10224 ac_status=$?
10225 grep -v '^ *+' conftest.er1 >conftest.err
10226 rm -f conftest.er1
10227 cat conftest.err >&5
10228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest$ac_exeext && {
10233 test "$cross_compiling" = yes ||
10234 $as_test_x conftest$ac_exeext
10235 }; then
10236 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10237 shlibpath_overrides_runpath=yes
10238 fi
10239
10240 else
10241 $as_echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10243
10244
10245 fi
10246
10247 rm -rf conftest.dSYM
10248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249 conftest$ac_exeext conftest.$ac_ext
10250 LDFLAGS=$save_LDFLAGS
10251 libdir=$save_libdir
10252
10253 # This implies no fast_install, which is unacceptable.
10254 # Some rework will be needed to allow for fast_install
10255 # before this can be enabled.
10256 hardcode_into_libs=yes
10257
10258 # Add ABI-specific directories to the system library path.
10259 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10260
10261 # Append ld.so.conf contents to the search path
10262 if test -f /etc/ld.so.conf; then
10263 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' ' '`
10264 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10265 fi
10266
10267 # We used to test for /lib/ld.so.1 and disable shared libraries on
10268 # powerpc, because MkLinux only supported shared libraries with the
10269 # GNU dynamic linker. Since this was broken with cross compilers,
10270 # most powerpc-linux boxes support dynamic linking these days and
10271 # people can always --disable-shared, the test was removed, and we
10272 # assume the GNU/Linux dynamic linker is in use.
10273 dynamic_linker='GNU/Linux ld.so'
10274 ;;
10275
10276 netbsd*)
10277 version_type=sunos
10278 need_lib_prefix=no
10279 need_version=no
10280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10283 dynamic_linker='NetBSD (a.out) ld.so'
10284 else
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 dynamic_linker='NetBSD ld.elf_so'
10288 fi
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes
10291 hardcode_into_libs=yes
10292 ;;
10293
10294 newsos6)
10295 version_type=linux
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=yes
10299 ;;
10300
10301 *nto* | *qnx*)
10302 version_type=qnx
10303 need_lib_prefix=no
10304 need_version=no
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 shlibpath_overrides_runpath=no
10309 hardcode_into_libs=yes
10310 dynamic_linker='ldqnx.so'
10311 ;;
10312
10313 openbsd*)
10314 version_type=sunos
10315 sys_lib_dlsearch_path_spec="/usr/lib"
10316 need_lib_prefix=no
10317 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10318 case $host_os in
10319 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10320 *) need_version=no ;;
10321 esac
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10326 case $host_os in
10327 openbsd2.[89] | openbsd2.[89].*)
10328 shlibpath_overrides_runpath=no
10329 ;;
10330 *)
10331 shlibpath_overrides_runpath=yes
10332 ;;
10333 esac
10334 else
10335 shlibpath_overrides_runpath=yes
10336 fi
10337 ;;
10338
10339 os2*)
10340 libname_spec='$name'
10341 shrext_cmds=".dll"
10342 need_lib_prefix=no
10343 library_names_spec='$libname${shared_ext} $libname.a'
10344 dynamic_linker='OS/2 ld.exe'
10345 shlibpath_var=LIBPATH
10346 ;;
10347
10348 osf3* | osf4* | osf5*)
10349 version_type=osf
10350 need_lib_prefix=no
10351 need_version=no
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10356 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10357 ;;
10358
10359 rdos*)
10360 dynamic_linker=no
10361 ;;
10362
10363 solaris*)
10364 version_type=linux
10365 need_lib_prefix=no
10366 need_version=no
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=yes
10371 hardcode_into_libs=yes
10372 # ldd complains unless libraries are executable
10373 postinstall_cmds='chmod +x $lib'
10374 ;;
10375
10376 sunos4*)
10377 version_type=sunos
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10379 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=yes
10382 if test "$with_gnu_ld" = yes; then
10383 need_lib_prefix=no
10384 fi
10385 need_version=yes
10386 ;;
10387
10388 sysv4 | sysv4.3*)
10389 version_type=linux
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 case $host_vendor in
10394 sni)
10395 shlibpath_overrides_runpath=no
10396 need_lib_prefix=no
10397 runpath_var=LD_RUN_PATH
10398 ;;
10399 siemens)
10400 need_lib_prefix=no
10401 ;;
10402 motorola)
10403 need_lib_prefix=no
10404 need_version=no
10405 shlibpath_overrides_runpath=no
10406 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10407 ;;
10408 esac
10409 ;;
10410
10411 sysv4*MP*)
10412 if test -d /usr/nec ;then
10413 version_type=linux
10414 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10415 soname_spec='$libname${shared_ext}.$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 fi
10418 ;;
10419
10420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10421 version_type=freebsd-elf
10422 need_lib_prefix=no
10423 need_version=no
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=yes
10428 hardcode_into_libs=yes
10429 if test "$with_gnu_ld" = yes; then
10430 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10431 else
10432 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10433 case $host_os in
10434 sco3.2v5*)
10435 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10436 ;;
10437 esac
10438 fi
10439 sys_lib_dlsearch_path_spec='/usr/lib'
10440 ;;
10441
10442 tpf*)
10443 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10444 version_type=linux
10445 need_lib_prefix=no
10446 need_version=no
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=no
10450 hardcode_into_libs=yes
10451 ;;
10452
10453 uts4*)
10454 version_type=linux
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 ;;
10459
10460 *)
10461 dynamic_linker=no
10462 ;;
10463 esac
10464 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10465 $as_echo "$dynamic_linker" >&6; }
10466 test "$dynamic_linker" = no && can_build_shared=no
10467
10468 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10469 if test "$GCC" = yes; then
10470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10471 fi
10472
10473 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10474 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10475 fi
10476 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10477 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10478 fi
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10567 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10568 hardcode_action=
10569 if test -n "$hardcode_libdir_flag_spec" ||
10570 test -n "$runpath_var" ||
10571 test "X$hardcode_automatic" = "Xyes" ; then
10572
10573 # We can hardcode non-existent directories.
10574 if test "$hardcode_direct" != no &&
10575 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10576 # have to relink, otherwise we might link with an installed library
10577 # when we should be linking with a yet-to-be-installed one
10578 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10579 test "$hardcode_minus_L" != no; then
10580 # Linking always hardcodes the temporary library directory.
10581 hardcode_action=relink
10582 else
10583 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10584 hardcode_action=immediate
10585 fi
10586 else
10587 # We cannot hardcode anything, or else we can only hardcode existing
10588 # directories.
10589 hardcode_action=unsupported
10590 fi
10591 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10592 $as_echo "$hardcode_action" >&6; }
10593
10594 if test "$hardcode_action" = relink ||
10595 test "$inherit_rpath" = yes; then
10596 # Fast installation is not supported
10597 enable_fast_install=no
10598 elif test "$shlibpath_overrides_runpath" = yes ||
10599 test "$enable_shared" = no; then
10600 # Fast installation is not necessary
10601 enable_fast_install=needless
10602 fi
10603
10604
10605
10606
10607
10608
10609 if test "x$enable_dlopen" != xyes; then
10610 enable_dlopen=unknown
10611 enable_dlopen_self=unknown
10612 enable_dlopen_self_static=unknown
10613 else
10614 lt_cv_dlopen=no
10615 lt_cv_dlopen_libs=
10616
10617 case $host_os in
10618 beos*)
10619 lt_cv_dlopen="load_add_on"
10620 lt_cv_dlopen_libs=
10621 lt_cv_dlopen_self=yes
10622 ;;
10623
10624 mingw* | pw32* | cegcc*)
10625 lt_cv_dlopen="LoadLibrary"
10626 lt_cv_dlopen_libs=
10627 ;;
10628
10629 cygwin*)
10630 lt_cv_dlopen="dlopen"
10631 lt_cv_dlopen_libs=
10632 ;;
10633
10634 darwin*)
10635 # if libdl is installed we need to link against it
10636 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10637 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10639 $as_echo_n "(cached) " >&6
10640 else
10641 ac_check_lib_save_LIBS=$LIBS
10642 LIBS="-ldl $LIBS"
10643 cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h. */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649
10650 /* Override any GCC internal prototype to avoid an error.
10651 Use char because int might match the return type of a GCC
10652 builtin and then its argument prototype would still apply. */
10653 #ifdef __cplusplus
10654 extern "C"
10655 #endif
10656 char dlopen ();
10657 int
10658 main ()
10659 {
10660 return dlopen ();
10661 ;
10662 return 0;
10663 }
10664 _ACEOF
10665 rm -f conftest.$ac_objext conftest$ac_exeext
10666 if { (ac_try="$ac_link"
10667 case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670 esac
10671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10672 $as_echo "$ac_try_echo") >&5
10673 (eval "$ac_link") 2>conftest.er1
10674 ac_status=$?
10675 grep -v '^ *+' conftest.er1 >conftest.err
10676 rm -f conftest.er1
10677 cat conftest.err >&5
10678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && {
10680 test -z "$ac_c_werror_flag" ||
10681 test ! -s conftest.err
10682 } && test -s conftest$ac_exeext && {
10683 test "$cross_compiling" = yes ||
10684 $as_test_x conftest$ac_exeext
10685 }; then
10686 ac_cv_lib_dl_dlopen=yes
10687 else
10688 $as_echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10690
10691 ac_cv_lib_dl_dlopen=no
10692 fi
10693
10694 rm -rf conftest.dSYM
10695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10696 conftest$ac_exeext conftest.$ac_ext
10697 LIBS=$ac_check_lib_save_LIBS
10698 fi
10699 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10700 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10701 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10702 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10703 else
10704
10705 lt_cv_dlopen="dyld"
10706 lt_cv_dlopen_libs=
10707 lt_cv_dlopen_self=yes
10708
10709 fi
10710
10711 ;;
10712
10713 *)
10714 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10715 $as_echo_n "checking for shl_load... " >&6; }
10716 if test "${ac_cv_func_shl_load+set}" = set; then
10717 $as_echo_n "(cached) " >&6
10718 else
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h. */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10727 #define shl_load innocuous_shl_load
10728
10729 /* System header to define __stub macros and hopefully few prototypes,
10730 which can conflict with char shl_load (); below.
10731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10732 <limits.h> exists even on freestanding compilers. */
10733
10734 #ifdef __STDC__
10735 # include <limits.h>
10736 #else
10737 # include <assert.h>
10738 #endif
10739
10740 #undef shl_load
10741
10742 /* Override any GCC internal prototype to avoid an error.
10743 Use char because int might match the return type of a GCC
10744 builtin and then its argument prototype would still apply. */
10745 #ifdef __cplusplus
10746 extern "C"
10747 #endif
10748 char shl_load ();
10749 /* The GNU C library defines this for functions which it implements
10750 to always fail with ENOSYS. Some functions are actually named
10751 something starting with __ and the normal name is an alias. */
10752 #if defined __stub_shl_load || defined __stub___shl_load
10753 choke me
10754 #endif
10755
10756 int
10757 main ()
10758 {
10759 return shl_load ();
10760 ;
10761 return 0;
10762 }
10763 _ACEOF
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (ac_try="$ac_link"
10766 case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769 esac
10770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10771 $as_echo "$ac_try_echo") >&5
10772 (eval "$ac_link") 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } && {
10779 test -z "$ac_c_werror_flag" ||
10780 test ! -s conftest.err
10781 } && test -s conftest$ac_exeext && {
10782 test "$cross_compiling" = yes ||
10783 $as_test_x conftest$ac_exeext
10784 }; then
10785 ac_cv_func_shl_load=yes
10786 else
10787 $as_echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10789
10790 ac_cv_func_shl_load=no
10791 fi
10792
10793 rm -rf conftest.dSYM
10794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10795 conftest$ac_exeext conftest.$ac_ext
10796 fi
10797 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10798 $as_echo "$ac_cv_func_shl_load" >&6; }
10799 if test "x$ac_cv_func_shl_load" = x""yes; then
10800 lt_cv_dlopen="shl_load"
10801 else
10802 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10803 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10804 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10805 $as_echo_n "(cached) " >&6
10806 else
10807 ac_check_lib_save_LIBS=$LIBS
10808 LIBS="-ldld $LIBS"
10809 cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h. */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815
10816 /* Override any GCC internal prototype to avoid an error.
10817 Use char because int might match the return type of a GCC
10818 builtin and then its argument prototype would still apply. */
10819 #ifdef __cplusplus
10820 extern "C"
10821 #endif
10822 char shl_load ();
10823 int
10824 main ()
10825 {
10826 return shl_load ();
10827 ;
10828 return 0;
10829 }
10830 _ACEOF
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (ac_try="$ac_link"
10833 case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10836 esac
10837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10838 $as_echo "$ac_try_echo") >&5
10839 (eval "$ac_link") 2>conftest.er1
10840 ac_status=$?
10841 grep -v '^ *+' conftest.er1 >conftest.err
10842 rm -f conftest.er1
10843 cat conftest.err >&5
10844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } && {
10846 test -z "$ac_c_werror_flag" ||
10847 test ! -s conftest.err
10848 } && test -s conftest$ac_exeext && {
10849 test "$cross_compiling" = yes ||
10850 $as_test_x conftest$ac_exeext
10851 }; then
10852 ac_cv_lib_dld_shl_load=yes
10853 else
10854 $as_echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10856
10857 ac_cv_lib_dld_shl_load=no
10858 fi
10859
10860 rm -rf conftest.dSYM
10861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10862 conftest$ac_exeext conftest.$ac_ext
10863 LIBS=$ac_check_lib_save_LIBS
10864 fi
10865 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10866 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10867 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10868 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10869 else
10870 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10871 $as_echo_n "checking for dlopen... " >&6; }
10872 if test "${ac_cv_func_dlopen+set}" = set; then
10873 $as_echo_n "(cached) " >&6
10874 else
10875 cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h. */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10883 #define dlopen innocuous_dlopen
10884
10885 /* System header to define __stub macros and hopefully few prototypes,
10886 which can conflict with char dlopen (); below.
10887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10888 <limits.h> exists even on freestanding compilers. */
10889
10890 #ifdef __STDC__
10891 # include <limits.h>
10892 #else
10893 # include <assert.h>
10894 #endif
10895
10896 #undef dlopen
10897
10898 /* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10901 #ifdef __cplusplus
10902 extern "C"
10903 #endif
10904 char dlopen ();
10905 /* The GNU C library defines this for functions which it implements
10906 to always fail with ENOSYS. Some functions are actually named
10907 something starting with __ and the normal name is an alias. */
10908 #if defined __stub_dlopen || defined __stub___dlopen
10909 choke me
10910 #endif
10911
10912 int
10913 main ()
10914 {
10915 return dlopen ();
10916 ;
10917 return 0;
10918 }
10919 _ACEOF
10920 rm -f conftest.$ac_objext conftest$ac_exeext
10921 if { (ac_try="$ac_link"
10922 case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925 esac
10926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10927 $as_echo "$ac_try_echo") >&5
10928 (eval "$ac_link") 2>conftest.er1
10929 ac_status=$?
10930 grep -v '^ *+' conftest.er1 >conftest.err
10931 rm -f conftest.er1
10932 cat conftest.err >&5
10933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } && {
10935 test -z "$ac_c_werror_flag" ||
10936 test ! -s conftest.err
10937 } && test -s conftest$ac_exeext && {
10938 test "$cross_compiling" = yes ||
10939 $as_test_x conftest$ac_exeext
10940 }; then
10941 ac_cv_func_dlopen=yes
10942 else
10943 $as_echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10945
10946 ac_cv_func_dlopen=no
10947 fi
10948
10949 rm -rf conftest.dSYM
10950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10951 conftest$ac_exeext conftest.$ac_ext
10952 fi
10953 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10954 $as_echo "$ac_cv_func_dlopen" >&6; }
10955 if test "x$ac_cv_func_dlopen" = x""yes; then
10956 lt_cv_dlopen="dlopen"
10957 else
10958 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10959 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10960 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10961 $as_echo_n "(cached) " >&6
10962 else
10963 ac_check_lib_save_LIBS=$LIBS
10964 LIBS="-ldl $LIBS"
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h. */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971
10972 /* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10975 #ifdef __cplusplus
10976 extern "C"
10977 #endif
10978 char dlopen ();
10979 int
10980 main ()
10981 {
10982 return dlopen ();
10983 ;
10984 return 0;
10985 }
10986 _ACEOF
10987 rm -f conftest.$ac_objext conftest$ac_exeext
10988 if { (ac_try="$ac_link"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992 esac
10993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10994 $as_echo "$ac_try_echo") >&5
10995 (eval "$ac_link") 2>conftest.er1
10996 ac_status=$?
10997 grep -v '^ *+' conftest.er1 >conftest.err
10998 rm -f conftest.er1
10999 cat conftest.err >&5
11000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } && {
11002 test -z "$ac_c_werror_flag" ||
11003 test ! -s conftest.err
11004 } && test -s conftest$ac_exeext && {
11005 test "$cross_compiling" = yes ||
11006 $as_test_x conftest$ac_exeext
11007 }; then
11008 ac_cv_lib_dl_dlopen=yes
11009 else
11010 $as_echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11012
11013 ac_cv_lib_dl_dlopen=no
11014 fi
11015
11016 rm -rf conftest.dSYM
11017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11020 fi
11021 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11022 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11023 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11025 else
11026 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11027 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11028 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11029 $as_echo_n "(cached) " >&6
11030 else
11031 ac_check_lib_save_LIBS=$LIBS
11032 LIBS="-lsvld $LIBS"
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h. */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039
11040 /* Override any GCC internal prototype to avoid an error.
11041 Use char because int might match the return type of a GCC
11042 builtin and then its argument prototype would still apply. */
11043 #ifdef __cplusplus
11044 extern "C"
11045 #endif
11046 char dlopen ();
11047 int
11048 main ()
11049 {
11050 return dlopen ();
11051 ;
11052 return 0;
11053 }
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (ac_try="$ac_link"
11057 case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11060 esac
11061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11062 $as_echo "$ac_try_echo") >&5
11063 (eval "$ac_link") 2>conftest.er1
11064 ac_status=$?
11065 grep -v '^ *+' conftest.er1 >conftest.err
11066 rm -f conftest.er1
11067 cat conftest.err >&5
11068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } && {
11070 test -z "$ac_c_werror_flag" ||
11071 test ! -s conftest.err
11072 } && test -s conftest$ac_exeext && {
11073 test "$cross_compiling" = yes ||
11074 $as_test_x conftest$ac_exeext
11075 }; then
11076 ac_cv_lib_svld_dlopen=yes
11077 else
11078 $as_echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11080
11081 ac_cv_lib_svld_dlopen=no
11082 fi
11083
11084 rm -rf conftest.dSYM
11085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11086 conftest$ac_exeext conftest.$ac_ext
11087 LIBS=$ac_check_lib_save_LIBS
11088 fi
11089 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11090 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11091 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11092 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11093 else
11094 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11095 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11096 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11097 $as_echo_n "(cached) " >&6
11098 else
11099 ac_check_lib_save_LIBS=$LIBS
11100 LIBS="-ldld $LIBS"
11101 cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h. */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11107
11108 /* Override any GCC internal prototype to avoid an error.
11109 Use char because int might match the return type of a GCC
11110 builtin and then its argument prototype would still apply. */
11111 #ifdef __cplusplus
11112 extern "C"
11113 #endif
11114 char dld_link ();
11115 int
11116 main ()
11117 {
11118 return dld_link ();
11119 ;
11120 return 0;
11121 }
11122 _ACEOF
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (ac_try="$ac_link"
11125 case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128 esac
11129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11130 $as_echo "$ac_try_echo") >&5
11131 (eval "$ac_link") 2>conftest.er1
11132 ac_status=$?
11133 grep -v '^ *+' conftest.er1 >conftest.err
11134 rm -f conftest.er1
11135 cat conftest.err >&5
11136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } && {
11138 test -z "$ac_c_werror_flag" ||
11139 test ! -s conftest.err
11140 } && test -s conftest$ac_exeext && {
11141 test "$cross_compiling" = yes ||
11142 $as_test_x conftest$ac_exeext
11143 }; then
11144 ac_cv_lib_dld_dld_link=yes
11145 else
11146 $as_echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11148
11149 ac_cv_lib_dld_dld_link=no
11150 fi
11151
11152 rm -rf conftest.dSYM
11153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11154 conftest$ac_exeext conftest.$ac_ext
11155 LIBS=$ac_check_lib_save_LIBS
11156 fi
11157 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11158 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11159 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11160 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11161 fi
11162
11163
11164 fi
11165
11166
11167 fi
11168
11169
11170 fi
11171
11172
11173 fi
11174
11175
11176 fi
11177
11178 ;;
11179 esac
11180
11181 if test "x$lt_cv_dlopen" != xno; then
11182 enable_dlopen=yes
11183 else
11184 enable_dlopen=no
11185 fi
11186
11187 case $lt_cv_dlopen in
11188 dlopen)
11189 save_CPPFLAGS="$CPPFLAGS"
11190 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11191
11192 save_LDFLAGS="$LDFLAGS"
11193 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11194
11195 save_LIBS="$LIBS"
11196 LIBS="$lt_cv_dlopen_libs $LIBS"
11197
11198 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11199 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11200 if test "${lt_cv_dlopen_self+set}" = set; then
11201 $as_echo_n "(cached) " >&6
11202 else
11203 if test "$cross_compiling" = yes; then :
11204 lt_cv_dlopen_self=cross
11205 else
11206 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11207 lt_status=$lt_dlunknown
11208 cat > conftest.$ac_ext <<_LT_EOF
11209 #line 11209 "configure"
11210 #include "confdefs.h"
11211
11212 #if HAVE_DLFCN_H
11213 #include <dlfcn.h>
11214 #endif
11215
11216 #include <stdio.h>
11217
11218 #ifdef RTLD_GLOBAL
11219 # define LT_DLGLOBAL RTLD_GLOBAL
11220 #else
11221 # ifdef DL_GLOBAL
11222 # define LT_DLGLOBAL DL_GLOBAL
11223 # else
11224 # define LT_DLGLOBAL 0
11225 # endif
11226 #endif
11227
11228 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11229 find out it does not work in some platform. */
11230 #ifndef LT_DLLAZY_OR_NOW
11231 # ifdef RTLD_LAZY
11232 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11233 # else
11234 # ifdef DL_LAZY
11235 # define LT_DLLAZY_OR_NOW DL_LAZY
11236 # else
11237 # ifdef RTLD_NOW
11238 # define LT_DLLAZY_OR_NOW RTLD_NOW
11239 # else
11240 # ifdef DL_NOW
11241 # define LT_DLLAZY_OR_NOW DL_NOW
11242 # else
11243 # define LT_DLLAZY_OR_NOW 0
11244 # endif
11245 # endif
11246 # endif
11247 # endif
11248 #endif
11249
11250 void fnord() { int i=42;}
11251 int main ()
11252 {
11253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11254 int status = $lt_dlunknown;
11255
11256 if (self)
11257 {
11258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11259 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11260 /* dlclose (self); */
11261 }
11262 else
11263 puts (dlerror ());
11264
11265 return status;
11266 }
11267 _LT_EOF
11268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11269 (eval $ac_link) 2>&5
11270 ac_status=$?
11271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11273 (./conftest; exit; ) >&5 2>/dev/null
11274 lt_status=$?
11275 case x$lt_status in
11276 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11277 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11278 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11279 esac
11280 else :
11281 # compilation failed
11282 lt_cv_dlopen_self=no
11283 fi
11284 fi
11285 rm -fr conftest*
11286
11287
11288 fi
11289 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11290 $as_echo "$lt_cv_dlopen_self" >&6; }
11291
11292 if test "x$lt_cv_dlopen_self" = xyes; then
11293 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11294 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11295 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11296 if test "${lt_cv_dlopen_self_static+set}" = set; then
11297 $as_echo_n "(cached) " >&6
11298 else
11299 if test "$cross_compiling" = yes; then :
11300 lt_cv_dlopen_self_static=cross
11301 else
11302 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11303 lt_status=$lt_dlunknown
11304 cat > conftest.$ac_ext <<_LT_EOF
11305 #line 11305 "configure"
11306 #include "confdefs.h"
11307
11308 #if HAVE_DLFCN_H
11309 #include <dlfcn.h>
11310 #endif
11311
11312 #include <stdio.h>
11313
11314 #ifdef RTLD_GLOBAL
11315 # define LT_DLGLOBAL RTLD_GLOBAL
11316 #else
11317 # ifdef DL_GLOBAL
11318 # define LT_DLGLOBAL DL_GLOBAL
11319 # else
11320 # define LT_DLGLOBAL 0
11321 # endif
11322 #endif
11323
11324 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11325 find out it does not work in some platform. */
11326 #ifndef LT_DLLAZY_OR_NOW
11327 # ifdef RTLD_LAZY
11328 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11329 # else
11330 # ifdef DL_LAZY
11331 # define LT_DLLAZY_OR_NOW DL_LAZY
11332 # else
11333 # ifdef RTLD_NOW
11334 # define LT_DLLAZY_OR_NOW RTLD_NOW
11335 # else
11336 # ifdef DL_NOW
11337 # define LT_DLLAZY_OR_NOW DL_NOW
11338 # else
11339 # define LT_DLLAZY_OR_NOW 0
11340 # endif
11341 # endif
11342 # endif
11343 # endif
11344 #endif
11345
11346 void fnord() { int i=42;}
11347 int main ()
11348 {
11349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11350 int status = $lt_dlunknown;
11351
11352 if (self)
11353 {
11354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11356 /* dlclose (self); */
11357 }
11358 else
11359 puts (dlerror ());
11360
11361 return status;
11362 }
11363 _LT_EOF
11364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11365 (eval $ac_link) 2>&5
11366 ac_status=$?
11367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11369 (./conftest; exit; ) >&5 2>/dev/null
11370 lt_status=$?
11371 case x$lt_status in
11372 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11373 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11374 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11375 esac
11376 else :
11377 # compilation failed
11378 lt_cv_dlopen_self_static=no
11379 fi
11380 fi
11381 rm -fr conftest*
11382
11383
11384 fi
11385 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11386 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11387 fi
11388
11389 CPPFLAGS="$save_CPPFLAGS"
11390 LDFLAGS="$save_LDFLAGS"
11391 LIBS="$save_LIBS"
11392 ;;
11393 esac
11394
11395 case $lt_cv_dlopen_self in
11396 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11397 *) enable_dlopen_self=unknown ;;
11398 esac
11399
11400 case $lt_cv_dlopen_self_static in
11401 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11402 *) enable_dlopen_self_static=unknown ;;
11403 esac
11404 fi
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422 striplib=
11423 old_striplib=
11424 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11425 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11426 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11427 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11428 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11429 { $as_echo "$as_me:$LINENO: result: yes" >&5
11430 $as_echo "yes" >&6; }
11431 else
11432 # FIXME - insert some real tests, host_os isn't really good enough
11433 case $host_os in
11434 darwin*)
11435 if test -n "$STRIP" ; then
11436 striplib="$STRIP -x"
11437 old_striplib="$STRIP -S"
11438 { $as_echo "$as_me:$LINENO: result: yes" >&5
11439 $as_echo "yes" >&6; }
11440 else
11441 { $as_echo "$as_me:$LINENO: result: no" >&5
11442 $as_echo "no" >&6; }
11443 fi
11444 ;;
11445 *)
11446 { $as_echo "$as_me:$LINENO: result: no" >&5
11447 $as_echo "no" >&6; }
11448 ;;
11449 esac
11450 fi
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463 # Report which library types will actually be built
11464 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11465 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11466 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11467 $as_echo "$can_build_shared" >&6; }
11468
11469 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11470 $as_echo_n "checking whether to build shared libraries... " >&6; }
11471 test "$can_build_shared" = "no" && enable_shared=no
11472
11473 # On AIX, shared libraries and static libraries use the same namespace, and
11474 # are all built from PIC.
11475 case $host_os in
11476 aix3*)
11477 test "$enable_shared" = yes && enable_static=no
11478 if test -n "$RANLIB"; then
11479 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11480 postinstall_cmds='$RANLIB $lib'
11481 fi
11482 ;;
11483
11484 aix[4-9]*)
11485 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11486 test "$enable_shared" = yes && enable_static=no
11487 fi
11488 ;;
11489 esac
11490 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11491 $as_echo "$enable_shared" >&6; }
11492
11493 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11494 $as_echo_n "checking whether to build static libraries... " >&6; }
11495 # Make sure either enable_shared or enable_static is yes.
11496 test "$enable_shared" = yes || enable_static=yes
11497 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11498 $as_echo "$enable_static" >&6; }
11499
11500
11501
11502
11503 fi
11504 ac_ext=c
11505 ac_cpp='$CPP $CPPFLAGS'
11506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11509
11510 CC="$lt_save_CC"
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524 ac_config_commands="$ac_config_commands libtool"
11525
11526
11527
11528
11529 # Only expand once:
11530
11531
11532 # By default we simply use the C compiler to build assembly code.
11533
11534 test "${CCAS+set}" = set || CCAS=$CC
11535 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11536
11537
11538
11539 depcc="$CCAS" am_compiler_list=
11540
11541 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11542 $as_echo_n "checking dependency style of $depcc... " >&6; }
11543 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11544 $as_echo_n "(cached) " >&6
11545 else
11546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11547 # We make a subdir and do the tests there. Otherwise we can end up
11548 # making bogus files that we don't know about and never remove. For
11549 # instance it was reported that on HP-UX the gcc test will end up
11550 # making a dummy file named `D' -- because `-MD' means `put the output
11551 # in D'.
11552 mkdir conftest.dir
11553 # Copy depcomp to subdir because otherwise we won't find it if we're
11554 # using a relative directory.
11555 cp "$am_depcomp" conftest.dir
11556 cd conftest.dir
11557 # We will build objects and dependencies in a subdirectory because
11558 # it helps to detect inapplicable dependency modes. For instance
11559 # both Tru64's cc and ICC support -MD to output dependencies as a
11560 # side effect of compilation, but ICC will put the dependencies in
11561 # the current directory while Tru64 will put them in the object
11562 # directory.
11563 mkdir sub
11564
11565 am_cv_CCAS_dependencies_compiler_type=none
11566 if test "$am_compiler_list" = ""; then
11567 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11568 fi
11569 am__universal=false
11570
11571
11572 for depmode in $am_compiler_list; do
11573 # Setup a source with many dependencies, because some compilers
11574 # like to wrap large dependency lists on column 80 (with \), and
11575 # we should not choose a depcomp mode which is confused by this.
11576 #
11577 # We need to recreate these files for each test, as the compiler may
11578 # overwrite some of them when testing with obscure command lines.
11579 # This happens at least with the AIX C compiler.
11580 : > sub/conftest.c
11581 for i in 1 2 3 4 5 6; do
11582 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11583 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11584 # Solaris 8's {/usr,}/bin/sh.
11585 touch sub/conftst$i.h
11586 done
11587 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11588
11589 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11590 # mode. It turns out that the SunPro C++ compiler does not properly
11591 # handle `-M -o', and we need to detect this. Also, some Intel
11592 # versions had trouble with output in subdirs
11593 am__obj=sub/conftest.${OBJEXT-o}
11594 am__minus_obj="-o $am__obj"
11595 case $depmode in
11596 gcc)
11597 # This depmode causes a compiler race in universal mode.
11598 test "$am__universal" = false || continue
11599 ;;
11600 nosideeffect)
11601 # after this tag, mechanisms are not by side-effect, so they'll
11602 # only be used when explicitly requested
11603 if test "x$enable_dependency_tracking" = xyes; then
11604 continue
11605 else
11606 break
11607 fi
11608 ;;
11609 msvisualcpp | msvcmsys)
11610 # This compiler won't grok `-c -o', but also, the minuso test has
11611 # not run yet. These depmodes are late enough in the game, and
11612 # so weak that their functioning should not be impacted.
11613 am__obj=conftest.${OBJEXT-o}
11614 am__minus_obj=
11615 ;;
11616 none) break ;;
11617 esac
11618 if depmode=$depmode \
11619 source=sub/conftest.c object=$am__obj \
11620 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11621 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11622 >/dev/null 2>conftest.err &&
11623 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11624 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11625 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11626 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11627 # icc doesn't choke on unknown options, it will just issue warnings
11628 # or remarks (even with -Werror). So we grep stderr for any message
11629 # that says an option was ignored or not supported.
11630 # When given -MP, icc 7.0 and 7.1 complain thusly:
11631 # icc: Command line warning: ignoring option '-M'; no argument required
11632 # The diagnosis changed in icc 8.0:
11633 # icc: Command line remark: option '-MP' not supported
11634 if (grep 'ignoring option' conftest.err ||
11635 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11636 am_cv_CCAS_dependencies_compiler_type=$depmode
11637 break
11638 fi
11639 fi
11640 done
11641
11642 cd ..
11643 rm -rf conftest.dir
11644 else
11645 am_cv_CCAS_dependencies_compiler_type=none
11646 fi
11647
11648 fi
11649 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11650 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11651 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11652
11653 if
11654 test "x$enable_dependency_tracking" != xno \
11655 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11656 am__fastdepCCAS_TRUE=
11657 am__fastdepCCAS_FALSE='#'
11658 else
11659 am__fastdepCCAS_TRUE='#'
11660 am__fastdepCCAS_FALSE=
11661 fi
11662
11663
11664
11665
11666 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11667 $as_echo_n "checking zfs author... " >&6; }
11668 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11669 $as_echo "$ZFS_META_AUTHOR" >&6; }
11670
11671 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11672 $as_echo_n "checking zfs license... " >&6; }
11673 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11674 $as_echo "$ZFS_META_LICENSE" >&6; }
11675
11676
11677
11678 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11679 $as_echo_n "checking linux distribution... " >&6; }
11680 if test -f /etc/toss-release ; then
11681 VENDOR=toss ;
11682 elif test -f /etc/fedora-release ; then
11683 VENDOR=fedora ;
11684 elif test -f /etc/redhat-release ; then
11685 VENDOR=redhat ;
11686 elif test -f /etc/gentoo-release ; then
11687 VENDOR=gentoo ;
11688 elif test -f /etc/arch-release ; then
11689 VENDOR=arch ;
11690 elif test -f /etc/SuSE-release ; then
11691 VENDOR=sles ;
11692 elif test -f /etc/slackware-version ; then
11693 VENDOR=slackware ;
11694 elif test -f /etc/lunar.release ; then
11695 VENDOR=lunar ;
11696 elif test -f /etc/lsb-release ; then
11697 VENDOR=ubuntu ;
11698 elif test -f /etc/debian_version ; then
11699 VENDOR=debian ;
11700 else
11701 VENDOR= ;
11702 fi
11703 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11704 $as_echo "$VENDOR" >&6; }
11705
11706
11707 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11708 $as_echo_n "checking default package type... " >&6; }
11709 case "$VENDOR" in
11710 toss) DEFAULT_PACKAGE=rpm ;;
11711 redhat) DEFAULT_PACKAGE=rpm ;;
11712 fedora) DEFAULT_PACKAGE=rpm ;;
11713 gentoo) DEFAULT_PACKAGE=tgz ;;
11714 arch) DEFAULT_PACKAGE=arch ;;
11715 sles) DEFAULT_PACKAGE=rpm ;;
11716 slackware) DEFAULT_PACKAGE=tgz ;;
11717 lunar) DEFAULT_PACKAGE=tgz ;;
11718 ubuntu) DEFAULT_PACKAGE=deb ;;
11719 debian) DEFAULT_PACKAGE=deb ;;
11720 *) DEFAULT_PACKAGE=rpm ;;
11721 esac
11722
11723 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11724 $as_echo "$DEFAULT_PACKAGE" >&6; }
11725
11726
11727 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11728 $as_echo_n "checking default init directory... " >&6; }
11729 case "$VENDOR" in
11730 arch) DEFAULT_INIT_DIR=$sysconfdir/rc.d ;;
11731 *) DEFAULT_INIT_DIR=$sysconfdir/init.d ;;
11732 esac
11733
11734 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11735 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11736
11737
11738 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11739 $as_echo_n "checking default init script type... " >&6; }
11740 case "$VENDOR" in
11741 toss) DEFAULT_INIT_SCRIPT=redhat ;;
11742 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
11743 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
11744 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
11745 arch) DEFAULT_INIT_SCRIPT=arch ;;
11746 sles) DEFAULT_INIT_SCRIPT=lsb ;;
11747 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
11748 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
11749 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
11750 debian) DEFAULT_INIT_SCRIPT=lsb ;;
11751 *) DEFAULT_INIT_SCRIPT=lsb ;;
11752 esac
11753
11754 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11755 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11756
11757
11758
11759 RPM=rpm
11760 RPMBUILD=rpmbuild
11761
11762 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11763 $as_echo_n "checking whether $RPM is available... " >&6; }
11764 if tmp=$($RPM --version 2>/dev/null); then
11765
11766 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11767 HAVE_RPM=yes
11768 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11769 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11770
11771 else
11772
11773 HAVE_RPM=no
11774 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11775 $as_echo "$HAVE_RPM" >&6; }
11776
11777 fi
11778
11779
11780 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11781 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11782 if tmp=$($RPMBUILD --version 2>/dev/null); then
11783
11784 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11785 HAVE_RPMBUILD=yes
11786 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11787 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11788
11789 else
11790
11791 HAVE_RPMBUILD=no
11792 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11793 $as_echo "$HAVE_RPMBUILD" >&6; }
11794
11795 fi
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807 DPKG=dpkg
11808 DPKGBUILD=dpkg-buildpackage
11809
11810 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11811 $as_echo_n "checking whether $DPKG is available... " >&6; }
11812 if tmp=$($DPKG --version 2>/dev/null); then
11813
11814 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11815 HAVE_DPKG=yes
11816 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11817 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11818
11819 else
11820
11821 HAVE_DPKG=no
11822 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11823 $as_echo "$HAVE_DPKG" >&6; }
11824
11825 fi
11826
11827
11828 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11829 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11830 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11831
11832 DPKGBUILD_VERSION=$(echo $tmp | \
11833 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11834 HAVE_DPKGBUILD=yes
11835 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11836 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11837
11838 else
11839
11840 HAVE_DPKGBUILD=no
11841 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11842 $as_echo "$HAVE_DPKGBUILD" >&6; }
11843
11844 fi
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856 ALIEN=alien
11857
11858 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11859 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11860 if tmp=$($ALIEN --version 2>/dev/null); then
11861
11862 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11863 HAVE_ALIEN=yes
11864 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11865 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11866
11867 else
11868
11869 HAVE_ALIEN=no
11870 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11871 $as_echo "$HAVE_ALIEN" >&6; }
11872
11873 fi
11874
11875
11876
11877
11878
11879
11880
11881 if test "$VENDOR" = "arch"; then
11882
11883 PACMAN=pacman
11884 MAKEPKG=makepkg
11885
11886 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11887 $as_echo_n "checking whether $PACMAN is available... " >&6; }
11888 tmp=$($PACMAN --version 2>/dev/null)
11889 if test -n "$tmp"; then
11890
11891 PACMAN_VERSION=$(echo $tmp |
11892 $AWK '/Pacman/ { print $3 }' |
11893 $SED 's/^v//')
11894 HAVE_PACMAN=yes
11895 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11896 $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11897
11898 else
11899
11900 HAVE_PACMAN=no
11901 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11902 $as_echo "$HAVE_PACMAN" >&6; }
11903
11904 fi
11905
11906
11907 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11908 $as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11909 tmp=$($MAKEPKG --version 2>/dev/null)
11910 if test -n "$tmp"; then
11911
11912 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11913 HAVE_MAKEPKG=yes
11914 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11915 $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11916
11917 else
11918
11919 HAVE_MAKEPKG=no
11920 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11921 $as_echo "$HAVE_MAKEPKG" >&6; }
11922
11923 fi
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934 fi
11935
11936
11937
11938 TARGET_ASM_DIR=asm-generic
11939
11940
11941 ZFS_CONFIG=all
11942
11943 # Check whether --with-config was given.
11944 if test "${with_config+set}" = set; then
11945 withval=$with_config; ZFS_CONFIG="$withval"
11946 fi
11947
11948
11949 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11950 $as_echo_n "checking zfs config... " >&6; }
11951 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11952 $as_echo "$ZFS_CONFIG" >&6; };
11953
11954
11955
11956
11957 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11958 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11959
11960 saved_flags="$CFLAGS"
11961 CFLAGS="$CFLAGS -Wunused-but-set-variable"
11962
11963 if test "$cross_compiling" = yes; then
11964 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11966 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11967 See \`config.log' for more details." >&5
11968 $as_echo "$as_me: error: cannot run test program while cross compiling
11969 See \`config.log' for more details." >&2;}
11970 { (exit 1); exit 1; }; }; }
11971 else
11972 cat >conftest.$ac_ext <<_ACEOF
11973 /* confdefs.h. */
11974 _ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h. */
11978
11979 int
11980 main ()
11981 {
11982
11983 ;
11984 return 0;
11985 }
11986 _ACEOF
11987 rm -f conftest$ac_exeext
11988 if { (ac_try="$ac_link"
11989 case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11992 esac
11993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11994 $as_echo "$ac_try_echo") >&5
11995 (eval "$ac_link") 2>&5
11996 ac_status=$?
11997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11999 { (case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002 esac
12003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12004 $as_echo "$ac_try_echo") >&5
12005 (eval "$ac_try") 2>&5
12006 ac_status=$?
12007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; }; then
12009
12010 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12011 { $as_echo "$as_me:$LINENO: result: yes" >&5
12012 $as_echo "yes" >&6; }
12013
12014 else
12015 $as_echo "$as_me: program exited with status $ac_status" >&5
12016 $as_echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12018
12019 ( exit $ac_status )
12020
12021 NO_UNUSED_BUT_SET_VARIABLE=
12022 { $as_echo "$as_me:$LINENO: result: no" >&5
12023 $as_echo "no" >&6; }
12024
12025 fi
12026 rm -rf conftest.dSYM
12027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12028 fi
12029
12030
12031
12032 CFLAGS="$saved_flags"
12033
12034
12035
12036
12037 case "$ZFS_CONFIG" in
12038 kernel)
12039
12040
12041 # Check whether --with-linux was given.
12042 if test "${with_linux+set}" = set; then
12043 withval=$with_linux; kernelsrc="$withval"
12044 fi
12045
12046
12047
12048 # Check whether --with-linux-obj was given.
12049 if test "${with_linux_obj+set}" = set; then
12050 withval=$with_linux_obj; kernelbuild="$withval"
12051 fi
12052
12053
12054 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
12055 $as_echo_n "checking kernel source directory... " >&6; }
12056 if test -z "$kernelsrc"; then
12057
12058 if test -e "/lib/modules/$(uname -r)/source"; then
12059
12060 headersdir="/lib/modules/$(uname -r)/source"
12061 sourcelink=$(readlink -f "$headersdir")
12062
12063 elif test -e "/lib/modules/$(uname -r)/build"; then
12064
12065 headersdir="/lib/modules/$(uname -r)/build"
12066 sourcelink=$(readlink -f "$headersdir")
12067
12068 else
12069
12070 sourcelink=$(ls -1d /usr/src/kernels/* \
12071 /usr/src/linux-* \
12072 2>/dev/null | grep -v obj | tail -1)
12073
12074 fi
12075
12076
12077 if test -n "$sourcelink" && test -e ${sourcelink}; then
12078
12079 kernelsrc=`readlink -f ${sourcelink}`
12080
12081 else
12082
12083 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12084 $as_echo "Not found" >&6; }
12085 { { $as_echo "$as_me:$LINENO: error:
12086 *** Please make sure the kernel devel package for your distribution
12087 *** is installed then try again. If that fails you can specify the
12088 *** location of the kernel source with the '--with-linux=PATH' option." >&5
12089 $as_echo "$as_me: error:
12090 *** Please make sure the kernel devel package for your distribution
12091 *** is installed then try again. If that fails you can specify the
12092 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
12093 { (exit 1); exit 1; }; }
12094
12095 fi
12096
12097
12098 else
12099
12100 if test "$kernelsrc" = "NONE"; then
12101
12102 kernsrcver=NONE
12103
12104 fi
12105
12106
12107 fi
12108
12109
12110 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12111 $as_echo "$kernelsrc" >&6; }
12112 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12113 $as_echo_n "checking kernel build directory... " >&6; }
12114 if test -z "$kernelbuild"; then
12115
12116 if test -e "/lib/modules/$(uname -r)/build"; then
12117
12118 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12119
12120 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12121
12122 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12123
12124 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
12125
12126 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12127
12128 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
12129
12130 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12131
12132 else
12133
12134 kernelbuild=${kernelsrc}
12135
12136 fi
12137
12138
12139 fi
12140
12141 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12142 $as_echo "$kernelbuild" >&6; }
12143
12144 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12145 $as_echo_n "checking kernel source version... " >&6; }
12146 utsrelease1=$kernelbuild/include/linux/version.h
12147 utsrelease2=$kernelbuild/include/linux/utsrelease.h
12148 utsrelease3=$kernelbuild/include/generated/utsrelease.h
12149 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
12150
12151 utsrelease=linux/version.h
12152
12153 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
12154
12155 utsrelease=linux/utsrelease.h
12156
12157 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
12158
12159 utsrelease=generated/utsrelease.h
12160
12161 fi
12162
12163
12164 if test "$utsrelease"; then
12165
12166 kernsrcver=`(echo "#include <$utsrelease>";
12167 echo "kernsrcver=UTS_RELEASE") |
12168 cpp -I $kernelbuild/include |
12169 grep "^kernsrcver=" | cut -d \" -f 2`
12170
12171 if test -z "$kernsrcver"; then
12172
12173 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12174 $as_echo "Not found" >&6; }
12175 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12176 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12177 { (exit 1); exit 1; }; }
12178
12179 fi
12180
12181
12182 else
12183
12184 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12185 $as_echo "Not found" >&6; }
12186 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12187 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12188 { (exit 1); exit 1; }; }
12189
12190 fi
12191
12192
12193 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12194 $as_echo "$kernsrcver" >&6; }
12195
12196 LINUX=${kernelsrc}
12197 LINUX_OBJ=${kernelbuild}
12198 LINUX_VERSION=${kernsrcver}
12199
12200
12201
12202
12203
12204
12205 modpost=$LINUX/scripts/Makefile.modpost
12206 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12207 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12208 if test -f "$modpost"; then
12209
12210 if grep -q Modules.symvers $modpost; then
12211
12212 LINUX_SYMBOLS=Modules.symvers
12213
12214 else
12215
12216 LINUX_SYMBOLS=Module.symvers
12217
12218 fi
12219
12220
12221 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12222
12223 { { $as_echo "$as_me:$LINENO: error:
12224 *** Please make sure the kernel devel package for your distribution
12225 *** is installed. If your building with a custom kernel make sure the
12226 *** kernel is configured, built, and the '--with-linux=PATH' configure
12227 *** option refers to the location of the kernel source." >&5
12228 $as_echo "$as_me: error:
12229 *** Please make sure the kernel devel package for your distribution
12230 *** is installed. If your building with a custom kernel make sure the
12231 *** kernel is configured, built, and the '--with-linux=PATH' configure
12232 *** option refers to the location of the kernel source." >&2;}
12233 { (exit 1); exit 1; }; }
12234
12235 fi
12236
12237
12238 else
12239
12240 LINUX_SYMBOLS=NONE
12241
12242 fi
12243
12244 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12245 $as_echo "$LINUX_SYMBOLS" >&6; }
12246
12247
12248
12249
12250
12251 # Check whether --with-spl was given.
12252 if test "${with_spl+set}" = set; then
12253 withval=$with_spl; splsrc="$withval"
12254 fi
12255
12256
12257
12258 # Check whether --with-spl-obj was given.
12259 if test "${with_spl_obj+set}" = set; then
12260 withval=$with_spl_obj; splbuild="$withval"
12261 fi
12262
12263
12264
12265 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12266 $as_echo_n "checking spl source directory... " >&6; }
12267 if test -z "$splsrc"; then
12268
12269 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12270 2>/dev/null | tail -1`
12271
12272 if test -z "$sourcelink" || test ! -e $sourcelink; then
12273
12274 sourcelink=../spl
12275
12276 fi
12277
12278
12279 if test -e $sourcelink; then
12280
12281 splsrc=`readlink -f ${sourcelink}`
12282
12283 else
12284
12285 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12286 $as_echo "Not found" >&6; }
12287 { { $as_echo "$as_me:$LINENO: error:
12288 *** Please make sure the spl devel package for your distribution
12289 *** is installed then try again. If that fails you can specify the
12290 *** location of the spl source with the '--with-spl=PATH' option." >&5
12291 $as_echo "$as_me: error:
12292 *** Please make sure the spl devel package for your distribution
12293 *** is installed then try again. If that fails you can specify the
12294 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12295 { (exit 1); exit 1; }; }
12296
12297 fi
12298
12299
12300 else
12301
12302 if test "$splsrc" = "NONE"; then
12303
12304 splbuild=NONE
12305 splsrcver=NONE
12306
12307 fi
12308
12309
12310 fi
12311
12312
12313 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12314 $as_echo "$splsrc" >&6; }
12315 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12316 $as_echo_n "checking spl build directory... " >&6; }
12317 if test -z "$splbuild"; then
12318
12319 splbuild=${splsrc}
12320
12321 fi
12322
12323 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12324 $as_echo "$splbuild" >&6; }
12325
12326 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12327 $as_echo_n "checking spl source version... " >&6; }
12328 if test -r $splbuild/spl_config.h &&
12329 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
12330
12331
12332 splsrcver=`(echo "#include <spl_config.h>";
12333 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12334 cpp -I $splbuild |
12335 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12336
12337 fi
12338
12339
12340 if test -z "$splsrcver"; then
12341
12342 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12343 $as_echo "Not found" >&6; }
12344 { { $as_echo "$as_me:$LINENO: error:
12345 *** Cannot determine the version of the spl source.
12346 *** Please prepare the spl source before running this script" >&5
12347 $as_echo "$as_me: error:
12348 *** Cannot determine the version of the spl source.
12349 *** Please prepare the spl source before running this script" >&2;}
12350 { (exit 1); exit 1; }; }
12351
12352 fi
12353
12354
12355 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12356 $as_echo "$splsrcver" >&6; }
12357
12358 SPL=${splsrc}
12359 SPL_OBJ=${splbuild}
12360 SPL_VERSION=${splsrcver}
12361
12362
12363
12364
12365
12366
12367 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12368 $as_echo_n "checking spl file name for module symbols... " >&6; }
12369 if test -r $SPL_OBJ/Module.symvers; then
12370
12371 SPL_SYMBOLS=Module.symvers
12372
12373 elif test -r $SPL_OBJ/Modules.symvers; then
12374
12375 SPL_SYMBOLS=Modules.symvers
12376
12377 elif test -r $SPL_OBJ/module/Module.symvers; then
12378
12379 SPL_SYMBOLS=Module.symvers
12380
12381 elif test -r $SPL_OBJ/module/Modules.symvers; then
12382
12383 SPL_SYMBOLS=Modules.symvers
12384
12385 else
12386
12387 SPL_SYMBOLS=$LINUX_SYMBOLS
12388
12389 fi
12390
12391
12392 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12393 $as_echo "$SPL_SYMBOLS" >&6; }
12394
12395
12396
12397
12398
12399 if test "$ZFS_META_LICENSE" = GPL; then
12400
12401
12402 cat >>confdefs.h <<\_ACEOF
12403 #define HAVE_GPL_ONLY_SYMBOLS 1
12404 _ACEOF
12405
12406
12407 fi
12408
12409
12410
12411
12412 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12413 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12414
12415
12416 cat confdefs.h - <<_ACEOF >conftest.c
12417 /* confdefs.h. */
12418 _ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12422
12423
12424 #include <linux/module.h>
12425
12426 int
12427 main (void)
12428 {
12429
12430 #ifndef CONFIG_PREEMPT
12431 #error CONFIG_PREEMPT not #defined
12432 #endif
12433
12434 ;
12435 return 0;
12436 }
12437
12438 _ACEOF
12439
12440
12441 rm -Rf build && mkdir -p build
12442 echo "obj-m := conftest.o" >build/Makefile
12443 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12446 ac_status=$?
12447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12454
12455 { $as_echo "$as_me:$LINENO: result: yes" >&5
12456 $as_echo "yes" >&6; }
12457 { { $as_echo "$as_me:$LINENO: error:
12458 *** Kernel built with CONFIG_PREEMPT which is not supported.
12459 *** You must rebuild your kernel without this option." >&5
12460 $as_echo "$as_me: error:
12461 *** Kernel built with CONFIG_PREEMPT which is not supported.
12462 *** You must rebuild your kernel without this option." >&2;}
12463 { (exit 1); exit 1; }; }
12464
12465 else
12466 $as_echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12468
12469 { $as_echo "$as_me:$LINENO: result: no" >&5
12470 $as_echo "no" >&6; }
12471
12472
12473
12474
12475 fi
12476
12477 rm -Rf build
12478
12479
12480
12481
12482
12483
12484 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12485 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12486
12487
12488 cat confdefs.h - <<_ACEOF >conftest.c
12489 /* confdefs.h. */
12490 _ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12494
12495
12496 #include <linux/module.h>
12497
12498 int
12499 main (void)
12500 {
12501
12502 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12503 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12504 #endif
12505
12506 ;
12507 return 0;
12508 }
12509
12510 _ACEOF
12511
12512
12513 rm -Rf build && mkdir -p build
12514 echo "obj-m := conftest.o" >build/Makefile
12515 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12518 ac_status=$?
12519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12523 ac_status=$?
12524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526
12527 { $as_echo "$as_me:$LINENO: result: yes" >&5
12528 $as_echo "yes" >&6; }
12529
12530 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
12531 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
12532 tmp_flags="$EXTRA_KCFLAGS"
12533
12534
12535 cat confdefs.h - <<_ACEOF >conftest.c
12536 /* confdefs.h. */
12537 _ACEOF
12538 cat confdefs.h >>conftest.$ac_ext
12539 cat >>conftest.$ac_ext <<_ACEOF
12540 /* end confdefs.h. */
12541
12542
12543 #include <linux/module.h>
12544 #include <linux/mutex.h>
12545
12546 MODULE_LICENSE("$ZFS_META_LICENSE");
12547
12548 int
12549 main (void)
12550 {
12551
12552 struct mutex lock;
12553
12554 mutex_init(&lock);
12555 mutex_lock(&lock);
12556 mutex_unlock(&lock);
12557
12558 ;
12559 return 0;
12560 }
12561
12562 _ACEOF
12563
12564
12565 rm -Rf build && mkdir -p build
12566 echo "obj-m := conftest.o" >build/Makefile
12567 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12570 ac_status=$?
12571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
12576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578
12579 { $as_echo "$as_me:$LINENO: result: no" >&5
12580 $as_echo "no" >&6; }
12581
12582 else
12583 $as_echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12585
12586 { $as_echo "$as_me:$LINENO: result: yes" >&5
12587 $as_echo "yes" >&6; }
12588 { { $as_echo "$as_me:$LINENO: error:
12589 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12590 *** with the CDDL license and will prevent the module linking stage
12591 *** from succeeding. You must rebuild your kernel without this
12592 *** option enabled." >&5
12593 $as_echo "$as_me: error:
12594 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12595 *** with the CDDL license and will prevent the module linking stage
12596 *** from succeeding. You must rebuild your kernel without this
12597 *** option enabled." >&2;}
12598 { (exit 1); exit 1; }; }
12599
12600
12601
12602 fi
12603
12604 rm -Rf build
12605
12606
12607 EXTRA_KCFLAGS="$tmp_flags"
12608
12609
12610 else
12611 $as_echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12613
12614 { $as_echo "$as_me:$LINENO: result: no" >&5
12615 $as_echo "no" >&6; }
12616
12617
12618
12619
12620 fi
12621
12622 rm -Rf build
12623
12624
12625
12626
12627
12628
12629 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12630 $as_echo_n "checking block device operation prototypes... " >&6; }
12631 tmp_flags="$EXTRA_KCFLAGS"
12632 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
12633
12634
12635 cat confdefs.h - <<_ACEOF >conftest.c
12636 /* confdefs.h. */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12641
12642
12643 #include <linux/blkdev.h>
12644
12645 int
12646 main (void)
12647 {
12648
12649 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12650 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12651 int (*blk_ioctl) (struct block_device *, fmode_t,
12652 unsigned, unsigned long) = NULL;
12653 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12654 unsigned, unsigned long) = NULL;
12655 struct block_device_operations blk_ops = {
12656 .open = blk_open,
12657 .release = blk_release,
12658 .ioctl = blk_ioctl,
12659 .compat_ioctl = blk_compat_ioctl,
12660 };
12661
12662 blk_ops.open(NULL, 0);
12663 blk_ops.release(NULL, 0);
12664 blk_ops.ioctl(NULL, 0, 0, 0);
12665 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12666
12667 ;
12668 return 0;
12669 }
12670
12671 _ACEOF
12672
12673
12674 rm -Rf build && mkdir -p build
12675 echo "obj-m := conftest.o" >build/Makefile
12676 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12679 ac_status=$?
12680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12684 ac_status=$?
12685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12687
12688 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12689 $as_echo "struct block_device" >&6; }
12690
12691 cat >>confdefs.h <<\_ACEOF
12692 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12693 _ACEOF
12694
12695
12696 else
12697 $as_echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12699
12700 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12701 $as_echo "struct inode" >&6; }
12702
12703
12704
12705 fi
12706
12707 rm -Rf build
12708
12709
12710 EXTRA_KCFLAGS="$tmp_flags"
12711
12712 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12713 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12714
12715
12716 cat confdefs.h - <<_ACEOF >conftest.c
12717 /* confdefs.h. */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722
12723
12724 #include <linux/types.h>
12725
12726 int
12727 main (void)
12728 {
12729
12730 fmode_t *ptr __attribute__ ((unused));
12731
12732 ;
12733 return 0;
12734 }
12735
12736 _ACEOF
12737
12738
12739 rm -Rf build && mkdir -p build
12740 echo "obj-m := conftest.o" >build/Makefile
12741 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743 (eval $ac_try) 2>&5
12744 ac_status=$?
12745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
12750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
12752
12753 { $as_echo "$as_me:$LINENO: result: yes" >&5
12754 $as_echo "yes" >&6; }
12755
12756 cat >>confdefs.h <<\_ACEOF
12757 #define HAVE_FMODE_T 1
12758 _ACEOF
12759
12760
12761 else
12762 $as_echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12764
12765 { $as_echo "$as_me:$LINENO: result: no" >&5
12766 $as_echo "no" >&6; }
12767
12768
12769
12770 fi
12771
12772 rm -Rf build
12773
12774
12775
12776
12777 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12778 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12779
12780
12781 cat confdefs.h - <<_ACEOF >conftest.c
12782 /* confdefs.h. */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12787
12788
12789 #include <linux/kobject.h>
12790
12791 int
12792 main (void)
12793 {
12794
12795 int val __attribute__ ((unused));
12796 val = KOBJ_NAME_LEN;
12797
12798 ;
12799 return 0;
12800 }
12801
12802 _ACEOF
12803
12804
12805 rm -Rf build && mkdir -p build
12806 echo "obj-m := conftest.o" >build/Makefile
12807 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12810 ac_status=$?
12811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818
12819 { $as_echo "$as_me:$LINENO: result: yes" >&5
12820 $as_echo "yes" >&6; }
12821
12822 cat >>confdefs.h <<\_ACEOF
12823 #define HAVE_KOBJ_NAME_LEN 1
12824 _ACEOF
12825
12826
12827 else
12828 $as_echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.$ac_ext >&5
12830
12831 { $as_echo "$as_me:$LINENO: result: no" >&5
12832 $as_echo "no" >&6; }
12833
12834
12835
12836 fi
12837
12838 rm -Rf build
12839
12840
12841
12842
12843 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
12844 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
12845
12846
12847 cat confdefs.h - <<_ACEOF >conftest.c
12848 /* confdefs.h. */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853
12854
12855 #include <linux/fs.h>
12856
12857 int
12858 main (void)
12859 {
12860
12861 struct block_device *bdev = NULL;
12862 (void) blkdev_get(bdev, 0, NULL);
12863
12864 ;
12865 return 0;
12866 }
12867
12868 _ACEOF
12869
12870
12871 rm -Rf build && mkdir -p build
12872 echo "obj-m := conftest.o" >build/Makefile
12873 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12876 ac_status=$?
12877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12881 ac_status=$?
12882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884
12885 { $as_echo "$as_me:$LINENO: result: yes" >&5
12886 $as_echo "yes" >&6; }
12887
12888 cat >>confdefs.h <<\_ACEOF
12889 #define HAVE_3ARG_BLKDEV_GET 1
12890 _ACEOF
12891
12892
12893 else
12894 $as_echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12896
12897 { $as_echo "$as_me:$LINENO: result: no" >&5
12898 $as_echo "no" >&6; }
12899
12900
12901
12902 fi
12903
12904 rm -Rf build
12905
12906
12907
12908
12909 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12910 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12911 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12912 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12913 rc=$?
12914 if test $rc -ne 0; then
12915
12916 export=0
12917 for file in fs/block_dev.c; do
12918 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
12919 rc=$?
12920 if test $rc -eq 0; then
12921
12922 export=1
12923 break;
12924
12925 fi
12926
12927 done
12928 if test $export -eq 0; then
12929
12930 { $as_echo "$as_me:$LINENO: result: no" >&5
12931 $as_echo "no" >&6; }
12932
12933
12934 else
12935
12936 { $as_echo "$as_me:$LINENO: result: yes" >&5
12937 $as_echo "yes" >&6; }
12938
12939 cat >>confdefs.h <<\_ACEOF
12940 #define HAVE_BLKDEV_GET_BY_PATH 1
12941 _ACEOF
12942
12943
12944 fi
12945
12946
12947 else
12948
12949 { $as_echo "$as_me:$LINENO: result: yes" >&5
12950 $as_echo "yes" >&6; }
12951
12952 cat >>confdefs.h <<\_ACEOF
12953 #define HAVE_BLKDEV_GET_BY_PATH 1
12954 _ACEOF
12955
12956
12957 fi
12958
12959
12960
12961
12962 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12963 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12964 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12965 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12966 rc=$?
12967 if test $rc -ne 0; then
12968
12969 export=0
12970 for file in fs/block_dev.c; do
12971 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12972 rc=$?
12973 if test $rc -eq 0; then
12974
12975 export=1
12976 break;
12977
12978 fi
12979
12980 done
12981 if test $export -eq 0; then
12982
12983 { $as_echo "$as_me:$LINENO: result: no" >&5
12984 $as_echo "no" >&6; }
12985
12986
12987 else
12988
12989 { $as_echo "$as_me:$LINENO: result: yes" >&5
12990 $as_echo "yes" >&6; }
12991
12992 cat >>confdefs.h <<\_ACEOF
12993 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12994 _ACEOF
12995
12996
12997 fi
12998
12999
13000 else
13001
13002 { $as_echo "$as_me:$LINENO: result: yes" >&5
13003 $as_echo "yes" >&6; }
13004
13005 cat >>confdefs.h <<\_ACEOF
13006 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
13007 _ACEOF
13008
13009
13010 fi
13011
13012
13013
13014
13015 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
13016 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
13017
13018
13019 cat confdefs.h - <<_ACEOF >conftest.c
13020 /* confdefs.h. */
13021 _ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h. */
13025
13026
13027 #include <linux/buffer_head.h>
13028
13029 int
13030 main (void)
13031 {
13032
13033 struct block_device *bdev = NULL;
13034 invalidate_bdev(bdev);
13035
13036 ;
13037 return 0;
13038 }
13039
13040 _ACEOF
13041
13042
13043 rm -Rf build && mkdir -p build
13044 echo "obj-m := conftest.o" >build/Makefile
13045 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13048 ac_status=$?
13049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13053 ac_status=$?
13054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056
13057 { $as_echo "$as_me:$LINENO: result: yes" >&5
13058 $as_echo "yes" >&6; }
13059
13060 cat >>confdefs.h <<\_ACEOF
13061 #define HAVE_1ARG_INVALIDATE_BDEV 1
13062 _ACEOF
13063
13064
13065 else
13066 $as_echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13068
13069 { $as_echo "$as_me:$LINENO: result: no" >&5
13070 $as_echo "no" >&6; }
13071
13072
13073
13074 fi
13075
13076 rm -Rf build
13077
13078
13079
13080
13081 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
13082 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
13083 tmp_flags="$EXTRA_KCFLAGS"
13084 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13085
13086
13087 cat confdefs.h - <<_ACEOF >conftest.c
13088 /* confdefs.h. */
13089 _ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13093
13094
13095 #include <linux/blkdev.h>
13096
13097 int
13098 main (void)
13099 {
13100
13101 struct block_device *bdev = NULL;
13102 bdev_logical_block_size(bdev);
13103
13104 ;
13105 return 0;
13106 }
13107
13108 _ACEOF
13109
13110
13111 rm -Rf build && mkdir -p build
13112 echo "obj-m := conftest.o" >build/Makefile
13113 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124
13125 { $as_echo "$as_me:$LINENO: result: yes" >&5
13126 $as_echo "yes" >&6; }
13127
13128 cat >>confdefs.h <<\_ACEOF
13129 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
13130 _ACEOF
13131
13132
13133 else
13134 $as_echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13136
13137 { $as_echo "$as_me:$LINENO: result: no" >&5
13138 $as_echo "no" >&6; }
13139
13140
13141
13142 fi
13143
13144 rm -Rf build
13145
13146
13147 EXTRA_KCFLAGS="$tmp_flags"
13148
13149
13150 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
13151 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
13152 EXTRA_KCFLAGS="-Werror"
13153
13154
13155 cat confdefs.h - <<_ACEOF >conftest.c
13156 /* confdefs.h. */
13157 _ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13161
13162
13163 #include <linux/bio.h>
13164
13165 int
13166 main (void)
13167 {
13168
13169 struct bio bio;
13170 (void)bio_empty_barrier(&bio);
13171
13172 ;
13173 return 0;
13174 }
13175
13176 _ACEOF
13177
13178
13179 rm -Rf build && mkdir -p build
13180 echo "obj-m := conftest.o" >build/Makefile
13181 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13184 ac_status=$?
13185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13189 ac_status=$?
13190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; }; then
13192
13193 { $as_echo "$as_me:$LINENO: result: yes" >&5
13194 $as_echo "yes" >&6; }
13195
13196 cat >>confdefs.h <<\_ACEOF
13197 #define HAVE_BIO_EMPTY_BARRIER 1
13198 _ACEOF
13199
13200
13201 else
13202 $as_echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 { $as_echo "$as_me:$LINENO: result: no" >&5
13206 $as_echo "no" >&6; }
13207
13208
13209
13210 fi
13211
13212 rm -Rf build
13213
13214
13215
13216
13217 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
13218 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13219
13220
13221 cat confdefs.h - <<_ACEOF >conftest.c
13222 /* confdefs.h. */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13227
13228
13229 #include <linux/bio.h>
13230
13231 int
13232 main (void)
13233 {
13234
13235 int flags __attribute__ ((unused));
13236 flags = (1 << BIO_RW_FAILFAST);
13237
13238 ;
13239 return 0;
13240 }
13241
13242 _ACEOF
13243
13244
13245 rm -Rf build && mkdir -p build
13246 echo "obj-m := conftest.o" >build/Makefile
13247 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13255 ac_status=$?
13256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13258
13259 { $as_echo "$as_me:$LINENO: result: yes" >&5
13260 $as_echo "yes" >&6; }
13261
13262 cat >>confdefs.h <<\_ACEOF
13263 #define HAVE_BIO_RW_FAILFAST 1
13264 _ACEOF
13265
13266
13267 else
13268 $as_echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13270
13271 { $as_echo "$as_me:$LINENO: result: no" >&5
13272 $as_echo "no" >&6; }
13273
13274
13275
13276 fi
13277
13278 rm -Rf build
13279
13280
13281
13282
13283 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
13284 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13285
13286
13287 cat confdefs.h - <<_ACEOF >conftest.c
13288 /* confdefs.h. */
13289 _ACEOF
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h. */
13293
13294
13295 #include <linux/bio.h>
13296
13297 int
13298 main (void)
13299 {
13300
13301 int flags __attribute__ ((unused));
13302 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13303 (1 << BIO_RW_FAILFAST_TRANSPORT) |
13304 (1 << BIO_RW_FAILFAST_DRIVER));
13305
13306 ;
13307 return 0;
13308 }
13309
13310 _ACEOF
13311
13312
13313 rm -Rf build && mkdir -p build
13314 echo "obj-m := conftest.o" >build/Makefile
13315 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13318 ac_status=$?
13319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326
13327 { $as_echo "$as_me:$LINENO: result: yes" >&5
13328 $as_echo "yes" >&6; }
13329
13330 cat >>confdefs.h <<\_ACEOF
13331 #define HAVE_BIO_RW_FAILFAST_DTD 1
13332 _ACEOF
13333
13334
13335 else
13336 $as_echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13338
13339 { $as_echo "$as_me:$LINENO: result: no" >&5
13340 $as_echo "no" >&6; }
13341
13342
13343
13344 fi
13345
13346 rm -Rf build
13347
13348
13349
13350
13351 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13352 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13353
13354
13355 cat confdefs.h - <<_ACEOF >conftest.c
13356 /* confdefs.h. */
13357 _ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h. */
13361
13362
13363 #include <linux/bio.h>
13364
13365 int
13366 main (void)
13367 {
13368
13369 int flags __attribute__ ((unused));
13370 flags = REQ_FAILFAST_MASK;
13371
13372 ;
13373 return 0;
13374 }
13375
13376 _ACEOF
13377
13378
13379 rm -Rf build && mkdir -p build
13380 echo "obj-m := conftest.o" >build/Makefile
13381 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13384 ac_status=$?
13385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13389 ac_status=$?
13390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
13392
13393 { $as_echo "$as_me:$LINENO: result: yes" >&5
13394 $as_echo "yes" >&6; }
13395
13396 cat >>confdefs.h <<\_ACEOF
13397 #define HAVE_BIO_REQ_FAILFAST_MASK 1
13398 _ACEOF
13399
13400
13401 else
13402 $as_echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405 { $as_echo "$as_me:$LINENO: result: no" >&5
13406 $as_echo "no" >&6; }
13407
13408
13409
13410 fi
13411
13412 rm -Rf build
13413
13414
13415
13416
13417 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13418 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13419 tmp_flags="$EXTRA_KCFLAGS"
13420 EXTRA_KCFLAGS="-Werror"
13421
13422
13423 cat confdefs.h - <<_ACEOF >conftest.c
13424 /* confdefs.h. */
13425 _ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13429
13430
13431 #include <linux/bio.h>
13432
13433 int
13434 main (void)
13435 {
13436
13437 void (*wanted_end_io)(struct bio *, int) = NULL;
13438 bio_end_io_t *local_end_io __attribute__ ((unused));
13439
13440 local_end_io = wanted_end_io;
13441
13442 ;
13443 return 0;
13444 }
13445
13446 _ACEOF
13447
13448
13449 rm -Rf build && mkdir -p build
13450 echo "obj-m := conftest.o" >build/Makefile
13451 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462
13463 { $as_echo "$as_me:$LINENO: result: yes" >&5
13464 $as_echo "yes" >&6; }
13465
13466 cat >>confdefs.h <<\_ACEOF
13467 #define HAVE_2ARGS_BIO_END_IO_T 1
13468 _ACEOF
13469
13470
13471 else
13472 $as_echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13474
13475 { $as_echo "$as_me:$LINENO: result: no" >&5
13476 $as_echo "no" >&6; }
13477
13478
13479
13480 fi
13481
13482 rm -Rf build
13483
13484
13485 EXTRA_KCFLAGS="$tmp_flags"
13486
13487
13488 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13489 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13490
13491
13492 cat confdefs.h - <<_ACEOF >conftest.c
13493 /* confdefs.h. */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498
13499
13500 #include <linux/bio.h>
13501
13502 int
13503 main (void)
13504 {
13505
13506 int flags __attribute__ ((unused));
13507 flags = BIO_RW_SYNC;
13508
13509 ;
13510 return 0;
13511 }
13512
13513 _ACEOF
13514
13515
13516 rm -Rf build && mkdir -p build
13517 echo "obj-m := conftest.o" >build/Makefile
13518 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13521 ac_status=$?
13522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13529
13530 { $as_echo "$as_me:$LINENO: result: yes" >&5
13531 $as_echo "yes" >&6; }
13532
13533 cat >>confdefs.h <<\_ACEOF
13534 #define HAVE_BIO_RW_SYNC 1
13535 _ACEOF
13536
13537
13538 else
13539 $as_echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13541
13542 { $as_echo "$as_me:$LINENO: result: no" >&5
13543 $as_echo "no" >&6; }
13544
13545
13546
13547 fi
13548
13549 rm -Rf build
13550
13551
13552
13553
13554 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13555 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13556
13557
13558 cat confdefs.h - <<_ACEOF >conftest.c
13559 /* confdefs.h. */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13564
13565
13566 #include <linux/bio.h>
13567
13568 int
13569 main (void)
13570 {
13571
13572 int flags __attribute__ ((unused));
13573 flags = BIO_RW_SYNCIO;
13574
13575 ;
13576 return 0;
13577 }
13578
13579 _ACEOF
13580
13581
13582 rm -Rf build && mkdir -p build
13583 echo "obj-m := conftest.o" >build/Makefile
13584 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13592 ac_status=$?
13593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13595
13596 { $as_echo "$as_me:$LINENO: result: yes" >&5
13597 $as_echo "yes" >&6; }
13598
13599 cat >>confdefs.h <<\_ACEOF
13600 #define HAVE_BIO_RW_SYNCIO 1
13601 _ACEOF
13602
13603
13604 else
13605 $as_echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13607
13608 { $as_echo "$as_me:$LINENO: result: no" >&5
13609 $as_echo "no" >&6; }
13610
13611
13612
13613 fi
13614
13615 rm -Rf build
13616
13617
13618
13619
13620 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13621 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13622
13623
13624 cat confdefs.h - <<_ACEOF >conftest.c
13625 /* confdefs.h. */
13626 _ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13630
13631
13632 #include <linux/bio.h>
13633
13634 int
13635 main (void)
13636 {
13637
13638 int flags __attribute__ ((unused));
13639 flags = REQ_SYNC;
13640
13641 ;
13642 return 0;
13643 }
13644
13645 _ACEOF
13646
13647
13648 rm -Rf build && mkdir -p build
13649 echo "obj-m := conftest.o" >build/Makefile
13650 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13653 ac_status=$?
13654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13661
13662 { $as_echo "$as_me:$LINENO: result: yes" >&5
13663 $as_echo "yes" >&6; }
13664
13665 cat >>confdefs.h <<\_ACEOF
13666 #define HAVE_REQ_SYNC 1
13667 _ACEOF
13668
13669
13670 else
13671 $as_echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13673
13674 { $as_echo "$as_me:$LINENO: result: no" >&5
13675 $as_echo "no" >&6; }
13676
13677
13678
13679 fi
13680
13681 rm -Rf build
13682
13683
13684
13685
13686 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13687 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13688 tmp_flags="$EXTRA_KCFLAGS"
13689 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13690
13691
13692 cat confdefs.h - <<_ACEOF >conftest.c
13693 /* confdefs.h. */
13694 _ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13698
13699
13700 #include <linux/blkdev.h>
13701
13702 int
13703 main (void)
13704 {
13705
13706 struct request *req = NULL;
13707 (void) blk_end_request(req, 0, 0);
13708
13709 ;
13710 return 0;
13711 }
13712
13713 _ACEOF
13714
13715
13716 rm -Rf build && mkdir -p build
13717 echo "obj-m := conftest.o" >build/Makefile
13718 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13726 ac_status=$?
13727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729
13730 { $as_echo "$as_me:$LINENO: result: yes" >&5
13731 $as_echo "yes" >&6; }
13732
13733 cat >>confdefs.h <<\_ACEOF
13734 #define HAVE_BLK_END_REQUEST 1
13735 _ACEOF
13736
13737
13738 else
13739 $as_echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13741
13742 { $as_echo "$as_me:$LINENO: result: no" >&5
13743 $as_echo "no" >&6; }
13744
13745
13746
13747 fi
13748
13749 rm -Rf build
13750
13751
13752
13753 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13754 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13755
13756
13757 cat confdefs.h - <<_ACEOF >conftest.c
13758 /* confdefs.h. */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763
13764
13765 #include <linux/module.h>
13766 #include <linux/blkdev.h>
13767
13768 MODULE_LICENSE("CDDL");
13769
13770 int
13771 main (void)
13772 {
13773
13774 struct request *req = NULL;
13775 (void) blk_end_request(req, 0, 0);
13776
13777 ;
13778 return 0;
13779 }
13780
13781 _ACEOF
13782
13783
13784 rm -Rf build && mkdir -p build
13785 echo "obj-m := conftest.o" >build/Makefile
13786 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13794 ac_status=$?
13795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797
13798 { $as_echo "$as_me:$LINENO: result: no" >&5
13799 $as_echo "no" >&6; }
13800
13801 else
13802 $as_echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13804
13805 { $as_echo "$as_me:$LINENO: result: yes" >&5
13806 $as_echo "yes" >&6; }
13807
13808 cat >>confdefs.h <<\_ACEOF
13809 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13810 _ACEOF
13811
13812
13813
13814
13815 fi
13816
13817 rm -Rf build
13818
13819
13820 EXTRA_KCFLAGS="$tmp_flags"
13821
13822
13823 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
13824 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
13825 tmp_flags="$EXTRA_KCFLAGS"
13826 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13827
13828
13829 cat confdefs.h - <<_ACEOF >conftest.c
13830 /* confdefs.h. */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13835
13836
13837 #include <linux/blkdev.h>
13838
13839 int
13840 main (void)
13841 {
13842
13843 struct request_queue *q = NULL;
13844 (void) blk_queue_flush(q, REQ_FLUSH);
13845
13846 ;
13847 return 0;
13848 }
13849
13850 _ACEOF
13851
13852
13853 rm -Rf build && mkdir -p build
13854 echo "obj-m := conftest.o" >build/Makefile
13855 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866
13867 { $as_echo "$as_me:$LINENO: result: yes" >&5
13868 $as_echo "yes" >&6; }
13869
13870 cat >>confdefs.h <<\_ACEOF
13871 #define HAVE_BLK_QUEUE_FLUSH 1
13872 _ACEOF
13873
13874
13875 else
13876 $as_echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879 { $as_echo "$as_me:$LINENO: result: no" >&5
13880 $as_echo "no" >&6; }
13881
13882
13883
13884 fi
13885
13886 rm -Rf build
13887
13888
13889
13890 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
13891 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
13892
13893
13894 cat confdefs.h - <<_ACEOF >conftest.c
13895 /* confdefs.h. */
13896 _ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900
13901
13902 #include <linux/module.h>
13903 #include <linux/blkdev.h>
13904
13905 MODULE_LICENSE("CDDL");
13906
13907 int
13908 main (void)
13909 {
13910
13911 struct request_queue *q = NULL;
13912 (void) blk_queue_flush(q, REQ_FLUSH);
13913
13914 ;
13915 return 0;
13916 }
13917
13918 _ACEOF
13919
13920
13921 rm -Rf build && mkdir -p build
13922 echo "obj-m := conftest.o" >build/Makefile
13923 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13931 ac_status=$?
13932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13934
13935 { $as_echo "$as_me:$LINENO: result: no" >&5
13936 $as_echo "no" >&6; }
13937
13938 else
13939 $as_echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13941
13942 { $as_echo "$as_me:$LINENO: result: yes" >&5
13943 $as_echo "yes" >&6; }
13944
13945 cat >>confdefs.h <<\_ACEOF
13946 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
13947 _ACEOF
13948
13949
13950
13951
13952 fi
13953
13954 rm -Rf build
13955
13956
13957 EXTRA_KCFLAGS="$tmp_flags"
13958
13959
13960 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
13961 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
13962 tmp_flags="$EXTRA_KCFLAGS"
13963 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13964
13965
13966 cat confdefs.h - <<_ACEOF >conftest.c
13967 /* confdefs.h. */
13968 _ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972
13973
13974 #include <linux/blkdev.h>
13975
13976 int
13977 main (void)
13978 {
13979
13980 struct request_queue *q = NULL;
13981 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
13982
13983 ;
13984 return 0;
13985 }
13986
13987 _ACEOF
13988
13989
13990 rm -Rf build && mkdir -p build
13991 echo "obj-m := conftest.o" >build/Makefile
13992 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003
14004 { $as_echo "$as_me:$LINENO: result: yes" >&5
14005 $as_echo "yes" >&6; }
14006
14007 cat >>confdefs.h <<\_ACEOF
14008 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
14009 _ACEOF
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:$LINENO: result: no" >&5
14017 $as_echo "no" >&6; }
14018
14019
14020
14021 fi
14022
14023 rm -Rf build
14024
14025
14026 EXTRA_KCFLAGS="$tmp_flags"
14027
14028
14029 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
14030 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
14031 tmp_flags="$EXTRA_KCFLAGS"
14032 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14033
14034
14035 cat confdefs.h - <<_ACEOF >conftest.c
14036 /* confdefs.h. */
14037 _ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14041
14042
14043 #include <linux/blkdev.h>
14044
14045 int
14046 main (void)
14047 {
14048
14049 struct request_queue *q = NULL;
14050 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
14051
14052 ;
14053 return 0;
14054 }
14055
14056 _ACEOF
14057
14058
14059 rm -Rf build && mkdir -p build
14060 echo "obj-m := conftest.o" >build/Makefile
14061 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14072
14073 { $as_echo "$as_me:$LINENO: result: yes" >&5
14074 $as_echo "yes" >&6; }
14075
14076 cat >>confdefs.h <<\_ACEOF
14077 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
14078 _ACEOF
14079
14080
14081 else
14082 $as_echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14084
14085 { $as_echo "$as_me:$LINENO: result: no" >&5
14086 $as_echo "no" >&6; }
14087
14088
14089
14090 fi
14091
14092 rm -Rf build
14093
14094
14095 EXTRA_KCFLAGS="$tmp_flags"
14096
14097
14098 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
14099 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
14100 tmp_flags="$EXTRA_KCFLAGS"
14101 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14102
14103
14104 cat confdefs.h - <<_ACEOF >conftest.c
14105 /* confdefs.h. */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14110
14111
14112 #include <linux/blkdev.h>
14113
14114 int
14115 main (void)
14116 {
14117
14118 struct request_queue *q = NULL;
14119 unsigned short block_size = 1;
14120 (void) blk_queue_physical_block_size(q, block_size);
14121
14122 ;
14123 return 0;
14124 }
14125
14126 _ACEOF
14127
14128
14129 rm -Rf build && mkdir -p build
14130 echo "obj-m := conftest.o" >build/Makefile
14131 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14134 ac_status=$?
14135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14139 ac_status=$?
14140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142
14143 { $as_echo "$as_me:$LINENO: result: yes" >&5
14144 $as_echo "yes" >&6; }
14145
14146 cat >>confdefs.h <<\_ACEOF
14147 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
14148 _ACEOF
14149
14150
14151 else
14152 $as_echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14154
14155 { $as_echo "$as_me:$LINENO: result: no" >&5
14156 $as_echo "no" >&6; }
14157
14158
14159
14160 fi
14161
14162 rm -Rf build
14163
14164
14165 EXTRA_KCFLAGS="$tmp_flags"
14166
14167
14168 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
14169 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
14170 tmp_flags="$EXTRA_KCFLAGS"
14171 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14172
14173
14174 cat confdefs.h - <<_ACEOF >conftest.c
14175 /* confdefs.h. */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14180
14181
14182 #include <linux/blkdev.h>
14183
14184 int
14185 main (void)
14186 {
14187
14188 struct request_queue *q = NULL;
14189 unsigned int opt = 1;
14190 (void) blk_queue_io_opt(q, opt);
14191
14192 ;
14193 return 0;
14194 }
14195
14196 _ACEOF
14197
14198
14199 rm -Rf build && mkdir -p build
14200 echo "obj-m := conftest.o" >build/Makefile
14201 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14204 ac_status=$?
14205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212
14213 { $as_echo "$as_me:$LINENO: result: yes" >&5
14214 $as_echo "yes" >&6; }
14215
14216 cat >>confdefs.h <<\_ACEOF
14217 #define HAVE_BLK_QUEUE_IO_OPT 1
14218 _ACEOF
14219
14220
14221 else
14222 $as_echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.$ac_ext >&5
14224
14225 { $as_echo "$as_me:$LINENO: result: no" >&5
14226 $as_echo "no" >&6; }
14227
14228
14229
14230 fi
14231
14232 rm -Rf build
14233
14234
14235 EXTRA_KCFLAGS="$tmp_flags"
14236
14237
14238 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
14239 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
14240 tmp_flags="$EXTRA_KCFLAGS"
14241 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14242
14243
14244 cat confdefs.h - <<_ACEOF >conftest.c
14245 /* confdefs.h. */
14246 _ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14250
14251
14252 #include <linux/blkdev.h>
14253
14254 int
14255 main (void)
14256 {
14257
14258 struct request_queue *q = NULL;
14259 (void) blk_queue_nonrot(q);
14260
14261 ;
14262 return 0;
14263 }
14264
14265 _ACEOF
14266
14267
14268 rm -Rf build && mkdir -p build
14269 echo "obj-m := conftest.o" >build/Makefile
14270 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14273 ac_status=$?
14274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14278 ac_status=$?
14279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281
14282 { $as_echo "$as_me:$LINENO: result: yes" >&5
14283 $as_echo "yes" >&6; }
14284
14285 cat >>confdefs.h <<\_ACEOF
14286 #define HAVE_BLK_QUEUE_NONROT 1
14287 _ACEOF
14288
14289
14290 else
14291 $as_echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14293
14294 { $as_echo "$as_me:$LINENO: result: no" >&5
14295 $as_echo "no" >&6; }
14296
14297
14298
14299 fi
14300
14301 rm -Rf build
14302
14303
14304 EXTRA_KCFLAGS="$tmp_flags"
14305
14306
14307 { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
14308 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
14309 tmp_flags="$EXTRA_KCFLAGS"
14310 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14311
14312
14313 cat confdefs.h - <<_ACEOF >conftest.c
14314 /* confdefs.h. */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319
14320
14321 #include <linux/blkdev.h>
14322
14323 int
14324 main (void)
14325 {
14326
14327 struct request_queue *q = NULL;
14328 (void) blk_queue_discard(q);
14329
14330 ;
14331 return 0;
14332 }
14333
14334 _ACEOF
14335
14336
14337 rm -Rf build && mkdir -p build
14338 echo "obj-m := conftest.o" >build/Makefile
14339 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341 (eval $ac_try) 2>&5
14342 ac_status=$?
14343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14347 ac_status=$?
14348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }; then
14350
14351 { $as_echo "$as_me:$LINENO: result: yes" >&5
14352 $as_echo "yes" >&6; }
14353
14354 cat >>confdefs.h <<\_ACEOF
14355 #define HAVE_BLK_QUEUE_DISCARD 1
14356 _ACEOF
14357
14358
14359 else
14360 $as_echo "$as_me: failed program was:" >&5
14361 sed 's/^/| /' conftest.$ac_ext >&5
14362
14363 { $as_echo "$as_me:$LINENO: result: no" >&5
14364 $as_echo "no" >&6; }
14365
14366
14367
14368 fi
14369
14370 rm -Rf build
14371
14372
14373 EXTRA_KCFLAGS="$tmp_flags"
14374
14375
14376 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
14377 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
14378 tmp_flags="$EXTRA_KCFLAGS"
14379 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14380
14381
14382 cat confdefs.h - <<_ACEOF >conftest.c
14383 /* confdefs.h. */
14384 _ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h. */
14388
14389
14390 #include <linux/blkdev.h>
14391
14392 int
14393 main (void)
14394 {
14395
14396 struct request_queue *q = NULL;
14397 (void) blk_fetch_request(q);
14398
14399 ;
14400 return 0;
14401 }
14402
14403 _ACEOF
14404
14405
14406 rm -Rf build && mkdir -p build
14407 echo "obj-m := conftest.o" >build/Makefile
14408 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14411 ac_status=$?
14412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14416 ac_status=$?
14417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; }; then
14419
14420 { $as_echo "$as_me:$LINENO: result: yes" >&5
14421 $as_echo "yes" >&6; }
14422
14423 cat >>confdefs.h <<\_ACEOF
14424 #define HAVE_BLK_FETCH_REQUEST 1
14425 _ACEOF
14426
14427
14428 else
14429 $as_echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14431
14432 { $as_echo "$as_me:$LINENO: result: no" >&5
14433 $as_echo "no" >&6; }
14434
14435
14436
14437 fi
14438
14439 rm -Rf build
14440
14441
14442 EXTRA_KCFLAGS="$tmp_flags"
14443
14444
14445 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
14446 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
14447 tmp_flags="$EXTRA_KCFLAGS"
14448 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14449
14450
14451 cat confdefs.h - <<_ACEOF >conftest.c
14452 /* confdefs.h. */
14453 _ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h. */
14457
14458
14459 #include <linux/blkdev.h>
14460
14461 int
14462 main (void)
14463 {
14464
14465 struct request_queue *q = NULL;
14466 struct request *req = NULL;
14467 blk_requeue_request(q, req);
14468
14469 ;
14470 return 0;
14471 }
14472
14473 _ACEOF
14474
14475
14476 rm -Rf build && mkdir -p build
14477 echo "obj-m := conftest.o" >build/Makefile
14478 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14481 ac_status=$?
14482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14486 ac_status=$?
14487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14489
14490 { $as_echo "$as_me:$LINENO: result: yes" >&5
14491 $as_echo "yes" >&6; }
14492
14493 cat >>confdefs.h <<\_ACEOF
14494 #define HAVE_BLK_REQUEUE_REQUEST 1
14495 _ACEOF
14496
14497
14498 else
14499 $as_echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 { $as_echo "$as_me:$LINENO: result: no" >&5
14503 $as_echo "no" >&6; }
14504
14505
14506
14507 fi
14508
14509 rm -Rf build
14510
14511
14512 EXTRA_KCFLAGS="$tmp_flags"
14513
14514
14515 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
14516 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
14517 tmp_flags="$EXTRA_KCFLAGS"
14518 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14519
14520
14521 cat confdefs.h - <<_ACEOF >conftest.c
14522 /* confdefs.h. */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14527
14528
14529 #include <linux/blkdev.h>
14530
14531 int
14532 main (void)
14533 {
14534
14535 struct request *req = NULL;
14536 (void) blk_rq_bytes(req);
14537
14538 ;
14539 return 0;
14540 }
14541
14542 _ACEOF
14543
14544
14545 rm -Rf build && mkdir -p build
14546 echo "obj-m := conftest.o" >build/Makefile
14547 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14550 ac_status=$?
14551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554 (eval $ac_try) 2>&5
14555 ac_status=$?
14556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; }; then
14558
14559 { $as_echo "$as_me:$LINENO: result: yes" >&5
14560 $as_echo "yes" >&6; }
14561
14562 cat >>confdefs.h <<\_ACEOF
14563 #define HAVE_BLK_RQ_BYTES 1
14564 _ACEOF
14565
14566
14567 else
14568 $as_echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571 { $as_echo "$as_me:$LINENO: result: no" >&5
14572 $as_echo "no" >&6; }
14573
14574
14575
14576 fi
14577
14578 rm -Rf build
14579
14580
14581
14582 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
14583 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
14584
14585
14586 cat confdefs.h - <<_ACEOF >conftest.c
14587 /* confdefs.h. */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592
14593
14594 #include <linux/module.h>
14595 #include <linux/blkdev.h>
14596
14597 MODULE_LICENSE("CDDL");
14598
14599 int
14600 main (void)
14601 {
14602
14603 struct request *req = NULL;
14604 (void) blk_rq_bytes(req);
14605
14606 ;
14607 return 0;
14608 }
14609
14610 _ACEOF
14611
14612
14613 rm -Rf build && mkdir -p build
14614 echo "obj-m := conftest.o" >build/Makefile
14615 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14618 ac_status=$?
14619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14623 ac_status=$?
14624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; }; then
14626
14627 { $as_echo "$as_me:$LINENO: result: no" >&5
14628 $as_echo "no" >&6; }
14629
14630 else
14631 $as_echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14633
14634 { $as_echo "$as_me:$LINENO: result: yes" >&5
14635 $as_echo "yes" >&6; }
14636
14637 cat >>confdefs.h <<\_ACEOF
14638 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
14639 _ACEOF
14640
14641
14642
14643
14644 fi
14645
14646 rm -Rf build
14647
14648
14649 EXTRA_KCFLAGS="$tmp_flags"
14650
14651
14652 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
14653 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
14654 tmp_flags="$EXTRA_KCFLAGS"
14655 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14656
14657
14658 cat confdefs.h - <<_ACEOF >conftest.c
14659 /* confdefs.h. */
14660 _ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664
14665
14666 #include <linux/blkdev.h>
14667
14668 int
14669 main (void)
14670 {
14671
14672 struct request *req = NULL;
14673 (void) blk_rq_pos(req);
14674
14675 ;
14676 return 0;
14677 }
14678
14679 _ACEOF
14680
14681
14682 rm -Rf build && mkdir -p build
14683 echo "obj-m := conftest.o" >build/Makefile
14684 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14687 ac_status=$?
14688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691 (eval $ac_try) 2>&5
14692 ac_status=$?
14693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; }; then
14695
14696 { $as_echo "$as_me:$LINENO: result: yes" >&5
14697 $as_echo "yes" >&6; }
14698
14699 cat >>confdefs.h <<\_ACEOF
14700 #define HAVE_BLK_RQ_POS 1
14701 _ACEOF
14702
14703
14704 else
14705 $as_echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14707
14708 { $as_echo "$as_me:$LINENO: result: no" >&5
14709 $as_echo "no" >&6; }
14710
14711
14712
14713 fi
14714
14715 rm -Rf build
14716
14717
14718 EXTRA_KCFLAGS="$tmp_flags"
14719
14720
14721 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
14722 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
14723 tmp_flags="$EXTRA_KCFLAGS"
14724 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14725
14726
14727 cat confdefs.h - <<_ACEOF >conftest.c
14728 /* confdefs.h. */
14729 _ACEOF
14730 cat confdefs.h >>conftest.$ac_ext
14731 cat >>conftest.$ac_ext <<_ACEOF
14732 /* end confdefs.h. */
14733
14734
14735 #include <linux/blkdev.h>
14736
14737 int
14738 main (void)
14739 {
14740
14741 struct request *req = NULL;
14742 (void) blk_rq_sectors(req);
14743
14744 ;
14745 return 0;
14746 }
14747
14748 _ACEOF
14749
14750
14751 rm -Rf build && mkdir -p build
14752 echo "obj-m := conftest.o" >build/Makefile
14753 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14756 ac_status=$?
14757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764
14765 { $as_echo "$as_me:$LINENO: result: yes" >&5
14766 $as_echo "yes" >&6; }
14767
14768 cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_BLK_RQ_SECTORS 1
14770 _ACEOF
14771
14772
14773 else
14774 $as_echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14776
14777 { $as_echo "$as_me:$LINENO: result: no" >&5
14778 $as_echo "no" >&6; }
14779
14780
14781
14782 fi
14783
14784 rm -Rf build
14785
14786
14787 EXTRA_KCFLAGS="$tmp_flags"
14788
14789
14790 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
14791 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14792 tmp_flags="$EXTRA_KCFLAGS"
14793 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14794
14795
14796 cat confdefs.h - <<_ACEOF >conftest.c
14797 /* confdefs.h. */
14798 _ACEOF
14799 cat confdefs.h >>conftest.$ac_ext
14800 cat >>conftest.$ac_ext <<_ACEOF
14801 /* end confdefs.h. */
14802
14803
14804 #include <linux/blkdev.h>
14805
14806 int
14807 main (void)
14808 {
14809
14810 struct gendisk *disk = NULL;
14811 (void) get_disk_ro(disk);
14812
14813 ;
14814 return 0;
14815 }
14816
14817 _ACEOF
14818
14819
14820 rm -Rf build && mkdir -p build
14821 echo "obj-m := conftest.o" >build/Makefile
14822 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14825 ac_status=$?
14826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14830 ac_status=$?
14831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14833
14834 { $as_echo "$as_me:$LINENO: result: yes" >&5
14835 $as_echo "yes" >&6; }
14836
14837 cat >>confdefs.h <<\_ACEOF
14838 #define HAVE_GET_DISK_RO 1
14839 _ACEOF
14840
14841
14842 else
14843 $as_echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14845
14846 { $as_echo "$as_me:$LINENO: result: no" >&5
14847 $as_echo "no" >&6; }
14848
14849
14850
14851 fi
14852
14853 rm -Rf build
14854
14855
14856 EXTRA_KCFLAGS="$tmp_flags"
14857
14858
14859 { $as_echo "$as_me:$LINENO: checking whether symbol get_gendisk is exported" >&5
14860 $as_echo_n "checking whether symbol get_gendisk is exported... " >&6; }
14861 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
14862 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14863 rc=$?
14864 if test $rc -ne 0; then
14865
14866 export=0
14867 for file in block/genhd.c; do
14868 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" "$LINUX/$file" 2>/dev/null
14869 rc=$?
14870 if test $rc -eq 0; then
14871
14872 export=1
14873 break;
14874
14875 fi
14876
14877 done
14878 if test $export -eq 0; then
14879
14880 { $as_echo "$as_me:$LINENO: result: no" >&5
14881 $as_echo "no" >&6; }
14882
14883
14884 else
14885
14886 { $as_echo "$as_me:$LINENO: result: yes" >&5
14887 $as_echo "yes" >&6; }
14888
14889 cat >>confdefs.h <<\_ACEOF
14890 #define HAVE_GET_GENDISK 1
14891 _ACEOF
14892
14893
14894 fi
14895
14896
14897 else
14898
14899 { $as_echo "$as_me:$LINENO: result: yes" >&5
14900 $as_echo "yes" >&6; }
14901
14902 cat >>confdefs.h <<\_ACEOF
14903 #define HAVE_GET_GENDISK 1
14904 _ACEOF
14905
14906
14907 fi
14908
14909
14910
14911
14912 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
14913 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
14914 tmp_flags="$EXTRA_KCFLAGS"
14915 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14916
14917
14918 cat confdefs.h - <<_ACEOF >conftest.c
14919 /* confdefs.h. */
14920 _ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14924
14925
14926 #include <linux/blkdev.h>
14927
14928 int
14929 main (void)
14930 {
14931
14932 struct request *req = NULL;
14933 (void) rq_is_sync(req);
14934
14935 ;
14936 return 0;
14937 }
14938
14939 _ACEOF
14940
14941
14942 rm -Rf build && mkdir -p build
14943 echo "obj-m := conftest.o" >build/Makefile
14944 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14952 ac_status=$?
14953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
14955
14956 { $as_echo "$as_me:$LINENO: result: yes" >&5
14957 $as_echo "yes" >&6; }
14958
14959 cat >>confdefs.h <<\_ACEOF
14960 #define HAVE_RQ_IS_SYNC 1
14961 _ACEOF
14962
14963
14964 else
14965 $as_echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14967
14968 { $as_echo "$as_me:$LINENO: result: no" >&5
14969 $as_echo "no" >&6; }
14970
14971
14972
14973 fi
14974
14975 rm -Rf build
14976
14977
14978 EXTRA_KCFLAGS="$tmp_flags"
14979
14980
14981 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
14982 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
14983 tmp_flags="$EXTRA_KCFLAGS"
14984 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14985
14986
14987 cat confdefs.h - <<_ACEOF >conftest.c
14988 /* confdefs.h. */
14989 _ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h. */
14993
14994
14995 #include <linux/blkdev.h>
14996
14997 int
14998 main (void)
14999 {
15000
15001 struct bio_vec *bv;
15002 struct req_iterator iter;
15003 struct request *req = NULL;
15004 rq_for_each_segment(bv, req, iter) { }
15005
15006 ;
15007 return 0;
15008 }
15009
15010 _ACEOF
15011
15012
15013 rm -Rf build && mkdir -p build
15014 echo "obj-m := conftest.o" >build/Makefile
15015 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15018 ac_status=$?
15019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026
15027 { $as_echo "$as_me:$LINENO: result: yes" >&5
15028 $as_echo "yes" >&6; }
15029
15030 cat >>confdefs.h <<\_ACEOF
15031 #define HAVE_RQ_FOR_EACH_SEGMENT 1
15032 _ACEOF
15033
15034
15035 else
15036 $as_echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15038
15039 { $as_echo "$as_me:$LINENO: result: no" >&5
15040 $as_echo "no" >&6; }
15041
15042
15043
15044 fi
15045
15046 rm -Rf build
15047
15048
15049 EXTRA_KCFLAGS="$tmp_flags"
15050
15051 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
15052 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
15053
15054
15055 cat confdefs.h - <<_ACEOF >conftest.c
15056 /* confdefs.h. */
15057 _ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h. */
15061
15062
15063 #include <linux/fs.h>
15064 #include <linux/xattr.h>
15065
15066 const struct xattr_handler xattr_test_handler = {
15067 .prefix = "test",
15068 .get = NULL,
15069 .set = NULL,
15070 };
15071
15072 const struct xattr_handler *xattr_handlers[] = {
15073 &xattr_test_handler,
15074 };
15075
15076 int
15077 main (void)
15078 {
15079
15080 struct super_block sb __attribute__ ((unused));
15081
15082 sb.s_xattr = xattr_handlers;
15083
15084 ;
15085 return 0;
15086 }
15087
15088 _ACEOF
15089
15090
15091 rm -Rf build && mkdir -p build
15092 echo "obj-m := conftest.o" >build/Makefile
15093 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15096 ac_status=$?
15097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104
15105 { $as_echo "$as_me:$LINENO: result: yes" >&5
15106 $as_echo "yes" >&6; }
15107
15108 cat >>confdefs.h <<\_ACEOF
15109 #define HAVE_CONST_XATTR_HANDLER 1
15110 _ACEOF
15111
15112
15113 else
15114 $as_echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117 { $as_echo "$as_me:$LINENO: result: no" >&5
15118 $as_echo "no" >&6; }
15119
15120
15121
15122 fi
15123
15124 rm -Rf build
15125
15126
15127
15128
15129 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
15130 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
15131
15132
15133 cat confdefs.h - <<_ACEOF >conftest.c
15134 /* confdefs.h. */
15135 _ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15139
15140
15141 #include <linux/xattr.h>
15142
15143 int
15144 main (void)
15145 {
15146
15147 int (*get)(struct dentry *dentry, const char *name,
15148 void *buffer, size_t size, int handler_flags) = NULL;
15149 struct xattr_handler xops __attribute__ ((unused));
15150
15151 xops.get = get;
15152
15153 ;
15154 return 0;
15155 }
15156
15157 _ACEOF
15158
15159
15160 rm -Rf build && mkdir -p build
15161 echo "obj-m := conftest.o" >build/Makefile
15162 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15165 ac_status=$?
15166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; }; then
15173
15174 { $as_echo "$as_me:$LINENO: result: yes" >&5
15175 $as_echo "yes" >&6; }
15176
15177 cat >>confdefs.h <<\_ACEOF
15178 #define HAVE_DENTRY_XATTR_GET 1
15179 _ACEOF
15180
15181
15182 else
15183 $as_echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15185
15186 { $as_echo "$as_me:$LINENO: result: no" >&5
15187 $as_echo "no" >&6; }
15188
15189
15190
15191 fi
15192
15193 rm -Rf build
15194
15195
15196
15197
15198 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
15199 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
15200
15201
15202 cat confdefs.h - <<_ACEOF >conftest.c
15203 /* confdefs.h. */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208
15209
15210 #include <linux/xattr.h>
15211
15212 int
15213 main (void)
15214 {
15215
15216 int (*set)(struct dentry *dentry, const char *name,
15217 const void *buffer, size_t size, int flags,
15218 int handler_flags) = NULL;
15219 struct xattr_handler xops __attribute__ ((unused));
15220
15221 xops.set = set;
15222
15223 ;
15224 return 0;
15225 }
15226
15227 _ACEOF
15228
15229
15230 rm -Rf build && mkdir -p build
15231 echo "obj-m := conftest.o" >build/Makefile
15232 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15235 ac_status=$?
15236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15240 ac_status=$?
15241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15243
15244 { $as_echo "$as_me:$LINENO: result: yes" >&5
15245 $as_echo "yes" >&6; }
15246
15247 cat >>confdefs.h <<\_ACEOF
15248 #define HAVE_DENTRY_XATTR_SET 1
15249 _ACEOF
15250
15251
15252 else
15253 $as_echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15255
15256 { $as_echo "$as_me:$LINENO: result: no" >&5
15257 $as_echo "no" >&6; }
15258
15259
15260
15261 fi
15262
15263 rm -Rf build
15264
15265
15266
15267
15268 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
15269 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
15270
15271
15272
15273 cat confdefs.h - <<_ACEOF >conftest.c
15274 /* confdefs.h. */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15279
15280
15281 #include <linux/fs.h>
15282
15283 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
15284 static struct super_operations sops __attribute__ ((unused)) = {
15285 .show_options = show_options,
15286 };
15287
15288 int
15289 main (void)
15290 {
15291
15292
15293 ;
15294 return 0;
15295 }
15296
15297 _ACEOF
15298
15299
15300 rm -Rf build && mkdir -p build
15301 echo "obj-m := conftest.o" >build/Makefile
15302 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15305 ac_status=$?
15306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15310 ac_status=$?
15311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
15313
15314 { $as_echo "$as_me:$LINENO: result: yes" >&5
15315 $as_echo "yes" >&6; }
15316
15317 cat >>confdefs.h <<\_ACEOF
15318 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
15319 _ACEOF
15320
15321
15322 else
15323 $as_echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15325
15326 { $as_echo "$as_me:$LINENO: result: no" >&5
15327 $as_echo "no" >&6; }
15328
15329
15330
15331 fi
15332
15333 rm -Rf build
15334
15335
15336
15337
15338 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
15339 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
15340
15341
15342
15343 cat confdefs.h - <<_ACEOF >conftest.c
15344 /* confdefs.h. */
15345 _ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15349
15350
15351 #include <linux/fs.h>
15352
15353 int
15354 main (void)
15355 {
15356
15357 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15358 struct file_operations fops __attribute__ ((unused));
15359
15360 fops.fsync = fsync;
15361
15362 ;
15363 return 0;
15364 }
15365
15366 _ACEOF
15367
15368
15369 rm -Rf build && mkdir -p build
15370 echo "obj-m := conftest.o" >build/Makefile
15371 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15373 (eval $ac_try) 2>&5
15374 ac_status=$?
15375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15379 ac_status=$?
15380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15382
15383 { $as_echo "$as_me:$LINENO: result: dentry" >&5
15384 $as_echo "dentry" >&6; }
15385
15386 cat >>confdefs.h <<\_ACEOF
15387 #define HAVE_FSYNC_WITH_DENTRY 1
15388 _ACEOF
15389
15390
15391 else
15392 $as_echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15394
15395
15396
15397
15398 fi
15399
15400 rm -Rf build
15401
15402
15403
15404
15405
15406
15407 cat confdefs.h - <<_ACEOF >conftest.c
15408 /* confdefs.h. */
15409 _ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h. */
15413
15414
15415 #include <linux/fs.h>
15416
15417 int
15418 main (void)
15419 {
15420
15421 int (*fsync) (struct file *, int) = NULL;
15422 struct file_operations fops __attribute__ ((unused));
15423
15424 fops.fsync = fsync;
15425
15426 ;
15427 return 0;
15428 }
15429
15430 _ACEOF
15431
15432
15433 rm -Rf build && mkdir -p build
15434 echo "obj-m := conftest.o" >build/Makefile
15435 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15438 ac_status=$?
15439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15446
15447 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
15448 $as_echo "no dentry" >&6; }
15449
15450 cat >>confdefs.h <<\_ACEOF
15451 #define HAVE_FSYNC_WITHOUT_DENTRY 1
15452 _ACEOF
15453
15454
15455 else
15456 $as_echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15458
15459
15460
15461
15462 fi
15463
15464 rm -Rf build
15465
15466
15467
15468
15469
15470
15471 cat confdefs.h - <<_ACEOF >conftest.c
15472 /* confdefs.h. */
15473 _ACEOF
15474 cat confdefs.h >>conftest.$ac_ext
15475 cat >>conftest.$ac_ext <<_ACEOF
15476 /* end confdefs.h. */
15477
15478
15479 #include <linux/fs.h>
15480
15481 int
15482 main (void)
15483 {
15484
15485 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
15486 struct file_operations fops __attribute__ ((unused));
15487
15488 fops.fsync = fsync;
15489
15490 ;
15491 return 0;
15492 }
15493
15494 _ACEOF
15495
15496
15497 rm -Rf build && mkdir -p build
15498 echo "obj-m := conftest.o" >build/Makefile
15499 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15502 ac_status=$?
15503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15507 ac_status=$?
15508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510
15511 { $as_echo "$as_me:$LINENO: result: range" >&5
15512 $as_echo "range" >&6; }
15513
15514 cat >>confdefs.h <<\_ACEOF
15515 #define HAVE_FSYNC_RANGE 1
15516 _ACEOF
15517
15518
15519 else
15520 $as_echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15522
15523
15524
15525
15526 fi
15527
15528 rm -Rf build
15529
15530
15531
15532
15533
15534
15535 cat confdefs.h - <<_ACEOF >conftest.c
15536 /* confdefs.h. */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15541
15542
15543 #include <linux/fs.h>
15544
15545 int
15546 main (void)
15547 {
15548
15549 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15550 file_operations_no_const fops __attribute__ ((unused));
15551
15552 fops.fsync = fsync;
15553
15554 ;
15555 return 0;
15556 }
15557
15558 _ACEOF
15559
15560
15561 rm -Rf build && mkdir -p build
15562 echo "obj-m := conftest.o" >build/Makefile
15563 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15566 ac_status=$?
15567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15571 ac_status=$?
15572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574
15575 { $as_echo "$as_me:$LINENO: result: dentry" >&5
15576 $as_echo "dentry" >&6; }
15577
15578 cat >>confdefs.h <<\_ACEOF
15579 #define HAVE_FSYNC_WITH_DENTRY 1
15580 _ACEOF
15581
15582
15583 else
15584 $as_echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15586
15587
15588
15589
15590 fi
15591
15592 rm -Rf build
15593
15594
15595
15596
15597
15598
15599 cat confdefs.h - <<_ACEOF >conftest.c
15600 /* confdefs.h. */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15605
15606
15607 #include <linux/fs.h>
15608
15609 int
15610 main (void)
15611 {
15612
15613 int (*fsync) (struct file *, int) = NULL;
15614 file_operations_no_const fops __attribute__ ((unused));
15615
15616 fops.fsync = fsync;
15617
15618 ;
15619 return 0;
15620 }
15621
15622 _ACEOF
15623
15624
15625 rm -Rf build && mkdir -p build
15626 echo "obj-m := conftest.o" >build/Makefile
15627 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15638
15639 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
15640 $as_echo "no dentry" >&6; }
15641
15642 cat >>confdefs.h <<\_ACEOF
15643 #define HAVE_FSYNC_WITHOUT_DENTRY 1
15644 _ACEOF
15645
15646
15647 else
15648 $as_echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15650
15651
15652
15653
15654 fi
15655
15656 rm -Rf build
15657
15658
15659
15660
15661
15662
15663 cat confdefs.h - <<_ACEOF >conftest.c
15664 /* confdefs.h. */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669
15670
15671 #include <linux/fs.h>
15672
15673 int
15674 main (void)
15675 {
15676
15677 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
15678 file_operations_no_const fops __attribute__ ((unused));
15679
15680 fops.fsync = fsync;
15681
15682 ;
15683 return 0;
15684 }
15685
15686 _ACEOF
15687
15688
15689 rm -Rf build && mkdir -p build
15690 echo "obj-m := conftest.o" >build/Makefile
15691 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15694 ac_status=$?
15695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15699 ac_status=$?
15700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702
15703 { $as_echo "$as_me:$LINENO: result: range" >&5
15704 $as_echo "range" >&6; }
15705
15706 cat >>confdefs.h <<\_ACEOF
15707 #define HAVE_FSYNC_RANGE 1
15708 _ACEOF
15709
15710
15711 else
15712 $as_echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15714
15715
15716
15717
15718 fi
15719
15720 rm -Rf build
15721
15722
15723
15724
15725
15726 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
15727 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
15728
15729
15730 cat confdefs.h - <<_ACEOF >conftest.c
15731 /* confdefs.h. */
15732 _ACEOF
15733 cat confdefs.h >>conftest.$ac_ext
15734 cat >>conftest.$ac_ext <<_ACEOF
15735 /* end confdefs.h. */
15736
15737
15738 #include <linux/fs.h>
15739 void evict_inode (struct inode * t) { return; }
15740 static struct super_operations sops __attribute__ ((unused)) = {
15741 .evict_inode = evict_inode,
15742 };
15743
15744 int
15745 main (void)
15746 {
15747
15748
15749 ;
15750 return 0;
15751 }
15752
15753 _ACEOF
15754
15755
15756 rm -Rf build && mkdir -p build
15757 echo "obj-m := conftest.o" >build/Makefile
15758 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15766 ac_status=$?
15767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769
15770 { $as_echo "$as_me:$LINENO: result: yes" >&5
15771 $as_echo "yes" >&6; }
15772
15773 cat >>confdefs.h <<\_ACEOF
15774 #define HAVE_EVICT_INODE 1
15775 _ACEOF
15776
15777
15778 else
15779 $as_echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15781
15782 { $as_echo "$as_me:$LINENO: result: no" >&5
15783 $as_echo "no" >&6; }
15784
15785
15786
15787 fi
15788
15789 rm -Rf build
15790
15791
15792
15793
15794 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
15795 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
15796
15797
15798 cat confdefs.h - <<_ACEOF >conftest.c
15799 /* confdefs.h. */
15800 _ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15804
15805
15806 #include <linux/fs.h>
15807
15808 int
15809 main (void)
15810 {
15811
15812 int (*nr_cached_objects)(struct super_block *)
15813 __attribute__ ((unused)) = NULL;
15814 struct super_operations sops __attribute__ ((unused)) = {
15815 .nr_cached_objects = nr_cached_objects,
15816 };
15817
15818 ;
15819 return 0;
15820 }
15821
15822 _ACEOF
15823
15824
15825 rm -Rf build && mkdir -p build
15826 echo "obj-m := conftest.o" >build/Makefile
15827 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15830 ac_status=$?
15831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15835 ac_status=$?
15836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15838
15839 { $as_echo "$as_me:$LINENO: result: yes" >&5
15840 $as_echo "yes" >&6; }
15841
15842 cat >>confdefs.h <<\_ACEOF
15843 #define HAVE_NR_CACHED_OBJECTS 1
15844 _ACEOF
15845
15846
15847 else
15848 $as_echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15850
15851 { $as_echo "$as_me:$LINENO: result: no" >&5
15852 $as_echo "no" >&6; }
15853
15854
15855
15856 fi
15857
15858 rm -Rf build
15859
15860
15861
15862
15863 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
15864 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
15865
15866
15867 cat confdefs.h - <<_ACEOF >conftest.c
15868 /* confdefs.h. */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15873
15874
15875 #include <linux/fs.h>
15876
15877 int
15878 main (void)
15879 {
15880
15881 void (*free_cached_objects)(struct super_block *, int)
15882 __attribute__ ((unused)) = NULL;
15883 struct super_operations sops __attribute__ ((unused)) = {
15884 .free_cached_objects = free_cached_objects,
15885 };
15886
15887 ;
15888 return 0;
15889 }
15890
15891 _ACEOF
15892
15893
15894 rm -Rf build && mkdir -p build
15895 echo "obj-m := conftest.o" >build/Makefile
15896 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15899 ac_status=$?
15900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907
15908 { $as_echo "$as_me:$LINENO: result: yes" >&5
15909 $as_echo "yes" >&6; }
15910
15911 cat >>confdefs.h <<\_ACEOF
15912 #define HAVE_FREE_CACHED_OBJECTS 1
15913 _ACEOF
15914
15915
15916 else
15917 $as_echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920 { $as_echo "$as_me:$LINENO: result: no" >&5
15921 $as_echo "no" >&6; }
15922
15923
15924
15925 fi
15926
15927 rm -Rf build
15928
15929
15930
15931
15932
15933 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
15934 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
15935
15936
15937 cat confdefs.h - <<_ACEOF >conftest.c
15938 /* confdefs.h. */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15943
15944
15945 #include <linux/fs.h>
15946
15947 int
15948 main (void)
15949 {
15950
15951 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
15952 struct file_operations fops __attribute__ ((unused)) = {
15953 .fallocate = fallocate,
15954 };
15955
15956 ;
15957 return 0;
15958 }
15959
15960 _ACEOF
15961
15962
15963 rm -Rf build && mkdir -p build
15964 echo "obj-m := conftest.o" >build/Makefile
15965 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972 (eval $ac_try) 2>&5
15973 ac_status=$?
15974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; }; then
15976
15977 { $as_echo "$as_me:$LINENO: result: yes" >&5
15978 $as_echo "yes" >&6; }
15979
15980 cat >>confdefs.h <<\_ACEOF
15981 #define HAVE_FILE_FALLOCATE 1
15982 _ACEOF
15983
15984
15985 else
15986 $as_echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15988
15989 { $as_echo "$as_me:$LINENO: result: no" >&5
15990 $as_echo "no" >&6; }
15991
15992
15993
15994 fi
15995
15996 rm -Rf build
15997
15998
15999
16000
16001 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
16002 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
16003
16004
16005 cat confdefs.h - <<_ACEOF >conftest.c
16006 /* confdefs.h. */
16007 _ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011
16012
16013 #include <linux/fs.h>
16014
16015 int
16016 main (void)
16017 {
16018
16019 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
16020 struct inode_operations fops __attribute__ ((unused)) = {
16021 .fallocate = fallocate,
16022 };
16023
16024 ;
16025 return 0;
16026 }
16027
16028 _ACEOF
16029
16030
16031 rm -Rf build && mkdir -p build
16032 echo "obj-m := conftest.o" >build/Makefile
16033 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16036 ac_status=$?
16037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16041 ac_status=$?
16042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044
16045 { $as_echo "$as_me:$LINENO: result: yes" >&5
16046 $as_echo "yes" >&6; }
16047
16048 cat >>confdefs.h <<\_ACEOF
16049 #define HAVE_INODE_FALLOCATE 1
16050 _ACEOF
16051
16052
16053 else
16054 $as_echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16056
16057 { $as_echo "$as_me:$LINENO: result: no" >&5
16058 $as_echo "no" >&6; }
16059
16060
16061
16062 fi
16063
16064 rm -Rf build
16065
16066
16067
16068
16069 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
16070 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16071
16072
16073 cat confdefs.h - <<_ACEOF >conftest.c
16074 /* confdefs.h. */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079
16080
16081 #include <linux/fs.h>
16082
16083 int
16084 main (void)
16085 {
16086
16087 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16088 struct file_operations_no_const fops __attribute__ ((unused)) = {
16089 .fallocate = fallocate,
16090 };
16091
16092 ;
16093 return 0;
16094 }
16095
16096 _ACEOF
16097
16098
16099 rm -Rf build && mkdir -p build
16100 echo "obj-m := conftest.o" >build/Makefile
16101 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16103 (eval $ac_try) 2>&5
16104 ac_status=$?
16105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112
16113 { $as_echo "$as_me:$LINENO: result: yes" >&5
16114 $as_echo "yes" >&6; }
16115
16116 cat >>confdefs.h <<\_ACEOF
16117 #define HAVE_FILE_FALLOCATE 1
16118 _ACEOF
16119
16120
16121 else
16122 $as_echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16124
16125 { $as_echo "$as_me:$LINENO: result: no" >&5
16126 $as_echo "no" >&6; }
16127
16128
16129
16130 fi
16131
16132 rm -Rf build
16133
16134
16135
16136
16137
16138 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
16139 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
16140
16141
16142 cat confdefs.h - <<_ACEOF >conftest.c
16143 /* confdefs.h. */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16148
16149
16150 #include <linux/fs.h>
16151
16152 int
16153 main (void)
16154 {
16155
16156 int (*create) (struct inode *, struct dentry *, umode_t,
16157 struct nameidata *) = NULL;
16158 struct inode_operations iops __attribute__ ((unused)) = {
16159 .create = create,
16160 };
16161
16162 ;
16163 return 0;
16164 }
16165
16166 _ACEOF
16167
16168
16169 rm -Rf build && mkdir -p build
16170 echo "obj-m := conftest.o" >build/Makefile
16171 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16174 ac_status=$?
16175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16178 (eval $ac_try) 2>&5
16179 ac_status=$?
16180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); }; }; then
16182
16183 { $as_echo "$as_me:$LINENO: result: yes" >&5
16184 $as_echo "yes" >&6; }
16185
16186 cat >>confdefs.h <<\_ACEOF
16187 #define HAVE_CREATE_UMODE_T 1
16188 _ACEOF
16189
16190
16191 else
16192 $as_echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16194
16195 { $as_echo "$as_me:$LINENO: result: no" >&5
16196 $as_echo "no" >&6; }
16197
16198
16199
16200 fi
16201
16202 rm -Rf build
16203
16204
16205
16206
16207 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
16208 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
16209
16210
16211 cat confdefs.h - <<_ACEOF >conftest.c
16212 /* confdefs.h. */
16213 _ACEOF
16214 cat confdefs.h >>conftest.$ac_ext
16215 cat >>conftest.$ac_ext <<_ACEOF
16216 /* end confdefs.h. */
16217
16218
16219 #include <linux/dcache.h>
16220
16221 int
16222 main (void)
16223 {
16224
16225 struct vfsmount *(*d_automount) (struct path *) = NULL;
16226 struct dentry_operations dops __attribute__ ((unused)) = {
16227 .d_automount = d_automount,
16228 };
16229
16230 ;
16231 return 0;
16232 }
16233
16234 _ACEOF
16235
16236
16237 rm -Rf build && mkdir -p build
16238 echo "obj-m := conftest.o" >build/Makefile
16239 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16242 ac_status=$?
16243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16247 ac_status=$?
16248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }; then
16250
16251 { $as_echo "$as_me:$LINENO: result: yes" >&5
16252 $as_echo "yes" >&6; }
16253
16254 cat >>confdefs.h <<\_ACEOF
16255 #define HAVE_AUTOMOUNT 1
16256 _ACEOF
16257
16258
16259 else
16260 $as_echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16262
16263 { $as_echo "$as_me:$LINENO: result: no" >&5
16264 $as_echo "no" >&6; }
16265
16266
16267
16268 fi
16269
16270 rm -Rf build
16271
16272
16273
16274
16275 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
16276 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
16277
16278
16279 cat confdefs.h - <<_ACEOF >conftest.c
16280 /* confdefs.h. */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285
16286
16287 #include <linux/exportfs.h>
16288 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
16289 struct inode *parent) { return 0; }
16290 static struct export_operations eops __attribute__ ((unused))={
16291 .encode_fh = encode_fh,
16292 };
16293
16294 int
16295 main (void)
16296 {
16297
16298
16299 ;
16300 return 0;
16301 }
16302
16303 _ACEOF
16304
16305
16306 rm -Rf build && mkdir -p build
16307 echo "obj-m := conftest.o" >build/Makefile
16308 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16311 ac_status=$?
16312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16316 ac_status=$?
16317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319
16320 { $as_echo "$as_me:$LINENO: result: yes" >&5
16321 $as_echo "yes" >&6; }
16322
16323 cat >>confdefs.h <<\_ACEOF
16324 #define HAVE_ENCODE_FH_WITH_INODE 1
16325 _ACEOF
16326
16327
16328 else
16329 $as_echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16331
16332 { $as_echo "$as_me:$LINENO: result: no" >&5
16333 $as_echo "no" >&6; }
16334
16335
16336
16337 fi
16338
16339 rm -Rf build
16340
16341
16342
16343
16344 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
16345 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
16346 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
16347 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16348 rc=$?
16349 if test $rc -ne 0; then
16350
16351 export=0
16352 for file in fs/inode.c; do
16353 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
16354 rc=$?
16355 if test $rc -eq 0; then
16356
16357 export=1
16358 break;
16359
16360 fi
16361
16362 done
16363 if test $export -eq 0; then
16364
16365 { $as_echo "$as_me:$LINENO: result: no" >&5
16366 $as_echo "no" >&6; }
16367
16368
16369 else
16370
16371 { $as_echo "$as_me:$LINENO: result: yes" >&5
16372 $as_echo "yes" >&6; }
16373
16374 cat >>confdefs.h <<\_ACEOF
16375 #define HAVE_INSERT_INODE_LOCKED 1
16376 _ACEOF
16377
16378
16379 fi
16380
16381
16382 else
16383
16384 { $as_echo "$as_me:$LINENO: result: yes" >&5
16385 $as_echo "yes" >&6; }
16386
16387 cat >>confdefs.h <<\_ACEOF
16388 #define HAVE_INSERT_INODE_LOCKED 1
16389 _ACEOF
16390
16391
16392 fi
16393
16394
16395
16396
16397 { $as_echo "$as_me:$LINENO: checking whether symbol d_make_root is exported" >&5
16398 $as_echo_n "checking whether symbol d_make_root is exported... " >&6; }
16399 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
16400 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16401 rc=$?
16402 if test $rc -ne 0; then
16403
16404 export=0
16405 for file in fs/dcache.c; do
16406 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" "$LINUX/$file" 2>/dev/null
16407 rc=$?
16408 if test $rc -eq 0; then
16409
16410 export=1
16411 break;
16412
16413 fi
16414
16415 done
16416 if test $export -eq 0; then
16417
16418 { $as_echo "$as_me:$LINENO: result: no" >&5
16419 $as_echo "no" >&6; }
16420
16421
16422 else
16423
16424 { $as_echo "$as_me:$LINENO: result: yes" >&5
16425 $as_echo "yes" >&6; }
16426
16427 cat >>confdefs.h <<\_ACEOF
16428 #define HAVE_D_MAKE_ROOT 1
16429 _ACEOF
16430
16431
16432 fi
16433
16434
16435 else
16436
16437 { $as_echo "$as_me:$LINENO: result: yes" >&5
16438 $as_echo "yes" >&6; }
16439
16440 cat >>confdefs.h <<\_ACEOF
16441 #define HAVE_D_MAKE_ROOT 1
16442 _ACEOF
16443
16444
16445 fi
16446
16447
16448
16449
16450 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
16451 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
16452 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
16453 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16454 rc=$?
16455 if test $rc -ne 0; then
16456
16457 export=0
16458 for file in fs/dcache.c; do
16459 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
16460 rc=$?
16461 if test $rc -eq 0; then
16462
16463 export=1
16464 break;
16465
16466 fi
16467
16468 done
16469 if test $export -eq 0; then
16470
16471 { $as_echo "$as_me:$LINENO: result: no" >&5
16472 $as_echo "no" >&6; }
16473
16474
16475 else
16476
16477 { $as_echo "$as_me:$LINENO: result: yes" >&5
16478 $as_echo "yes" >&6; }
16479
16480 cat >>confdefs.h <<\_ACEOF
16481 #define HAVE_D_OBTAIN_ALIAS 1
16482 _ACEOF
16483
16484
16485 fi
16486
16487
16488 else
16489
16490 { $as_echo "$as_me:$LINENO: result: yes" >&5
16491 $as_echo "yes" >&6; }
16492
16493 cat >>confdefs.h <<\_ACEOF
16494 #define HAVE_D_OBTAIN_ALIAS 1
16495 _ACEOF
16496
16497
16498 fi
16499
16500
16501
16502
16503 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
16504 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
16505 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
16506 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16507 rc=$?
16508 if test $rc -ne 0; then
16509
16510 export=0
16511 for file in fs/block_dev.c; do
16512 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
16513 rc=$?
16514 if test $rc -eq 0; then
16515
16516 export=1
16517 break;
16518
16519 fi
16520
16521 done
16522 if test $export -eq 0; then
16523
16524 { $as_echo "$as_me:$LINENO: result: no" >&5
16525 $as_echo "no" >&6; }
16526
16527
16528 else
16529
16530 { $as_echo "$as_me:$LINENO: result: yes" >&5
16531 $as_echo "yes" >&6; }
16532
16533 cat >>confdefs.h <<\_ACEOF
16534 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
16535 _ACEOF
16536
16537
16538 fi
16539
16540
16541 else
16542
16543 { $as_echo "$as_me:$LINENO: result: yes" >&5
16544 $as_echo "yes" >&6; }
16545
16546 cat >>confdefs.h <<\_ACEOF
16547 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
16548 _ACEOF
16549
16550
16551 fi
16552
16553
16554
16555
16556 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
16557 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
16558 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
16559 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16560 rc=$?
16561 if test $rc -ne 0; then
16562
16563 export=0
16564 for file in mm/truncate.c; do
16565 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
16566 rc=$?
16567 if test $rc -eq 0; then
16568
16569 export=1
16570 break;
16571
16572 fi
16573
16574 done
16575 if test $export -eq 0; then
16576
16577 { $as_echo "$as_me:$LINENO: result: no" >&5
16578 $as_echo "no" >&6; }
16579
16580
16581 else
16582
16583 { $as_echo "$as_me:$LINENO: result: yes" >&5
16584 $as_echo "yes" >&6; }
16585
16586 cat >>confdefs.h <<\_ACEOF
16587 #define HAVE_TRUNCATE_SETSIZE 1
16588 _ACEOF
16589
16590
16591 fi
16592
16593
16594 else
16595
16596 { $as_echo "$as_me:$LINENO: result: yes" >&5
16597 $as_echo "yes" >&6; }
16598
16599 cat >>confdefs.h <<\_ACEOF
16600 #define HAVE_TRUNCATE_SETSIZE 1
16601 _ACEOF
16602
16603
16604 fi
16605
16606
16607
16608
16609 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
16610 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
16611 tmp_flags="$EXTRA_KCFLAGS"
16612 EXTRA_KCFLAGS="-Werror"
16613
16614
16615 cat confdefs.h - <<_ACEOF >conftest.c
16616 /* confdefs.h. */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621
16622
16623 #include <linux/security.h>
16624
16625 int
16626 main (void)
16627 {
16628
16629 struct inode *ip __attribute__ ((unused)) = NULL;
16630 struct inode *dip __attribute__ ((unused)) = NULL;
16631 const struct qstr *str __attribute__ ((unused)) = NULL;
16632 char *name __attribute__ ((unused)) = NULL;
16633 void *value __attribute__ ((unused)) = NULL;
16634 size_t len __attribute__ ((unused)) = 0;
16635
16636 security_inode_init_security(ip, dip, str, &name, &value, &len);
16637
16638 ;
16639 return 0;
16640 }
16641
16642 _ACEOF
16643
16644
16645 rm -Rf build && mkdir -p build
16646 echo "obj-m := conftest.o" >build/Makefile
16647 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16650 ac_status=$?
16651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658
16659 { $as_echo "$as_me:$LINENO: result: yes" >&5
16660 $as_echo "yes" >&6; }
16661
16662 cat >>confdefs.h <<\_ACEOF
16663 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
16664 _ACEOF
16665
16666
16667 else
16668 $as_echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16670
16671 { $as_echo "$as_me:$LINENO: result: no" >&5
16672 $as_echo "no" >&6; }
16673
16674
16675
16676 fi
16677
16678 rm -Rf build
16679
16680
16681 EXTRA_KCFLAGS="$tmp_flags"
16682
16683
16684 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
16685 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
16686 tmp_flags="$EXTRA_KCFLAGS"
16687 EXTRA_KCFLAGS="-Werror"
16688
16689
16690 cat confdefs.h - <<_ACEOF >conftest.c
16691 /* confdefs.h. */
16692 _ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16696
16697
16698 #include <linux/security.h>
16699
16700 int
16701 main (void)
16702 {
16703
16704 struct inode *ip __attribute__ ((unused)) = NULL;
16705 struct inode *dip __attribute__ ((unused)) = NULL;
16706 const struct qstr *str __attribute__ ((unused)) = NULL;
16707 initxattrs func __attribute__ ((unused)) = NULL;
16708
16709 security_inode_init_security(ip, dip, str, func, NULL);
16710
16711 ;
16712 return 0;
16713 }
16714
16715 _ACEOF
16716
16717
16718 rm -Rf build && mkdir -p build
16719 echo "obj-m := conftest.o" >build/Makefile
16720 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16728 ac_status=$?
16729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731
16732 { $as_echo "$as_me:$LINENO: result: yes" >&5
16733 $as_echo "yes" >&6; }
16734
16735 cat >>confdefs.h <<\_ACEOF
16736 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
16737 _ACEOF
16738
16739
16740 else
16741 $as_echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16743
16744 { $as_echo "$as_me:$LINENO: result: no" >&5
16745 $as_echo "no" >&6; }
16746
16747
16748
16749 fi
16750
16751 rm -Rf build
16752
16753
16754 EXTRA_KCFLAGS="$tmp_flags"
16755
16756
16757 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
16758 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
16759 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
16760 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16761 rc=$?
16762 if test $rc -ne 0; then
16763
16764 export=0
16765 for file in fs/super.c; do
16766 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
16767 rc=$?
16768 if test $rc -eq 0; then
16769
16770 export=1
16771 break;
16772
16773 fi
16774
16775 done
16776 if test $export -eq 0; then
16777
16778 { $as_echo "$as_me:$LINENO: result: no" >&5
16779 $as_echo "no" >&6; }
16780
16781
16782 else
16783
16784 { $as_echo "$as_me:$LINENO: result: yes" >&5
16785 $as_echo "yes" >&6; }
16786
16787 cat >>confdefs.h <<\_ACEOF
16788 #define HAVE_MOUNT_NODEV 1
16789 _ACEOF
16790
16791
16792 fi
16793
16794
16795 else
16796
16797 { $as_echo "$as_me:$LINENO: result: yes" >&5
16798 $as_echo "yes" >&6; }
16799
16800 cat >>confdefs.h <<\_ACEOF
16801 #define HAVE_MOUNT_NODEV 1
16802 _ACEOF
16803
16804
16805 fi
16806
16807
16808
16809
16810 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
16811 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
16812
16813
16814 cat confdefs.h - <<_ACEOF >conftest.c
16815 /* confdefs.h. */
16816 _ACEOF
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h. */
16820
16821
16822 #include <linux/fs.h>
16823
16824 int
16825 main (void)
16826 {
16827
16828 int (*shrink)(struct shrinker *, struct shrink_control *sc)
16829 __attribute__ ((unused)) = NULL;
16830 struct super_block sb __attribute__ ((unused)) = {
16831 .s_shrink.shrink = shrink,
16832 .s_shrink.seeks = DEFAULT_SEEKS,
16833 .s_shrink.batch = 0,
16834 };
16835
16836 ;
16837 return 0;
16838 }
16839
16840 _ACEOF
16841
16842
16843 rm -Rf build && mkdir -p build
16844 echo "obj-m := conftest.o" >build/Makefile
16845 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
16849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852 (eval $ac_try) 2>&5
16853 ac_status=$?
16854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16856
16857 { $as_echo "$as_me:$LINENO: result: yes" >&5
16858 $as_echo "yes" >&6; }
16859
16860 cat >>confdefs.h <<\_ACEOF
16861 #define HAVE_SHRINK 1
16862 _ACEOF
16863
16864
16865
16866 else
16867 $as_echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16869
16870 { $as_echo "$as_me:$LINENO: result: no" >&5
16871 $as_echo "no" >&6; }
16872
16873
16874
16875 fi
16876
16877 rm -Rf build
16878
16879
16880
16881
16882 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
16883 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
16884
16885
16886 cat confdefs.h - <<_ACEOF >conftest.c
16887 /* confdefs.h. */
16888 _ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16892
16893
16894 #include <linux/fs.h>
16895
16896 int
16897 main (void)
16898 {
16899
16900 struct super_block sb __attribute__ ((unused));
16901 sb.s_bdi = NULL;
16902
16903 ;
16904 return 0;
16905 }
16906
16907 _ACEOF
16908
16909
16910 rm -Rf build && mkdir -p build
16911 echo "obj-m := conftest.o" >build/Makefile
16912 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16915 ac_status=$?
16916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16920 ac_status=$?
16921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923
16924 { $as_echo "$as_me:$LINENO: result: yes" >&5
16925 $as_echo "yes" >&6; }
16926
16927 cat >>confdefs.h <<\_ACEOF
16928 #define HAVE_BDI 1
16929 _ACEOF
16930
16931
16932 else
16933 $as_echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16935
16936 { $as_echo "$as_me:$LINENO: result: no" >&5
16937 $as_echo "no" >&6; }
16938
16939
16940
16941 fi
16942
16943 rm -Rf build
16944
16945
16946
16947
16948 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
16949 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
16950 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
16951 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16952 rc=$?
16953 if test $rc -ne 0; then
16954
16955 export=0
16956 for file in mm/backing-dev.c; do
16957 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
16958 rc=$?
16959 if test $rc -eq 0; then
16960
16961 export=1
16962 break;
16963
16964 fi
16965
16966 done
16967 if test $export -eq 0; then
16968
16969 { $as_echo "$as_me:$LINENO: result: no" >&5
16970 $as_echo "no" >&6; }
16971
16972
16973 else
16974
16975 { $as_echo "$as_me:$LINENO: result: yes" >&5
16976 $as_echo "yes" >&6; }
16977
16978 cat >>confdefs.h <<\_ACEOF
16979 #define HAVE_BDI_SETUP_AND_REGISTER 1
16980 _ACEOF
16981
16982
16983 fi
16984
16985
16986 else
16987
16988 { $as_echo "$as_me:$LINENO: result: yes" >&5
16989 $as_echo "yes" >&6; }
16990
16991 cat >>confdefs.h <<\_ACEOF
16992 #define HAVE_BDI_SETUP_AND_REGISTER 1
16993 _ACEOF
16994
16995
16996 fi
16997
16998
16999
17000
17001 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
17002 $as_echo_n "checking whether set_nlink() is available... " >&6; }
17003
17004
17005 cat confdefs.h - <<_ACEOF >conftest.c
17006 /* confdefs.h. */
17007 _ACEOF
17008 cat confdefs.h >>conftest.$ac_ext
17009 cat >>conftest.$ac_ext <<_ACEOF
17010 /* end confdefs.h. */
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
17031 echo "obj-m := conftest.o" >build/Makefile
17032 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034 (eval $ac_try) 2>&5
17035 ac_status=$?
17036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17040 ac_status=$?
17041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; }; then
17043
17044 { $as_echo "$as_me:$LINENO: result: yes" >&5
17045 $as_echo "yes" >&6; }
17046
17047 cat >>confdefs.h <<\_ACEOF
17048 #define HAVE_SET_NLINK 1
17049 _ACEOF
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:$LINENO: result: no" >&5
17057 $as_echo "no" >&6; }
17058
17059
17060
17061 fi
17062
17063 rm -Rf build
17064
17065
17066
17067
17068 if test "$LINUX_OBJ" != "$LINUX"; then
17069
17070 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
17071
17072 fi
17073
17074
17075
17076
17077 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
17078 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
17079 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
17080
17081
17082 ;;
17083 user)
17084
17085
17086 # Check whether --with-udevdir was given.
17087 if test "${with_udevdir+set}" = set; then
17088 withval=$with_udevdir; udevdir=$withval
17089 else
17090 udevdir='${exec_prefix}/lib/udev'
17091 fi
17092
17093
17094
17095 # Check whether --with-udevruledir was given.
17096 if test "${with_udevruledir+set}" = set; then
17097 withval=$with_udevruledir; udevruledir=$withval
17098 else
17099 udevruledir='${udevdir}/rules.d'
17100 fi
17101
17102
17103
17104
17105
17106
17107 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
17108 $as_echo_n "checking for target asm dir... " >&6; }
17109 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
17110
17111 case $TARGET_ARCH in
17112 i386|x86_64)
17113 TARGET_ASM_DIR=asm-${TARGET_ARCH}
17114 ;;
17115 *)
17116 TARGET_ASM_DIR=asm-generic
17117 ;;
17118 esac
17119
17120
17121 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
17122 $as_echo "$TARGET_ASM_DIR" >&6; }
17123
17124
17125 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
17126 $as_echo_n "checking for ioctl()... " >&6; }
17127 cat >conftest.$ac_ext <<_ACEOF
17128 /* confdefs.h. */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17133 #include <unistd.h>
17134
17135 _ACEOF
17136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17137 $EGREP "ioctl" >/dev/null 2>&1; then
17138 is_unistd=yes
17139 else
17140 is_unistd=no
17141 fi
17142 rm -f conftest*
17143
17144 cat >conftest.$ac_ext <<_ACEOF
17145 /* confdefs.h. */
17146 _ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h. */
17150 #include <sys/ioctl.h>
17151
17152 _ACEOF
17153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17154 $EGREP "ioctl" >/dev/null 2>&1; then
17155 is_sys_ioctl=yes
17156 else
17157 is_sys_ioctl=no
17158 fi
17159 rm -f conftest*
17160
17161 cat >conftest.$ac_ext <<_ACEOF
17162 /* confdefs.h. */
17163 _ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 #include <stropts.h>
17168
17169 _ACEOF
17170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17171 $EGREP "ioctl" >/dev/null 2>&1; then
17172 is_stropts=yes
17173 else
17174 is_stropts=no
17175 fi
17176 rm -f conftest*
17177
17178
17179 if test $is_unistd = yes; then
17180 result=unistd.h
17181
17182 cat >>confdefs.h <<\_ACEOF
17183 #define HAVE_IOCTL_IN_UNISTD_H 1
17184 _ACEOF
17185
17186 else
17187
17188 if test $is_sys_ioctl = yes; then
17189 result=sys/ioctl.h
17190
17191 cat >>confdefs.h <<\_ACEOF
17192 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
17193 _ACEOF
17194
17195 elif test $is_stropts = yes; then
17196
17197 cat >>confdefs.h <<\_ACEOF
17198 #define HAVE_IOCTL_IN_STROPTS_H 1
17199 _ACEOF
17200
17201 else
17202 result=no
17203 fi
17204 fi
17205
17206 if test $result = no; then
17207 { $as_echo "$as_me:$LINENO: result: no" >&5
17208 $as_echo "no" >&6; }
17209 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
17210 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
17211 { (exit 1); exit 1; }; }
17212 else
17213 { $as_echo "$as_me:$LINENO: result: yes" >&5
17214 $as_echo "yes" >&6; }
17215 fi
17216
17217
17218 ZLIB=
17219
17220 if test "${ac_cv_header_zlib_h+set}" = set; then
17221 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
17222 $as_echo_n "checking for zlib.h... " >&6; }
17223 if test "${ac_cv_header_zlib_h+set}" = set; then
17224 $as_echo_n "(cached) " >&6
17225 fi
17226 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
17227 $as_echo "$ac_cv_header_zlib_h" >&6; }
17228 else
17229 # Is the header compilable?
17230 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
17231 $as_echo_n "checking zlib.h usability... " >&6; }
17232 cat >conftest.$ac_ext <<_ACEOF
17233 /* confdefs.h. */
17234 _ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17238 $ac_includes_default
17239 #include <zlib.h>
17240 _ACEOF
17241 rm -f conftest.$ac_objext
17242 if { (ac_try="$ac_compile"
17243 case "(($ac_try" in
17244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245 *) ac_try_echo=$ac_try;;
17246 esac
17247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17248 $as_echo "$ac_try_echo") >&5
17249 (eval "$ac_compile") 2>conftest.er1
17250 ac_status=$?
17251 grep -v '^ *+' conftest.er1 >conftest.err
17252 rm -f conftest.er1
17253 cat conftest.err >&5
17254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } && {
17256 test -z "$ac_c_werror_flag" ||
17257 test ! -s conftest.err
17258 } && test -s conftest.$ac_objext; then
17259 ac_header_compiler=yes
17260 else
17261 $as_echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17263
17264 ac_header_compiler=no
17265 fi
17266
17267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17268 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17269 $as_echo "$ac_header_compiler" >&6; }
17270
17271 # Is the header present?
17272 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
17273 $as_echo_n "checking zlib.h presence... " >&6; }
17274 cat >conftest.$ac_ext <<_ACEOF
17275 /* confdefs.h. */
17276 _ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17280 #include <zlib.h>
17281 _ACEOF
17282 if { (ac_try="$ac_cpp conftest.$ac_ext"
17283 case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17286 esac
17287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17288 $as_echo "$ac_try_echo") >&5
17289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17290 ac_status=$?
17291 grep -v '^ *+' conftest.er1 >conftest.err
17292 rm -f conftest.er1
17293 cat conftest.err >&5
17294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } >/dev/null && {
17296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17297 test ! -s conftest.err
17298 }; then
17299 ac_header_preproc=yes
17300 else
17301 $as_echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17303
17304 ac_header_preproc=no
17305 fi
17306
17307 rm -f conftest.err conftest.$ac_ext
17308 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17309 $as_echo "$ac_header_preproc" >&6; }
17310
17311 # So? What about this header?
17312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17313 yes:no: )
17314 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17315 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17316 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
17317 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
17318 ac_header_preproc=yes
17319 ;;
17320 no:yes:* )
17321 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
17322 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
17323 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
17324 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
17325 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
17326 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
17327 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
17328 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17329 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
17330 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
17331 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
17332 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
17333
17334 ;;
17335 esac
17336 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
17337 $as_echo_n "checking for zlib.h... " >&6; }
17338 if test "${ac_cv_header_zlib_h+set}" = set; then
17339 $as_echo_n "(cached) " >&6
17340 else
17341 ac_cv_header_zlib_h=$ac_header_preproc
17342 fi
17343 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
17344 $as_echo "$ac_cv_header_zlib_h" >&6; }
17345
17346 fi
17347 if test "x$ac_cv_header_zlib_h" = x""yes; then
17348 :
17349 else
17350 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17352 { { $as_echo "$as_me:$LINENO: error:
17353 *** zlib.h missing, zlib-devel package required
17354 See \`config.log' for more details." >&5
17355 $as_echo "$as_me: error:
17356 *** zlib.h missing, zlib-devel package required
17357 See \`config.log' for more details." >&2;}
17358 { (exit 1); exit 1; }; }; }
17359 fi
17360
17361
17362
17363
17364 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
17365 $as_echo_n "checking for compress2 in -lz... " >&6; }
17366 if test "${ac_cv_lib_z_compress2+set}" = set; then
17367 $as_echo_n "(cached) " >&6
17368 else
17369 ac_check_lib_save_LIBS=$LIBS
17370 LIBS="-lz $LIBS"
17371 cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h. */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17377
17378 /* Override any GCC internal prototype to avoid an error.
17379 Use char because int might match the return type of a GCC
17380 builtin and then its argument prototype would still apply. */
17381 #ifdef __cplusplus
17382 extern "C"
17383 #endif
17384 char compress2 ();
17385 int
17386 main ()
17387 {
17388 return compress2 ();
17389 ;
17390 return 0;
17391 }
17392 _ACEOF
17393 rm -f conftest.$ac_objext conftest$ac_exeext
17394 if { (ac_try="$ac_link"
17395 case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17398 esac
17399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17400 $as_echo "$ac_try_echo") >&5
17401 (eval "$ac_link") 2>conftest.er1
17402 ac_status=$?
17403 grep -v '^ *+' conftest.er1 >conftest.err
17404 rm -f conftest.er1
17405 cat conftest.err >&5
17406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } && {
17408 test -z "$ac_c_werror_flag" ||
17409 test ! -s conftest.err
17410 } && test -s conftest$ac_exeext && {
17411 test "$cross_compiling" = yes ||
17412 $as_test_x conftest$ac_exeext
17413 }; then
17414 ac_cv_lib_z_compress2=yes
17415 else
17416 $as_echo "$as_me: failed program was:" >&5
17417 sed 's/^/| /' conftest.$ac_ext >&5
17418
17419 ac_cv_lib_z_compress2=no
17420 fi
17421
17422 rm -rf conftest.dSYM
17423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17424 conftest$ac_exeext conftest.$ac_ext
17425 LIBS=$ac_check_lib_save_LIBS
17426 fi
17427 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
17428 $as_echo "$ac_cv_lib_z_compress2" >&6; }
17429 if test "x$ac_cv_lib_z_compress2" = x""yes; then
17430 cat >>confdefs.h <<_ACEOF
17431 #define HAVE_LIBZ 1
17432 _ACEOF
17433
17434 LIBS="-lz $LIBS"
17435
17436 else
17437 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17439 { { $as_echo "$as_me:$LINENO: error:
17440 *** compress2() missing, zlib-devel package required
17441 See \`config.log' for more details." >&5
17442 $as_echo "$as_me: error:
17443 *** compress2() missing, zlib-devel package required
17444 See \`config.log' for more details." >&2;}
17445 { (exit 1); exit 1; }; }; }
17446 fi
17447
17448
17449
17450 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
17451 $as_echo_n "checking for uncompress in -lz... " >&6; }
17452 if test "${ac_cv_lib_z_uncompress+set}" = set; then
17453 $as_echo_n "(cached) " >&6
17454 else
17455 ac_check_lib_save_LIBS=$LIBS
17456 LIBS="-lz $LIBS"
17457 cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h. */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463
17464 /* Override any GCC internal prototype to avoid an error.
17465 Use char because int might match the return type of a GCC
17466 builtin and then its argument prototype would still apply. */
17467 #ifdef __cplusplus
17468 extern "C"
17469 #endif
17470 char uncompress ();
17471 int
17472 main ()
17473 {
17474 return uncompress ();
17475 ;
17476 return 0;
17477 }
17478 _ACEOF
17479 rm -f conftest.$ac_objext conftest$ac_exeext
17480 if { (ac_try="$ac_link"
17481 case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17484 esac
17485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17486 $as_echo "$ac_try_echo") >&5
17487 (eval "$ac_link") 2>conftest.er1
17488 ac_status=$?
17489 grep -v '^ *+' conftest.er1 >conftest.err
17490 rm -f conftest.er1
17491 cat conftest.err >&5
17492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } && {
17494 test -z "$ac_c_werror_flag" ||
17495 test ! -s conftest.err
17496 } && test -s conftest$ac_exeext && {
17497 test "$cross_compiling" = yes ||
17498 $as_test_x conftest$ac_exeext
17499 }; then
17500 ac_cv_lib_z_uncompress=yes
17501 else
17502 $as_echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17504
17505 ac_cv_lib_z_uncompress=no
17506 fi
17507
17508 rm -rf conftest.dSYM
17509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17510 conftest$ac_exeext conftest.$ac_ext
17511 LIBS=$ac_check_lib_save_LIBS
17512 fi
17513 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
17514 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
17515 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
17516 cat >>confdefs.h <<_ACEOF
17517 #define HAVE_LIBZ 1
17518 _ACEOF
17519
17520 LIBS="-lz $LIBS"
17521
17522 else
17523 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17525 { { $as_echo "$as_me:$LINENO: error:
17526 *** uncompress() missing, zlib-devel package required
17527 See \`config.log' for more details." >&5
17528 $as_echo "$as_me: error:
17529 *** uncompress() missing, zlib-devel package required
17530 See \`config.log' for more details." >&2;}
17531 { (exit 1); exit 1; }; }; }
17532 fi
17533
17534
17535
17536 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
17537 $as_echo_n "checking for crc32 in -lz... " >&6; }
17538 if test "${ac_cv_lib_z_crc32+set}" = set; then
17539 $as_echo_n "(cached) " >&6
17540 else
17541 ac_check_lib_save_LIBS=$LIBS
17542 LIBS="-lz $LIBS"
17543 cat >conftest.$ac_ext <<_ACEOF
17544 /* confdefs.h. */
17545 _ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h. */
17549
17550 /* Override any GCC internal prototype to avoid an error.
17551 Use char because int might match the return type of a GCC
17552 builtin and then its argument prototype would still apply. */
17553 #ifdef __cplusplus
17554 extern "C"
17555 #endif
17556 char crc32 ();
17557 int
17558 main ()
17559 {
17560 return crc32 ();
17561 ;
17562 return 0;
17563 }
17564 _ACEOF
17565 rm -f conftest.$ac_objext conftest$ac_exeext
17566 if { (ac_try="$ac_link"
17567 case "(($ac_try" in
17568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569 *) ac_try_echo=$ac_try;;
17570 esac
17571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17572 $as_echo "$ac_try_echo") >&5
17573 (eval "$ac_link") 2>conftest.er1
17574 ac_status=$?
17575 grep -v '^ *+' conftest.er1 >conftest.err
17576 rm -f conftest.er1
17577 cat conftest.err >&5
17578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } && {
17580 test -z "$ac_c_werror_flag" ||
17581 test ! -s conftest.err
17582 } && test -s conftest$ac_exeext && {
17583 test "$cross_compiling" = yes ||
17584 $as_test_x conftest$ac_exeext
17585 }; then
17586 ac_cv_lib_z_crc32=yes
17587 else
17588 $as_echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17590
17591 ac_cv_lib_z_crc32=no
17592 fi
17593
17594 rm -rf conftest.dSYM
17595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17596 conftest$ac_exeext conftest.$ac_ext
17597 LIBS=$ac_check_lib_save_LIBS
17598 fi
17599 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
17600 $as_echo "$ac_cv_lib_z_crc32" >&6; }
17601 if test "x$ac_cv_lib_z_crc32" = x""yes; then
17602 cat >>confdefs.h <<_ACEOF
17603 #define HAVE_LIBZ 1
17604 _ACEOF
17605
17606 LIBS="-lz $LIBS"
17607
17608 else
17609 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17611 { { $as_echo "$as_me:$LINENO: error:
17612 *** crc32() missing, zlib-devel package required
17613 See \`config.log' for more details." >&5
17614 $as_echo "$as_me: error:
17615 *** crc32() missing, zlib-devel package required
17616 See \`config.log' for more details." >&2;}
17617 { (exit 1); exit 1; }; }; }
17618 fi
17619
17620
17621 ZLIB="-lz"
17622
17623
17624 cat >>confdefs.h <<\_ACEOF
17625 #define HAVE_ZLIB 1
17626 _ACEOF
17627
17628
17629
17630 LIBUUID=
17631
17632 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17633 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17634 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17635 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17636 $as_echo_n "(cached) " >&6
17637 fi
17638 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17639 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17640 else
17641 # Is the header compilable?
17642 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
17643 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
17644 cat >conftest.$ac_ext <<_ACEOF
17645 /* confdefs.h. */
17646 _ACEOF
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h. */
17650 $ac_includes_default
17651 #include <uuid/uuid.h>
17652 _ACEOF
17653 rm -f conftest.$ac_objext
17654 if { (ac_try="$ac_compile"
17655 case "(($ac_try" in
17656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657 *) ac_try_echo=$ac_try;;
17658 esac
17659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17660 $as_echo "$ac_try_echo") >&5
17661 (eval "$ac_compile") 2>conftest.er1
17662 ac_status=$?
17663 grep -v '^ *+' conftest.er1 >conftest.err
17664 rm -f conftest.er1
17665 cat conftest.err >&5
17666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } && {
17668 test -z "$ac_c_werror_flag" ||
17669 test ! -s conftest.err
17670 } && test -s conftest.$ac_objext; then
17671 ac_header_compiler=yes
17672 else
17673 $as_echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17675
17676 ac_header_compiler=no
17677 fi
17678
17679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17680 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17681 $as_echo "$ac_header_compiler" >&6; }
17682
17683 # Is the header present?
17684 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
17685 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
17686 cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h. */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17692 #include <uuid/uuid.h>
17693 _ACEOF
17694 if { (ac_try="$ac_cpp conftest.$ac_ext"
17695 case "(($ac_try" in
17696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697 *) ac_try_echo=$ac_try;;
17698 esac
17699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17700 $as_echo "$ac_try_echo") >&5
17701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17702 ac_status=$?
17703 grep -v '^ *+' conftest.er1 >conftest.err
17704 rm -f conftest.er1
17705 cat conftest.err >&5
17706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } >/dev/null && {
17708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17709 test ! -s conftest.err
17710 }; then
17711 ac_header_preproc=yes
17712 else
17713 $as_echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17715
17716 ac_header_preproc=no
17717 fi
17718
17719 rm -f conftest.err conftest.$ac_ext
17720 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17721 $as_echo "$ac_header_preproc" >&6; }
17722
17723 # So? What about this header?
17724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17725 yes:no: )
17726 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
17727 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17728 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
17729 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
17730 ac_header_preproc=yes
17731 ;;
17732 no:yes:* )
17733 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
17734 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
17735 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
17736 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
17737 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
17738 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
17739 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
17740 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
17741 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
17742 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
17743 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
17744 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
17745
17746 ;;
17747 esac
17748 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17749 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17750 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17751 $as_echo_n "(cached) " >&6
17752 else
17753 ac_cv_header_uuid_uuid_h=$ac_header_preproc
17754 fi
17755 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17756 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17757
17758 fi
17759 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
17760 :
17761 else
17762 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17764 { { $as_echo "$as_me:$LINENO: error:
17765 *** uuid/uuid.h missing, libuuid-devel package required
17766 See \`config.log' for more details." >&5
17767 $as_echo "$as_me: error:
17768 *** uuid/uuid.h missing, libuuid-devel package required
17769 See \`config.log' for more details." >&2;}
17770 { (exit 1); exit 1; }; }; }
17771 fi
17772
17773
17774
17775
17776 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
17777 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17778 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
17779 $as_echo_n "(cached) " >&6
17780 else
17781 ac_check_lib_save_LIBS=$LIBS
17782 LIBS="-luuid $LIBS"
17783 cat >conftest.$ac_ext <<_ACEOF
17784 /* confdefs.h. */
17785 _ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17789
17790 /* Override any GCC internal prototype to avoid an error.
17791 Use char because int might match the return type of a GCC
17792 builtin and then its argument prototype would still apply. */
17793 #ifdef __cplusplus
17794 extern "C"
17795 #endif
17796 char uuid_generate ();
17797 int
17798 main ()
17799 {
17800 return uuid_generate ();
17801 ;
17802 return 0;
17803 }
17804 _ACEOF
17805 rm -f conftest.$ac_objext conftest$ac_exeext
17806 if { (ac_try="$ac_link"
17807 case "(($ac_try" in
17808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809 *) ac_try_echo=$ac_try;;
17810 esac
17811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17812 $as_echo "$ac_try_echo") >&5
17813 (eval "$ac_link") 2>conftest.er1
17814 ac_status=$?
17815 grep -v '^ *+' conftest.er1 >conftest.err
17816 rm -f conftest.er1
17817 cat conftest.err >&5
17818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } && {
17820 test -z "$ac_c_werror_flag" ||
17821 test ! -s conftest.err
17822 } && test -s conftest$ac_exeext && {
17823 test "$cross_compiling" = yes ||
17824 $as_test_x conftest$ac_exeext
17825 }; then
17826 ac_cv_lib_uuid_uuid_generate=yes
17827 else
17828 $as_echo "$as_me: failed program was:" >&5
17829 sed 's/^/| /' conftest.$ac_ext >&5
17830
17831 ac_cv_lib_uuid_uuid_generate=no
17832 fi
17833
17834 rm -rf conftest.dSYM
17835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17836 conftest$ac_exeext conftest.$ac_ext
17837 LIBS=$ac_check_lib_save_LIBS
17838 fi
17839 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
17840 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17841 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
17842 cat >>confdefs.h <<_ACEOF
17843 #define HAVE_LIBUUID 1
17844 _ACEOF
17845
17846 LIBS="-luuid $LIBS"
17847
17848 else
17849 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17851 { { $as_echo "$as_me:$LINENO: error:
17852 *** uuid_generate() missing, libuuid-devel package required
17853 See \`config.log' for more details." >&5
17854 $as_echo "$as_me: error:
17855 *** uuid_generate() missing, libuuid-devel package required
17856 See \`config.log' for more details." >&2;}
17857 { (exit 1); exit 1; }; }; }
17858 fi
17859
17860
17861
17862 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
17863 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
17864 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
17865 $as_echo_n "(cached) " >&6
17866 else
17867 ac_check_lib_save_LIBS=$LIBS
17868 LIBS="-luuid $LIBS"
17869 cat >conftest.$ac_ext <<_ACEOF
17870 /* confdefs.h. */
17871 _ACEOF
17872 cat confdefs.h >>conftest.$ac_ext
17873 cat >>conftest.$ac_ext <<_ACEOF
17874 /* end confdefs.h. */
17875
17876 /* Override any GCC internal prototype to avoid an error.
17877 Use char because int might match the return type of a GCC
17878 builtin and then its argument prototype would still apply. */
17879 #ifdef __cplusplus
17880 extern "C"
17881 #endif
17882 char uuid_is_null ();
17883 int
17884 main ()
17885 {
17886 return uuid_is_null ();
17887 ;
17888 return 0;
17889 }
17890 _ACEOF
17891 rm -f conftest.$ac_objext conftest$ac_exeext
17892 if { (ac_try="$ac_link"
17893 case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17896 esac
17897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17898 $as_echo "$ac_try_echo") >&5
17899 (eval "$ac_link") 2>conftest.er1
17900 ac_status=$?
17901 grep -v '^ *+' conftest.er1 >conftest.err
17902 rm -f conftest.er1
17903 cat conftest.err >&5
17904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } && {
17906 test -z "$ac_c_werror_flag" ||
17907 test ! -s conftest.err
17908 } && test -s conftest$ac_exeext && {
17909 test "$cross_compiling" = yes ||
17910 $as_test_x conftest$ac_exeext
17911 }; then
17912 ac_cv_lib_uuid_uuid_is_null=yes
17913 else
17914 $as_echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17916
17917 ac_cv_lib_uuid_uuid_is_null=no
17918 fi
17919
17920 rm -rf conftest.dSYM
17921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17922 conftest$ac_exeext conftest.$ac_ext
17923 LIBS=$ac_check_lib_save_LIBS
17924 fi
17925 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
17926 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
17927 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
17928 cat >>confdefs.h <<_ACEOF
17929 #define HAVE_LIBUUID 1
17930 _ACEOF
17931
17932 LIBS="-luuid $LIBS"
17933
17934 else
17935 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17937 { { $as_echo "$as_me:$LINENO: error:
17938 *** uuid_is_null() missing, libuuid-devel package required
17939 See \`config.log' for more details." >&5
17940 $as_echo "$as_me: error:
17941 *** uuid_is_null() missing, libuuid-devel package required
17942 See \`config.log' for more details." >&2;}
17943 { (exit 1); exit 1; }; }; }
17944 fi
17945
17946
17947 LIBUUID="-luuid"
17948
17949
17950 cat >>confdefs.h <<\_ACEOF
17951 #define HAVE_LIBUUID 1
17952 _ACEOF
17953
17954
17955
17956
17957 # Check whether --with-blkid was given.
17958 if test "${with_blkid+set}" = set; then
17959 withval=$with_blkid;
17960 else
17961 with_blkid=check
17962 fi
17963
17964
17965 LIBBLKID=
17966 if test "x$with_blkid" != xno; then
17967
17968 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
17969 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
17970 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
17971 $as_echo_n "(cached) " >&6
17972 else
17973 ac_check_lib_save_LIBS=$LIBS
17974 LIBS="-lblkid $LIBS"
17975 cat >conftest.$ac_ext <<_ACEOF
17976 /* confdefs.h. */
17977 _ACEOF
17978 cat confdefs.h >>conftest.$ac_ext
17979 cat >>conftest.$ac_ext <<_ACEOF
17980 /* end confdefs.h. */
17981
17982 /* Override any GCC internal prototype to avoid an error.
17983 Use char because int might match the return type of a GCC
17984 builtin and then its argument prototype would still apply. */
17985 #ifdef __cplusplus
17986 extern "C"
17987 #endif
17988 char blkid_get_cache ();
17989 int
17990 main ()
17991 {
17992 return blkid_get_cache ();
17993 ;
17994 return 0;
17995 }
17996 _ACEOF
17997 rm -f conftest.$ac_objext conftest$ac_exeext
17998 if { (ac_try="$ac_link"
17999 case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18002 esac
18003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18004 $as_echo "$ac_try_echo") >&5
18005 (eval "$ac_link") 2>conftest.er1
18006 ac_status=$?
18007 grep -v '^ *+' conftest.er1 >conftest.err
18008 rm -f conftest.er1
18009 cat conftest.err >&5
18010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } && {
18012 test -z "$ac_c_werror_flag" ||
18013 test ! -s conftest.err
18014 } && test -s conftest$ac_exeext && {
18015 test "$cross_compiling" = yes ||
18016 $as_test_x conftest$ac_exeext
18017 }; then
18018 ac_cv_lib_blkid_blkid_get_cache=yes
18019 else
18020 $as_echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023 ac_cv_lib_blkid_blkid_get_cache=no
18024 fi
18025
18026 rm -rf conftest.dSYM
18027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18028 conftest$ac_exeext conftest.$ac_ext
18029 LIBS=$ac_check_lib_save_LIBS
18030 fi
18031 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
18032 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
18033 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
18034
18035 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
18036 $as_echo_n "checking for blkid zfs support... " >&6; }
18037
18038 ZFS_DEV=`mktemp`
18039 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
18040 >/dev/null 2>/dev/null
18041 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
18042 dd of=$ZFS_DEV bs=1k count=8 \
18043 seek=132 conv=notrunc &>/dev/null \
18044 >/dev/null 2>/dev/null
18045
18046 saved_LDFLAGS="$LDFLAGS"
18047 LDFLAGS="-lblkid"
18048
18049 if test "$cross_compiling" = yes; then
18050 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18052 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18053 See \`config.log' for more details." >&5
18054 $as_echo "$as_me: error: cannot run test program while cross compiling
18055 See \`config.log' for more details." >&2;}
18056 { (exit 1); exit 1; }; }; }
18057 else
18058 cat >conftest.$ac_ext <<_ACEOF
18059 /* confdefs.h. */
18060 _ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h. */
18064
18065 #include <stdio.h>
18066 #include <blkid/blkid.h>
18067
18068 int
18069 main ()
18070 {
18071
18072 blkid_cache cache;
18073 char *value;
18074
18075 if (blkid_get_cache(&cache, NULL) < 0)
18076 return 1;
18077
18078 value = blkid_get_tag_value(cache, "TYPE",
18079 "$ZFS_DEV");
18080 if (!value) {
18081 blkid_put_cache(cache);
18082 return 2;
18083 }
18084
18085 if (strcmp(value, "zfs")) {
18086 free(value);
18087 blkid_put_cache(cache);
18088 return 3;
18089 }
18090
18091 free(value);
18092 blkid_put_cache(cache);
18093
18094 ;
18095 return 0;
18096 }
18097 _ACEOF
18098 rm -f conftest$ac_exeext
18099 if { (ac_try="$ac_link"
18100 case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18103 esac
18104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18105 $as_echo "$ac_try_echo") >&5
18106 (eval "$ac_link") 2>&5
18107 ac_status=$?
18108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18110 { (case "(($ac_try" in
18111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112 *) ac_try_echo=$ac_try;;
18113 esac
18114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18115 $as_echo "$ac_try_echo") >&5
18116 (eval "$ac_try") 2>&5
18117 ac_status=$?
18118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120
18121 rm -f $ZFS_DEV
18122 { $as_echo "$as_me:$LINENO: result: yes" >&5
18123 $as_echo "yes" >&6; }
18124 LIBBLKID="-lblkid"
18125
18126
18127 cat >>confdefs.h <<\_ACEOF
18128 #define HAVE_LIBBLKID 1
18129 _ACEOF
18130
18131
18132 else
18133 $as_echo "$as_me: program exited with status $ac_status" >&5
18134 $as_echo "$as_me: failed program was:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18136
18137 ( exit $ac_status )
18138
18139 rm -f $ZFS_DEV
18140 { $as_echo "$as_me:$LINENO: result: no" >&5
18141 $as_echo "no" >&6; }
18142 if test "x$with_blkid" != xcheck; then
18143 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18145 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
18146 See \`config.log' for more details." >&5
18147 $as_echo "$as_me: error: --with-blkid given but unavailable
18148 See \`config.log' for more details." >&2;}
18149 { (exit 1); exit 1; }; }; }
18150 fi
18151
18152
18153 fi
18154 rm -rf conftest.dSYM
18155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18156 fi
18157
18158
18159
18160 LDFLAGS="$saved_LDFLAGS"
18161
18162 else
18163
18164 if test "x$with_blkid" != xcheck; then
18165 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18167 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
18168 See \`config.log' for more details." >&5
18169 $as_echo "$as_me: error: --with-blkid given but unavailable
18170 See \`config.log' for more details." >&2;}
18171 { (exit 1); exit 1; }; }; }
18172 fi
18173
18174
18175
18176 fi
18177
18178
18179 fi
18180
18181
18182
18183
18184 # Check whether --with-selinux was given.
18185 if test "${with_selinux+set}" = set; then
18186 withval=$with_selinux;
18187 else
18188 with_selinux=check
18189 fi
18190
18191
18192 LIBSELINUX=
18193 if test "x$with_selinux" != xno; then
18194
18195 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
18196 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
18197 $as_echo_n "checking for selinux/selinux.h... " >&6; }
18198 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
18199 $as_echo_n "(cached) " >&6
18200 fi
18201 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
18202 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
18203 else
18204 # Is the header compilable?
18205 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
18206 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
18207 cat >conftest.$ac_ext <<_ACEOF
18208 /* confdefs.h. */
18209 _ACEOF
18210 cat confdefs.h >>conftest.$ac_ext
18211 cat >>conftest.$ac_ext <<_ACEOF
18212 /* end confdefs.h. */
18213 $ac_includes_default
18214 #include <selinux/selinux.h>
18215 _ACEOF
18216 rm -f conftest.$ac_objext
18217 if { (ac_try="$ac_compile"
18218 case "(($ac_try" in
18219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220 *) ac_try_echo=$ac_try;;
18221 esac
18222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18223 $as_echo "$ac_try_echo") >&5
18224 (eval "$ac_compile") 2>conftest.er1
18225 ac_status=$?
18226 grep -v '^ *+' conftest.er1 >conftest.err
18227 rm -f conftest.er1
18228 cat conftest.err >&5
18229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } && {
18231 test -z "$ac_c_werror_flag" ||
18232 test ! -s conftest.err
18233 } && test -s conftest.$ac_objext; then
18234 ac_header_compiler=yes
18235 else
18236 $as_echo "$as_me: failed program was:" >&5
18237 sed 's/^/| /' conftest.$ac_ext >&5
18238
18239 ac_header_compiler=no
18240 fi
18241
18242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18243 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18244 $as_echo "$ac_header_compiler" >&6; }
18245
18246 # Is the header present?
18247 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
18248 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
18249 cat >conftest.$ac_ext <<_ACEOF
18250 /* confdefs.h. */
18251 _ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18255 #include <selinux/selinux.h>
18256 _ACEOF
18257 if { (ac_try="$ac_cpp conftest.$ac_ext"
18258 case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18261 esac
18262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18263 $as_echo "$ac_try_echo") >&5
18264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18265 ac_status=$?
18266 grep -v '^ *+' conftest.er1 >conftest.err
18267 rm -f conftest.er1
18268 cat conftest.err >&5
18269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } >/dev/null && {
18271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18272 test ! -s conftest.err
18273 }; then
18274 ac_header_preproc=yes
18275 else
18276 $as_echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18278
18279 ac_header_preproc=no
18280 fi
18281
18282 rm -f conftest.err conftest.$ac_ext
18283 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18284 $as_echo "$ac_header_preproc" >&6; }
18285
18286 # So? What about this header?
18287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18288 yes:no: )
18289 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
18290 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18291 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
18292 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
18293 ac_header_preproc=yes
18294 ;;
18295 no:yes:* )
18296 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
18297 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
18298 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
18299 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
18300 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
18301 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
18302 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
18303 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
18304 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
18305 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
18306 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
18307 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
18308
18309 ;;
18310 esac
18311 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
18312 $as_echo_n "checking for selinux/selinux.h... " >&6; }
18313 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
18314 $as_echo_n "(cached) " >&6
18315 else
18316 ac_cv_header_selinux_selinux_h=$ac_header_preproc
18317 fi
18318 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
18319 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
18320
18321 fi
18322 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
18323
18324 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
18325 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
18326 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
18327 $as_echo_n "(cached) " >&6
18328 else
18329 ac_check_lib_save_LIBS=$LIBS
18330 LIBS="-lselinux $LIBS"
18331 cat >conftest.$ac_ext <<_ACEOF
18332 /* confdefs.h. */
18333 _ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h. */
18337
18338 /* Override any GCC internal prototype to avoid an error.
18339 Use char because int might match the return type of a GCC
18340 builtin and then its argument prototype would still apply. */
18341 #ifdef __cplusplus
18342 extern "C"
18343 #endif
18344 char is_selinux_enabled ();
18345 int
18346 main ()
18347 {
18348 return is_selinux_enabled ();
18349 ;
18350 return 0;
18351 }
18352 _ACEOF
18353 rm -f conftest.$ac_objext conftest$ac_exeext
18354 if { (ac_try="$ac_link"
18355 case "(($ac_try" in
18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357 *) ac_try_echo=$ac_try;;
18358 esac
18359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18360 $as_echo "$ac_try_echo") >&5
18361 (eval "$ac_link") 2>conftest.er1
18362 ac_status=$?
18363 grep -v '^ *+' conftest.er1 >conftest.err
18364 rm -f conftest.er1
18365 cat conftest.err >&5
18366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } && {
18368 test -z "$ac_c_werror_flag" ||
18369 test ! -s conftest.err
18370 } && test -s conftest$ac_exeext && {
18371 test "$cross_compiling" = yes ||
18372 $as_test_x conftest$ac_exeext
18373 }; then
18374 ac_cv_lib_selinux_is_selinux_enabled=yes
18375 else
18376 $as_echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18378
18379 ac_cv_lib_selinux_is_selinux_enabled=no
18380 fi
18381
18382 rm -rf conftest.dSYM
18383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18384 conftest$ac_exeext conftest.$ac_ext
18385 LIBS=$ac_check_lib_save_LIBS
18386 fi
18387 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
18388 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
18389 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
18390
18391 LIBSELINUX="-lselinux"
18392
18393
18394 cat >>confdefs.h <<\_ACEOF
18395 #define HAVE_LIBSELINUX 1
18396 _ACEOF
18397
18398
18399 else
18400
18401 if test "x$with_selinux" != xcheck; then
18402 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18404 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
18405 See \`config.log' for more details." >&5
18406 $as_echo "$as_me: error: --with-selinux given but unavailable
18407 See \`config.log' for more details." >&2;}
18408 { (exit 1); exit 1; }; }; }
18409
18410 fi
18411
18412
18413 fi
18414
18415
18416 else
18417
18418 if test "x$with_selinux" != xcheck; then
18419 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18421 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
18422 See \`config.log' for more details." >&5
18423 $as_echo "$as_me: error: --with-selinux given but unavailable
18424 See \`config.log' for more details." >&2;}
18425 { (exit 1); exit 1; }; }; }
18426
18427 fi
18428
18429
18430 fi
18431
18432
18433
18434 else
18435
18436 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
18437 $as_echo_n "checking for selinux support... " >&6; }
18438 { $as_echo "$as_me:$LINENO: result: no" >&5
18439 $as_echo "no" >&6; }
18440
18441 fi
18442
18443
18444
18445 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
18446 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
18447
18448 saved_flags="$CFLAGS"
18449 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
18450
18451 if test "$cross_compiling" = yes; then
18452 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18454 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18455 See \`config.log' for more details." >&5
18456 $as_echo "$as_me: error: cannot run test program while cross compiling
18457 See \`config.log' for more details." >&2;}
18458 { (exit 1); exit 1; }; }; }
18459 else
18460 cat >conftest.$ac_ext <<_ACEOF
18461 /* confdefs.h. */
18462 _ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h. */
18466
18467 int
18468 main ()
18469 {
18470
18471 ;
18472 return 0;
18473 }
18474 _ACEOF
18475 rm -f conftest$ac_exeext
18476 if { (ac_try="$ac_link"
18477 case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18480 esac
18481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18482 $as_echo "$ac_try_echo") >&5
18483 (eval "$ac_link") 2>&5
18484 ac_status=$?
18485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18487 { (case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18490 esac
18491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18492 $as_echo "$ac_try_echo") >&5
18493 (eval "$ac_try") 2>&5
18494 ac_status=$?
18495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; }; then
18497
18498 FRAME_LARGER_THAN=-Wframe-larger-than=1024
18499 { $as_echo "$as_me:$LINENO: result: yes" >&5
18500 $as_echo "yes" >&6; }
18501
18502 else
18503 $as_echo "$as_me: program exited with status $ac_status" >&5
18504 $as_echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18506
18507 ( exit $ac_status )
18508
18509 FRAME_LARGER_THAN=
18510 { $as_echo "$as_me:$LINENO: result: no" >&5
18511 $as_echo "no" >&6; }
18512
18513 fi
18514 rm -rf conftest.dSYM
18515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18516 fi
18517
18518
18519
18520 CFLAGS="$saved_flags"
18521
18522
18523
18524
18525 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
18526 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
18527
18528 saved_CFLAGS="$CFLAGS"
18529 CFLAGS="-fstack-check"
18530 saved_LDFLAGS="$LDFLAGS"
18531 LDFLAGS="-lpthread"
18532
18533 if test "$cross_compiling" = yes; then
18534 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18536 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18537 See \`config.log' for more details." >&5
18538 $as_echo "$as_me: error: cannot run test program while cross compiling
18539 See \`config.log' for more details." >&2;}
18540 { (exit 1); exit 1; }; }; }
18541 else
18542 cat >conftest.$ac_ext <<_ACEOF
18543 /* confdefs.h. */
18544 _ACEOF
18545 cat confdefs.h >>conftest.$ac_ext
18546 cat >>conftest.$ac_ext <<_ACEOF
18547 /* end confdefs.h. */
18548
18549 #include <pthread.h>
18550 #include <sys/resource.h>
18551 #include <unistd.h>
18552 #include <bits/local_lim.h>
18553
18554 #define PAGESIZE (sysconf(_SC_PAGESIZE))
18555 #define STACK_SIZE 8192
18556 #define BUFSIZE 4096
18557
18558 void * func(void *arg)
18559 {
18560 char buf[BUFSIZE];
18561 }
18562
18563 int
18564 main ()
18565 {
18566
18567 pthread_t tid;
18568 pthread_attr_t attr;
18569 struct rlimit l;
18570
18571 l.rlim_cur = 0;
18572 l.rlim_max = 0;
18573 setrlimit(RLIMIT_CORE, &l);
18574 pthread_attr_init(&attr);
18575 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
18576 pthread_attr_setguardsize(&attr, PAGESIZE);
18577 pthread_create(&tid, &attr, func, NULL);
18578 pthread_join(tid, NULL);
18579
18580 ;
18581 return 0;
18582 }
18583 _ACEOF
18584 rm -f conftest$ac_exeext
18585 if { (ac_try="$ac_link"
18586 case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18589 esac
18590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18591 $as_echo "$ac_try_echo") >&5
18592 (eval "$ac_link") 2>&5
18593 ac_status=$?
18594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18596 { (case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18599 esac
18600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18601 $as_echo "$ac_try_echo") >&5
18602 (eval "$ac_try") 2>&5
18603 ac_status=$?
18604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; }; then
18606
18607 { $as_echo "$as_me:$LINENO: result: no" >&5
18608 $as_echo "no" >&6; }
18609
18610 else
18611 $as_echo "$as_me: program exited with status $ac_status" >&5
18612 $as_echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18614
18615 ( exit $ac_status )
18616
18617
18618 cat >>confdefs.h <<\_ACEOF
18619 #define NPTL_GUARD_WITHIN_STACK 1
18620 _ACEOF
18621
18622 { $as_echo "$as_me:$LINENO: result: yes" >&5
18623 $as_echo "yes" >&6; }
18624
18625 fi
18626 rm -rf conftest.dSYM
18627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18628 fi
18629
18630
18631 CFLAGS="$saved_CFLAGS"
18632 LDFLAGS="$saved_LDFLAGS"
18633
18634 ;;
18635 all)
18636
18637
18638 # Check whether --with-linux was given.
18639 if test "${with_linux+set}" = set; then
18640 withval=$with_linux; kernelsrc="$withval"
18641 fi
18642
18643
18644
18645 # Check whether --with-linux-obj was given.
18646 if test "${with_linux_obj+set}" = set; then
18647 withval=$with_linux_obj; kernelbuild="$withval"
18648 fi
18649
18650
18651 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
18652 $as_echo_n "checking kernel source directory... " >&6; }
18653 if test -z "$kernelsrc"; then
18654
18655 if test -e "/lib/modules/$(uname -r)/source"; then
18656
18657 headersdir="/lib/modules/$(uname -r)/source"
18658 sourcelink=$(readlink -f "$headersdir")
18659
18660 elif test -e "/lib/modules/$(uname -r)/build"; then
18661
18662 headersdir="/lib/modules/$(uname -r)/build"
18663 sourcelink=$(readlink -f "$headersdir")
18664
18665 else
18666
18667 sourcelink=$(ls -1d /usr/src/kernels/* \
18668 /usr/src/linux-* \
18669 2>/dev/null | grep -v obj | tail -1)
18670
18671 fi
18672
18673
18674 if test -n "$sourcelink" && test -e ${sourcelink}; then
18675
18676 kernelsrc=`readlink -f ${sourcelink}`
18677
18678 else
18679
18680 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18681 $as_echo "Not found" >&6; }
18682 { { $as_echo "$as_me:$LINENO: error:
18683 *** Please make sure the kernel devel package for your distribution
18684 *** is installed then try again. If that fails you can specify the
18685 *** location of the kernel source with the '--with-linux=PATH' option." >&5
18686 $as_echo "$as_me: error:
18687 *** Please make sure the kernel devel package for your distribution
18688 *** is installed then try again. If that fails you can specify the
18689 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
18690 { (exit 1); exit 1; }; }
18691
18692 fi
18693
18694
18695 else
18696
18697 if test "$kernelsrc" = "NONE"; then
18698
18699 kernsrcver=NONE
18700
18701 fi
18702
18703
18704 fi
18705
18706
18707 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
18708 $as_echo "$kernelsrc" >&6; }
18709 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
18710 $as_echo_n "checking kernel build directory... " >&6; }
18711 if test -z "$kernelbuild"; then
18712
18713 if test -e "/lib/modules/$(uname -r)/build"; then
18714
18715 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
18716
18717 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
18718
18719 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
18720
18721 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
18722
18723 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
18724
18725 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
18726
18727 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
18728
18729 else
18730
18731 kernelbuild=${kernelsrc}
18732
18733 fi
18734
18735
18736 fi
18737
18738 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
18739 $as_echo "$kernelbuild" >&6; }
18740
18741 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
18742 $as_echo_n "checking kernel source version... " >&6; }
18743 utsrelease1=$kernelbuild/include/linux/version.h
18744 utsrelease2=$kernelbuild/include/linux/utsrelease.h
18745 utsrelease3=$kernelbuild/include/generated/utsrelease.h
18746 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
18747
18748 utsrelease=linux/version.h
18749
18750 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
18751
18752 utsrelease=linux/utsrelease.h
18753
18754 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
18755
18756 utsrelease=generated/utsrelease.h
18757
18758 fi
18759
18760
18761 if test "$utsrelease"; then
18762
18763 kernsrcver=`(echo "#include <$utsrelease>";
18764 echo "kernsrcver=UTS_RELEASE") |
18765 cpp -I $kernelbuild/include |
18766 grep "^kernsrcver=" | cut -d \" -f 2`
18767
18768 if test -z "$kernsrcver"; then
18769
18770 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18771 $as_echo "Not found" >&6; }
18772 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
18773 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
18774 { (exit 1); exit 1; }; }
18775
18776 fi
18777
18778
18779 else
18780
18781 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18782 $as_echo "Not found" >&6; }
18783 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
18784 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
18785 { (exit 1); exit 1; }; }
18786
18787 fi
18788
18789
18790 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
18791 $as_echo "$kernsrcver" >&6; }
18792
18793 LINUX=${kernelsrc}
18794 LINUX_OBJ=${kernelbuild}
18795 LINUX_VERSION=${kernsrcver}
18796
18797
18798
18799
18800
18801
18802 modpost=$LINUX/scripts/Makefile.modpost
18803 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
18804 $as_echo_n "checking kernel file name for module symbols... " >&6; }
18805 if test -f "$modpost"; then
18806
18807 if grep -q Modules.symvers $modpost; then
18808
18809 LINUX_SYMBOLS=Modules.symvers
18810
18811 else
18812
18813 LINUX_SYMBOLS=Module.symvers
18814
18815 fi
18816
18817
18818 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
18819
18820 { { $as_echo "$as_me:$LINENO: error:
18821 *** Please make sure the kernel devel package for your distribution
18822 *** is installed. If your building with a custom kernel make sure the
18823 *** kernel is configured, built, and the '--with-linux=PATH' configure
18824 *** option refers to the location of the kernel source." >&5
18825 $as_echo "$as_me: error:
18826 *** Please make sure the kernel devel package for your distribution
18827 *** is installed. If your building with a custom kernel make sure the
18828 *** kernel is configured, built, and the '--with-linux=PATH' configure
18829 *** option refers to the location of the kernel source." >&2;}
18830 { (exit 1); exit 1; }; }
18831
18832 fi
18833
18834
18835 else
18836
18837 LINUX_SYMBOLS=NONE
18838
18839 fi
18840
18841 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
18842 $as_echo "$LINUX_SYMBOLS" >&6; }
18843
18844
18845
18846
18847
18848 # Check whether --with-spl was given.
18849 if test "${with_spl+set}" = set; then
18850 withval=$with_spl; splsrc="$withval"
18851 fi
18852
18853
18854
18855 # Check whether --with-spl-obj was given.
18856 if test "${with_spl_obj+set}" = set; then
18857 withval=$with_spl_obj; splbuild="$withval"
18858 fi
18859
18860
18861
18862 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
18863 $as_echo_n "checking spl source directory... " >&6; }
18864 if test -z "$splsrc"; then
18865
18866 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
18867 2>/dev/null | tail -1`
18868
18869 if test -z "$sourcelink" || test ! -e $sourcelink; then
18870
18871 sourcelink=../spl
18872
18873 fi
18874
18875
18876 if test -e $sourcelink; then
18877
18878 splsrc=`readlink -f ${sourcelink}`
18879
18880 else
18881
18882 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18883 $as_echo "Not found" >&6; }
18884 { { $as_echo "$as_me:$LINENO: error:
18885 *** Please make sure the spl devel package for your distribution
18886 *** is installed then try again. If that fails you can specify the
18887 *** location of the spl source with the '--with-spl=PATH' option." >&5
18888 $as_echo "$as_me: error:
18889 *** Please make sure the spl devel package for your distribution
18890 *** is installed then try again. If that fails you can specify the
18891 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
18892 { (exit 1); exit 1; }; }
18893
18894 fi
18895
18896
18897 else
18898
18899 if test "$splsrc" = "NONE"; then
18900
18901 splbuild=NONE
18902 splsrcver=NONE
18903
18904 fi
18905
18906
18907 fi
18908
18909
18910 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
18911 $as_echo "$splsrc" >&6; }
18912 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
18913 $as_echo_n "checking spl build directory... " >&6; }
18914 if test -z "$splbuild"; then
18915
18916 splbuild=${splsrc}
18917
18918 fi
18919
18920 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
18921 $as_echo "$splbuild" >&6; }
18922
18923 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
18924 $as_echo_n "checking spl source version... " >&6; }
18925 if test -r $splbuild/spl_config.h &&
18926 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
18927
18928
18929 splsrcver=`(echo "#include <spl_config.h>";
18930 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
18931 cpp -I $splbuild |
18932 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
18933
18934 fi
18935
18936
18937 if test -z "$splsrcver"; then
18938
18939 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18940 $as_echo "Not found" >&6; }
18941 { { $as_echo "$as_me:$LINENO: error:
18942 *** Cannot determine the version of the spl source.
18943 *** Please prepare the spl source before running this script" >&5
18944 $as_echo "$as_me: error:
18945 *** Cannot determine the version of the spl source.
18946 *** Please prepare the spl source before running this script" >&2;}
18947 { (exit 1); exit 1; }; }
18948
18949 fi
18950
18951
18952 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
18953 $as_echo "$splsrcver" >&6; }
18954
18955 SPL=${splsrc}
18956 SPL_OBJ=${splbuild}
18957 SPL_VERSION=${splsrcver}
18958
18959
18960
18961
18962
18963
18964 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
18965 $as_echo_n "checking spl file name for module symbols... " >&6; }
18966 if test -r $SPL_OBJ/Module.symvers; then
18967
18968 SPL_SYMBOLS=Module.symvers
18969
18970 elif test -r $SPL_OBJ/Modules.symvers; then
18971
18972 SPL_SYMBOLS=Modules.symvers
18973
18974 elif test -r $SPL_OBJ/module/Module.symvers; then
18975
18976 SPL_SYMBOLS=Module.symvers
18977
18978 elif test -r $SPL_OBJ/module/Modules.symvers; then
18979
18980 SPL_SYMBOLS=Modules.symvers
18981
18982 else
18983
18984 SPL_SYMBOLS=$LINUX_SYMBOLS
18985
18986 fi
18987
18988
18989 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
18990 $as_echo "$SPL_SYMBOLS" >&6; }
18991
18992
18993
18994
18995
18996 if test "$ZFS_META_LICENSE" = GPL; then
18997
18998
18999 cat >>confdefs.h <<\_ACEOF
19000 #define HAVE_GPL_ONLY_SYMBOLS 1
19001 _ACEOF
19002
19003
19004 fi
19005
19006
19007
19008
19009 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
19010 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
19011
19012
19013 cat confdefs.h - <<_ACEOF >conftest.c
19014 /* confdefs.h. */
19015 _ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h. */
19019
19020
19021 #include <linux/module.h>
19022
19023 int
19024 main (void)
19025 {
19026
19027 #ifndef CONFIG_PREEMPT
19028 #error CONFIG_PREEMPT not #defined
19029 #endif
19030
19031 ;
19032 return 0;
19033 }
19034
19035 _ACEOF
19036
19037
19038 rm -Rf build && mkdir -p build
19039 echo "obj-m := conftest.o" >build/Makefile
19040 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19043 ac_status=$?
19044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; }; then
19051
19052 { $as_echo "$as_me:$LINENO: result: yes" >&5
19053 $as_echo "yes" >&6; }
19054 { { $as_echo "$as_me:$LINENO: error:
19055 *** Kernel built with CONFIG_PREEMPT which is not supported.
19056 *** You must rebuild your kernel without this option." >&5
19057 $as_echo "$as_me: error:
19058 *** Kernel built with CONFIG_PREEMPT which is not supported.
19059 *** You must rebuild your kernel without this option." >&2;}
19060 { (exit 1); exit 1; }; }
19061
19062 else
19063 $as_echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19065
19066 { $as_echo "$as_me:$LINENO: result: no" >&5
19067 $as_echo "no" >&6; }
19068
19069
19070
19071
19072 fi
19073
19074 rm -Rf build
19075
19076
19077
19078
19079
19080
19081 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
19082 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
19083
19084
19085 cat confdefs.h - <<_ACEOF >conftest.c
19086 /* confdefs.h. */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19091
19092
19093 #include <linux/module.h>
19094
19095 int
19096 main (void)
19097 {
19098
19099 #ifndef CONFIG_DEBUG_LOCK_ALLOC
19100 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
19101 #endif
19102
19103 ;
19104 return 0;
19105 }
19106
19107 _ACEOF
19108
19109
19110 rm -Rf build && mkdir -p build
19111 echo "obj-m := conftest.o" >build/Makefile
19112 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114 (eval $ac_try) 2>&5
19115 ac_status=$?
19116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19120 ac_status=$?
19121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123
19124 { $as_echo "$as_me:$LINENO: result: yes" >&5
19125 $as_echo "yes" >&6; }
19126
19127 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
19128 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
19129 tmp_flags="$EXTRA_KCFLAGS"
19130
19131
19132 cat confdefs.h - <<_ACEOF >conftest.c
19133 /* confdefs.h. */
19134 _ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138
19139
19140 #include <linux/module.h>
19141 #include <linux/mutex.h>
19142
19143 MODULE_LICENSE("$ZFS_META_LICENSE");
19144
19145 int
19146 main (void)
19147 {
19148
19149 struct mutex lock;
19150
19151 mutex_init(&lock);
19152 mutex_lock(&lock);
19153 mutex_unlock(&lock);
19154
19155 ;
19156 return 0;
19157 }
19158
19159 _ACEOF
19160
19161
19162 rm -Rf build && mkdir -p build
19163 echo "obj-m := conftest.o" >build/Makefile
19164 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166 (eval $ac_try) 2>&5
19167 ac_status=$?
19168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19172 ac_status=$?
19173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; }; then
19175
19176 { $as_echo "$as_me:$LINENO: result: no" >&5
19177 $as_echo "no" >&6; }
19178
19179 else
19180 $as_echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19182
19183 { $as_echo "$as_me:$LINENO: result: yes" >&5
19184 $as_echo "yes" >&6; }
19185 { { $as_echo "$as_me:$LINENO: error:
19186 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
19187 *** with the CDDL license and will prevent the module linking stage
19188 *** from succeeding. You must rebuild your kernel without this
19189 *** option enabled." >&5
19190 $as_echo "$as_me: error:
19191 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
19192 *** with the CDDL license and will prevent the module linking stage
19193 *** from succeeding. You must rebuild your kernel without this
19194 *** option enabled." >&2;}
19195 { (exit 1); exit 1; }; }
19196
19197
19198
19199 fi
19200
19201 rm -Rf build
19202
19203
19204 EXTRA_KCFLAGS="$tmp_flags"
19205
19206
19207 else
19208 $as_echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211 { $as_echo "$as_me:$LINENO: result: no" >&5
19212 $as_echo "no" >&6; }
19213
19214
19215
19216
19217 fi
19218
19219 rm -Rf build
19220
19221
19222
19223
19224
19225
19226 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
19227 $as_echo_n "checking block device operation prototypes... " >&6; }
19228 tmp_flags="$EXTRA_KCFLAGS"
19229 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19230
19231
19232 cat confdefs.h - <<_ACEOF >conftest.c
19233 /* confdefs.h. */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238
19239
19240 #include <linux/blkdev.h>
19241
19242 int
19243 main (void)
19244 {
19245
19246 int (*blk_open) (struct block_device *, fmode_t) = NULL;
19247 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
19248 int (*blk_ioctl) (struct block_device *, fmode_t,
19249 unsigned, unsigned long) = NULL;
19250 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
19251 unsigned, unsigned long) = NULL;
19252 struct block_device_operations blk_ops = {
19253 .open = blk_open,
19254 .release = blk_release,
19255 .ioctl = blk_ioctl,
19256 .compat_ioctl = blk_compat_ioctl,
19257 };
19258
19259 blk_ops.open(NULL, 0);
19260 blk_ops.release(NULL, 0);
19261 blk_ops.ioctl(NULL, 0, 0, 0);
19262 blk_ops.compat_ioctl(NULL, 0, 0, 0);
19263
19264 ;
19265 return 0;
19266 }
19267
19268 _ACEOF
19269
19270
19271 rm -Rf build && mkdir -p build
19272 echo "obj-m := conftest.o" >build/Makefile
19273 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19281 ac_status=$?
19282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; }; then
19284
19285 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
19286 $as_echo "struct block_device" >&6; }
19287
19288 cat >>confdefs.h <<\_ACEOF
19289 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
19290 _ACEOF
19291
19292
19293 else
19294 $as_echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19296
19297 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
19298 $as_echo "struct inode" >&6; }
19299
19300
19301
19302 fi
19303
19304 rm -Rf build
19305
19306
19307 EXTRA_KCFLAGS="$tmp_flags"
19308
19309 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
19310 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
19311
19312
19313 cat confdefs.h - <<_ACEOF >conftest.c
19314 /* confdefs.h. */
19315 _ACEOF
19316 cat confdefs.h >>conftest.$ac_ext
19317 cat >>conftest.$ac_ext <<_ACEOF
19318 /* end confdefs.h. */
19319
19320
19321 #include <linux/types.h>
19322
19323 int
19324 main (void)
19325 {
19326
19327 fmode_t *ptr __attribute__ ((unused));
19328
19329 ;
19330 return 0;
19331 }
19332
19333 _ACEOF
19334
19335
19336 rm -Rf build && mkdir -p build
19337 echo "obj-m := conftest.o" >build/Makefile
19338 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19341 ac_status=$?
19342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345 (eval $ac_try) 2>&5
19346 ac_status=$?
19347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
19349
19350 { $as_echo "$as_me:$LINENO: result: yes" >&5
19351 $as_echo "yes" >&6; }
19352
19353 cat >>confdefs.h <<\_ACEOF
19354 #define HAVE_FMODE_T 1
19355 _ACEOF
19356
19357
19358 else
19359 $as_echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19361
19362 { $as_echo "$as_me:$LINENO: result: no" >&5
19363 $as_echo "no" >&6; }
19364
19365
19366
19367 fi
19368
19369 rm -Rf build
19370
19371
19372
19373
19374 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
19375 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
19376
19377
19378 cat confdefs.h - <<_ACEOF >conftest.c
19379 /* confdefs.h. */
19380 _ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19384
19385
19386 #include <linux/kobject.h>
19387
19388 int
19389 main (void)
19390 {
19391
19392 int val __attribute__ ((unused));
19393 val = KOBJ_NAME_LEN;
19394
19395 ;
19396 return 0;
19397 }
19398
19399 _ACEOF
19400
19401
19402 rm -Rf build && mkdir -p build
19403 echo "obj-m := conftest.o" >build/Makefile
19404 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406 (eval $ac_try) 2>&5
19407 ac_status=$?
19408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411 (eval $ac_try) 2>&5
19412 ac_status=$?
19413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; }; then
19415
19416 { $as_echo "$as_me:$LINENO: result: yes" >&5
19417 $as_echo "yes" >&6; }
19418
19419 cat >>confdefs.h <<\_ACEOF
19420 #define HAVE_KOBJ_NAME_LEN 1
19421 _ACEOF
19422
19423
19424 else
19425 $as_echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428 { $as_echo "$as_me:$LINENO: result: no" >&5
19429 $as_echo "no" >&6; }
19430
19431
19432
19433 fi
19434
19435 rm -Rf build
19436
19437
19438
19439
19440 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
19441 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
19442
19443
19444 cat confdefs.h - <<_ACEOF >conftest.c
19445 /* confdefs.h. */
19446 _ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h. */
19450
19451
19452 #include <linux/fs.h>
19453
19454 int
19455 main (void)
19456 {
19457
19458 struct block_device *bdev = NULL;
19459 (void) blkdev_get(bdev, 0, NULL);
19460
19461 ;
19462 return 0;
19463 }
19464
19465 _ACEOF
19466
19467
19468 rm -Rf build && mkdir -p build
19469 echo "obj-m := conftest.o" >build/Makefile
19470 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19478 ac_status=$?
19479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481
19482 { $as_echo "$as_me:$LINENO: result: yes" >&5
19483 $as_echo "yes" >&6; }
19484
19485 cat >>confdefs.h <<\_ACEOF
19486 #define HAVE_3ARG_BLKDEV_GET 1
19487 _ACEOF
19488
19489
19490 else
19491 $as_echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19493
19494 { $as_echo "$as_me:$LINENO: result: no" >&5
19495 $as_echo "no" >&6; }
19496
19497
19498
19499 fi
19500
19501 rm -Rf build
19502
19503
19504
19505
19506 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
19507 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
19508 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
19509 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19510 rc=$?
19511 if test $rc -ne 0; then
19512
19513 export=0
19514 for file in fs/block_dev.c; do
19515 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
19516 rc=$?
19517 if test $rc -eq 0; then
19518
19519 export=1
19520 break;
19521
19522 fi
19523
19524 done
19525 if test $export -eq 0; then
19526
19527 { $as_echo "$as_me:$LINENO: result: no" >&5
19528 $as_echo "no" >&6; }
19529
19530
19531 else
19532
19533 { $as_echo "$as_me:$LINENO: result: yes" >&5
19534 $as_echo "yes" >&6; }
19535
19536 cat >>confdefs.h <<\_ACEOF
19537 #define HAVE_BLKDEV_GET_BY_PATH 1
19538 _ACEOF
19539
19540
19541 fi
19542
19543
19544 else
19545
19546 { $as_echo "$as_me:$LINENO: result: yes" >&5
19547 $as_echo "yes" >&6; }
19548
19549 cat >>confdefs.h <<\_ACEOF
19550 #define HAVE_BLKDEV_GET_BY_PATH 1
19551 _ACEOF
19552
19553
19554 fi
19555
19556
19557
19558
19559 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
19560 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
19561 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
19562 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19563 rc=$?
19564 if test $rc -ne 0; then
19565
19566 export=0
19567 for file in fs/block_dev.c; do
19568 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
19569 rc=$?
19570 if test $rc -eq 0; then
19571
19572 export=1
19573 break;
19574
19575 fi
19576
19577 done
19578 if test $export -eq 0; then
19579
19580 { $as_echo "$as_me:$LINENO: result: no" >&5
19581 $as_echo "no" >&6; }
19582
19583
19584 else
19585
19586 { $as_echo "$as_me:$LINENO: result: yes" >&5
19587 $as_echo "yes" >&6; }
19588
19589 cat >>confdefs.h <<\_ACEOF
19590 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
19591 _ACEOF
19592
19593
19594 fi
19595
19596
19597 else
19598
19599 { $as_echo "$as_me:$LINENO: result: yes" >&5
19600 $as_echo "yes" >&6; }
19601
19602 cat >>confdefs.h <<\_ACEOF
19603 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
19604 _ACEOF
19605
19606
19607 fi
19608
19609
19610
19611
19612 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
19613 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
19614
19615
19616 cat confdefs.h - <<_ACEOF >conftest.c
19617 /* confdefs.h. */
19618 _ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622
19623
19624 #include <linux/buffer_head.h>
19625
19626 int
19627 main (void)
19628 {
19629
19630 struct block_device *bdev = NULL;
19631 invalidate_bdev(bdev);
19632
19633 ;
19634 return 0;
19635 }
19636
19637 _ACEOF
19638
19639
19640 rm -Rf build && mkdir -p build
19641 echo "obj-m := conftest.o" >build/Makefile
19642 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 (eval $ac_try) 2>&5
19645 ac_status=$?
19646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649 (eval $ac_try) 2>&5
19650 ac_status=$?
19651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; }; then
19653
19654 { $as_echo "$as_me:$LINENO: result: yes" >&5
19655 $as_echo "yes" >&6; }
19656
19657 cat >>confdefs.h <<\_ACEOF
19658 #define HAVE_1ARG_INVALIDATE_BDEV 1
19659 _ACEOF
19660
19661
19662 else
19663 $as_echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19665
19666 { $as_echo "$as_me:$LINENO: result: no" >&5
19667 $as_echo "no" >&6; }
19668
19669
19670
19671 fi
19672
19673 rm -Rf build
19674
19675
19676
19677
19678 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
19679 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
19680 tmp_flags="$EXTRA_KCFLAGS"
19681 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19682
19683
19684 cat confdefs.h - <<_ACEOF >conftest.c
19685 /* confdefs.h. */
19686 _ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19690
19691
19692 #include <linux/blkdev.h>
19693
19694 int
19695 main (void)
19696 {
19697
19698 struct block_device *bdev = NULL;
19699 bdev_logical_block_size(bdev);
19700
19701 ;
19702 return 0;
19703 }
19704
19705 _ACEOF
19706
19707
19708 rm -Rf build && mkdir -p build
19709 echo "obj-m := conftest.o" >build/Makefile
19710 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712 (eval $ac_try) 2>&5
19713 ac_status=$?
19714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717 (eval $ac_try) 2>&5
19718 ac_status=$?
19719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; }; then
19721
19722 { $as_echo "$as_me:$LINENO: result: yes" >&5
19723 $as_echo "yes" >&6; }
19724
19725 cat >>confdefs.h <<\_ACEOF
19726 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
19727 _ACEOF
19728
19729
19730 else
19731 $as_echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19733
19734 { $as_echo "$as_me:$LINENO: result: no" >&5
19735 $as_echo "no" >&6; }
19736
19737
19738
19739 fi
19740
19741 rm -Rf build
19742
19743
19744 EXTRA_KCFLAGS="$tmp_flags"
19745
19746
19747 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
19748 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
19749 EXTRA_KCFLAGS="-Werror"
19750
19751
19752 cat confdefs.h - <<_ACEOF >conftest.c
19753 /* confdefs.h. */
19754 _ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19758
19759
19760 #include <linux/bio.h>
19761
19762 int
19763 main (void)
19764 {
19765
19766 struct bio bio;
19767 (void)bio_empty_barrier(&bio);
19768
19769 ;
19770 return 0;
19771 }
19772
19773 _ACEOF
19774
19775
19776 rm -Rf build && mkdir -p build
19777 echo "obj-m := conftest.o" >build/Makefile
19778 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5
19786 ac_status=$?
19787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; }; then
19789
19790 { $as_echo "$as_me:$LINENO: result: yes" >&5
19791 $as_echo "yes" >&6; }
19792
19793 cat >>confdefs.h <<\_ACEOF
19794 #define HAVE_BIO_EMPTY_BARRIER 1
19795 _ACEOF
19796
19797
19798 else
19799 $as_echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19801
19802 { $as_echo "$as_me:$LINENO: result: no" >&5
19803 $as_echo "no" >&6; }
19804
19805
19806
19807 fi
19808
19809 rm -Rf build
19810
19811
19812
19813
19814 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
19815 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
19816
19817
19818 cat confdefs.h - <<_ACEOF >conftest.c
19819 /* confdefs.h. */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19824
19825
19826 #include <linux/bio.h>
19827
19828 int
19829 main (void)
19830 {
19831
19832 int flags __attribute__ ((unused));
19833 flags = (1 << BIO_RW_FAILFAST);
19834
19835 ;
19836 return 0;
19837 }
19838
19839 _ACEOF
19840
19841
19842 rm -Rf build && mkdir -p build
19843 echo "obj-m := conftest.o" >build/Makefile
19844 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19847 ac_status=$?
19848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855
19856 { $as_echo "$as_me:$LINENO: result: yes" >&5
19857 $as_echo "yes" >&6; }
19858
19859 cat >>confdefs.h <<\_ACEOF
19860 #define HAVE_BIO_RW_FAILFAST 1
19861 _ACEOF
19862
19863
19864 else
19865 $as_echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19867
19868 { $as_echo "$as_me:$LINENO: result: no" >&5
19869 $as_echo "no" >&6; }
19870
19871
19872
19873 fi
19874
19875 rm -Rf build
19876
19877
19878
19879
19880 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
19881 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
19882
19883
19884 cat confdefs.h - <<_ACEOF >conftest.c
19885 /* confdefs.h. */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19890
19891
19892 #include <linux/bio.h>
19893
19894 int
19895 main (void)
19896 {
19897
19898 int flags __attribute__ ((unused));
19899 flags = ((1 << BIO_RW_FAILFAST_DEV) |
19900 (1 << BIO_RW_FAILFAST_TRANSPORT) |
19901 (1 << BIO_RW_FAILFAST_DRIVER));
19902
19903 ;
19904 return 0;
19905 }
19906
19907 _ACEOF
19908
19909
19910 rm -Rf build && mkdir -p build
19911 echo "obj-m := conftest.o" >build/Makefile
19912 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19915 ac_status=$?
19916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19920 ac_status=$?
19921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
19923
19924 { $as_echo "$as_me:$LINENO: result: yes" >&5
19925 $as_echo "yes" >&6; }
19926
19927 cat >>confdefs.h <<\_ACEOF
19928 #define HAVE_BIO_RW_FAILFAST_DTD 1
19929 _ACEOF
19930
19931
19932 else
19933 $as_echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19935
19936 { $as_echo "$as_me:$LINENO: result: no" >&5
19937 $as_echo "no" >&6; }
19938
19939
19940
19941 fi
19942
19943 rm -Rf build
19944
19945
19946
19947
19948 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
19949 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
19950
19951
19952 cat confdefs.h - <<_ACEOF >conftest.c
19953 /* confdefs.h. */
19954 _ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h. */
19958
19959
19960 #include <linux/bio.h>
19961
19962 int
19963 main (void)
19964 {
19965
19966 int flags __attribute__ ((unused));
19967 flags = REQ_FAILFAST_MASK;
19968
19969 ;
19970 return 0;
19971 }
19972
19973 _ACEOF
19974
19975
19976 rm -Rf build && mkdir -p build
19977 echo "obj-m := conftest.o" >build/Makefile
19978 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19986 ac_status=$?
19987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; }; then
19989
19990 { $as_echo "$as_me:$LINENO: result: yes" >&5
19991 $as_echo "yes" >&6; }
19992
19993 cat >>confdefs.h <<\_ACEOF
19994 #define HAVE_BIO_REQ_FAILFAST_MASK 1
19995 _ACEOF
19996
19997
19998 else
19999 $as_echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002 { $as_echo "$as_me:$LINENO: result: no" >&5
20003 $as_echo "no" >&6; }
20004
20005
20006
20007 fi
20008
20009 rm -Rf build
20010
20011
20012
20013
20014 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
20015 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
20016 tmp_flags="$EXTRA_KCFLAGS"
20017 EXTRA_KCFLAGS="-Werror"
20018
20019
20020 cat confdefs.h - <<_ACEOF >conftest.c
20021 /* confdefs.h. */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026
20027
20028 #include <linux/bio.h>
20029
20030 int
20031 main (void)
20032 {
20033
20034 void (*wanted_end_io)(struct bio *, int) = NULL;
20035 bio_end_io_t *local_end_io __attribute__ ((unused));
20036
20037 local_end_io = wanted_end_io;
20038
20039 ;
20040 return 0;
20041 }
20042
20043 _ACEOF
20044
20045
20046 rm -Rf build && mkdir -p build
20047 echo "obj-m := conftest.o" >build/Makefile
20048 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20051 ac_status=$?
20052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20056 ac_status=$?
20057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; }; then
20059
20060 { $as_echo "$as_me:$LINENO: result: yes" >&5
20061 $as_echo "yes" >&6; }
20062
20063 cat >>confdefs.h <<\_ACEOF
20064 #define HAVE_2ARGS_BIO_END_IO_T 1
20065 _ACEOF
20066
20067
20068 else
20069 $as_echo "$as_me: failed program was:" >&5
20070 sed 's/^/| /' conftest.$ac_ext >&5
20071
20072 { $as_echo "$as_me:$LINENO: result: no" >&5
20073 $as_echo "no" >&6; }
20074
20075
20076
20077 fi
20078
20079 rm -Rf build
20080
20081
20082 EXTRA_KCFLAGS="$tmp_flags"
20083
20084
20085 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
20086 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
20087
20088
20089 cat confdefs.h - <<_ACEOF >conftest.c
20090 /* confdefs.h. */
20091 _ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20095
20096
20097 #include <linux/bio.h>
20098
20099 int
20100 main (void)
20101 {
20102
20103 int flags __attribute__ ((unused));
20104 flags = BIO_RW_SYNC;
20105
20106 ;
20107 return 0;
20108 }
20109
20110 _ACEOF
20111
20112
20113 rm -Rf build && mkdir -p build
20114 echo "obj-m := conftest.o" >build/Makefile
20115 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117 (eval $ac_try) 2>&5
20118 ac_status=$?
20119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; }; then
20126
20127 { $as_echo "$as_me:$LINENO: result: yes" >&5
20128 $as_echo "yes" >&6; }
20129
20130 cat >>confdefs.h <<\_ACEOF
20131 #define HAVE_BIO_RW_SYNC 1
20132 _ACEOF
20133
20134
20135 else
20136 $as_echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20138
20139 { $as_echo "$as_me:$LINENO: result: no" >&5
20140 $as_echo "no" >&6; }
20141
20142
20143
20144 fi
20145
20146 rm -Rf build
20147
20148
20149
20150
20151 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
20152 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
20153
20154
20155 cat confdefs.h - <<_ACEOF >conftest.c
20156 /* confdefs.h. */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20161
20162
20163 #include <linux/bio.h>
20164
20165 int
20166 main (void)
20167 {
20168
20169 int flags __attribute__ ((unused));
20170 flags = BIO_RW_SYNCIO;
20171
20172 ;
20173 return 0;
20174 }
20175
20176 _ACEOF
20177
20178
20179 rm -Rf build && mkdir -p build
20180 echo "obj-m := conftest.o" >build/Makefile
20181 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20183 (eval $ac_try) 2>&5
20184 ac_status=$?
20185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20189 ac_status=$?
20190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192
20193 { $as_echo "$as_me:$LINENO: result: yes" >&5
20194 $as_echo "yes" >&6; }
20195
20196 cat >>confdefs.h <<\_ACEOF
20197 #define HAVE_BIO_RW_SYNCIO 1
20198 _ACEOF
20199
20200
20201 else
20202 $as_echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20204
20205 { $as_echo "$as_me:$LINENO: result: no" >&5
20206 $as_echo "no" >&6; }
20207
20208
20209
20210 fi
20211
20212 rm -Rf build
20213
20214
20215
20216
20217 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
20218 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
20219
20220
20221 cat confdefs.h - <<_ACEOF >conftest.c
20222 /* confdefs.h. */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227
20228
20229 #include <linux/bio.h>
20230
20231 int
20232 main (void)
20233 {
20234
20235 int flags __attribute__ ((unused));
20236 flags = REQ_SYNC;
20237
20238 ;
20239 return 0;
20240 }
20241
20242 _ACEOF
20243
20244
20245 rm -Rf build && mkdir -p build
20246 echo "obj-m := conftest.o" >build/Makefile
20247 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249 (eval $ac_try) 2>&5
20250 ac_status=$?
20251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254 (eval $ac_try) 2>&5
20255 ac_status=$?
20256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; }; then
20258
20259 { $as_echo "$as_me:$LINENO: result: yes" >&5
20260 $as_echo "yes" >&6; }
20261
20262 cat >>confdefs.h <<\_ACEOF
20263 #define HAVE_REQ_SYNC 1
20264 _ACEOF
20265
20266
20267 else
20268 $as_echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20270
20271 { $as_echo "$as_me:$LINENO: result: no" >&5
20272 $as_echo "no" >&6; }
20273
20274
20275
20276 fi
20277
20278 rm -Rf build
20279
20280
20281
20282
20283 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
20284 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
20285 tmp_flags="$EXTRA_KCFLAGS"
20286 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20287
20288
20289 cat confdefs.h - <<_ACEOF >conftest.c
20290 /* confdefs.h. */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20295
20296
20297 #include <linux/blkdev.h>
20298
20299 int
20300 main (void)
20301 {
20302
20303 struct request *req = NULL;
20304 (void) blk_end_request(req, 0, 0);
20305
20306 ;
20307 return 0;
20308 }
20309
20310 _ACEOF
20311
20312
20313 rm -Rf build && mkdir -p build
20314 echo "obj-m := conftest.o" >build/Makefile
20315 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317 (eval $ac_try) 2>&5
20318 ac_status=$?
20319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20323 ac_status=$?
20324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; }; then
20326
20327 { $as_echo "$as_me:$LINENO: result: yes" >&5
20328 $as_echo "yes" >&6; }
20329
20330 cat >>confdefs.h <<\_ACEOF
20331 #define HAVE_BLK_END_REQUEST 1
20332 _ACEOF
20333
20334
20335 else
20336 $as_echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20338
20339 { $as_echo "$as_me:$LINENO: result: no" >&5
20340 $as_echo "no" >&6; }
20341
20342
20343
20344 fi
20345
20346 rm -Rf build
20347
20348
20349
20350 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
20351 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
20352
20353
20354 cat confdefs.h - <<_ACEOF >conftest.c
20355 /* confdefs.h. */
20356 _ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h. */
20360
20361
20362 #include <linux/module.h>
20363 #include <linux/blkdev.h>
20364
20365 MODULE_LICENSE("CDDL");
20366
20367 int
20368 main (void)
20369 {
20370
20371 struct request *req = NULL;
20372 (void) blk_end_request(req, 0, 0);
20373
20374 ;
20375 return 0;
20376 }
20377
20378 _ACEOF
20379
20380
20381 rm -Rf build && mkdir -p build
20382 echo "obj-m := conftest.o" >build/Makefile
20383 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20386 ac_status=$?
20387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20391 ac_status=$?
20392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; }; then
20394
20395 { $as_echo "$as_me:$LINENO: result: no" >&5
20396 $as_echo "no" >&6; }
20397
20398 else
20399 $as_echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20401
20402 { $as_echo "$as_me:$LINENO: result: yes" >&5
20403 $as_echo "yes" >&6; }
20404
20405 cat >>confdefs.h <<\_ACEOF
20406 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
20407 _ACEOF
20408
20409
20410
20411
20412 fi
20413
20414 rm -Rf build
20415
20416
20417 EXTRA_KCFLAGS="$tmp_flags"
20418
20419
20420 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
20421 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
20422 tmp_flags="$EXTRA_KCFLAGS"
20423 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20424
20425
20426 cat confdefs.h - <<_ACEOF >conftest.c
20427 /* confdefs.h. */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20432
20433
20434 #include <linux/blkdev.h>
20435
20436 int
20437 main (void)
20438 {
20439
20440 struct request_queue *q = NULL;
20441 (void) blk_queue_flush(q, REQ_FLUSH);
20442
20443 ;
20444 return 0;
20445 }
20446
20447 _ACEOF
20448
20449
20450 rm -Rf build && mkdir -p build
20451 echo "obj-m := conftest.o" >build/Makefile
20452 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20455 ac_status=$?
20456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459 (eval $ac_try) 2>&5
20460 ac_status=$?
20461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); }; }; then
20463
20464 { $as_echo "$as_me:$LINENO: result: yes" >&5
20465 $as_echo "yes" >&6; }
20466
20467 cat >>confdefs.h <<\_ACEOF
20468 #define HAVE_BLK_QUEUE_FLUSH 1
20469 _ACEOF
20470
20471
20472 else
20473 $as_echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20475
20476 { $as_echo "$as_me:$LINENO: result: no" >&5
20477 $as_echo "no" >&6; }
20478
20479
20480
20481 fi
20482
20483 rm -Rf build
20484
20485
20486
20487 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
20488 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
20489
20490
20491 cat confdefs.h - <<_ACEOF >conftest.c
20492 /* confdefs.h. */
20493 _ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20497
20498
20499 #include <linux/module.h>
20500 #include <linux/blkdev.h>
20501
20502 MODULE_LICENSE("CDDL");
20503
20504 int
20505 main (void)
20506 {
20507
20508 struct request_queue *q = NULL;
20509 (void) blk_queue_flush(q, REQ_FLUSH);
20510
20511 ;
20512 return 0;
20513 }
20514
20515 _ACEOF
20516
20517
20518 rm -Rf build && mkdir -p build
20519 echo "obj-m := conftest.o" >build/Makefile
20520 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20523 ac_status=$?
20524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527 (eval $ac_try) 2>&5
20528 ac_status=$?
20529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; }; then
20531
20532 { $as_echo "$as_me:$LINENO: result: no" >&5
20533 $as_echo "no" >&6; }
20534
20535 else
20536 $as_echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20538
20539 { $as_echo "$as_me:$LINENO: result: yes" >&5
20540 $as_echo "yes" >&6; }
20541
20542 cat >>confdefs.h <<\_ACEOF
20543 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
20544 _ACEOF
20545
20546
20547
20548
20549 fi
20550
20551 rm -Rf build
20552
20553
20554 EXTRA_KCFLAGS="$tmp_flags"
20555
20556
20557 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
20558 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
20559 tmp_flags="$EXTRA_KCFLAGS"
20560 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20561
20562
20563 cat confdefs.h - <<_ACEOF >conftest.c
20564 /* confdefs.h. */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20569
20570
20571 #include <linux/blkdev.h>
20572
20573 int
20574 main (void)
20575 {
20576
20577 struct request_queue *q = NULL;
20578 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
20579
20580 ;
20581 return 0;
20582 }
20583
20584 _ACEOF
20585
20586
20587 rm -Rf build && mkdir -p build
20588 echo "obj-m := conftest.o" >build/Makefile
20589 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20591 (eval $ac_try) 2>&5
20592 ac_status=$?
20593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20597 ac_status=$?
20598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; }; then
20600
20601 { $as_echo "$as_me:$LINENO: result: yes" >&5
20602 $as_echo "yes" >&6; }
20603
20604 cat >>confdefs.h <<\_ACEOF
20605 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
20606 _ACEOF
20607
20608
20609 else
20610 $as_echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20612
20613 { $as_echo "$as_me:$LINENO: result: no" >&5
20614 $as_echo "no" >&6; }
20615
20616
20617
20618 fi
20619
20620 rm -Rf build
20621
20622
20623 EXTRA_KCFLAGS="$tmp_flags"
20624
20625
20626 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
20627 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
20628 tmp_flags="$EXTRA_KCFLAGS"
20629 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20630
20631
20632 cat confdefs.h - <<_ACEOF >conftest.c
20633 /* confdefs.h. */
20634 _ACEOF
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h. */
20638
20639
20640 #include <linux/blkdev.h>
20641
20642 int
20643 main (void)
20644 {
20645
20646 struct request_queue *q = NULL;
20647 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
20648
20649 ;
20650 return 0;
20651 }
20652
20653 _ACEOF
20654
20655
20656 rm -Rf build && mkdir -p build
20657 echo "obj-m := conftest.o" >build/Makefile
20658 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20661 ac_status=$?
20662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20666 ac_status=$?
20667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; }; then
20669
20670 { $as_echo "$as_me:$LINENO: result: yes" >&5
20671 $as_echo "yes" >&6; }
20672
20673 cat >>confdefs.h <<\_ACEOF
20674 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
20675 _ACEOF
20676
20677
20678 else
20679 $as_echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20681
20682 { $as_echo "$as_me:$LINENO: result: no" >&5
20683 $as_echo "no" >&6; }
20684
20685
20686
20687 fi
20688
20689 rm -Rf build
20690
20691
20692 EXTRA_KCFLAGS="$tmp_flags"
20693
20694
20695 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
20696 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
20697 tmp_flags="$EXTRA_KCFLAGS"
20698 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20699
20700
20701 cat confdefs.h - <<_ACEOF >conftest.c
20702 /* confdefs.h. */
20703 _ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20707
20708
20709 #include <linux/blkdev.h>
20710
20711 int
20712 main (void)
20713 {
20714
20715 struct request_queue *q = NULL;
20716 unsigned short block_size = 1;
20717 (void) blk_queue_physical_block_size(q, block_size);
20718
20719 ;
20720 return 0;
20721 }
20722
20723 _ACEOF
20724
20725
20726 rm -Rf build && mkdir -p build
20727 echo "obj-m := conftest.o" >build/Makefile
20728 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20731 ac_status=$?
20732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735 (eval $ac_try) 2>&5
20736 ac_status=$?
20737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; }; then
20739
20740 { $as_echo "$as_me:$LINENO: result: yes" >&5
20741 $as_echo "yes" >&6; }
20742
20743 cat >>confdefs.h <<\_ACEOF
20744 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
20745 _ACEOF
20746
20747
20748 else
20749 $as_echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20751
20752 { $as_echo "$as_me:$LINENO: result: no" >&5
20753 $as_echo "no" >&6; }
20754
20755
20756
20757 fi
20758
20759 rm -Rf build
20760
20761
20762 EXTRA_KCFLAGS="$tmp_flags"
20763
20764
20765 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
20766 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
20767 tmp_flags="$EXTRA_KCFLAGS"
20768 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20769
20770
20771 cat confdefs.h - <<_ACEOF >conftest.c
20772 /* confdefs.h. */
20773 _ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h. */
20777
20778
20779 #include <linux/blkdev.h>
20780
20781 int
20782 main (void)
20783 {
20784
20785 struct request_queue *q = NULL;
20786 unsigned int opt = 1;
20787 (void) blk_queue_io_opt(q, opt);
20788
20789 ;
20790 return 0;
20791 }
20792
20793 _ACEOF
20794
20795
20796 rm -Rf build && mkdir -p build
20797 echo "obj-m := conftest.o" >build/Makefile
20798 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20801 ac_status=$?
20802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805 (eval $ac_try) 2>&5
20806 ac_status=$?
20807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
20809
20810 { $as_echo "$as_me:$LINENO: result: yes" >&5
20811 $as_echo "yes" >&6; }
20812
20813 cat >>confdefs.h <<\_ACEOF
20814 #define HAVE_BLK_QUEUE_IO_OPT 1
20815 _ACEOF
20816
20817
20818 else
20819 $as_echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20821
20822 { $as_echo "$as_me:$LINENO: result: no" >&5
20823 $as_echo "no" >&6; }
20824
20825
20826
20827 fi
20828
20829 rm -Rf build
20830
20831
20832 EXTRA_KCFLAGS="$tmp_flags"
20833
20834
20835 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
20836 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
20837 tmp_flags="$EXTRA_KCFLAGS"
20838 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20839
20840
20841 cat confdefs.h - <<_ACEOF >conftest.c
20842 /* confdefs.h. */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20847
20848
20849 #include <linux/blkdev.h>
20850
20851 int
20852 main (void)
20853 {
20854
20855 struct request_queue *q = NULL;
20856 (void) blk_queue_nonrot(q);
20857
20858 ;
20859 return 0;
20860 }
20861
20862 _ACEOF
20863
20864
20865 rm -Rf build && mkdir -p build
20866 echo "obj-m := conftest.o" >build/Makefile
20867 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20870 ac_status=$?
20871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20875 ac_status=$?
20876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; }; then
20878
20879 { $as_echo "$as_me:$LINENO: result: yes" >&5
20880 $as_echo "yes" >&6; }
20881
20882 cat >>confdefs.h <<\_ACEOF
20883 #define HAVE_BLK_QUEUE_NONROT 1
20884 _ACEOF
20885
20886
20887 else
20888 $as_echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20890
20891 { $as_echo "$as_me:$LINENO: result: no" >&5
20892 $as_echo "no" >&6; }
20893
20894
20895
20896 fi
20897
20898 rm -Rf build
20899
20900
20901 EXTRA_KCFLAGS="$tmp_flags"
20902
20903
20904 { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
20905 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
20906 tmp_flags="$EXTRA_KCFLAGS"
20907 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20908
20909
20910 cat confdefs.h - <<_ACEOF >conftest.c
20911 /* confdefs.h. */
20912 _ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h. */
20916
20917
20918 #include <linux/blkdev.h>
20919
20920 int
20921 main (void)
20922 {
20923
20924 struct request_queue *q = NULL;
20925 (void) blk_queue_discard(q);
20926
20927 ;
20928 return 0;
20929 }
20930
20931 _ACEOF
20932
20933
20934 rm -Rf build && mkdir -p build
20935 echo "obj-m := conftest.o" >build/Makefile
20936 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20938 (eval $ac_try) 2>&5
20939 ac_status=$?
20940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20943 (eval $ac_try) 2>&5
20944 ac_status=$?
20945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; }; then
20947
20948 { $as_echo "$as_me:$LINENO: result: yes" >&5
20949 $as_echo "yes" >&6; }
20950
20951 cat >>confdefs.h <<\_ACEOF
20952 #define HAVE_BLK_QUEUE_DISCARD 1
20953 _ACEOF
20954
20955
20956 else
20957 $as_echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20959
20960 { $as_echo "$as_me:$LINENO: result: no" >&5
20961 $as_echo "no" >&6; }
20962
20963
20964
20965 fi
20966
20967 rm -Rf build
20968
20969
20970 EXTRA_KCFLAGS="$tmp_flags"
20971
20972
20973 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
20974 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
20975 tmp_flags="$EXTRA_KCFLAGS"
20976 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20977
20978
20979 cat confdefs.h - <<_ACEOF >conftest.c
20980 /* confdefs.h. */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20985
20986
20987 #include <linux/blkdev.h>
20988
20989 int
20990 main (void)
20991 {
20992
20993 struct request_queue *q = NULL;
20994 (void) blk_fetch_request(q);
20995
20996 ;
20997 return 0;
20998 }
20999
21000 _ACEOF
21001
21002
21003 rm -Rf build && mkdir -p build
21004 echo "obj-m := conftest.o" >build/Makefile
21005 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21008 ac_status=$?
21009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21013 ac_status=$?
21014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; }; then
21016
21017 { $as_echo "$as_me:$LINENO: result: yes" >&5
21018 $as_echo "yes" >&6; }
21019
21020 cat >>confdefs.h <<\_ACEOF
21021 #define HAVE_BLK_FETCH_REQUEST 1
21022 _ACEOF
21023
21024
21025 else
21026 $as_echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21028
21029 { $as_echo "$as_me:$LINENO: result: no" >&5
21030 $as_echo "no" >&6; }
21031
21032
21033
21034 fi
21035
21036 rm -Rf build
21037
21038
21039 EXTRA_KCFLAGS="$tmp_flags"
21040
21041
21042 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
21043 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
21044 tmp_flags="$EXTRA_KCFLAGS"
21045 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21046
21047
21048 cat confdefs.h - <<_ACEOF >conftest.c
21049 /* confdefs.h. */
21050 _ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21054
21055
21056 #include <linux/blkdev.h>
21057
21058 int
21059 main (void)
21060 {
21061
21062 struct request_queue *q = NULL;
21063 struct request *req = NULL;
21064 blk_requeue_request(q, req);
21065
21066 ;
21067 return 0;
21068 }
21069
21070 _ACEOF
21071
21072
21073 rm -Rf build && mkdir -p build
21074 echo "obj-m := conftest.o" >build/Makefile
21075 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21078 ac_status=$?
21079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082 (eval $ac_try) 2>&5
21083 ac_status=$?
21084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); }; }; then
21086
21087 { $as_echo "$as_me:$LINENO: result: yes" >&5
21088 $as_echo "yes" >&6; }
21089
21090 cat >>confdefs.h <<\_ACEOF
21091 #define HAVE_BLK_REQUEUE_REQUEST 1
21092 _ACEOF
21093
21094
21095 else
21096 $as_echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21098
21099 { $as_echo "$as_me:$LINENO: result: no" >&5
21100 $as_echo "no" >&6; }
21101
21102
21103
21104 fi
21105
21106 rm -Rf build
21107
21108
21109 EXTRA_KCFLAGS="$tmp_flags"
21110
21111
21112 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
21113 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
21114 tmp_flags="$EXTRA_KCFLAGS"
21115 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21116
21117
21118 cat confdefs.h - <<_ACEOF >conftest.c
21119 /* confdefs.h. */
21120 _ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h. */
21124
21125
21126 #include <linux/blkdev.h>
21127
21128 int
21129 main (void)
21130 {
21131
21132 struct request *req = NULL;
21133 (void) blk_rq_bytes(req);
21134
21135 ;
21136 return 0;
21137 }
21138
21139 _ACEOF
21140
21141
21142 rm -Rf build && mkdir -p build
21143 echo "obj-m := conftest.o" >build/Makefile
21144 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
21148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155
21156 { $as_echo "$as_me:$LINENO: result: yes" >&5
21157 $as_echo "yes" >&6; }
21158
21159 cat >>confdefs.h <<\_ACEOF
21160 #define HAVE_BLK_RQ_BYTES 1
21161 _ACEOF
21162
21163
21164 else
21165 $as_echo "$as_me: failed program was:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21167
21168 { $as_echo "$as_me:$LINENO: result: no" >&5
21169 $as_echo "no" >&6; }
21170
21171
21172
21173 fi
21174
21175 rm -Rf build
21176
21177
21178
21179 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
21180 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
21181
21182
21183 cat confdefs.h - <<_ACEOF >conftest.c
21184 /* confdefs.h. */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21189
21190
21191 #include <linux/module.h>
21192 #include <linux/blkdev.h>
21193
21194 MODULE_LICENSE("CDDL");
21195
21196 int
21197 main (void)
21198 {
21199
21200 struct request *req = NULL;
21201 (void) blk_rq_bytes(req);
21202
21203 ;
21204 return 0;
21205 }
21206
21207 _ACEOF
21208
21209
21210 rm -Rf build && mkdir -p build
21211 echo "obj-m := conftest.o" >build/Makefile
21212 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214 (eval $ac_try) 2>&5
21215 ac_status=$?
21216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21220 ac_status=$?
21221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21223
21224 { $as_echo "$as_me:$LINENO: result: no" >&5
21225 $as_echo "no" >&6; }
21226
21227 else
21228 $as_echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21230
21231 { $as_echo "$as_me:$LINENO: result: yes" >&5
21232 $as_echo "yes" >&6; }
21233
21234 cat >>confdefs.h <<\_ACEOF
21235 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
21236 _ACEOF
21237
21238
21239
21240
21241 fi
21242
21243 rm -Rf build
21244
21245
21246 EXTRA_KCFLAGS="$tmp_flags"
21247
21248
21249 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
21250 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
21251 tmp_flags="$EXTRA_KCFLAGS"
21252 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21253
21254
21255 cat confdefs.h - <<_ACEOF >conftest.c
21256 /* confdefs.h. */
21257 _ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h. */
21261
21262
21263 #include <linux/blkdev.h>
21264
21265 int
21266 main (void)
21267 {
21268
21269 struct request *req = NULL;
21270 (void) blk_rq_pos(req);
21271
21272 ;
21273 return 0;
21274 }
21275
21276 _ACEOF
21277
21278
21279 rm -Rf build && mkdir -p build
21280 echo "obj-m := conftest.o" >build/Makefile
21281 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283 (eval $ac_try) 2>&5
21284 ac_status=$?
21285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21289 ac_status=$?
21290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; }; then
21292
21293 { $as_echo "$as_me:$LINENO: result: yes" >&5
21294 $as_echo "yes" >&6; }
21295
21296 cat >>confdefs.h <<\_ACEOF
21297 #define HAVE_BLK_RQ_POS 1
21298 _ACEOF
21299
21300
21301 else
21302 $as_echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21304
21305 { $as_echo "$as_me:$LINENO: result: no" >&5
21306 $as_echo "no" >&6; }
21307
21308
21309
21310 fi
21311
21312 rm -Rf build
21313
21314
21315 EXTRA_KCFLAGS="$tmp_flags"
21316
21317
21318 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
21319 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
21320 tmp_flags="$EXTRA_KCFLAGS"
21321 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21322
21323
21324 cat confdefs.h - <<_ACEOF >conftest.c
21325 /* confdefs.h. */
21326 _ACEOF
21327 cat confdefs.h >>conftest.$ac_ext
21328 cat >>conftest.$ac_ext <<_ACEOF
21329 /* end confdefs.h. */
21330
21331
21332 #include <linux/blkdev.h>
21333
21334 int
21335 main (void)
21336 {
21337
21338 struct request *req = NULL;
21339 (void) blk_rq_sectors(req);
21340
21341 ;
21342 return 0;
21343 }
21344
21345 _ACEOF
21346
21347
21348 rm -Rf build && mkdir -p build
21349 echo "obj-m := conftest.o" >build/Makefile
21350 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21353 ac_status=$?
21354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21358 ac_status=$?
21359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; }; then
21361
21362 { $as_echo "$as_me:$LINENO: result: yes" >&5
21363 $as_echo "yes" >&6; }
21364
21365 cat >>confdefs.h <<\_ACEOF
21366 #define HAVE_BLK_RQ_SECTORS 1
21367 _ACEOF
21368
21369
21370 else
21371 $as_echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374 { $as_echo "$as_me:$LINENO: result: no" >&5
21375 $as_echo "no" >&6; }
21376
21377
21378
21379 fi
21380
21381 rm -Rf build
21382
21383
21384 EXTRA_KCFLAGS="$tmp_flags"
21385
21386
21387 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
21388 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
21389 tmp_flags="$EXTRA_KCFLAGS"
21390 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21391
21392
21393 cat confdefs.h - <<_ACEOF >conftest.c
21394 /* confdefs.h. */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h. */
21399
21400
21401 #include <linux/blkdev.h>
21402
21403 int
21404 main (void)
21405 {
21406
21407 struct gendisk *disk = NULL;
21408 (void) get_disk_ro(disk);
21409
21410 ;
21411 return 0;
21412 }
21413
21414 _ACEOF
21415
21416
21417 rm -Rf build && mkdir -p build
21418 echo "obj-m := conftest.o" >build/Makefile
21419 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421 (eval $ac_try) 2>&5
21422 ac_status=$?
21423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; }; then
21430
21431 { $as_echo "$as_me:$LINENO: result: yes" >&5
21432 $as_echo "yes" >&6; }
21433
21434 cat >>confdefs.h <<\_ACEOF
21435 #define HAVE_GET_DISK_RO 1
21436 _ACEOF
21437
21438
21439 else
21440 $as_echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21442
21443 { $as_echo "$as_me:$LINENO: result: no" >&5
21444 $as_echo "no" >&6; }
21445
21446
21447
21448 fi
21449
21450 rm -Rf build
21451
21452
21453 EXTRA_KCFLAGS="$tmp_flags"
21454
21455
21456 { $as_echo "$as_me:$LINENO: checking whether symbol get_gendisk is exported" >&5
21457 $as_echo_n "checking whether symbol get_gendisk is exported... " >&6; }
21458 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
21459 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21460 rc=$?
21461 if test $rc -ne 0; then
21462
21463 export=0
21464 for file in block/genhd.c; do
21465 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" "$LINUX/$file" 2>/dev/null
21466 rc=$?
21467 if test $rc -eq 0; then
21468
21469 export=1
21470 break;
21471
21472 fi
21473
21474 done
21475 if test $export -eq 0; then
21476
21477 { $as_echo "$as_me:$LINENO: result: no" >&5
21478 $as_echo "no" >&6; }
21479
21480
21481 else
21482
21483 { $as_echo "$as_me:$LINENO: result: yes" >&5
21484 $as_echo "yes" >&6; }
21485
21486 cat >>confdefs.h <<\_ACEOF
21487 #define HAVE_GET_GENDISK 1
21488 _ACEOF
21489
21490
21491 fi
21492
21493
21494 else
21495
21496 { $as_echo "$as_me:$LINENO: result: yes" >&5
21497 $as_echo "yes" >&6; }
21498
21499 cat >>confdefs.h <<\_ACEOF
21500 #define HAVE_GET_GENDISK 1
21501 _ACEOF
21502
21503
21504 fi
21505
21506
21507
21508
21509 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
21510 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
21511 tmp_flags="$EXTRA_KCFLAGS"
21512 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21513
21514
21515 cat confdefs.h - <<_ACEOF >conftest.c
21516 /* confdefs.h. */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21521
21522
21523 #include <linux/blkdev.h>
21524
21525 int
21526 main (void)
21527 {
21528
21529 struct request *req = NULL;
21530 (void) rq_is_sync(req);
21531
21532 ;
21533 return 0;
21534 }
21535
21536 _ACEOF
21537
21538
21539 rm -Rf build && mkdir -p build
21540 echo "obj-m := conftest.o" >build/Makefile
21541 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21544 ac_status=$?
21545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21548 (eval $ac_try) 2>&5
21549 ac_status=$?
21550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); }; }; then
21552
21553 { $as_echo "$as_me:$LINENO: result: yes" >&5
21554 $as_echo "yes" >&6; }
21555
21556 cat >>confdefs.h <<\_ACEOF
21557 #define HAVE_RQ_IS_SYNC 1
21558 _ACEOF
21559
21560
21561 else
21562 $as_echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21564
21565 { $as_echo "$as_me:$LINENO: result: no" >&5
21566 $as_echo "no" >&6; }
21567
21568
21569
21570 fi
21571
21572 rm -Rf build
21573
21574
21575 EXTRA_KCFLAGS="$tmp_flags"
21576
21577
21578 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
21579 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
21580 tmp_flags="$EXTRA_KCFLAGS"
21581 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21582
21583
21584 cat confdefs.h - <<_ACEOF >conftest.c
21585 /* confdefs.h. */
21586 _ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21590
21591
21592 #include <linux/blkdev.h>
21593
21594 int
21595 main (void)
21596 {
21597
21598 struct bio_vec *bv;
21599 struct req_iterator iter;
21600 struct request *req = NULL;
21601 rq_for_each_segment(bv, req, iter) { }
21602
21603 ;
21604 return 0;
21605 }
21606
21607 _ACEOF
21608
21609
21610 rm -Rf build && mkdir -p build
21611 echo "obj-m := conftest.o" >build/Makefile
21612 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614 (eval $ac_try) 2>&5
21615 ac_status=$?
21616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619 (eval $ac_try) 2>&5
21620 ac_status=$?
21621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); }; }; then
21623
21624 { $as_echo "$as_me:$LINENO: result: yes" >&5
21625 $as_echo "yes" >&6; }
21626
21627 cat >>confdefs.h <<\_ACEOF
21628 #define HAVE_RQ_FOR_EACH_SEGMENT 1
21629 _ACEOF
21630
21631
21632 else
21633 $as_echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.$ac_ext >&5
21635
21636 { $as_echo "$as_me:$LINENO: result: no" >&5
21637 $as_echo "no" >&6; }
21638
21639
21640
21641 fi
21642
21643 rm -Rf build
21644
21645
21646 EXTRA_KCFLAGS="$tmp_flags"
21647
21648 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
21649 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
21650
21651
21652 cat confdefs.h - <<_ACEOF >conftest.c
21653 /* confdefs.h. */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21658
21659
21660 #include <linux/fs.h>
21661 #include <linux/xattr.h>
21662
21663 const struct xattr_handler xattr_test_handler = {
21664 .prefix = "test",
21665 .get = NULL,
21666 .set = NULL,
21667 };
21668
21669 const struct xattr_handler *xattr_handlers[] = {
21670 &xattr_test_handler,
21671 };
21672
21673 int
21674 main (void)
21675 {
21676
21677 struct super_block sb __attribute__ ((unused));
21678
21679 sb.s_xattr = xattr_handlers;
21680
21681 ;
21682 return 0;
21683 }
21684
21685 _ACEOF
21686
21687
21688 rm -Rf build && mkdir -p build
21689 echo "obj-m := conftest.o" >build/Makefile
21690 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21692 (eval $ac_try) 2>&5
21693 ac_status=$?
21694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697 (eval $ac_try) 2>&5
21698 ac_status=$?
21699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; }; then
21701
21702 { $as_echo "$as_me:$LINENO: result: yes" >&5
21703 $as_echo "yes" >&6; }
21704
21705 cat >>confdefs.h <<\_ACEOF
21706 #define HAVE_CONST_XATTR_HANDLER 1
21707 _ACEOF
21708
21709
21710 else
21711 $as_echo "$as_me: failed program was:" >&5
21712 sed 's/^/| /' conftest.$ac_ext >&5
21713
21714 { $as_echo "$as_me:$LINENO: result: no" >&5
21715 $as_echo "no" >&6; }
21716
21717
21718
21719 fi
21720
21721 rm -Rf build
21722
21723
21724
21725
21726 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
21727 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
21728
21729
21730 cat confdefs.h - <<_ACEOF >conftest.c
21731 /* confdefs.h. */
21732 _ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h. */
21736
21737
21738 #include <linux/xattr.h>
21739
21740 int
21741 main (void)
21742 {
21743
21744 int (*get)(struct dentry *dentry, const char *name,
21745 void *buffer, size_t size, int handler_flags) = NULL;
21746 struct xattr_handler xops __attribute__ ((unused));
21747
21748 xops.get = get;
21749
21750 ;
21751 return 0;
21752 }
21753
21754 _ACEOF
21755
21756
21757 rm -Rf build && mkdir -p build
21758 echo "obj-m := conftest.o" >build/Makefile
21759 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21767 ac_status=$?
21768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; }; then
21770
21771 { $as_echo "$as_me:$LINENO: result: yes" >&5
21772 $as_echo "yes" >&6; }
21773
21774 cat >>confdefs.h <<\_ACEOF
21775 #define HAVE_DENTRY_XATTR_GET 1
21776 _ACEOF
21777
21778
21779 else
21780 $as_echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21782
21783 { $as_echo "$as_me:$LINENO: result: no" >&5
21784 $as_echo "no" >&6; }
21785
21786
21787
21788 fi
21789
21790 rm -Rf build
21791
21792
21793
21794
21795 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
21796 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
21797
21798
21799 cat confdefs.h - <<_ACEOF >conftest.c
21800 /* confdefs.h. */
21801 _ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
21805
21806
21807 #include <linux/xattr.h>
21808
21809 int
21810 main (void)
21811 {
21812
21813 int (*set)(struct dentry *dentry, const char *name,
21814 const void *buffer, size_t size, int flags,
21815 int handler_flags) = NULL;
21816 struct xattr_handler xops __attribute__ ((unused));
21817
21818 xops.set = set;
21819
21820 ;
21821 return 0;
21822 }
21823
21824 _ACEOF
21825
21826
21827 rm -Rf build && mkdir -p build
21828 echo "obj-m := conftest.o" >build/Makefile
21829 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831 (eval $ac_try) 2>&5
21832 ac_status=$?
21833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21836 (eval $ac_try) 2>&5
21837 ac_status=$?
21838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); }; }; then
21840
21841 { $as_echo "$as_me:$LINENO: result: yes" >&5
21842 $as_echo "yes" >&6; }
21843
21844 cat >>confdefs.h <<\_ACEOF
21845 #define HAVE_DENTRY_XATTR_SET 1
21846 _ACEOF
21847
21848
21849 else
21850 $as_echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21852
21853 { $as_echo "$as_me:$LINENO: result: no" >&5
21854 $as_echo "no" >&6; }
21855
21856
21857
21858 fi
21859
21860 rm -Rf build
21861
21862
21863
21864
21865 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
21866 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
21867
21868
21869
21870 cat confdefs.h - <<_ACEOF >conftest.c
21871 /* confdefs.h. */
21872 _ACEOF
21873 cat confdefs.h >>conftest.$ac_ext
21874 cat >>conftest.$ac_ext <<_ACEOF
21875 /* end confdefs.h. */
21876
21877
21878 #include <linux/fs.h>
21879
21880 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
21881 static struct super_operations sops __attribute__ ((unused)) = {
21882 .show_options = show_options,
21883 };
21884
21885 int
21886 main (void)
21887 {
21888
21889
21890 ;
21891 return 0;
21892 }
21893
21894 _ACEOF
21895
21896
21897 rm -Rf build && mkdir -p build
21898 echo "obj-m := conftest.o" >build/Makefile
21899 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21901 (eval $ac_try) 2>&5
21902 ac_status=$?
21903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21906 (eval $ac_try) 2>&5
21907 ac_status=$?
21908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); }; }; then
21910
21911 { $as_echo "$as_me:$LINENO: result: yes" >&5
21912 $as_echo "yes" >&6; }
21913
21914 cat >>confdefs.h <<\_ACEOF
21915 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
21916 _ACEOF
21917
21918
21919 else
21920 $as_echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21922
21923 { $as_echo "$as_me:$LINENO: result: no" >&5
21924 $as_echo "no" >&6; }
21925
21926
21927
21928 fi
21929
21930 rm -Rf build
21931
21932
21933
21934
21935 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
21936 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
21937
21938
21939
21940 cat confdefs.h - <<_ACEOF >conftest.c
21941 /* confdefs.h. */
21942 _ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h. */
21946
21947
21948 #include <linux/fs.h>
21949
21950 int
21951 main (void)
21952 {
21953
21954 int (*fsync) (struct file *, struct dentry *, int) = NULL;
21955 struct file_operations fops __attribute__ ((unused));
21956
21957 fops.fsync = fsync;
21958
21959 ;
21960 return 0;
21961 }
21962
21963 _ACEOF
21964
21965
21966 rm -Rf build && mkdir -p build
21967 echo "obj-m := conftest.o" >build/Makefile
21968 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21976 ac_status=$?
21977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; }; then
21979
21980 { $as_echo "$as_me:$LINENO: result: dentry" >&5
21981 $as_echo "dentry" >&6; }
21982
21983 cat >>confdefs.h <<\_ACEOF
21984 #define HAVE_FSYNC_WITH_DENTRY 1
21985 _ACEOF
21986
21987
21988 else
21989 $as_echo "$as_me: failed program was:" >&5
21990 sed 's/^/| /' conftest.$ac_ext >&5
21991
21992
21993
21994
21995 fi
21996
21997 rm -Rf build
21998
21999
22000
22001
22002
22003
22004 cat confdefs.h - <<_ACEOF >conftest.c
22005 /* confdefs.h. */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010
22011
22012 #include <linux/fs.h>
22013
22014 int
22015 main (void)
22016 {
22017
22018 int (*fsync) (struct file *, int) = NULL;
22019 struct file_operations fops __attribute__ ((unused));
22020
22021 fops.fsync = fsync;
22022
22023 ;
22024 return 0;
22025 }
22026
22027 _ACEOF
22028
22029
22030 rm -Rf build && mkdir -p build
22031 echo "obj-m := conftest.o" >build/Makefile
22032 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034 (eval $ac_try) 2>&5
22035 ac_status=$?
22036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22039 (eval $ac_try) 2>&5
22040 ac_status=$?
22041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); }; }; then
22043
22044 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
22045 $as_echo "no dentry" >&6; }
22046
22047 cat >>confdefs.h <<\_ACEOF
22048 #define HAVE_FSYNC_WITHOUT_DENTRY 1
22049 _ACEOF
22050
22051
22052 else
22053 $as_echo "$as_me: failed program was:" >&5
22054 sed 's/^/| /' conftest.$ac_ext >&5
22055
22056
22057
22058
22059 fi
22060
22061 rm -Rf build
22062
22063
22064
22065
22066
22067
22068 cat confdefs.h - <<_ACEOF >conftest.c
22069 /* confdefs.h. */
22070 _ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h. */
22074
22075
22076 #include <linux/fs.h>
22077
22078 int
22079 main (void)
22080 {
22081
22082 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
22083 struct file_operations fops __attribute__ ((unused));
22084
22085 fops.fsync = fsync;
22086
22087 ;
22088 return 0;
22089 }
22090
22091 _ACEOF
22092
22093
22094 rm -Rf build && mkdir -p build
22095 echo "obj-m := conftest.o" >build/Makefile
22096 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22098 (eval $ac_try) 2>&5
22099 ac_status=$?
22100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22104 ac_status=$?
22105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; }; then
22107
22108 { $as_echo "$as_me:$LINENO: result: range" >&5
22109 $as_echo "range" >&6; }
22110
22111 cat >>confdefs.h <<\_ACEOF
22112 #define HAVE_FSYNC_RANGE 1
22113 _ACEOF
22114
22115
22116 else
22117 $as_echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22119
22120
22121
22122
22123 fi
22124
22125 rm -Rf build
22126
22127
22128
22129
22130
22131
22132 cat confdefs.h - <<_ACEOF >conftest.c
22133 /* confdefs.h. */
22134 _ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22138
22139
22140 #include <linux/fs.h>
22141
22142 int
22143 main (void)
22144 {
22145
22146 int (*fsync) (struct file *, struct dentry *, int) = NULL;
22147 file_operations_no_const fops __attribute__ ((unused));
22148
22149 fops.fsync = fsync;
22150
22151 ;
22152 return 0;
22153 }
22154
22155 _ACEOF
22156
22157
22158 rm -Rf build && mkdir -p build
22159 echo "obj-m := conftest.o" >build/Makefile
22160 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22163 ac_status=$?
22164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167 (eval $ac_try) 2>&5
22168 ac_status=$?
22169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); }; }; then
22171
22172 { $as_echo "$as_me:$LINENO: result: dentry" >&5
22173 $as_echo "dentry" >&6; }
22174
22175 cat >>confdefs.h <<\_ACEOF
22176 #define HAVE_FSYNC_WITH_DENTRY 1
22177 _ACEOF
22178
22179
22180 else
22181 $as_echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22183
22184
22185
22186
22187 fi
22188
22189 rm -Rf build
22190
22191
22192
22193
22194
22195
22196 cat confdefs.h - <<_ACEOF >conftest.c
22197 /* confdefs.h. */
22198 _ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h. */
22202
22203
22204 #include <linux/fs.h>
22205
22206 int
22207 main (void)
22208 {
22209
22210 int (*fsync) (struct file *, int) = NULL;
22211 file_operations_no_const fops __attribute__ ((unused));
22212
22213 fops.fsync = fsync;
22214
22215 ;
22216 return 0;
22217 }
22218
22219 _ACEOF
22220
22221
22222 rm -Rf build && mkdir -p build
22223 echo "obj-m := conftest.o" >build/Makefile
22224 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226 (eval $ac_try) 2>&5
22227 ac_status=$?
22228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231 (eval $ac_try) 2>&5
22232 ac_status=$?
22233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); }; }; then
22235
22236 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
22237 $as_echo "no dentry" >&6; }
22238
22239 cat >>confdefs.h <<\_ACEOF
22240 #define HAVE_FSYNC_WITHOUT_DENTRY 1
22241 _ACEOF
22242
22243
22244 else
22245 $as_echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22247
22248
22249
22250
22251 fi
22252
22253 rm -Rf build
22254
22255
22256
22257
22258
22259
22260 cat confdefs.h - <<_ACEOF >conftest.c
22261 /* confdefs.h. */
22262 _ACEOF
22263 cat confdefs.h >>conftest.$ac_ext
22264 cat >>conftest.$ac_ext <<_ACEOF
22265 /* end confdefs.h. */
22266
22267
22268 #include <linux/fs.h>
22269
22270 int
22271 main (void)
22272 {
22273
22274 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
22275 file_operations_no_const fops __attribute__ ((unused));
22276
22277 fops.fsync = fsync;
22278
22279 ;
22280 return 0;
22281 }
22282
22283 _ACEOF
22284
22285
22286 rm -Rf build && mkdir -p build
22287 echo "obj-m := conftest.o" >build/Makefile
22288 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290 (eval $ac_try) 2>&5
22291 ac_status=$?
22292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22296 ac_status=$?
22297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }; then
22299
22300 { $as_echo "$as_me:$LINENO: result: range" >&5
22301 $as_echo "range" >&6; }
22302
22303 cat >>confdefs.h <<\_ACEOF
22304 #define HAVE_FSYNC_RANGE 1
22305 _ACEOF
22306
22307
22308 else
22309 $as_echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22311
22312
22313
22314
22315 fi
22316
22317 rm -Rf build
22318
22319
22320
22321
22322
22323 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
22324 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
22325
22326
22327 cat confdefs.h - <<_ACEOF >conftest.c
22328 /* confdefs.h. */
22329 _ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h. */
22333
22334
22335 #include <linux/fs.h>
22336 void evict_inode (struct inode * t) { return; }
22337 static struct super_operations sops __attribute__ ((unused)) = {
22338 .evict_inode = evict_inode,
22339 };
22340
22341 int
22342 main (void)
22343 {
22344
22345
22346 ;
22347 return 0;
22348 }
22349
22350 _ACEOF
22351
22352
22353 rm -Rf build && mkdir -p build
22354 echo "obj-m := conftest.o" >build/Makefile
22355 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357 (eval $ac_try) 2>&5
22358 ac_status=$?
22359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22363 ac_status=$?
22364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; }; then
22366
22367 { $as_echo "$as_me:$LINENO: result: yes" >&5
22368 $as_echo "yes" >&6; }
22369
22370 cat >>confdefs.h <<\_ACEOF
22371 #define HAVE_EVICT_INODE 1
22372 _ACEOF
22373
22374
22375 else
22376 $as_echo "$as_me: failed program was:" >&5
22377 sed 's/^/| /' conftest.$ac_ext >&5
22378
22379 { $as_echo "$as_me:$LINENO: result: no" >&5
22380 $as_echo "no" >&6; }
22381
22382
22383
22384 fi
22385
22386 rm -Rf build
22387
22388
22389
22390
22391 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
22392 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
22393
22394
22395 cat confdefs.h - <<_ACEOF >conftest.c
22396 /* confdefs.h. */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22401
22402
22403 #include <linux/fs.h>
22404
22405 int
22406 main (void)
22407 {
22408
22409 int (*nr_cached_objects)(struct super_block *)
22410 __attribute__ ((unused)) = NULL;
22411 struct super_operations sops __attribute__ ((unused)) = {
22412 .nr_cached_objects = nr_cached_objects,
22413 };
22414
22415 ;
22416 return 0;
22417 }
22418
22419 _ACEOF
22420
22421
22422 rm -Rf build && mkdir -p build
22423 echo "obj-m := conftest.o" >build/Makefile
22424 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426 (eval $ac_try) 2>&5
22427 ac_status=$?
22428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22432 ac_status=$?
22433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }; }; then
22435
22436 { $as_echo "$as_me:$LINENO: result: yes" >&5
22437 $as_echo "yes" >&6; }
22438
22439 cat >>confdefs.h <<\_ACEOF
22440 #define HAVE_NR_CACHED_OBJECTS 1
22441 _ACEOF
22442
22443
22444 else
22445 $as_echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22447
22448 { $as_echo "$as_me:$LINENO: result: no" >&5
22449 $as_echo "no" >&6; }
22450
22451
22452
22453 fi
22454
22455 rm -Rf build
22456
22457
22458
22459
22460 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
22461 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
22462
22463
22464 cat confdefs.h - <<_ACEOF >conftest.c
22465 /* confdefs.h. */
22466 _ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22470
22471
22472 #include <linux/fs.h>
22473
22474 int
22475 main (void)
22476 {
22477
22478 void (*free_cached_objects)(struct super_block *, int)
22479 __attribute__ ((unused)) = NULL;
22480 struct super_operations sops __attribute__ ((unused)) = {
22481 .free_cached_objects = free_cached_objects,
22482 };
22483
22484 ;
22485 return 0;
22486 }
22487
22488 _ACEOF
22489
22490
22491 rm -Rf build && mkdir -p build
22492 echo "obj-m := conftest.o" >build/Makefile
22493 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495 (eval $ac_try) 2>&5
22496 ac_status=$?
22497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22500 (eval $ac_try) 2>&5
22501 ac_status=$?
22502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; }; then
22504
22505 { $as_echo "$as_me:$LINENO: result: yes" >&5
22506 $as_echo "yes" >&6; }
22507
22508 cat >>confdefs.h <<\_ACEOF
22509 #define HAVE_FREE_CACHED_OBJECTS 1
22510 _ACEOF
22511
22512
22513 else
22514 $as_echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22516
22517 { $as_echo "$as_me:$LINENO: result: no" >&5
22518 $as_echo "no" >&6; }
22519
22520
22521
22522 fi
22523
22524 rm -Rf build
22525
22526
22527
22528
22529
22530 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
22531 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
22532
22533
22534 cat confdefs.h - <<_ACEOF >conftest.c
22535 /* confdefs.h. */
22536 _ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540
22541
22542 #include <linux/fs.h>
22543
22544 int
22545 main (void)
22546 {
22547
22548 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
22549 struct file_operations fops __attribute__ ((unused)) = {
22550 .fallocate = fallocate,
22551 };
22552
22553 ;
22554 return 0;
22555 }
22556
22557 _ACEOF
22558
22559
22560 rm -Rf build && mkdir -p build
22561 echo "obj-m := conftest.o" >build/Makefile
22562 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22565 ac_status=$?
22566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569 (eval $ac_try) 2>&5
22570 ac_status=$?
22571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; }; then
22573
22574 { $as_echo "$as_me:$LINENO: result: yes" >&5
22575 $as_echo "yes" >&6; }
22576
22577 cat >>confdefs.h <<\_ACEOF
22578 #define HAVE_FILE_FALLOCATE 1
22579 _ACEOF
22580
22581
22582 else
22583 $as_echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22585
22586 { $as_echo "$as_me:$LINENO: result: no" >&5
22587 $as_echo "no" >&6; }
22588
22589
22590
22591 fi
22592
22593 rm -Rf build
22594
22595
22596
22597
22598 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
22599 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
22600
22601
22602 cat confdefs.h - <<_ACEOF >conftest.c
22603 /* confdefs.h. */
22604 _ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h. */
22608
22609
22610 #include <linux/fs.h>
22611
22612 int
22613 main (void)
22614 {
22615
22616 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
22617 struct inode_operations fops __attribute__ ((unused)) = {
22618 .fallocate = fallocate,
22619 };
22620
22621 ;
22622 return 0;
22623 }
22624
22625 _ACEOF
22626
22627
22628 rm -Rf build && mkdir -p build
22629 echo "obj-m := conftest.o" >build/Makefile
22630 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22632 (eval $ac_try) 2>&5
22633 ac_status=$?
22634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22637 (eval $ac_try) 2>&5
22638 ac_status=$?
22639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); }; }; then
22641
22642 { $as_echo "$as_me:$LINENO: result: yes" >&5
22643 $as_echo "yes" >&6; }
22644
22645 cat >>confdefs.h <<\_ACEOF
22646 #define HAVE_INODE_FALLOCATE 1
22647 _ACEOF
22648
22649
22650 else
22651 $as_echo "$as_me: failed program was:" >&5
22652 sed 's/^/| /' conftest.$ac_ext >&5
22653
22654 { $as_echo "$as_me:$LINENO: result: no" >&5
22655 $as_echo "no" >&6; }
22656
22657
22658
22659 fi
22660
22661 rm -Rf build
22662
22663
22664
22665
22666 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
22667 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
22668
22669
22670 cat confdefs.h - <<_ACEOF >conftest.c
22671 /* confdefs.h. */
22672 _ACEOF
22673 cat confdefs.h >>conftest.$ac_ext
22674 cat >>conftest.$ac_ext <<_ACEOF
22675 /* end confdefs.h. */
22676
22677
22678 #include <linux/fs.h>
22679
22680 int
22681 main (void)
22682 {
22683
22684 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
22685 struct file_operations_no_const fops __attribute__ ((unused)) = {
22686 .fallocate = fallocate,
22687 };
22688
22689 ;
22690 return 0;
22691 }
22692
22693 _ACEOF
22694
22695
22696 rm -Rf build && mkdir -p build
22697 echo "obj-m := conftest.o" >build/Makefile
22698 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22700 (eval $ac_try) 2>&5
22701 ac_status=$?
22702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705 (eval $ac_try) 2>&5
22706 ac_status=$?
22707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); }; }; then
22709
22710 { $as_echo "$as_me:$LINENO: result: yes" >&5
22711 $as_echo "yes" >&6; }
22712
22713 cat >>confdefs.h <<\_ACEOF
22714 #define HAVE_FILE_FALLOCATE 1
22715 _ACEOF
22716
22717
22718 else
22719 $as_echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22721
22722 { $as_echo "$as_me:$LINENO: result: no" >&5
22723 $as_echo "no" >&6; }
22724
22725
22726
22727 fi
22728
22729 rm -Rf build
22730
22731
22732
22733
22734
22735 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
22736 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
22737
22738
22739 cat confdefs.h - <<_ACEOF >conftest.c
22740 /* confdefs.h. */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745
22746
22747 #include <linux/fs.h>
22748
22749 int
22750 main (void)
22751 {
22752
22753 int (*create) (struct inode *, struct dentry *, umode_t,
22754 struct nameidata *) = NULL;
22755 struct inode_operations iops __attribute__ ((unused)) = {
22756 .create = create,
22757 };
22758
22759 ;
22760 return 0;
22761 }
22762
22763 _ACEOF
22764
22765
22766 rm -Rf build && mkdir -p build
22767 echo "obj-m := conftest.o" >build/Makefile
22768 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22770 (eval $ac_try) 2>&5
22771 ac_status=$?
22772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22775 (eval $ac_try) 2>&5
22776 ac_status=$?
22777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); }; }; then
22779
22780 { $as_echo "$as_me:$LINENO: result: yes" >&5
22781 $as_echo "yes" >&6; }
22782
22783 cat >>confdefs.h <<\_ACEOF
22784 #define HAVE_CREATE_UMODE_T 1
22785 _ACEOF
22786
22787
22788 else
22789 $as_echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22791
22792 { $as_echo "$as_me:$LINENO: result: no" >&5
22793 $as_echo "no" >&6; }
22794
22795
22796
22797 fi
22798
22799 rm -Rf build
22800
22801
22802
22803
22804 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
22805 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
22806
22807
22808 cat confdefs.h - <<_ACEOF >conftest.c
22809 /* confdefs.h. */
22810 _ACEOF
22811 cat confdefs.h >>conftest.$ac_ext
22812 cat >>conftest.$ac_ext <<_ACEOF
22813 /* end confdefs.h. */
22814
22815
22816 #include <linux/dcache.h>
22817
22818 int
22819 main (void)
22820 {
22821
22822 struct vfsmount *(*d_automount) (struct path *) = NULL;
22823 struct dentry_operations dops __attribute__ ((unused)) = {
22824 .d_automount = d_automount,
22825 };
22826
22827 ;
22828 return 0;
22829 }
22830
22831 _ACEOF
22832
22833
22834 rm -Rf build && mkdir -p build
22835 echo "obj-m := conftest.o" >build/Makefile
22836 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22838 (eval $ac_try) 2>&5
22839 ac_status=$?
22840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843 (eval $ac_try) 2>&5
22844 ac_status=$?
22845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); }; }; then
22847
22848 { $as_echo "$as_me:$LINENO: result: yes" >&5
22849 $as_echo "yes" >&6; }
22850
22851 cat >>confdefs.h <<\_ACEOF
22852 #define HAVE_AUTOMOUNT 1
22853 _ACEOF
22854
22855
22856 else
22857 $as_echo "$as_me: failed program was:" >&5
22858 sed 's/^/| /' conftest.$ac_ext >&5
22859
22860 { $as_echo "$as_me:$LINENO: result: no" >&5
22861 $as_echo "no" >&6; }
22862
22863
22864
22865 fi
22866
22867 rm -Rf build
22868
22869
22870
22871
22872 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
22873 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
22874
22875
22876 cat confdefs.h - <<_ACEOF >conftest.c
22877 /* confdefs.h. */
22878 _ACEOF
22879 cat confdefs.h >>conftest.$ac_ext
22880 cat >>conftest.$ac_ext <<_ACEOF
22881 /* end confdefs.h. */
22882
22883
22884 #include <linux/exportfs.h>
22885 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
22886 struct inode *parent) { return 0; }
22887 static struct export_operations eops __attribute__ ((unused))={
22888 .encode_fh = encode_fh,
22889 };
22890
22891 int
22892 main (void)
22893 {
22894
22895
22896 ;
22897 return 0;
22898 }
22899
22900 _ACEOF
22901
22902
22903 rm -Rf build && mkdir -p build
22904 echo "obj-m := conftest.o" >build/Makefile
22905 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22907 (eval $ac_try) 2>&5
22908 ac_status=$?
22909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22912 (eval $ac_try) 2>&5
22913 ac_status=$?
22914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); }; }; then
22916
22917 { $as_echo "$as_me:$LINENO: result: yes" >&5
22918 $as_echo "yes" >&6; }
22919
22920 cat >>confdefs.h <<\_ACEOF
22921 #define HAVE_ENCODE_FH_WITH_INODE 1
22922 _ACEOF
22923
22924
22925 else
22926 $as_echo "$as_me: failed program was:" >&5
22927 sed 's/^/| /' conftest.$ac_ext >&5
22928
22929 { $as_echo "$as_me:$LINENO: result: no" >&5
22930 $as_echo "no" >&6; }
22931
22932
22933
22934 fi
22935
22936 rm -Rf build
22937
22938
22939
22940
22941 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
22942 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
22943 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
22944 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22945 rc=$?
22946 if test $rc -ne 0; then
22947
22948 export=0
22949 for file in fs/inode.c; do
22950 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
22951 rc=$?
22952 if test $rc -eq 0; then
22953
22954 export=1
22955 break;
22956
22957 fi
22958
22959 done
22960 if test $export -eq 0; then
22961
22962 { $as_echo "$as_me:$LINENO: result: no" >&5
22963 $as_echo "no" >&6; }
22964
22965
22966 else
22967
22968 { $as_echo "$as_me:$LINENO: result: yes" >&5
22969 $as_echo "yes" >&6; }
22970
22971 cat >>confdefs.h <<\_ACEOF
22972 #define HAVE_INSERT_INODE_LOCKED 1
22973 _ACEOF
22974
22975
22976 fi
22977
22978
22979 else
22980
22981 { $as_echo "$as_me:$LINENO: result: yes" >&5
22982 $as_echo "yes" >&6; }
22983
22984 cat >>confdefs.h <<\_ACEOF
22985 #define HAVE_INSERT_INODE_LOCKED 1
22986 _ACEOF
22987
22988
22989 fi
22990
22991
22992
22993
22994 { $as_echo "$as_me:$LINENO: checking whether symbol d_make_root is exported" >&5
22995 $as_echo_n "checking whether symbol d_make_root is exported... " >&6; }
22996 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
22997 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22998 rc=$?
22999 if test $rc -ne 0; then
23000
23001 export=0
23002 for file in fs/dcache.c; do
23003 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" "$LINUX/$file" 2>/dev/null
23004 rc=$?
23005 if test $rc -eq 0; then
23006
23007 export=1
23008 break;
23009
23010 fi
23011
23012 done
23013 if test $export -eq 0; then
23014
23015 { $as_echo "$as_me:$LINENO: result: no" >&5
23016 $as_echo "no" >&6; }
23017
23018
23019 else
23020
23021 { $as_echo "$as_me:$LINENO: result: yes" >&5
23022 $as_echo "yes" >&6; }
23023
23024 cat >>confdefs.h <<\_ACEOF
23025 #define HAVE_D_MAKE_ROOT 1
23026 _ACEOF
23027
23028
23029 fi
23030
23031
23032 else
23033
23034 { $as_echo "$as_me:$LINENO: result: yes" >&5
23035 $as_echo "yes" >&6; }
23036
23037 cat >>confdefs.h <<\_ACEOF
23038 #define HAVE_D_MAKE_ROOT 1
23039 _ACEOF
23040
23041
23042 fi
23043
23044
23045
23046
23047 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
23048 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
23049 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
23050 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23051 rc=$?
23052 if test $rc -ne 0; then
23053
23054 export=0
23055 for file in fs/dcache.c; do
23056 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
23057 rc=$?
23058 if test $rc -eq 0; then
23059
23060 export=1
23061 break;
23062
23063 fi
23064
23065 done
23066 if test $export -eq 0; then
23067
23068 { $as_echo "$as_me:$LINENO: result: no" >&5
23069 $as_echo "no" >&6; }
23070
23071
23072 else
23073
23074 { $as_echo "$as_me:$LINENO: result: yes" >&5
23075 $as_echo "yes" >&6; }
23076
23077 cat >>confdefs.h <<\_ACEOF
23078 #define HAVE_D_OBTAIN_ALIAS 1
23079 _ACEOF
23080
23081
23082 fi
23083
23084
23085 else
23086
23087 { $as_echo "$as_me:$LINENO: result: yes" >&5
23088 $as_echo "yes" >&6; }
23089
23090 cat >>confdefs.h <<\_ACEOF
23091 #define HAVE_D_OBTAIN_ALIAS 1
23092 _ACEOF
23093
23094
23095 fi
23096
23097
23098
23099
23100 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
23101 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
23102 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
23103 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23104 rc=$?
23105 if test $rc -ne 0; then
23106
23107 export=0
23108 for file in fs/block_dev.c; do
23109 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
23110 rc=$?
23111 if test $rc -eq 0; then
23112
23113 export=1
23114 break;
23115
23116 fi
23117
23118 done
23119 if test $export -eq 0; then
23120
23121 { $as_echo "$as_me:$LINENO: result: no" >&5
23122 $as_echo "no" >&6; }
23123
23124
23125 else
23126
23127 { $as_echo "$as_me:$LINENO: result: yes" >&5
23128 $as_echo "yes" >&6; }
23129
23130 cat >>confdefs.h <<\_ACEOF
23131 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
23132 _ACEOF
23133
23134
23135 fi
23136
23137
23138 else
23139
23140 { $as_echo "$as_me:$LINENO: result: yes" >&5
23141 $as_echo "yes" >&6; }
23142
23143 cat >>confdefs.h <<\_ACEOF
23144 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
23145 _ACEOF
23146
23147
23148 fi
23149
23150
23151
23152
23153 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
23154 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
23155 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
23156 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23157 rc=$?
23158 if test $rc -ne 0; then
23159
23160 export=0
23161 for file in mm/truncate.c; do
23162 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
23163 rc=$?
23164 if test $rc -eq 0; then
23165
23166 export=1
23167 break;
23168
23169 fi
23170
23171 done
23172 if test $export -eq 0; then
23173
23174 { $as_echo "$as_me:$LINENO: result: no" >&5
23175 $as_echo "no" >&6; }
23176
23177
23178 else
23179
23180 { $as_echo "$as_me:$LINENO: result: yes" >&5
23181 $as_echo "yes" >&6; }
23182
23183 cat >>confdefs.h <<\_ACEOF
23184 #define HAVE_TRUNCATE_SETSIZE 1
23185 _ACEOF
23186
23187
23188 fi
23189
23190
23191 else
23192
23193 { $as_echo "$as_me:$LINENO: result: yes" >&5
23194 $as_echo "yes" >&6; }
23195
23196 cat >>confdefs.h <<\_ACEOF
23197 #define HAVE_TRUNCATE_SETSIZE 1
23198 _ACEOF
23199
23200
23201 fi
23202
23203
23204
23205
23206 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
23207 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
23208 tmp_flags="$EXTRA_KCFLAGS"
23209 EXTRA_KCFLAGS="-Werror"
23210
23211
23212 cat confdefs.h - <<_ACEOF >conftest.c
23213 /* confdefs.h. */
23214 _ACEOF
23215 cat confdefs.h >>conftest.$ac_ext
23216 cat >>conftest.$ac_ext <<_ACEOF
23217 /* end confdefs.h. */
23218
23219
23220 #include <linux/security.h>
23221
23222 int
23223 main (void)
23224 {
23225
23226 struct inode *ip __attribute__ ((unused)) = NULL;
23227 struct inode *dip __attribute__ ((unused)) = NULL;
23228 const struct qstr *str __attribute__ ((unused)) = NULL;
23229 char *name __attribute__ ((unused)) = NULL;
23230 void *value __attribute__ ((unused)) = NULL;
23231 size_t len __attribute__ ((unused)) = 0;
23232
23233 security_inode_init_security(ip, dip, str, &name, &value, &len);
23234
23235 ;
23236 return 0;
23237 }
23238
23239 _ACEOF
23240
23241
23242 rm -Rf build && mkdir -p build
23243 echo "obj-m := conftest.o" >build/Makefile
23244 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23246 (eval $ac_try) 2>&5
23247 ac_status=$?
23248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251 (eval $ac_try) 2>&5
23252 ac_status=$?
23253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); }; }; then
23255
23256 { $as_echo "$as_me:$LINENO: result: yes" >&5
23257 $as_echo "yes" >&6; }
23258
23259 cat >>confdefs.h <<\_ACEOF
23260 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
23261 _ACEOF
23262
23263
23264 else
23265 $as_echo "$as_me: failed program was:" >&5
23266 sed 's/^/| /' conftest.$ac_ext >&5
23267
23268 { $as_echo "$as_me:$LINENO: result: no" >&5
23269 $as_echo "no" >&6; }
23270
23271
23272
23273 fi
23274
23275 rm -Rf build
23276
23277
23278 EXTRA_KCFLAGS="$tmp_flags"
23279
23280
23281 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
23282 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
23283 tmp_flags="$EXTRA_KCFLAGS"
23284 EXTRA_KCFLAGS="-Werror"
23285
23286
23287 cat confdefs.h - <<_ACEOF >conftest.c
23288 /* confdefs.h. */
23289 _ACEOF
23290 cat confdefs.h >>conftest.$ac_ext
23291 cat >>conftest.$ac_ext <<_ACEOF
23292 /* end confdefs.h. */
23293
23294
23295 #include <linux/security.h>
23296
23297 int
23298 main (void)
23299 {
23300
23301 struct inode *ip __attribute__ ((unused)) = NULL;
23302 struct inode *dip __attribute__ ((unused)) = NULL;
23303 const struct qstr *str __attribute__ ((unused)) = NULL;
23304 initxattrs func __attribute__ ((unused)) = NULL;
23305
23306 security_inode_init_security(ip, dip, str, func, NULL);
23307
23308 ;
23309 return 0;
23310 }
23311
23312 _ACEOF
23313
23314
23315 rm -Rf build && mkdir -p build
23316 echo "obj-m := conftest.o" >build/Makefile
23317 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23319 (eval $ac_try) 2>&5
23320 ac_status=$?
23321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23325 ac_status=$?
23326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); }; }; then
23328
23329 { $as_echo "$as_me:$LINENO: result: yes" >&5
23330 $as_echo "yes" >&6; }
23331
23332 cat >>confdefs.h <<\_ACEOF
23333 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
23334 _ACEOF
23335
23336
23337 else
23338 $as_echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23340
23341 { $as_echo "$as_me:$LINENO: result: no" >&5
23342 $as_echo "no" >&6; }
23343
23344
23345
23346 fi
23347
23348 rm -Rf build
23349
23350
23351 EXTRA_KCFLAGS="$tmp_flags"
23352
23353
23354 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
23355 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
23356 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
23357 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23358 rc=$?
23359 if test $rc -ne 0; then
23360
23361 export=0
23362 for file in fs/super.c; do
23363 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
23364 rc=$?
23365 if test $rc -eq 0; then
23366
23367 export=1
23368 break;
23369
23370 fi
23371
23372 done
23373 if test $export -eq 0; then
23374
23375 { $as_echo "$as_me:$LINENO: result: no" >&5
23376 $as_echo "no" >&6; }
23377
23378
23379 else
23380
23381 { $as_echo "$as_me:$LINENO: result: yes" >&5
23382 $as_echo "yes" >&6; }
23383
23384 cat >>confdefs.h <<\_ACEOF
23385 #define HAVE_MOUNT_NODEV 1
23386 _ACEOF
23387
23388
23389 fi
23390
23391
23392 else
23393
23394 { $as_echo "$as_me:$LINENO: result: yes" >&5
23395 $as_echo "yes" >&6; }
23396
23397 cat >>confdefs.h <<\_ACEOF
23398 #define HAVE_MOUNT_NODEV 1
23399 _ACEOF
23400
23401
23402 fi
23403
23404
23405
23406
23407 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
23408 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
23409
23410
23411 cat confdefs.h - <<_ACEOF >conftest.c
23412 /* confdefs.h. */
23413 _ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h. */
23417
23418
23419 #include <linux/fs.h>
23420
23421 int
23422 main (void)
23423 {
23424
23425 int (*shrink)(struct shrinker *, struct shrink_control *sc)
23426 __attribute__ ((unused)) = NULL;
23427 struct super_block sb __attribute__ ((unused)) = {
23428 .s_shrink.shrink = shrink,
23429 .s_shrink.seeks = DEFAULT_SEEKS,
23430 .s_shrink.batch = 0,
23431 };
23432
23433 ;
23434 return 0;
23435 }
23436
23437 _ACEOF
23438
23439
23440 rm -Rf build && mkdir -p build
23441 echo "obj-m := conftest.o" >build/Makefile
23442 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444 (eval $ac_try) 2>&5
23445 ac_status=$?
23446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23449 (eval $ac_try) 2>&5
23450 ac_status=$?
23451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); }; }; then
23453
23454 { $as_echo "$as_me:$LINENO: result: yes" >&5
23455 $as_echo "yes" >&6; }
23456
23457 cat >>confdefs.h <<\_ACEOF
23458 #define HAVE_SHRINK 1
23459 _ACEOF
23460
23461
23462
23463 else
23464 $as_echo "$as_me: failed program was:" >&5
23465 sed 's/^/| /' conftest.$ac_ext >&5
23466
23467 { $as_echo "$as_me:$LINENO: result: no" >&5
23468 $as_echo "no" >&6; }
23469
23470
23471
23472 fi
23473
23474 rm -Rf build
23475
23476
23477
23478
23479 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
23480 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
23481
23482
23483 cat confdefs.h - <<_ACEOF >conftest.c
23484 /* confdefs.h. */
23485 _ACEOF
23486 cat confdefs.h >>conftest.$ac_ext
23487 cat >>conftest.$ac_ext <<_ACEOF
23488 /* end confdefs.h. */
23489
23490
23491 #include <linux/fs.h>
23492
23493 int
23494 main (void)
23495 {
23496
23497 struct super_block sb __attribute__ ((unused));
23498 sb.s_bdi = NULL;
23499
23500 ;
23501 return 0;
23502 }
23503
23504 _ACEOF
23505
23506
23507 rm -Rf build && mkdir -p build
23508 echo "obj-m := conftest.o" >build/Makefile
23509 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511 (eval $ac_try) 2>&5
23512 ac_status=$?
23513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516 (eval $ac_try) 2>&5
23517 ac_status=$?
23518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); }; }; then
23520
23521 { $as_echo "$as_me:$LINENO: result: yes" >&5
23522 $as_echo "yes" >&6; }
23523
23524 cat >>confdefs.h <<\_ACEOF
23525 #define HAVE_BDI 1
23526 _ACEOF
23527
23528
23529 else
23530 $as_echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23532
23533 { $as_echo "$as_me:$LINENO: result: no" >&5
23534 $as_echo "no" >&6; }
23535
23536
23537
23538 fi
23539
23540 rm -Rf build
23541
23542
23543
23544
23545 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
23546 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
23547 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23548 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23549 rc=$?
23550 if test $rc -ne 0; then
23551
23552 export=0
23553 for file in mm/backing-dev.c; do
23554 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
23555 rc=$?
23556 if test $rc -eq 0; then
23557
23558 export=1
23559 break;
23560
23561 fi
23562
23563 done
23564 if test $export -eq 0; then
23565
23566 { $as_echo "$as_me:$LINENO: result: no" >&5
23567 $as_echo "no" >&6; }
23568
23569
23570 else
23571
23572 { $as_echo "$as_me:$LINENO: result: yes" >&5
23573 $as_echo "yes" >&6; }
23574
23575 cat >>confdefs.h <<\_ACEOF
23576 #define HAVE_BDI_SETUP_AND_REGISTER 1
23577 _ACEOF
23578
23579
23580 fi
23581
23582
23583 else
23584
23585 { $as_echo "$as_me:$LINENO: result: yes" >&5
23586 $as_echo "yes" >&6; }
23587
23588 cat >>confdefs.h <<\_ACEOF
23589 #define HAVE_BDI_SETUP_AND_REGISTER 1
23590 _ACEOF
23591
23592
23593 fi
23594
23595
23596
23597
23598 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
23599 $as_echo_n "checking whether set_nlink() is available... " >&6; }
23600
23601
23602 cat confdefs.h - <<_ACEOF >conftest.c
23603 /* confdefs.h. */
23604 _ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h. */
23608
23609
23610 #include <linux/fs.h>
23611
23612 int
23613 main (void)
23614 {
23615
23616 struct inode node;
23617 unsigned int link = 0;
23618 (void) set_nlink(&node, link);
23619
23620 ;
23621 return 0;
23622 }
23623
23624 _ACEOF
23625
23626
23627 rm -Rf build && mkdir -p build
23628 echo "obj-m := conftest.o" >build/Makefile
23629 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23631 (eval $ac_try) 2>&5
23632 ac_status=$?
23633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23637 ac_status=$?
23638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; }; then
23640
23641 { $as_echo "$as_me:$LINENO: result: yes" >&5
23642 $as_echo "yes" >&6; }
23643
23644 cat >>confdefs.h <<\_ACEOF
23645 #define HAVE_SET_NLINK 1
23646 _ACEOF
23647
23648
23649 else
23650 $as_echo "$as_me: failed program was:" >&5
23651 sed 's/^/| /' conftest.$ac_ext >&5
23652
23653 { $as_echo "$as_me:$LINENO: result: no" >&5
23654 $as_echo "no" >&6; }
23655
23656
23657
23658 fi
23659
23660 rm -Rf build
23661
23662
23663
23664
23665 if test "$LINUX_OBJ" != "$LINUX"; then
23666
23667 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
23668
23669 fi
23670
23671
23672
23673
23674 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
23675 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
23676 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
23677
23678
23679
23680
23681
23682
23683 # Check whether --with-udevdir was given.
23684 if test "${with_udevdir+set}" = set; then
23685 withval=$with_udevdir; udevdir=$withval
23686 else
23687 udevdir='${exec_prefix}/lib/udev'
23688 fi
23689
23690
23691
23692 # Check whether --with-udevruledir was given.
23693 if test "${with_udevruledir+set}" = set; then
23694 withval=$with_udevruledir; udevruledir=$withval
23695 else
23696 udevruledir='${udevdir}/rules.d'
23697 fi
23698
23699
23700
23701
23702
23703
23704 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
23705 $as_echo_n "checking for target asm dir... " >&6; }
23706 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
23707
23708 case $TARGET_ARCH in
23709 i386|x86_64)
23710 TARGET_ASM_DIR=asm-${TARGET_ARCH}
23711 ;;
23712 *)
23713 TARGET_ASM_DIR=asm-generic
23714 ;;
23715 esac
23716
23717
23718 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
23719 $as_echo "$TARGET_ASM_DIR" >&6; }
23720
23721
23722 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
23723 $as_echo_n "checking for ioctl()... " >&6; }
23724 cat >conftest.$ac_ext <<_ACEOF
23725 /* confdefs.h. */
23726 _ACEOF
23727 cat confdefs.h >>conftest.$ac_ext
23728 cat >>conftest.$ac_ext <<_ACEOF
23729 /* end confdefs.h. */
23730 #include <unistd.h>
23731
23732 _ACEOF
23733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23734 $EGREP "ioctl" >/dev/null 2>&1; then
23735 is_unistd=yes
23736 else
23737 is_unistd=no
23738 fi
23739 rm -f conftest*
23740
23741 cat >conftest.$ac_ext <<_ACEOF
23742 /* confdefs.h. */
23743 _ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h. */
23747 #include <sys/ioctl.h>
23748
23749 _ACEOF
23750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23751 $EGREP "ioctl" >/dev/null 2>&1; then
23752 is_sys_ioctl=yes
23753 else
23754 is_sys_ioctl=no
23755 fi
23756 rm -f conftest*
23757
23758 cat >conftest.$ac_ext <<_ACEOF
23759 /* confdefs.h. */
23760 _ACEOF
23761 cat confdefs.h >>conftest.$ac_ext
23762 cat >>conftest.$ac_ext <<_ACEOF
23763 /* end confdefs.h. */
23764 #include <stropts.h>
23765
23766 _ACEOF
23767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23768 $EGREP "ioctl" >/dev/null 2>&1; then
23769 is_stropts=yes
23770 else
23771 is_stropts=no
23772 fi
23773 rm -f conftest*
23774
23775
23776 if test $is_unistd = yes; then
23777 result=unistd.h
23778
23779 cat >>confdefs.h <<\_ACEOF
23780 #define HAVE_IOCTL_IN_UNISTD_H 1
23781 _ACEOF
23782
23783 else
23784
23785 if test $is_sys_ioctl = yes; then
23786 result=sys/ioctl.h
23787
23788 cat >>confdefs.h <<\_ACEOF
23789 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
23790 _ACEOF
23791
23792 elif test $is_stropts = yes; then
23793
23794 cat >>confdefs.h <<\_ACEOF
23795 #define HAVE_IOCTL_IN_STROPTS_H 1
23796 _ACEOF
23797
23798 else
23799 result=no
23800 fi
23801 fi
23802
23803 if test $result = no; then
23804 { $as_echo "$as_me:$LINENO: result: no" >&5
23805 $as_echo "no" >&6; }
23806 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
23807 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
23808 { (exit 1); exit 1; }; }
23809 else
23810 { $as_echo "$as_me:$LINENO: result: yes" >&5
23811 $as_echo "yes" >&6; }
23812 fi
23813
23814
23815 ZLIB=
23816
23817 if test "${ac_cv_header_zlib_h+set}" = set; then
23818 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
23819 $as_echo_n "checking for zlib.h... " >&6; }
23820 if test "${ac_cv_header_zlib_h+set}" = set; then
23821 $as_echo_n "(cached) " >&6
23822 fi
23823 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23824 $as_echo "$ac_cv_header_zlib_h" >&6; }
23825 else
23826 # Is the header compilable?
23827 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
23828 $as_echo_n "checking zlib.h usability... " >&6; }
23829 cat >conftest.$ac_ext <<_ACEOF
23830 /* confdefs.h. */
23831 _ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h. */
23835 $ac_includes_default
23836 #include <zlib.h>
23837 _ACEOF
23838 rm -f conftest.$ac_objext
23839 if { (ac_try="$ac_compile"
23840 case "(($ac_try" in
23841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842 *) ac_try_echo=$ac_try;;
23843 esac
23844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23845 $as_echo "$ac_try_echo") >&5
23846 (eval "$ac_compile") 2>conftest.er1
23847 ac_status=$?
23848 grep -v '^ *+' conftest.er1 >conftest.err
23849 rm -f conftest.er1
23850 cat conftest.err >&5
23851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); } && {
23853 test -z "$ac_c_werror_flag" ||
23854 test ! -s conftest.err
23855 } && test -s conftest.$ac_objext; then
23856 ac_header_compiler=yes
23857 else
23858 $as_echo "$as_me: failed program was:" >&5
23859 sed 's/^/| /' conftest.$ac_ext >&5
23860
23861 ac_header_compiler=no
23862 fi
23863
23864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23865 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23866 $as_echo "$ac_header_compiler" >&6; }
23867
23868 # Is the header present?
23869 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
23870 $as_echo_n "checking zlib.h presence... " >&6; }
23871 cat >conftest.$ac_ext <<_ACEOF
23872 /* confdefs.h. */
23873 _ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h. */
23877 #include <zlib.h>
23878 _ACEOF
23879 if { (ac_try="$ac_cpp conftest.$ac_ext"
23880 case "(($ac_try" in
23881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882 *) ac_try_echo=$ac_try;;
23883 esac
23884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23885 $as_echo "$ac_try_echo") >&5
23886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23887 ac_status=$?
23888 grep -v '^ *+' conftest.er1 >conftest.err
23889 rm -f conftest.er1
23890 cat conftest.err >&5
23891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); } >/dev/null && {
23893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23894 test ! -s conftest.err
23895 }; then
23896 ac_header_preproc=yes
23897 else
23898 $as_echo "$as_me: failed program was:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23900
23901 ac_header_preproc=no
23902 fi
23903
23904 rm -f conftest.err conftest.$ac_ext
23905 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23906 $as_echo "$ac_header_preproc" >&6; }
23907
23908 # So? What about this header?
23909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23910 yes:no: )
23911 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23912 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23913 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
23914 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
23915 ac_header_preproc=yes
23916 ;;
23917 no:yes:* )
23918 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
23919 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
23920 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
23921 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
23922 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
23923 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
23924 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
23925 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
23926 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
23927 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
23928 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
23929 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
23930
23931 ;;
23932 esac
23933 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
23934 $as_echo_n "checking for zlib.h... " >&6; }
23935 if test "${ac_cv_header_zlib_h+set}" = set; then
23936 $as_echo_n "(cached) " >&6
23937 else
23938 ac_cv_header_zlib_h=$ac_header_preproc
23939 fi
23940 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23941 $as_echo "$ac_cv_header_zlib_h" >&6; }
23942
23943 fi
23944 if test "x$ac_cv_header_zlib_h" = x""yes; then
23945 :
23946 else
23947 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23949 { { $as_echo "$as_me:$LINENO: error:
23950 *** zlib.h missing, zlib-devel package required
23951 See \`config.log' for more details." >&5
23952 $as_echo "$as_me: error:
23953 *** zlib.h missing, zlib-devel package required
23954 See \`config.log' for more details." >&2;}
23955 { (exit 1); exit 1; }; }; }
23956 fi
23957
23958
23959
23960
23961 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
23962 $as_echo_n "checking for compress2 in -lz... " >&6; }
23963 if test "${ac_cv_lib_z_compress2+set}" = set; then
23964 $as_echo_n "(cached) " >&6
23965 else
23966 ac_check_lib_save_LIBS=$LIBS
23967 LIBS="-lz $LIBS"
23968 cat >conftest.$ac_ext <<_ACEOF
23969 /* confdefs.h. */
23970 _ACEOF
23971 cat confdefs.h >>conftest.$ac_ext
23972 cat >>conftest.$ac_ext <<_ACEOF
23973 /* end confdefs.h. */
23974
23975 /* Override any GCC internal prototype to avoid an error.
23976 Use char because int might match the return type of a GCC
23977 builtin and then its argument prototype would still apply. */
23978 #ifdef __cplusplus
23979 extern "C"
23980 #endif
23981 char compress2 ();
23982 int
23983 main ()
23984 {
23985 return compress2 ();
23986 ;
23987 return 0;
23988 }
23989 _ACEOF
23990 rm -f conftest.$ac_objext conftest$ac_exeext
23991 if { (ac_try="$ac_link"
23992 case "(($ac_try" in
23993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23994 *) ac_try_echo=$ac_try;;
23995 esac
23996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23997 $as_echo "$ac_try_echo") >&5
23998 (eval "$ac_link") 2>conftest.er1
23999 ac_status=$?
24000 grep -v '^ *+' conftest.er1 >conftest.err
24001 rm -f conftest.er1
24002 cat conftest.err >&5
24003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); } && {
24005 test -z "$ac_c_werror_flag" ||
24006 test ! -s conftest.err
24007 } && test -s conftest$ac_exeext && {
24008 test "$cross_compiling" = yes ||
24009 $as_test_x conftest$ac_exeext
24010 }; then
24011 ac_cv_lib_z_compress2=yes
24012 else
24013 $as_echo "$as_me: failed program was:" >&5
24014 sed 's/^/| /' conftest.$ac_ext >&5
24015
24016 ac_cv_lib_z_compress2=no
24017 fi
24018
24019 rm -rf conftest.dSYM
24020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24021 conftest$ac_exeext conftest.$ac_ext
24022 LIBS=$ac_check_lib_save_LIBS
24023 fi
24024 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
24025 $as_echo "$ac_cv_lib_z_compress2" >&6; }
24026 if test "x$ac_cv_lib_z_compress2" = x""yes; then
24027 cat >>confdefs.h <<_ACEOF
24028 #define HAVE_LIBZ 1
24029 _ACEOF
24030
24031 LIBS="-lz $LIBS"
24032
24033 else
24034 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24036 { { $as_echo "$as_me:$LINENO: error:
24037 *** compress2() missing, zlib-devel package required
24038 See \`config.log' for more details." >&5
24039 $as_echo "$as_me: error:
24040 *** compress2() missing, zlib-devel package required
24041 See \`config.log' for more details." >&2;}
24042 { (exit 1); exit 1; }; }; }
24043 fi
24044
24045
24046
24047 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
24048 $as_echo_n "checking for uncompress in -lz... " >&6; }
24049 if test "${ac_cv_lib_z_uncompress+set}" = set; then
24050 $as_echo_n "(cached) " >&6
24051 else
24052 ac_check_lib_save_LIBS=$LIBS
24053 LIBS="-lz $LIBS"
24054 cat >conftest.$ac_ext <<_ACEOF
24055 /* confdefs.h. */
24056 _ACEOF
24057 cat confdefs.h >>conftest.$ac_ext
24058 cat >>conftest.$ac_ext <<_ACEOF
24059 /* end confdefs.h. */
24060
24061 /* Override any GCC internal prototype to avoid an error.
24062 Use char because int might match the return type of a GCC
24063 builtin and then its argument prototype would still apply. */
24064 #ifdef __cplusplus
24065 extern "C"
24066 #endif
24067 char uncompress ();
24068 int
24069 main ()
24070 {
24071 return uncompress ();
24072 ;
24073 return 0;
24074 }
24075 _ACEOF
24076 rm -f conftest.$ac_objext conftest$ac_exeext
24077 if { (ac_try="$ac_link"
24078 case "(($ac_try" in
24079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24080 *) ac_try_echo=$ac_try;;
24081 esac
24082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24083 $as_echo "$ac_try_echo") >&5
24084 (eval "$ac_link") 2>conftest.er1
24085 ac_status=$?
24086 grep -v '^ *+' conftest.er1 >conftest.err
24087 rm -f conftest.er1
24088 cat conftest.err >&5
24089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); } && {
24091 test -z "$ac_c_werror_flag" ||
24092 test ! -s conftest.err
24093 } && test -s conftest$ac_exeext && {
24094 test "$cross_compiling" = yes ||
24095 $as_test_x conftest$ac_exeext
24096 }; then
24097 ac_cv_lib_z_uncompress=yes
24098 else
24099 $as_echo "$as_me: failed program was:" >&5
24100 sed 's/^/| /' conftest.$ac_ext >&5
24101
24102 ac_cv_lib_z_uncompress=no
24103 fi
24104
24105 rm -rf conftest.dSYM
24106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24107 conftest$ac_exeext conftest.$ac_ext
24108 LIBS=$ac_check_lib_save_LIBS
24109 fi
24110 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
24111 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
24112 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
24113 cat >>confdefs.h <<_ACEOF
24114 #define HAVE_LIBZ 1
24115 _ACEOF
24116
24117 LIBS="-lz $LIBS"
24118
24119 else
24120 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24122 { { $as_echo "$as_me:$LINENO: error:
24123 *** uncompress() missing, zlib-devel package required
24124 See \`config.log' for more details." >&5
24125 $as_echo "$as_me: error:
24126 *** uncompress() missing, zlib-devel package required
24127 See \`config.log' for more details." >&2;}
24128 { (exit 1); exit 1; }; }; }
24129 fi
24130
24131
24132
24133 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
24134 $as_echo_n "checking for crc32 in -lz... " >&6; }
24135 if test "${ac_cv_lib_z_crc32+set}" = set; then
24136 $as_echo_n "(cached) " >&6
24137 else
24138 ac_check_lib_save_LIBS=$LIBS
24139 LIBS="-lz $LIBS"
24140 cat >conftest.$ac_ext <<_ACEOF
24141 /* confdefs.h. */
24142 _ACEOF
24143 cat confdefs.h >>conftest.$ac_ext
24144 cat >>conftest.$ac_ext <<_ACEOF
24145 /* end confdefs.h. */
24146
24147 /* Override any GCC internal prototype to avoid an error.
24148 Use char because int might match the return type of a GCC
24149 builtin and then its argument prototype would still apply. */
24150 #ifdef __cplusplus
24151 extern "C"
24152 #endif
24153 char crc32 ();
24154 int
24155 main ()
24156 {
24157 return crc32 ();
24158 ;
24159 return 0;
24160 }
24161 _ACEOF
24162 rm -f conftest.$ac_objext conftest$ac_exeext
24163 if { (ac_try="$ac_link"
24164 case "(($ac_try" in
24165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166 *) ac_try_echo=$ac_try;;
24167 esac
24168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24169 $as_echo "$ac_try_echo") >&5
24170 (eval "$ac_link") 2>conftest.er1
24171 ac_status=$?
24172 grep -v '^ *+' conftest.er1 >conftest.err
24173 rm -f conftest.er1
24174 cat conftest.err >&5
24175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176 (exit $ac_status); } && {
24177 test -z "$ac_c_werror_flag" ||
24178 test ! -s conftest.err
24179 } && test -s conftest$ac_exeext && {
24180 test "$cross_compiling" = yes ||
24181 $as_test_x conftest$ac_exeext
24182 }; then
24183 ac_cv_lib_z_crc32=yes
24184 else
24185 $as_echo "$as_me: failed program was:" >&5
24186 sed 's/^/| /' conftest.$ac_ext >&5
24187
24188 ac_cv_lib_z_crc32=no
24189 fi
24190
24191 rm -rf conftest.dSYM
24192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24193 conftest$ac_exeext conftest.$ac_ext
24194 LIBS=$ac_check_lib_save_LIBS
24195 fi
24196 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
24197 $as_echo "$ac_cv_lib_z_crc32" >&6; }
24198 if test "x$ac_cv_lib_z_crc32" = x""yes; then
24199 cat >>confdefs.h <<_ACEOF
24200 #define HAVE_LIBZ 1
24201 _ACEOF
24202
24203 LIBS="-lz $LIBS"
24204
24205 else
24206 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24208 { { $as_echo "$as_me:$LINENO: error:
24209 *** crc32() missing, zlib-devel package required
24210 See \`config.log' for more details." >&5
24211 $as_echo "$as_me: error:
24212 *** crc32() missing, zlib-devel package required
24213 See \`config.log' for more details." >&2;}
24214 { (exit 1); exit 1; }; }; }
24215 fi
24216
24217
24218 ZLIB="-lz"
24219
24220
24221 cat >>confdefs.h <<\_ACEOF
24222 #define HAVE_ZLIB 1
24223 _ACEOF
24224
24225
24226
24227 LIBUUID=
24228
24229 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
24230 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
24231 $as_echo_n "checking for uuid/uuid.h... " >&6; }
24232 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
24233 $as_echo_n "(cached) " >&6
24234 fi
24235 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
24236 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
24237 else
24238 # Is the header compilable?
24239 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
24240 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
24241 cat >conftest.$ac_ext <<_ACEOF
24242 /* confdefs.h. */
24243 _ACEOF
24244 cat confdefs.h >>conftest.$ac_ext
24245 cat >>conftest.$ac_ext <<_ACEOF
24246 /* end confdefs.h. */
24247 $ac_includes_default
24248 #include <uuid/uuid.h>
24249 _ACEOF
24250 rm -f conftest.$ac_objext
24251 if { (ac_try="$ac_compile"
24252 case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24255 esac
24256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24257 $as_echo "$ac_try_echo") >&5
24258 (eval "$ac_compile") 2>conftest.er1
24259 ac_status=$?
24260 grep -v '^ *+' conftest.er1 >conftest.err
24261 rm -f conftest.er1
24262 cat conftest.err >&5
24263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } && {
24265 test -z "$ac_c_werror_flag" ||
24266 test ! -s conftest.err
24267 } && test -s conftest.$ac_objext; then
24268 ac_header_compiler=yes
24269 else
24270 $as_echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24272
24273 ac_header_compiler=no
24274 fi
24275
24276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24277 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24278 $as_echo "$ac_header_compiler" >&6; }
24279
24280 # Is the header present?
24281 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
24282 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
24283 cat >conftest.$ac_ext <<_ACEOF
24284 /* confdefs.h. */
24285 _ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h. */
24289 #include <uuid/uuid.h>
24290 _ACEOF
24291 if { (ac_try="$ac_cpp conftest.$ac_ext"
24292 case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24295 esac
24296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24297 $as_echo "$ac_try_echo") >&5
24298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24299 ac_status=$?
24300 grep -v '^ *+' conftest.er1 >conftest.err
24301 rm -f conftest.er1
24302 cat conftest.err >&5
24303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); } >/dev/null && {
24305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24306 test ! -s conftest.err
24307 }; then
24308 ac_header_preproc=yes
24309 else
24310 $as_echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.$ac_ext >&5
24312
24313 ac_header_preproc=no
24314 fi
24315
24316 rm -f conftest.err conftest.$ac_ext
24317 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24318 $as_echo "$ac_header_preproc" >&6; }
24319
24320 # So? What about this header?
24321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24322 yes:no: )
24323 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
24324 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24325 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
24326 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
24327 ac_header_preproc=yes
24328 ;;
24329 no:yes:* )
24330 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
24331 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
24332 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
24333 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
24334 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
24335 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
24336 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
24337 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
24338 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
24339 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
24340 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
24341 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
24342
24343 ;;
24344 esac
24345 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
24346 $as_echo_n "checking for uuid/uuid.h... " >&6; }
24347 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
24348 $as_echo_n "(cached) " >&6
24349 else
24350 ac_cv_header_uuid_uuid_h=$ac_header_preproc
24351 fi
24352 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
24353 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
24354
24355 fi
24356 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
24357 :
24358 else
24359 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24361 { { $as_echo "$as_me:$LINENO: error:
24362 *** uuid/uuid.h missing, libuuid-devel package required
24363 See \`config.log' for more details." >&5
24364 $as_echo "$as_me: error:
24365 *** uuid/uuid.h missing, libuuid-devel package required
24366 See \`config.log' for more details." >&2;}
24367 { (exit 1); exit 1; }; }; }
24368 fi
24369
24370
24371
24372
24373 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
24374 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
24375 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
24376 $as_echo_n "(cached) " >&6
24377 else
24378 ac_check_lib_save_LIBS=$LIBS
24379 LIBS="-luuid $LIBS"
24380 cat >conftest.$ac_ext <<_ACEOF
24381 /* confdefs.h. */
24382 _ACEOF
24383 cat confdefs.h >>conftest.$ac_ext
24384 cat >>conftest.$ac_ext <<_ACEOF
24385 /* end confdefs.h. */
24386
24387 /* Override any GCC internal prototype to avoid an error.
24388 Use char because int might match the return type of a GCC
24389 builtin and then its argument prototype would still apply. */
24390 #ifdef __cplusplus
24391 extern "C"
24392 #endif
24393 char uuid_generate ();
24394 int
24395 main ()
24396 {
24397 return uuid_generate ();
24398 ;
24399 return 0;
24400 }
24401 _ACEOF
24402 rm -f conftest.$ac_objext conftest$ac_exeext
24403 if { (ac_try="$ac_link"
24404 case "(($ac_try" in
24405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24406 *) ac_try_echo=$ac_try;;
24407 esac
24408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24409 $as_echo "$ac_try_echo") >&5
24410 (eval "$ac_link") 2>conftest.er1
24411 ac_status=$?
24412 grep -v '^ *+' conftest.er1 >conftest.err
24413 rm -f conftest.er1
24414 cat conftest.err >&5
24415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } && {
24417 test -z "$ac_c_werror_flag" ||
24418 test ! -s conftest.err
24419 } && test -s conftest$ac_exeext && {
24420 test "$cross_compiling" = yes ||
24421 $as_test_x conftest$ac_exeext
24422 }; then
24423 ac_cv_lib_uuid_uuid_generate=yes
24424 else
24425 $as_echo "$as_me: failed program was:" >&5
24426 sed 's/^/| /' conftest.$ac_ext >&5
24427
24428 ac_cv_lib_uuid_uuid_generate=no
24429 fi
24430
24431 rm -rf conftest.dSYM
24432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24433 conftest$ac_exeext conftest.$ac_ext
24434 LIBS=$ac_check_lib_save_LIBS
24435 fi
24436 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
24437 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
24438 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
24439 cat >>confdefs.h <<_ACEOF
24440 #define HAVE_LIBUUID 1
24441 _ACEOF
24442
24443 LIBS="-luuid $LIBS"
24444
24445 else
24446 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24448 { { $as_echo "$as_me:$LINENO: error:
24449 *** uuid_generate() missing, libuuid-devel package required
24450 See \`config.log' for more details." >&5
24451 $as_echo "$as_me: error:
24452 *** uuid_generate() missing, libuuid-devel package required
24453 See \`config.log' for more details." >&2;}
24454 { (exit 1); exit 1; }; }; }
24455 fi
24456
24457
24458
24459 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
24460 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
24461 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
24462 $as_echo_n "(cached) " >&6
24463 else
24464 ac_check_lib_save_LIBS=$LIBS
24465 LIBS="-luuid $LIBS"
24466 cat >conftest.$ac_ext <<_ACEOF
24467 /* confdefs.h. */
24468 _ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h. */
24472
24473 /* Override any GCC internal prototype to avoid an error.
24474 Use char because int might match the return type of a GCC
24475 builtin and then its argument prototype would still apply. */
24476 #ifdef __cplusplus
24477 extern "C"
24478 #endif
24479 char uuid_is_null ();
24480 int
24481 main ()
24482 {
24483 return uuid_is_null ();
24484 ;
24485 return 0;
24486 }
24487 _ACEOF
24488 rm -f conftest.$ac_objext conftest$ac_exeext
24489 if { (ac_try="$ac_link"
24490 case "(($ac_try" in
24491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24492 *) ac_try_echo=$ac_try;;
24493 esac
24494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24495 $as_echo "$ac_try_echo") >&5
24496 (eval "$ac_link") 2>conftest.er1
24497 ac_status=$?
24498 grep -v '^ *+' conftest.er1 >conftest.err
24499 rm -f conftest.er1
24500 cat conftest.err >&5
24501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502 (exit $ac_status); } && {
24503 test -z "$ac_c_werror_flag" ||
24504 test ! -s conftest.err
24505 } && test -s conftest$ac_exeext && {
24506 test "$cross_compiling" = yes ||
24507 $as_test_x conftest$ac_exeext
24508 }; then
24509 ac_cv_lib_uuid_uuid_is_null=yes
24510 else
24511 $as_echo "$as_me: failed program was:" >&5
24512 sed 's/^/| /' conftest.$ac_ext >&5
24513
24514 ac_cv_lib_uuid_uuid_is_null=no
24515 fi
24516
24517 rm -rf conftest.dSYM
24518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24519 conftest$ac_exeext conftest.$ac_ext
24520 LIBS=$ac_check_lib_save_LIBS
24521 fi
24522 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
24523 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
24524 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
24525 cat >>confdefs.h <<_ACEOF
24526 #define HAVE_LIBUUID 1
24527 _ACEOF
24528
24529 LIBS="-luuid $LIBS"
24530
24531 else
24532 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24534 { { $as_echo "$as_me:$LINENO: error:
24535 *** uuid_is_null() missing, libuuid-devel package required
24536 See \`config.log' for more details." >&5
24537 $as_echo "$as_me: error:
24538 *** uuid_is_null() missing, libuuid-devel package required
24539 See \`config.log' for more details." >&2;}
24540 { (exit 1); exit 1; }; }; }
24541 fi
24542
24543
24544 LIBUUID="-luuid"
24545
24546
24547 cat >>confdefs.h <<\_ACEOF
24548 #define HAVE_LIBUUID 1
24549 _ACEOF
24550
24551
24552
24553
24554 # Check whether --with-blkid was given.
24555 if test "${with_blkid+set}" = set; then
24556 withval=$with_blkid;
24557 else
24558 with_blkid=check
24559 fi
24560
24561
24562 LIBBLKID=
24563 if test "x$with_blkid" != xno; then
24564
24565 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
24566 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
24567 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
24568 $as_echo_n "(cached) " >&6
24569 else
24570 ac_check_lib_save_LIBS=$LIBS
24571 LIBS="-lblkid $LIBS"
24572 cat >conftest.$ac_ext <<_ACEOF
24573 /* confdefs.h. */
24574 _ACEOF
24575 cat confdefs.h >>conftest.$ac_ext
24576 cat >>conftest.$ac_ext <<_ACEOF
24577 /* end confdefs.h. */
24578
24579 /* Override any GCC internal prototype to avoid an error.
24580 Use char because int might match the return type of a GCC
24581 builtin and then its argument prototype would still apply. */
24582 #ifdef __cplusplus
24583 extern "C"
24584 #endif
24585 char blkid_get_cache ();
24586 int
24587 main ()
24588 {
24589 return blkid_get_cache ();
24590 ;
24591 return 0;
24592 }
24593 _ACEOF
24594 rm -f conftest.$ac_objext conftest$ac_exeext
24595 if { (ac_try="$ac_link"
24596 case "(($ac_try" in
24597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598 *) ac_try_echo=$ac_try;;
24599 esac
24600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24601 $as_echo "$ac_try_echo") >&5
24602 (eval "$ac_link") 2>conftest.er1
24603 ac_status=$?
24604 grep -v '^ *+' conftest.er1 >conftest.err
24605 rm -f conftest.er1
24606 cat conftest.err >&5
24607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); } && {
24609 test -z "$ac_c_werror_flag" ||
24610 test ! -s conftest.err
24611 } && test -s conftest$ac_exeext && {
24612 test "$cross_compiling" = yes ||
24613 $as_test_x conftest$ac_exeext
24614 }; then
24615 ac_cv_lib_blkid_blkid_get_cache=yes
24616 else
24617 $as_echo "$as_me: failed program was:" >&5
24618 sed 's/^/| /' conftest.$ac_ext >&5
24619
24620 ac_cv_lib_blkid_blkid_get_cache=no
24621 fi
24622
24623 rm -rf conftest.dSYM
24624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24625 conftest$ac_exeext conftest.$ac_ext
24626 LIBS=$ac_check_lib_save_LIBS
24627 fi
24628 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
24629 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
24630 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
24631
24632 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
24633 $as_echo_n "checking for blkid zfs support... " >&6; }
24634
24635 ZFS_DEV=`mktemp`
24636 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
24637 >/dev/null 2>/dev/null
24638 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
24639 dd of=$ZFS_DEV bs=1k count=8 \
24640 seek=132 conv=notrunc &>/dev/null \
24641 >/dev/null 2>/dev/null
24642
24643 saved_LDFLAGS="$LDFLAGS"
24644 LDFLAGS="-lblkid"
24645
24646 if test "$cross_compiling" = yes; then
24647 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24649 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24650 See \`config.log' for more details." >&5
24651 $as_echo "$as_me: error: cannot run test program while cross compiling
24652 See \`config.log' for more details." >&2;}
24653 { (exit 1); exit 1; }; }; }
24654 else
24655 cat >conftest.$ac_ext <<_ACEOF
24656 /* confdefs.h. */
24657 _ACEOF
24658 cat confdefs.h >>conftest.$ac_ext
24659 cat >>conftest.$ac_ext <<_ACEOF
24660 /* end confdefs.h. */
24661
24662 #include <stdio.h>
24663 #include <blkid/blkid.h>
24664
24665 int
24666 main ()
24667 {
24668
24669 blkid_cache cache;
24670 char *value;
24671
24672 if (blkid_get_cache(&cache, NULL) < 0)
24673 return 1;
24674
24675 value = blkid_get_tag_value(cache, "TYPE",
24676 "$ZFS_DEV");
24677 if (!value) {
24678 blkid_put_cache(cache);
24679 return 2;
24680 }
24681
24682 if (strcmp(value, "zfs")) {
24683 free(value);
24684 blkid_put_cache(cache);
24685 return 3;
24686 }
24687
24688 free(value);
24689 blkid_put_cache(cache);
24690
24691 ;
24692 return 0;
24693 }
24694 _ACEOF
24695 rm -f conftest$ac_exeext
24696 if { (ac_try="$ac_link"
24697 case "(($ac_try" in
24698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24699 *) ac_try_echo=$ac_try;;
24700 esac
24701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24702 $as_echo "$ac_try_echo") >&5
24703 (eval "$ac_link") 2>&5
24704 ac_status=$?
24705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24707 { (case "(($ac_try" in
24708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24709 *) ac_try_echo=$ac_try;;
24710 esac
24711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24712 $as_echo "$ac_try_echo") >&5
24713 (eval "$ac_try") 2>&5
24714 ac_status=$?
24715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); }; }; then
24717
24718 rm -f $ZFS_DEV
24719 { $as_echo "$as_me:$LINENO: result: yes" >&5
24720 $as_echo "yes" >&6; }
24721 LIBBLKID="-lblkid"
24722
24723
24724 cat >>confdefs.h <<\_ACEOF
24725 #define HAVE_LIBBLKID 1
24726 _ACEOF
24727
24728
24729 else
24730 $as_echo "$as_me: program exited with status $ac_status" >&5
24731 $as_echo "$as_me: failed program was:" >&5
24732 sed 's/^/| /' conftest.$ac_ext >&5
24733
24734 ( exit $ac_status )
24735
24736 rm -f $ZFS_DEV
24737 { $as_echo "$as_me:$LINENO: result: no" >&5
24738 $as_echo "no" >&6; }
24739 if test "x$with_blkid" != xcheck; then
24740 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24742 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
24743 See \`config.log' for more details." >&5
24744 $as_echo "$as_me: error: --with-blkid given but unavailable
24745 See \`config.log' for more details." >&2;}
24746 { (exit 1); exit 1; }; }; }
24747 fi
24748
24749
24750 fi
24751 rm -rf conftest.dSYM
24752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24753 fi
24754
24755
24756
24757 LDFLAGS="$saved_LDFLAGS"
24758
24759 else
24760
24761 if test "x$with_blkid" != xcheck; then
24762 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24764 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
24765 See \`config.log' for more details." >&5
24766 $as_echo "$as_me: error: --with-blkid given but unavailable
24767 See \`config.log' for more details." >&2;}
24768 { (exit 1); exit 1; }; }; }
24769 fi
24770
24771
24772
24773 fi
24774
24775
24776 fi
24777
24778
24779
24780
24781 # Check whether --with-selinux was given.
24782 if test "${with_selinux+set}" = set; then
24783 withval=$with_selinux;
24784 else
24785 with_selinux=check
24786 fi
24787
24788
24789 LIBSELINUX=
24790 if test "x$with_selinux" != xno; then
24791
24792 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
24793 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
24794 $as_echo_n "checking for selinux/selinux.h... " >&6; }
24795 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
24796 $as_echo_n "(cached) " >&6
24797 fi
24798 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
24799 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
24800 else
24801 # Is the header compilable?
24802 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
24803 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
24804 cat >conftest.$ac_ext <<_ACEOF
24805 /* confdefs.h. */
24806 _ACEOF
24807 cat confdefs.h >>conftest.$ac_ext
24808 cat >>conftest.$ac_ext <<_ACEOF
24809 /* end confdefs.h. */
24810 $ac_includes_default
24811 #include <selinux/selinux.h>
24812 _ACEOF
24813 rm -f conftest.$ac_objext
24814 if { (ac_try="$ac_compile"
24815 case "(($ac_try" in
24816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24817 *) ac_try_echo=$ac_try;;
24818 esac
24819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24820 $as_echo "$ac_try_echo") >&5
24821 (eval "$ac_compile") 2>conftest.er1
24822 ac_status=$?
24823 grep -v '^ *+' conftest.er1 >conftest.err
24824 rm -f conftest.er1
24825 cat conftest.err >&5
24826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); } && {
24828 test -z "$ac_c_werror_flag" ||
24829 test ! -s conftest.err
24830 } && test -s conftest.$ac_objext; then
24831 ac_header_compiler=yes
24832 else
24833 $as_echo "$as_me: failed program was:" >&5
24834 sed 's/^/| /' conftest.$ac_ext >&5
24835
24836 ac_header_compiler=no
24837 fi
24838
24839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24840 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24841 $as_echo "$ac_header_compiler" >&6; }
24842
24843 # Is the header present?
24844 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
24845 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
24846 cat >conftest.$ac_ext <<_ACEOF
24847 /* confdefs.h. */
24848 _ACEOF
24849 cat confdefs.h >>conftest.$ac_ext
24850 cat >>conftest.$ac_ext <<_ACEOF
24851 /* end confdefs.h. */
24852 #include <selinux/selinux.h>
24853 _ACEOF
24854 if { (ac_try="$ac_cpp conftest.$ac_ext"
24855 case "(($ac_try" in
24856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24857 *) ac_try_echo=$ac_try;;
24858 esac
24859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24860 $as_echo "$ac_try_echo") >&5
24861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24862 ac_status=$?
24863 grep -v '^ *+' conftest.er1 >conftest.err
24864 rm -f conftest.er1
24865 cat conftest.err >&5
24866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); } >/dev/null && {
24868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24869 test ! -s conftest.err
24870 }; then
24871 ac_header_preproc=yes
24872 else
24873 $as_echo "$as_me: failed program was:" >&5
24874 sed 's/^/| /' conftest.$ac_ext >&5
24875
24876 ac_header_preproc=no
24877 fi
24878
24879 rm -f conftest.err conftest.$ac_ext
24880 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24881 $as_echo "$ac_header_preproc" >&6; }
24882
24883 # So? What about this header?
24884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24885 yes:no: )
24886 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
24887 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24888 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
24889 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
24890 ac_header_preproc=yes
24891 ;;
24892 no:yes:* )
24893 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
24894 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
24895 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
24896 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
24897 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
24898 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
24899 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
24900 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
24901 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
24902 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
24903 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
24904 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
24905
24906 ;;
24907 esac
24908 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
24909 $as_echo_n "checking for selinux/selinux.h... " >&6; }
24910 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
24911 $as_echo_n "(cached) " >&6
24912 else
24913 ac_cv_header_selinux_selinux_h=$ac_header_preproc
24914 fi
24915 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
24916 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
24917
24918 fi
24919 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
24920
24921 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
24922 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
24923 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
24924 $as_echo_n "(cached) " >&6
24925 else
24926 ac_check_lib_save_LIBS=$LIBS
24927 LIBS="-lselinux $LIBS"
24928 cat >conftest.$ac_ext <<_ACEOF
24929 /* confdefs.h. */
24930 _ACEOF
24931 cat confdefs.h >>conftest.$ac_ext
24932 cat >>conftest.$ac_ext <<_ACEOF
24933 /* end confdefs.h. */
24934
24935 /* Override any GCC internal prototype to avoid an error.
24936 Use char because int might match the return type of a GCC
24937 builtin and then its argument prototype would still apply. */
24938 #ifdef __cplusplus
24939 extern "C"
24940 #endif
24941 char is_selinux_enabled ();
24942 int
24943 main ()
24944 {
24945 return is_selinux_enabled ();
24946 ;
24947 return 0;
24948 }
24949 _ACEOF
24950 rm -f conftest.$ac_objext conftest$ac_exeext
24951 if { (ac_try="$ac_link"
24952 case "(($ac_try" in
24953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24954 *) ac_try_echo=$ac_try;;
24955 esac
24956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24957 $as_echo "$ac_try_echo") >&5
24958 (eval "$ac_link") 2>conftest.er1
24959 ac_status=$?
24960 grep -v '^ *+' conftest.er1 >conftest.err
24961 rm -f conftest.er1
24962 cat conftest.err >&5
24963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); } && {
24965 test -z "$ac_c_werror_flag" ||
24966 test ! -s conftest.err
24967 } && test -s conftest$ac_exeext && {
24968 test "$cross_compiling" = yes ||
24969 $as_test_x conftest$ac_exeext
24970 }; then
24971 ac_cv_lib_selinux_is_selinux_enabled=yes
24972 else
24973 $as_echo "$as_me: failed program was:" >&5
24974 sed 's/^/| /' conftest.$ac_ext >&5
24975
24976 ac_cv_lib_selinux_is_selinux_enabled=no
24977 fi
24978
24979 rm -rf conftest.dSYM
24980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24981 conftest$ac_exeext conftest.$ac_ext
24982 LIBS=$ac_check_lib_save_LIBS
24983 fi
24984 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
24985 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
24986 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
24987
24988 LIBSELINUX="-lselinux"
24989
24990
24991 cat >>confdefs.h <<\_ACEOF
24992 #define HAVE_LIBSELINUX 1
24993 _ACEOF
24994
24995
24996 else
24997
24998 if test "x$with_selinux" != xcheck; then
24999 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25001 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
25002 See \`config.log' for more details." >&5
25003 $as_echo "$as_me: error: --with-selinux given but unavailable
25004 See \`config.log' for more details." >&2;}
25005 { (exit 1); exit 1; }; }; }
25006
25007 fi
25008
25009
25010 fi
25011
25012
25013 else
25014
25015 if test "x$with_selinux" != xcheck; then
25016 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25018 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
25019 See \`config.log' for more details." >&5
25020 $as_echo "$as_me: error: --with-selinux given but unavailable
25021 See \`config.log' for more details." >&2;}
25022 { (exit 1); exit 1; }; }; }
25023
25024 fi
25025
25026
25027 fi
25028
25029
25030
25031 else
25032
25033 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
25034 $as_echo_n "checking for selinux support... " >&6; }
25035 { $as_echo "$as_me:$LINENO: result: no" >&5
25036 $as_echo "no" >&6; }
25037
25038 fi
25039
25040
25041
25042 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
25043 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
25044
25045 saved_flags="$CFLAGS"
25046 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
25047
25048 if test "$cross_compiling" = yes; then
25049 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25051 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25052 See \`config.log' for more details." >&5
25053 $as_echo "$as_me: error: cannot run test program while cross compiling
25054 See \`config.log' for more details." >&2;}
25055 { (exit 1); exit 1; }; }; }
25056 else
25057 cat >conftest.$ac_ext <<_ACEOF
25058 /* confdefs.h. */
25059 _ACEOF
25060 cat confdefs.h >>conftest.$ac_ext
25061 cat >>conftest.$ac_ext <<_ACEOF
25062 /* end confdefs.h. */
25063
25064 int
25065 main ()
25066 {
25067
25068 ;
25069 return 0;
25070 }
25071 _ACEOF
25072 rm -f conftest$ac_exeext
25073 if { (ac_try="$ac_link"
25074 case "(($ac_try" in
25075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25077 esac
25078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25079 $as_echo "$ac_try_echo") >&5
25080 (eval "$ac_link") 2>&5
25081 ac_status=$?
25082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25084 { (case "(($ac_try" in
25085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25086 *) ac_try_echo=$ac_try;;
25087 esac
25088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25089 $as_echo "$ac_try_echo") >&5
25090 (eval "$ac_try") 2>&5
25091 ac_status=$?
25092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); }; }; then
25094
25095 FRAME_LARGER_THAN=-Wframe-larger-than=1024
25096 { $as_echo "$as_me:$LINENO: result: yes" >&5
25097 $as_echo "yes" >&6; }
25098
25099 else
25100 $as_echo "$as_me: program exited with status $ac_status" >&5
25101 $as_echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25103
25104 ( exit $ac_status )
25105
25106 FRAME_LARGER_THAN=
25107 { $as_echo "$as_me:$LINENO: result: no" >&5
25108 $as_echo "no" >&6; }
25109
25110 fi
25111 rm -rf conftest.dSYM
25112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25113 fi
25114
25115
25116
25117 CFLAGS="$saved_flags"
25118
25119
25120
25121
25122 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
25123 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
25124
25125 saved_CFLAGS="$CFLAGS"
25126 CFLAGS="-fstack-check"
25127 saved_LDFLAGS="$LDFLAGS"
25128 LDFLAGS="-lpthread"
25129
25130 if test "$cross_compiling" = yes; then
25131 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25133 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25134 See \`config.log' for more details." >&5
25135 $as_echo "$as_me: error: cannot run test program while cross compiling
25136 See \`config.log' for more details." >&2;}
25137 { (exit 1); exit 1; }; }; }
25138 else
25139 cat >conftest.$ac_ext <<_ACEOF
25140 /* confdefs.h. */
25141 _ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h. */
25145
25146 #include <pthread.h>
25147 #include <sys/resource.h>
25148 #include <unistd.h>
25149 #include <bits/local_lim.h>
25150
25151 #define PAGESIZE (sysconf(_SC_PAGESIZE))
25152 #define STACK_SIZE 8192
25153 #define BUFSIZE 4096
25154
25155 void * func(void *arg)
25156 {
25157 char buf[BUFSIZE];
25158 }
25159
25160 int
25161 main ()
25162 {
25163
25164 pthread_t tid;
25165 pthread_attr_t attr;
25166 struct rlimit l;
25167
25168 l.rlim_cur = 0;
25169 l.rlim_max = 0;
25170 setrlimit(RLIMIT_CORE, &l);
25171 pthread_attr_init(&attr);
25172 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
25173 pthread_attr_setguardsize(&attr, PAGESIZE);
25174 pthread_create(&tid, &attr, func, NULL);
25175 pthread_join(tid, NULL);
25176
25177 ;
25178 return 0;
25179 }
25180 _ACEOF
25181 rm -f conftest$ac_exeext
25182 if { (ac_try="$ac_link"
25183 case "(($ac_try" in
25184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185 *) ac_try_echo=$ac_try;;
25186 esac
25187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25188 $as_echo "$ac_try_echo") >&5
25189 (eval "$ac_link") 2>&5
25190 ac_status=$?
25191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25193 { (case "(($ac_try" in
25194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195 *) ac_try_echo=$ac_try;;
25196 esac
25197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25198 $as_echo "$ac_try_echo") >&5
25199 (eval "$ac_try") 2>&5
25200 ac_status=$?
25201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); }; }; then
25203
25204 { $as_echo "$as_me:$LINENO: result: no" >&5
25205 $as_echo "no" >&6; }
25206
25207 else
25208 $as_echo "$as_me: program exited with status $ac_status" >&5
25209 $as_echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25211
25212 ( exit $ac_status )
25213
25214
25215 cat >>confdefs.h <<\_ACEOF
25216 #define NPTL_GUARD_WITHIN_STACK 1
25217 _ACEOF
25218
25219 { $as_echo "$as_me:$LINENO: result: yes" >&5
25220 $as_echo "yes" >&6; }
25221
25222 fi
25223 rm -rf conftest.dSYM
25224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25225 fi
25226
25227
25228 CFLAGS="$saved_CFLAGS"
25229 LDFLAGS="$saved_LDFLAGS"
25230
25231 ;;
25232 srpm) ;;
25233 *)
25234 { $as_echo "$as_me:$LINENO: result: Error!" >&5
25235 $as_echo "Error!" >&6; }
25236 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
25237 user kernel|user|all|srpm" >&5
25238 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
25239 user kernel|user|all|srpm" >&2;}
25240 { (exit 1); exit 1; }; } ;;
25241 esac
25242
25243 if test "$ZFS_CONFIG" = user ||
25244 test "$ZFS_CONFIG" = all; then
25245 CONFIG_USER_TRUE=
25246 CONFIG_USER_FALSE='#'
25247 else
25248 CONFIG_USER_TRUE='#'
25249 CONFIG_USER_FALSE=
25250 fi
25251
25252 if test "$ZFS_CONFIG" = kernel ||
25253 test "$ZFS_CONFIG" = all; then
25254 CONFIG_KERNEL_TRUE=
25255 CONFIG_KERNEL_FALSE='#'
25256 else
25257 CONFIG_KERNEL_TRUE='#'
25258 CONFIG_KERNEL_FALSE=
25259 fi
25260
25261
25262
25263 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
25264 $as_echo_n "checking whether debugging is enabled... " >&6; }
25265 # Check whether --enable-debug was given.
25266 if test "${enable_debug+set}" = set; then
25267 enableval=$enable_debug;
25268 else
25269 enable_debug=no
25270 fi
25271
25272
25273 if test "x$enable_debug" = xyes; then
25274
25275 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
25276 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
25277 DEBUG_CFLAGS="-DDEBUG -Werror"
25278 DEBUG_STACKFLAGS="-fstack-check"
25279 DEBUG_ZFS="_with_debug"
25280
25281 cat >>confdefs.h <<\_ACEOF
25282 #define ZFS_DEBUG 1
25283 _ACEOF
25284
25285
25286 else
25287
25288 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
25289 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
25290 DEBUG_CFLAGS="-DNDEBUG"
25291 DEBUG_STACKFLAGS=""
25292 DEBUG_ZFS="_without_debug"
25293
25294 fi
25295
25296
25297
25298
25299
25300 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
25301 $as_echo "$enable_debug" >&6; }
25302
25303
25304 # Check whether --enable-debug-dmu-tx was given.
25305 if test "${enable_debug_dmu_tx+set}" = set; then
25306 enableval=$enable_debug_dmu_tx;
25307 else
25308 enable_debug_dmu_tx=no
25309 fi
25310
25311
25312 if test "x$enable_debug_dmu_tx" = xyes; then
25313
25314 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
25315 DEBUG_DMU_TX="_with_debug_dmu_tx"
25316
25317 cat >>confdefs.h <<\_ACEOF
25318 #define DEBUG_DMU_TX 1
25319 _ACEOF
25320
25321
25322 else
25323
25324 DEBUG_DMU_TX="_without_debug_dmu_tx"
25325
25326 fi
25327
25328
25329
25330 { $as_echo "$as_me:$LINENO: checking whether dmu tx validation is enabled" >&5
25331 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
25332 { $as_echo "$as_me:$LINENO: result: $enable_debug_dmu_tx" >&5
25333 $as_echo "$enable_debug_dmu_tx" >&6; }
25334
25335
25336 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/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/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/zpool_layout/Makefile cmd/zvol_id/Makefile cmd/zpool_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/zpool-layout/Makefile scripts/common.sh zfs.spec zfs-modules.spec PKGBUILD-zfs PKGBUILD-zfs-modules zfs-script-config.sh zfs.release"
25337
25338
25339 cat >confcache <<\_ACEOF
25340 # This file is a shell script that caches the results of configure
25341 # tests run on this system so they can be shared between configure
25342 # scripts and configure runs, see configure's option --config-cache.
25343 # It is not useful on other systems. If it contains results you don't
25344 # want to keep, you may remove or edit it.
25345 #
25346 # config.status only pays attention to the cache file if you give it
25347 # the --recheck option to rerun configure.
25348 #
25349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25351 # following values.
25352
25353 _ACEOF
25354
25355 # The following way of writing the cache mishandles newlines in values,
25356 # but we know of no workaround that is simple, portable, and efficient.
25357 # So, we kill variables containing newlines.
25358 # Ultrix sh set writes to stderr and can't be redirected directly,
25359 # and sets the high bit in the cache file unless we assign to the vars.
25360 (
25361 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25362 eval ac_val=\$$ac_var
25363 case $ac_val in #(
25364 *${as_nl}*)
25365 case $ac_var in #(
25366 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
25367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25368 esac
25369 case $ac_var in #(
25370 _ | IFS | as_nl) ;; #(
25371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25372 *) $as_unset $ac_var ;;
25373 esac ;;
25374 esac
25375 done
25376
25377 (set) 2>&1 |
25378 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25379 *${as_nl}ac_space=\ *)
25380 # `set' does not quote correctly, so add quotes (double-quote
25381 # substitution turns \\\\ into \\, and sed turns \\ into \).
25382 sed -n \
25383 "s/'/'\\\\''/g;
25384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25385 ;; #(
25386 *)
25387 # `set' quotes correctly as required by POSIX, so do not add quotes.
25388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25389 ;;
25390 esac |
25391 sort
25392 ) |
25393 sed '
25394 /^ac_cv_env_/b end
25395 t clear
25396 :clear
25397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25398 t end
25399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25400 :end' >>confcache
25401 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25402 if test -w "$cache_file"; then
25403 test "x$cache_file" != "x/dev/null" &&
25404 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25405 $as_echo "$as_me: updating cache $cache_file" >&6;}
25406 cat confcache >$cache_file
25407 else
25408 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25409 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25410 fi
25411 fi
25412 rm -f confcache
25413
25414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25415 # Let make expand exec_prefix.
25416 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25417
25418 DEFS=-DHAVE_CONFIG_H
25419
25420 ac_libobjs=
25421 ac_ltlibobjs=
25422 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25423 # 1. Remove the extension, and $U if already installed.
25424 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25425 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25426 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25427 # will be set to the directory where LIBOBJS objects are built.
25428 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25429 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25430 done
25431 LIBOBJS=$ac_libobjs
25432
25433 LTLIBOBJS=$ac_ltlibobjs
25434
25435
25436 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25437 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25438 Usually this means the macro was only invoked conditionally." >&5
25439 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25440 Usually this means the macro was only invoked conditionally." >&2;}
25441 { (exit 1); exit 1; }; }
25442 fi
25443 if test -n "$EXEEXT"; then
25444 am__EXEEXT_TRUE=
25445 am__EXEEXT_FALSE='#'
25446 else
25447 am__EXEEXT_TRUE='#'
25448 am__EXEEXT_FALSE=
25449 fi
25450
25451 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25452 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25453 Usually this means the macro was only invoked conditionally." >&5
25454 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
25455 Usually this means the macro was only invoked conditionally." >&2;}
25456 { (exit 1); exit 1; }; }
25457 fi
25458 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25459 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25460 Usually this means the macro was only invoked conditionally." >&5
25461 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25462 Usually this means the macro was only invoked conditionally." >&2;}
25463 { (exit 1); exit 1; }; }
25464 fi
25465 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
25466 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
25467 Usually this means the macro was only invoked conditionally." >&5
25468 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
25469 Usually this means the macro was only invoked conditionally." >&2;}
25470 { (exit 1); exit 1; }; }
25471 fi
25472 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
25473 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
25474 Usually this means the macro was only invoked conditionally." >&5
25475 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
25476 Usually this means the macro was only invoked conditionally." >&2;}
25477 { (exit 1); exit 1; }; }
25478 fi
25479 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
25480 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
25481 Usually this means the macro was only invoked conditionally." >&5
25482 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
25483 Usually this means the macro was only invoked conditionally." >&2;}
25484 { (exit 1); exit 1; }; }
25485 fi
25486
25487 : ${CONFIG_STATUS=./config.status}
25488 ac_write_fail=0
25489 ac_clean_files_save=$ac_clean_files
25490 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25491 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25492 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25493 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25494 #! $SHELL
25495 # Generated by $as_me.
25496 # Run this file to recreate the current configuration.
25497 # Compiler output produced by configure, useful for debugging
25498 # configure, is in config.log if it exists.
25499
25500 debug=false
25501 ac_cs_recheck=false
25502 ac_cs_silent=false
25503 SHELL=\${CONFIG_SHELL-$SHELL}
25504 _ACEOF
25505
25506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25507 ## --------------------- ##
25508 ## M4sh Initialization. ##
25509 ## --------------------- ##
25510
25511 # Be more Bourne compatible
25512 DUALCASE=1; export DUALCASE # for MKS sh
25513 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25514 emulate sh
25515 NULLCMD=:
25516 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25517 # is contrary to our usage. Disable this feature.
25518 alias -g '${1+"$@"}'='"$@"'
25519 setopt NO_GLOB_SUBST
25520 else
25521 case `(set -o) 2>/dev/null` in
25522 *posix*) set -o posix ;;
25523 esac
25524
25525 fi
25526
25527
25528
25529
25530 # PATH needs CR
25531 # Avoid depending upon Character Ranges.
25532 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25533 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25534 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25535 as_cr_digits='0123456789'
25536 as_cr_alnum=$as_cr_Letters$as_cr_digits
25537
25538 as_nl='
25539 '
25540 export as_nl
25541 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25542 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25543 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25544 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25545 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25546 as_echo='printf %s\n'
25547 as_echo_n='printf %s'
25548 else
25549 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25550 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25551 as_echo_n='/usr/ucb/echo -n'
25552 else
25553 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25554 as_echo_n_body='eval
25555 arg=$1;
25556 case $arg in
25557 *"$as_nl"*)
25558 expr "X$arg" : "X\\(.*\\)$as_nl";
25559 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25560 esac;
25561 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25562 '
25563 export as_echo_n_body
25564 as_echo_n='sh -c $as_echo_n_body as_echo'
25565 fi
25566 export as_echo_body
25567 as_echo='sh -c $as_echo_body as_echo'
25568 fi
25569
25570 # The user is always right.
25571 if test "${PATH_SEPARATOR+set}" != set; then
25572 PATH_SEPARATOR=:
25573 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25574 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25575 PATH_SEPARATOR=';'
25576 }
25577 fi
25578
25579 # Support unset when possible.
25580 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25581 as_unset=unset
25582 else
25583 as_unset=false
25584 fi
25585
25586
25587 # IFS
25588 # We need space, tab and new line, in precisely that order. Quoting is
25589 # there to prevent editors from complaining about space-tab.
25590 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25591 # splitting by setting IFS to empty value.)
25592 IFS=" "" $as_nl"
25593
25594 # Find who we are. Look in the path if we contain no directory separator.
25595 case $0 in
25596 *[\\/]* ) as_myself=$0 ;;
25597 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25598 for as_dir in $PATH
25599 do
25600 IFS=$as_save_IFS
25601 test -z "$as_dir" && as_dir=.
25602 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25603 done
25604 IFS=$as_save_IFS
25605
25606 ;;
25607 esac
25608 # We did not find ourselves, most probably we were run as `sh COMMAND'
25609 # in which case we are not to be found in the path.
25610 if test "x$as_myself" = x; then
25611 as_myself=$0
25612 fi
25613 if test ! -f "$as_myself"; then
25614 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25615 { (exit 1); exit 1; }
25616 fi
25617
25618 # Work around bugs in pre-3.0 UWIN ksh.
25619 for as_var in ENV MAIL MAILPATH
25620 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25621 done
25622 PS1='$ '
25623 PS2='> '
25624 PS4='+ '
25625
25626 # NLS nuisances.
25627 LC_ALL=C
25628 export LC_ALL
25629 LANGUAGE=C
25630 export LANGUAGE
25631
25632 # Required to use basename.
25633 if expr a : '\(a\)' >/dev/null 2>&1 &&
25634 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25635 as_expr=expr
25636 else
25637 as_expr=false
25638 fi
25639
25640 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25641 as_basename=basename
25642 else
25643 as_basename=false
25644 fi
25645
25646
25647 # Name of the executable.
25648 as_me=`$as_basename -- "$0" ||
25649 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25650 X"$0" : 'X\(//\)$' \| \
25651 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25652 $as_echo X/"$0" |
25653 sed '/^.*\/\([^/][^/]*\)\/*$/{
25654 s//\1/
25655 q
25656 }
25657 /^X\/\(\/\/\)$/{
25658 s//\1/
25659 q
25660 }
25661 /^X\/\(\/\).*/{
25662 s//\1/
25663 q
25664 }
25665 s/.*/./; q'`
25666
25667 # CDPATH.
25668 $as_unset CDPATH
25669
25670
25671
25672 as_lineno_1=$LINENO
25673 as_lineno_2=$LINENO
25674 test "x$as_lineno_1" != "x$as_lineno_2" &&
25675 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25676
25677 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25678 # uniformly replaced by the line number. The first 'sed' inserts a
25679 # line-number line after each line using $LINENO; the second 'sed'
25680 # does the real work. The second script uses 'N' to pair each
25681 # line-number line with the line containing $LINENO, and appends
25682 # trailing '-' during substitution so that $LINENO is not a special
25683 # case at line end.
25684 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25685 # scripts with optimization help from Paolo Bonzini. Blame Lee
25686 # E. McMahon (1931-1989) for sed's syntax. :-)
25687 sed -n '
25688 p
25689 /[$]LINENO/=
25690 ' <$as_myself |
25691 sed '
25692 s/[$]LINENO.*/&-/
25693 t lineno
25694 b
25695 :lineno
25696 N
25697 :loop
25698 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25699 t loop
25700 s/-\n.*//
25701 ' >$as_me.lineno &&
25702 chmod +x "$as_me.lineno" ||
25703 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25704 { (exit 1); exit 1; }; }
25705
25706 # Don't try to exec as it changes $[0], causing all sort of problems
25707 # (the dirname of $[0] is not the place where we might find the
25708 # original and so on. Autoconf is especially sensitive to this).
25709 . "./$as_me.lineno"
25710 # Exit status is that of the last command.
25711 exit
25712 }
25713
25714
25715 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25716 as_dirname=dirname
25717 else
25718 as_dirname=false
25719 fi
25720
25721 ECHO_C= ECHO_N= ECHO_T=
25722 case `echo -n x` in
25723 -n*)
25724 case `echo 'x\c'` in
25725 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25726 *) ECHO_C='\c';;
25727 esac;;
25728 *)
25729 ECHO_N='-n';;
25730 esac
25731 if expr a : '\(a\)' >/dev/null 2>&1 &&
25732 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25733 as_expr=expr
25734 else
25735 as_expr=false
25736 fi
25737
25738 rm -f conf$$ conf$$.exe conf$$.file
25739 if test -d conf$$.dir; then
25740 rm -f conf$$.dir/conf$$.file
25741 else
25742 rm -f conf$$.dir
25743 mkdir conf$$.dir 2>/dev/null
25744 fi
25745 if (echo >conf$$.file) 2>/dev/null; then
25746 if ln -s conf$$.file conf$$ 2>/dev/null; then
25747 as_ln_s='ln -s'
25748 # ... but there are two gotchas:
25749 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25750 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25751 # In both cases, we have to default to `cp -p'.
25752 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25753 as_ln_s='cp -p'
25754 elif ln conf$$.file conf$$ 2>/dev/null; then
25755 as_ln_s=ln
25756 else
25757 as_ln_s='cp -p'
25758 fi
25759 else
25760 as_ln_s='cp -p'
25761 fi
25762 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25763 rmdir conf$$.dir 2>/dev/null
25764
25765 if mkdir -p . 2>/dev/null; then
25766 as_mkdir_p=:
25767 else
25768 test -d ./-p && rmdir ./-p
25769 as_mkdir_p=false
25770 fi
25771
25772 if test -x / >/dev/null 2>&1; then
25773 as_test_x='test -x'
25774 else
25775 if ls -dL / >/dev/null 2>&1; then
25776 as_ls_L_option=L
25777 else
25778 as_ls_L_option=
25779 fi
25780 as_test_x='
25781 eval sh -c '\''
25782 if test -d "$1"; then
25783 test -d "$1/.";
25784 else
25785 case $1 in
25786 -*)set "./$1";;
25787 esac;
25788 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25789 ???[sx]*):;;*)false;;esac;fi
25790 '\'' sh
25791 '
25792 fi
25793 as_executable_p=$as_test_x
25794
25795 # Sed expression to map a string onto a valid CPP name.
25796 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25797
25798 # Sed expression to map a string onto a valid variable name.
25799 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25800
25801
25802 exec 6>&1
25803
25804 # Save the log message, to keep $[0] and so on meaningful, and to
25805 # report actual input values of CONFIG_FILES etc. instead of their
25806 # values after options handling.
25807 ac_log="
25808 This file was extended by $as_me, which was
25809 generated by GNU Autoconf 2.63. Invocation command line was
25810
25811 CONFIG_FILES = $CONFIG_FILES
25812 CONFIG_HEADERS = $CONFIG_HEADERS
25813 CONFIG_LINKS = $CONFIG_LINKS
25814 CONFIG_COMMANDS = $CONFIG_COMMANDS
25815 $ $0 $@
25816
25817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25818 "
25819
25820 _ACEOF
25821
25822 case $ac_config_files in *"
25823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25824 esac
25825
25826 case $ac_config_headers in *"
25827 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25828 esac
25829
25830
25831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25832 # Files that config.status was made for.
25833 config_files="$ac_config_files"
25834 config_headers="$ac_config_headers"
25835 config_commands="$ac_config_commands"
25836
25837 _ACEOF
25838
25839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25840 ac_cs_usage="\
25841 \`$as_me' instantiates files from templates according to the
25842 current configuration.
25843
25844 Usage: $0 [OPTION]... [FILE]...
25845
25846 -h, --help print this help, then exit
25847 -V, --version print version number and configuration settings, then exit
25848 -q, --quiet, --silent
25849 do not print progress messages
25850 -d, --debug don't remove temporary files
25851 --recheck update $as_me by reconfiguring in the same conditions
25852 --file=FILE[:TEMPLATE]
25853 instantiate the configuration file FILE
25854 --header=FILE[:TEMPLATE]
25855 instantiate the configuration header FILE
25856
25857 Configuration files:
25858 $config_files
25859
25860 Configuration headers:
25861 $config_headers
25862
25863 Configuration commands:
25864 $config_commands
25865
25866 Report bugs to <bug-autoconf@gnu.org>."
25867
25868 _ACEOF
25869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25870 ac_cs_version="\\
25871 config.status
25872 configured by $0, generated by GNU Autoconf 2.63,
25873 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25874
25875 Copyright (C) 2008 Free Software Foundation, Inc.
25876 This config.status script is free software; the Free Software Foundation
25877 gives unlimited permission to copy, distribute and modify it."
25878
25879 ac_pwd='$ac_pwd'
25880 srcdir='$srcdir'
25881 INSTALL='$INSTALL'
25882 MKDIR_P='$MKDIR_P'
25883 AWK='$AWK'
25884 test -n "\$AWK" || AWK=awk
25885 _ACEOF
25886
25887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25888 # The default lists apply if the user does not specify any file.
25889 ac_need_defaults=:
25890 while test $# != 0
25891 do
25892 case $1 in
25893 --*=*)
25894 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25895 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25896 ac_shift=:
25897 ;;
25898 *)
25899 ac_option=$1
25900 ac_optarg=$2
25901 ac_shift=shift
25902 ;;
25903 esac
25904
25905 case $ac_option in
25906 # Handling of the options.
25907 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25908 ac_cs_recheck=: ;;
25909 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25910 $as_echo "$ac_cs_version"; exit ;;
25911 --debug | --debu | --deb | --de | --d | -d )
25912 debug=: ;;
25913 --file | --fil | --fi | --f )
25914 $ac_shift
25915 case $ac_optarg in
25916 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25917 esac
25918 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
25919 ac_need_defaults=false;;
25920 --header | --heade | --head | --hea )
25921 $ac_shift
25922 case $ac_optarg in
25923 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25924 esac
25925 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
25926 ac_need_defaults=false;;
25927 --he | --h)
25928 # Conflict between --help and --header
25929 { $as_echo "$as_me: error: ambiguous option: $1
25930 Try \`$0 --help' for more information." >&2
25931 { (exit 1); exit 1; }; };;
25932 --help | --hel | -h )
25933 $as_echo "$ac_cs_usage"; exit ;;
25934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25935 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25936 ac_cs_silent=: ;;
25937
25938 # This is an error.
25939 -*) { $as_echo "$as_me: error: unrecognized option: $1
25940 Try \`$0 --help' for more information." >&2
25941 { (exit 1); exit 1; }; } ;;
25942
25943 *) ac_config_targets="$ac_config_targets $1"
25944 ac_need_defaults=false ;;
25945
25946 esac
25947 shift
25948 done
25949
25950 ac_configure_extra_args=
25951
25952 if $ac_cs_silent; then
25953 exec 6>/dev/null
25954 ac_configure_extra_args="$ac_configure_extra_args --silent"
25955 fi
25956
25957 _ACEOF
25958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25959 if \$ac_cs_recheck; then
25960 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25961 shift
25962 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25963 CONFIG_SHELL='$SHELL'
25964 export CONFIG_SHELL
25965 exec "\$@"
25966 fi
25967
25968 _ACEOF
25969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25970 exec 5>>config.log
25971 {
25972 echo
25973 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25974 ## Running $as_me. ##
25975 _ASBOX
25976 $as_echo "$ac_log"
25977 } >&5
25978
25979 _ACEOF
25980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25981 #
25982 # INIT-COMMANDS
25983 #
25984 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25985
25986
25987 # The HP-UX ksh and POSIX shell print the target directory to stdout
25988 # if CDPATH is set.
25989 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25990
25991 sed_quote_subst='$sed_quote_subst'
25992 double_quote_subst='$double_quote_subst'
25993 delay_variable_subst='$delay_variable_subst'
25994 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25995 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25996 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25997 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25998 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25999 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
26000 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
26001 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
26002 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
26003 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
26004 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
26005 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
26006 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
26007 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
26008 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
26009 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
26010 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
26011 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
26012 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
26013 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
26014 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
26015 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
26016 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
26017 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
26018 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
26019 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
26020 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
26021 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26022 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
26023 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
26024 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
26025 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
26026 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26027 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
26028 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
26029 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26030 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26031 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26032 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
26033 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26034 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
26035 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
26036 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
26037 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
26038 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"`'
26039 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"`'
26040 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
26041 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
26042 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
26043 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
26044 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
26045 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
26046 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
26047 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
26048 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
26049 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
26050 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
26051 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
26052 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
26053 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
26054 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
26055 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
26056 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26057 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26058 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
26059 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
26060 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26061 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26062 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
26063 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26064 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26065 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26066 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26067 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26068 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26069 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
26070 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26071 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26072 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26073 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
26074 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
26075 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
26076 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
26077 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
26078 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26079 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
26080 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
26081 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
26082 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
26083 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
26084 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26085 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26086 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26087 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26088 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
26089 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
26090 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26091 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
26092 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
26093 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26094 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26095 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
26096 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26097 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
26098 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26099 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26100 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26101 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26102 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
26103 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
26104 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26105 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26106 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
26107 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
26108 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
26109 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
26110 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
26111 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
26112
26113 LTCC='$LTCC'
26114 LTCFLAGS='$LTCFLAGS'
26115 compiler='$compiler_DEFAULT'
26116
26117 # Quote evaled strings.
26118 for var in SED \
26119 GREP \
26120 EGREP \
26121 FGREP \
26122 LD \
26123 NM \
26124 LN_S \
26125 lt_SP2NL \
26126 lt_NL2SP \
26127 reload_flag \
26128 OBJDUMP \
26129 deplibs_check_method \
26130 file_magic_cmd \
26131 AR \
26132 AR_FLAGS \
26133 STRIP \
26134 RANLIB \
26135 CC \
26136 CFLAGS \
26137 compiler \
26138 lt_cv_sys_global_symbol_pipe \
26139 lt_cv_sys_global_symbol_to_cdecl \
26140 lt_cv_sys_global_symbol_to_c_name_address \
26141 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26142 SHELL \
26143 ECHO \
26144 lt_prog_compiler_no_builtin_flag \
26145 lt_prog_compiler_wl \
26146 lt_prog_compiler_pic \
26147 lt_prog_compiler_static \
26148 lt_cv_prog_compiler_c_o \
26149 need_locks \
26150 DSYMUTIL \
26151 NMEDIT \
26152 LIPO \
26153 OTOOL \
26154 OTOOL64 \
26155 shrext_cmds \
26156 export_dynamic_flag_spec \
26157 whole_archive_flag_spec \
26158 compiler_needs_object \
26159 with_gnu_ld \
26160 allow_undefined_flag \
26161 no_undefined_flag \
26162 hardcode_libdir_flag_spec \
26163 hardcode_libdir_flag_spec_ld \
26164 hardcode_libdir_separator \
26165 fix_srcfile_path \
26166 exclude_expsyms \
26167 include_expsyms \
26168 file_list_spec \
26169 variables_saved_for_relink \
26170 libname_spec \
26171 library_names_spec \
26172 soname_spec \
26173 finish_eval \
26174 old_striplib \
26175 striplib; do
26176 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26177 *[\\\\\\\`\\"\\\$]*)
26178 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26179 ;;
26180 *)
26181 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26182 ;;
26183 esac
26184 done
26185
26186 # Double-quote double-evaled strings.
26187 for var in reload_cmds \
26188 old_postinstall_cmds \
26189 old_postuninstall_cmds \
26190 old_archive_cmds \
26191 extract_expsyms_cmds \
26192 old_archive_from_new_cmds \
26193 old_archive_from_expsyms_cmds \
26194 archive_cmds \
26195 archive_expsym_cmds \
26196 module_cmds \
26197 module_expsym_cmds \
26198 export_symbols_cmds \
26199 prelink_cmds \
26200 postinstall_cmds \
26201 postuninstall_cmds \
26202 finish_cmds \
26203 sys_lib_search_path_spec \
26204 sys_lib_dlsearch_path_spec; do
26205 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26206 *[\\\\\\\`\\"\\\$]*)
26207 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26208 ;;
26209 *)
26210 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26211 ;;
26212 esac
26213 done
26214
26215 # Fix-up fallback echo if it was mangled by the above quoting rules.
26216 case \$lt_ECHO in
26217 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
26218 ;;
26219 esac
26220
26221 ac_aux_dir='$ac_aux_dir'
26222 xsi_shell='$xsi_shell'
26223 lt_shell_append='$lt_shell_append'
26224
26225 # See if we are running on zsh, and set the options which allow our
26226 # commands through without removal of \ escapes INIT.
26227 if test -n "\${ZSH_VERSION+set}" ; then
26228 setopt NO_GLOB_SUBST
26229 fi
26230
26231
26232 PACKAGE='$PACKAGE'
26233 VERSION='$VERSION'
26234 TIMESTAMP='$TIMESTAMP'
26235 RM='$RM'
26236 ofile='$ofile'
26237
26238
26239
26240
26241 _ACEOF
26242
26243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26244
26245 # Handling of arguments.
26246 for ac_config_target in $ac_config_targets
26247 do
26248 case $ac_config_target in
26249 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
26250 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26251 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26252 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26253 "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
26254 "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
26255 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
26256 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
26257 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
26258 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
26259 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
26260 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26261 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
26262 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
26263 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26264 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
26265 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
26266 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
26267 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
26268 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
26269 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
26270 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
26271 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
26272 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
26273 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
26274 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
26275 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
26276 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
26277 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
26278 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
26279 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
26280 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
26281 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
26282 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
26283 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
26284 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
26285 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
26286 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
26287 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
26288 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
26289 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
26290 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
26291 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
26292 "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
26293 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
26294 "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
26295 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
26296 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
26297 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
26298 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
26299 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
26300 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
26301 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
26302 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
26303 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26304 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
26305 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
26306 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
26307 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
26308 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
26309 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
26310 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
26311 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
26312 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
26313 "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
26314 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
26315 "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
26316 "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
26317 "PKGBUILD-zfs") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs" ;;
26318 "PKGBUILD-zfs-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs-modules" ;;
26319 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
26320 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
26321
26322 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26323 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26324 { (exit 1); exit 1; }; };;
26325 esac
26326 done
26327
26328
26329 # If the user did not use the arguments to specify the items to instantiate,
26330 # then the envvar interface is used. Set only those that are not.
26331 # We use the long form for the default assignment because of an extremely
26332 # bizarre bug on SunOS 4.1.3.
26333 if $ac_need_defaults; then
26334 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26335 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26336 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26337 fi
26338
26339 # Have a temporary directory for convenience. Make it in the build tree
26340 # simply because there is no reason against having it here, and in addition,
26341 # creating and moving files from /tmp can sometimes cause problems.
26342 # Hook for its removal unless debugging.
26343 # Note that there is a small window in which the directory will not be cleaned:
26344 # after its creation but before its name has been assigned to `$tmp'.
26345 $debug ||
26346 {
26347 tmp=
26348 trap 'exit_status=$?
26349 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26350 ' 0
26351 trap '{ (exit 1); exit 1; }' 1 2 13 15
26352 }
26353 # Create a (secure) tmp directory for tmp files.
26354
26355 {
26356 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26357 test -n "$tmp" && test -d "$tmp"
26358 } ||
26359 {
26360 tmp=./conf$$-$RANDOM
26361 (umask 077 && mkdir "$tmp")
26362 } ||
26363 {
26364 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26365 { (exit 1); exit 1; }
26366 }
26367
26368 # Set up the scripts for CONFIG_FILES section.
26369 # No need to generate them if there are no CONFIG_FILES.
26370 # This happens for instance with `./config.status config.h'.
26371 if test -n "$CONFIG_FILES"; then
26372
26373
26374 ac_cr=' '
26375 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26376 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26377 ac_cs_awk_cr='\\r'
26378 else
26379 ac_cs_awk_cr=$ac_cr
26380 fi
26381
26382 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26383 _ACEOF
26384
26385
26386 {
26387 echo "cat >conf$$subs.awk <<_ACEOF" &&
26388 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26389 echo "_ACEOF"
26390 } >conf$$subs.sh ||
26391 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26392 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26393 { (exit 1); exit 1; }; }
26394 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26395 ac_delim='%!_!# '
26396 for ac_last_try in false false false false false :; do
26397 . ./conf$$subs.sh ||
26398 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26399 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26400 { (exit 1); exit 1; }; }
26401
26402 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26403 if test $ac_delim_n = $ac_delim_num; then
26404 break
26405 elif $ac_last_try; then
26406 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26407 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26408 { (exit 1); exit 1; }; }
26409 else
26410 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26411 fi
26412 done
26413 rm -f conf$$subs.sh
26414
26415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26416 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26417 _ACEOF
26418 sed -n '
26419 h
26420 s/^/S["/; s/!.*/"]=/
26421 p
26422 g
26423 s/^[^!]*!//
26424 :repl
26425 t repl
26426 s/'"$ac_delim"'$//
26427 t delim
26428 :nl
26429 h
26430 s/\(.\{148\}\).*/\1/
26431 t more1
26432 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26433 p
26434 n
26435 b repl
26436 :more1
26437 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26438 p
26439 g
26440 s/.\{148\}//
26441 t nl
26442 :delim
26443 h
26444 s/\(.\{148\}\).*/\1/
26445 t more2
26446 s/["\\]/\\&/g; s/^/"/; s/$/"/
26447 p
26448 b
26449 :more2
26450 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26451 p
26452 g
26453 s/.\{148\}//
26454 t delim
26455 ' <conf$$subs.awk | sed '
26456 /^[^""]/{
26457 N
26458 s/\n//
26459 }
26460 ' >>$CONFIG_STATUS || ac_write_fail=1
26461 rm -f conf$$subs.awk
26462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26463 _ACAWK
26464 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26465 for (key in S) S_is_set[key] = 1
26466 FS = "\a"
26467
26468 }
26469 {
26470 line = $ 0
26471 nfields = split(line, field, "@")
26472 substed = 0
26473 len = length(field[1])
26474 for (i = 2; i < nfields; i++) {
26475 key = field[i]
26476 keylen = length(key)
26477 if (S_is_set[key]) {
26478 value = S[key]
26479 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26480 len += length(value) + length(field[++i])
26481 substed = 1
26482 } else
26483 len += 1 + keylen
26484 }
26485
26486 print line
26487 }
26488
26489 _ACAWK
26490 _ACEOF
26491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26492 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26493 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26494 else
26495 cat
26496 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26497 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26498 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26499 { (exit 1); exit 1; }; }
26500 _ACEOF
26501
26502 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26503 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26504 # trailing colons and then remove the whole line if VPATH becomes empty
26505 # (actually we leave an empty line to preserve line numbers).
26506 if test "x$srcdir" = x.; then
26507 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26508 s/:*\$(srcdir):*/:/
26509 s/:*\${srcdir}:*/:/
26510 s/:*@srcdir@:*/:/
26511 s/^\([^=]*=[ ]*\):*/\1/
26512 s/:*$//
26513 s/^[^=]*=[ ]*$//
26514 }'
26515 fi
26516
26517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26518 fi # test -n "$CONFIG_FILES"
26519
26520 # Set up the scripts for CONFIG_HEADERS section.
26521 # No need to generate them if there are no CONFIG_HEADERS.
26522 # This happens for instance with `./config.status Makefile'.
26523 if test -n "$CONFIG_HEADERS"; then
26524 cat >"$tmp/defines.awk" <<\_ACAWK ||
26525 BEGIN {
26526 _ACEOF
26527
26528 # Transform confdefs.h into an awk script `defines.awk', embedded as
26529 # here-document in config.status, that substitutes the proper values into
26530 # config.h.in to produce config.h.
26531
26532 # Create a delimiter string that does not exist in confdefs.h, to ease
26533 # handling of long lines.
26534 ac_delim='%!_!# '
26535 for ac_last_try in false false :; do
26536 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26537 if test -z "$ac_t"; then
26538 break
26539 elif $ac_last_try; then
26540 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26541 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26542 { (exit 1); exit 1; }; }
26543 else
26544 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26545 fi
26546 done
26547
26548 # For the awk script, D is an array of macro values keyed by name,
26549 # likewise P contains macro parameters if any. Preserve backslash
26550 # newline sequences.
26551
26552 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26553 sed -n '
26554 s/.\{148\}/&'"$ac_delim"'/g
26555 t rset
26556 :rset
26557 s/^[ ]*#[ ]*define[ ][ ]*/ /
26558 t def
26559 d
26560 :def
26561 s/\\$//
26562 t bsnl
26563 s/["\\]/\\&/g
26564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26565 D["\1"]=" \3"/p
26566 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26567 d
26568 :bsnl
26569 s/["\\]/\\&/g
26570 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26571 D["\1"]=" \3\\\\\\n"\\/p
26572 t cont
26573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26574 t cont
26575 d
26576 :cont
26577 n
26578 s/.\{148\}/&'"$ac_delim"'/g
26579 t clear
26580 :clear
26581 s/\\$//
26582 t bsnlc
26583 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26584 d
26585 :bsnlc
26586 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26587 b cont
26588 ' <confdefs.h | sed '
26589 s/'"$ac_delim"'/"\\\
26590 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26591
26592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26593 for (key in D) D_is_set[key] = 1
26594 FS = "\a"
26595 }
26596 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26597 line = \$ 0
26598 split(line, arg, " ")
26599 if (arg[1] == "#") {
26600 defundef = arg[2]
26601 mac1 = arg[3]
26602 } else {
26603 defundef = substr(arg[1], 2)
26604 mac1 = arg[2]
26605 }
26606 split(mac1, mac2, "(") #)
26607 macro = mac2[1]
26608 prefix = substr(line, 1, index(line, defundef) - 1)
26609 if (D_is_set[macro]) {
26610 # Preserve the white space surrounding the "#".
26611 print prefix "define", macro P[macro] D[macro]
26612 next
26613 } else {
26614 # Replace #undef with comments. This is necessary, for example,
26615 # in the case of _POSIX_SOURCE, which is predefined and required
26616 # on some systems where configure will not decide to define it.
26617 if (defundef == "undef") {
26618 print "/*", prefix defundef, macro, "*/"
26619 next
26620 }
26621 }
26622 }
26623 { print }
26624 _ACAWK
26625 _ACEOF
26626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26627 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26628 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26629 { (exit 1); exit 1; }; }
26630 fi # test -n "$CONFIG_HEADERS"
26631
26632
26633 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26634 shift
26635 for ac_tag
26636 do
26637 case $ac_tag in
26638 :[FHLC]) ac_mode=$ac_tag; continue;;
26639 esac
26640 case $ac_mode$ac_tag in
26641 :[FHL]*:*);;
26642 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
26643 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
26644 { (exit 1); exit 1; }; };;
26645 :[FH]-) ac_tag=-:-;;
26646 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26647 esac
26648 ac_save_IFS=$IFS
26649 IFS=:
26650 set x $ac_tag
26651 IFS=$ac_save_IFS
26652 shift
26653 ac_file=$1
26654 shift
26655
26656 case $ac_mode in
26657 :L) ac_source=$1;;
26658 :[FH])
26659 ac_file_inputs=
26660 for ac_f
26661 do
26662 case $ac_f in
26663 -) ac_f="$tmp/stdin";;
26664 *) # Look for the file first in the build tree, then in the source tree
26665 # (if the path is not absolute). The absolute path cannot be DOS-style,
26666 # because $ac_f cannot contain `:'.
26667 test -f "$ac_f" ||
26668 case $ac_f in
26669 [\\/$]*) false;;
26670 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26671 esac ||
26672 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26673 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26674 { (exit 1); exit 1; }; };;
26675 esac
26676 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26677 ac_file_inputs="$ac_file_inputs '$ac_f'"
26678 done
26679
26680 # Let's still pretend it is `configure' which instantiates (i.e., don't
26681 # use $as_me), people would be surprised to read:
26682 # /* config.h. Generated by config.status. */
26683 configure_input='Generated from '`
26684 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26685 `' by configure.'
26686 if test x"$ac_file" != x-; then
26687 configure_input="$ac_file. $configure_input"
26688 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26689 $as_echo "$as_me: creating $ac_file" >&6;}
26690 fi
26691 # Neutralize special characters interpreted by sed in replacement strings.
26692 case $configure_input in #(
26693 *\&* | *\|* | *\\* )
26694 ac_sed_conf_input=`$as_echo "$configure_input" |
26695 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26696 *) ac_sed_conf_input=$configure_input;;
26697 esac
26698
26699 case $ac_tag in
26700 *:-:* | *:-) cat >"$tmp/stdin" \
26701 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26702 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26703 { (exit 1); exit 1; }; } ;;
26704 esac
26705 ;;
26706 esac
26707
26708 ac_dir=`$as_dirname -- "$ac_file" ||
26709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26710 X"$ac_file" : 'X\(//\)[^/]' \| \
26711 X"$ac_file" : 'X\(//\)$' \| \
26712 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26713 $as_echo X"$ac_file" |
26714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26715 s//\1/
26716 q
26717 }
26718 /^X\(\/\/\)[^/].*/{
26719 s//\1/
26720 q
26721 }
26722 /^X\(\/\/\)$/{
26723 s//\1/
26724 q
26725 }
26726 /^X\(\/\).*/{
26727 s//\1/
26728 q
26729 }
26730 s/.*/./; q'`
26731 { as_dir="$ac_dir"
26732 case $as_dir in #(
26733 -*) as_dir=./$as_dir;;
26734 esac
26735 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26736 as_dirs=
26737 while :; do
26738 case $as_dir in #(
26739 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26740 *) as_qdir=$as_dir;;
26741 esac
26742 as_dirs="'$as_qdir' $as_dirs"
26743 as_dir=`$as_dirname -- "$as_dir" ||
26744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26745 X"$as_dir" : 'X\(//\)[^/]' \| \
26746 X"$as_dir" : 'X\(//\)$' \| \
26747 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26748 $as_echo X"$as_dir" |
26749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26750 s//\1/
26751 q
26752 }
26753 /^X\(\/\/\)[^/].*/{
26754 s//\1/
26755 q
26756 }
26757 /^X\(\/\/\)$/{
26758 s//\1/
26759 q
26760 }
26761 /^X\(\/\).*/{
26762 s//\1/
26763 q
26764 }
26765 s/.*/./; q'`
26766 test -d "$as_dir" && break
26767 done
26768 test -z "$as_dirs" || eval "mkdir $as_dirs"
26769 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26770 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26771 { (exit 1); exit 1; }; }; }
26772 ac_builddir=.
26773
26774 case "$ac_dir" in
26775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26776 *)
26777 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26778 # A ".." for each directory in $ac_dir_suffix.
26779 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26780 case $ac_top_builddir_sub in
26781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26783 esac ;;
26784 esac
26785 ac_abs_top_builddir=$ac_pwd
26786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26787 # for backward compatibility:
26788 ac_top_builddir=$ac_top_build_prefix
26789
26790 case $srcdir in
26791 .) # We are building in place.
26792 ac_srcdir=.
26793 ac_top_srcdir=$ac_top_builddir_sub
26794 ac_abs_top_srcdir=$ac_pwd ;;
26795 [\\/]* | ?:[\\/]* ) # Absolute name.
26796 ac_srcdir=$srcdir$ac_dir_suffix;
26797 ac_top_srcdir=$srcdir
26798 ac_abs_top_srcdir=$srcdir ;;
26799 *) # Relative name.
26800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26801 ac_top_srcdir=$ac_top_build_prefix$srcdir
26802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26803 esac
26804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26805
26806
26807 case $ac_mode in
26808 :F)
26809 #
26810 # CONFIG_FILE
26811 #
26812
26813 case $INSTALL in
26814 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26815 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26816 esac
26817 ac_MKDIR_P=$MKDIR_P
26818 case $MKDIR_P in
26819 [\\/$]* | ?:[\\/]* ) ;;
26820 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26821 esac
26822 _ACEOF
26823
26824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26825 # If the template does not know about datarootdir, expand it.
26826 # FIXME: This hack should be removed a few years after 2.60.
26827 ac_datarootdir_hack=; ac_datarootdir_seen=
26828
26829 ac_sed_dataroot='
26830 /datarootdir/ {
26831 p
26832 q
26833 }
26834 /@datadir@/p
26835 /@docdir@/p
26836 /@infodir@/p
26837 /@localedir@/p
26838 /@mandir@/p
26839 '
26840 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26841 *datarootdir*) ac_datarootdir_seen=yes;;
26842 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26843 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26844 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26845 _ACEOF
26846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26847 ac_datarootdir_hack='
26848 s&@datadir@&$datadir&g
26849 s&@docdir@&$docdir&g
26850 s&@infodir@&$infodir&g
26851 s&@localedir@&$localedir&g
26852 s&@mandir@&$mandir&g
26853 s&\\\${datarootdir}&$datarootdir&g' ;;
26854 esac
26855 _ACEOF
26856
26857 # Neutralize VPATH when `$srcdir' = `.'.
26858 # Shell code in configure.ac might set extrasub.
26859 # FIXME: do we really want to maintain this feature?
26860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26861 ac_sed_extra="$ac_vpsub
26862 $extrasub
26863 _ACEOF
26864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26865 :t
26866 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26867 s|@configure_input@|$ac_sed_conf_input|;t t
26868 s&@top_builddir@&$ac_top_builddir_sub&;t t
26869 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26870 s&@srcdir@&$ac_srcdir&;t t
26871 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26872 s&@top_srcdir@&$ac_top_srcdir&;t t
26873 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26874 s&@builddir@&$ac_builddir&;t t
26875 s&@abs_builddir@&$ac_abs_builddir&;t t
26876 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26877 s&@INSTALL@&$ac_INSTALL&;t t
26878 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26879 $ac_datarootdir_hack
26880 "
26881 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26882 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26883 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26884 { (exit 1); exit 1; }; }
26885
26886 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26887 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26888 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26889 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26890 which seems to be undefined. Please make sure it is defined." >&5
26891 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26892 which seems to be undefined. Please make sure it is defined." >&2;}
26893
26894 rm -f "$tmp/stdin"
26895 case $ac_file in
26896 -) cat "$tmp/out" && rm -f "$tmp/out";;
26897 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26898 esac \
26899 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26900 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26901 { (exit 1); exit 1; }; }
26902 ;;
26903 :H)
26904 #
26905 # CONFIG_HEADER
26906 #
26907 if test x"$ac_file" != x-; then
26908 {
26909 $as_echo "/* $configure_input */" \
26910 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26911 } >"$tmp/config.h" \
26912 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26913 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26914 { (exit 1); exit 1; }; }
26915 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26916 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26917 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26918 else
26919 rm -f "$ac_file"
26920 mv "$tmp/config.h" "$ac_file" \
26921 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26922 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26923 { (exit 1); exit 1; }; }
26924 fi
26925 else
26926 $as_echo "/* $configure_input */" \
26927 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26928 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26929 $as_echo "$as_me: error: could not create -" >&2;}
26930 { (exit 1); exit 1; }; }
26931 fi
26932 # Compute "$ac_file"'s index in $config_headers.
26933 _am_arg="$ac_file"
26934 _am_stamp_count=1
26935 for _am_header in $config_headers :; do
26936 case $_am_header in
26937 $_am_arg | $_am_arg:* )
26938 break ;;
26939 * )
26940 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26941 esac
26942 done
26943 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26944 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26945 X"$_am_arg" : 'X\(//\)[^/]' \| \
26946 X"$_am_arg" : 'X\(//\)$' \| \
26947 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26948 $as_echo X"$_am_arg" |
26949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26950 s//\1/
26951 q
26952 }
26953 /^X\(\/\/\)[^/].*/{
26954 s//\1/
26955 q
26956 }
26957 /^X\(\/\/\)$/{
26958 s//\1/
26959 q
26960 }
26961 /^X\(\/\).*/{
26962 s//\1/
26963 q
26964 }
26965 s/.*/./; q'`/stamp-h$_am_stamp_count
26966 ;;
26967
26968 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26969 $as_echo "$as_me: executing $ac_file commands" >&6;}
26970 ;;
26971 esac
26972
26973
26974 case $ac_file$ac_mode in
26975 "zfs_config.h":H)
26976 (mv zfs_config.h zfs_config.h.tmp &&
26977 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
26978 rm zfs_config.h.tmp) || exit 1 ;;
26979 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26980 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26981 # are listed without --file. Let's play safe and only enable the eval
26982 # if we detect the quoting.
26983 case $CONFIG_FILES in
26984 *\'*) eval set x "$CONFIG_FILES" ;;
26985 *) set x $CONFIG_FILES ;;
26986 esac
26987 shift
26988 for mf
26989 do
26990 # Strip MF so we end up with the name of the file.
26991 mf=`echo "$mf" | sed -e 's/:.*$//'`
26992 # Check whether this is an Automake generated Makefile or not.
26993 # We used to match only the files named `Makefile.in', but
26994 # some people rename them; so instead we look at the file content.
26995 # Grep'ing the first line is not enough: some people post-process
26996 # each Makefile.in and add a new line on top of each file to say so.
26997 # Grep'ing the whole file is not good either: AIX grep has a line
26998 # limit of 2048, but all sed's we know have understand at least 4000.
26999 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27000 dirpart=`$as_dirname -- "$mf" ||
27001 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27002 X"$mf" : 'X\(//\)[^/]' \| \
27003 X"$mf" : 'X\(//\)$' \| \
27004 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27005 $as_echo X"$mf" |
27006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27007 s//\1/
27008 q
27009 }
27010 /^X\(\/\/\)[^/].*/{
27011 s//\1/
27012 q
27013 }
27014 /^X\(\/\/\)$/{
27015 s//\1/
27016 q
27017 }
27018 /^X\(\/\).*/{
27019 s//\1/
27020 q
27021 }
27022 s/.*/./; q'`
27023 else
27024 continue
27025 fi
27026 # Extract the definition of DEPDIR, am__include, and am__quote
27027 # from the Makefile without running `make'.
27028 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27029 test -z "$DEPDIR" && continue
27030 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27031 test -z "am__include" && continue
27032 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27033 # When using ansi2knr, U may be empty or an underscore; expand it
27034 U=`sed -n 's/^U = //p' < "$mf"`
27035 # Find all dependency output files, they are included files with
27036 # $(DEPDIR) in their names. We invoke sed twice because it is the
27037 # simplest approach to changing $(DEPDIR) to its actual value in the
27038 # expansion.
27039 for file in `sed -n "
27040 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27041 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27042 # Make sure the directory exists.
27043 test -f "$dirpart/$file" && continue
27044 fdir=`$as_dirname -- "$file" ||
27045 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27046 X"$file" : 'X\(//\)[^/]' \| \
27047 X"$file" : 'X\(//\)$' \| \
27048 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27049 $as_echo X"$file" |
27050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27051 s//\1/
27052 q
27053 }
27054 /^X\(\/\/\)[^/].*/{
27055 s//\1/
27056 q
27057 }
27058 /^X\(\/\/\)$/{
27059 s//\1/
27060 q
27061 }
27062 /^X\(\/\).*/{
27063 s//\1/
27064 q
27065 }
27066 s/.*/./; q'`
27067 { as_dir=$dirpart/$fdir
27068 case $as_dir in #(
27069 -*) as_dir=./$as_dir;;
27070 esac
27071 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27072 as_dirs=
27073 while :; do
27074 case $as_dir in #(
27075 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27076 *) as_qdir=$as_dir;;
27077 esac
27078 as_dirs="'$as_qdir' $as_dirs"
27079 as_dir=`$as_dirname -- "$as_dir" ||
27080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27081 X"$as_dir" : 'X\(//\)[^/]' \| \
27082 X"$as_dir" : 'X\(//\)$' \| \
27083 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27084 $as_echo X"$as_dir" |
27085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27086 s//\1/
27087 q
27088 }
27089 /^X\(\/\/\)[^/].*/{
27090 s//\1/
27091 q
27092 }
27093 /^X\(\/\/\)$/{
27094 s//\1/
27095 q
27096 }
27097 /^X\(\/\).*/{
27098 s//\1/
27099 q
27100 }
27101 s/.*/./; q'`
27102 test -d "$as_dir" && break
27103 done
27104 test -z "$as_dirs" || eval "mkdir $as_dirs"
27105 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27106 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27107 { (exit 1); exit 1; }; }; }
27108 # echo "creating $dirpart/$file"
27109 echo '# dummy' > "$dirpart/$file"
27110 done
27111 done
27112 }
27113 ;;
27114 "libtool":C)
27115
27116 # See if we are running on zsh, and set the options which allow our
27117 # commands through without removal of \ escapes.
27118 if test -n "${ZSH_VERSION+set}" ; then
27119 setopt NO_GLOB_SUBST
27120 fi
27121
27122 cfgfile="${ofile}T"
27123 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27124 $RM "$cfgfile"
27125
27126 cat <<_LT_EOF >> "$cfgfile"
27127 #! $SHELL
27128
27129 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27130 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27131 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27132 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27133 #
27134 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27135 # 2006, 2007, 2008 Free Software Foundation, Inc.
27136 # Written by Gordon Matzigkeit, 1996
27137 #
27138 # This file is part of GNU Libtool.
27139 #
27140 # GNU Libtool is free software; you can redistribute it and/or
27141 # modify it under the terms of the GNU General Public License as
27142 # published by the Free Software Foundation; either version 2 of
27143 # the License, or (at your option) any later version.
27144 #
27145 # As a special exception to the GNU General Public License,
27146 # if you distribute this file as part of a program or library that
27147 # is built using GNU Libtool, you may include this file under the
27148 # same distribution terms that you use for the rest of that program.
27149 #
27150 # GNU Libtool is distributed in the hope that it will be useful,
27151 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27152 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27153 # GNU General Public License for more details.
27154 #
27155 # You should have received a copy of the GNU General Public License
27156 # along with GNU Libtool; see the file COPYING. If not, a copy
27157 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27158 # obtained by writing to the Free Software Foundation, Inc.,
27159 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27160
27161
27162 # The names of the tagged configurations supported by this script.
27163 available_tags=""
27164
27165 # ### BEGIN LIBTOOL CONFIG
27166
27167 # Which release of libtool.m4 was used?
27168 macro_version=$macro_version
27169 macro_revision=$macro_revision
27170
27171 # Whether or not to build shared libraries.
27172 build_libtool_libs=$enable_shared
27173
27174 # Whether or not to build static libraries.
27175 build_old_libs=$enable_static
27176
27177 # What type of objects to build.
27178 pic_mode=$pic_mode
27179
27180 # Whether or not to optimize for fast installation.
27181 fast_install=$enable_fast_install
27182
27183 # The host system.
27184 host_alias=$host_alias
27185 host=$host
27186 host_os=$host_os
27187
27188 # The build system.
27189 build_alias=$build_alias
27190 build=$build
27191 build_os=$build_os
27192
27193 # A sed program that does not truncate output.
27194 SED=$lt_SED
27195
27196 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27197 Xsed="\$SED -e 1s/^X//"
27198
27199 # A grep program that handles long lines.
27200 GREP=$lt_GREP
27201
27202 # An ERE matcher.
27203 EGREP=$lt_EGREP
27204
27205 # A literal string matcher.
27206 FGREP=$lt_FGREP
27207
27208 # A BSD- or MS-compatible name lister.
27209 NM=$lt_NM
27210
27211 # Whether we need soft or hard links.
27212 LN_S=$lt_LN_S
27213
27214 # What is the maximum length of a command?
27215 max_cmd_len=$max_cmd_len
27216
27217 # Object file suffix (normally "o").
27218 objext=$ac_objext
27219
27220 # Executable file suffix (normally "").
27221 exeext=$exeext
27222
27223 # whether the shell understands "unset".
27224 lt_unset=$lt_unset
27225
27226 # turn spaces into newlines.
27227 SP2NL=$lt_lt_SP2NL
27228
27229 # turn newlines into spaces.
27230 NL2SP=$lt_lt_NL2SP
27231
27232 # How to create reloadable object files.
27233 reload_flag=$lt_reload_flag
27234 reload_cmds=$lt_reload_cmds
27235
27236 # An object symbol dumper.
27237 OBJDUMP=$lt_OBJDUMP
27238
27239 # Method to check whether dependent libraries are shared objects.
27240 deplibs_check_method=$lt_deplibs_check_method
27241
27242 # Command to use when deplibs_check_method == "file_magic".
27243 file_magic_cmd=$lt_file_magic_cmd
27244
27245 # The archiver.
27246 AR=$lt_AR
27247 AR_FLAGS=$lt_AR_FLAGS
27248
27249 # A symbol stripping program.
27250 STRIP=$lt_STRIP
27251
27252 # Commands used to install an old-style archive.
27253 RANLIB=$lt_RANLIB
27254 old_postinstall_cmds=$lt_old_postinstall_cmds
27255 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27256
27257 # A C compiler.
27258 LTCC=$lt_CC
27259
27260 # LTCC compiler flags.
27261 LTCFLAGS=$lt_CFLAGS
27262
27263 # Take the output of nm and produce a listing of raw symbols and C names.
27264 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27265
27266 # Transform the output of nm in a proper C declaration.
27267 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27268
27269 # Transform the output of nm in a C name address pair.
27270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27271
27272 # Transform the output of nm in a C name address pair when lib prefix is needed.
27273 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27274
27275 # The name of the directory that contains temporary libtool files.
27276 objdir=$objdir
27277
27278 # Shell to use when invoking shell scripts.
27279 SHELL=$lt_SHELL
27280
27281 # An echo program that does not interpret backslashes.
27282 ECHO=$lt_ECHO
27283
27284 # Used to examine libraries when file_magic_cmd begins with "file".
27285 MAGIC_CMD=$MAGIC_CMD
27286
27287 # Must we lock files when doing compilation?
27288 need_locks=$lt_need_locks
27289
27290 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27291 DSYMUTIL=$lt_DSYMUTIL
27292
27293 # Tool to change global to local symbols on Mac OS X.
27294 NMEDIT=$lt_NMEDIT
27295
27296 # Tool to manipulate fat objects and archives on Mac OS X.
27297 LIPO=$lt_LIPO
27298
27299 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27300 OTOOL=$lt_OTOOL
27301
27302 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27303 OTOOL64=$lt_OTOOL64
27304
27305 # Old archive suffix (normally "a").
27306 libext=$libext
27307
27308 # Shared library suffix (normally ".so").
27309 shrext_cmds=$lt_shrext_cmds
27310
27311 # The commands to extract the exported symbol list from a shared archive.
27312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27313
27314 # Variables whose values should be saved in libtool wrapper scripts and
27315 # restored at link time.
27316 variables_saved_for_relink=$lt_variables_saved_for_relink
27317
27318 # Do we need the "lib" prefix for modules?
27319 need_lib_prefix=$need_lib_prefix
27320
27321 # Do we need a version for libraries?
27322 need_version=$need_version
27323
27324 # Library versioning type.
27325 version_type=$version_type
27326
27327 # Shared library runtime path variable.
27328 runpath_var=$runpath_var
27329
27330 # Shared library path variable.
27331 shlibpath_var=$shlibpath_var
27332
27333 # Is shlibpath searched before the hard-coded library search path?
27334 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27335
27336 # Format of library name prefix.
27337 libname_spec=$lt_libname_spec
27338
27339 # List of archive names. First name is the real one, the rest are links.
27340 # The last name is the one that the linker finds with -lNAME
27341 library_names_spec=$lt_library_names_spec
27342
27343 # The coded name of the library, if different from the real name.
27344 soname_spec=$lt_soname_spec
27345
27346 # Command to use after installation of a shared archive.
27347 postinstall_cmds=$lt_postinstall_cmds
27348
27349 # Command to use after uninstallation of a shared archive.
27350 postuninstall_cmds=$lt_postuninstall_cmds
27351
27352 # Commands used to finish a libtool library installation in a directory.
27353 finish_cmds=$lt_finish_cmds
27354
27355 # As "finish_cmds", except a single script fragment to be evaled but
27356 # not shown.
27357 finish_eval=$lt_finish_eval
27358
27359 # Whether we should hardcode library paths into libraries.
27360 hardcode_into_libs=$hardcode_into_libs
27361
27362 # Compile-time system search path for libraries.
27363 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27364
27365 # Run-time system search path for libraries.
27366 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27367
27368 # Whether dlopen is supported.
27369 dlopen_support=$enable_dlopen
27370
27371 # Whether dlopen of programs is supported.
27372 dlopen_self=$enable_dlopen_self
27373
27374 # Whether dlopen of statically linked programs is supported.
27375 dlopen_self_static=$enable_dlopen_self_static
27376
27377 # Commands to strip libraries.
27378 old_striplib=$lt_old_striplib
27379 striplib=$lt_striplib
27380
27381
27382 # The linker used to build libraries.
27383 LD=$lt_LD
27384
27385 # Commands used to build an old-style archive.
27386 old_archive_cmds=$lt_old_archive_cmds
27387
27388 # A language specific compiler.
27389 CC=$lt_compiler
27390
27391 # Is the compiler the GNU compiler?
27392 with_gcc=$GCC
27393
27394 # Compiler flag to turn off builtin functions.
27395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27396
27397 # How to pass a linker flag through the compiler.
27398 wl=$lt_lt_prog_compiler_wl
27399
27400 # Additional compiler flags for building library objects.
27401 pic_flag=$lt_lt_prog_compiler_pic
27402
27403 # Compiler flag to prevent dynamic linking.
27404 link_static_flag=$lt_lt_prog_compiler_static
27405
27406 # Does compiler simultaneously support -c and -o options?
27407 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27408
27409 # Whether or not to add -lc for building shared libraries.
27410 build_libtool_need_lc=$archive_cmds_need_lc
27411
27412 # Whether or not to disallow shared libs when runtime libs are static.
27413 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27414
27415 # Compiler flag to allow reflexive dlopens.
27416 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27417
27418 # Compiler flag to generate shared objects directly from archives.
27419 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27420
27421 # Whether the compiler copes with passing no objects directly.
27422 compiler_needs_object=$lt_compiler_needs_object
27423
27424 # Create an old-style archive from a shared archive.
27425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27426
27427 # Create a temporary old-style archive to link instead of a shared archive.
27428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27429
27430 # Commands used to build a shared archive.
27431 archive_cmds=$lt_archive_cmds
27432 archive_expsym_cmds=$lt_archive_expsym_cmds
27433
27434 # Commands used to build a loadable module if different from building
27435 # a shared archive.
27436 module_cmds=$lt_module_cmds
27437 module_expsym_cmds=$lt_module_expsym_cmds
27438
27439 # Whether we are building with GNU ld or not.
27440 with_gnu_ld=$lt_with_gnu_ld
27441
27442 # Flag that allows shared libraries with undefined symbols to be built.
27443 allow_undefined_flag=$lt_allow_undefined_flag
27444
27445 # Flag that enforces no undefined symbols.
27446 no_undefined_flag=$lt_no_undefined_flag
27447
27448 # Flag to hardcode \$libdir into a binary during linking.
27449 # This must work even if \$libdir does not exist
27450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27451
27452 # If ld is used when linking, flag to hardcode \$libdir into a binary
27453 # during linking. This must work even if \$libdir does not exist.
27454 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27455
27456 # Whether we need a single "-rpath" flag with a separated argument.
27457 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27458
27459 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27460 # DIR into the resulting binary.
27461 hardcode_direct=$hardcode_direct
27462
27463 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27464 # DIR into the resulting binary and the resulting library dependency is
27465 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27466 # library is relocated.
27467 hardcode_direct_absolute=$hardcode_direct_absolute
27468
27469 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27470 # into the resulting binary.
27471 hardcode_minus_L=$hardcode_minus_L
27472
27473 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27474 # into the resulting binary.
27475 hardcode_shlibpath_var=$hardcode_shlibpath_var
27476
27477 # Set to "yes" if building a shared library automatically hardcodes DIR
27478 # into the library and all subsequent libraries and executables linked
27479 # against it.
27480 hardcode_automatic=$hardcode_automatic
27481
27482 # Set to yes if linker adds runtime paths of dependent libraries
27483 # to runtime path list.
27484 inherit_rpath=$inherit_rpath
27485
27486 # Whether libtool must link a program against all its dependency libraries.
27487 link_all_deplibs=$link_all_deplibs
27488
27489 # Fix the shell variable \$srcfile for the compiler.
27490 fix_srcfile_path=$lt_fix_srcfile_path
27491
27492 # Set to "yes" if exported symbols are required.
27493 always_export_symbols=$always_export_symbols
27494
27495 # The commands to list exported symbols.
27496 export_symbols_cmds=$lt_export_symbols_cmds
27497
27498 # Symbols that should not be listed in the preloaded symbols.
27499 exclude_expsyms=$lt_exclude_expsyms
27500
27501 # Symbols that must always be exported.
27502 include_expsyms=$lt_include_expsyms
27503
27504 # Commands necessary for linking programs (against libraries) with templates.
27505 prelink_cmds=$lt_prelink_cmds
27506
27507 # Specify filename containing input files.
27508 file_list_spec=$lt_file_list_spec
27509
27510 # How to hardcode a shared library path into an executable.
27511 hardcode_action=$hardcode_action
27512
27513 # ### END LIBTOOL CONFIG
27514
27515 _LT_EOF
27516
27517 case $host_os in
27518 aix3*)
27519 cat <<\_LT_EOF >> "$cfgfile"
27520 # AIX sometimes has problems with the GCC collect2 program. For some
27521 # reason, if we set the COLLECT_NAMES environment variable, the problems
27522 # vanish in a puff of smoke.
27523 if test "X${COLLECT_NAMES+set}" != Xset; then
27524 COLLECT_NAMES=
27525 export COLLECT_NAMES
27526 fi
27527 _LT_EOF
27528 ;;
27529 esac
27530
27531
27532 ltmain="$ac_aux_dir/ltmain.sh"
27533
27534
27535 # We use sed instead of cat because bash on DJGPP gets confused if
27536 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27537 # text mode, it properly converts lines to CR/LF. This bash problem
27538 # is reportedly fixed, but why not run on old versions too?
27539 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27540 || (rm -f "$cfgfile"; exit 1)
27541
27542 case $xsi_shell in
27543 yes)
27544 cat << \_LT_EOF >> "$cfgfile"
27545
27546 # func_dirname file append nondir_replacement
27547 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27548 # otherwise set result to NONDIR_REPLACEMENT.
27549 func_dirname ()
27550 {
27551 case ${1} in
27552 */*) func_dirname_result="${1%/*}${2}" ;;
27553 * ) func_dirname_result="${3}" ;;
27554 esac
27555 }
27556
27557 # func_basename file
27558 func_basename ()
27559 {
27560 func_basename_result="${1##*/}"
27561 }
27562
27563 # func_dirname_and_basename file append nondir_replacement
27564 # perform func_basename and func_dirname in a single function
27565 # call:
27566 # dirname: Compute the dirname of FILE. If nonempty,
27567 # add APPEND to the result, otherwise set result
27568 # to NONDIR_REPLACEMENT.
27569 # value returned in "$func_dirname_result"
27570 # basename: Compute filename of FILE.
27571 # value retuned in "$func_basename_result"
27572 # Implementation must be kept synchronized with func_dirname
27573 # and func_basename. For efficiency, we do not delegate to
27574 # those functions but instead duplicate the functionality here.
27575 func_dirname_and_basename ()
27576 {
27577 case ${1} in
27578 */*) func_dirname_result="${1%/*}${2}" ;;
27579 * ) func_dirname_result="${3}" ;;
27580 esac
27581 func_basename_result="${1##*/}"
27582 }
27583
27584 # func_stripname prefix suffix name
27585 # strip PREFIX and SUFFIX off of NAME.
27586 # PREFIX and SUFFIX must not contain globbing or regex special
27587 # characters, hashes, percent signs, but SUFFIX may contain a leading
27588 # dot (in which case that matches only a dot).
27589 func_stripname ()
27590 {
27591 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27592 # positional parameters, so assign one to ordinary parameter first.
27593 func_stripname_result=${3}
27594 func_stripname_result=${func_stripname_result#"${1}"}
27595 func_stripname_result=${func_stripname_result%"${2}"}
27596 }
27597
27598 # func_opt_split
27599 func_opt_split ()
27600 {
27601 func_opt_split_opt=${1%%=*}
27602 func_opt_split_arg=${1#*=}
27603 }
27604
27605 # func_lo2o object
27606 func_lo2o ()
27607 {
27608 case ${1} in
27609 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27610 *) func_lo2o_result=${1} ;;
27611 esac
27612 }
27613
27614 # func_xform libobj-or-source
27615 func_xform ()
27616 {
27617 func_xform_result=${1%.*}.lo
27618 }
27619
27620 # func_arith arithmetic-term...
27621 func_arith ()
27622 {
27623 func_arith_result=$(( $* ))
27624 }
27625
27626 # func_len string
27627 # STRING may not start with a hyphen.
27628 func_len ()
27629 {
27630 func_len_result=${#1}
27631 }
27632
27633 _LT_EOF
27634 ;;
27635 *) # Bourne compatible functions.
27636 cat << \_LT_EOF >> "$cfgfile"
27637
27638 # func_dirname file append nondir_replacement
27639 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27640 # otherwise set result to NONDIR_REPLACEMENT.
27641 func_dirname ()
27642 {
27643 # Extract subdirectory from the argument.
27644 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27645 if test "X$func_dirname_result" = "X${1}"; then
27646 func_dirname_result="${3}"
27647 else
27648 func_dirname_result="$func_dirname_result${2}"
27649 fi
27650 }
27651
27652 # func_basename file
27653 func_basename ()
27654 {
27655 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27656 }
27657
27658
27659 # func_stripname prefix suffix name
27660 # strip PREFIX and SUFFIX off of NAME.
27661 # PREFIX and SUFFIX must not contain globbing or regex special
27662 # characters, hashes, percent signs, but SUFFIX may contain a leading
27663 # dot (in which case that matches only a dot).
27664 # func_strip_suffix prefix name
27665 func_stripname ()
27666 {
27667 case ${2} in
27668 .*) func_stripname_result=`$ECHO "X${3}" \
27669 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27670 *) func_stripname_result=`$ECHO "X${3}" \
27671 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27672 esac
27673 }
27674
27675 # sed scripts:
27676 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27677 my_sed_long_arg='1s/^-[^=]*=//'
27678
27679 # func_opt_split
27680 func_opt_split ()
27681 {
27682 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27683 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27684 }
27685
27686 # func_lo2o object
27687 func_lo2o ()
27688 {
27689 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27690 }
27691
27692 # func_xform libobj-or-source
27693 func_xform ()
27694 {
27695 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27696 }
27697
27698 # func_arith arithmetic-term...
27699 func_arith ()
27700 {
27701 func_arith_result=`expr "$@"`
27702 }
27703
27704 # func_len string
27705 # STRING may not start with a hyphen.
27706 func_len ()
27707 {
27708 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27709 }
27710
27711 _LT_EOF
27712 esac
27713
27714 case $lt_shell_append in
27715 yes)
27716 cat << \_LT_EOF >> "$cfgfile"
27717
27718 # func_append var value
27719 # Append VALUE to the end of shell variable VAR.
27720 func_append ()
27721 {
27722 eval "$1+=\$2"
27723 }
27724 _LT_EOF
27725 ;;
27726 *)
27727 cat << \_LT_EOF >> "$cfgfile"
27728
27729 # func_append var value
27730 # Append VALUE to the end of shell variable VAR.
27731 func_append ()
27732 {
27733 eval "$1=\$$1\$2"
27734 }
27735
27736 _LT_EOF
27737 ;;
27738 esac
27739
27740
27741 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27742 || (rm -f "$cfgfile"; exit 1)
27743
27744 mv -f "$cfgfile" "$ofile" ||
27745 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27746 chmod +x "$ofile"
27747
27748 ;;
27749
27750 esac
27751 done # for ac_tag
27752
27753
27754 { (exit 0); exit 0; }
27755 _ACEOF
27756 chmod +x $CONFIG_STATUS
27757 ac_clean_files=$ac_clean_files_save
27758
27759 test $ac_write_fail = 0 ||
27760 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27761 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27762 { (exit 1); exit 1; }; }
27763
27764
27765 # configure is writing to config.log, and then calls config.status.
27766 # config.status does its own redirection, appending to config.log.
27767 # Unfortunately, on DOS this fails, as config.log is still kept open
27768 # by configure, so config.status won't be able to write to it; its
27769 # output is simply discarded. So we exec the FD to /dev/null,
27770 # effectively closing config.log, so it can be properly (re)opened and
27771 # appended to by config.status. When coming back to configure, we
27772 # need to make the FD available again.
27773 if test "$no_create" != yes; then
27774 ac_cs_success=:
27775 ac_config_status_args=
27776 test "$silent" = yes &&
27777 ac_config_status_args="$ac_config_status_args --quiet"
27778 exec 5>/dev/null
27779 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27780 exec 5>>config.log
27781 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27782 # would make configure fail if this is the last instruction.
27783 $ac_cs_success || { (exit 1); exit 1; }
27784 fi
27785 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27786 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27787 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27788 fi
27789