]> git.proxmox.com Git - mirror_zfs-debian.git/blob - configure
Move zfs.release generation to configure step
[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 symbol blkdev_get_by_path is exported" >&5
12844 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12845 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12846 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12847 rc=$?
12848 if test $rc -ne 0; then
12849
12850 export=0
12851 for file in fs/block_dev.c; do
12852 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
12853 rc=$?
12854 if test $rc -eq 0; then
12855
12856 export=1
12857 break;
12858
12859 fi
12860
12861 done
12862 if test $export -eq 0; then
12863
12864 { $as_echo "$as_me:$LINENO: result: no" >&5
12865 $as_echo "no" >&6; }
12866
12867
12868 else
12869
12870 { $as_echo "$as_me:$LINENO: result: yes" >&5
12871 $as_echo "yes" >&6; }
12872
12873 cat >>confdefs.h <<\_ACEOF
12874 #define HAVE_BLKDEV_GET_BY_PATH 1
12875 _ACEOF
12876
12877
12878 fi
12879
12880
12881 else
12882
12883 { $as_echo "$as_me:$LINENO: result: yes" >&5
12884 $as_echo "yes" >&6; }
12885
12886 cat >>confdefs.h <<\_ACEOF
12887 #define HAVE_BLKDEV_GET_BY_PATH 1
12888 _ACEOF
12889
12890
12891 fi
12892
12893
12894
12895
12896 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12897 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12898 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12899 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12900 rc=$?
12901 if test $rc -ne 0; then
12902
12903 export=0
12904 for file in fs/block_dev.c; do
12905 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12906 rc=$?
12907 if test $rc -eq 0; then
12908
12909 export=1
12910 break;
12911
12912 fi
12913
12914 done
12915 if test $export -eq 0; then
12916
12917 { $as_echo "$as_me:$LINENO: result: no" >&5
12918 $as_echo "no" >&6; }
12919
12920
12921 else
12922
12923 { $as_echo "$as_me:$LINENO: result: yes" >&5
12924 $as_echo "yes" >&6; }
12925
12926 cat >>confdefs.h <<\_ACEOF
12927 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12928 _ACEOF
12929
12930
12931 fi
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_OPEN_BDEV_EXCLUSIVE 1
12941 _ACEOF
12942
12943
12944 fi
12945
12946
12947
12948
12949 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12950 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12951
12952
12953 cat confdefs.h - <<_ACEOF >conftest.c
12954 /* confdefs.h. */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12959
12960
12961 #include <linux/buffer_head.h>
12962
12963 int
12964 main (void)
12965 {
12966
12967 struct block_device *bdev = NULL;
12968 invalidate_bdev(bdev);
12969
12970 ;
12971 return 0;
12972 }
12973
12974 _ACEOF
12975
12976
12977 rm -Rf build && mkdir -p build
12978 echo "obj-m := conftest.o" >build/Makefile
12979 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'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; }; then
12990
12991 { $as_echo "$as_me:$LINENO: result: yes" >&5
12992 $as_echo "yes" >&6; }
12993
12994 cat >>confdefs.h <<\_ACEOF
12995 #define HAVE_1ARG_INVALIDATE_BDEV 1
12996 _ACEOF
12997
12998
12999 else
13000 $as_echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13002
13003 { $as_echo "$as_me:$LINENO: result: no" >&5
13004 $as_echo "no" >&6; }
13005
13006
13007
13008 fi
13009
13010 rm -Rf build
13011
13012
13013
13014
13015 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
13016 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
13017 tmp_flags="$EXTRA_KCFLAGS"
13018 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13019
13020
13021 cat confdefs.h - <<_ACEOF >conftest.c
13022 /* confdefs.h. */
13023 _ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13027
13028
13029 #include <linux/blkdev.h>
13030
13031 int
13032 main (void)
13033 {
13034
13035 struct block_device *bdev = NULL;
13036 bdev_logical_block_size(bdev);
13037
13038 ;
13039 return 0;
13040 }
13041
13042 _ACEOF
13043
13044
13045 rm -Rf build && mkdir -p build
13046 echo "obj-m := conftest.o" >build/Makefile
13047 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'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13050 ac_status=$?
13051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058
13059 { $as_echo "$as_me:$LINENO: result: yes" >&5
13060 $as_echo "yes" >&6; }
13061
13062 cat >>confdefs.h <<\_ACEOF
13063 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
13064 _ACEOF
13065
13066
13067 else
13068 $as_echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13070
13071 { $as_echo "$as_me:$LINENO: result: no" >&5
13072 $as_echo "no" >&6; }
13073
13074
13075
13076 fi
13077
13078 rm -Rf build
13079
13080
13081 EXTRA_KCFLAGS="$tmp_flags"
13082
13083
13084 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
13085 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
13086 EXTRA_KCFLAGS="-Werror"
13087
13088
13089 cat confdefs.h - <<_ACEOF >conftest.c
13090 /* confdefs.h. */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13095
13096
13097 #include <linux/bio.h>
13098
13099 int
13100 main (void)
13101 {
13102
13103 struct bio bio;
13104 (void)bio_empty_barrier(&bio);
13105
13106 ;
13107 return 0;
13108 }
13109
13110 _ACEOF
13111
13112
13113 rm -Rf build && mkdir -p build
13114 echo "obj-m := conftest.o" >build/Makefile
13115 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'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13123 ac_status=$?
13124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126
13127 { $as_echo "$as_me:$LINENO: result: yes" >&5
13128 $as_echo "yes" >&6; }
13129
13130 cat >>confdefs.h <<\_ACEOF
13131 #define HAVE_BIO_EMPTY_BARRIER 1
13132 _ACEOF
13133
13134
13135 else
13136 $as_echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13138
13139 { $as_echo "$as_me:$LINENO: result: no" >&5
13140 $as_echo "no" >&6; }
13141
13142
13143
13144 fi
13145
13146 rm -Rf build
13147
13148
13149
13150
13151 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
13152 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
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 int flags __attribute__ ((unused));
13170 flags = (1 << BIO_RW_FAILFAST);
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_RW_FAILFAST 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_* are defined" >&5
13218 $as_echo_n "checking whether BIO_RW_FAILFAST_* are 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_DEV) |
13237 (1 << BIO_RW_FAILFAST_TRANSPORT) |
13238 (1 << BIO_RW_FAILFAST_DRIVER));
13239
13240 ;
13241 return 0;
13242 }
13243
13244 _ACEOF
13245
13246
13247 rm -Rf build && mkdir -p build
13248 echo "obj-m := conftest.o" >build/Makefile
13249 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'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13252 ac_status=$?
13253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13257 ac_status=$?
13258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260
13261 { $as_echo "$as_me:$LINENO: result: yes" >&5
13262 $as_echo "yes" >&6; }
13263
13264 cat >>confdefs.h <<\_ACEOF
13265 #define HAVE_BIO_RW_FAILFAST_DTD 1
13266 _ACEOF
13267
13268
13269 else
13270 $as_echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13272
13273 { $as_echo "$as_me:$LINENO: result: no" >&5
13274 $as_echo "no" >&6; }
13275
13276
13277
13278 fi
13279
13280 rm -Rf build
13281
13282
13283
13284
13285 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13286 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13287
13288
13289 cat confdefs.h - <<_ACEOF >conftest.c
13290 /* confdefs.h. */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295
13296
13297 #include <linux/bio.h>
13298
13299 int
13300 main (void)
13301 {
13302
13303 int flags __attribute__ ((unused));
13304 flags = REQ_FAILFAST_MASK;
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_REQ_FAILFAST_MASK 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 bio_end_io_t wants 2 args" >&5
13352 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13353 tmp_flags="$EXTRA_KCFLAGS"
13354 EXTRA_KCFLAGS="-Werror"
13355
13356
13357 cat confdefs.h - <<_ACEOF >conftest.c
13358 /* confdefs.h. */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13363
13364
13365 #include <linux/bio.h>
13366
13367 int
13368 main (void)
13369 {
13370
13371 void (*wanted_end_io)(struct bio *, int) = NULL;
13372 bio_end_io_t *local_end_io __attribute__ ((unused));
13373
13374 local_end_io = wanted_end_io;
13375
13376 ;
13377 return 0;
13378 }
13379
13380 _ACEOF
13381
13382
13383 rm -Rf build && mkdir -p build
13384 echo "obj-m := conftest.o" >build/Makefile
13385 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'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13393 ac_status=$?
13394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13396
13397 { $as_echo "$as_me:$LINENO: result: yes" >&5
13398 $as_echo "yes" >&6; }
13399
13400 cat >>confdefs.h <<\_ACEOF
13401 #define HAVE_2ARGS_BIO_END_IO_T 1
13402 _ACEOF
13403
13404
13405 else
13406 $as_echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13408
13409 { $as_echo "$as_me:$LINENO: result: no" >&5
13410 $as_echo "no" >&6; }
13411
13412
13413
13414 fi
13415
13416 rm -Rf build
13417
13418
13419 EXTRA_KCFLAGS="$tmp_flags"
13420
13421
13422 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13423 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13424
13425
13426 cat confdefs.h - <<_ACEOF >conftest.c
13427 /* confdefs.h. */
13428 _ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h. */
13432
13433
13434 #include <linux/bio.h>
13435
13436 int
13437 main (void)
13438 {
13439
13440 int flags __attribute__ ((unused));
13441 flags = BIO_RW_SYNC;
13442
13443 ;
13444 return 0;
13445 }
13446
13447 _ACEOF
13448
13449
13450 rm -Rf build && mkdir -p build
13451 echo "obj-m := conftest.o" >build/Makefile
13452 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'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13455 ac_status=$?
13456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13460 ac_status=$?
13461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13463
13464 { $as_echo "$as_me:$LINENO: result: yes" >&5
13465 $as_echo "yes" >&6; }
13466
13467 cat >>confdefs.h <<\_ACEOF
13468 #define HAVE_BIO_RW_SYNC 1
13469 _ACEOF
13470
13471
13472 else
13473 $as_echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13475
13476 { $as_echo "$as_me:$LINENO: result: no" >&5
13477 $as_echo "no" >&6; }
13478
13479
13480
13481 fi
13482
13483 rm -Rf build
13484
13485
13486
13487
13488 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13489 $as_echo_n "checking whether BIO_RW_SYNCIO 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_SYNCIO;
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_SYNCIO 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 REQ_SYNC is defined" >&5
13555 $as_echo_n "checking whether REQ_SYNC 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 = REQ_SYNC;
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_REQ_SYNC 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 blk_end_request() is available" >&5
13621 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13622 tmp_flags="$EXTRA_KCFLAGS"
13623 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13624
13625
13626 cat confdefs.h - <<_ACEOF >conftest.c
13627 /* confdefs.h. */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13632
13633
13634 #include <linux/blkdev.h>
13635
13636 int
13637 main (void)
13638 {
13639
13640 struct request *req = NULL;
13641 (void) blk_end_request(req, 0, 0);
13642
13643 ;
13644 return 0;
13645 }
13646
13647 _ACEOF
13648
13649
13650 rm -Rf build && mkdir -p build
13651 echo "obj-m := conftest.o" >build/Makefile
13652 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'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13655 ac_status=$?
13656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13660 ac_status=$?
13661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; }; then
13663
13664 { $as_echo "$as_me:$LINENO: result: yes" >&5
13665 $as_echo "yes" >&6; }
13666
13667 cat >>confdefs.h <<\_ACEOF
13668 #define HAVE_BLK_END_REQUEST 1
13669 _ACEOF
13670
13671
13672 else
13673 $as_echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13675
13676 { $as_echo "$as_me:$LINENO: result: no" >&5
13677 $as_echo "no" >&6; }
13678
13679
13680
13681 fi
13682
13683 rm -Rf build
13684
13685
13686
13687 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13688 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13689
13690
13691 cat confdefs.h - <<_ACEOF >conftest.c
13692 /* confdefs.h. */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13697
13698
13699 #include <linux/module.h>
13700 #include <linux/blkdev.h>
13701
13702 MODULE_LICENSE("CDDL");
13703
13704 int
13705 main (void)
13706 {
13707
13708 struct request *req = NULL;
13709 (void) blk_end_request(req, 0, 0);
13710
13711 ;
13712 return 0;
13713 }
13714
13715 _ACEOF
13716
13717
13718 rm -Rf build && mkdir -p build
13719 echo "obj-m := conftest.o" >build/Makefile
13720 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'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13723 ac_status=$?
13724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13731
13732 { $as_echo "$as_me:$LINENO: result: no" >&5
13733 $as_echo "no" >&6; }
13734
13735 else
13736 $as_echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13738
13739 { $as_echo "$as_me:$LINENO: result: yes" >&5
13740 $as_echo "yes" >&6; }
13741
13742 cat >>confdefs.h <<\_ACEOF
13743 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13744 _ACEOF
13745
13746
13747
13748
13749 fi
13750
13751 rm -Rf build
13752
13753
13754 EXTRA_KCFLAGS="$tmp_flags"
13755
13756
13757 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
13758 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
13759 tmp_flags="$EXTRA_KCFLAGS"
13760 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13761
13762
13763 cat confdefs.h - <<_ACEOF >conftest.c
13764 /* confdefs.h. */
13765 _ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13769
13770
13771 #include <linux/blkdev.h>
13772
13773 int
13774 main (void)
13775 {
13776
13777 struct request_queue *q = NULL;
13778 (void) blk_queue_flush(q, REQ_FLUSH);
13779
13780 ;
13781 return 0;
13782 }
13783
13784 _ACEOF
13785
13786
13787 rm -Rf build && mkdir -p build
13788 echo "obj-m := conftest.o" >build/Makefile
13789 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'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13792 ac_status=$?
13793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796 (eval $ac_try) 2>&5
13797 ac_status=$?
13798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; }; then
13800
13801 { $as_echo "$as_me:$LINENO: result: yes" >&5
13802 $as_echo "yes" >&6; }
13803
13804 cat >>confdefs.h <<\_ACEOF
13805 #define HAVE_BLK_QUEUE_FLUSH 1
13806 _ACEOF
13807
13808
13809 else
13810 $as_echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13812
13813 { $as_echo "$as_me:$LINENO: result: no" >&5
13814 $as_echo "no" >&6; }
13815
13816
13817
13818 fi
13819
13820 rm -Rf build
13821
13822
13823
13824 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
13825 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
13826
13827
13828 cat confdefs.h - <<_ACEOF >conftest.c
13829 /* confdefs.h. */
13830 _ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13834
13835
13836 #include <linux/module.h>
13837 #include <linux/blkdev.h>
13838
13839 MODULE_LICENSE("CDDL");
13840
13841 int
13842 main (void)
13843 {
13844
13845 struct request_queue *q = NULL;
13846 (void) blk_queue_flush(q, REQ_FLUSH);
13847
13848 ;
13849 return 0;
13850 }
13851
13852 _ACEOF
13853
13854
13855 rm -Rf build && mkdir -p build
13856 echo "obj-m := conftest.o" >build/Makefile
13857 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'
13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13860 ac_status=$?
13861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13865 ac_status=$?
13866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; }; then
13868
13869 { $as_echo "$as_me:$LINENO: result: no" >&5
13870 $as_echo "no" >&6; }
13871
13872 else
13873 $as_echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13875
13876 { $as_echo "$as_me:$LINENO: result: yes" >&5
13877 $as_echo "yes" >&6; }
13878
13879 cat >>confdefs.h <<\_ACEOF
13880 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
13881 _ACEOF
13882
13883
13884
13885
13886 fi
13887
13888 rm -Rf build
13889
13890
13891 EXTRA_KCFLAGS="$tmp_flags"
13892
13893
13894 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
13895 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
13896 tmp_flags="$EXTRA_KCFLAGS"
13897 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13898
13899
13900 cat confdefs.h - <<_ACEOF >conftest.c
13901 /* confdefs.h. */
13902 _ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13906
13907
13908 #include <linux/blkdev.h>
13909
13910 int
13911 main (void)
13912 {
13913
13914 struct request_queue *q = NULL;
13915 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
13916
13917 ;
13918 return 0;
13919 }
13920
13921 _ACEOF
13922
13923
13924 rm -Rf build && mkdir -p build
13925 echo "obj-m := conftest.o" >build/Makefile
13926 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'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13929 ac_status=$?
13930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }; then
13937
13938 { $as_echo "$as_me:$LINENO: result: yes" >&5
13939 $as_echo "yes" >&6; }
13940
13941 cat >>confdefs.h <<\_ACEOF
13942 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
13943 _ACEOF
13944
13945
13946 else
13947 $as_echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13949
13950 { $as_echo "$as_me:$LINENO: result: no" >&5
13951 $as_echo "no" >&6; }
13952
13953
13954
13955 fi
13956
13957 rm -Rf build
13958
13959
13960 EXTRA_KCFLAGS="$tmp_flags"
13961
13962
13963 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
13964 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
13965 tmp_flags="$EXTRA_KCFLAGS"
13966 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13967
13968
13969 cat confdefs.h - <<_ACEOF >conftest.c
13970 /* confdefs.h. */
13971 _ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h. */
13975
13976
13977 #include <linux/blkdev.h>
13978
13979 int
13980 main (void)
13981 {
13982
13983 struct request_queue *q = NULL;
13984 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
13985
13986 ;
13987 return 0;
13988 }
13989
13990 _ACEOF
13991
13992
13993 rm -Rf build && mkdir -p build
13994 echo "obj-m := conftest.o" >build/Makefile
13995 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'
13996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13998 ac_status=$?
13999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002 (eval $ac_try) 2>&5
14003 ac_status=$?
14004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; }; then
14006
14007 { $as_echo "$as_me:$LINENO: result: yes" >&5
14008 $as_echo "yes" >&6; }
14009
14010 cat >>confdefs.h <<\_ACEOF
14011 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
14012 _ACEOF
14013
14014
14015 else
14016 $as_echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14018
14019 { $as_echo "$as_me:$LINENO: result: no" >&5
14020 $as_echo "no" >&6; }
14021
14022
14023
14024 fi
14025
14026 rm -Rf build
14027
14028
14029 EXTRA_KCFLAGS="$tmp_flags"
14030
14031
14032 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
14033 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
14034 tmp_flags="$EXTRA_KCFLAGS"
14035 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14036
14037
14038 cat confdefs.h - <<_ACEOF >conftest.c
14039 /* confdefs.h. */
14040 _ACEOF
14041 cat confdefs.h >>conftest.$ac_ext
14042 cat >>conftest.$ac_ext <<_ACEOF
14043 /* end confdefs.h. */
14044
14045
14046 #include <linux/blkdev.h>
14047
14048 int
14049 main (void)
14050 {
14051
14052 struct request_queue *q = NULL;
14053 unsigned short block_size = 1;
14054 (void) blk_queue_physical_block_size(q, block_size);
14055
14056 ;
14057 return 0;
14058 }
14059
14060 _ACEOF
14061
14062
14063 rm -Rf build && mkdir -p build
14064 echo "obj-m := conftest.o" >build/Makefile
14065 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'
14066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14068 ac_status=$?
14069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072 (eval $ac_try) 2>&5
14073 ac_status=$?
14074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
14076
14077 { $as_echo "$as_me:$LINENO: result: yes" >&5
14078 $as_echo "yes" >&6; }
14079
14080 cat >>confdefs.h <<\_ACEOF
14081 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
14082 _ACEOF
14083
14084
14085 else
14086 $as_echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14088
14089 { $as_echo "$as_me:$LINENO: result: no" >&5
14090 $as_echo "no" >&6; }
14091
14092
14093
14094 fi
14095
14096 rm -Rf build
14097
14098
14099 EXTRA_KCFLAGS="$tmp_flags"
14100
14101
14102 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
14103 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
14104 tmp_flags="$EXTRA_KCFLAGS"
14105 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14106
14107
14108 cat confdefs.h - <<_ACEOF >conftest.c
14109 /* confdefs.h. */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14114
14115
14116 #include <linux/blkdev.h>
14117
14118 int
14119 main (void)
14120 {
14121
14122 struct request_queue *q = NULL;
14123 unsigned int opt = 1;
14124 (void) blk_queue_io_opt(q, opt);
14125
14126 ;
14127 return 0;
14128 }
14129
14130 _ACEOF
14131
14132
14133 rm -Rf build && mkdir -p build
14134 echo "obj-m := conftest.o" >build/Makefile
14135 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'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14138 ac_status=$?
14139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14143 ac_status=$?
14144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }; then
14146
14147 { $as_echo "$as_me:$LINENO: result: yes" >&5
14148 $as_echo "yes" >&6; }
14149
14150 cat >>confdefs.h <<\_ACEOF
14151 #define HAVE_BLK_QUEUE_IO_OPT 1
14152 _ACEOF
14153
14154
14155 else
14156 $as_echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14158
14159 { $as_echo "$as_me:$LINENO: result: no" >&5
14160 $as_echo "no" >&6; }
14161
14162
14163
14164 fi
14165
14166 rm -Rf build
14167
14168
14169 EXTRA_KCFLAGS="$tmp_flags"
14170
14171
14172 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
14173 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
14174 tmp_flags="$EXTRA_KCFLAGS"
14175 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14176
14177
14178 cat confdefs.h - <<_ACEOF >conftest.c
14179 /* confdefs.h. */
14180 _ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14184
14185
14186 #include <linux/blkdev.h>
14187
14188 int
14189 main (void)
14190 {
14191
14192 struct request_queue *q = NULL;
14193 (void) blk_queue_nonrot(q);
14194
14195 ;
14196 return 0;
14197 }
14198
14199 _ACEOF
14200
14201
14202 rm -Rf build && mkdir -p build
14203 echo "obj-m := conftest.o" >build/Makefile
14204 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'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14207 ac_status=$?
14208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14212 ac_status=$?
14213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
14215
14216 { $as_echo "$as_me:$LINENO: result: yes" >&5
14217 $as_echo "yes" >&6; }
14218
14219 cat >>confdefs.h <<\_ACEOF
14220 #define HAVE_BLK_QUEUE_NONROT 1
14221 _ACEOF
14222
14223
14224 else
14225 $as_echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14227
14228 { $as_echo "$as_me:$LINENO: result: no" >&5
14229 $as_echo "no" >&6; }
14230
14231
14232
14233 fi
14234
14235 rm -Rf build
14236
14237
14238 EXTRA_KCFLAGS="$tmp_flags"
14239
14240
14241 { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
14242 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
14243 tmp_flags="$EXTRA_KCFLAGS"
14244 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14245
14246
14247 cat confdefs.h - <<_ACEOF >conftest.c
14248 /* confdefs.h. */
14249 _ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14253
14254
14255 #include <linux/blkdev.h>
14256
14257 int
14258 main (void)
14259 {
14260
14261 struct request_queue *q = NULL;
14262 (void) blk_queue_discard(q);
14263
14264 ;
14265 return 0;
14266 }
14267
14268 _ACEOF
14269
14270
14271 rm -Rf build && mkdir -p build
14272 echo "obj-m := conftest.o" >build/Makefile
14273 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'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14281 ac_status=$?
14282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284
14285 { $as_echo "$as_me:$LINENO: result: yes" >&5
14286 $as_echo "yes" >&6; }
14287
14288 cat >>confdefs.h <<\_ACEOF
14289 #define HAVE_BLK_QUEUE_DISCARD 1
14290 _ACEOF
14291
14292
14293 else
14294 $as_echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14296
14297 { $as_echo "$as_me:$LINENO: result: no" >&5
14298 $as_echo "no" >&6; }
14299
14300
14301
14302 fi
14303
14304 rm -Rf build
14305
14306
14307 EXTRA_KCFLAGS="$tmp_flags"
14308
14309
14310 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
14311 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
14312 tmp_flags="$EXTRA_KCFLAGS"
14313 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14314
14315
14316 cat confdefs.h - <<_ACEOF >conftest.c
14317 /* confdefs.h. */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14322
14323
14324 #include <linux/blkdev.h>
14325
14326 int
14327 main (void)
14328 {
14329
14330 struct request_queue *q = NULL;
14331 (void) blk_fetch_request(q);
14332
14333 ;
14334 return 0;
14335 }
14336
14337 _ACEOF
14338
14339
14340 rm -Rf build && mkdir -p build
14341 echo "obj-m := conftest.o" >build/Makefile
14342 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'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14345 ac_status=$?
14346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14350 ac_status=$?
14351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353
14354 { $as_echo "$as_me:$LINENO: result: yes" >&5
14355 $as_echo "yes" >&6; }
14356
14357 cat >>confdefs.h <<\_ACEOF
14358 #define HAVE_BLK_FETCH_REQUEST 1
14359 _ACEOF
14360
14361
14362 else
14363 $as_echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14365
14366 { $as_echo "$as_me:$LINENO: result: no" >&5
14367 $as_echo "no" >&6; }
14368
14369
14370
14371 fi
14372
14373 rm -Rf build
14374
14375
14376 EXTRA_KCFLAGS="$tmp_flags"
14377
14378
14379 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
14380 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
14381 tmp_flags="$EXTRA_KCFLAGS"
14382 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14383
14384
14385 cat confdefs.h - <<_ACEOF >conftest.c
14386 /* confdefs.h. */
14387 _ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h. */
14391
14392
14393 #include <linux/blkdev.h>
14394
14395 int
14396 main (void)
14397 {
14398
14399 struct request_queue *q = NULL;
14400 struct request *req = NULL;
14401 blk_requeue_request(q, req);
14402
14403 ;
14404 return 0;
14405 }
14406
14407 _ACEOF
14408
14409
14410 rm -Rf build && mkdir -p build
14411 echo "obj-m := conftest.o" >build/Makefile
14412 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'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14415 ac_status=$?
14416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14420 ac_status=$?
14421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
14423
14424 { $as_echo "$as_me:$LINENO: result: yes" >&5
14425 $as_echo "yes" >&6; }
14426
14427 cat >>confdefs.h <<\_ACEOF
14428 #define HAVE_BLK_REQUEUE_REQUEST 1
14429 _ACEOF
14430
14431
14432 else
14433 $as_echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14435
14436 { $as_echo "$as_me:$LINENO: result: no" >&5
14437 $as_echo "no" >&6; }
14438
14439
14440
14441 fi
14442
14443 rm -Rf build
14444
14445
14446 EXTRA_KCFLAGS="$tmp_flags"
14447
14448
14449 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
14450 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
14451 tmp_flags="$EXTRA_KCFLAGS"
14452 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14453
14454
14455 cat confdefs.h - <<_ACEOF >conftest.c
14456 /* confdefs.h. */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461
14462
14463 #include <linux/blkdev.h>
14464
14465 int
14466 main (void)
14467 {
14468
14469 struct request *req = NULL;
14470 (void) blk_rq_bytes(req);
14471
14472 ;
14473 return 0;
14474 }
14475
14476 _ACEOF
14477
14478
14479 rm -Rf build && mkdir -p build
14480 echo "obj-m := conftest.o" >build/Makefile
14481 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'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14484 ac_status=$?
14485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14489 ac_status=$?
14490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; }; then
14492
14493 { $as_echo "$as_me:$LINENO: result: yes" >&5
14494 $as_echo "yes" >&6; }
14495
14496 cat >>confdefs.h <<\_ACEOF
14497 #define HAVE_BLK_RQ_BYTES 1
14498 _ACEOF
14499
14500
14501 else
14502 $as_echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14504
14505 { $as_echo "$as_me:$LINENO: result: no" >&5
14506 $as_echo "no" >&6; }
14507
14508
14509
14510 fi
14511
14512 rm -Rf build
14513
14514
14515
14516 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
14517 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
14518
14519
14520 cat confdefs.h - <<_ACEOF >conftest.c
14521 /* confdefs.h. */
14522 _ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14526
14527
14528 #include <linux/module.h>
14529 #include <linux/blkdev.h>
14530
14531 MODULE_LICENSE("CDDL");
14532
14533 int
14534 main (void)
14535 {
14536
14537 struct request *req = NULL;
14538 (void) blk_rq_bytes(req);
14539
14540 ;
14541 return 0;
14542 }
14543
14544 _ACEOF
14545
14546
14547 rm -Rf build && mkdir -p build
14548 echo "obj-m := conftest.o" >build/Makefile
14549 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'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556 (eval $ac_try) 2>&5
14557 ac_status=$?
14558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; }; then
14560
14561 { $as_echo "$as_me:$LINENO: result: no" >&5
14562 $as_echo "no" >&6; }
14563
14564 else
14565 $as_echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14567
14568 { $as_echo "$as_me:$LINENO: result: yes" >&5
14569 $as_echo "yes" >&6; }
14570
14571 cat >>confdefs.h <<\_ACEOF
14572 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
14573 _ACEOF
14574
14575
14576
14577
14578 fi
14579
14580 rm -Rf build
14581
14582
14583 EXTRA_KCFLAGS="$tmp_flags"
14584
14585
14586 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
14587 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
14588 tmp_flags="$EXTRA_KCFLAGS"
14589 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14590
14591
14592 cat confdefs.h - <<_ACEOF >conftest.c
14593 /* confdefs.h. */
14594 _ACEOF
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h. */
14598
14599
14600 #include <linux/blkdev.h>
14601
14602 int
14603 main (void)
14604 {
14605
14606 struct request *req = NULL;
14607 (void) blk_rq_pos(req);
14608
14609 ;
14610 return 0;
14611 }
14612
14613 _ACEOF
14614
14615
14616 rm -Rf build && mkdir -p build
14617 echo "obj-m := conftest.o" >build/Makefile
14618 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'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14621 ac_status=$?
14622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14626 ac_status=$?
14627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }; then
14629
14630 { $as_echo "$as_me:$LINENO: result: yes" >&5
14631 $as_echo "yes" >&6; }
14632
14633 cat >>confdefs.h <<\_ACEOF
14634 #define HAVE_BLK_RQ_POS 1
14635 _ACEOF
14636
14637
14638 else
14639 $as_echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14641
14642 { $as_echo "$as_me:$LINENO: result: no" >&5
14643 $as_echo "no" >&6; }
14644
14645
14646
14647 fi
14648
14649 rm -Rf build
14650
14651
14652 EXTRA_KCFLAGS="$tmp_flags"
14653
14654
14655 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
14656 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
14657 tmp_flags="$EXTRA_KCFLAGS"
14658 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14659
14660
14661 cat confdefs.h - <<_ACEOF >conftest.c
14662 /* confdefs.h. */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667
14668
14669 #include <linux/blkdev.h>
14670
14671 int
14672 main (void)
14673 {
14674
14675 struct request *req = NULL;
14676 (void) blk_rq_sectors(req);
14677
14678 ;
14679 return 0;
14680 }
14681
14682 _ACEOF
14683
14684
14685 rm -Rf build && mkdir -p build
14686 echo "obj-m := conftest.o" >build/Makefile
14687 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'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14690 ac_status=$?
14691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14698
14699 { $as_echo "$as_me:$LINENO: result: yes" >&5
14700 $as_echo "yes" >&6; }
14701
14702 cat >>confdefs.h <<\_ACEOF
14703 #define HAVE_BLK_RQ_SECTORS 1
14704 _ACEOF
14705
14706
14707 else
14708 $as_echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14710
14711 { $as_echo "$as_me:$LINENO: result: no" >&5
14712 $as_echo "no" >&6; }
14713
14714
14715
14716 fi
14717
14718 rm -Rf build
14719
14720
14721 EXTRA_KCFLAGS="$tmp_flags"
14722
14723
14724 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
14725 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14726 tmp_flags="$EXTRA_KCFLAGS"
14727 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14728
14729
14730 cat confdefs.h - <<_ACEOF >conftest.c
14731 /* confdefs.h. */
14732 _ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14736
14737
14738 #include <linux/blkdev.h>
14739
14740 int
14741 main (void)
14742 {
14743
14744 struct gendisk *disk = NULL;
14745 (void) get_disk_ro(disk);
14746
14747 ;
14748 return 0;
14749 }
14750
14751 _ACEOF
14752
14753
14754 rm -Rf build && mkdir -p build
14755 echo "obj-m := conftest.o" >build/Makefile
14756 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'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14759 ac_status=$?
14760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767
14768 { $as_echo "$as_me:$LINENO: result: yes" >&5
14769 $as_echo "yes" >&6; }
14770
14771 cat >>confdefs.h <<\_ACEOF
14772 #define HAVE_GET_DISK_RO 1
14773 _ACEOF
14774
14775
14776 else
14777 $as_echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14779
14780 { $as_echo "$as_me:$LINENO: result: no" >&5
14781 $as_echo "no" >&6; }
14782
14783
14784
14785 fi
14786
14787 rm -Rf build
14788
14789
14790 EXTRA_KCFLAGS="$tmp_flags"
14791
14792
14793 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
14794 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
14795 tmp_flags="$EXTRA_KCFLAGS"
14796 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14797
14798
14799 cat confdefs.h - <<_ACEOF >conftest.c
14800 /* confdefs.h. */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14805
14806
14807 #include <linux/blkdev.h>
14808
14809 int
14810 main (void)
14811 {
14812
14813 struct request *req = NULL;
14814 (void) rq_is_sync(req);
14815
14816 ;
14817 return 0;
14818 }
14819
14820 _ACEOF
14821
14822
14823 rm -Rf build && mkdir -p build
14824 echo "obj-m := conftest.o" >build/Makefile
14825 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'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14833 ac_status=$?
14834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836
14837 { $as_echo "$as_me:$LINENO: result: yes" >&5
14838 $as_echo "yes" >&6; }
14839
14840 cat >>confdefs.h <<\_ACEOF
14841 #define HAVE_RQ_IS_SYNC 1
14842 _ACEOF
14843
14844
14845 else
14846 $as_echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849 { $as_echo "$as_me:$LINENO: result: no" >&5
14850 $as_echo "no" >&6; }
14851
14852
14853
14854 fi
14855
14856 rm -Rf build
14857
14858
14859 EXTRA_KCFLAGS="$tmp_flags"
14860
14861
14862 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
14863 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
14864 tmp_flags="$EXTRA_KCFLAGS"
14865 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14866
14867
14868 cat confdefs.h - <<_ACEOF >conftest.c
14869 /* confdefs.h. */
14870 _ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h. */
14874
14875
14876 #include <linux/blkdev.h>
14877
14878 int
14879 main (void)
14880 {
14881
14882 struct bio_vec *bv;
14883 struct req_iterator iter;
14884 struct request *req = NULL;
14885 rq_for_each_segment(bv, req, iter) { }
14886
14887 ;
14888 return 0;
14889 }
14890
14891 _ACEOF
14892
14893
14894 rm -Rf build && mkdir -p build
14895 echo "obj-m := conftest.o" >build/Makefile
14896 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'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907
14908 { $as_echo "$as_me:$LINENO: result: yes" >&5
14909 $as_echo "yes" >&6; }
14910
14911 cat >>confdefs.h <<\_ACEOF
14912 #define HAVE_RQ_FOR_EACH_SEGMENT 1
14913 _ACEOF
14914
14915
14916 else
14917 $as_echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14919
14920 { $as_echo "$as_me:$LINENO: result: no" >&5
14921 $as_echo "no" >&6; }
14922
14923
14924
14925 fi
14926
14927 rm -Rf build
14928
14929
14930 EXTRA_KCFLAGS="$tmp_flags"
14931
14932 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
14933 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
14934
14935
14936 cat confdefs.h - <<_ACEOF >conftest.c
14937 /* confdefs.h. */
14938 _ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14942
14943
14944 #include <linux/fs.h>
14945 #include <linux/xattr.h>
14946
14947 const struct xattr_handler xattr_test_handler = {
14948 .prefix = "test",
14949 .get = NULL,
14950 .set = NULL,
14951 };
14952
14953 const struct xattr_handler *xattr_handlers[] = {
14954 &xattr_test_handler,
14955 };
14956
14957 int
14958 main (void)
14959 {
14960
14961 struct super_block sb __attribute__ ((unused));
14962
14963 sb.s_xattr = xattr_handlers;
14964
14965 ;
14966 return 0;
14967 }
14968
14969 _ACEOF
14970
14971
14972 rm -Rf build && mkdir -p build
14973 echo "obj-m := conftest.o" >build/Makefile
14974 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'
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14977 ac_status=$?
14978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14982 ac_status=$?
14983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985
14986 { $as_echo "$as_me:$LINENO: result: yes" >&5
14987 $as_echo "yes" >&6; }
14988
14989 cat >>confdefs.h <<\_ACEOF
14990 #define HAVE_CONST_XATTR_HANDLER 1
14991 _ACEOF
14992
14993
14994 else
14995 $as_echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14997
14998 { $as_echo "$as_me:$LINENO: result: no" >&5
14999 $as_echo "no" >&6; }
15000
15001
15002
15003 fi
15004
15005 rm -Rf build
15006
15007
15008
15009
15010 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
15011 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
15012
15013
15014 cat confdefs.h - <<_ACEOF >conftest.c
15015 /* confdefs.h. */
15016 _ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15020
15021
15022 #include <linux/xattr.h>
15023
15024 int
15025 main (void)
15026 {
15027
15028 int (*get)(struct dentry *dentry, const char *name,
15029 void *buffer, size_t size, int handler_flags) = NULL;
15030 struct xattr_handler xops __attribute__ ((unused));
15031
15032 xops.get = get;
15033
15034 ;
15035 return 0;
15036 }
15037
15038 _ACEOF
15039
15040
15041 rm -Rf build && mkdir -p build
15042 echo "obj-m := conftest.o" >build/Makefile
15043 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'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15046 ac_status=$?
15047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15051 ac_status=$?
15052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; }; then
15054
15055 { $as_echo "$as_me:$LINENO: result: yes" >&5
15056 $as_echo "yes" >&6; }
15057
15058 cat >>confdefs.h <<\_ACEOF
15059 #define HAVE_DENTRY_XATTR_GET 1
15060 _ACEOF
15061
15062
15063 else
15064 $as_echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15066
15067 { $as_echo "$as_me:$LINENO: result: no" >&5
15068 $as_echo "no" >&6; }
15069
15070
15071
15072 fi
15073
15074 rm -Rf build
15075
15076
15077
15078
15079 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
15080 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
15081
15082
15083 cat confdefs.h - <<_ACEOF >conftest.c
15084 /* confdefs.h. */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089
15090
15091 #include <linux/xattr.h>
15092
15093 int
15094 main (void)
15095 {
15096
15097 int (*set)(struct dentry *dentry, const char *name,
15098 const void *buffer, size_t size, int flags,
15099 int handler_flags) = NULL;
15100 struct xattr_handler xops __attribute__ ((unused));
15101
15102 xops.set = set;
15103
15104 ;
15105 return 0;
15106 }
15107
15108 _ACEOF
15109
15110
15111 rm -Rf build && mkdir -p build
15112 echo "obj-m := conftest.o" >build/Makefile
15113 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'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15116 ac_status=$?
15117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15121 ac_status=$?
15122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; }; then
15124
15125 { $as_echo "$as_me:$LINENO: result: yes" >&5
15126 $as_echo "yes" >&6; }
15127
15128 cat >>confdefs.h <<\_ACEOF
15129 #define HAVE_DENTRY_XATTR_SET 1
15130 _ACEOF
15131
15132
15133 else
15134 $as_echo "$as_me: failed program was:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15136
15137 { $as_echo "$as_me:$LINENO: result: no" >&5
15138 $as_echo "no" >&6; }
15139
15140
15141
15142 fi
15143
15144 rm -Rf build
15145
15146
15147
15148
15149 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
15150 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
15151
15152
15153
15154 cat confdefs.h - <<_ACEOF >conftest.c
15155 /* confdefs.h. */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h. */
15160
15161
15162 #include <linux/fs.h>
15163
15164 int
15165 main (void)
15166 {
15167
15168 int (*show_options) (struct seq_file *, struct dentry *) = NULL;
15169 struct super_operations sops __attribute__ ((unused));
15170
15171 sops.show_options = show_options;
15172
15173 ;
15174 return 0;
15175 }
15176
15177 _ACEOF
15178
15179
15180 rm -Rf build && mkdir -p build
15181 echo "obj-m := conftest.o" >build/Makefile
15182 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'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15185 ac_status=$?
15186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193
15194 { $as_echo "$as_me:$LINENO: result: yes" >&5
15195 $as_echo "yes" >&6; }
15196
15197 cat >>confdefs.h <<\_ACEOF
15198 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
15199 _ACEOF
15200
15201
15202 else
15203 $as_echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15205
15206 { $as_echo "$as_me:$LINENO: result: no" >&5
15207 $as_echo "no" >&6; }
15208
15209
15210
15211 fi
15212
15213 rm -Rf build
15214
15215
15216
15217
15218 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
15219 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
15220
15221
15222
15223 cat confdefs.h - <<_ACEOF >conftest.c
15224 /* confdefs.h. */
15225 _ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h. */
15229
15230
15231 #include <linux/fs.h>
15232
15233 int
15234 main (void)
15235 {
15236
15237 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15238 struct file_operations fops __attribute__ ((unused));
15239
15240 fops.fsync = fsync;
15241
15242 ;
15243 return 0;
15244 }
15245
15246 _ACEOF
15247
15248
15249 rm -Rf build && mkdir -p build
15250 echo "obj-m := conftest.o" >build/Makefile
15251 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'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15254 ac_status=$?
15255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15259 ac_status=$?
15260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }; then
15262
15263 { $as_echo "$as_me:$LINENO: result: dentry" >&5
15264 $as_echo "dentry" >&6; }
15265
15266 cat >>confdefs.h <<\_ACEOF
15267 #define HAVE_FSYNC_WITH_DENTRY 1
15268 _ACEOF
15269
15270
15271 else
15272 $as_echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15274
15275
15276
15277
15278 fi
15279
15280 rm -Rf build
15281
15282
15283
15284
15285
15286
15287 cat confdefs.h - <<_ACEOF >conftest.c
15288 /* confdefs.h. */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293
15294
15295 #include <linux/fs.h>
15296
15297 int
15298 main (void)
15299 {
15300
15301 int (*fsync) (struct file *, int) = NULL;
15302 struct file_operations fops __attribute__ ((unused));
15303
15304 fops.fsync = fsync;
15305
15306 ;
15307 return 0;
15308 }
15309
15310 _ACEOF
15311
15312
15313 rm -Rf build && mkdir -p build
15314 echo "obj-m := conftest.o" >build/Makefile
15315 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'
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15318 ac_status=$?
15319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15323 ac_status=$?
15324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }; then
15326
15327 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
15328 $as_echo "no dentry" >&6; }
15329
15330 cat >>confdefs.h <<\_ACEOF
15331 #define HAVE_FSYNC_WITHOUT_DENTRY 1
15332 _ACEOF
15333
15334
15335 else
15336 $as_echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15338
15339
15340
15341
15342 fi
15343
15344 rm -Rf build
15345
15346
15347
15348
15349
15350
15351 cat confdefs.h - <<_ACEOF >conftest.c
15352 /* confdefs.h. */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357
15358
15359 #include <linux/fs.h>
15360
15361 int
15362 main (void)
15363 {
15364
15365 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
15366 struct file_operations fops __attribute__ ((unused));
15367
15368 fops.fsync = fsync;
15369
15370 ;
15371 return 0;
15372 }
15373
15374 _ACEOF
15375
15376
15377 rm -Rf build && mkdir -p build
15378 echo "obj-m := conftest.o" >build/Makefile
15379 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'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
15383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386 (eval $ac_try) 2>&5
15387 ac_status=$?
15388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; }; then
15390
15391 { $as_echo "$as_me:$LINENO: result: range" >&5
15392 $as_echo "range" >&6; }
15393
15394 cat >>confdefs.h <<\_ACEOF
15395 #define HAVE_FSYNC_RANGE 1
15396 _ACEOF
15397
15398
15399 else
15400 $as_echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15402
15403
15404
15405
15406 fi
15407
15408 rm -Rf build
15409
15410
15411
15412
15413
15414 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
15415 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
15416
15417
15418 cat confdefs.h - <<_ACEOF >conftest.c
15419 /* confdefs.h. */
15420 _ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15424
15425
15426 #include <linux/fs.h>
15427
15428 int
15429 main (void)
15430 {
15431
15432 void (*evict_inode) (struct inode *) = NULL;
15433 struct super_operations sops __attribute__ ((unused)) = {
15434 .evict_inode = evict_inode,
15435 };
15436
15437 ;
15438 return 0;
15439 }
15440
15441 _ACEOF
15442
15443
15444 rm -Rf build && mkdir -p build
15445 echo "obj-m := conftest.o" >build/Makefile
15446 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'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; }; then
15457
15458 { $as_echo "$as_me:$LINENO: result: yes" >&5
15459 $as_echo "yes" >&6; }
15460
15461 cat >>confdefs.h <<\_ACEOF
15462 #define HAVE_EVICT_INODE 1
15463 _ACEOF
15464
15465
15466 else
15467 $as_echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15469
15470 { $as_echo "$as_me:$LINENO: result: no" >&5
15471 $as_echo "no" >&6; }
15472
15473
15474
15475 fi
15476
15477 rm -Rf build
15478
15479
15480
15481
15482 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
15483 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
15484
15485
15486 cat confdefs.h - <<_ACEOF >conftest.c
15487 /* confdefs.h. */
15488 _ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15492
15493
15494 #include <linux/fs.h>
15495
15496 int
15497 main (void)
15498 {
15499
15500 int (*nr_cached_objects)(struct super_block *)
15501 __attribute__ ((unused)) = NULL;
15502 struct super_operations sops __attribute__ ((unused)) = {
15503 .nr_cached_objects = nr_cached_objects,
15504 };
15505
15506 ;
15507 return 0;
15508 }
15509
15510 _ACEOF
15511
15512
15513 rm -Rf build && mkdir -p build
15514 echo "obj-m := conftest.o" >build/Makefile
15515 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'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15518 ac_status=$?
15519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15523 ac_status=$?
15524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; }; then
15526
15527 { $as_echo "$as_me:$LINENO: result: yes" >&5
15528 $as_echo "yes" >&6; }
15529
15530 cat >>confdefs.h <<\_ACEOF
15531 #define HAVE_NR_CACHED_OBJECTS 1
15532 _ACEOF
15533
15534
15535 else
15536 $as_echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15538
15539 { $as_echo "$as_me:$LINENO: result: no" >&5
15540 $as_echo "no" >&6; }
15541
15542
15543
15544 fi
15545
15546 rm -Rf build
15547
15548
15549
15550
15551 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
15552 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
15553
15554
15555 cat confdefs.h - <<_ACEOF >conftest.c
15556 /* confdefs.h. */
15557 _ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15561
15562
15563 #include <linux/fs.h>
15564
15565 int
15566 main (void)
15567 {
15568
15569 void (*free_cached_objects)(struct super_block *, int)
15570 __attribute__ ((unused)) = NULL;
15571 struct super_operations sops __attribute__ ((unused)) = {
15572 .free_cached_objects = free_cached_objects,
15573 };
15574
15575 ;
15576 return 0;
15577 }
15578
15579 _ACEOF
15580
15581
15582 rm -Rf build && mkdir -p build
15583 echo "obj-m := conftest.o" >build/Makefile
15584 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'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15587 ac_status=$?
15588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595
15596 { $as_echo "$as_me:$LINENO: result: yes" >&5
15597 $as_echo "yes" >&6; }
15598
15599 cat >>confdefs.h <<\_ACEOF
15600 #define HAVE_FREE_CACHED_OBJECTS 1
15601 _ACEOF
15602
15603
15604 else
15605 $as_echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15607
15608 { $as_echo "$as_me:$LINENO: result: no" >&5
15609 $as_echo "no" >&6; }
15610
15611
15612
15613 fi
15614
15615 rm -Rf build
15616
15617
15618
15619
15620
15621 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
15622 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
15623
15624
15625 cat confdefs.h - <<_ACEOF >conftest.c
15626 /* confdefs.h. */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631
15632
15633 #include <linux/fs.h>
15634
15635 int
15636 main (void)
15637 {
15638
15639 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
15640 struct file_operations fops __attribute__ ((unused)) = {
15641 .fallocate = fallocate,
15642 };
15643
15644 ;
15645 return 0;
15646 }
15647
15648 _ACEOF
15649
15650
15651 rm -Rf build && mkdir -p build
15652 echo "obj-m := conftest.o" >build/Makefile
15653 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'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15656 ac_status=$?
15657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15661 ac_status=$?
15662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; }; then
15664
15665 { $as_echo "$as_me:$LINENO: result: yes" >&5
15666 $as_echo "yes" >&6; }
15667
15668 cat >>confdefs.h <<\_ACEOF
15669 #define HAVE_FILE_FALLOCATE 1
15670 _ACEOF
15671
15672
15673 else
15674 $as_echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677 { $as_echo "$as_me:$LINENO: result: no" >&5
15678 $as_echo "no" >&6; }
15679
15680
15681
15682 fi
15683
15684 rm -Rf build
15685
15686
15687
15688
15689 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
15690 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
15691
15692
15693 cat confdefs.h - <<_ACEOF >conftest.c
15694 /* confdefs.h. */
15695 _ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h. */
15699
15700
15701 #include <linux/fs.h>
15702
15703 int
15704 main (void)
15705 {
15706
15707 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
15708 struct inode_operations fops __attribute__ ((unused)) = {
15709 .fallocate = fallocate,
15710 };
15711
15712 ;
15713 return 0;
15714 }
15715
15716 _ACEOF
15717
15718
15719 rm -Rf build && mkdir -p build
15720 echo "obj-m := conftest.o" >build/Makefile
15721 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'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15724 ac_status=$?
15725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5
15729 ac_status=$?
15730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then
15732
15733 { $as_echo "$as_me:$LINENO: result: yes" >&5
15734 $as_echo "yes" >&6; }
15735
15736 cat >>confdefs.h <<\_ACEOF
15737 #define HAVE_INODE_FALLOCATE 1
15738 _ACEOF
15739
15740
15741 else
15742 $as_echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15744
15745 { $as_echo "$as_me:$LINENO: result: no" >&5
15746 $as_echo "no" >&6; }
15747
15748
15749
15750 fi
15751
15752 rm -Rf build
15753
15754
15755
15756
15757
15758 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
15759 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
15760
15761
15762 cat confdefs.h - <<_ACEOF >conftest.c
15763 /* confdefs.h. */
15764 _ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h. */
15768
15769
15770 #include <linux/fs.h>
15771
15772 int
15773 main (void)
15774 {
15775
15776 int (*create) (struct inode *, struct dentry *, umode_t,
15777 struct nameidata *) = NULL;
15778 struct inode_operations iops __attribute__ ((unused)) = {
15779 .create = create,
15780 };
15781
15782 ;
15783 return 0;
15784 }
15785
15786 _ACEOF
15787
15788
15789 rm -Rf build && mkdir -p build
15790 echo "obj-m := conftest.o" >build/Makefile
15791 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'
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15794 ac_status=$?
15795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802
15803 { $as_echo "$as_me:$LINENO: result: yes" >&5
15804 $as_echo "yes" >&6; }
15805
15806 cat >>confdefs.h <<\_ACEOF
15807 #define HAVE_CREATE_UMODE_T 1
15808 _ACEOF
15809
15810
15811 else
15812 $as_echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15814
15815 { $as_echo "$as_me:$LINENO: result: no" >&5
15816 $as_echo "no" >&6; }
15817
15818
15819
15820 fi
15821
15822 rm -Rf build
15823
15824
15825
15826
15827 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
15828 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
15829
15830
15831 cat confdefs.h - <<_ACEOF >conftest.c
15832 /* confdefs.h. */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837
15838
15839 #include <linux/dcache.h>
15840
15841 int
15842 main (void)
15843 {
15844
15845 struct vfsmount *(*d_automount) (struct path *) = NULL;
15846 struct dentry_operations dops __attribute__ ((unused)) = {
15847 .d_automount = d_automount,
15848 };
15849
15850 ;
15851 return 0;
15852 }
15853
15854 _ACEOF
15855
15856
15857 rm -Rf build && mkdir -p build
15858 echo "obj-m := conftest.o" >build/Makefile
15859 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'
15860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861 (eval $ac_try) 2>&5
15862 ac_status=$?
15863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15867 ac_status=$?
15868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; }; then
15870
15871 { $as_echo "$as_me:$LINENO: result: yes" >&5
15872 $as_echo "yes" >&6; }
15873
15874 cat >>confdefs.h <<\_ACEOF
15875 #define HAVE_AUTOMOUNT 1
15876 _ACEOF
15877
15878
15879 else
15880 $as_echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15882
15883 { $as_echo "$as_me:$LINENO: result: no" >&5
15884 $as_echo "no" >&6; }
15885
15886
15887
15888 fi
15889
15890 rm -Rf build
15891
15892
15893
15894
15895 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
15896 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
15897 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
15898 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15899 rc=$?
15900 if test $rc -ne 0; then
15901
15902 export=0
15903 for file in fs/inode.c; do
15904 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
15905 rc=$?
15906 if test $rc -eq 0; then
15907
15908 export=1
15909 break;
15910
15911 fi
15912
15913 done
15914 if test $export -eq 0; then
15915
15916 { $as_echo "$as_me:$LINENO: result: no" >&5
15917 $as_echo "no" >&6; }
15918
15919
15920 else
15921
15922 { $as_echo "$as_me:$LINENO: result: yes" >&5
15923 $as_echo "yes" >&6; }
15924
15925 cat >>confdefs.h <<\_ACEOF
15926 #define HAVE_INSERT_INODE_LOCKED 1
15927 _ACEOF
15928
15929
15930 fi
15931
15932
15933 else
15934
15935 { $as_echo "$as_me:$LINENO: result: yes" >&5
15936 $as_echo "yes" >&6; }
15937
15938 cat >>confdefs.h <<\_ACEOF
15939 #define HAVE_INSERT_INODE_LOCKED 1
15940 _ACEOF
15941
15942
15943 fi
15944
15945
15946
15947
15948 { $as_echo "$as_me:$LINENO: checking whether symbol d_make_root is exported" >&5
15949 $as_echo_n "checking whether symbol d_make_root is exported... " >&6; }
15950 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
15951 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15952 rc=$?
15953 if test $rc -ne 0; then
15954
15955 export=0
15956 for file in fs/dcache.c; do
15957 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" "$LINUX/$file" 2>/dev/null
15958 rc=$?
15959 if test $rc -eq 0; then
15960
15961 export=1
15962 break;
15963
15964 fi
15965
15966 done
15967 if test $export -eq 0; then
15968
15969 { $as_echo "$as_me:$LINENO: result: no" >&5
15970 $as_echo "no" >&6; }
15971
15972
15973 else
15974
15975 { $as_echo "$as_me:$LINENO: result: yes" >&5
15976 $as_echo "yes" >&6; }
15977
15978 cat >>confdefs.h <<\_ACEOF
15979 #define HAVE_D_MAKE_ROOT 1
15980 _ACEOF
15981
15982
15983 fi
15984
15985
15986 else
15987
15988 { $as_echo "$as_me:$LINENO: result: yes" >&5
15989 $as_echo "yes" >&6; }
15990
15991 cat >>confdefs.h <<\_ACEOF
15992 #define HAVE_D_MAKE_ROOT 1
15993 _ACEOF
15994
15995
15996 fi
15997
15998
15999
16000
16001 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
16002 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
16003 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
16004 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16005 rc=$?
16006 if test $rc -ne 0; then
16007
16008 export=0
16009 for file in fs/dcache.c; do
16010 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
16011 rc=$?
16012 if test $rc -eq 0; then
16013
16014 export=1
16015 break;
16016
16017 fi
16018
16019 done
16020 if test $export -eq 0; then
16021
16022 { $as_echo "$as_me:$LINENO: result: no" >&5
16023 $as_echo "no" >&6; }
16024
16025
16026 else
16027
16028 { $as_echo "$as_me:$LINENO: result: yes" >&5
16029 $as_echo "yes" >&6; }
16030
16031 cat >>confdefs.h <<\_ACEOF
16032 #define HAVE_D_OBTAIN_ALIAS 1
16033 _ACEOF
16034
16035
16036 fi
16037
16038
16039 else
16040
16041 { $as_echo "$as_me:$LINENO: result: yes" >&5
16042 $as_echo "yes" >&6; }
16043
16044 cat >>confdefs.h <<\_ACEOF
16045 #define HAVE_D_OBTAIN_ALIAS 1
16046 _ACEOF
16047
16048
16049 fi
16050
16051
16052
16053
16054 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
16055 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
16056 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
16057 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16058 rc=$?
16059 if test $rc -ne 0; then
16060
16061 export=0
16062 for file in fs/block_dev.c; do
16063 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
16064 rc=$?
16065 if test $rc -eq 0; then
16066
16067 export=1
16068 break;
16069
16070 fi
16071
16072 done
16073 if test $export -eq 0; then
16074
16075 { $as_echo "$as_me:$LINENO: result: no" >&5
16076 $as_echo "no" >&6; }
16077
16078
16079 else
16080
16081 { $as_echo "$as_me:$LINENO: result: yes" >&5
16082 $as_echo "yes" >&6; }
16083
16084 cat >>confdefs.h <<\_ACEOF
16085 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
16086 _ACEOF
16087
16088
16089 fi
16090
16091
16092 else
16093
16094 { $as_echo "$as_me:$LINENO: result: yes" >&5
16095 $as_echo "yes" >&6; }
16096
16097 cat >>confdefs.h <<\_ACEOF
16098 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
16099 _ACEOF
16100
16101
16102 fi
16103
16104
16105
16106
16107 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
16108 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
16109 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
16110 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16111 rc=$?
16112 if test $rc -ne 0; then
16113
16114 export=0
16115 for file in mm/truncate.c; do
16116 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
16117 rc=$?
16118 if test $rc -eq 0; then
16119
16120 export=1
16121 break;
16122
16123 fi
16124
16125 done
16126 if test $export -eq 0; then
16127
16128 { $as_echo "$as_me:$LINENO: result: no" >&5
16129 $as_echo "no" >&6; }
16130
16131
16132 else
16133
16134 { $as_echo "$as_me:$LINENO: result: yes" >&5
16135 $as_echo "yes" >&6; }
16136
16137 cat >>confdefs.h <<\_ACEOF
16138 #define HAVE_TRUNCATE_SETSIZE 1
16139 _ACEOF
16140
16141
16142 fi
16143
16144
16145 else
16146
16147 { $as_echo "$as_me:$LINENO: result: yes" >&5
16148 $as_echo "yes" >&6; }
16149
16150 cat >>confdefs.h <<\_ACEOF
16151 #define HAVE_TRUNCATE_SETSIZE 1
16152 _ACEOF
16153
16154
16155 fi
16156
16157
16158
16159
16160 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
16161 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
16162 tmp_flags="$EXTRA_KCFLAGS"
16163 EXTRA_KCFLAGS="-Werror"
16164
16165
16166 cat confdefs.h - <<_ACEOF >conftest.c
16167 /* confdefs.h. */
16168 _ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16172
16173
16174 #include <linux/security.h>
16175
16176 int
16177 main (void)
16178 {
16179
16180 struct inode *ip __attribute__ ((unused)) = NULL;
16181 struct inode *dip __attribute__ ((unused)) = NULL;
16182 const struct qstr *str __attribute__ ((unused)) = NULL;
16183 char *name __attribute__ ((unused)) = NULL;
16184 void *value __attribute__ ((unused)) = NULL;
16185 size_t len __attribute__ ((unused)) = 0;
16186
16187 security_inode_init_security(ip, dip, str, &name, &value, &len);
16188
16189 ;
16190 return 0;
16191 }
16192
16193 _ACEOF
16194
16195
16196 rm -Rf build && mkdir -p build
16197 echo "obj-m := conftest.o" >build/Makefile
16198 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'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209
16210 { $as_echo "$as_me:$LINENO: result: yes" >&5
16211 $as_echo "yes" >&6; }
16212
16213 cat >>confdefs.h <<\_ACEOF
16214 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
16215 _ACEOF
16216
16217
16218 else
16219 $as_echo "$as_me: failed program was:" >&5
16220 sed 's/^/| /' conftest.$ac_ext >&5
16221
16222 { $as_echo "$as_me:$LINENO: result: no" >&5
16223 $as_echo "no" >&6; }
16224
16225
16226
16227 fi
16228
16229 rm -Rf build
16230
16231
16232 EXTRA_KCFLAGS="$tmp_flags"
16233
16234
16235 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
16236 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
16237 tmp_flags="$EXTRA_KCFLAGS"
16238 EXTRA_KCFLAGS="-Werror"
16239
16240
16241 cat confdefs.h - <<_ACEOF >conftest.c
16242 /* confdefs.h. */
16243 _ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16247
16248
16249 #include <linux/security.h>
16250
16251 int
16252 main (void)
16253 {
16254
16255 struct inode *ip __attribute__ ((unused)) = NULL;
16256 struct inode *dip __attribute__ ((unused)) = NULL;
16257 const struct qstr *str __attribute__ ((unused)) = NULL;
16258 initxattrs func __attribute__ ((unused)) = NULL;
16259
16260 security_inode_init_security(ip, dip, str, func, NULL);
16261
16262 ;
16263 return 0;
16264 }
16265
16266 _ACEOF
16267
16268
16269 rm -Rf build && mkdir -p build
16270 echo "obj-m := conftest.o" >build/Makefile
16271 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'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16279 ac_status=$?
16280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; }; then
16282
16283 { $as_echo "$as_me:$LINENO: result: yes" >&5
16284 $as_echo "yes" >&6; }
16285
16286 cat >>confdefs.h <<\_ACEOF
16287 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
16288 _ACEOF
16289
16290
16291 else
16292 $as_echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16294
16295 { $as_echo "$as_me:$LINENO: result: no" >&5
16296 $as_echo "no" >&6; }
16297
16298
16299
16300 fi
16301
16302 rm -Rf build
16303
16304
16305 EXTRA_KCFLAGS="$tmp_flags"
16306
16307
16308 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
16309 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
16310 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
16311 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16312 rc=$?
16313 if test $rc -ne 0; then
16314
16315 export=0
16316 for file in fs/super.c; do
16317 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
16318 rc=$?
16319 if test $rc -eq 0; then
16320
16321 export=1
16322 break;
16323
16324 fi
16325
16326 done
16327 if test $export -eq 0; then
16328
16329 { $as_echo "$as_me:$LINENO: result: no" >&5
16330 $as_echo "no" >&6; }
16331
16332
16333 else
16334
16335 { $as_echo "$as_me:$LINENO: result: yes" >&5
16336 $as_echo "yes" >&6; }
16337
16338 cat >>confdefs.h <<\_ACEOF
16339 #define HAVE_MOUNT_NODEV 1
16340 _ACEOF
16341
16342
16343 fi
16344
16345
16346 else
16347
16348 { $as_echo "$as_me:$LINENO: result: yes" >&5
16349 $as_echo "yes" >&6; }
16350
16351 cat >>confdefs.h <<\_ACEOF
16352 #define HAVE_MOUNT_NODEV 1
16353 _ACEOF
16354
16355
16356 fi
16357
16358
16359
16360
16361 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
16362 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
16363
16364
16365 cat confdefs.h - <<_ACEOF >conftest.c
16366 /* confdefs.h. */
16367 _ACEOF
16368 cat confdefs.h >>conftest.$ac_ext
16369 cat >>conftest.$ac_ext <<_ACEOF
16370 /* end confdefs.h. */
16371
16372
16373 #include <linux/fs.h>
16374
16375 int
16376 main (void)
16377 {
16378
16379 int (*shrink)(struct shrinker *, struct shrink_control *sc)
16380 __attribute__ ((unused)) = NULL;
16381 struct super_block sb __attribute__ ((unused)) = {
16382 .s_shrink.shrink = shrink,
16383 .s_shrink.seeks = DEFAULT_SEEKS,
16384 .s_shrink.batch = 0,
16385 };
16386
16387 ;
16388 return 0;
16389 }
16390
16391 _ACEOF
16392
16393
16394 rm -Rf build && mkdir -p build
16395 echo "obj-m := conftest.o" >build/Makefile
16396 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'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16404 ac_status=$?
16405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; }; then
16407
16408 { $as_echo "$as_me:$LINENO: result: yes" >&5
16409 $as_echo "yes" >&6; }
16410
16411 cat >>confdefs.h <<\_ACEOF
16412 #define HAVE_SHRINK 1
16413 _ACEOF
16414
16415
16416
16417 else
16418 $as_echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16420
16421 { $as_echo "$as_me:$LINENO: result: no" >&5
16422 $as_echo "no" >&6; }
16423
16424
16425
16426 fi
16427
16428 rm -Rf build
16429
16430
16431
16432
16433 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
16434 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
16435
16436
16437 cat confdefs.h - <<_ACEOF >conftest.c
16438 /* confdefs.h. */
16439 _ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h. */
16443
16444
16445 #include <linux/fs.h>
16446
16447 int
16448 main (void)
16449 {
16450
16451 struct super_block sb __attribute__ ((unused));
16452 sb.s_bdi = NULL;
16453
16454 ;
16455 return 0;
16456 }
16457
16458 _ACEOF
16459
16460
16461 rm -Rf build && mkdir -p build
16462 echo "obj-m := conftest.o" >build/Makefile
16463 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'
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16471 ac_status=$?
16472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474
16475 { $as_echo "$as_me:$LINENO: result: yes" >&5
16476 $as_echo "yes" >&6; }
16477
16478 cat >>confdefs.h <<\_ACEOF
16479 #define HAVE_BDI 1
16480 _ACEOF
16481
16482
16483 else
16484 $as_echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16486
16487 { $as_echo "$as_me:$LINENO: result: no" >&5
16488 $as_echo "no" >&6; }
16489
16490
16491
16492 fi
16493
16494 rm -Rf build
16495
16496
16497
16498
16499 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
16500 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
16501 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
16502 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16503 rc=$?
16504 if test $rc -ne 0; then
16505
16506 export=0
16507 for file in mm/backing-dev.c; do
16508 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
16509 rc=$?
16510 if test $rc -eq 0; then
16511
16512 export=1
16513 break;
16514
16515 fi
16516
16517 done
16518 if test $export -eq 0; then
16519
16520 { $as_echo "$as_me:$LINENO: result: no" >&5
16521 $as_echo "no" >&6; }
16522
16523
16524 else
16525
16526 { $as_echo "$as_me:$LINENO: result: yes" >&5
16527 $as_echo "yes" >&6; }
16528
16529 cat >>confdefs.h <<\_ACEOF
16530 #define HAVE_BDI_SETUP_AND_REGISTER 1
16531 _ACEOF
16532
16533
16534 fi
16535
16536
16537 else
16538
16539 { $as_echo "$as_me:$LINENO: result: yes" >&5
16540 $as_echo "yes" >&6; }
16541
16542 cat >>confdefs.h <<\_ACEOF
16543 #define HAVE_BDI_SETUP_AND_REGISTER 1
16544 _ACEOF
16545
16546
16547 fi
16548
16549
16550
16551
16552 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
16553 $as_echo_n "checking whether set_nlink() is available... " >&6; }
16554
16555
16556 cat confdefs.h - <<_ACEOF >conftest.c
16557 /* confdefs.h. */
16558 _ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16562
16563
16564 #include <linux/fs.h>
16565
16566 int
16567 main (void)
16568 {
16569
16570 struct inode node;
16571 unsigned int link = 0;
16572 (void) set_nlink(&node, link);
16573
16574 ;
16575 return 0;
16576 }
16577
16578 _ACEOF
16579
16580
16581 rm -Rf build && mkdir -p build
16582 echo "obj-m := conftest.o" >build/Makefile
16583 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'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16586 ac_status=$?
16587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594
16595 { $as_echo "$as_me:$LINENO: result: yes" >&5
16596 $as_echo "yes" >&6; }
16597
16598 cat >>confdefs.h <<\_ACEOF
16599 #define HAVE_SET_NLINK 1
16600 _ACEOF
16601
16602
16603 else
16604 $as_echo "$as_me: failed program was:" >&5
16605 sed 's/^/| /' conftest.$ac_ext >&5
16606
16607 { $as_echo "$as_me:$LINENO: result: no" >&5
16608 $as_echo "no" >&6; }
16609
16610
16611
16612 fi
16613
16614 rm -Rf build
16615
16616
16617
16618
16619 if test "$LINUX_OBJ" != "$LINUX"; then
16620
16621 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16622
16623 fi
16624
16625
16626
16627
16628 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
16629 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
16630 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
16631
16632
16633 ;;
16634 user)
16635
16636
16637 # Check whether --with-udevdir was given.
16638 if test "${with_udevdir+set}" = set; then
16639 withval=$with_udevdir; udevdir=$withval
16640 else
16641 udevdir='${exec_prefix}/lib/udev'
16642 fi
16643
16644
16645
16646 # Check whether --with-udevruledir was given.
16647 if test "${with_udevruledir+set}" = set; then
16648 withval=$with_udevruledir; udevruledir=$withval
16649 else
16650 udevruledir='${udevdir}/rules.d'
16651 fi
16652
16653
16654
16655
16656
16657
16658 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
16659 $as_echo_n "checking for target asm dir... " >&6; }
16660 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
16661
16662 case $TARGET_ARCH in
16663 i386|x86_64)
16664 TARGET_ASM_DIR=asm-${TARGET_ARCH}
16665 ;;
16666 *)
16667 TARGET_ASM_DIR=asm-generic
16668 ;;
16669 esac
16670
16671
16672 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
16673 $as_echo "$TARGET_ASM_DIR" >&6; }
16674
16675
16676 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
16677 $as_echo_n "checking for ioctl()... " >&6; }
16678 cat >conftest.$ac_ext <<_ACEOF
16679 /* confdefs.h. */
16680 _ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 #include <unistd.h>
16685
16686 _ACEOF
16687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16688 $EGREP "ioctl" >/dev/null 2>&1; then
16689 is_unistd=yes
16690 else
16691 is_unistd=no
16692 fi
16693 rm -f conftest*
16694
16695 cat >conftest.$ac_ext <<_ACEOF
16696 /* confdefs.h. */
16697 _ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 #include <sys/ioctl.h>
16702
16703 _ACEOF
16704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16705 $EGREP "ioctl" >/dev/null 2>&1; then
16706 is_sys_ioctl=yes
16707 else
16708 is_sys_ioctl=no
16709 fi
16710 rm -f conftest*
16711
16712 cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h. */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 #include <stropts.h>
16719
16720 _ACEOF
16721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16722 $EGREP "ioctl" >/dev/null 2>&1; then
16723 is_stropts=yes
16724 else
16725 is_stropts=no
16726 fi
16727 rm -f conftest*
16728
16729
16730 if test $is_unistd = yes; then
16731 result=unistd.h
16732
16733 cat >>confdefs.h <<\_ACEOF
16734 #define HAVE_IOCTL_IN_UNISTD_H 1
16735 _ACEOF
16736
16737 else
16738
16739 if test $is_sys_ioctl = yes; then
16740 result=sys/ioctl.h
16741
16742 cat >>confdefs.h <<\_ACEOF
16743 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
16744 _ACEOF
16745
16746 elif test $is_stropts = yes; then
16747
16748 cat >>confdefs.h <<\_ACEOF
16749 #define HAVE_IOCTL_IN_STROPTS_H 1
16750 _ACEOF
16751
16752 else
16753 result=no
16754 fi
16755 fi
16756
16757 if test $result = no; then
16758 { $as_echo "$as_me:$LINENO: result: no" >&5
16759 $as_echo "no" >&6; }
16760 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
16761 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
16762 { (exit 1); exit 1; }; }
16763 else
16764 { $as_echo "$as_me:$LINENO: result: yes" >&5
16765 $as_echo "yes" >&6; }
16766 fi
16767
16768
16769 ZLIB=
16770
16771 if test "${ac_cv_header_zlib_h+set}" = set; then
16772 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16773 $as_echo_n "checking for zlib.h... " >&6; }
16774 if test "${ac_cv_header_zlib_h+set}" = set; then
16775 $as_echo_n "(cached) " >&6
16776 fi
16777 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16778 $as_echo "$ac_cv_header_zlib_h" >&6; }
16779 else
16780 # Is the header compilable?
16781 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
16782 $as_echo_n "checking zlib.h usability... " >&6; }
16783 cat >conftest.$ac_ext <<_ACEOF
16784 /* confdefs.h. */
16785 _ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16789 $ac_includes_default
16790 #include <zlib.h>
16791 _ACEOF
16792 rm -f conftest.$ac_objext
16793 if { (ac_try="$ac_compile"
16794 case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16797 esac
16798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16799 $as_echo "$ac_try_echo") >&5
16800 (eval "$ac_compile") 2>conftest.er1
16801 ac_status=$?
16802 grep -v '^ *+' conftest.er1 >conftest.err
16803 rm -f conftest.er1
16804 cat conftest.err >&5
16805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } && {
16807 test -z "$ac_c_werror_flag" ||
16808 test ! -s conftest.err
16809 } && test -s conftest.$ac_objext; then
16810 ac_header_compiler=yes
16811 else
16812 $as_echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16814
16815 ac_header_compiler=no
16816 fi
16817
16818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16819 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16820 $as_echo "$ac_header_compiler" >&6; }
16821
16822 # Is the header present?
16823 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
16824 $as_echo_n "checking zlib.h presence... " >&6; }
16825 cat >conftest.$ac_ext <<_ACEOF
16826 /* confdefs.h. */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16831 #include <zlib.h>
16832 _ACEOF
16833 if { (ac_try="$ac_cpp conftest.$ac_ext"
16834 case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16837 esac
16838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16839 $as_echo "$ac_try_echo") >&5
16840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16841 ac_status=$?
16842 grep -v '^ *+' conftest.er1 >conftest.err
16843 rm -f conftest.er1
16844 cat conftest.err >&5
16845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); } >/dev/null && {
16847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16848 test ! -s conftest.err
16849 }; then
16850 ac_header_preproc=yes
16851 else
16852 $as_echo "$as_me: failed program was:" >&5
16853 sed 's/^/| /' conftest.$ac_ext >&5
16854
16855 ac_header_preproc=no
16856 fi
16857
16858 rm -f conftest.err conftest.$ac_ext
16859 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16860 $as_echo "$ac_header_preproc" >&6; }
16861
16862 # So? What about this header?
16863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16864 yes:no: )
16865 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16866 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16867 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
16868 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
16869 ac_header_preproc=yes
16870 ;;
16871 no:yes:* )
16872 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
16873 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
16874 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
16875 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
16876 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
16877 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
16878 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
16879 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16880 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
16881 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
16882 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
16883 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
16884
16885 ;;
16886 esac
16887 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16888 $as_echo_n "checking for zlib.h... " >&6; }
16889 if test "${ac_cv_header_zlib_h+set}" = set; then
16890 $as_echo_n "(cached) " >&6
16891 else
16892 ac_cv_header_zlib_h=$ac_header_preproc
16893 fi
16894 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16895 $as_echo "$ac_cv_header_zlib_h" >&6; }
16896
16897 fi
16898 if test "x$ac_cv_header_zlib_h" = x""yes; then
16899 :
16900 else
16901 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16903 { { $as_echo "$as_me:$LINENO: error:
16904 *** zlib.h missing, zlib-devel package required
16905 See \`config.log' for more details." >&5
16906 $as_echo "$as_me: error:
16907 *** zlib.h missing, zlib-devel package required
16908 See \`config.log' for more details." >&2;}
16909 { (exit 1); exit 1; }; }; }
16910 fi
16911
16912
16913
16914
16915 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
16916 $as_echo_n "checking for compress2 in -lz... " >&6; }
16917 if test "${ac_cv_lib_z_compress2+set}" = set; then
16918 $as_echo_n "(cached) " >&6
16919 else
16920 ac_check_lib_save_LIBS=$LIBS
16921 LIBS="-lz $LIBS"
16922 cat >conftest.$ac_ext <<_ACEOF
16923 /* confdefs.h. */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928
16929 /* Override any GCC internal prototype to avoid an error.
16930 Use char because int might match the return type of a GCC
16931 builtin and then its argument prototype would still apply. */
16932 #ifdef __cplusplus
16933 extern "C"
16934 #endif
16935 char compress2 ();
16936 int
16937 main ()
16938 {
16939 return compress2 ();
16940 ;
16941 return 0;
16942 }
16943 _ACEOF
16944 rm -f conftest.$ac_objext conftest$ac_exeext
16945 if { (ac_try="$ac_link"
16946 case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949 esac
16950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16951 $as_echo "$ac_try_echo") >&5
16952 (eval "$ac_link") 2>conftest.er1
16953 ac_status=$?
16954 grep -v '^ *+' conftest.er1 >conftest.err
16955 rm -f conftest.er1
16956 cat conftest.err >&5
16957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } && {
16959 test -z "$ac_c_werror_flag" ||
16960 test ! -s conftest.err
16961 } && test -s conftest$ac_exeext && {
16962 test "$cross_compiling" = yes ||
16963 $as_test_x conftest$ac_exeext
16964 }; then
16965 ac_cv_lib_z_compress2=yes
16966 else
16967 $as_echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16969
16970 ac_cv_lib_z_compress2=no
16971 fi
16972
16973 rm -rf conftest.dSYM
16974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16975 conftest$ac_exeext conftest.$ac_ext
16976 LIBS=$ac_check_lib_save_LIBS
16977 fi
16978 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
16979 $as_echo "$ac_cv_lib_z_compress2" >&6; }
16980 if test "x$ac_cv_lib_z_compress2" = x""yes; then
16981 cat >>confdefs.h <<_ACEOF
16982 #define HAVE_LIBZ 1
16983 _ACEOF
16984
16985 LIBS="-lz $LIBS"
16986
16987 else
16988 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16990 { { $as_echo "$as_me:$LINENO: error:
16991 *** compress2() missing, zlib-devel package required
16992 See \`config.log' for more details." >&5
16993 $as_echo "$as_me: error:
16994 *** compress2() missing, zlib-devel package required
16995 See \`config.log' for more details." >&2;}
16996 { (exit 1); exit 1; }; }; }
16997 fi
16998
16999
17000
17001 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
17002 $as_echo_n "checking for uncompress in -lz... " >&6; }
17003 if test "${ac_cv_lib_z_uncompress+set}" = set; then
17004 $as_echo_n "(cached) " >&6
17005 else
17006 ac_check_lib_save_LIBS=$LIBS
17007 LIBS="-lz $LIBS"
17008 cat >conftest.$ac_ext <<_ACEOF
17009 /* confdefs.h. */
17010 _ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014
17015 /* Override any GCC internal prototype to avoid an error.
17016 Use char because int might match the return type of a GCC
17017 builtin and then its argument prototype would still apply. */
17018 #ifdef __cplusplus
17019 extern "C"
17020 #endif
17021 char uncompress ();
17022 int
17023 main ()
17024 {
17025 return uncompress ();
17026 ;
17027 return 0;
17028 }
17029 _ACEOF
17030 rm -f conftest.$ac_objext conftest$ac_exeext
17031 if { (ac_try="$ac_link"
17032 case "(($ac_try" in
17033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17035 esac
17036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17037 $as_echo "$ac_try_echo") >&5
17038 (eval "$ac_link") 2>conftest.er1
17039 ac_status=$?
17040 grep -v '^ *+' conftest.er1 >conftest.err
17041 rm -f conftest.er1
17042 cat conftest.err >&5
17043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } && {
17045 test -z "$ac_c_werror_flag" ||
17046 test ! -s conftest.err
17047 } && test -s conftest$ac_exeext && {
17048 test "$cross_compiling" = yes ||
17049 $as_test_x conftest$ac_exeext
17050 }; then
17051 ac_cv_lib_z_uncompress=yes
17052 else
17053 $as_echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.$ac_ext >&5
17055
17056 ac_cv_lib_z_uncompress=no
17057 fi
17058
17059 rm -rf conftest.dSYM
17060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17061 conftest$ac_exeext conftest.$ac_ext
17062 LIBS=$ac_check_lib_save_LIBS
17063 fi
17064 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
17065 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
17066 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
17067 cat >>confdefs.h <<_ACEOF
17068 #define HAVE_LIBZ 1
17069 _ACEOF
17070
17071 LIBS="-lz $LIBS"
17072
17073 else
17074 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17076 { { $as_echo "$as_me:$LINENO: error:
17077 *** uncompress() missing, zlib-devel package required
17078 See \`config.log' for more details." >&5
17079 $as_echo "$as_me: error:
17080 *** uncompress() missing, zlib-devel package required
17081 See \`config.log' for more details." >&2;}
17082 { (exit 1); exit 1; }; }; }
17083 fi
17084
17085
17086
17087 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
17088 $as_echo_n "checking for crc32 in -lz... " >&6; }
17089 if test "${ac_cv_lib_z_crc32+set}" = set; then
17090 $as_echo_n "(cached) " >&6
17091 else
17092 ac_check_lib_save_LIBS=$LIBS
17093 LIBS="-lz $LIBS"
17094 cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h. */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17100
17101 /* Override any GCC internal prototype to avoid an error.
17102 Use char because int might match the return type of a GCC
17103 builtin and then its argument prototype would still apply. */
17104 #ifdef __cplusplus
17105 extern "C"
17106 #endif
17107 char crc32 ();
17108 int
17109 main ()
17110 {
17111 return crc32 ();
17112 ;
17113 return 0;
17114 }
17115 _ACEOF
17116 rm -f conftest.$ac_objext conftest$ac_exeext
17117 if { (ac_try="$ac_link"
17118 case "(($ac_try" in
17119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120 *) ac_try_echo=$ac_try;;
17121 esac
17122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17123 $as_echo "$ac_try_echo") >&5
17124 (eval "$ac_link") 2>conftest.er1
17125 ac_status=$?
17126 grep -v '^ *+' conftest.er1 >conftest.err
17127 rm -f conftest.er1
17128 cat conftest.err >&5
17129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } && {
17131 test -z "$ac_c_werror_flag" ||
17132 test ! -s conftest.err
17133 } && test -s conftest$ac_exeext && {
17134 test "$cross_compiling" = yes ||
17135 $as_test_x conftest$ac_exeext
17136 }; then
17137 ac_cv_lib_z_crc32=yes
17138 else
17139 $as_echo "$as_me: failed program was:" >&5
17140 sed 's/^/| /' conftest.$ac_ext >&5
17141
17142 ac_cv_lib_z_crc32=no
17143 fi
17144
17145 rm -rf conftest.dSYM
17146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17147 conftest$ac_exeext conftest.$ac_ext
17148 LIBS=$ac_check_lib_save_LIBS
17149 fi
17150 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
17151 $as_echo "$ac_cv_lib_z_crc32" >&6; }
17152 if test "x$ac_cv_lib_z_crc32" = x""yes; then
17153 cat >>confdefs.h <<_ACEOF
17154 #define HAVE_LIBZ 1
17155 _ACEOF
17156
17157 LIBS="-lz $LIBS"
17158
17159 else
17160 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17162 { { $as_echo "$as_me:$LINENO: error:
17163 *** crc32() missing, zlib-devel package required
17164 See \`config.log' for more details." >&5
17165 $as_echo "$as_me: error:
17166 *** crc32() missing, zlib-devel package required
17167 See \`config.log' for more details." >&2;}
17168 { (exit 1); exit 1; }; }; }
17169 fi
17170
17171
17172 ZLIB="-lz"
17173
17174
17175 cat >>confdefs.h <<\_ACEOF
17176 #define HAVE_ZLIB 1
17177 _ACEOF
17178
17179
17180
17181 LIBUUID=
17182
17183 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17184 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17185 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17186 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17187 $as_echo_n "(cached) " >&6
17188 fi
17189 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17190 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17191 else
17192 # Is the header compilable?
17193 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
17194 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
17195 cat >conftest.$ac_ext <<_ACEOF
17196 /* confdefs.h. */
17197 _ACEOF
17198 cat confdefs.h >>conftest.$ac_ext
17199 cat >>conftest.$ac_ext <<_ACEOF
17200 /* end confdefs.h. */
17201 $ac_includes_default
17202 #include <uuid/uuid.h>
17203 _ACEOF
17204 rm -f conftest.$ac_objext
17205 if { (ac_try="$ac_compile"
17206 case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17209 esac
17210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17211 $as_echo "$ac_try_echo") >&5
17212 (eval "$ac_compile") 2>conftest.er1
17213 ac_status=$?
17214 grep -v '^ *+' conftest.er1 >conftest.err
17215 rm -f conftest.er1
17216 cat conftest.err >&5
17217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } && {
17219 test -z "$ac_c_werror_flag" ||
17220 test ! -s conftest.err
17221 } && test -s conftest.$ac_objext; then
17222 ac_header_compiler=yes
17223 else
17224 $as_echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17226
17227 ac_header_compiler=no
17228 fi
17229
17230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17231 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17232 $as_echo "$ac_header_compiler" >&6; }
17233
17234 # Is the header present?
17235 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
17236 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
17237 cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h. */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17243 #include <uuid/uuid.h>
17244 _ACEOF
17245 if { (ac_try="$ac_cpp conftest.$ac_ext"
17246 case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17249 esac
17250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17251 $as_echo "$ac_try_echo") >&5
17252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17253 ac_status=$?
17254 grep -v '^ *+' conftest.er1 >conftest.err
17255 rm -f conftest.er1
17256 cat conftest.err >&5
17257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } >/dev/null && {
17259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17260 test ! -s conftest.err
17261 }; then
17262 ac_header_preproc=yes
17263 else
17264 $as_echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17266
17267 ac_header_preproc=no
17268 fi
17269
17270 rm -f conftest.err conftest.$ac_ext
17271 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17272 $as_echo "$ac_header_preproc" >&6; }
17273
17274 # So? What about this header?
17275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17276 yes:no: )
17277 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
17278 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17279 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
17280 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
17281 ac_header_preproc=yes
17282 ;;
17283 no:yes:* )
17284 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
17285 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
17286 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
17287 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
17288 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
17289 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
17290 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
17291 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
17292 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
17293 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
17294 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
17295 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
17296
17297 ;;
17298 esac
17299 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17300 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17301 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17302 $as_echo_n "(cached) " >&6
17303 else
17304 ac_cv_header_uuid_uuid_h=$ac_header_preproc
17305 fi
17306 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17307 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17308
17309 fi
17310 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
17311 :
17312 else
17313 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17315 { { $as_echo "$as_me:$LINENO: error:
17316 *** uuid/uuid.h missing, libuuid-devel package required
17317 See \`config.log' for more details." >&5
17318 $as_echo "$as_me: error:
17319 *** uuid/uuid.h missing, libuuid-devel package required
17320 See \`config.log' for more details." >&2;}
17321 { (exit 1); exit 1; }; }; }
17322 fi
17323
17324
17325
17326
17327 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
17328 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17329 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
17330 $as_echo_n "(cached) " >&6
17331 else
17332 ac_check_lib_save_LIBS=$LIBS
17333 LIBS="-luuid $LIBS"
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h. */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340
17341 /* Override any GCC internal prototype to avoid an error.
17342 Use char because int might match the return type of a GCC
17343 builtin and then its argument prototype would still apply. */
17344 #ifdef __cplusplus
17345 extern "C"
17346 #endif
17347 char uuid_generate ();
17348 int
17349 main ()
17350 {
17351 return uuid_generate ();
17352 ;
17353 return 0;
17354 }
17355 _ACEOF
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (ac_try="$ac_link"
17358 case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17361 esac
17362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17363 $as_echo "$ac_try_echo") >&5
17364 (eval "$ac_link") 2>conftest.er1
17365 ac_status=$?
17366 grep -v '^ *+' conftest.er1 >conftest.err
17367 rm -f conftest.er1
17368 cat conftest.err >&5
17369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } && {
17371 test -z "$ac_c_werror_flag" ||
17372 test ! -s conftest.err
17373 } && test -s conftest$ac_exeext && {
17374 test "$cross_compiling" = yes ||
17375 $as_test_x conftest$ac_exeext
17376 }; then
17377 ac_cv_lib_uuid_uuid_generate=yes
17378 else
17379 $as_echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382 ac_cv_lib_uuid_uuid_generate=no
17383 fi
17384
17385 rm -rf conftest.dSYM
17386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17387 conftest$ac_exeext conftest.$ac_ext
17388 LIBS=$ac_check_lib_save_LIBS
17389 fi
17390 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
17391 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17392 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
17393 cat >>confdefs.h <<_ACEOF
17394 #define HAVE_LIBUUID 1
17395 _ACEOF
17396
17397 LIBS="-luuid $LIBS"
17398
17399 else
17400 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17402 { { $as_echo "$as_me:$LINENO: error:
17403 *** uuid_generate() missing, libuuid-devel package required
17404 See \`config.log' for more details." >&5
17405 $as_echo "$as_me: error:
17406 *** uuid_generate() missing, libuuid-devel package required
17407 See \`config.log' for more details." >&2;}
17408 { (exit 1); exit 1; }; }; }
17409 fi
17410
17411
17412
17413 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
17414 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
17415 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
17416 $as_echo_n "(cached) " >&6
17417 else
17418 ac_check_lib_save_LIBS=$LIBS
17419 LIBS="-luuid $LIBS"
17420 cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h. */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426
17427 /* Override any GCC internal prototype to avoid an error.
17428 Use char because int might match the return type of a GCC
17429 builtin and then its argument prototype would still apply. */
17430 #ifdef __cplusplus
17431 extern "C"
17432 #endif
17433 char uuid_is_null ();
17434 int
17435 main ()
17436 {
17437 return uuid_is_null ();
17438 ;
17439 return 0;
17440 }
17441 _ACEOF
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17447 esac
17448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17449 $as_echo "$ac_try_echo") >&5
17450 (eval "$ac_link") 2>conftest.er1
17451 ac_status=$?
17452 grep -v '^ *+' conftest.er1 >conftest.err
17453 rm -f conftest.er1
17454 cat conftest.err >&5
17455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } && {
17457 test -z "$ac_c_werror_flag" ||
17458 test ! -s conftest.err
17459 } && test -s conftest$ac_exeext && {
17460 test "$cross_compiling" = yes ||
17461 $as_test_x conftest$ac_exeext
17462 }; then
17463 ac_cv_lib_uuid_uuid_is_null=yes
17464 else
17465 $as_echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17467
17468 ac_cv_lib_uuid_uuid_is_null=no
17469 fi
17470
17471 rm -rf conftest.dSYM
17472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17473 conftest$ac_exeext conftest.$ac_ext
17474 LIBS=$ac_check_lib_save_LIBS
17475 fi
17476 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
17477 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
17478 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
17479 cat >>confdefs.h <<_ACEOF
17480 #define HAVE_LIBUUID 1
17481 _ACEOF
17482
17483 LIBS="-luuid $LIBS"
17484
17485 else
17486 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17488 { { $as_echo "$as_me:$LINENO: error:
17489 *** uuid_is_null() missing, libuuid-devel package required
17490 See \`config.log' for more details." >&5
17491 $as_echo "$as_me: error:
17492 *** uuid_is_null() missing, libuuid-devel package required
17493 See \`config.log' for more details." >&2;}
17494 { (exit 1); exit 1; }; }; }
17495 fi
17496
17497
17498 LIBUUID="-luuid"
17499
17500
17501 cat >>confdefs.h <<\_ACEOF
17502 #define HAVE_LIBUUID 1
17503 _ACEOF
17504
17505
17506
17507
17508 # Check whether --with-blkid was given.
17509 if test "${with_blkid+set}" = set; then
17510 withval=$with_blkid;
17511 else
17512 with_blkid=check
17513 fi
17514
17515
17516 LIBBLKID=
17517 if test "x$with_blkid" != xno; then
17518
17519 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
17520 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
17521 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
17522 $as_echo_n "(cached) " >&6
17523 else
17524 ac_check_lib_save_LIBS=$LIBS
17525 LIBS="-lblkid $LIBS"
17526 cat >conftest.$ac_ext <<_ACEOF
17527 /* confdefs.h. */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532
17533 /* Override any GCC internal prototype to avoid an error.
17534 Use char because int might match the return type of a GCC
17535 builtin and then its argument prototype would still apply. */
17536 #ifdef __cplusplus
17537 extern "C"
17538 #endif
17539 char blkid_get_cache ();
17540 int
17541 main ()
17542 {
17543 return blkid_get_cache ();
17544 ;
17545 return 0;
17546 }
17547 _ACEOF
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (ac_try="$ac_link"
17550 case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17553 esac
17554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17555 $as_echo "$ac_try_echo") >&5
17556 (eval "$ac_link") 2>conftest.er1
17557 ac_status=$?
17558 grep -v '^ *+' conftest.er1 >conftest.err
17559 rm -f conftest.er1
17560 cat conftest.err >&5
17561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } && {
17563 test -z "$ac_c_werror_flag" ||
17564 test ! -s conftest.err
17565 } && test -s conftest$ac_exeext && {
17566 test "$cross_compiling" = yes ||
17567 $as_test_x conftest$ac_exeext
17568 }; then
17569 ac_cv_lib_blkid_blkid_get_cache=yes
17570 else
17571 $as_echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17573
17574 ac_cv_lib_blkid_blkid_get_cache=no
17575 fi
17576
17577 rm -rf conftest.dSYM
17578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17579 conftest$ac_exeext conftest.$ac_ext
17580 LIBS=$ac_check_lib_save_LIBS
17581 fi
17582 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
17583 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
17584 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
17585
17586 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
17587 $as_echo_n "checking for blkid zfs support... " >&6; }
17588
17589 ZFS_DEV=`mktemp`
17590 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
17591 >/dev/null 2>/dev/null
17592 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
17593 dd of=$ZFS_DEV bs=1k count=8 \
17594 seek=132 conv=notrunc &>/dev/null \
17595 >/dev/null 2>/dev/null
17596
17597 saved_LDFLAGS="$LDFLAGS"
17598 LDFLAGS="-lblkid"
17599
17600 if test "$cross_compiling" = yes; then
17601 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17603 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17604 See \`config.log' for more details." >&5
17605 $as_echo "$as_me: error: cannot run test program while cross compiling
17606 See \`config.log' for more details." >&2;}
17607 { (exit 1); exit 1; }; }; }
17608 else
17609 cat >conftest.$ac_ext <<_ACEOF
17610 /* confdefs.h. */
17611 _ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17615
17616 #include <stdio.h>
17617 #include <blkid/blkid.h>
17618
17619 int
17620 main ()
17621 {
17622
17623 blkid_cache cache;
17624 char *value;
17625
17626 if (blkid_get_cache(&cache, NULL) < 0)
17627 return 1;
17628
17629 value = blkid_get_tag_value(cache, "TYPE",
17630 "$ZFS_DEV");
17631 if (!value) {
17632 blkid_put_cache(cache);
17633 return 2;
17634 }
17635
17636 if (strcmp(value, "zfs")) {
17637 free(value);
17638 blkid_put_cache(cache);
17639 return 3;
17640 }
17641
17642 free(value);
17643 blkid_put_cache(cache);
17644
17645 ;
17646 return 0;
17647 }
17648 _ACEOF
17649 rm -f conftest$ac_exeext
17650 if { (ac_try="$ac_link"
17651 case "(($ac_try" in
17652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653 *) ac_try_echo=$ac_try;;
17654 esac
17655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17656 $as_echo "$ac_try_echo") >&5
17657 (eval "$ac_link") 2>&5
17658 ac_status=$?
17659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17661 { (case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17664 esac
17665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17666 $as_echo "$ac_try_echo") >&5
17667 (eval "$ac_try") 2>&5
17668 ac_status=$?
17669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17671
17672 rm -f $ZFS_DEV
17673 { $as_echo "$as_me:$LINENO: result: yes" >&5
17674 $as_echo "yes" >&6; }
17675 LIBBLKID="-lblkid"
17676
17677
17678 cat >>confdefs.h <<\_ACEOF
17679 #define HAVE_LIBBLKID 1
17680 _ACEOF
17681
17682
17683 else
17684 $as_echo "$as_me: program exited with status $ac_status" >&5
17685 $as_echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17687
17688 ( exit $ac_status )
17689
17690 rm -f $ZFS_DEV
17691 { $as_echo "$as_me:$LINENO: result: no" >&5
17692 $as_echo "no" >&6; }
17693 if test "x$with_blkid" != xcheck; then
17694 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17696 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17697 See \`config.log' for more details." >&5
17698 $as_echo "$as_me: error: --with-blkid given but unavailable
17699 See \`config.log' for more details." >&2;}
17700 { (exit 1); exit 1; }; }; }
17701 fi
17702
17703
17704 fi
17705 rm -rf conftest.dSYM
17706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17707 fi
17708
17709
17710
17711 LDFLAGS="$saved_LDFLAGS"
17712
17713 else
17714
17715 if test "x$with_blkid" != xcheck; then
17716 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17718 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17719 See \`config.log' for more details." >&5
17720 $as_echo "$as_me: error: --with-blkid given but unavailable
17721 See \`config.log' for more details." >&2;}
17722 { (exit 1); exit 1; }; }; }
17723 fi
17724
17725
17726
17727 fi
17728
17729
17730 fi
17731
17732
17733
17734
17735 # Check whether --with-selinux was given.
17736 if test "${with_selinux+set}" = set; then
17737 withval=$with_selinux;
17738 else
17739 with_selinux=check
17740 fi
17741
17742
17743 LIBSELINUX=
17744 if test "x$with_selinux" != xno; then
17745
17746 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17747 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
17748 $as_echo_n "checking for selinux/selinux.h... " >&6; }
17749 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17750 $as_echo_n "(cached) " >&6
17751 fi
17752 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
17753 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
17754 else
17755 # Is the header compilable?
17756 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
17757 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
17758 cat >conftest.$ac_ext <<_ACEOF
17759 /* confdefs.h. */
17760 _ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h. */
17764 $ac_includes_default
17765 #include <selinux/selinux.h>
17766 _ACEOF
17767 rm -f conftest.$ac_objext
17768 if { (ac_try="$ac_compile"
17769 case "(($ac_try" in
17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17772 esac
17773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17774 $as_echo "$ac_try_echo") >&5
17775 (eval "$ac_compile") 2>conftest.er1
17776 ac_status=$?
17777 grep -v '^ *+' conftest.er1 >conftest.err
17778 rm -f conftest.er1
17779 cat conftest.err >&5
17780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } && {
17782 test -z "$ac_c_werror_flag" ||
17783 test ! -s conftest.err
17784 } && test -s conftest.$ac_objext; then
17785 ac_header_compiler=yes
17786 else
17787 $as_echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17789
17790 ac_header_compiler=no
17791 fi
17792
17793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17794 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17795 $as_echo "$ac_header_compiler" >&6; }
17796
17797 # Is the header present?
17798 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
17799 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
17800 cat >conftest.$ac_ext <<_ACEOF
17801 /* confdefs.h. */
17802 _ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17806 #include <selinux/selinux.h>
17807 _ACEOF
17808 if { (ac_try="$ac_cpp conftest.$ac_ext"
17809 case "(($ac_try" in
17810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17811 *) ac_try_echo=$ac_try;;
17812 esac
17813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17814 $as_echo "$ac_try_echo") >&5
17815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17816 ac_status=$?
17817 grep -v '^ *+' conftest.er1 >conftest.err
17818 rm -f conftest.er1
17819 cat conftest.err >&5
17820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } >/dev/null && {
17822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17823 test ! -s conftest.err
17824 }; then
17825 ac_header_preproc=yes
17826 else
17827 $as_echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17829
17830 ac_header_preproc=no
17831 fi
17832
17833 rm -f conftest.err conftest.$ac_ext
17834 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17835 $as_echo "$ac_header_preproc" >&6; }
17836
17837 # So? What about this header?
17838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17839 yes:no: )
17840 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
17841 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17842 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
17843 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
17844 ac_header_preproc=yes
17845 ;;
17846 no:yes:* )
17847 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
17848 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
17849 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
17850 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
17851 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
17852 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
17853 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
17854 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
17855 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
17856 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
17857 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
17858 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
17859
17860 ;;
17861 esac
17862 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
17863 $as_echo_n "checking for selinux/selinux.h... " >&6; }
17864 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17865 $as_echo_n "(cached) " >&6
17866 else
17867 ac_cv_header_selinux_selinux_h=$ac_header_preproc
17868 fi
17869 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
17870 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
17871
17872 fi
17873 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
17874
17875 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
17876 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
17877 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
17878 $as_echo_n "(cached) " >&6
17879 else
17880 ac_check_lib_save_LIBS=$LIBS
17881 LIBS="-lselinux $LIBS"
17882 cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h. */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17888
17889 /* Override any GCC internal prototype to avoid an error.
17890 Use char because int might match the return type of a GCC
17891 builtin and then its argument prototype would still apply. */
17892 #ifdef __cplusplus
17893 extern "C"
17894 #endif
17895 char is_selinux_enabled ();
17896 int
17897 main ()
17898 {
17899 return is_selinux_enabled ();
17900 ;
17901 return 0;
17902 }
17903 _ACEOF
17904 rm -f conftest.$ac_objext conftest$ac_exeext
17905 if { (ac_try="$ac_link"
17906 case "(($ac_try" in
17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17909 esac
17910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17911 $as_echo "$ac_try_echo") >&5
17912 (eval "$ac_link") 2>conftest.er1
17913 ac_status=$?
17914 grep -v '^ *+' conftest.er1 >conftest.err
17915 rm -f conftest.er1
17916 cat conftest.err >&5
17917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } && {
17919 test -z "$ac_c_werror_flag" ||
17920 test ! -s conftest.err
17921 } && test -s conftest$ac_exeext && {
17922 test "$cross_compiling" = yes ||
17923 $as_test_x conftest$ac_exeext
17924 }; then
17925 ac_cv_lib_selinux_is_selinux_enabled=yes
17926 else
17927 $as_echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17929
17930 ac_cv_lib_selinux_is_selinux_enabled=no
17931 fi
17932
17933 rm -rf conftest.dSYM
17934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17935 conftest$ac_exeext conftest.$ac_ext
17936 LIBS=$ac_check_lib_save_LIBS
17937 fi
17938 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
17939 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
17940 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
17941
17942 LIBSELINUX="-lselinux"
17943
17944
17945 cat >>confdefs.h <<\_ACEOF
17946 #define HAVE_LIBSELINUX 1
17947 _ACEOF
17948
17949
17950 else
17951
17952 if test "x$with_selinux" != xcheck; then
17953 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17955 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
17956 See \`config.log' for more details." >&5
17957 $as_echo "$as_me: error: --with-selinux given but unavailable
17958 See \`config.log' for more details." >&2;}
17959 { (exit 1); exit 1; }; }; }
17960
17961 fi
17962
17963
17964 fi
17965
17966
17967 else
17968
17969 if test "x$with_selinux" != xcheck; then
17970 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17972 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
17973 See \`config.log' for more details." >&5
17974 $as_echo "$as_me: error: --with-selinux given but unavailable
17975 See \`config.log' for more details." >&2;}
17976 { (exit 1); exit 1; }; }; }
17977
17978 fi
17979
17980
17981 fi
17982
17983
17984
17985 else
17986
17987 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
17988 $as_echo_n "checking for selinux support... " >&6; }
17989 { $as_echo "$as_me:$LINENO: result: no" >&5
17990 $as_echo "no" >&6; }
17991
17992 fi
17993
17994
17995
17996 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
17997 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
17998
17999 saved_flags="$CFLAGS"
18000 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
18001
18002 if test "$cross_compiling" = yes; then
18003 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18005 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18006 See \`config.log' for more details." >&5
18007 $as_echo "$as_me: error: cannot run test program while cross compiling
18008 See \`config.log' for more details." >&2;}
18009 { (exit 1); exit 1; }; }; }
18010 else
18011 cat >conftest.$ac_ext <<_ACEOF
18012 /* confdefs.h. */
18013 _ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017
18018 int
18019 main ()
18020 {
18021
18022 ;
18023 return 0;
18024 }
18025 _ACEOF
18026 rm -f conftest$ac_exeext
18027 if { (ac_try="$ac_link"
18028 case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18031 esac
18032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18033 $as_echo "$ac_try_echo") >&5
18034 (eval "$ac_link") 2>&5
18035 ac_status=$?
18036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18038 { (case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18041 esac
18042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18043 $as_echo "$ac_try_echo") >&5
18044 (eval "$ac_try") 2>&5
18045 ac_status=$?
18046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; }; then
18048
18049 FRAME_LARGER_THAN=-Wframe-larger-than=1024
18050 { $as_echo "$as_me:$LINENO: result: yes" >&5
18051 $as_echo "yes" >&6; }
18052
18053 else
18054 $as_echo "$as_me: program exited with status $ac_status" >&5
18055 $as_echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18057
18058 ( exit $ac_status )
18059
18060 FRAME_LARGER_THAN=
18061 { $as_echo "$as_me:$LINENO: result: no" >&5
18062 $as_echo "no" >&6; }
18063
18064 fi
18065 rm -rf conftest.dSYM
18066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18067 fi
18068
18069
18070
18071 CFLAGS="$saved_flags"
18072
18073
18074
18075
18076 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
18077 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
18078
18079 saved_CFLAGS="$CFLAGS"
18080 CFLAGS="-fstack-check"
18081 saved_LDFLAGS="$LDFLAGS"
18082 LDFLAGS="-lpthread"
18083
18084 if test "$cross_compiling" = yes; then
18085 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18087 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18088 See \`config.log' for more details." >&5
18089 $as_echo "$as_me: error: cannot run test program while cross compiling
18090 See \`config.log' for more details." >&2;}
18091 { (exit 1); exit 1; }; }; }
18092 else
18093 cat >conftest.$ac_ext <<_ACEOF
18094 /* confdefs.h. */
18095 _ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18099
18100 #include <pthread.h>
18101 #include <sys/resource.h>
18102 #include <unistd.h>
18103 #include <bits/local_lim.h>
18104
18105 #define PAGESIZE (sysconf(_SC_PAGESIZE))
18106 #define STACK_SIZE 8192
18107 #define BUFSIZE 4096
18108
18109 void * func(void *arg)
18110 {
18111 char buf[BUFSIZE];
18112 }
18113
18114 int
18115 main ()
18116 {
18117
18118 pthread_t tid;
18119 pthread_attr_t attr;
18120 struct rlimit l;
18121
18122 l.rlim_cur = 0;
18123 l.rlim_max = 0;
18124 setrlimit(RLIMIT_CORE, &l);
18125 pthread_attr_init(&attr);
18126 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
18127 pthread_attr_setguardsize(&attr, PAGESIZE);
18128 pthread_create(&tid, &attr, func, NULL);
18129 pthread_join(tid, NULL);
18130
18131 ;
18132 return 0;
18133 }
18134 _ACEOF
18135 rm -f conftest$ac_exeext
18136 if { (ac_try="$ac_link"
18137 case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18140 esac
18141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18142 $as_echo "$ac_try_echo") >&5
18143 (eval "$ac_link") 2>&5
18144 ac_status=$?
18145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18147 { (case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18150 esac
18151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18152 $as_echo "$ac_try_echo") >&5
18153 (eval "$ac_try") 2>&5
18154 ac_status=$?
18155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; }; then
18157
18158 { $as_echo "$as_me:$LINENO: result: no" >&5
18159 $as_echo "no" >&6; }
18160
18161 else
18162 $as_echo "$as_me: program exited with status $ac_status" >&5
18163 $as_echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18165
18166 ( exit $ac_status )
18167
18168
18169 cat >>confdefs.h <<\_ACEOF
18170 #define NPTL_GUARD_WITHIN_STACK 1
18171 _ACEOF
18172
18173 { $as_echo "$as_me:$LINENO: result: yes" >&5
18174 $as_echo "yes" >&6; }
18175
18176 fi
18177 rm -rf conftest.dSYM
18178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18179 fi
18180
18181
18182 CFLAGS="$saved_CFLAGS"
18183 LDFLAGS="$saved_LDFLAGS"
18184
18185 ;;
18186 all)
18187
18188
18189 # Check whether --with-linux was given.
18190 if test "${with_linux+set}" = set; then
18191 withval=$with_linux; kernelsrc="$withval"
18192 fi
18193
18194
18195
18196 # Check whether --with-linux-obj was given.
18197 if test "${with_linux_obj+set}" = set; then
18198 withval=$with_linux_obj; kernelbuild="$withval"
18199 fi
18200
18201
18202 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
18203 $as_echo_n "checking kernel source directory... " >&6; }
18204 if test -z "$kernelsrc"; then
18205
18206 if test -e "/lib/modules/$(uname -r)/source"; then
18207
18208 headersdir="/lib/modules/$(uname -r)/source"
18209 sourcelink=$(readlink -f "$headersdir")
18210
18211 elif test -e "/lib/modules/$(uname -r)/build"; then
18212
18213 headersdir="/lib/modules/$(uname -r)/build"
18214 sourcelink=$(readlink -f "$headersdir")
18215
18216 else
18217
18218 sourcelink=$(ls -1d /usr/src/kernels/* \
18219 /usr/src/linux-* \
18220 2>/dev/null | grep -v obj | tail -1)
18221
18222 fi
18223
18224
18225 if test -n "$sourcelink" && test -e ${sourcelink}; then
18226
18227 kernelsrc=`readlink -f ${sourcelink}`
18228
18229 else
18230
18231 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18232 $as_echo "Not found" >&6; }
18233 { { $as_echo "$as_me:$LINENO: error:
18234 *** Please make sure the kernel devel package for your distribution
18235 *** is installed then try again. If that fails you can specify the
18236 *** location of the kernel source with the '--with-linux=PATH' option." >&5
18237 $as_echo "$as_me: error:
18238 *** Please make sure the kernel devel package for your distribution
18239 *** is installed then try again. If that fails you can specify the
18240 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
18241 { (exit 1); exit 1; }; }
18242
18243 fi
18244
18245
18246 else
18247
18248 if test "$kernelsrc" = "NONE"; then
18249
18250 kernsrcver=NONE
18251
18252 fi
18253
18254
18255 fi
18256
18257
18258 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
18259 $as_echo "$kernelsrc" >&6; }
18260 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
18261 $as_echo_n "checking kernel build directory... " >&6; }
18262 if test -z "$kernelbuild"; then
18263
18264 if test -e "/lib/modules/$(uname -r)/build"; then
18265
18266 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
18267
18268 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
18269
18270 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
18271
18272 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
18273
18274 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
18275
18276 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
18277
18278 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
18279
18280 else
18281
18282 kernelbuild=${kernelsrc}
18283
18284 fi
18285
18286
18287 fi
18288
18289 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
18290 $as_echo "$kernelbuild" >&6; }
18291
18292 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
18293 $as_echo_n "checking kernel source version... " >&6; }
18294 utsrelease1=$kernelbuild/include/linux/version.h
18295 utsrelease2=$kernelbuild/include/linux/utsrelease.h
18296 utsrelease3=$kernelbuild/include/generated/utsrelease.h
18297 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
18298
18299 utsrelease=linux/version.h
18300
18301 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
18302
18303 utsrelease=linux/utsrelease.h
18304
18305 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
18306
18307 utsrelease=generated/utsrelease.h
18308
18309 fi
18310
18311
18312 if test "$utsrelease"; then
18313
18314 kernsrcver=`(echo "#include <$utsrelease>";
18315 echo "kernsrcver=UTS_RELEASE") |
18316 cpp -I $kernelbuild/include |
18317 grep "^kernsrcver=" | cut -d \" -f 2`
18318
18319 if test -z "$kernsrcver"; then
18320
18321 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18322 $as_echo "Not found" >&6; }
18323 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
18324 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
18325 { (exit 1); exit 1; }; }
18326
18327 fi
18328
18329
18330 else
18331
18332 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18333 $as_echo "Not found" >&6; }
18334 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
18335 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
18336 { (exit 1); exit 1; }; }
18337
18338 fi
18339
18340
18341 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
18342 $as_echo "$kernsrcver" >&6; }
18343
18344 LINUX=${kernelsrc}
18345 LINUX_OBJ=${kernelbuild}
18346 LINUX_VERSION=${kernsrcver}
18347
18348
18349
18350
18351
18352
18353 modpost=$LINUX/scripts/Makefile.modpost
18354 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
18355 $as_echo_n "checking kernel file name for module symbols... " >&6; }
18356 if test -f "$modpost"; then
18357
18358 if grep -q Modules.symvers $modpost; then
18359
18360 LINUX_SYMBOLS=Modules.symvers
18361
18362 else
18363
18364 LINUX_SYMBOLS=Module.symvers
18365
18366 fi
18367
18368
18369 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
18370
18371 { { $as_echo "$as_me:$LINENO: error:
18372 *** Please make sure the kernel devel package for your distribution
18373 *** is installed. If your building with a custom kernel make sure the
18374 *** kernel is configured, built, and the '--with-linux=PATH' configure
18375 *** option refers to the location of the kernel source." >&5
18376 $as_echo "$as_me: error:
18377 *** Please make sure the kernel devel package for your distribution
18378 *** is installed. If your building with a custom kernel make sure the
18379 *** kernel is configured, built, and the '--with-linux=PATH' configure
18380 *** option refers to the location of the kernel source." >&2;}
18381 { (exit 1); exit 1; }; }
18382
18383 fi
18384
18385
18386 else
18387
18388 LINUX_SYMBOLS=NONE
18389
18390 fi
18391
18392 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
18393 $as_echo "$LINUX_SYMBOLS" >&6; }
18394
18395
18396
18397
18398
18399 # Check whether --with-spl was given.
18400 if test "${with_spl+set}" = set; then
18401 withval=$with_spl; splsrc="$withval"
18402 fi
18403
18404
18405
18406 # Check whether --with-spl-obj was given.
18407 if test "${with_spl_obj+set}" = set; then
18408 withval=$with_spl_obj; splbuild="$withval"
18409 fi
18410
18411
18412
18413 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
18414 $as_echo_n "checking spl source directory... " >&6; }
18415 if test -z "$splsrc"; then
18416
18417 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
18418 2>/dev/null | tail -1`
18419
18420 if test -z "$sourcelink" || test ! -e $sourcelink; then
18421
18422 sourcelink=../spl
18423
18424 fi
18425
18426
18427 if test -e $sourcelink; then
18428
18429 splsrc=`readlink -f ${sourcelink}`
18430
18431 else
18432
18433 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18434 $as_echo "Not found" >&6; }
18435 { { $as_echo "$as_me:$LINENO: error:
18436 *** Please make sure the spl devel package for your distribution
18437 *** is installed then try again. If that fails you can specify the
18438 *** location of the spl source with the '--with-spl=PATH' option." >&5
18439 $as_echo "$as_me: error:
18440 *** Please make sure the spl devel package for your distribution
18441 *** is installed then try again. If that fails you can specify the
18442 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
18443 { (exit 1); exit 1; }; }
18444
18445 fi
18446
18447
18448 else
18449
18450 if test "$splsrc" = "NONE"; then
18451
18452 splbuild=NONE
18453 splsrcver=NONE
18454
18455 fi
18456
18457
18458 fi
18459
18460
18461 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
18462 $as_echo "$splsrc" >&6; }
18463 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
18464 $as_echo_n "checking spl build directory... " >&6; }
18465 if test -z "$splbuild"; then
18466
18467 splbuild=${splsrc}
18468
18469 fi
18470
18471 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
18472 $as_echo "$splbuild" >&6; }
18473
18474 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
18475 $as_echo_n "checking spl source version... " >&6; }
18476 if test -r $splbuild/spl_config.h &&
18477 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
18478
18479
18480 splsrcver=`(echo "#include <spl_config.h>";
18481 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
18482 cpp -I $splbuild |
18483 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
18484
18485 fi
18486
18487
18488 if test -z "$splsrcver"; then
18489
18490 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18491 $as_echo "Not found" >&6; }
18492 { { $as_echo "$as_me:$LINENO: error:
18493 *** Cannot determine the version of the spl source.
18494 *** Please prepare the spl source before running this script" >&5
18495 $as_echo "$as_me: error:
18496 *** Cannot determine the version of the spl source.
18497 *** Please prepare the spl source before running this script" >&2;}
18498 { (exit 1); exit 1; }; }
18499
18500 fi
18501
18502
18503 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
18504 $as_echo "$splsrcver" >&6; }
18505
18506 SPL=${splsrc}
18507 SPL_OBJ=${splbuild}
18508 SPL_VERSION=${splsrcver}
18509
18510
18511
18512
18513
18514
18515 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
18516 $as_echo_n "checking spl file name for module symbols... " >&6; }
18517 if test -r $SPL_OBJ/Module.symvers; then
18518
18519 SPL_SYMBOLS=Module.symvers
18520
18521 elif test -r $SPL_OBJ/Modules.symvers; then
18522
18523 SPL_SYMBOLS=Modules.symvers
18524
18525 elif test -r $SPL_OBJ/module/Module.symvers; then
18526
18527 SPL_SYMBOLS=Module.symvers
18528
18529 elif test -r $SPL_OBJ/module/Modules.symvers; then
18530
18531 SPL_SYMBOLS=Modules.symvers
18532
18533 else
18534
18535 SPL_SYMBOLS=$LINUX_SYMBOLS
18536
18537 fi
18538
18539
18540 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
18541 $as_echo "$SPL_SYMBOLS" >&6; }
18542
18543
18544
18545
18546
18547 if test "$ZFS_META_LICENSE" = GPL; then
18548
18549
18550 cat >>confdefs.h <<\_ACEOF
18551 #define HAVE_GPL_ONLY_SYMBOLS 1
18552 _ACEOF
18553
18554
18555 fi
18556
18557
18558
18559
18560 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
18561 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
18562
18563
18564 cat confdefs.h - <<_ACEOF >conftest.c
18565 /* confdefs.h. */
18566 _ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18570
18571
18572 #include <linux/module.h>
18573
18574 int
18575 main (void)
18576 {
18577
18578 #ifndef CONFIG_PREEMPT
18579 #error CONFIG_PREEMPT not #defined
18580 #endif
18581
18582 ;
18583 return 0;
18584 }
18585
18586 _ACEOF
18587
18588
18589 rm -Rf build && mkdir -p build
18590 echo "obj-m := conftest.o" >build/Makefile
18591 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'
18592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18594 ac_status=$?
18595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18599 ac_status=$?
18600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; }; then
18602
18603 { $as_echo "$as_me:$LINENO: result: yes" >&5
18604 $as_echo "yes" >&6; }
18605 { { $as_echo "$as_me:$LINENO: error:
18606 *** Kernel built with CONFIG_PREEMPT which is not supported.
18607 *** You must rebuild your kernel without this option." >&5
18608 $as_echo "$as_me: error:
18609 *** Kernel built with CONFIG_PREEMPT which is not supported.
18610 *** You must rebuild your kernel without this option." >&2;}
18611 { (exit 1); exit 1; }; }
18612
18613 else
18614 $as_echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18616
18617 { $as_echo "$as_me:$LINENO: result: no" >&5
18618 $as_echo "no" >&6; }
18619
18620
18621
18622
18623 fi
18624
18625 rm -Rf build
18626
18627
18628
18629
18630
18631
18632 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
18633 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
18634
18635
18636 cat confdefs.h - <<_ACEOF >conftest.c
18637 /* confdefs.h. */
18638 _ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18642
18643
18644 #include <linux/module.h>
18645
18646 int
18647 main (void)
18648 {
18649
18650 #ifndef CONFIG_DEBUG_LOCK_ALLOC
18651 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
18652 #endif
18653
18654 ;
18655 return 0;
18656 }
18657
18658 _ACEOF
18659
18660
18661 rm -Rf build && mkdir -p build
18662 echo "obj-m := conftest.o" >build/Makefile
18663 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'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18666 ac_status=$?
18667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18671 ac_status=$?
18672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674
18675 { $as_echo "$as_me:$LINENO: result: yes" >&5
18676 $as_echo "yes" >&6; }
18677
18678 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
18679 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
18680 tmp_flags="$EXTRA_KCFLAGS"
18681
18682
18683 cat confdefs.h - <<_ACEOF >conftest.c
18684 /* confdefs.h. */
18685 _ACEOF
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h. */
18689
18690
18691 #include <linux/module.h>
18692 #include <linux/mutex.h>
18693
18694 MODULE_LICENSE("$ZFS_META_LICENSE");
18695
18696 int
18697 main (void)
18698 {
18699
18700 struct mutex lock;
18701
18702 mutex_init(&lock);
18703 mutex_lock(&lock);
18704 mutex_unlock(&lock);
18705
18706 ;
18707 return 0;
18708 }
18709
18710 _ACEOF
18711
18712
18713 rm -Rf build && mkdir -p build
18714 echo "obj-m := conftest.o" >build/Makefile
18715 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'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18718 ac_status=$?
18719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18723 ac_status=$?
18724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18726
18727 { $as_echo "$as_me:$LINENO: result: no" >&5
18728 $as_echo "no" >&6; }
18729
18730 else
18731 $as_echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18733
18734 { $as_echo "$as_me:$LINENO: result: yes" >&5
18735 $as_echo "yes" >&6; }
18736 { { $as_echo "$as_me:$LINENO: error:
18737 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
18738 *** with the CDDL license and will prevent the module linking stage
18739 *** from succeeding. You must rebuild your kernel without this
18740 *** option enabled." >&5
18741 $as_echo "$as_me: error:
18742 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
18743 *** with the CDDL license and will prevent the module linking stage
18744 *** from succeeding. You must rebuild your kernel without this
18745 *** option enabled." >&2;}
18746 { (exit 1); exit 1; }; }
18747
18748
18749
18750 fi
18751
18752 rm -Rf build
18753
18754
18755 EXTRA_KCFLAGS="$tmp_flags"
18756
18757
18758 else
18759 $as_echo "$as_me: failed program was:" >&5
18760 sed 's/^/| /' conftest.$ac_ext >&5
18761
18762 { $as_echo "$as_me:$LINENO: result: no" >&5
18763 $as_echo "no" >&6; }
18764
18765
18766
18767
18768 fi
18769
18770 rm -Rf build
18771
18772
18773
18774
18775
18776
18777 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
18778 $as_echo_n "checking block device operation prototypes... " >&6; }
18779 tmp_flags="$EXTRA_KCFLAGS"
18780 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
18781
18782
18783 cat confdefs.h - <<_ACEOF >conftest.c
18784 /* confdefs.h. */
18785 _ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h. */
18789
18790
18791 #include <linux/blkdev.h>
18792
18793 int
18794 main (void)
18795 {
18796
18797 int (*blk_open) (struct block_device *, fmode_t) = NULL;
18798 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
18799 int (*blk_ioctl) (struct block_device *, fmode_t,
18800 unsigned, unsigned long) = NULL;
18801 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
18802 unsigned, unsigned long) = NULL;
18803 struct block_device_operations blk_ops = {
18804 .open = blk_open,
18805 .release = blk_release,
18806 .ioctl = blk_ioctl,
18807 .compat_ioctl = blk_compat_ioctl,
18808 };
18809
18810 blk_ops.open(NULL, 0);
18811 blk_ops.release(NULL, 0);
18812 blk_ops.ioctl(NULL, 0, 0, 0);
18813 blk_ops.compat_ioctl(NULL, 0, 0, 0);
18814
18815 ;
18816 return 0;
18817 }
18818
18819 _ACEOF
18820
18821
18822 rm -Rf build && mkdir -p build
18823 echo "obj-m := conftest.o" >build/Makefile
18824 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'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18827 ac_status=$?
18828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18832 ac_status=$?
18833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; }; then
18835
18836 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
18837 $as_echo "struct block_device" >&6; }
18838
18839 cat >>confdefs.h <<\_ACEOF
18840 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
18841 _ACEOF
18842
18843
18844 else
18845 $as_echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18847
18848 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
18849 $as_echo "struct inode" >&6; }
18850
18851
18852
18853 fi
18854
18855 rm -Rf build
18856
18857
18858 EXTRA_KCFLAGS="$tmp_flags"
18859
18860 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
18861 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
18862
18863
18864 cat confdefs.h - <<_ACEOF >conftest.c
18865 /* confdefs.h. */
18866 _ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h. */
18870
18871
18872 #include <linux/types.h>
18873
18874 int
18875 main (void)
18876 {
18877
18878 fmode_t *ptr __attribute__ ((unused));
18879
18880 ;
18881 return 0;
18882 }
18883
18884 _ACEOF
18885
18886
18887 rm -Rf build && mkdir -p build
18888 echo "obj-m := conftest.o" >build/Makefile
18889 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'
18890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891 (eval $ac_try) 2>&5
18892 ac_status=$?
18893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18897 ac_status=$?
18898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; }; then
18900
18901 { $as_echo "$as_me:$LINENO: result: yes" >&5
18902 $as_echo "yes" >&6; }
18903
18904 cat >>confdefs.h <<\_ACEOF
18905 #define HAVE_FMODE_T 1
18906 _ACEOF
18907
18908
18909 else
18910 $as_echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18912
18913 { $as_echo "$as_me:$LINENO: result: no" >&5
18914 $as_echo "no" >&6; }
18915
18916
18917
18918 fi
18919
18920 rm -Rf build
18921
18922
18923
18924
18925 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
18926 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
18927
18928
18929 cat confdefs.h - <<_ACEOF >conftest.c
18930 /* confdefs.h. */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935
18936
18937 #include <linux/kobject.h>
18938
18939 int
18940 main (void)
18941 {
18942
18943 int val __attribute__ ((unused));
18944 val = KOBJ_NAME_LEN;
18945
18946 ;
18947 return 0;
18948 }
18949
18950 _ACEOF
18951
18952
18953 rm -Rf build && mkdir -p build
18954 echo "obj-m := conftest.o" >build/Makefile
18955 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'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966
18967 { $as_echo "$as_me:$LINENO: result: yes" >&5
18968 $as_echo "yes" >&6; }
18969
18970 cat >>confdefs.h <<\_ACEOF
18971 #define HAVE_KOBJ_NAME_LEN 1
18972 _ACEOF
18973
18974
18975 else
18976 $as_echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18978
18979 { $as_echo "$as_me:$LINENO: result: no" >&5
18980 $as_echo "no" >&6; }
18981
18982
18983
18984 fi
18985
18986 rm -Rf build
18987
18988
18989
18990
18991 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
18992 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
18993 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
18994 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18995 rc=$?
18996 if test $rc -ne 0; then
18997
18998 export=0
18999 for file in fs/block_dev.c; do
19000 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
19001 rc=$?
19002 if test $rc -eq 0; then
19003
19004 export=1
19005 break;
19006
19007 fi
19008
19009 done
19010 if test $export -eq 0; then
19011
19012 { $as_echo "$as_me:$LINENO: result: no" >&5
19013 $as_echo "no" >&6; }
19014
19015
19016 else
19017
19018 { $as_echo "$as_me:$LINENO: result: yes" >&5
19019 $as_echo "yes" >&6; }
19020
19021 cat >>confdefs.h <<\_ACEOF
19022 #define HAVE_BLKDEV_GET_BY_PATH 1
19023 _ACEOF
19024
19025
19026 fi
19027
19028
19029 else
19030
19031 { $as_echo "$as_me:$LINENO: result: yes" >&5
19032 $as_echo "yes" >&6; }
19033
19034 cat >>confdefs.h <<\_ACEOF
19035 #define HAVE_BLKDEV_GET_BY_PATH 1
19036 _ACEOF
19037
19038
19039 fi
19040
19041
19042
19043
19044 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
19045 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
19046 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
19047 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19048 rc=$?
19049 if test $rc -ne 0; then
19050
19051 export=0
19052 for file in fs/block_dev.c; do
19053 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
19054 rc=$?
19055 if test $rc -eq 0; then
19056
19057 export=1
19058 break;
19059
19060 fi
19061
19062 done
19063 if test $export -eq 0; then
19064
19065 { $as_echo "$as_me:$LINENO: result: no" >&5
19066 $as_echo "no" >&6; }
19067
19068
19069 else
19070
19071 { $as_echo "$as_me:$LINENO: result: yes" >&5
19072 $as_echo "yes" >&6; }
19073
19074 cat >>confdefs.h <<\_ACEOF
19075 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
19076 _ACEOF
19077
19078
19079 fi
19080
19081
19082 else
19083
19084 { $as_echo "$as_me:$LINENO: result: yes" >&5
19085 $as_echo "yes" >&6; }
19086
19087 cat >>confdefs.h <<\_ACEOF
19088 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
19089 _ACEOF
19090
19091
19092 fi
19093
19094
19095
19096
19097 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
19098 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
19099
19100
19101 cat confdefs.h - <<_ACEOF >conftest.c
19102 /* confdefs.h. */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107
19108
19109 #include <linux/buffer_head.h>
19110
19111 int
19112 main (void)
19113 {
19114
19115 struct block_device *bdev = NULL;
19116 invalidate_bdev(bdev);
19117
19118 ;
19119 return 0;
19120 }
19121
19122 _ACEOF
19123
19124
19125 rm -Rf build && mkdir -p build
19126 echo "obj-m := conftest.o" >build/Makefile
19127 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'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19135 ac_status=$?
19136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; }; then
19138
19139 { $as_echo "$as_me:$LINENO: result: yes" >&5
19140 $as_echo "yes" >&6; }
19141
19142 cat >>confdefs.h <<\_ACEOF
19143 #define HAVE_1ARG_INVALIDATE_BDEV 1
19144 _ACEOF
19145
19146
19147 else
19148 $as_echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19150
19151 { $as_echo "$as_me:$LINENO: result: no" >&5
19152 $as_echo "no" >&6; }
19153
19154
19155
19156 fi
19157
19158 rm -Rf build
19159
19160
19161
19162
19163 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
19164 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
19165 tmp_flags="$EXTRA_KCFLAGS"
19166 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19167
19168
19169 cat confdefs.h - <<_ACEOF >conftest.c
19170 /* confdefs.h. */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19175
19176
19177 #include <linux/blkdev.h>
19178
19179 int
19180 main (void)
19181 {
19182
19183 struct block_device *bdev = NULL;
19184 bdev_logical_block_size(bdev);
19185
19186 ;
19187 return 0;
19188 }
19189
19190 _ACEOF
19191
19192
19193 rm -Rf build && mkdir -p build
19194 echo "obj-m := conftest.o" >build/Makefile
19195 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'
19196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197 (eval $ac_try) 2>&5
19198 ac_status=$?
19199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19203 ac_status=$?
19204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
19206
19207 { $as_echo "$as_me:$LINENO: result: yes" >&5
19208 $as_echo "yes" >&6; }
19209
19210 cat >>confdefs.h <<\_ACEOF
19211 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
19212 _ACEOF
19213
19214
19215 else
19216 $as_echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219 { $as_echo "$as_me:$LINENO: result: no" >&5
19220 $as_echo "no" >&6; }
19221
19222
19223
19224 fi
19225
19226 rm -Rf build
19227
19228
19229 EXTRA_KCFLAGS="$tmp_flags"
19230
19231
19232 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
19233 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
19234 EXTRA_KCFLAGS="-Werror"
19235
19236
19237 cat confdefs.h - <<_ACEOF >conftest.c
19238 /* confdefs.h. */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19243
19244
19245 #include <linux/bio.h>
19246
19247 int
19248 main (void)
19249 {
19250
19251 struct bio bio;
19252 (void)bio_empty_barrier(&bio);
19253
19254 ;
19255 return 0;
19256 }
19257
19258 _ACEOF
19259
19260
19261 rm -Rf build && mkdir -p build
19262 echo "obj-m := conftest.o" >build/Makefile
19263 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'
19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19266 ac_status=$?
19267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270 (eval $ac_try) 2>&5
19271 ac_status=$?
19272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); }; }; then
19274
19275 { $as_echo "$as_me:$LINENO: result: yes" >&5
19276 $as_echo "yes" >&6; }
19277
19278 cat >>confdefs.h <<\_ACEOF
19279 #define HAVE_BIO_EMPTY_BARRIER 1
19280 _ACEOF
19281
19282
19283 else
19284 $as_echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19286
19287 { $as_echo "$as_me:$LINENO: result: no" >&5
19288 $as_echo "no" >&6; }
19289
19290
19291
19292 fi
19293
19294 rm -Rf build
19295
19296
19297
19298
19299 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
19300 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
19301
19302
19303 cat confdefs.h - <<_ACEOF >conftest.c
19304 /* confdefs.h. */
19305 _ACEOF
19306 cat confdefs.h >>conftest.$ac_ext
19307 cat >>conftest.$ac_ext <<_ACEOF
19308 /* end confdefs.h. */
19309
19310
19311 #include <linux/bio.h>
19312
19313 int
19314 main (void)
19315 {
19316
19317 int flags __attribute__ ((unused));
19318 flags = (1 << BIO_RW_FAILFAST);
19319
19320 ;
19321 return 0;
19322 }
19323
19324 _ACEOF
19325
19326
19327 rm -Rf build && mkdir -p build
19328 echo "obj-m := conftest.o" >build/Makefile
19329 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'
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19332 ac_status=$?
19333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; }; then
19340
19341 { $as_echo "$as_me:$LINENO: result: yes" >&5
19342 $as_echo "yes" >&6; }
19343
19344 cat >>confdefs.h <<\_ACEOF
19345 #define HAVE_BIO_RW_FAILFAST 1
19346 _ACEOF
19347
19348
19349 else
19350 $as_echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19352
19353 { $as_echo "$as_me:$LINENO: result: no" >&5
19354 $as_echo "no" >&6; }
19355
19356
19357
19358 fi
19359
19360 rm -Rf build
19361
19362
19363
19364
19365 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
19366 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
19367
19368
19369 cat confdefs.h - <<_ACEOF >conftest.c
19370 /* confdefs.h. */
19371 _ACEOF
19372 cat confdefs.h >>conftest.$ac_ext
19373 cat >>conftest.$ac_ext <<_ACEOF
19374 /* end confdefs.h. */
19375
19376
19377 #include <linux/bio.h>
19378
19379 int
19380 main (void)
19381 {
19382
19383 int flags __attribute__ ((unused));
19384 flags = ((1 << BIO_RW_FAILFAST_DEV) |
19385 (1 << BIO_RW_FAILFAST_TRANSPORT) |
19386 (1 << BIO_RW_FAILFAST_DRIVER));
19387
19388 ;
19389 return 0;
19390 }
19391
19392 _ACEOF
19393
19394
19395 rm -Rf build && mkdir -p build
19396 echo "obj-m := conftest.o" >build/Makefile
19397 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'
19398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19400 ac_status=$?
19401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
19408
19409 { $as_echo "$as_me:$LINENO: result: yes" >&5
19410 $as_echo "yes" >&6; }
19411
19412 cat >>confdefs.h <<\_ACEOF
19413 #define HAVE_BIO_RW_FAILFAST_DTD 1
19414 _ACEOF
19415
19416
19417 else
19418 $as_echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19420
19421 { $as_echo "$as_me:$LINENO: result: no" >&5
19422 $as_echo "no" >&6; }
19423
19424
19425
19426 fi
19427
19428 rm -Rf build
19429
19430
19431
19432
19433 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
19434 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
19435
19436
19437 cat confdefs.h - <<_ACEOF >conftest.c
19438 /* confdefs.h. */
19439 _ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19443
19444
19445 #include <linux/bio.h>
19446
19447 int
19448 main (void)
19449 {
19450
19451 int flags __attribute__ ((unused));
19452 flags = REQ_FAILFAST_MASK;
19453
19454 ;
19455 return 0;
19456 }
19457
19458 _ACEOF
19459
19460
19461 rm -Rf build && mkdir -p build
19462 echo "obj-m := conftest.o" >build/Makefile
19463 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'
19464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465 (eval $ac_try) 2>&5
19466 ac_status=$?
19467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19471 ac_status=$?
19472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19474
19475 { $as_echo "$as_me:$LINENO: result: yes" >&5
19476 $as_echo "yes" >&6; }
19477
19478 cat >>confdefs.h <<\_ACEOF
19479 #define HAVE_BIO_REQ_FAILFAST_MASK 1
19480 _ACEOF
19481
19482
19483 else
19484 $as_echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19486
19487 { $as_echo "$as_me:$LINENO: result: no" >&5
19488 $as_echo "no" >&6; }
19489
19490
19491
19492 fi
19493
19494 rm -Rf build
19495
19496
19497
19498
19499 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
19500 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
19501 tmp_flags="$EXTRA_KCFLAGS"
19502 EXTRA_KCFLAGS="-Werror"
19503
19504
19505 cat confdefs.h - <<_ACEOF >conftest.c
19506 /* confdefs.h. */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511
19512
19513 #include <linux/bio.h>
19514
19515 int
19516 main (void)
19517 {
19518
19519 void (*wanted_end_io)(struct bio *, int) = NULL;
19520 bio_end_io_t *local_end_io __attribute__ ((unused));
19521
19522 local_end_io = wanted_end_io;
19523
19524 ;
19525 return 0;
19526 }
19527
19528 _ACEOF
19529
19530
19531 rm -Rf build && mkdir -p build
19532 echo "obj-m := conftest.o" >build/Makefile
19533 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'
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19536 ac_status=$?
19537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540 (eval $ac_try) 2>&5
19541 ac_status=$?
19542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; }; then
19544
19545 { $as_echo "$as_me:$LINENO: result: yes" >&5
19546 $as_echo "yes" >&6; }
19547
19548 cat >>confdefs.h <<\_ACEOF
19549 #define HAVE_2ARGS_BIO_END_IO_T 1
19550 _ACEOF
19551
19552
19553 else
19554 $as_echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19556
19557 { $as_echo "$as_me:$LINENO: result: no" >&5
19558 $as_echo "no" >&6; }
19559
19560
19561
19562 fi
19563
19564 rm -Rf build
19565
19566
19567 EXTRA_KCFLAGS="$tmp_flags"
19568
19569
19570 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
19571 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
19572
19573
19574 cat confdefs.h - <<_ACEOF >conftest.c
19575 /* confdefs.h. */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19580
19581
19582 #include <linux/bio.h>
19583
19584 int
19585 main (void)
19586 {
19587
19588 int flags __attribute__ ((unused));
19589 flags = BIO_RW_SYNC;
19590
19591 ;
19592 return 0;
19593 }
19594
19595 _ACEOF
19596
19597
19598 rm -Rf build && mkdir -p build
19599 echo "obj-m := conftest.o" >build/Makefile
19600 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'
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19603 ac_status=$?
19604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607 (eval $ac_try) 2>&5
19608 ac_status=$?
19609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; }; then
19611
19612 { $as_echo "$as_me:$LINENO: result: yes" >&5
19613 $as_echo "yes" >&6; }
19614
19615 cat >>confdefs.h <<\_ACEOF
19616 #define HAVE_BIO_RW_SYNC 1
19617 _ACEOF
19618
19619
19620 else
19621 $as_echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19623
19624 { $as_echo "$as_me:$LINENO: result: no" >&5
19625 $as_echo "no" >&6; }
19626
19627
19628
19629 fi
19630
19631 rm -Rf build
19632
19633
19634
19635
19636 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
19637 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
19638
19639
19640 cat confdefs.h - <<_ACEOF >conftest.c
19641 /* confdefs.h. */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19646
19647
19648 #include <linux/bio.h>
19649
19650 int
19651 main (void)
19652 {
19653
19654 int flags __attribute__ ((unused));
19655 flags = BIO_RW_SYNCIO;
19656
19657 ;
19658 return 0;
19659 }
19660
19661 _ACEOF
19662
19663
19664 rm -Rf build && mkdir -p build
19665 echo "obj-m := conftest.o" >build/Makefile
19666 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'
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19669 ac_status=$?
19670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19674 ac_status=$?
19675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; }; then
19677
19678 { $as_echo "$as_me:$LINENO: result: yes" >&5
19679 $as_echo "yes" >&6; }
19680
19681 cat >>confdefs.h <<\_ACEOF
19682 #define HAVE_BIO_RW_SYNCIO 1
19683 _ACEOF
19684
19685
19686 else
19687 $as_echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19689
19690 { $as_echo "$as_me:$LINENO: result: no" >&5
19691 $as_echo "no" >&6; }
19692
19693
19694
19695 fi
19696
19697 rm -Rf build
19698
19699
19700
19701
19702 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
19703 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
19704
19705
19706 cat confdefs.h - <<_ACEOF >conftest.c
19707 /* confdefs.h. */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19712
19713
19714 #include <linux/bio.h>
19715
19716 int
19717 main (void)
19718 {
19719
19720 int flags __attribute__ ((unused));
19721 flags = REQ_SYNC;
19722
19723 ;
19724 return 0;
19725 }
19726
19727 _ACEOF
19728
19729
19730 rm -Rf build && mkdir -p build
19731 echo "obj-m := conftest.o" >build/Makefile
19732 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'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19740 ac_status=$?
19741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; }; then
19743
19744 { $as_echo "$as_me:$LINENO: result: yes" >&5
19745 $as_echo "yes" >&6; }
19746
19747 cat >>confdefs.h <<\_ACEOF
19748 #define HAVE_REQ_SYNC 1
19749 _ACEOF
19750
19751
19752 else
19753 $as_echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19755
19756 { $as_echo "$as_me:$LINENO: result: no" >&5
19757 $as_echo "no" >&6; }
19758
19759
19760
19761 fi
19762
19763 rm -Rf build
19764
19765
19766
19767
19768 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
19769 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
19770 tmp_flags="$EXTRA_KCFLAGS"
19771 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19772
19773
19774 cat confdefs.h - <<_ACEOF >conftest.c
19775 /* confdefs.h. */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780
19781
19782 #include <linux/blkdev.h>
19783
19784 int
19785 main (void)
19786 {
19787
19788 struct request *req = NULL;
19789 (void) blk_end_request(req, 0, 0);
19790
19791 ;
19792 return 0;
19793 }
19794
19795 _ACEOF
19796
19797
19798 rm -Rf build && mkdir -p build
19799 echo "obj-m := conftest.o" >build/Makefile
19800 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'
19801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802 (eval $ac_try) 2>&5
19803 ac_status=$?
19804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19808 ac_status=$?
19809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19811
19812 { $as_echo "$as_me:$LINENO: result: yes" >&5
19813 $as_echo "yes" >&6; }
19814
19815 cat >>confdefs.h <<\_ACEOF
19816 #define HAVE_BLK_END_REQUEST 1
19817 _ACEOF
19818
19819
19820 else
19821 $as_echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19823
19824 { $as_echo "$as_me:$LINENO: result: no" >&5
19825 $as_echo "no" >&6; }
19826
19827
19828
19829 fi
19830
19831 rm -Rf build
19832
19833
19834
19835 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
19836 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
19837
19838
19839 cat confdefs.h - <<_ACEOF >conftest.c
19840 /* confdefs.h. */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19845
19846
19847 #include <linux/module.h>
19848 #include <linux/blkdev.h>
19849
19850 MODULE_LICENSE("CDDL");
19851
19852 int
19853 main (void)
19854 {
19855
19856 struct request *req = NULL;
19857 (void) blk_end_request(req, 0, 0);
19858
19859 ;
19860 return 0;
19861 }
19862
19863 _ACEOF
19864
19865
19866 rm -Rf build && mkdir -p build
19867 echo "obj-m := conftest.o" >build/Makefile
19868 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'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19871 ac_status=$?
19872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875 (eval $ac_try) 2>&5
19876 ac_status=$?
19877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
19879
19880 { $as_echo "$as_me:$LINENO: result: no" >&5
19881 $as_echo "no" >&6; }
19882
19883 else
19884 $as_echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19886
19887 { $as_echo "$as_me:$LINENO: result: yes" >&5
19888 $as_echo "yes" >&6; }
19889
19890 cat >>confdefs.h <<\_ACEOF
19891 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
19892 _ACEOF
19893
19894
19895
19896
19897 fi
19898
19899 rm -Rf build
19900
19901
19902 EXTRA_KCFLAGS="$tmp_flags"
19903
19904
19905 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
19906 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
19907 tmp_flags="$EXTRA_KCFLAGS"
19908 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19909
19910
19911 cat confdefs.h - <<_ACEOF >conftest.c
19912 /* confdefs.h. */
19913 _ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917
19918
19919 #include <linux/blkdev.h>
19920
19921 int
19922 main (void)
19923 {
19924
19925 struct request_queue *q = NULL;
19926 (void) blk_queue_flush(q, REQ_FLUSH);
19927
19928 ;
19929 return 0;
19930 }
19931
19932 _ACEOF
19933
19934
19935 rm -Rf build && mkdir -p build
19936 echo "obj-m := conftest.o" >build/Makefile
19937 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'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19940 ac_status=$?
19941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19945 ac_status=$?
19946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; }; then
19948
19949 { $as_echo "$as_me:$LINENO: result: yes" >&5
19950 $as_echo "yes" >&6; }
19951
19952 cat >>confdefs.h <<\_ACEOF
19953 #define HAVE_BLK_QUEUE_FLUSH 1
19954 _ACEOF
19955
19956
19957 else
19958 $as_echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19960
19961 { $as_echo "$as_me:$LINENO: result: no" >&5
19962 $as_echo "no" >&6; }
19963
19964
19965
19966 fi
19967
19968 rm -Rf build
19969
19970
19971
19972 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
19973 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
19974
19975
19976 cat confdefs.h - <<_ACEOF >conftest.c
19977 /* confdefs.h. */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19982
19983
19984 #include <linux/module.h>
19985 #include <linux/blkdev.h>
19986
19987 MODULE_LICENSE("CDDL");
19988
19989 int
19990 main (void)
19991 {
19992
19993 struct request_queue *q = NULL;
19994 (void) blk_queue_flush(q, REQ_FLUSH);
19995
19996 ;
19997 return 0;
19998 }
19999
20000 _ACEOF
20001
20002
20003 rm -Rf build && mkdir -p build
20004 echo "obj-m := conftest.o" >build/Makefile
20005 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'
20006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007 (eval $ac_try) 2>&5
20008 ac_status=$?
20009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20013 ac_status=$?
20014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; }; then
20016
20017 { $as_echo "$as_me:$LINENO: result: no" >&5
20018 $as_echo "no" >&6; }
20019
20020 else
20021 $as_echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20023
20024 { $as_echo "$as_me:$LINENO: result: yes" >&5
20025 $as_echo "yes" >&6; }
20026
20027 cat >>confdefs.h <<\_ACEOF
20028 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
20029 _ACEOF
20030
20031
20032
20033
20034 fi
20035
20036 rm -Rf build
20037
20038
20039 EXTRA_KCFLAGS="$tmp_flags"
20040
20041
20042 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
20043 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
20044 tmp_flags="$EXTRA_KCFLAGS"
20045 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20046
20047
20048 cat confdefs.h - <<_ACEOF >conftest.c
20049 /* confdefs.h. */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054
20055
20056 #include <linux/blkdev.h>
20057
20058 int
20059 main (void)
20060 {
20061
20062 struct request_queue *q = NULL;
20063 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
20064
20065 ;
20066 return 0;
20067 }
20068
20069 _ACEOF
20070
20071
20072 rm -Rf build && mkdir -p build
20073 echo "obj-m := conftest.o" >build/Makefile
20074 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'
20075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20076 (eval $ac_try) 2>&5
20077 ac_status=$?
20078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081 (eval $ac_try) 2>&5
20082 ac_status=$?
20083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; }; then
20085
20086 { $as_echo "$as_me:$LINENO: result: yes" >&5
20087 $as_echo "yes" >&6; }
20088
20089 cat >>confdefs.h <<\_ACEOF
20090 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
20091 _ACEOF
20092
20093
20094 else
20095 $as_echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20097
20098 { $as_echo "$as_me:$LINENO: result: no" >&5
20099 $as_echo "no" >&6; }
20100
20101
20102
20103 fi
20104
20105 rm -Rf build
20106
20107
20108 EXTRA_KCFLAGS="$tmp_flags"
20109
20110
20111 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
20112 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
20113 tmp_flags="$EXTRA_KCFLAGS"
20114 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20115
20116
20117 cat confdefs.h - <<_ACEOF >conftest.c
20118 /* confdefs.h. */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20123
20124
20125 #include <linux/blkdev.h>
20126
20127 int
20128 main (void)
20129 {
20130
20131 struct request_queue *q = NULL;
20132 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
20133
20134 ;
20135 return 0;
20136 }
20137
20138 _ACEOF
20139
20140
20141 rm -Rf build && mkdir -p build
20142 echo "obj-m := conftest.o" >build/Makefile
20143 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'
20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145 (eval $ac_try) 2>&5
20146 ac_status=$?
20147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20151 ac_status=$?
20152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154
20155 { $as_echo "$as_me:$LINENO: result: yes" >&5
20156 $as_echo "yes" >&6; }
20157
20158 cat >>confdefs.h <<\_ACEOF
20159 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
20160 _ACEOF
20161
20162
20163 else
20164 $as_echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20166
20167 { $as_echo "$as_me:$LINENO: result: no" >&5
20168 $as_echo "no" >&6; }
20169
20170
20171
20172 fi
20173
20174 rm -Rf build
20175
20176
20177 EXTRA_KCFLAGS="$tmp_flags"
20178
20179
20180 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
20181 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
20182 tmp_flags="$EXTRA_KCFLAGS"
20183 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20184
20185
20186 cat confdefs.h - <<_ACEOF >conftest.c
20187 /* confdefs.h. */
20188 _ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20192
20193
20194 #include <linux/blkdev.h>
20195
20196 int
20197 main (void)
20198 {
20199
20200 struct request_queue *q = NULL;
20201 unsigned short block_size = 1;
20202 (void) blk_queue_physical_block_size(q, block_size);
20203
20204 ;
20205 return 0;
20206 }
20207
20208 _ACEOF
20209
20210
20211 rm -Rf build && mkdir -p build
20212 echo "obj-m := conftest.o" >build/Makefile
20213 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'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20216 ac_status=$?
20217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20221 ac_status=$?
20222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; }; then
20224
20225 { $as_echo "$as_me:$LINENO: result: yes" >&5
20226 $as_echo "yes" >&6; }
20227
20228 cat >>confdefs.h <<\_ACEOF
20229 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
20230 _ACEOF
20231
20232
20233 else
20234 $as_echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.$ac_ext >&5
20236
20237 { $as_echo "$as_me:$LINENO: result: no" >&5
20238 $as_echo "no" >&6; }
20239
20240
20241
20242 fi
20243
20244 rm -Rf build
20245
20246
20247 EXTRA_KCFLAGS="$tmp_flags"
20248
20249
20250 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
20251 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
20252 tmp_flags="$EXTRA_KCFLAGS"
20253 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20254
20255
20256 cat confdefs.h - <<_ACEOF >conftest.c
20257 /* confdefs.h. */
20258 _ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h. */
20262
20263
20264 #include <linux/blkdev.h>
20265
20266 int
20267 main (void)
20268 {
20269
20270 struct request_queue *q = NULL;
20271 unsigned int opt = 1;
20272 (void) blk_queue_io_opt(q, opt);
20273
20274 ;
20275 return 0;
20276 }
20277
20278 _ACEOF
20279
20280
20281 rm -Rf build && mkdir -p build
20282 echo "obj-m := conftest.o" >build/Makefile
20283 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'
20284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285 (eval $ac_try) 2>&5
20286 ac_status=$?
20287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20291 ac_status=$?
20292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294
20295 { $as_echo "$as_me:$LINENO: result: yes" >&5
20296 $as_echo "yes" >&6; }
20297
20298 cat >>confdefs.h <<\_ACEOF
20299 #define HAVE_BLK_QUEUE_IO_OPT 1
20300 _ACEOF
20301
20302
20303 else
20304 $as_echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20306
20307 { $as_echo "$as_me:$LINENO: result: no" >&5
20308 $as_echo "no" >&6; }
20309
20310
20311
20312 fi
20313
20314 rm -Rf build
20315
20316
20317 EXTRA_KCFLAGS="$tmp_flags"
20318
20319
20320 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
20321 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
20322 tmp_flags="$EXTRA_KCFLAGS"
20323 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20324
20325
20326 cat confdefs.h - <<_ACEOF >conftest.c
20327 /* confdefs.h. */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20332
20333
20334 #include <linux/blkdev.h>
20335
20336 int
20337 main (void)
20338 {
20339
20340 struct request_queue *q = NULL;
20341 (void) blk_queue_nonrot(q);
20342
20343 ;
20344 return 0;
20345 }
20346
20347 _ACEOF
20348
20349
20350 rm -Rf build && mkdir -p build
20351 echo "obj-m := conftest.o" >build/Makefile
20352 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'
20353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354 (eval $ac_try) 2>&5
20355 ac_status=$?
20356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20360 ac_status=$?
20361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; }; then
20363
20364 { $as_echo "$as_me:$LINENO: result: yes" >&5
20365 $as_echo "yes" >&6; }
20366
20367 cat >>confdefs.h <<\_ACEOF
20368 #define HAVE_BLK_QUEUE_NONROT 1
20369 _ACEOF
20370
20371
20372 else
20373 $as_echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20375
20376 { $as_echo "$as_me:$LINENO: result: no" >&5
20377 $as_echo "no" >&6; }
20378
20379
20380
20381 fi
20382
20383 rm -Rf build
20384
20385
20386 EXTRA_KCFLAGS="$tmp_flags"
20387
20388
20389 { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
20390 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
20391 tmp_flags="$EXTRA_KCFLAGS"
20392 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20393
20394
20395 cat confdefs.h - <<_ACEOF >conftest.c
20396 /* confdefs.h. */
20397 _ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20401
20402
20403 #include <linux/blkdev.h>
20404
20405 int
20406 main (void)
20407 {
20408
20409 struct request_queue *q = NULL;
20410 (void) blk_queue_discard(q);
20411
20412 ;
20413 return 0;
20414 }
20415
20416 _ACEOF
20417
20418
20419 rm -Rf build && mkdir -p build
20420 echo "obj-m := conftest.o" >build/Makefile
20421 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'
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20424 ac_status=$?
20425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20429 ac_status=$?
20430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
20432
20433 { $as_echo "$as_me:$LINENO: result: yes" >&5
20434 $as_echo "yes" >&6; }
20435
20436 cat >>confdefs.h <<\_ACEOF
20437 #define HAVE_BLK_QUEUE_DISCARD 1
20438 _ACEOF
20439
20440
20441 else
20442 $as_echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20444
20445 { $as_echo "$as_me:$LINENO: result: no" >&5
20446 $as_echo "no" >&6; }
20447
20448
20449
20450 fi
20451
20452 rm -Rf build
20453
20454
20455 EXTRA_KCFLAGS="$tmp_flags"
20456
20457
20458 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
20459 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
20460 tmp_flags="$EXTRA_KCFLAGS"
20461 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20462
20463
20464 cat confdefs.h - <<_ACEOF >conftest.c
20465 /* confdefs.h. */
20466 _ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h. */
20470
20471
20472 #include <linux/blkdev.h>
20473
20474 int
20475 main (void)
20476 {
20477
20478 struct request_queue *q = NULL;
20479 (void) blk_fetch_request(q);
20480
20481 ;
20482 return 0;
20483 }
20484
20485 _ACEOF
20486
20487
20488 rm -Rf build && mkdir -p build
20489 echo "obj-m := conftest.o" >build/Makefile
20490 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'
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20493 ac_status=$?
20494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
20501
20502 { $as_echo "$as_me:$LINENO: result: yes" >&5
20503 $as_echo "yes" >&6; }
20504
20505 cat >>confdefs.h <<\_ACEOF
20506 #define HAVE_BLK_FETCH_REQUEST 1
20507 _ACEOF
20508
20509
20510 else
20511 $as_echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20513
20514 { $as_echo "$as_me:$LINENO: result: no" >&5
20515 $as_echo "no" >&6; }
20516
20517
20518
20519 fi
20520
20521 rm -Rf build
20522
20523
20524 EXTRA_KCFLAGS="$tmp_flags"
20525
20526
20527 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
20528 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
20529 tmp_flags="$EXTRA_KCFLAGS"
20530 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20531
20532
20533 cat confdefs.h - <<_ACEOF >conftest.c
20534 /* confdefs.h. */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20539
20540
20541 #include <linux/blkdev.h>
20542
20543 int
20544 main (void)
20545 {
20546
20547 struct request_queue *q = NULL;
20548 struct request *req = NULL;
20549 blk_requeue_request(q, req);
20550
20551 ;
20552 return 0;
20553 }
20554
20555 _ACEOF
20556
20557
20558 rm -Rf build && mkdir -p build
20559 echo "obj-m := conftest.o" >build/Makefile
20560 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'
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20563 ac_status=$?
20564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567 (eval $ac_try) 2>&5
20568 ac_status=$?
20569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; }; then
20571
20572 { $as_echo "$as_me:$LINENO: result: yes" >&5
20573 $as_echo "yes" >&6; }
20574
20575 cat >>confdefs.h <<\_ACEOF
20576 #define HAVE_BLK_REQUEUE_REQUEST 1
20577 _ACEOF
20578
20579
20580 else
20581 $as_echo "$as_me: failed program was:" >&5
20582 sed 's/^/| /' conftest.$ac_ext >&5
20583
20584 { $as_echo "$as_me:$LINENO: result: no" >&5
20585 $as_echo "no" >&6; }
20586
20587
20588
20589 fi
20590
20591 rm -Rf build
20592
20593
20594 EXTRA_KCFLAGS="$tmp_flags"
20595
20596
20597 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
20598 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
20599 tmp_flags="$EXTRA_KCFLAGS"
20600 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20601
20602
20603 cat confdefs.h - <<_ACEOF >conftest.c
20604 /* confdefs.h. */
20605 _ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20609
20610
20611 #include <linux/blkdev.h>
20612
20613 int
20614 main (void)
20615 {
20616
20617 struct request *req = NULL;
20618 (void) blk_rq_bytes(req);
20619
20620 ;
20621 return 0;
20622 }
20623
20624 _ACEOF
20625
20626
20627 rm -Rf build && mkdir -p build
20628 echo "obj-m := conftest.o" >build/Makefile
20629 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'
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20632 ac_status=$?
20633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636 (eval $ac_try) 2>&5
20637 ac_status=$?
20638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; }; then
20640
20641 { $as_echo "$as_me:$LINENO: result: yes" >&5
20642 $as_echo "yes" >&6; }
20643
20644 cat >>confdefs.h <<\_ACEOF
20645 #define HAVE_BLK_RQ_BYTES 1
20646 _ACEOF
20647
20648
20649 else
20650 $as_echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20652
20653 { $as_echo "$as_me:$LINENO: result: no" >&5
20654 $as_echo "no" >&6; }
20655
20656
20657
20658 fi
20659
20660 rm -Rf build
20661
20662
20663
20664 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
20665 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
20666
20667
20668 cat confdefs.h - <<_ACEOF >conftest.c
20669 /* confdefs.h. */
20670 _ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h. */
20674
20675
20676 #include <linux/module.h>
20677 #include <linux/blkdev.h>
20678
20679 MODULE_LICENSE("CDDL");
20680
20681 int
20682 main (void)
20683 {
20684
20685 struct request *req = NULL;
20686 (void) blk_rq_bytes(req);
20687
20688 ;
20689 return 0;
20690 }
20691
20692 _ACEOF
20693
20694
20695 rm -Rf build && mkdir -p build
20696 echo "obj-m := conftest.o" >build/Makefile
20697 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'
20698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699 (eval $ac_try) 2>&5
20700 ac_status=$?
20701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704 (eval $ac_try) 2>&5
20705 ac_status=$?
20706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; }; then
20708
20709 { $as_echo "$as_me:$LINENO: result: no" >&5
20710 $as_echo "no" >&6; }
20711
20712 else
20713 $as_echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20715
20716 { $as_echo "$as_me:$LINENO: result: yes" >&5
20717 $as_echo "yes" >&6; }
20718
20719 cat >>confdefs.h <<\_ACEOF
20720 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
20721 _ACEOF
20722
20723
20724
20725
20726 fi
20727
20728 rm -Rf build
20729
20730
20731 EXTRA_KCFLAGS="$tmp_flags"
20732
20733
20734 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
20735 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
20736 tmp_flags="$EXTRA_KCFLAGS"
20737 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20738
20739
20740 cat confdefs.h - <<_ACEOF >conftest.c
20741 /* confdefs.h. */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20746
20747
20748 #include <linux/blkdev.h>
20749
20750 int
20751 main (void)
20752 {
20753
20754 struct request *req = NULL;
20755 (void) blk_rq_pos(req);
20756
20757 ;
20758 return 0;
20759 }
20760
20761 _ACEOF
20762
20763
20764 rm -Rf build && mkdir -p build
20765 echo "obj-m := conftest.o" >build/Makefile
20766 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'
20767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768 (eval $ac_try) 2>&5
20769 ac_status=$?
20770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20774 ac_status=$?
20775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; }; then
20777
20778 { $as_echo "$as_me:$LINENO: result: yes" >&5
20779 $as_echo "yes" >&6; }
20780
20781 cat >>confdefs.h <<\_ACEOF
20782 #define HAVE_BLK_RQ_POS 1
20783 _ACEOF
20784
20785
20786 else
20787 $as_echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20789
20790 { $as_echo "$as_me:$LINENO: result: no" >&5
20791 $as_echo "no" >&6; }
20792
20793
20794
20795 fi
20796
20797 rm -Rf build
20798
20799
20800 EXTRA_KCFLAGS="$tmp_flags"
20801
20802
20803 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
20804 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
20805 tmp_flags="$EXTRA_KCFLAGS"
20806 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20807
20808
20809 cat confdefs.h - <<_ACEOF >conftest.c
20810 /* confdefs.h. */
20811 _ACEOF
20812 cat confdefs.h >>conftest.$ac_ext
20813 cat >>conftest.$ac_ext <<_ACEOF
20814 /* end confdefs.h. */
20815
20816
20817 #include <linux/blkdev.h>
20818
20819 int
20820 main (void)
20821 {
20822
20823 struct request *req = NULL;
20824 (void) blk_rq_sectors(req);
20825
20826 ;
20827 return 0;
20828 }
20829
20830 _ACEOF
20831
20832
20833 rm -Rf build && mkdir -p build
20834 echo "obj-m := conftest.o" >build/Makefile
20835 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'
20836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837 (eval $ac_try) 2>&5
20838 ac_status=$?
20839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20842 (eval $ac_try) 2>&5
20843 ac_status=$?
20844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); }; }; then
20846
20847 { $as_echo "$as_me:$LINENO: result: yes" >&5
20848 $as_echo "yes" >&6; }
20849
20850 cat >>confdefs.h <<\_ACEOF
20851 #define HAVE_BLK_RQ_SECTORS 1
20852 _ACEOF
20853
20854
20855 else
20856 $as_echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20858
20859 { $as_echo "$as_me:$LINENO: result: no" >&5
20860 $as_echo "no" >&6; }
20861
20862
20863
20864 fi
20865
20866 rm -Rf build
20867
20868
20869 EXTRA_KCFLAGS="$tmp_flags"
20870
20871
20872 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
20873 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
20874 tmp_flags="$EXTRA_KCFLAGS"
20875 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20876
20877
20878 cat confdefs.h - <<_ACEOF >conftest.c
20879 /* confdefs.h. */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20884
20885
20886 #include <linux/blkdev.h>
20887
20888 int
20889 main (void)
20890 {
20891
20892 struct gendisk *disk = NULL;
20893 (void) get_disk_ro(disk);
20894
20895 ;
20896 return 0;
20897 }
20898
20899 _ACEOF
20900
20901
20902 rm -Rf build && mkdir -p build
20903 echo "obj-m := conftest.o" >build/Makefile
20904 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'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20907 ac_status=$?
20908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20911 (eval $ac_try) 2>&5
20912 ac_status=$?
20913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; }; then
20915
20916 { $as_echo "$as_me:$LINENO: result: yes" >&5
20917 $as_echo "yes" >&6; }
20918
20919 cat >>confdefs.h <<\_ACEOF
20920 #define HAVE_GET_DISK_RO 1
20921 _ACEOF
20922
20923
20924 else
20925 $as_echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20927
20928 { $as_echo "$as_me:$LINENO: result: no" >&5
20929 $as_echo "no" >&6; }
20930
20931
20932
20933 fi
20934
20935 rm -Rf build
20936
20937
20938 EXTRA_KCFLAGS="$tmp_flags"
20939
20940
20941 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
20942 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
20943 tmp_flags="$EXTRA_KCFLAGS"
20944 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20945
20946
20947 cat confdefs.h - <<_ACEOF >conftest.c
20948 /* confdefs.h. */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20953
20954
20955 #include <linux/blkdev.h>
20956
20957 int
20958 main (void)
20959 {
20960
20961 struct request *req = NULL;
20962 (void) rq_is_sync(req);
20963
20964 ;
20965 return 0;
20966 }
20967
20968 _ACEOF
20969
20970
20971 rm -Rf build && mkdir -p build
20972 echo "obj-m := conftest.o" >build/Makefile
20973 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'
20974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20975 (eval $ac_try) 2>&5
20976 ac_status=$?
20977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20981 ac_status=$?
20982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; }; then
20984
20985 { $as_echo "$as_me:$LINENO: result: yes" >&5
20986 $as_echo "yes" >&6; }
20987
20988 cat >>confdefs.h <<\_ACEOF
20989 #define HAVE_RQ_IS_SYNC 1
20990 _ACEOF
20991
20992
20993 else
20994 $as_echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20996
20997 { $as_echo "$as_me:$LINENO: result: no" >&5
20998 $as_echo "no" >&6; }
20999
21000
21001
21002 fi
21003
21004 rm -Rf build
21005
21006
21007 EXTRA_KCFLAGS="$tmp_flags"
21008
21009
21010 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
21011 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
21012 tmp_flags="$EXTRA_KCFLAGS"
21013 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21014
21015
21016 cat confdefs.h - <<_ACEOF >conftest.c
21017 /* confdefs.h. */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21022
21023
21024 #include <linux/blkdev.h>
21025
21026 int
21027 main (void)
21028 {
21029
21030 struct bio_vec *bv;
21031 struct req_iterator iter;
21032 struct request *req = NULL;
21033 rq_for_each_segment(bv, req, iter) { }
21034
21035 ;
21036 return 0;
21037 }
21038
21039 _ACEOF
21040
21041
21042 rm -Rf build && mkdir -p build
21043 echo "obj-m := conftest.o" >build/Makefile
21044 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'
21045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21046 (eval $ac_try) 2>&5
21047 ac_status=$?
21048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21051 (eval $ac_try) 2>&5
21052 ac_status=$?
21053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); }; }; then
21055
21056 { $as_echo "$as_me:$LINENO: result: yes" >&5
21057 $as_echo "yes" >&6; }
21058
21059 cat >>confdefs.h <<\_ACEOF
21060 #define HAVE_RQ_FOR_EACH_SEGMENT 1
21061 _ACEOF
21062
21063
21064 else
21065 $as_echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21067
21068 { $as_echo "$as_me:$LINENO: result: no" >&5
21069 $as_echo "no" >&6; }
21070
21071
21072
21073 fi
21074
21075 rm -Rf build
21076
21077
21078 EXTRA_KCFLAGS="$tmp_flags"
21079
21080 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
21081 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
21082
21083
21084 cat confdefs.h - <<_ACEOF >conftest.c
21085 /* confdefs.h. */
21086 _ACEOF
21087 cat confdefs.h >>conftest.$ac_ext
21088 cat >>conftest.$ac_ext <<_ACEOF
21089 /* end confdefs.h. */
21090
21091
21092 #include <linux/fs.h>
21093 #include <linux/xattr.h>
21094
21095 const struct xattr_handler xattr_test_handler = {
21096 .prefix = "test",
21097 .get = NULL,
21098 .set = NULL,
21099 };
21100
21101 const struct xattr_handler *xattr_handlers[] = {
21102 &xattr_test_handler,
21103 };
21104
21105 int
21106 main (void)
21107 {
21108
21109 struct super_block sb __attribute__ ((unused));
21110
21111 sb.s_xattr = xattr_handlers;
21112
21113 ;
21114 return 0;
21115 }
21116
21117 _ACEOF
21118
21119
21120 rm -Rf build && mkdir -p build
21121 echo "obj-m := conftest.o" >build/Makefile
21122 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'
21123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124 (eval $ac_try) 2>&5
21125 ac_status=$?
21126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21129 (eval $ac_try) 2>&5
21130 ac_status=$?
21131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); }; }; then
21133
21134 { $as_echo "$as_me:$LINENO: result: yes" >&5
21135 $as_echo "yes" >&6; }
21136
21137 cat >>confdefs.h <<\_ACEOF
21138 #define HAVE_CONST_XATTR_HANDLER 1
21139 _ACEOF
21140
21141
21142 else
21143 $as_echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21145
21146 { $as_echo "$as_me:$LINENO: result: no" >&5
21147 $as_echo "no" >&6; }
21148
21149
21150
21151 fi
21152
21153 rm -Rf build
21154
21155
21156
21157
21158 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
21159 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
21160
21161
21162 cat confdefs.h - <<_ACEOF >conftest.c
21163 /* confdefs.h. */
21164 _ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168
21169
21170 #include <linux/xattr.h>
21171
21172 int
21173 main (void)
21174 {
21175
21176 int (*get)(struct dentry *dentry, const char *name,
21177 void *buffer, size_t size, int handler_flags) = NULL;
21178 struct xattr_handler xops __attribute__ ((unused));
21179
21180 xops.get = get;
21181
21182 ;
21183 return 0;
21184 }
21185
21186 _ACEOF
21187
21188
21189 rm -Rf build && mkdir -p build
21190 echo "obj-m := conftest.o" >build/Makefile
21191 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'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21199 ac_status=$?
21200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; }; then
21202
21203 { $as_echo "$as_me:$LINENO: result: yes" >&5
21204 $as_echo "yes" >&6; }
21205
21206 cat >>confdefs.h <<\_ACEOF
21207 #define HAVE_DENTRY_XATTR_GET 1
21208 _ACEOF
21209
21210
21211 else
21212 $as_echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21214
21215 { $as_echo "$as_me:$LINENO: result: no" >&5
21216 $as_echo "no" >&6; }
21217
21218
21219
21220 fi
21221
21222 rm -Rf build
21223
21224
21225
21226
21227 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
21228 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
21229
21230
21231 cat confdefs.h - <<_ACEOF >conftest.c
21232 /* confdefs.h. */
21233 _ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21237
21238
21239 #include <linux/xattr.h>
21240
21241 int
21242 main (void)
21243 {
21244
21245 int (*set)(struct dentry *dentry, const char *name,
21246 const void *buffer, size_t size, int flags,
21247 int handler_flags) = NULL;
21248 struct xattr_handler xops __attribute__ ((unused));
21249
21250 xops.set = set;
21251
21252 ;
21253 return 0;
21254 }
21255
21256 _ACEOF
21257
21258
21259 rm -Rf build && mkdir -p build
21260 echo "obj-m := conftest.o" >build/Makefile
21261 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'
21262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263 (eval $ac_try) 2>&5
21264 ac_status=$?
21265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21269 ac_status=$?
21270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; }; then
21272
21273 { $as_echo "$as_me:$LINENO: result: yes" >&5
21274 $as_echo "yes" >&6; }
21275
21276 cat >>confdefs.h <<\_ACEOF
21277 #define HAVE_DENTRY_XATTR_SET 1
21278 _ACEOF
21279
21280
21281 else
21282 $as_echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21284
21285 { $as_echo "$as_me:$LINENO: result: no" >&5
21286 $as_echo "no" >&6; }
21287
21288
21289
21290 fi
21291
21292 rm -Rf build
21293
21294
21295
21296
21297 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
21298 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
21299
21300
21301
21302 cat confdefs.h - <<_ACEOF >conftest.c
21303 /* confdefs.h. */
21304 _ACEOF
21305 cat confdefs.h >>conftest.$ac_ext
21306 cat >>conftest.$ac_ext <<_ACEOF
21307 /* end confdefs.h. */
21308
21309
21310 #include <linux/fs.h>
21311
21312 int
21313 main (void)
21314 {
21315
21316 int (*show_options) (struct seq_file *, struct dentry *) = NULL;
21317 struct super_operations sops __attribute__ ((unused));
21318
21319 sops.show_options = show_options;
21320
21321 ;
21322 return 0;
21323 }
21324
21325 _ACEOF
21326
21327
21328 rm -Rf build && mkdir -p build
21329 echo "obj-m := conftest.o" >build/Makefile
21330 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'
21331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332 (eval $ac_try) 2>&5
21333 ac_status=$?
21334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21338 ac_status=$?
21339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; }; then
21341
21342 { $as_echo "$as_me:$LINENO: result: yes" >&5
21343 $as_echo "yes" >&6; }
21344
21345 cat >>confdefs.h <<\_ACEOF
21346 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
21347 _ACEOF
21348
21349
21350 else
21351 $as_echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21353
21354 { $as_echo "$as_me:$LINENO: result: no" >&5
21355 $as_echo "no" >&6; }
21356
21357
21358
21359 fi
21360
21361 rm -Rf build
21362
21363
21364
21365
21366 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
21367 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
21368
21369
21370
21371 cat confdefs.h - <<_ACEOF >conftest.c
21372 /* confdefs.h. */
21373 _ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h. */
21377
21378
21379 #include <linux/fs.h>
21380
21381 int
21382 main (void)
21383 {
21384
21385 int (*fsync) (struct file *, struct dentry *, int) = NULL;
21386 struct file_operations fops __attribute__ ((unused));
21387
21388 fops.fsync = fsync;
21389
21390 ;
21391 return 0;
21392 }
21393
21394 _ACEOF
21395
21396
21397 rm -Rf build && mkdir -p build
21398 echo "obj-m := conftest.o" >build/Makefile
21399 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'
21400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21401 (eval $ac_try) 2>&5
21402 ac_status=$?
21403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21406 (eval $ac_try) 2>&5
21407 ac_status=$?
21408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); }; }; then
21410
21411 { $as_echo "$as_me:$LINENO: result: dentry" >&5
21412 $as_echo "dentry" >&6; }
21413
21414 cat >>confdefs.h <<\_ACEOF
21415 #define HAVE_FSYNC_WITH_DENTRY 1
21416 _ACEOF
21417
21418
21419 else
21420 $as_echo "$as_me: failed program was:" >&5
21421 sed 's/^/| /' conftest.$ac_ext >&5
21422
21423
21424
21425
21426 fi
21427
21428 rm -Rf build
21429
21430
21431
21432
21433
21434
21435 cat confdefs.h - <<_ACEOF >conftest.c
21436 /* confdefs.h. */
21437 _ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21441
21442
21443 #include <linux/fs.h>
21444
21445 int
21446 main (void)
21447 {
21448
21449 int (*fsync) (struct file *, int) = NULL;
21450 struct file_operations fops __attribute__ ((unused));
21451
21452 fops.fsync = fsync;
21453
21454 ;
21455 return 0;
21456 }
21457
21458 _ACEOF
21459
21460
21461 rm -Rf build && mkdir -p build
21462 echo "obj-m := conftest.o" >build/Makefile
21463 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'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21466 ac_status=$?
21467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470 (eval $ac_try) 2>&5
21471 ac_status=$?
21472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; }; then
21474
21475 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
21476 $as_echo "no dentry" >&6; }
21477
21478 cat >>confdefs.h <<\_ACEOF
21479 #define HAVE_FSYNC_WITHOUT_DENTRY 1
21480 _ACEOF
21481
21482
21483 else
21484 $as_echo "$as_me: failed program was:" >&5
21485 sed 's/^/| /' conftest.$ac_ext >&5
21486
21487
21488
21489
21490 fi
21491
21492 rm -Rf build
21493
21494
21495
21496
21497
21498
21499 cat confdefs.h - <<_ACEOF >conftest.c
21500 /* confdefs.h. */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21505
21506
21507 #include <linux/fs.h>
21508
21509 int
21510 main (void)
21511 {
21512
21513 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
21514 struct file_operations fops __attribute__ ((unused));
21515
21516 fops.fsync = fsync;
21517
21518 ;
21519 return 0;
21520 }
21521
21522 _ACEOF
21523
21524
21525 rm -Rf build && mkdir -p build
21526 echo "obj-m := conftest.o" >build/Makefile
21527 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'
21528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529 (eval $ac_try) 2>&5
21530 ac_status=$?
21531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21535 ac_status=$?
21536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538
21539 { $as_echo "$as_me:$LINENO: result: range" >&5
21540 $as_echo "range" >&6; }
21541
21542 cat >>confdefs.h <<\_ACEOF
21543 #define HAVE_FSYNC_RANGE 1
21544 _ACEOF
21545
21546
21547 else
21548 $as_echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21550
21551
21552
21553
21554 fi
21555
21556 rm -Rf build
21557
21558
21559
21560
21561
21562 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
21563 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
21564
21565
21566 cat confdefs.h - <<_ACEOF >conftest.c
21567 /* confdefs.h. */
21568 _ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h. */
21572
21573
21574 #include <linux/fs.h>
21575
21576 int
21577 main (void)
21578 {
21579
21580 void (*evict_inode) (struct inode *) = NULL;
21581 struct super_operations sops __attribute__ ((unused)) = {
21582 .evict_inode = evict_inode,
21583 };
21584
21585 ;
21586 return 0;
21587 }
21588
21589 _ACEOF
21590
21591
21592 rm -Rf build && mkdir -p build
21593 echo "obj-m := conftest.o" >build/Makefile
21594 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'
21595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596 (eval $ac_try) 2>&5
21597 ac_status=$?
21598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601 (eval $ac_try) 2>&5
21602 ac_status=$?
21603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; }; then
21605
21606 { $as_echo "$as_me:$LINENO: result: yes" >&5
21607 $as_echo "yes" >&6; }
21608
21609 cat >>confdefs.h <<\_ACEOF
21610 #define HAVE_EVICT_INODE 1
21611 _ACEOF
21612
21613
21614 else
21615 $as_echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21617
21618 { $as_echo "$as_me:$LINENO: result: no" >&5
21619 $as_echo "no" >&6; }
21620
21621
21622
21623 fi
21624
21625 rm -Rf build
21626
21627
21628
21629
21630 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
21631 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
21632
21633
21634 cat confdefs.h - <<_ACEOF >conftest.c
21635 /* confdefs.h. */
21636 _ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21640
21641
21642 #include <linux/fs.h>
21643
21644 int
21645 main (void)
21646 {
21647
21648 int (*nr_cached_objects)(struct super_block *)
21649 __attribute__ ((unused)) = NULL;
21650 struct super_operations sops __attribute__ ((unused)) = {
21651 .nr_cached_objects = nr_cached_objects,
21652 };
21653
21654 ;
21655 return 0;
21656 }
21657
21658 _ACEOF
21659
21660
21661 rm -Rf build && mkdir -p build
21662 echo "obj-m := conftest.o" >build/Makefile
21663 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'
21664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665 (eval $ac_try) 2>&5
21666 ac_status=$?
21667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21671 ac_status=$?
21672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
21674
21675 { $as_echo "$as_me:$LINENO: result: yes" >&5
21676 $as_echo "yes" >&6; }
21677
21678 cat >>confdefs.h <<\_ACEOF
21679 #define HAVE_NR_CACHED_OBJECTS 1
21680 _ACEOF
21681
21682
21683 else
21684 $as_echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21686
21687 { $as_echo "$as_me:$LINENO: result: no" >&5
21688 $as_echo "no" >&6; }
21689
21690
21691
21692 fi
21693
21694 rm -Rf build
21695
21696
21697
21698
21699 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
21700 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
21701
21702
21703 cat confdefs.h - <<_ACEOF >conftest.c
21704 /* confdefs.h. */
21705 _ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h. */
21709
21710
21711 #include <linux/fs.h>
21712
21713 int
21714 main (void)
21715 {
21716
21717 void (*free_cached_objects)(struct super_block *, int)
21718 __attribute__ ((unused)) = NULL;
21719 struct super_operations sops __attribute__ ((unused)) = {
21720 .free_cached_objects = free_cached_objects,
21721 };
21722
21723 ;
21724 return 0;
21725 }
21726
21727 _ACEOF
21728
21729
21730 rm -Rf build && mkdir -p build
21731 echo "obj-m := conftest.o" >build/Makefile
21732 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'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739 (eval $ac_try) 2>&5
21740 ac_status=$?
21741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; }; then
21743
21744 { $as_echo "$as_me:$LINENO: result: yes" >&5
21745 $as_echo "yes" >&6; }
21746
21747 cat >>confdefs.h <<\_ACEOF
21748 #define HAVE_FREE_CACHED_OBJECTS 1
21749 _ACEOF
21750
21751
21752 else
21753 $as_echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756 { $as_echo "$as_me:$LINENO: result: no" >&5
21757 $as_echo "no" >&6; }
21758
21759
21760
21761 fi
21762
21763 rm -Rf build
21764
21765
21766
21767
21768
21769 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
21770 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
21771
21772
21773 cat confdefs.h - <<_ACEOF >conftest.c
21774 /* confdefs.h. */
21775 _ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h. */
21779
21780
21781 #include <linux/fs.h>
21782
21783 int
21784 main (void)
21785 {
21786
21787 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
21788 struct file_operations fops __attribute__ ((unused)) = {
21789 .fallocate = fallocate,
21790 };
21791
21792 ;
21793 return 0;
21794 }
21795
21796 _ACEOF
21797
21798
21799 rm -Rf build && mkdir -p build
21800 echo "obj-m := conftest.o" >build/Makefile
21801 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'
21802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803 (eval $ac_try) 2>&5
21804 ac_status=$?
21805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808 (eval $ac_try) 2>&5
21809 ac_status=$?
21810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); }; }; then
21812
21813 { $as_echo "$as_me:$LINENO: result: yes" >&5
21814 $as_echo "yes" >&6; }
21815
21816 cat >>confdefs.h <<\_ACEOF
21817 #define HAVE_FILE_FALLOCATE 1
21818 _ACEOF
21819
21820
21821 else
21822 $as_echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21824
21825 { $as_echo "$as_me:$LINENO: result: no" >&5
21826 $as_echo "no" >&6; }
21827
21828
21829
21830 fi
21831
21832 rm -Rf build
21833
21834
21835
21836
21837 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
21838 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
21839
21840
21841 cat confdefs.h - <<_ACEOF >conftest.c
21842 /* confdefs.h. */
21843 _ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21847
21848
21849 #include <linux/fs.h>
21850
21851 int
21852 main (void)
21853 {
21854
21855 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
21856 struct inode_operations fops __attribute__ ((unused)) = {
21857 .fallocate = fallocate,
21858 };
21859
21860 ;
21861 return 0;
21862 }
21863
21864 _ACEOF
21865
21866
21867 rm -Rf build && mkdir -p build
21868 echo "obj-m := conftest.o" >build/Makefile
21869 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'
21870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21871 (eval $ac_try) 2>&5
21872 ac_status=$?
21873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21876 (eval $ac_try) 2>&5
21877 ac_status=$?
21878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); }; }; then
21880
21881 { $as_echo "$as_me:$LINENO: result: yes" >&5
21882 $as_echo "yes" >&6; }
21883
21884 cat >>confdefs.h <<\_ACEOF
21885 #define HAVE_INODE_FALLOCATE 1
21886 _ACEOF
21887
21888
21889 else
21890 $as_echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21892
21893 { $as_echo "$as_me:$LINENO: result: no" >&5
21894 $as_echo "no" >&6; }
21895
21896
21897
21898 fi
21899
21900 rm -Rf build
21901
21902
21903
21904
21905
21906 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
21907 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
21908
21909
21910 cat confdefs.h - <<_ACEOF >conftest.c
21911 /* confdefs.h. */
21912 _ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h. */
21916
21917
21918 #include <linux/fs.h>
21919
21920 int
21921 main (void)
21922 {
21923
21924 int (*create) (struct inode *, struct dentry *, umode_t,
21925 struct nameidata *) = NULL;
21926 struct inode_operations iops __attribute__ ((unused)) = {
21927 .create = create,
21928 };
21929
21930 ;
21931 return 0;
21932 }
21933
21934 _ACEOF
21935
21936
21937 rm -Rf build && mkdir -p build
21938 echo "obj-m := conftest.o" >build/Makefile
21939 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'
21940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21941 (eval $ac_try) 2>&5
21942 ac_status=$?
21943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21946 (eval $ac_try) 2>&5
21947 ac_status=$?
21948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); }; }; then
21950
21951 { $as_echo "$as_me:$LINENO: result: yes" >&5
21952 $as_echo "yes" >&6; }
21953
21954 cat >>confdefs.h <<\_ACEOF
21955 #define HAVE_CREATE_UMODE_T 1
21956 _ACEOF
21957
21958
21959 else
21960 $as_echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21962
21963 { $as_echo "$as_me:$LINENO: result: no" >&5
21964 $as_echo "no" >&6; }
21965
21966
21967
21968 fi
21969
21970 rm -Rf build
21971
21972
21973
21974
21975 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
21976 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
21977
21978
21979 cat confdefs.h - <<_ACEOF >conftest.c
21980 /* confdefs.h. */
21981 _ACEOF
21982 cat confdefs.h >>conftest.$ac_ext
21983 cat >>conftest.$ac_ext <<_ACEOF
21984 /* end confdefs.h. */
21985
21986
21987 #include <linux/dcache.h>
21988
21989 int
21990 main (void)
21991 {
21992
21993 struct vfsmount *(*d_automount) (struct path *) = NULL;
21994 struct dentry_operations dops __attribute__ ((unused)) = {
21995 .d_automount = d_automount,
21996 };
21997
21998 ;
21999 return 0;
22000 }
22001
22002 _ACEOF
22003
22004
22005 rm -Rf build && mkdir -p build
22006 echo "obj-m := conftest.o" >build/Makefile
22007 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'
22008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009 (eval $ac_try) 2>&5
22010 ac_status=$?
22011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014 (eval $ac_try) 2>&5
22015 ac_status=$?
22016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; }; then
22018
22019 { $as_echo "$as_me:$LINENO: result: yes" >&5
22020 $as_echo "yes" >&6; }
22021
22022 cat >>confdefs.h <<\_ACEOF
22023 #define HAVE_AUTOMOUNT 1
22024 _ACEOF
22025
22026
22027 else
22028 $as_echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22030
22031 { $as_echo "$as_me:$LINENO: result: no" >&5
22032 $as_echo "no" >&6; }
22033
22034
22035
22036 fi
22037
22038 rm -Rf build
22039
22040
22041
22042
22043 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
22044 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
22045 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
22046 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22047 rc=$?
22048 if test $rc -ne 0; then
22049
22050 export=0
22051 for file in fs/inode.c; do
22052 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
22053 rc=$?
22054 if test $rc -eq 0; then
22055
22056 export=1
22057 break;
22058
22059 fi
22060
22061 done
22062 if test $export -eq 0; then
22063
22064 { $as_echo "$as_me:$LINENO: result: no" >&5
22065 $as_echo "no" >&6; }
22066
22067
22068 else
22069
22070 { $as_echo "$as_me:$LINENO: result: yes" >&5
22071 $as_echo "yes" >&6; }
22072
22073 cat >>confdefs.h <<\_ACEOF
22074 #define HAVE_INSERT_INODE_LOCKED 1
22075 _ACEOF
22076
22077
22078 fi
22079
22080
22081 else
22082
22083 { $as_echo "$as_me:$LINENO: result: yes" >&5
22084 $as_echo "yes" >&6; }
22085
22086 cat >>confdefs.h <<\_ACEOF
22087 #define HAVE_INSERT_INODE_LOCKED 1
22088 _ACEOF
22089
22090
22091 fi
22092
22093
22094
22095
22096 { $as_echo "$as_me:$LINENO: checking whether symbol d_make_root is exported" >&5
22097 $as_echo_n "checking whether symbol d_make_root is exported... " >&6; }
22098 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
22099 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22100 rc=$?
22101 if test $rc -ne 0; then
22102
22103 export=0
22104 for file in fs/dcache.c; do
22105 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" "$LINUX/$file" 2>/dev/null
22106 rc=$?
22107 if test $rc -eq 0; then
22108
22109 export=1
22110 break;
22111
22112 fi
22113
22114 done
22115 if test $export -eq 0; then
22116
22117 { $as_echo "$as_me:$LINENO: result: no" >&5
22118 $as_echo "no" >&6; }
22119
22120
22121 else
22122
22123 { $as_echo "$as_me:$LINENO: result: yes" >&5
22124 $as_echo "yes" >&6; }
22125
22126 cat >>confdefs.h <<\_ACEOF
22127 #define HAVE_D_MAKE_ROOT 1
22128 _ACEOF
22129
22130
22131 fi
22132
22133
22134 else
22135
22136 { $as_echo "$as_me:$LINENO: result: yes" >&5
22137 $as_echo "yes" >&6; }
22138
22139 cat >>confdefs.h <<\_ACEOF
22140 #define HAVE_D_MAKE_ROOT 1
22141 _ACEOF
22142
22143
22144 fi
22145
22146
22147
22148
22149 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
22150 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
22151 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
22152 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22153 rc=$?
22154 if test $rc -ne 0; then
22155
22156 export=0
22157 for file in fs/dcache.c; do
22158 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
22159 rc=$?
22160 if test $rc -eq 0; then
22161
22162 export=1
22163 break;
22164
22165 fi
22166
22167 done
22168 if test $export -eq 0; then
22169
22170 { $as_echo "$as_me:$LINENO: result: no" >&5
22171 $as_echo "no" >&6; }
22172
22173
22174 else
22175
22176 { $as_echo "$as_me:$LINENO: result: yes" >&5
22177 $as_echo "yes" >&6; }
22178
22179 cat >>confdefs.h <<\_ACEOF
22180 #define HAVE_D_OBTAIN_ALIAS 1
22181 _ACEOF
22182
22183
22184 fi
22185
22186
22187 else
22188
22189 { $as_echo "$as_me:$LINENO: result: yes" >&5
22190 $as_echo "yes" >&6; }
22191
22192 cat >>confdefs.h <<\_ACEOF
22193 #define HAVE_D_OBTAIN_ALIAS 1
22194 _ACEOF
22195
22196
22197 fi
22198
22199
22200
22201
22202 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
22203 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
22204 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
22205 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22206 rc=$?
22207 if test $rc -ne 0; then
22208
22209 export=0
22210 for file in fs/block_dev.c; do
22211 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
22212 rc=$?
22213 if test $rc -eq 0; then
22214
22215 export=1
22216 break;
22217
22218 fi
22219
22220 done
22221 if test $export -eq 0; then
22222
22223 { $as_echo "$as_me:$LINENO: result: no" >&5
22224 $as_echo "no" >&6; }
22225
22226
22227 else
22228
22229 { $as_echo "$as_me:$LINENO: result: yes" >&5
22230 $as_echo "yes" >&6; }
22231
22232 cat >>confdefs.h <<\_ACEOF
22233 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
22234 _ACEOF
22235
22236
22237 fi
22238
22239
22240 else
22241
22242 { $as_echo "$as_me:$LINENO: result: yes" >&5
22243 $as_echo "yes" >&6; }
22244
22245 cat >>confdefs.h <<\_ACEOF
22246 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
22247 _ACEOF
22248
22249
22250 fi
22251
22252
22253
22254
22255 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
22256 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
22257 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
22258 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22259 rc=$?
22260 if test $rc -ne 0; then
22261
22262 export=0
22263 for file in mm/truncate.c; do
22264 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
22265 rc=$?
22266 if test $rc -eq 0; then
22267
22268 export=1
22269 break;
22270
22271 fi
22272
22273 done
22274 if test $export -eq 0; then
22275
22276 { $as_echo "$as_me:$LINENO: result: no" >&5
22277 $as_echo "no" >&6; }
22278
22279
22280 else
22281
22282 { $as_echo "$as_me:$LINENO: result: yes" >&5
22283 $as_echo "yes" >&6; }
22284
22285 cat >>confdefs.h <<\_ACEOF
22286 #define HAVE_TRUNCATE_SETSIZE 1
22287 _ACEOF
22288
22289
22290 fi
22291
22292
22293 else
22294
22295 { $as_echo "$as_me:$LINENO: result: yes" >&5
22296 $as_echo "yes" >&6; }
22297
22298 cat >>confdefs.h <<\_ACEOF
22299 #define HAVE_TRUNCATE_SETSIZE 1
22300 _ACEOF
22301
22302
22303 fi
22304
22305
22306
22307
22308 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
22309 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
22310 tmp_flags="$EXTRA_KCFLAGS"
22311 EXTRA_KCFLAGS="-Werror"
22312
22313
22314 cat confdefs.h - <<_ACEOF >conftest.c
22315 /* confdefs.h. */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22320
22321
22322 #include <linux/security.h>
22323
22324 int
22325 main (void)
22326 {
22327
22328 struct inode *ip __attribute__ ((unused)) = NULL;
22329 struct inode *dip __attribute__ ((unused)) = NULL;
22330 const struct qstr *str __attribute__ ((unused)) = NULL;
22331 char *name __attribute__ ((unused)) = NULL;
22332 void *value __attribute__ ((unused)) = NULL;
22333 size_t len __attribute__ ((unused)) = 0;
22334
22335 security_inode_init_security(ip, dip, str, &name, &value, &len);
22336
22337 ;
22338 return 0;
22339 }
22340
22341 _ACEOF
22342
22343
22344 rm -Rf build && mkdir -p build
22345 echo "obj-m := conftest.o" >build/Makefile
22346 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'
22347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348 (eval $ac_try) 2>&5
22349 ac_status=$?
22350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353 (eval $ac_try) 2>&5
22354 ac_status=$?
22355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); }; }; then
22357
22358 { $as_echo "$as_me:$LINENO: result: yes" >&5
22359 $as_echo "yes" >&6; }
22360
22361 cat >>confdefs.h <<\_ACEOF
22362 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
22363 _ACEOF
22364
22365
22366 else
22367 $as_echo "$as_me: failed program was:" >&5
22368 sed 's/^/| /' conftest.$ac_ext >&5
22369
22370 { $as_echo "$as_me:$LINENO: result: no" >&5
22371 $as_echo "no" >&6; }
22372
22373
22374
22375 fi
22376
22377 rm -Rf build
22378
22379
22380 EXTRA_KCFLAGS="$tmp_flags"
22381
22382
22383 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
22384 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
22385 tmp_flags="$EXTRA_KCFLAGS"
22386 EXTRA_KCFLAGS="-Werror"
22387
22388
22389 cat confdefs.h - <<_ACEOF >conftest.c
22390 /* confdefs.h. */
22391 _ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h. */
22395
22396
22397 #include <linux/security.h>
22398
22399 int
22400 main (void)
22401 {
22402
22403 struct inode *ip __attribute__ ((unused)) = NULL;
22404 struct inode *dip __attribute__ ((unused)) = NULL;
22405 const struct qstr *str __attribute__ ((unused)) = NULL;
22406 initxattrs func __attribute__ ((unused)) = NULL;
22407
22408 security_inode_init_security(ip, dip, str, func, NULL);
22409
22410 ;
22411 return 0;
22412 }
22413
22414 _ACEOF
22415
22416
22417 rm -Rf build && mkdir -p build
22418 echo "obj-m := conftest.o" >build/Makefile
22419 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'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
22430
22431 { $as_echo "$as_me:$LINENO: result: yes" >&5
22432 $as_echo "yes" >&6; }
22433
22434 cat >>confdefs.h <<\_ACEOF
22435 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
22436 _ACEOF
22437
22438
22439 else
22440 $as_echo "$as_me: failed program was:" >&5
22441 sed 's/^/| /' conftest.$ac_ext >&5
22442
22443 { $as_echo "$as_me:$LINENO: result: no" >&5
22444 $as_echo "no" >&6; }
22445
22446
22447
22448 fi
22449
22450 rm -Rf build
22451
22452
22453 EXTRA_KCFLAGS="$tmp_flags"
22454
22455
22456 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
22457 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
22458 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
22459 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22460 rc=$?
22461 if test $rc -ne 0; then
22462
22463 export=0
22464 for file in fs/super.c; do
22465 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
22466 rc=$?
22467 if test $rc -eq 0; then
22468
22469 export=1
22470 break;
22471
22472 fi
22473
22474 done
22475 if test $export -eq 0; then
22476
22477 { $as_echo "$as_me:$LINENO: result: no" >&5
22478 $as_echo "no" >&6; }
22479
22480
22481 else
22482
22483 { $as_echo "$as_me:$LINENO: result: yes" >&5
22484 $as_echo "yes" >&6; }
22485
22486 cat >>confdefs.h <<\_ACEOF
22487 #define HAVE_MOUNT_NODEV 1
22488 _ACEOF
22489
22490
22491 fi
22492
22493
22494 else
22495
22496 { $as_echo "$as_me:$LINENO: result: yes" >&5
22497 $as_echo "yes" >&6; }
22498
22499 cat >>confdefs.h <<\_ACEOF
22500 #define HAVE_MOUNT_NODEV 1
22501 _ACEOF
22502
22503
22504 fi
22505
22506
22507
22508
22509 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
22510 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
22511
22512
22513 cat confdefs.h - <<_ACEOF >conftest.c
22514 /* confdefs.h. */
22515 _ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h. */
22519
22520
22521 #include <linux/fs.h>
22522
22523 int
22524 main (void)
22525 {
22526
22527 int (*shrink)(struct shrinker *, struct shrink_control *sc)
22528 __attribute__ ((unused)) = NULL;
22529 struct super_block sb __attribute__ ((unused)) = {
22530 .s_shrink.shrink = shrink,
22531 .s_shrink.seeks = DEFAULT_SEEKS,
22532 .s_shrink.batch = 0,
22533 };
22534
22535 ;
22536 return 0;
22537 }
22538
22539 _ACEOF
22540
22541
22542 rm -Rf build && mkdir -p build
22543 echo "obj-m := conftest.o" >build/Makefile
22544 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'
22545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22546 (eval $ac_try) 2>&5
22547 ac_status=$?
22548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22551 (eval $ac_try) 2>&5
22552 ac_status=$?
22553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); }; }; then
22555
22556 { $as_echo "$as_me:$LINENO: result: yes" >&5
22557 $as_echo "yes" >&6; }
22558
22559 cat >>confdefs.h <<\_ACEOF
22560 #define HAVE_SHRINK 1
22561 _ACEOF
22562
22563
22564
22565 else
22566 $as_echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22568
22569 { $as_echo "$as_me:$LINENO: result: no" >&5
22570 $as_echo "no" >&6; }
22571
22572
22573
22574 fi
22575
22576 rm -Rf build
22577
22578
22579
22580
22581 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
22582 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
22583
22584
22585 cat confdefs.h - <<_ACEOF >conftest.c
22586 /* confdefs.h. */
22587 _ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591
22592
22593 #include <linux/fs.h>
22594
22595 int
22596 main (void)
22597 {
22598
22599 struct super_block sb __attribute__ ((unused));
22600 sb.s_bdi = NULL;
22601
22602 ;
22603 return 0;
22604 }
22605
22606 _ACEOF
22607
22608
22609 rm -Rf build && mkdir -p build
22610 echo "obj-m := conftest.o" >build/Makefile
22611 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'
22612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613 (eval $ac_try) 2>&5
22614 ac_status=$?
22615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618 (eval $ac_try) 2>&5
22619 ac_status=$?
22620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); }; }; then
22622
22623 { $as_echo "$as_me:$LINENO: result: yes" >&5
22624 $as_echo "yes" >&6; }
22625
22626 cat >>confdefs.h <<\_ACEOF
22627 #define HAVE_BDI 1
22628 _ACEOF
22629
22630
22631 else
22632 $as_echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22634
22635 { $as_echo "$as_me:$LINENO: result: no" >&5
22636 $as_echo "no" >&6; }
22637
22638
22639
22640 fi
22641
22642 rm -Rf build
22643
22644
22645
22646
22647 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
22648 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
22649 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
22650 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22651 rc=$?
22652 if test $rc -ne 0; then
22653
22654 export=0
22655 for file in mm/backing-dev.c; do
22656 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
22657 rc=$?
22658 if test $rc -eq 0; then
22659
22660 export=1
22661 break;
22662
22663 fi
22664
22665 done
22666 if test $export -eq 0; then
22667
22668 { $as_echo "$as_me:$LINENO: result: no" >&5
22669 $as_echo "no" >&6; }
22670
22671
22672 else
22673
22674 { $as_echo "$as_me:$LINENO: result: yes" >&5
22675 $as_echo "yes" >&6; }
22676
22677 cat >>confdefs.h <<\_ACEOF
22678 #define HAVE_BDI_SETUP_AND_REGISTER 1
22679 _ACEOF
22680
22681
22682 fi
22683
22684
22685 else
22686
22687 { $as_echo "$as_me:$LINENO: result: yes" >&5
22688 $as_echo "yes" >&6; }
22689
22690 cat >>confdefs.h <<\_ACEOF
22691 #define HAVE_BDI_SETUP_AND_REGISTER 1
22692 _ACEOF
22693
22694
22695 fi
22696
22697
22698
22699
22700 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
22701 $as_echo_n "checking whether set_nlink() is available... " >&6; }
22702
22703
22704 cat confdefs.h - <<_ACEOF >conftest.c
22705 /* confdefs.h. */
22706 _ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h. */
22710
22711
22712 #include <linux/fs.h>
22713
22714 int
22715 main (void)
22716 {
22717
22718 struct inode node;
22719 unsigned int link = 0;
22720 (void) set_nlink(&node, link);
22721
22722 ;
22723 return 0;
22724 }
22725
22726 _ACEOF
22727
22728
22729 rm -Rf build && mkdir -p build
22730 echo "obj-m := conftest.o" >build/Makefile
22731 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'
22732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733 (eval $ac_try) 2>&5
22734 ac_status=$?
22735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22738 (eval $ac_try) 2>&5
22739 ac_status=$?
22740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); }; }; then
22742
22743 { $as_echo "$as_me:$LINENO: result: yes" >&5
22744 $as_echo "yes" >&6; }
22745
22746 cat >>confdefs.h <<\_ACEOF
22747 #define HAVE_SET_NLINK 1
22748 _ACEOF
22749
22750
22751 else
22752 $as_echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22754
22755 { $as_echo "$as_me:$LINENO: result: no" >&5
22756 $as_echo "no" >&6; }
22757
22758
22759
22760 fi
22761
22762 rm -Rf build
22763
22764
22765
22766
22767 if test "$LINUX_OBJ" != "$LINUX"; then
22768
22769 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
22770
22771 fi
22772
22773
22774
22775
22776 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
22777 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
22778 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
22779
22780
22781
22782
22783
22784
22785 # Check whether --with-udevdir was given.
22786 if test "${with_udevdir+set}" = set; then
22787 withval=$with_udevdir; udevdir=$withval
22788 else
22789 udevdir='${exec_prefix}/lib/udev'
22790 fi
22791
22792
22793
22794 # Check whether --with-udevruledir was given.
22795 if test "${with_udevruledir+set}" = set; then
22796 withval=$with_udevruledir; udevruledir=$withval
22797 else
22798 udevruledir='${udevdir}/rules.d'
22799 fi
22800
22801
22802
22803
22804
22805
22806 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
22807 $as_echo_n "checking for target asm dir... " >&6; }
22808 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
22809
22810 case $TARGET_ARCH in
22811 i386|x86_64)
22812 TARGET_ASM_DIR=asm-${TARGET_ARCH}
22813 ;;
22814 *)
22815 TARGET_ASM_DIR=asm-generic
22816 ;;
22817 esac
22818
22819
22820 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
22821 $as_echo "$TARGET_ASM_DIR" >&6; }
22822
22823
22824 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
22825 $as_echo_n "checking for ioctl()... " >&6; }
22826 cat >conftest.$ac_ext <<_ACEOF
22827 /* confdefs.h. */
22828 _ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h. */
22832 #include <unistd.h>
22833
22834 _ACEOF
22835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22836 $EGREP "ioctl" >/dev/null 2>&1; then
22837 is_unistd=yes
22838 else
22839 is_unistd=no
22840 fi
22841 rm -f conftest*
22842
22843 cat >conftest.$ac_ext <<_ACEOF
22844 /* confdefs.h. */
22845 _ACEOF
22846 cat confdefs.h >>conftest.$ac_ext
22847 cat >>conftest.$ac_ext <<_ACEOF
22848 /* end confdefs.h. */
22849 #include <sys/ioctl.h>
22850
22851 _ACEOF
22852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22853 $EGREP "ioctl" >/dev/null 2>&1; then
22854 is_sys_ioctl=yes
22855 else
22856 is_sys_ioctl=no
22857 fi
22858 rm -f conftest*
22859
22860 cat >conftest.$ac_ext <<_ACEOF
22861 /* confdefs.h. */
22862 _ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h. */
22866 #include <stropts.h>
22867
22868 _ACEOF
22869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22870 $EGREP "ioctl" >/dev/null 2>&1; then
22871 is_stropts=yes
22872 else
22873 is_stropts=no
22874 fi
22875 rm -f conftest*
22876
22877
22878 if test $is_unistd = yes; then
22879 result=unistd.h
22880
22881 cat >>confdefs.h <<\_ACEOF
22882 #define HAVE_IOCTL_IN_UNISTD_H 1
22883 _ACEOF
22884
22885 else
22886
22887 if test $is_sys_ioctl = yes; then
22888 result=sys/ioctl.h
22889
22890 cat >>confdefs.h <<\_ACEOF
22891 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
22892 _ACEOF
22893
22894 elif test $is_stropts = yes; then
22895
22896 cat >>confdefs.h <<\_ACEOF
22897 #define HAVE_IOCTL_IN_STROPTS_H 1
22898 _ACEOF
22899
22900 else
22901 result=no
22902 fi
22903 fi
22904
22905 if test $result = no; then
22906 { $as_echo "$as_me:$LINENO: result: no" >&5
22907 $as_echo "no" >&6; }
22908 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
22909 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
22910 { (exit 1); exit 1; }; }
22911 else
22912 { $as_echo "$as_me:$LINENO: result: yes" >&5
22913 $as_echo "yes" >&6; }
22914 fi
22915
22916
22917 ZLIB=
22918
22919 if test "${ac_cv_header_zlib_h+set}" = set; then
22920 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
22921 $as_echo_n "checking for zlib.h... " >&6; }
22922 if test "${ac_cv_header_zlib_h+set}" = set; then
22923 $as_echo_n "(cached) " >&6
22924 fi
22925 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22926 $as_echo "$ac_cv_header_zlib_h" >&6; }
22927 else
22928 # Is the header compilable?
22929 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
22930 $as_echo_n "checking zlib.h usability... " >&6; }
22931 cat >conftest.$ac_ext <<_ACEOF
22932 /* confdefs.h. */
22933 _ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h. */
22937 $ac_includes_default
22938 #include <zlib.h>
22939 _ACEOF
22940 rm -f conftest.$ac_objext
22941 if { (ac_try="$ac_compile"
22942 case "(($ac_try" in
22943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22944 *) ac_try_echo=$ac_try;;
22945 esac
22946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22947 $as_echo "$ac_try_echo") >&5
22948 (eval "$ac_compile") 2>conftest.er1
22949 ac_status=$?
22950 grep -v '^ *+' conftest.er1 >conftest.err
22951 rm -f conftest.er1
22952 cat conftest.err >&5
22953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } && {
22955 test -z "$ac_c_werror_flag" ||
22956 test ! -s conftest.err
22957 } && test -s conftest.$ac_objext; then
22958 ac_header_compiler=yes
22959 else
22960 $as_echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22962
22963 ac_header_compiler=no
22964 fi
22965
22966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22967 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22968 $as_echo "$ac_header_compiler" >&6; }
22969
22970 # Is the header present?
22971 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
22972 $as_echo_n "checking zlib.h presence... " >&6; }
22973 cat >conftest.$ac_ext <<_ACEOF
22974 /* confdefs.h. */
22975 _ACEOF
22976 cat confdefs.h >>conftest.$ac_ext
22977 cat >>conftest.$ac_ext <<_ACEOF
22978 /* end confdefs.h. */
22979 #include <zlib.h>
22980 _ACEOF
22981 if { (ac_try="$ac_cpp conftest.$ac_ext"
22982 case "(($ac_try" in
22983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984 *) ac_try_echo=$ac_try;;
22985 esac
22986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22987 $as_echo "$ac_try_echo") >&5
22988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22989 ac_status=$?
22990 grep -v '^ *+' conftest.er1 >conftest.err
22991 rm -f conftest.er1
22992 cat conftest.err >&5
22993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } >/dev/null && {
22995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22996 test ! -s conftest.err
22997 }; then
22998 ac_header_preproc=yes
22999 else
23000 $as_echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23002
23003 ac_header_preproc=no
23004 fi
23005
23006 rm -f conftest.err conftest.$ac_ext
23007 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23008 $as_echo "$ac_header_preproc" >&6; }
23009
23010 # So? What about this header?
23011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23012 yes:no: )
23013 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23014 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23015 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
23016 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
23017 ac_header_preproc=yes
23018 ;;
23019 no:yes:* )
23020 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
23021 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
23022 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
23023 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
23024 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
23025 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
23026 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
23027 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
23028 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
23029 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
23030 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
23031 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
23032
23033 ;;
23034 esac
23035 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
23036 $as_echo_n "checking for zlib.h... " >&6; }
23037 if test "${ac_cv_header_zlib_h+set}" = set; then
23038 $as_echo_n "(cached) " >&6
23039 else
23040 ac_cv_header_zlib_h=$ac_header_preproc
23041 fi
23042 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23043 $as_echo "$ac_cv_header_zlib_h" >&6; }
23044
23045 fi
23046 if test "x$ac_cv_header_zlib_h" = x""yes; then
23047 :
23048 else
23049 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23051 { { $as_echo "$as_me:$LINENO: error:
23052 *** zlib.h missing, zlib-devel package required
23053 See \`config.log' for more details." >&5
23054 $as_echo "$as_me: error:
23055 *** zlib.h missing, zlib-devel package required
23056 See \`config.log' for more details." >&2;}
23057 { (exit 1); exit 1; }; }; }
23058 fi
23059
23060
23061
23062
23063 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
23064 $as_echo_n "checking for compress2 in -lz... " >&6; }
23065 if test "${ac_cv_lib_z_compress2+set}" = set; then
23066 $as_echo_n "(cached) " >&6
23067 else
23068 ac_check_lib_save_LIBS=$LIBS
23069 LIBS="-lz $LIBS"
23070 cat >conftest.$ac_ext <<_ACEOF
23071 /* confdefs.h. */
23072 _ACEOF
23073 cat confdefs.h >>conftest.$ac_ext
23074 cat >>conftest.$ac_ext <<_ACEOF
23075 /* end confdefs.h. */
23076
23077 /* Override any GCC internal prototype to avoid an error.
23078 Use char because int might match the return type of a GCC
23079 builtin and then its argument prototype would still apply. */
23080 #ifdef __cplusplus
23081 extern "C"
23082 #endif
23083 char compress2 ();
23084 int
23085 main ()
23086 {
23087 return compress2 ();
23088 ;
23089 return 0;
23090 }
23091 _ACEOF
23092 rm -f conftest.$ac_objext conftest$ac_exeext
23093 if { (ac_try="$ac_link"
23094 case "(($ac_try" in
23095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096 *) ac_try_echo=$ac_try;;
23097 esac
23098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23099 $as_echo "$ac_try_echo") >&5
23100 (eval "$ac_link") 2>conftest.er1
23101 ac_status=$?
23102 grep -v '^ *+' conftest.er1 >conftest.err
23103 rm -f conftest.er1
23104 cat conftest.err >&5
23105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); } && {
23107 test -z "$ac_c_werror_flag" ||
23108 test ! -s conftest.err
23109 } && test -s conftest$ac_exeext && {
23110 test "$cross_compiling" = yes ||
23111 $as_test_x conftest$ac_exeext
23112 }; then
23113 ac_cv_lib_z_compress2=yes
23114 else
23115 $as_echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23117
23118 ac_cv_lib_z_compress2=no
23119 fi
23120
23121 rm -rf conftest.dSYM
23122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23123 conftest$ac_exeext conftest.$ac_ext
23124 LIBS=$ac_check_lib_save_LIBS
23125 fi
23126 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
23127 $as_echo "$ac_cv_lib_z_compress2" >&6; }
23128 if test "x$ac_cv_lib_z_compress2" = x""yes; then
23129 cat >>confdefs.h <<_ACEOF
23130 #define HAVE_LIBZ 1
23131 _ACEOF
23132
23133 LIBS="-lz $LIBS"
23134
23135 else
23136 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23138 { { $as_echo "$as_me:$LINENO: error:
23139 *** compress2() missing, zlib-devel package required
23140 See \`config.log' for more details." >&5
23141 $as_echo "$as_me: error:
23142 *** compress2() missing, zlib-devel package required
23143 See \`config.log' for more details." >&2;}
23144 { (exit 1); exit 1; }; }; }
23145 fi
23146
23147
23148
23149 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
23150 $as_echo_n "checking for uncompress in -lz... " >&6; }
23151 if test "${ac_cv_lib_z_uncompress+set}" = set; then
23152 $as_echo_n "(cached) " >&6
23153 else
23154 ac_check_lib_save_LIBS=$LIBS
23155 LIBS="-lz $LIBS"
23156 cat >conftest.$ac_ext <<_ACEOF
23157 /* confdefs.h. */
23158 _ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h. */
23162
23163 /* Override any GCC internal prototype to avoid an error.
23164 Use char because int might match the return type of a GCC
23165 builtin and then its argument prototype would still apply. */
23166 #ifdef __cplusplus
23167 extern "C"
23168 #endif
23169 char uncompress ();
23170 int
23171 main ()
23172 {
23173 return uncompress ();
23174 ;
23175 return 0;
23176 }
23177 _ACEOF
23178 rm -f conftest.$ac_objext conftest$ac_exeext
23179 if { (ac_try="$ac_link"
23180 case "(($ac_try" in
23181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23182 *) ac_try_echo=$ac_try;;
23183 esac
23184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23185 $as_echo "$ac_try_echo") >&5
23186 (eval "$ac_link") 2>conftest.er1
23187 ac_status=$?
23188 grep -v '^ *+' conftest.er1 >conftest.err
23189 rm -f conftest.er1
23190 cat conftest.err >&5
23191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); } && {
23193 test -z "$ac_c_werror_flag" ||
23194 test ! -s conftest.err
23195 } && test -s conftest$ac_exeext && {
23196 test "$cross_compiling" = yes ||
23197 $as_test_x conftest$ac_exeext
23198 }; then
23199 ac_cv_lib_z_uncompress=yes
23200 else
23201 $as_echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23203
23204 ac_cv_lib_z_uncompress=no
23205 fi
23206
23207 rm -rf conftest.dSYM
23208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23209 conftest$ac_exeext conftest.$ac_ext
23210 LIBS=$ac_check_lib_save_LIBS
23211 fi
23212 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
23213 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
23214 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
23215 cat >>confdefs.h <<_ACEOF
23216 #define HAVE_LIBZ 1
23217 _ACEOF
23218
23219 LIBS="-lz $LIBS"
23220
23221 else
23222 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23224 { { $as_echo "$as_me:$LINENO: error:
23225 *** uncompress() missing, zlib-devel package required
23226 See \`config.log' for more details." >&5
23227 $as_echo "$as_me: error:
23228 *** uncompress() missing, zlib-devel package required
23229 See \`config.log' for more details." >&2;}
23230 { (exit 1); exit 1; }; }; }
23231 fi
23232
23233
23234
23235 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
23236 $as_echo_n "checking for crc32 in -lz... " >&6; }
23237 if test "${ac_cv_lib_z_crc32+set}" = set; then
23238 $as_echo_n "(cached) " >&6
23239 else
23240 ac_check_lib_save_LIBS=$LIBS
23241 LIBS="-lz $LIBS"
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h. */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23248
23249 /* Override any GCC internal prototype to avoid an error.
23250 Use char because int might match the return type of a GCC
23251 builtin and then its argument prototype would still apply. */
23252 #ifdef __cplusplus
23253 extern "C"
23254 #endif
23255 char crc32 ();
23256 int
23257 main ()
23258 {
23259 return crc32 ();
23260 ;
23261 return 0;
23262 }
23263 _ACEOF
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (ac_try="$ac_link"
23266 case "(($ac_try" in
23267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23268 *) ac_try_echo=$ac_try;;
23269 esac
23270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23271 $as_echo "$ac_try_echo") >&5
23272 (eval "$ac_link") 2>conftest.er1
23273 ac_status=$?
23274 grep -v '^ *+' conftest.er1 >conftest.err
23275 rm -f conftest.er1
23276 cat conftest.err >&5
23277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); } && {
23279 test -z "$ac_c_werror_flag" ||
23280 test ! -s conftest.err
23281 } && test -s conftest$ac_exeext && {
23282 test "$cross_compiling" = yes ||
23283 $as_test_x conftest$ac_exeext
23284 }; then
23285 ac_cv_lib_z_crc32=yes
23286 else
23287 $as_echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23289
23290 ac_cv_lib_z_crc32=no
23291 fi
23292
23293 rm -rf conftest.dSYM
23294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23295 conftest$ac_exeext conftest.$ac_ext
23296 LIBS=$ac_check_lib_save_LIBS
23297 fi
23298 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
23299 $as_echo "$ac_cv_lib_z_crc32" >&6; }
23300 if test "x$ac_cv_lib_z_crc32" = x""yes; then
23301 cat >>confdefs.h <<_ACEOF
23302 #define HAVE_LIBZ 1
23303 _ACEOF
23304
23305 LIBS="-lz $LIBS"
23306
23307 else
23308 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23310 { { $as_echo "$as_me:$LINENO: error:
23311 *** crc32() missing, zlib-devel package required
23312 See \`config.log' for more details." >&5
23313 $as_echo "$as_me: error:
23314 *** crc32() missing, zlib-devel package required
23315 See \`config.log' for more details." >&2;}
23316 { (exit 1); exit 1; }; }; }
23317 fi
23318
23319
23320 ZLIB="-lz"
23321
23322
23323 cat >>confdefs.h <<\_ACEOF
23324 #define HAVE_ZLIB 1
23325 _ACEOF
23326
23327
23328
23329 LIBUUID=
23330
23331 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
23332 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
23333 $as_echo_n "checking for uuid/uuid.h... " >&6; }
23334 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
23335 $as_echo_n "(cached) " >&6
23336 fi
23337 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
23338 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
23339 else
23340 # Is the header compilable?
23341 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
23342 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
23343 cat >conftest.$ac_ext <<_ACEOF
23344 /* confdefs.h. */
23345 _ACEOF
23346 cat confdefs.h >>conftest.$ac_ext
23347 cat >>conftest.$ac_ext <<_ACEOF
23348 /* end confdefs.h. */
23349 $ac_includes_default
23350 #include <uuid/uuid.h>
23351 _ACEOF
23352 rm -f conftest.$ac_objext
23353 if { (ac_try="$ac_compile"
23354 case "(($ac_try" in
23355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356 *) ac_try_echo=$ac_try;;
23357 esac
23358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23359 $as_echo "$ac_try_echo") >&5
23360 (eval "$ac_compile") 2>conftest.er1
23361 ac_status=$?
23362 grep -v '^ *+' conftest.er1 >conftest.err
23363 rm -f conftest.er1
23364 cat conftest.err >&5
23365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); } && {
23367 test -z "$ac_c_werror_flag" ||
23368 test ! -s conftest.err
23369 } && test -s conftest.$ac_objext; then
23370 ac_header_compiler=yes
23371 else
23372 $as_echo "$as_me: failed program was:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23374
23375 ac_header_compiler=no
23376 fi
23377
23378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23379 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23380 $as_echo "$ac_header_compiler" >&6; }
23381
23382 # Is the header present?
23383 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
23384 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
23385 cat >conftest.$ac_ext <<_ACEOF
23386 /* confdefs.h. */
23387 _ACEOF
23388 cat confdefs.h >>conftest.$ac_ext
23389 cat >>conftest.$ac_ext <<_ACEOF
23390 /* end confdefs.h. */
23391 #include <uuid/uuid.h>
23392 _ACEOF
23393 if { (ac_try="$ac_cpp conftest.$ac_ext"
23394 case "(($ac_try" in
23395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23396 *) ac_try_echo=$ac_try;;
23397 esac
23398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23399 $as_echo "$ac_try_echo") >&5
23400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23401 ac_status=$?
23402 grep -v '^ *+' conftest.er1 >conftest.err
23403 rm -f conftest.er1
23404 cat conftest.err >&5
23405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); } >/dev/null && {
23407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23408 test ! -s conftest.err
23409 }; then
23410 ac_header_preproc=yes
23411 else
23412 $as_echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23414
23415 ac_header_preproc=no
23416 fi
23417
23418 rm -f conftest.err conftest.$ac_ext
23419 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23420 $as_echo "$ac_header_preproc" >&6; }
23421
23422 # So? What about this header?
23423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23424 yes:no: )
23425 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23426 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23427 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
23428 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
23429 ac_header_preproc=yes
23430 ;;
23431 no:yes:* )
23432 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
23433 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
23434 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
23435 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
23436 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
23437 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
23438 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
23439 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23440 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
23441 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
23442 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
23443 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
23444
23445 ;;
23446 esac
23447 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
23448 $as_echo_n "checking for uuid/uuid.h... " >&6; }
23449 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
23450 $as_echo_n "(cached) " >&6
23451 else
23452 ac_cv_header_uuid_uuid_h=$ac_header_preproc
23453 fi
23454 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
23455 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
23456
23457 fi
23458 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
23459 :
23460 else
23461 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23463 { { $as_echo "$as_me:$LINENO: error:
23464 *** uuid/uuid.h missing, libuuid-devel package required
23465 See \`config.log' for more details." >&5
23466 $as_echo "$as_me: error:
23467 *** uuid/uuid.h missing, libuuid-devel package required
23468 See \`config.log' for more details." >&2;}
23469 { (exit 1); exit 1; }; }; }
23470 fi
23471
23472
23473
23474
23475 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
23476 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
23477 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
23478 $as_echo_n "(cached) " >&6
23479 else
23480 ac_check_lib_save_LIBS=$LIBS
23481 LIBS="-luuid $LIBS"
23482 cat >conftest.$ac_ext <<_ACEOF
23483 /* confdefs.h. */
23484 _ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h. */
23488
23489 /* Override any GCC internal prototype to avoid an error.
23490 Use char because int might match the return type of a GCC
23491 builtin and then its argument prototype would still apply. */
23492 #ifdef __cplusplus
23493 extern "C"
23494 #endif
23495 char uuid_generate ();
23496 int
23497 main ()
23498 {
23499 return uuid_generate ();
23500 ;
23501 return 0;
23502 }
23503 _ACEOF
23504 rm -f conftest.$ac_objext conftest$ac_exeext
23505 if { (ac_try="$ac_link"
23506 case "(($ac_try" in
23507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508 *) ac_try_echo=$ac_try;;
23509 esac
23510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23511 $as_echo "$ac_try_echo") >&5
23512 (eval "$ac_link") 2>conftest.er1
23513 ac_status=$?
23514 grep -v '^ *+' conftest.er1 >conftest.err
23515 rm -f conftest.er1
23516 cat conftest.err >&5
23517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518 (exit $ac_status); } && {
23519 test -z "$ac_c_werror_flag" ||
23520 test ! -s conftest.err
23521 } && test -s conftest$ac_exeext && {
23522 test "$cross_compiling" = yes ||
23523 $as_test_x conftest$ac_exeext
23524 }; then
23525 ac_cv_lib_uuid_uuid_generate=yes
23526 else
23527 $as_echo "$as_me: failed program was:" >&5
23528 sed 's/^/| /' conftest.$ac_ext >&5
23529
23530 ac_cv_lib_uuid_uuid_generate=no
23531 fi
23532
23533 rm -rf conftest.dSYM
23534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23535 conftest$ac_exeext conftest.$ac_ext
23536 LIBS=$ac_check_lib_save_LIBS
23537 fi
23538 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
23539 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
23540 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
23541 cat >>confdefs.h <<_ACEOF
23542 #define HAVE_LIBUUID 1
23543 _ACEOF
23544
23545 LIBS="-luuid $LIBS"
23546
23547 else
23548 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23550 { { $as_echo "$as_me:$LINENO: error:
23551 *** uuid_generate() missing, libuuid-devel package required
23552 See \`config.log' for more details." >&5
23553 $as_echo "$as_me: error:
23554 *** uuid_generate() missing, libuuid-devel package required
23555 See \`config.log' for more details." >&2;}
23556 { (exit 1); exit 1; }; }; }
23557 fi
23558
23559
23560
23561 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
23562 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
23563 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
23564 $as_echo_n "(cached) " >&6
23565 else
23566 ac_check_lib_save_LIBS=$LIBS
23567 LIBS="-luuid $LIBS"
23568 cat >conftest.$ac_ext <<_ACEOF
23569 /* confdefs.h. */
23570 _ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h. */
23574
23575 /* Override any GCC internal prototype to avoid an error.
23576 Use char because int might match the return type of a GCC
23577 builtin and then its argument prototype would still apply. */
23578 #ifdef __cplusplus
23579 extern "C"
23580 #endif
23581 char uuid_is_null ();
23582 int
23583 main ()
23584 {
23585 return uuid_is_null ();
23586 ;
23587 return 0;
23588 }
23589 _ACEOF
23590 rm -f conftest.$ac_objext conftest$ac_exeext
23591 if { (ac_try="$ac_link"
23592 case "(($ac_try" in
23593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23594 *) ac_try_echo=$ac_try;;
23595 esac
23596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23597 $as_echo "$ac_try_echo") >&5
23598 (eval "$ac_link") 2>conftest.er1
23599 ac_status=$?
23600 grep -v '^ *+' conftest.er1 >conftest.err
23601 rm -f conftest.er1
23602 cat conftest.err >&5
23603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); } && {
23605 test -z "$ac_c_werror_flag" ||
23606 test ! -s conftest.err
23607 } && test -s conftest$ac_exeext && {
23608 test "$cross_compiling" = yes ||
23609 $as_test_x conftest$ac_exeext
23610 }; then
23611 ac_cv_lib_uuid_uuid_is_null=yes
23612 else
23613 $as_echo "$as_me: failed program was:" >&5
23614 sed 's/^/| /' conftest.$ac_ext >&5
23615
23616 ac_cv_lib_uuid_uuid_is_null=no
23617 fi
23618
23619 rm -rf conftest.dSYM
23620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23621 conftest$ac_exeext conftest.$ac_ext
23622 LIBS=$ac_check_lib_save_LIBS
23623 fi
23624 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
23625 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
23626 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
23627 cat >>confdefs.h <<_ACEOF
23628 #define HAVE_LIBUUID 1
23629 _ACEOF
23630
23631 LIBS="-luuid $LIBS"
23632
23633 else
23634 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23636 { { $as_echo "$as_me:$LINENO: error:
23637 *** uuid_is_null() missing, libuuid-devel package required
23638 See \`config.log' for more details." >&5
23639 $as_echo "$as_me: error:
23640 *** uuid_is_null() missing, libuuid-devel package required
23641 See \`config.log' for more details." >&2;}
23642 { (exit 1); exit 1; }; }; }
23643 fi
23644
23645
23646 LIBUUID="-luuid"
23647
23648
23649 cat >>confdefs.h <<\_ACEOF
23650 #define HAVE_LIBUUID 1
23651 _ACEOF
23652
23653
23654
23655
23656 # Check whether --with-blkid was given.
23657 if test "${with_blkid+set}" = set; then
23658 withval=$with_blkid;
23659 else
23660 with_blkid=check
23661 fi
23662
23663
23664 LIBBLKID=
23665 if test "x$with_blkid" != xno; then
23666
23667 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
23668 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
23669 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
23670 $as_echo_n "(cached) " >&6
23671 else
23672 ac_check_lib_save_LIBS=$LIBS
23673 LIBS="-lblkid $LIBS"
23674 cat >conftest.$ac_ext <<_ACEOF
23675 /* confdefs.h. */
23676 _ACEOF
23677 cat confdefs.h >>conftest.$ac_ext
23678 cat >>conftest.$ac_ext <<_ACEOF
23679 /* end confdefs.h. */
23680
23681 /* Override any GCC internal prototype to avoid an error.
23682 Use char because int might match the return type of a GCC
23683 builtin and then its argument prototype would still apply. */
23684 #ifdef __cplusplus
23685 extern "C"
23686 #endif
23687 char blkid_get_cache ();
23688 int
23689 main ()
23690 {
23691 return blkid_get_cache ();
23692 ;
23693 return 0;
23694 }
23695 _ACEOF
23696 rm -f conftest.$ac_objext conftest$ac_exeext
23697 if { (ac_try="$ac_link"
23698 case "(($ac_try" in
23699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23700 *) ac_try_echo=$ac_try;;
23701 esac
23702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23703 $as_echo "$ac_try_echo") >&5
23704 (eval "$ac_link") 2>conftest.er1
23705 ac_status=$?
23706 grep -v '^ *+' conftest.er1 >conftest.err
23707 rm -f conftest.er1
23708 cat conftest.err >&5
23709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); } && {
23711 test -z "$ac_c_werror_flag" ||
23712 test ! -s conftest.err
23713 } && test -s conftest$ac_exeext && {
23714 test "$cross_compiling" = yes ||
23715 $as_test_x conftest$ac_exeext
23716 }; then
23717 ac_cv_lib_blkid_blkid_get_cache=yes
23718 else
23719 $as_echo "$as_me: failed program was:" >&5
23720 sed 's/^/| /' conftest.$ac_ext >&5
23721
23722 ac_cv_lib_blkid_blkid_get_cache=no
23723 fi
23724
23725 rm -rf conftest.dSYM
23726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23727 conftest$ac_exeext conftest.$ac_ext
23728 LIBS=$ac_check_lib_save_LIBS
23729 fi
23730 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
23731 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
23732 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
23733
23734 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
23735 $as_echo_n "checking for blkid zfs support... " >&6; }
23736
23737 ZFS_DEV=`mktemp`
23738 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
23739 >/dev/null 2>/dev/null
23740 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
23741 dd of=$ZFS_DEV bs=1k count=8 \
23742 seek=132 conv=notrunc &>/dev/null \
23743 >/dev/null 2>/dev/null
23744
23745 saved_LDFLAGS="$LDFLAGS"
23746 LDFLAGS="-lblkid"
23747
23748 if test "$cross_compiling" = yes; then
23749 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23751 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23752 See \`config.log' for more details." >&5
23753 $as_echo "$as_me: error: cannot run test program while cross compiling
23754 See \`config.log' for more details." >&2;}
23755 { (exit 1); exit 1; }; }; }
23756 else
23757 cat >conftest.$ac_ext <<_ACEOF
23758 /* confdefs.h. */
23759 _ACEOF
23760 cat confdefs.h >>conftest.$ac_ext
23761 cat >>conftest.$ac_ext <<_ACEOF
23762 /* end confdefs.h. */
23763
23764 #include <stdio.h>
23765 #include <blkid/blkid.h>
23766
23767 int
23768 main ()
23769 {
23770
23771 blkid_cache cache;
23772 char *value;
23773
23774 if (blkid_get_cache(&cache, NULL) < 0)
23775 return 1;
23776
23777 value = blkid_get_tag_value(cache, "TYPE",
23778 "$ZFS_DEV");
23779 if (!value) {
23780 blkid_put_cache(cache);
23781 return 2;
23782 }
23783
23784 if (strcmp(value, "zfs")) {
23785 free(value);
23786 blkid_put_cache(cache);
23787 return 3;
23788 }
23789
23790 free(value);
23791 blkid_put_cache(cache);
23792
23793 ;
23794 return 0;
23795 }
23796 _ACEOF
23797 rm -f conftest$ac_exeext
23798 if { (ac_try="$ac_link"
23799 case "(($ac_try" in
23800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23801 *) ac_try_echo=$ac_try;;
23802 esac
23803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23804 $as_echo "$ac_try_echo") >&5
23805 (eval "$ac_link") 2>&5
23806 ac_status=$?
23807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23809 { (case "(($ac_try" in
23810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23811 *) ac_try_echo=$ac_try;;
23812 esac
23813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23814 $as_echo "$ac_try_echo") >&5
23815 (eval "$ac_try") 2>&5
23816 ac_status=$?
23817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); }; }; then
23819
23820 rm -f $ZFS_DEV
23821 { $as_echo "$as_me:$LINENO: result: yes" >&5
23822 $as_echo "yes" >&6; }
23823 LIBBLKID="-lblkid"
23824
23825
23826 cat >>confdefs.h <<\_ACEOF
23827 #define HAVE_LIBBLKID 1
23828 _ACEOF
23829
23830
23831 else
23832 $as_echo "$as_me: program exited with status $ac_status" >&5
23833 $as_echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23835
23836 ( exit $ac_status )
23837
23838 rm -f $ZFS_DEV
23839 { $as_echo "$as_me:$LINENO: result: no" >&5
23840 $as_echo "no" >&6; }
23841 if test "x$with_blkid" != xcheck; then
23842 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23844 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
23845 See \`config.log' for more details." >&5
23846 $as_echo "$as_me: error: --with-blkid given but unavailable
23847 See \`config.log' for more details." >&2;}
23848 { (exit 1); exit 1; }; }; }
23849 fi
23850
23851
23852 fi
23853 rm -rf conftest.dSYM
23854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23855 fi
23856
23857
23858
23859 LDFLAGS="$saved_LDFLAGS"
23860
23861 else
23862
23863 if test "x$with_blkid" != xcheck; then
23864 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23866 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
23867 See \`config.log' for more details." >&5
23868 $as_echo "$as_me: error: --with-blkid given but unavailable
23869 See \`config.log' for more details." >&2;}
23870 { (exit 1); exit 1; }; }; }
23871 fi
23872
23873
23874
23875 fi
23876
23877
23878 fi
23879
23880
23881
23882
23883 # Check whether --with-selinux was given.
23884 if test "${with_selinux+set}" = set; then
23885 withval=$with_selinux;
23886 else
23887 with_selinux=check
23888 fi
23889
23890
23891 LIBSELINUX=
23892 if test "x$with_selinux" != xno; then
23893
23894 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
23895 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
23896 $as_echo_n "checking for selinux/selinux.h... " >&6; }
23897 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
23898 $as_echo_n "(cached) " >&6
23899 fi
23900 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
23901 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
23902 else
23903 # Is the header compilable?
23904 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
23905 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
23906 cat >conftest.$ac_ext <<_ACEOF
23907 /* confdefs.h. */
23908 _ACEOF
23909 cat confdefs.h >>conftest.$ac_ext
23910 cat >>conftest.$ac_ext <<_ACEOF
23911 /* end confdefs.h. */
23912 $ac_includes_default
23913 #include <selinux/selinux.h>
23914 _ACEOF
23915 rm -f conftest.$ac_objext
23916 if { (ac_try="$ac_compile"
23917 case "(($ac_try" in
23918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919 *) ac_try_echo=$ac_try;;
23920 esac
23921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23922 $as_echo "$ac_try_echo") >&5
23923 (eval "$ac_compile") 2>conftest.er1
23924 ac_status=$?
23925 grep -v '^ *+' conftest.er1 >conftest.err
23926 rm -f conftest.er1
23927 cat conftest.err >&5
23928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); } && {
23930 test -z "$ac_c_werror_flag" ||
23931 test ! -s conftest.err
23932 } && test -s conftest.$ac_objext; then
23933 ac_header_compiler=yes
23934 else
23935 $as_echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23937
23938 ac_header_compiler=no
23939 fi
23940
23941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23942 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23943 $as_echo "$ac_header_compiler" >&6; }
23944
23945 # Is the header present?
23946 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
23947 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
23948 cat >conftest.$ac_ext <<_ACEOF
23949 /* confdefs.h. */
23950 _ACEOF
23951 cat confdefs.h >>conftest.$ac_ext
23952 cat >>conftest.$ac_ext <<_ACEOF
23953 /* end confdefs.h. */
23954 #include <selinux/selinux.h>
23955 _ACEOF
23956 if { (ac_try="$ac_cpp conftest.$ac_ext"
23957 case "(($ac_try" in
23958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23959 *) ac_try_echo=$ac_try;;
23960 esac
23961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23962 $as_echo "$ac_try_echo") >&5
23963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23964 ac_status=$?
23965 grep -v '^ *+' conftest.er1 >conftest.err
23966 rm -f conftest.er1
23967 cat conftest.err >&5
23968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); } >/dev/null && {
23970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23971 test ! -s conftest.err
23972 }; then
23973 ac_header_preproc=yes
23974 else
23975 $as_echo "$as_me: failed program was:" >&5
23976 sed 's/^/| /' conftest.$ac_ext >&5
23977
23978 ac_header_preproc=no
23979 fi
23980
23981 rm -f conftest.err conftest.$ac_ext
23982 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23983 $as_echo "$ac_header_preproc" >&6; }
23984
23985 # So? What about this header?
23986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23987 yes:no: )
23988 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
23989 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23990 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
23991 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
23992 ac_header_preproc=yes
23993 ;;
23994 no:yes:* )
23995 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
23996 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
23997 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
23998 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
23999 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
24000 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
24001 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
24002 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
24003 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
24004 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
24005 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
24006 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
24007
24008 ;;
24009 esac
24010 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
24011 $as_echo_n "checking for selinux/selinux.h... " >&6; }
24012 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
24013 $as_echo_n "(cached) " >&6
24014 else
24015 ac_cv_header_selinux_selinux_h=$ac_header_preproc
24016 fi
24017 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
24018 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
24019
24020 fi
24021 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
24022
24023 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
24024 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
24025 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
24026 $as_echo_n "(cached) " >&6
24027 else
24028 ac_check_lib_save_LIBS=$LIBS
24029 LIBS="-lselinux $LIBS"
24030 cat >conftest.$ac_ext <<_ACEOF
24031 /* confdefs.h. */
24032 _ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h. */
24036
24037 /* Override any GCC internal prototype to avoid an error.
24038 Use char because int might match the return type of a GCC
24039 builtin and then its argument prototype would still apply. */
24040 #ifdef __cplusplus
24041 extern "C"
24042 #endif
24043 char is_selinux_enabled ();
24044 int
24045 main ()
24046 {
24047 return is_selinux_enabled ();
24048 ;
24049 return 0;
24050 }
24051 _ACEOF
24052 rm -f conftest.$ac_objext conftest$ac_exeext
24053 if { (ac_try="$ac_link"
24054 case "(($ac_try" in
24055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24056 *) ac_try_echo=$ac_try;;
24057 esac
24058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24059 $as_echo "$ac_try_echo") >&5
24060 (eval "$ac_link") 2>conftest.er1
24061 ac_status=$?
24062 grep -v '^ *+' conftest.er1 >conftest.err
24063 rm -f conftest.er1
24064 cat conftest.err >&5
24065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); } && {
24067 test -z "$ac_c_werror_flag" ||
24068 test ! -s conftest.err
24069 } && test -s conftest$ac_exeext && {
24070 test "$cross_compiling" = yes ||
24071 $as_test_x conftest$ac_exeext
24072 }; then
24073 ac_cv_lib_selinux_is_selinux_enabled=yes
24074 else
24075 $as_echo "$as_me: failed program was:" >&5
24076 sed 's/^/| /' conftest.$ac_ext >&5
24077
24078 ac_cv_lib_selinux_is_selinux_enabled=no
24079 fi
24080
24081 rm -rf conftest.dSYM
24082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24083 conftest$ac_exeext conftest.$ac_ext
24084 LIBS=$ac_check_lib_save_LIBS
24085 fi
24086 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
24087 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
24088 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
24089
24090 LIBSELINUX="-lselinux"
24091
24092
24093 cat >>confdefs.h <<\_ACEOF
24094 #define HAVE_LIBSELINUX 1
24095 _ACEOF
24096
24097
24098 else
24099
24100 if test "x$with_selinux" != xcheck; then
24101 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24103 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
24104 See \`config.log' for more details." >&5
24105 $as_echo "$as_me: error: --with-selinux given but unavailable
24106 See \`config.log' for more details." >&2;}
24107 { (exit 1); exit 1; }; }; }
24108
24109 fi
24110
24111
24112 fi
24113
24114
24115 else
24116
24117 if test "x$with_selinux" != xcheck; then
24118 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24120 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
24121 See \`config.log' for more details." >&5
24122 $as_echo "$as_me: error: --with-selinux given but unavailable
24123 See \`config.log' for more details." >&2;}
24124 { (exit 1); exit 1; }; }; }
24125
24126 fi
24127
24128
24129 fi
24130
24131
24132
24133 else
24134
24135 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
24136 $as_echo_n "checking for selinux support... " >&6; }
24137 { $as_echo "$as_me:$LINENO: result: no" >&5
24138 $as_echo "no" >&6; }
24139
24140 fi
24141
24142
24143
24144 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
24145 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
24146
24147 saved_flags="$CFLAGS"
24148 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
24149
24150 if test "$cross_compiling" = yes; then
24151 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24153 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24154 See \`config.log' for more details." >&5
24155 $as_echo "$as_me: error: cannot run test program while cross compiling
24156 See \`config.log' for more details." >&2;}
24157 { (exit 1); exit 1; }; }; }
24158 else
24159 cat >conftest.$ac_ext <<_ACEOF
24160 /* confdefs.h. */
24161 _ACEOF
24162 cat confdefs.h >>conftest.$ac_ext
24163 cat >>conftest.$ac_ext <<_ACEOF
24164 /* end confdefs.h. */
24165
24166 int
24167 main ()
24168 {
24169
24170 ;
24171 return 0;
24172 }
24173 _ACEOF
24174 rm -f conftest$ac_exeext
24175 if { (ac_try="$ac_link"
24176 case "(($ac_try" in
24177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24178 *) ac_try_echo=$ac_try;;
24179 esac
24180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24181 $as_echo "$ac_try_echo") >&5
24182 (eval "$ac_link") 2>&5
24183 ac_status=$?
24184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24186 { (case "(($ac_try" in
24187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24188 *) ac_try_echo=$ac_try;;
24189 esac
24190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24191 $as_echo "$ac_try_echo") >&5
24192 (eval "$ac_try") 2>&5
24193 ac_status=$?
24194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); }; }; then
24196
24197 FRAME_LARGER_THAN=-Wframe-larger-than=1024
24198 { $as_echo "$as_me:$LINENO: result: yes" >&5
24199 $as_echo "yes" >&6; }
24200
24201 else
24202 $as_echo "$as_me: program exited with status $ac_status" >&5
24203 $as_echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24205
24206 ( exit $ac_status )
24207
24208 FRAME_LARGER_THAN=
24209 { $as_echo "$as_me:$LINENO: result: no" >&5
24210 $as_echo "no" >&6; }
24211
24212 fi
24213 rm -rf conftest.dSYM
24214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24215 fi
24216
24217
24218
24219 CFLAGS="$saved_flags"
24220
24221
24222
24223
24224 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
24225 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
24226
24227 saved_CFLAGS="$CFLAGS"
24228 CFLAGS="-fstack-check"
24229 saved_LDFLAGS="$LDFLAGS"
24230 LDFLAGS="-lpthread"
24231
24232 if test "$cross_compiling" = yes; then
24233 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24235 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24236 See \`config.log' for more details." >&5
24237 $as_echo "$as_me: error: cannot run test program while cross compiling
24238 See \`config.log' for more details." >&2;}
24239 { (exit 1); exit 1; }; }; }
24240 else
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
24248 #include <pthread.h>
24249 #include <sys/resource.h>
24250 #include <unistd.h>
24251 #include <bits/local_lim.h>
24252
24253 #define PAGESIZE (sysconf(_SC_PAGESIZE))
24254 #define STACK_SIZE 8192
24255 #define BUFSIZE 4096
24256
24257 void * func(void *arg)
24258 {
24259 char buf[BUFSIZE];
24260 }
24261
24262 int
24263 main ()
24264 {
24265
24266 pthread_t tid;
24267 pthread_attr_t attr;
24268 struct rlimit l;
24269
24270 l.rlim_cur = 0;
24271 l.rlim_max = 0;
24272 setrlimit(RLIMIT_CORE, &l);
24273 pthread_attr_init(&attr);
24274 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
24275 pthread_attr_setguardsize(&attr, PAGESIZE);
24276 pthread_create(&tid, &attr, func, NULL);
24277 pthread_join(tid, NULL);
24278
24279 ;
24280 return 0;
24281 }
24282 _ACEOF
24283 rm -f conftest$ac_exeext
24284 if { (ac_try="$ac_link"
24285 case "(($ac_try" in
24286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24287 *) ac_try_echo=$ac_try;;
24288 esac
24289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24290 $as_echo "$ac_try_echo") >&5
24291 (eval "$ac_link") 2>&5
24292 ac_status=$?
24293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24295 { (case "(($ac_try" in
24296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24297 *) ac_try_echo=$ac_try;;
24298 esac
24299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24300 $as_echo "$ac_try_echo") >&5
24301 (eval "$ac_try") 2>&5
24302 ac_status=$?
24303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); }; }; then
24305
24306 { $as_echo "$as_me:$LINENO: result: no" >&5
24307 $as_echo "no" >&6; }
24308
24309 else
24310 $as_echo "$as_me: program exited with status $ac_status" >&5
24311 $as_echo "$as_me: failed program was:" >&5
24312 sed 's/^/| /' conftest.$ac_ext >&5
24313
24314 ( exit $ac_status )
24315
24316
24317 cat >>confdefs.h <<\_ACEOF
24318 #define NPTL_GUARD_WITHIN_STACK 1
24319 _ACEOF
24320
24321 { $as_echo "$as_me:$LINENO: result: yes" >&5
24322 $as_echo "yes" >&6; }
24323
24324 fi
24325 rm -rf conftest.dSYM
24326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24327 fi
24328
24329
24330 CFLAGS="$saved_CFLAGS"
24331 LDFLAGS="$saved_LDFLAGS"
24332
24333 ;;
24334 srpm) ;;
24335 *)
24336 { $as_echo "$as_me:$LINENO: result: Error!" >&5
24337 $as_echo "Error!" >&6; }
24338 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
24339 user kernel|user|all|srpm" >&5
24340 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
24341 user kernel|user|all|srpm" >&2;}
24342 { (exit 1); exit 1; }; } ;;
24343 esac
24344
24345 if test "$ZFS_CONFIG" = user ||
24346 test "$ZFS_CONFIG" = all; then
24347 CONFIG_USER_TRUE=
24348 CONFIG_USER_FALSE='#'
24349 else
24350 CONFIG_USER_TRUE='#'
24351 CONFIG_USER_FALSE=
24352 fi
24353
24354 if test "$ZFS_CONFIG" = kernel ||
24355 test "$ZFS_CONFIG" = all; then
24356 CONFIG_KERNEL_TRUE=
24357 CONFIG_KERNEL_FALSE='#'
24358 else
24359 CONFIG_KERNEL_TRUE='#'
24360 CONFIG_KERNEL_FALSE=
24361 fi
24362
24363
24364
24365 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
24366 $as_echo_n "checking whether debugging is enabled... " >&6; }
24367 # Check whether --enable-debug was given.
24368 if test "${enable_debug+set}" = set; then
24369 enableval=$enable_debug;
24370 else
24371 enable_debug=no
24372 fi
24373
24374
24375 if test "x$enable_debug" = xyes; then
24376
24377 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
24378 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
24379 DEBUG_CFLAGS="-DDEBUG -Werror"
24380 DEBUG_STACKFLAGS="-fstack-check"
24381 DEBUG_ZFS="_with_debug"
24382
24383 cat >>confdefs.h <<\_ACEOF
24384 #define ZFS_DEBUG 1
24385 _ACEOF
24386
24387
24388 else
24389
24390 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
24391 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
24392 DEBUG_CFLAGS="-DNDEBUG"
24393 DEBUG_STACKFLAGS=""
24394 DEBUG_ZFS="_without_debug"
24395
24396 fi
24397
24398
24399
24400
24401
24402 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
24403 $as_echo "$enable_debug" >&6; }
24404
24405
24406 # Check whether --enable-debug-dmu-tx was given.
24407 if test "${enable_debug_dmu_tx+set}" = set; then
24408 enableval=$enable_debug_dmu_tx;
24409 else
24410 enable_debug_dmu_tx=no
24411 fi
24412
24413
24414 if test "x$enable_debug_dmu_tx" = xyes; then
24415
24416 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
24417 DEBUG_DMU_TX="_with_debug_dmu_tx"
24418
24419 cat >>confdefs.h <<\_ACEOF
24420 #define DEBUG_DMU_TX 1
24421 _ACEOF
24422
24423
24424 else
24425
24426 DEBUG_DMU_TX="_without_debug_dmu_tx"
24427
24428 fi
24429
24430
24431
24432 { $as_echo "$as_me:$LINENO: checking whether dmu tx validation is enabled" >&5
24433 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
24434 { $as_echo "$as_me:$LINENO: result: $enable_debug_dmu_tx" >&5
24435 $as_echo "$enable_debug_dmu_tx" >&6; }
24436
24437
24438 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"
24439
24440
24441 cat >confcache <<\_ACEOF
24442 # This file is a shell script that caches the results of configure
24443 # tests run on this system so they can be shared between configure
24444 # scripts and configure runs, see configure's option --config-cache.
24445 # It is not useful on other systems. If it contains results you don't
24446 # want to keep, you may remove or edit it.
24447 #
24448 # config.status only pays attention to the cache file if you give it
24449 # the --recheck option to rerun configure.
24450 #
24451 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24452 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24453 # following values.
24454
24455 _ACEOF
24456
24457 # The following way of writing the cache mishandles newlines in values,
24458 # but we know of no workaround that is simple, portable, and efficient.
24459 # So, we kill variables containing newlines.
24460 # Ultrix sh set writes to stderr and can't be redirected directly,
24461 # and sets the high bit in the cache file unless we assign to the vars.
24462 (
24463 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24464 eval ac_val=\$$ac_var
24465 case $ac_val in #(
24466 *${as_nl}*)
24467 case $ac_var in #(
24468 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
24469 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24470 esac
24471 case $ac_var in #(
24472 _ | IFS | as_nl) ;; #(
24473 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24474 *) $as_unset $ac_var ;;
24475 esac ;;
24476 esac
24477 done
24478
24479 (set) 2>&1 |
24480 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24481 *${as_nl}ac_space=\ *)
24482 # `set' does not quote correctly, so add quotes (double-quote
24483 # substitution turns \\\\ into \\, and sed turns \\ into \).
24484 sed -n \
24485 "s/'/'\\\\''/g;
24486 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24487 ;; #(
24488 *)
24489 # `set' quotes correctly as required by POSIX, so do not add quotes.
24490 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24491 ;;
24492 esac |
24493 sort
24494 ) |
24495 sed '
24496 /^ac_cv_env_/b end
24497 t clear
24498 :clear
24499 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24500 t end
24501 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24502 :end' >>confcache
24503 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24504 if test -w "$cache_file"; then
24505 test "x$cache_file" != "x/dev/null" &&
24506 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
24507 $as_echo "$as_me: updating cache $cache_file" >&6;}
24508 cat confcache >$cache_file
24509 else
24510 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24511 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24512 fi
24513 fi
24514 rm -f confcache
24515
24516 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24517 # Let make expand exec_prefix.
24518 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24519
24520 DEFS=-DHAVE_CONFIG_H
24521
24522 ac_libobjs=
24523 ac_ltlibobjs=
24524 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24525 # 1. Remove the extension, and $U if already installed.
24526 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24527 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24528 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24529 # will be set to the directory where LIBOBJS objects are built.
24530 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24531 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24532 done
24533 LIBOBJS=$ac_libobjs
24534
24535 LTLIBOBJS=$ac_ltlibobjs
24536
24537
24538 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24539 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24540 Usually this means the macro was only invoked conditionally." >&5
24541 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24542 Usually this means the macro was only invoked conditionally." >&2;}
24543 { (exit 1); exit 1; }; }
24544 fi
24545 if test -n "$EXEEXT"; then
24546 am__EXEEXT_TRUE=
24547 am__EXEEXT_FALSE='#'
24548 else
24549 am__EXEEXT_TRUE='#'
24550 am__EXEEXT_FALSE=
24551 fi
24552
24553 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24554 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24555 Usually this means the macro was only invoked conditionally." >&5
24556 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
24557 Usually this means the macro was only invoked conditionally." >&2;}
24558 { (exit 1); exit 1; }; }
24559 fi
24560 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24561 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24562 Usually this means the macro was only invoked conditionally." >&5
24563 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24564 Usually this means the macro was only invoked conditionally." >&2;}
24565 { (exit 1); exit 1; }; }
24566 fi
24567 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
24568 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
24569 Usually this means the macro was only invoked conditionally." >&5
24570 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
24571 Usually this means the macro was only invoked conditionally." >&2;}
24572 { (exit 1); exit 1; }; }
24573 fi
24574 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
24575 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
24576 Usually this means the macro was only invoked conditionally." >&5
24577 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
24578 Usually this means the macro was only invoked conditionally." >&2;}
24579 { (exit 1); exit 1; }; }
24580 fi
24581 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
24582 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
24583 Usually this means the macro was only invoked conditionally." >&5
24584 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
24585 Usually this means the macro was only invoked conditionally." >&2;}
24586 { (exit 1); exit 1; }; }
24587 fi
24588
24589 : ${CONFIG_STATUS=./config.status}
24590 ac_write_fail=0
24591 ac_clean_files_save=$ac_clean_files
24592 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24593 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24594 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24595 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24596 #! $SHELL
24597 # Generated by $as_me.
24598 # Run this file to recreate the current configuration.
24599 # Compiler output produced by configure, useful for debugging
24600 # configure, is in config.log if it exists.
24601
24602 debug=false
24603 ac_cs_recheck=false
24604 ac_cs_silent=false
24605 SHELL=\${CONFIG_SHELL-$SHELL}
24606 _ACEOF
24607
24608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24609 ## --------------------- ##
24610 ## M4sh Initialization. ##
24611 ## --------------------- ##
24612
24613 # Be more Bourne compatible
24614 DUALCASE=1; export DUALCASE # for MKS sh
24615 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24616 emulate sh
24617 NULLCMD=:
24618 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24619 # is contrary to our usage. Disable this feature.
24620 alias -g '${1+"$@"}'='"$@"'
24621 setopt NO_GLOB_SUBST
24622 else
24623 case `(set -o) 2>/dev/null` in
24624 *posix*) set -o posix ;;
24625 esac
24626
24627 fi
24628
24629
24630
24631
24632 # PATH needs CR
24633 # Avoid depending upon Character Ranges.
24634 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24635 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24636 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24637 as_cr_digits='0123456789'
24638 as_cr_alnum=$as_cr_Letters$as_cr_digits
24639
24640 as_nl='
24641 '
24642 export as_nl
24643 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24644 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24645 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24646 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24647 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24648 as_echo='printf %s\n'
24649 as_echo_n='printf %s'
24650 else
24651 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24652 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24653 as_echo_n='/usr/ucb/echo -n'
24654 else
24655 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24656 as_echo_n_body='eval
24657 arg=$1;
24658 case $arg in
24659 *"$as_nl"*)
24660 expr "X$arg" : "X\\(.*\\)$as_nl";
24661 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24662 esac;
24663 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24664 '
24665 export as_echo_n_body
24666 as_echo_n='sh -c $as_echo_n_body as_echo'
24667 fi
24668 export as_echo_body
24669 as_echo='sh -c $as_echo_body as_echo'
24670 fi
24671
24672 # The user is always right.
24673 if test "${PATH_SEPARATOR+set}" != set; then
24674 PATH_SEPARATOR=:
24675 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24676 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24677 PATH_SEPARATOR=';'
24678 }
24679 fi
24680
24681 # Support unset when possible.
24682 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24683 as_unset=unset
24684 else
24685 as_unset=false
24686 fi
24687
24688
24689 # IFS
24690 # We need space, tab and new line, in precisely that order. Quoting is
24691 # there to prevent editors from complaining about space-tab.
24692 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24693 # splitting by setting IFS to empty value.)
24694 IFS=" "" $as_nl"
24695
24696 # Find who we are. Look in the path if we contain no directory separator.
24697 case $0 in
24698 *[\\/]* ) as_myself=$0 ;;
24699 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24700 for as_dir in $PATH
24701 do
24702 IFS=$as_save_IFS
24703 test -z "$as_dir" && as_dir=.
24704 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24705 done
24706 IFS=$as_save_IFS
24707
24708 ;;
24709 esac
24710 # We did not find ourselves, most probably we were run as `sh COMMAND'
24711 # in which case we are not to be found in the path.
24712 if test "x$as_myself" = x; then
24713 as_myself=$0
24714 fi
24715 if test ! -f "$as_myself"; then
24716 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24717 { (exit 1); exit 1; }
24718 fi
24719
24720 # Work around bugs in pre-3.0 UWIN ksh.
24721 for as_var in ENV MAIL MAILPATH
24722 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24723 done
24724 PS1='$ '
24725 PS2='> '
24726 PS4='+ '
24727
24728 # NLS nuisances.
24729 LC_ALL=C
24730 export LC_ALL
24731 LANGUAGE=C
24732 export LANGUAGE
24733
24734 # Required to use basename.
24735 if expr a : '\(a\)' >/dev/null 2>&1 &&
24736 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24737 as_expr=expr
24738 else
24739 as_expr=false
24740 fi
24741
24742 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24743 as_basename=basename
24744 else
24745 as_basename=false
24746 fi
24747
24748
24749 # Name of the executable.
24750 as_me=`$as_basename -- "$0" ||
24751 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24752 X"$0" : 'X\(//\)$' \| \
24753 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24754 $as_echo X/"$0" |
24755 sed '/^.*\/\([^/][^/]*\)\/*$/{
24756 s//\1/
24757 q
24758 }
24759 /^X\/\(\/\/\)$/{
24760 s//\1/
24761 q
24762 }
24763 /^X\/\(\/\).*/{
24764 s//\1/
24765 q
24766 }
24767 s/.*/./; q'`
24768
24769 # CDPATH.
24770 $as_unset CDPATH
24771
24772
24773
24774 as_lineno_1=$LINENO
24775 as_lineno_2=$LINENO
24776 test "x$as_lineno_1" != "x$as_lineno_2" &&
24777 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24778
24779 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24780 # uniformly replaced by the line number. The first 'sed' inserts a
24781 # line-number line after each line using $LINENO; the second 'sed'
24782 # does the real work. The second script uses 'N' to pair each
24783 # line-number line with the line containing $LINENO, and appends
24784 # trailing '-' during substitution so that $LINENO is not a special
24785 # case at line end.
24786 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24787 # scripts with optimization help from Paolo Bonzini. Blame Lee
24788 # E. McMahon (1931-1989) for sed's syntax. :-)
24789 sed -n '
24790 p
24791 /[$]LINENO/=
24792 ' <$as_myself |
24793 sed '
24794 s/[$]LINENO.*/&-/
24795 t lineno
24796 b
24797 :lineno
24798 N
24799 :loop
24800 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24801 t loop
24802 s/-\n.*//
24803 ' >$as_me.lineno &&
24804 chmod +x "$as_me.lineno" ||
24805 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24806 { (exit 1); exit 1; }; }
24807
24808 # Don't try to exec as it changes $[0], causing all sort of problems
24809 # (the dirname of $[0] is not the place where we might find the
24810 # original and so on. Autoconf is especially sensitive to this).
24811 . "./$as_me.lineno"
24812 # Exit status is that of the last command.
24813 exit
24814 }
24815
24816
24817 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24818 as_dirname=dirname
24819 else
24820 as_dirname=false
24821 fi
24822
24823 ECHO_C= ECHO_N= ECHO_T=
24824 case `echo -n x` in
24825 -n*)
24826 case `echo 'x\c'` in
24827 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24828 *) ECHO_C='\c';;
24829 esac;;
24830 *)
24831 ECHO_N='-n';;
24832 esac
24833 if expr a : '\(a\)' >/dev/null 2>&1 &&
24834 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24835 as_expr=expr
24836 else
24837 as_expr=false
24838 fi
24839
24840 rm -f conf$$ conf$$.exe conf$$.file
24841 if test -d conf$$.dir; then
24842 rm -f conf$$.dir/conf$$.file
24843 else
24844 rm -f conf$$.dir
24845 mkdir conf$$.dir 2>/dev/null
24846 fi
24847 if (echo >conf$$.file) 2>/dev/null; then
24848 if ln -s conf$$.file conf$$ 2>/dev/null; then
24849 as_ln_s='ln -s'
24850 # ... but there are two gotchas:
24851 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24852 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24853 # In both cases, we have to default to `cp -p'.
24854 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24855 as_ln_s='cp -p'
24856 elif ln conf$$.file conf$$ 2>/dev/null; then
24857 as_ln_s=ln
24858 else
24859 as_ln_s='cp -p'
24860 fi
24861 else
24862 as_ln_s='cp -p'
24863 fi
24864 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24865 rmdir conf$$.dir 2>/dev/null
24866
24867 if mkdir -p . 2>/dev/null; then
24868 as_mkdir_p=:
24869 else
24870 test -d ./-p && rmdir ./-p
24871 as_mkdir_p=false
24872 fi
24873
24874 if test -x / >/dev/null 2>&1; then
24875 as_test_x='test -x'
24876 else
24877 if ls -dL / >/dev/null 2>&1; then
24878 as_ls_L_option=L
24879 else
24880 as_ls_L_option=
24881 fi
24882 as_test_x='
24883 eval sh -c '\''
24884 if test -d "$1"; then
24885 test -d "$1/.";
24886 else
24887 case $1 in
24888 -*)set "./$1";;
24889 esac;
24890 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24891 ???[sx]*):;;*)false;;esac;fi
24892 '\'' sh
24893 '
24894 fi
24895 as_executable_p=$as_test_x
24896
24897 # Sed expression to map a string onto a valid CPP name.
24898 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24899
24900 # Sed expression to map a string onto a valid variable name.
24901 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24902
24903
24904 exec 6>&1
24905
24906 # Save the log message, to keep $[0] and so on meaningful, and to
24907 # report actual input values of CONFIG_FILES etc. instead of their
24908 # values after options handling.
24909 ac_log="
24910 This file was extended by $as_me, which was
24911 generated by GNU Autoconf 2.63. Invocation command line was
24912
24913 CONFIG_FILES = $CONFIG_FILES
24914 CONFIG_HEADERS = $CONFIG_HEADERS
24915 CONFIG_LINKS = $CONFIG_LINKS
24916 CONFIG_COMMANDS = $CONFIG_COMMANDS
24917 $ $0 $@
24918
24919 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24920 "
24921
24922 _ACEOF
24923
24924 case $ac_config_files in *"
24925 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24926 esac
24927
24928 case $ac_config_headers in *"
24929 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24930 esac
24931
24932
24933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24934 # Files that config.status was made for.
24935 config_files="$ac_config_files"
24936 config_headers="$ac_config_headers"
24937 config_commands="$ac_config_commands"
24938
24939 _ACEOF
24940
24941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24942 ac_cs_usage="\
24943 \`$as_me' instantiates files from templates according to the
24944 current configuration.
24945
24946 Usage: $0 [OPTION]... [FILE]...
24947
24948 -h, --help print this help, then exit
24949 -V, --version print version number and configuration settings, then exit
24950 -q, --quiet, --silent
24951 do not print progress messages
24952 -d, --debug don't remove temporary files
24953 --recheck update $as_me by reconfiguring in the same conditions
24954 --file=FILE[:TEMPLATE]
24955 instantiate the configuration file FILE
24956 --header=FILE[:TEMPLATE]
24957 instantiate the configuration header FILE
24958
24959 Configuration files:
24960 $config_files
24961
24962 Configuration headers:
24963 $config_headers
24964
24965 Configuration commands:
24966 $config_commands
24967
24968 Report bugs to <bug-autoconf@gnu.org>."
24969
24970 _ACEOF
24971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24972 ac_cs_version="\\
24973 config.status
24974 configured by $0, generated by GNU Autoconf 2.63,
24975 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24976
24977 Copyright (C) 2008 Free Software Foundation, Inc.
24978 This config.status script is free software; the Free Software Foundation
24979 gives unlimited permission to copy, distribute and modify it."
24980
24981 ac_pwd='$ac_pwd'
24982 srcdir='$srcdir'
24983 INSTALL='$INSTALL'
24984 MKDIR_P='$MKDIR_P'
24985 AWK='$AWK'
24986 test -n "\$AWK" || AWK=awk
24987 _ACEOF
24988
24989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24990 # The default lists apply if the user does not specify any file.
24991 ac_need_defaults=:
24992 while test $# != 0
24993 do
24994 case $1 in
24995 --*=*)
24996 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24997 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24998 ac_shift=:
24999 ;;
25000 *)
25001 ac_option=$1
25002 ac_optarg=$2
25003 ac_shift=shift
25004 ;;
25005 esac
25006
25007 case $ac_option in
25008 # Handling of the options.
25009 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25010 ac_cs_recheck=: ;;
25011 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25012 $as_echo "$ac_cs_version"; exit ;;
25013 --debug | --debu | --deb | --de | --d | -d )
25014 debug=: ;;
25015 --file | --fil | --fi | --f )
25016 $ac_shift
25017 case $ac_optarg in
25018 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25019 esac
25020 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
25021 ac_need_defaults=false;;
25022 --header | --heade | --head | --hea )
25023 $ac_shift
25024 case $ac_optarg in
25025 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25026 esac
25027 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
25028 ac_need_defaults=false;;
25029 --he | --h)
25030 # Conflict between --help and --header
25031 { $as_echo "$as_me: error: ambiguous option: $1
25032 Try \`$0 --help' for more information." >&2
25033 { (exit 1); exit 1; }; };;
25034 --help | --hel | -h )
25035 $as_echo "$ac_cs_usage"; exit ;;
25036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25037 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25038 ac_cs_silent=: ;;
25039
25040 # This is an error.
25041 -*) { $as_echo "$as_me: error: unrecognized option: $1
25042 Try \`$0 --help' for more information." >&2
25043 { (exit 1); exit 1; }; } ;;
25044
25045 *) ac_config_targets="$ac_config_targets $1"
25046 ac_need_defaults=false ;;
25047
25048 esac
25049 shift
25050 done
25051
25052 ac_configure_extra_args=
25053
25054 if $ac_cs_silent; then
25055 exec 6>/dev/null
25056 ac_configure_extra_args="$ac_configure_extra_args --silent"
25057 fi
25058
25059 _ACEOF
25060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25061 if \$ac_cs_recheck; then
25062 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25063 shift
25064 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25065 CONFIG_SHELL='$SHELL'
25066 export CONFIG_SHELL
25067 exec "\$@"
25068 fi
25069
25070 _ACEOF
25071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25072 exec 5>>config.log
25073 {
25074 echo
25075 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25076 ## Running $as_me. ##
25077 _ASBOX
25078 $as_echo "$ac_log"
25079 } >&5
25080
25081 _ACEOF
25082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25083 #
25084 # INIT-COMMANDS
25085 #
25086 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25087
25088
25089 # The HP-UX ksh and POSIX shell print the target directory to stdout
25090 # if CDPATH is set.
25091 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25092
25093 sed_quote_subst='$sed_quote_subst'
25094 double_quote_subst='$double_quote_subst'
25095 delay_variable_subst='$delay_variable_subst'
25096 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25097 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25098 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25099 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25100 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25101 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
25102 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
25103 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
25104 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
25105 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
25106 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
25107 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
25108 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
25109 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
25110 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
25111 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
25112 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
25113 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
25114 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
25115 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
25116 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
25117 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
25118 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
25119 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
25120 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
25121 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
25122 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
25123 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25124 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
25125 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
25126 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
25127 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
25128 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25129 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
25130 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
25131 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25132 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25133 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25134 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
25135 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25136 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
25137 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
25138 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
25139 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
25140 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"`'
25141 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"`'
25142 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
25143 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
25144 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
25145 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
25146 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
25147 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
25148 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
25149 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
25150 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
25151 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
25152 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
25153 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
25154 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
25155 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
25156 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
25157 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
25158 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25159 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25160 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
25161 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
25162 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25163 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25164 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
25165 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25166 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25167 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25168 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25169 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25170 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25171 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
25172 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25173 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25174 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25175 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
25176 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
25177 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
25178 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
25179 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
25180 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25181 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
25182 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
25183 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
25184 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
25185 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
25186 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25187 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25188 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25189 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25190 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
25191 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
25192 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25193 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
25194 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
25195 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25196 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25197 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
25198 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25199 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
25200 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25201 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25202 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25203 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25204 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
25205 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
25206 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25207 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25208 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
25209 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
25210 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
25211 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
25212 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
25213 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
25214
25215 LTCC='$LTCC'
25216 LTCFLAGS='$LTCFLAGS'
25217 compiler='$compiler_DEFAULT'
25218
25219 # Quote evaled strings.
25220 for var in SED \
25221 GREP \
25222 EGREP \
25223 FGREP \
25224 LD \
25225 NM \
25226 LN_S \
25227 lt_SP2NL \
25228 lt_NL2SP \
25229 reload_flag \
25230 OBJDUMP \
25231 deplibs_check_method \
25232 file_magic_cmd \
25233 AR \
25234 AR_FLAGS \
25235 STRIP \
25236 RANLIB \
25237 CC \
25238 CFLAGS \
25239 compiler \
25240 lt_cv_sys_global_symbol_pipe \
25241 lt_cv_sys_global_symbol_to_cdecl \
25242 lt_cv_sys_global_symbol_to_c_name_address \
25243 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25244 SHELL \
25245 ECHO \
25246 lt_prog_compiler_no_builtin_flag \
25247 lt_prog_compiler_wl \
25248 lt_prog_compiler_pic \
25249 lt_prog_compiler_static \
25250 lt_cv_prog_compiler_c_o \
25251 need_locks \
25252 DSYMUTIL \
25253 NMEDIT \
25254 LIPO \
25255 OTOOL \
25256 OTOOL64 \
25257 shrext_cmds \
25258 export_dynamic_flag_spec \
25259 whole_archive_flag_spec \
25260 compiler_needs_object \
25261 with_gnu_ld \
25262 allow_undefined_flag \
25263 no_undefined_flag \
25264 hardcode_libdir_flag_spec \
25265 hardcode_libdir_flag_spec_ld \
25266 hardcode_libdir_separator \
25267 fix_srcfile_path \
25268 exclude_expsyms \
25269 include_expsyms \
25270 file_list_spec \
25271 variables_saved_for_relink \
25272 libname_spec \
25273 library_names_spec \
25274 soname_spec \
25275 finish_eval \
25276 old_striplib \
25277 striplib; do
25278 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25279 *[\\\\\\\`\\"\\\$]*)
25280 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25281 ;;
25282 *)
25283 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25284 ;;
25285 esac
25286 done
25287
25288 # Double-quote double-evaled strings.
25289 for var in reload_cmds \
25290 old_postinstall_cmds \
25291 old_postuninstall_cmds \
25292 old_archive_cmds \
25293 extract_expsyms_cmds \
25294 old_archive_from_new_cmds \
25295 old_archive_from_expsyms_cmds \
25296 archive_cmds \
25297 archive_expsym_cmds \
25298 module_cmds \
25299 module_expsym_cmds \
25300 export_symbols_cmds \
25301 prelink_cmds \
25302 postinstall_cmds \
25303 postuninstall_cmds \
25304 finish_cmds \
25305 sys_lib_search_path_spec \
25306 sys_lib_dlsearch_path_spec; do
25307 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25308 *[\\\\\\\`\\"\\\$]*)
25309 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25310 ;;
25311 *)
25312 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25313 ;;
25314 esac
25315 done
25316
25317 # Fix-up fallback echo if it was mangled by the above quoting rules.
25318 case \$lt_ECHO in
25319 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
25320 ;;
25321 esac
25322
25323 ac_aux_dir='$ac_aux_dir'
25324 xsi_shell='$xsi_shell'
25325 lt_shell_append='$lt_shell_append'
25326
25327 # See if we are running on zsh, and set the options which allow our
25328 # commands through without removal of \ escapes INIT.
25329 if test -n "\${ZSH_VERSION+set}" ; then
25330 setopt NO_GLOB_SUBST
25331 fi
25332
25333
25334 PACKAGE='$PACKAGE'
25335 VERSION='$VERSION'
25336 TIMESTAMP='$TIMESTAMP'
25337 RM='$RM'
25338 ofile='$ofile'
25339
25340
25341
25342
25343 _ACEOF
25344
25345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25346
25347 # Handling of arguments.
25348 for ac_config_target in $ac_config_targets
25349 do
25350 case $ac_config_target in
25351 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
25352 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25353 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25354 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25355 "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
25356 "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
25357 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
25358 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
25359 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
25360 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
25361 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
25362 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
25363 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
25364 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
25365 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25366 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
25367 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
25368 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
25369 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
25370 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
25371 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
25372 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
25373 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
25374 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
25375 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
25376 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
25377 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
25378 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
25379 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
25380 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
25381 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
25382 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
25383 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
25384 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
25385 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
25386 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
25387 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
25388 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
25389 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
25390 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
25391 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
25392 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
25393 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
25394 "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
25395 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
25396 "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
25397 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
25398 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
25399 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
25400 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
25401 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
25402 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
25403 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
25404 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
25405 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25406 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
25407 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
25408 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
25409 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
25410 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
25411 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
25412 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
25413 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
25414 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
25415 "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
25416 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
25417 "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
25418 "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
25419 "PKGBUILD-zfs") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs" ;;
25420 "PKGBUILD-zfs-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs-modules" ;;
25421 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
25422 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
25423
25424 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25425 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25426 { (exit 1); exit 1; }; };;
25427 esac
25428 done
25429
25430
25431 # If the user did not use the arguments to specify the items to instantiate,
25432 # then the envvar interface is used. Set only those that are not.
25433 # We use the long form for the default assignment because of an extremely
25434 # bizarre bug on SunOS 4.1.3.
25435 if $ac_need_defaults; then
25436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25437 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25438 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25439 fi
25440
25441 # Have a temporary directory for convenience. Make it in the build tree
25442 # simply because there is no reason against having it here, and in addition,
25443 # creating and moving files from /tmp can sometimes cause problems.
25444 # Hook for its removal unless debugging.
25445 # Note that there is a small window in which the directory will not be cleaned:
25446 # after its creation but before its name has been assigned to `$tmp'.
25447 $debug ||
25448 {
25449 tmp=
25450 trap 'exit_status=$?
25451 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25452 ' 0
25453 trap '{ (exit 1); exit 1; }' 1 2 13 15
25454 }
25455 # Create a (secure) tmp directory for tmp files.
25456
25457 {
25458 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25459 test -n "$tmp" && test -d "$tmp"
25460 } ||
25461 {
25462 tmp=./conf$$-$RANDOM
25463 (umask 077 && mkdir "$tmp")
25464 } ||
25465 {
25466 $as_echo "$as_me: cannot create a temporary directory in ." >&2
25467 { (exit 1); exit 1; }
25468 }
25469
25470 # Set up the scripts for CONFIG_FILES section.
25471 # No need to generate them if there are no CONFIG_FILES.
25472 # This happens for instance with `./config.status config.h'.
25473 if test -n "$CONFIG_FILES"; then
25474
25475
25476 ac_cr=' '
25477 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25478 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25479 ac_cs_awk_cr='\\r'
25480 else
25481 ac_cs_awk_cr=$ac_cr
25482 fi
25483
25484 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25485 _ACEOF
25486
25487
25488 {
25489 echo "cat >conf$$subs.awk <<_ACEOF" &&
25490 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25491 echo "_ACEOF"
25492 } >conf$$subs.sh ||
25493 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25494 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25495 { (exit 1); exit 1; }; }
25496 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25497 ac_delim='%!_!# '
25498 for ac_last_try in false false false false false :; do
25499 . ./conf$$subs.sh ||
25500 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25501 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25502 { (exit 1); exit 1; }; }
25503
25504 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25505 if test $ac_delim_n = $ac_delim_num; then
25506 break
25507 elif $ac_last_try; then
25508 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25509 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25510 { (exit 1); exit 1; }; }
25511 else
25512 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25513 fi
25514 done
25515 rm -f conf$$subs.sh
25516
25517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25518 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25519 _ACEOF
25520 sed -n '
25521 h
25522 s/^/S["/; s/!.*/"]=/
25523 p
25524 g
25525 s/^[^!]*!//
25526 :repl
25527 t repl
25528 s/'"$ac_delim"'$//
25529 t delim
25530 :nl
25531 h
25532 s/\(.\{148\}\).*/\1/
25533 t more1
25534 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25535 p
25536 n
25537 b repl
25538 :more1
25539 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25540 p
25541 g
25542 s/.\{148\}//
25543 t nl
25544 :delim
25545 h
25546 s/\(.\{148\}\).*/\1/
25547 t more2
25548 s/["\\]/\\&/g; s/^/"/; s/$/"/
25549 p
25550 b
25551 :more2
25552 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25553 p
25554 g
25555 s/.\{148\}//
25556 t delim
25557 ' <conf$$subs.awk | sed '
25558 /^[^""]/{
25559 N
25560 s/\n//
25561 }
25562 ' >>$CONFIG_STATUS || ac_write_fail=1
25563 rm -f conf$$subs.awk
25564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25565 _ACAWK
25566 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25567 for (key in S) S_is_set[key] = 1
25568 FS = "\a"
25569
25570 }
25571 {
25572 line = $ 0
25573 nfields = split(line, field, "@")
25574 substed = 0
25575 len = length(field[1])
25576 for (i = 2; i < nfields; i++) {
25577 key = field[i]
25578 keylen = length(key)
25579 if (S_is_set[key]) {
25580 value = S[key]
25581 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25582 len += length(value) + length(field[++i])
25583 substed = 1
25584 } else
25585 len += 1 + keylen
25586 }
25587
25588 print line
25589 }
25590
25591 _ACAWK
25592 _ACEOF
25593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25594 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25595 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25596 else
25597 cat
25598 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25599 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
25600 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
25601 { (exit 1); exit 1; }; }
25602 _ACEOF
25603
25604 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25605 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25606 # trailing colons and then remove the whole line if VPATH becomes empty
25607 # (actually we leave an empty line to preserve line numbers).
25608 if test "x$srcdir" = x.; then
25609 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25610 s/:*\$(srcdir):*/:/
25611 s/:*\${srcdir}:*/:/
25612 s/:*@srcdir@:*/:/
25613 s/^\([^=]*=[ ]*\):*/\1/
25614 s/:*$//
25615 s/^[^=]*=[ ]*$//
25616 }'
25617 fi
25618
25619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25620 fi # test -n "$CONFIG_FILES"
25621
25622 # Set up the scripts for CONFIG_HEADERS section.
25623 # No need to generate them if there are no CONFIG_HEADERS.
25624 # This happens for instance with `./config.status Makefile'.
25625 if test -n "$CONFIG_HEADERS"; then
25626 cat >"$tmp/defines.awk" <<\_ACAWK ||
25627 BEGIN {
25628 _ACEOF
25629
25630 # Transform confdefs.h into an awk script `defines.awk', embedded as
25631 # here-document in config.status, that substitutes the proper values into
25632 # config.h.in to produce config.h.
25633
25634 # Create a delimiter string that does not exist in confdefs.h, to ease
25635 # handling of long lines.
25636 ac_delim='%!_!# '
25637 for ac_last_try in false false :; do
25638 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25639 if test -z "$ac_t"; then
25640 break
25641 elif $ac_last_try; then
25642 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
25643 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
25644 { (exit 1); exit 1; }; }
25645 else
25646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25647 fi
25648 done
25649
25650 # For the awk script, D is an array of macro values keyed by name,
25651 # likewise P contains macro parameters if any. Preserve backslash
25652 # newline sequences.
25653
25654 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25655 sed -n '
25656 s/.\{148\}/&'"$ac_delim"'/g
25657 t rset
25658 :rset
25659 s/^[ ]*#[ ]*define[ ][ ]*/ /
25660 t def
25661 d
25662 :def
25663 s/\\$//
25664 t bsnl
25665 s/["\\]/\\&/g
25666 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25667 D["\1"]=" \3"/p
25668 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25669 d
25670 :bsnl
25671 s/["\\]/\\&/g
25672 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25673 D["\1"]=" \3\\\\\\n"\\/p
25674 t cont
25675 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25676 t cont
25677 d
25678 :cont
25679 n
25680 s/.\{148\}/&'"$ac_delim"'/g
25681 t clear
25682 :clear
25683 s/\\$//
25684 t bsnlc
25685 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25686 d
25687 :bsnlc
25688 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25689 b cont
25690 ' <confdefs.h | sed '
25691 s/'"$ac_delim"'/"\\\
25692 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25693
25694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25695 for (key in D) D_is_set[key] = 1
25696 FS = "\a"
25697 }
25698 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25699 line = \$ 0
25700 split(line, arg, " ")
25701 if (arg[1] == "#") {
25702 defundef = arg[2]
25703 mac1 = arg[3]
25704 } else {
25705 defundef = substr(arg[1], 2)
25706 mac1 = arg[2]
25707 }
25708 split(mac1, mac2, "(") #)
25709 macro = mac2[1]
25710 prefix = substr(line, 1, index(line, defundef) - 1)
25711 if (D_is_set[macro]) {
25712 # Preserve the white space surrounding the "#".
25713 print prefix "define", macro P[macro] D[macro]
25714 next
25715 } else {
25716 # Replace #undef with comments. This is necessary, for example,
25717 # in the case of _POSIX_SOURCE, which is predefined and required
25718 # on some systems where configure will not decide to define it.
25719 if (defundef == "undef") {
25720 print "/*", prefix defundef, macro, "*/"
25721 next
25722 }
25723 }
25724 }
25725 { print }
25726 _ACAWK
25727 _ACEOF
25728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25729 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
25730 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
25731 { (exit 1); exit 1; }; }
25732 fi # test -n "$CONFIG_HEADERS"
25733
25734
25735 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25736 shift
25737 for ac_tag
25738 do
25739 case $ac_tag in
25740 :[FHLC]) ac_mode=$ac_tag; continue;;
25741 esac
25742 case $ac_mode$ac_tag in
25743 :[FHL]*:*);;
25744 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
25745 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
25746 { (exit 1); exit 1; }; };;
25747 :[FH]-) ac_tag=-:-;;
25748 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25749 esac
25750 ac_save_IFS=$IFS
25751 IFS=:
25752 set x $ac_tag
25753 IFS=$ac_save_IFS
25754 shift
25755 ac_file=$1
25756 shift
25757
25758 case $ac_mode in
25759 :L) ac_source=$1;;
25760 :[FH])
25761 ac_file_inputs=
25762 for ac_f
25763 do
25764 case $ac_f in
25765 -) ac_f="$tmp/stdin";;
25766 *) # Look for the file first in the build tree, then in the source tree
25767 # (if the path is not absolute). The absolute path cannot be DOS-style,
25768 # because $ac_f cannot contain `:'.
25769 test -f "$ac_f" ||
25770 case $ac_f in
25771 [\\/$]*) false;;
25772 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25773 esac ||
25774 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25775 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25776 { (exit 1); exit 1; }; };;
25777 esac
25778 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25779 ac_file_inputs="$ac_file_inputs '$ac_f'"
25780 done
25781
25782 # Let's still pretend it is `configure' which instantiates (i.e., don't
25783 # use $as_me), people would be surprised to read:
25784 # /* config.h. Generated by config.status. */
25785 configure_input='Generated from '`
25786 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25787 `' by configure.'
25788 if test x"$ac_file" != x-; then
25789 configure_input="$ac_file. $configure_input"
25790 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
25791 $as_echo "$as_me: creating $ac_file" >&6;}
25792 fi
25793 # Neutralize special characters interpreted by sed in replacement strings.
25794 case $configure_input in #(
25795 *\&* | *\|* | *\\* )
25796 ac_sed_conf_input=`$as_echo "$configure_input" |
25797 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25798 *) ac_sed_conf_input=$configure_input;;
25799 esac
25800
25801 case $ac_tag in
25802 *:-:* | *:-) cat >"$tmp/stdin" \
25803 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25804 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25805 { (exit 1); exit 1; }; } ;;
25806 esac
25807 ;;
25808 esac
25809
25810 ac_dir=`$as_dirname -- "$ac_file" ||
25811 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25812 X"$ac_file" : 'X\(//\)[^/]' \| \
25813 X"$ac_file" : 'X\(//\)$' \| \
25814 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25815 $as_echo X"$ac_file" |
25816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25817 s//\1/
25818 q
25819 }
25820 /^X\(\/\/\)[^/].*/{
25821 s//\1/
25822 q
25823 }
25824 /^X\(\/\/\)$/{
25825 s//\1/
25826 q
25827 }
25828 /^X\(\/\).*/{
25829 s//\1/
25830 q
25831 }
25832 s/.*/./; q'`
25833 { as_dir="$ac_dir"
25834 case $as_dir in #(
25835 -*) as_dir=./$as_dir;;
25836 esac
25837 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25838 as_dirs=
25839 while :; do
25840 case $as_dir in #(
25841 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25842 *) as_qdir=$as_dir;;
25843 esac
25844 as_dirs="'$as_qdir' $as_dirs"
25845 as_dir=`$as_dirname -- "$as_dir" ||
25846 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25847 X"$as_dir" : 'X\(//\)[^/]' \| \
25848 X"$as_dir" : 'X\(//\)$' \| \
25849 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25850 $as_echo X"$as_dir" |
25851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25852 s//\1/
25853 q
25854 }
25855 /^X\(\/\/\)[^/].*/{
25856 s//\1/
25857 q
25858 }
25859 /^X\(\/\/\)$/{
25860 s//\1/
25861 q
25862 }
25863 /^X\(\/\).*/{
25864 s//\1/
25865 q
25866 }
25867 s/.*/./; q'`
25868 test -d "$as_dir" && break
25869 done
25870 test -z "$as_dirs" || eval "mkdir $as_dirs"
25871 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25872 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25873 { (exit 1); exit 1; }; }; }
25874 ac_builddir=.
25875
25876 case "$ac_dir" in
25877 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25878 *)
25879 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25880 # A ".." for each directory in $ac_dir_suffix.
25881 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25882 case $ac_top_builddir_sub in
25883 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25884 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25885 esac ;;
25886 esac
25887 ac_abs_top_builddir=$ac_pwd
25888 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25889 # for backward compatibility:
25890 ac_top_builddir=$ac_top_build_prefix
25891
25892 case $srcdir in
25893 .) # We are building in place.
25894 ac_srcdir=.
25895 ac_top_srcdir=$ac_top_builddir_sub
25896 ac_abs_top_srcdir=$ac_pwd ;;
25897 [\\/]* | ?:[\\/]* ) # Absolute name.
25898 ac_srcdir=$srcdir$ac_dir_suffix;
25899 ac_top_srcdir=$srcdir
25900 ac_abs_top_srcdir=$srcdir ;;
25901 *) # Relative name.
25902 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25903 ac_top_srcdir=$ac_top_build_prefix$srcdir
25904 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25905 esac
25906 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25907
25908
25909 case $ac_mode in
25910 :F)
25911 #
25912 # CONFIG_FILE
25913 #
25914
25915 case $INSTALL in
25916 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25917 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25918 esac
25919 ac_MKDIR_P=$MKDIR_P
25920 case $MKDIR_P in
25921 [\\/$]* | ?:[\\/]* ) ;;
25922 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25923 esac
25924 _ACEOF
25925
25926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25927 # If the template does not know about datarootdir, expand it.
25928 # FIXME: This hack should be removed a few years after 2.60.
25929 ac_datarootdir_hack=; ac_datarootdir_seen=
25930
25931 ac_sed_dataroot='
25932 /datarootdir/ {
25933 p
25934 q
25935 }
25936 /@datadir@/p
25937 /@docdir@/p
25938 /@infodir@/p
25939 /@localedir@/p
25940 /@mandir@/p
25941 '
25942 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25943 *datarootdir*) ac_datarootdir_seen=yes;;
25944 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25945 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25946 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25947 _ACEOF
25948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25949 ac_datarootdir_hack='
25950 s&@datadir@&$datadir&g
25951 s&@docdir@&$docdir&g
25952 s&@infodir@&$infodir&g
25953 s&@localedir@&$localedir&g
25954 s&@mandir@&$mandir&g
25955 s&\\\${datarootdir}&$datarootdir&g' ;;
25956 esac
25957 _ACEOF
25958
25959 # Neutralize VPATH when `$srcdir' = `.'.
25960 # Shell code in configure.ac might set extrasub.
25961 # FIXME: do we really want to maintain this feature?
25962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25963 ac_sed_extra="$ac_vpsub
25964 $extrasub
25965 _ACEOF
25966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25967 :t
25968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25969 s|@configure_input@|$ac_sed_conf_input|;t t
25970 s&@top_builddir@&$ac_top_builddir_sub&;t t
25971 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25972 s&@srcdir@&$ac_srcdir&;t t
25973 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25974 s&@top_srcdir@&$ac_top_srcdir&;t t
25975 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25976 s&@builddir@&$ac_builddir&;t t
25977 s&@abs_builddir@&$ac_abs_builddir&;t t
25978 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25979 s&@INSTALL@&$ac_INSTALL&;t t
25980 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25981 $ac_datarootdir_hack
25982 "
25983 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
25984 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25985 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25986 { (exit 1); exit 1; }; }
25987
25988 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25989 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25990 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25991 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25992 which seems to be undefined. Please make sure it is defined." >&5
25993 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25994 which seems to be undefined. Please make sure it is defined." >&2;}
25995
25996 rm -f "$tmp/stdin"
25997 case $ac_file in
25998 -) cat "$tmp/out" && rm -f "$tmp/out";;
25999 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26000 esac \
26001 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26002 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26003 { (exit 1); exit 1; }; }
26004 ;;
26005 :H)
26006 #
26007 # CONFIG_HEADER
26008 #
26009 if test x"$ac_file" != x-; then
26010 {
26011 $as_echo "/* $configure_input */" \
26012 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26013 } >"$tmp/config.h" \
26014 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26015 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26016 { (exit 1); exit 1; }; }
26017 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26018 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26019 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26020 else
26021 rm -f "$ac_file"
26022 mv "$tmp/config.h" "$ac_file" \
26023 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26024 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26025 { (exit 1); exit 1; }; }
26026 fi
26027 else
26028 $as_echo "/* $configure_input */" \
26029 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26030 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26031 $as_echo "$as_me: error: could not create -" >&2;}
26032 { (exit 1); exit 1; }; }
26033 fi
26034 # Compute "$ac_file"'s index in $config_headers.
26035 _am_arg="$ac_file"
26036 _am_stamp_count=1
26037 for _am_header in $config_headers :; do
26038 case $_am_header in
26039 $_am_arg | $_am_arg:* )
26040 break ;;
26041 * )
26042 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26043 esac
26044 done
26045 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26046 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26047 X"$_am_arg" : 'X\(//\)[^/]' \| \
26048 X"$_am_arg" : 'X\(//\)$' \| \
26049 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26050 $as_echo X"$_am_arg" |
26051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26052 s//\1/
26053 q
26054 }
26055 /^X\(\/\/\)[^/].*/{
26056 s//\1/
26057 q
26058 }
26059 /^X\(\/\/\)$/{
26060 s//\1/
26061 q
26062 }
26063 /^X\(\/\).*/{
26064 s//\1/
26065 q
26066 }
26067 s/.*/./; q'`/stamp-h$_am_stamp_count
26068 ;;
26069
26070 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26071 $as_echo "$as_me: executing $ac_file commands" >&6;}
26072 ;;
26073 esac
26074
26075
26076 case $ac_file$ac_mode in
26077 "zfs_config.h":H)
26078 (mv zfs_config.h zfs_config.h.tmp &&
26079 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
26080 rm zfs_config.h.tmp) || exit 1 ;;
26081 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26082 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26083 # are listed without --file. Let's play safe and only enable the eval
26084 # if we detect the quoting.
26085 case $CONFIG_FILES in
26086 *\'*) eval set x "$CONFIG_FILES" ;;
26087 *) set x $CONFIG_FILES ;;
26088 esac
26089 shift
26090 for mf
26091 do
26092 # Strip MF so we end up with the name of the file.
26093 mf=`echo "$mf" | sed -e 's/:.*$//'`
26094 # Check whether this is an Automake generated Makefile or not.
26095 # We used to match only the files named `Makefile.in', but
26096 # some people rename them; so instead we look at the file content.
26097 # Grep'ing the first line is not enough: some people post-process
26098 # each Makefile.in and add a new line on top of each file to say so.
26099 # Grep'ing the whole file is not good either: AIX grep has a line
26100 # limit of 2048, but all sed's we know have understand at least 4000.
26101 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26102 dirpart=`$as_dirname -- "$mf" ||
26103 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26104 X"$mf" : 'X\(//\)[^/]' \| \
26105 X"$mf" : 'X\(//\)$' \| \
26106 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26107 $as_echo X"$mf" |
26108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26109 s//\1/
26110 q
26111 }
26112 /^X\(\/\/\)[^/].*/{
26113 s//\1/
26114 q
26115 }
26116 /^X\(\/\/\)$/{
26117 s//\1/
26118 q
26119 }
26120 /^X\(\/\).*/{
26121 s//\1/
26122 q
26123 }
26124 s/.*/./; q'`
26125 else
26126 continue
26127 fi
26128 # Extract the definition of DEPDIR, am__include, and am__quote
26129 # from the Makefile without running `make'.
26130 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26131 test -z "$DEPDIR" && continue
26132 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26133 test -z "am__include" && continue
26134 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26135 # When using ansi2knr, U may be empty or an underscore; expand it
26136 U=`sed -n 's/^U = //p' < "$mf"`
26137 # Find all dependency output files, they are included files with
26138 # $(DEPDIR) in their names. We invoke sed twice because it is the
26139 # simplest approach to changing $(DEPDIR) to its actual value in the
26140 # expansion.
26141 for file in `sed -n "
26142 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26143 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26144 # Make sure the directory exists.
26145 test -f "$dirpart/$file" && continue
26146 fdir=`$as_dirname -- "$file" ||
26147 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26148 X"$file" : 'X\(//\)[^/]' \| \
26149 X"$file" : 'X\(//\)$' \| \
26150 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26151 $as_echo X"$file" |
26152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26153 s//\1/
26154 q
26155 }
26156 /^X\(\/\/\)[^/].*/{
26157 s//\1/
26158 q
26159 }
26160 /^X\(\/\/\)$/{
26161 s//\1/
26162 q
26163 }
26164 /^X\(\/\).*/{
26165 s//\1/
26166 q
26167 }
26168 s/.*/./; q'`
26169 { as_dir=$dirpart/$fdir
26170 case $as_dir in #(
26171 -*) as_dir=./$as_dir;;
26172 esac
26173 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26174 as_dirs=
26175 while :; do
26176 case $as_dir in #(
26177 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26178 *) as_qdir=$as_dir;;
26179 esac
26180 as_dirs="'$as_qdir' $as_dirs"
26181 as_dir=`$as_dirname -- "$as_dir" ||
26182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26183 X"$as_dir" : 'X\(//\)[^/]' \| \
26184 X"$as_dir" : 'X\(//\)$' \| \
26185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26186 $as_echo X"$as_dir" |
26187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26188 s//\1/
26189 q
26190 }
26191 /^X\(\/\/\)[^/].*/{
26192 s//\1/
26193 q
26194 }
26195 /^X\(\/\/\)$/{
26196 s//\1/
26197 q
26198 }
26199 /^X\(\/\).*/{
26200 s//\1/
26201 q
26202 }
26203 s/.*/./; q'`
26204 test -d "$as_dir" && break
26205 done
26206 test -z "$as_dirs" || eval "mkdir $as_dirs"
26207 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26208 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26209 { (exit 1); exit 1; }; }; }
26210 # echo "creating $dirpart/$file"
26211 echo '# dummy' > "$dirpart/$file"
26212 done
26213 done
26214 }
26215 ;;
26216 "libtool":C)
26217
26218 # See if we are running on zsh, and set the options which allow our
26219 # commands through without removal of \ escapes.
26220 if test -n "${ZSH_VERSION+set}" ; then
26221 setopt NO_GLOB_SUBST
26222 fi
26223
26224 cfgfile="${ofile}T"
26225 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26226 $RM "$cfgfile"
26227
26228 cat <<_LT_EOF >> "$cfgfile"
26229 #! $SHELL
26230
26231 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26232 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26233 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26234 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26235 #
26236 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26237 # 2006, 2007, 2008 Free Software Foundation, Inc.
26238 # Written by Gordon Matzigkeit, 1996
26239 #
26240 # This file is part of GNU Libtool.
26241 #
26242 # GNU Libtool is free software; you can redistribute it and/or
26243 # modify it under the terms of the GNU General Public License as
26244 # published by the Free Software Foundation; either version 2 of
26245 # the License, or (at your option) any later version.
26246 #
26247 # As a special exception to the GNU General Public License,
26248 # if you distribute this file as part of a program or library that
26249 # is built using GNU Libtool, you may include this file under the
26250 # same distribution terms that you use for the rest of that program.
26251 #
26252 # GNU Libtool is distributed in the hope that it will be useful,
26253 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26254 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26255 # GNU General Public License for more details.
26256 #
26257 # You should have received a copy of the GNU General Public License
26258 # along with GNU Libtool; see the file COPYING. If not, a copy
26259 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26260 # obtained by writing to the Free Software Foundation, Inc.,
26261 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26262
26263
26264 # The names of the tagged configurations supported by this script.
26265 available_tags=""
26266
26267 # ### BEGIN LIBTOOL CONFIG
26268
26269 # Which release of libtool.m4 was used?
26270 macro_version=$macro_version
26271 macro_revision=$macro_revision
26272
26273 # Whether or not to build shared libraries.
26274 build_libtool_libs=$enable_shared
26275
26276 # Whether or not to build static libraries.
26277 build_old_libs=$enable_static
26278
26279 # What type of objects to build.
26280 pic_mode=$pic_mode
26281
26282 # Whether or not to optimize for fast installation.
26283 fast_install=$enable_fast_install
26284
26285 # The host system.
26286 host_alias=$host_alias
26287 host=$host
26288 host_os=$host_os
26289
26290 # The build system.
26291 build_alias=$build_alias
26292 build=$build
26293 build_os=$build_os
26294
26295 # A sed program that does not truncate output.
26296 SED=$lt_SED
26297
26298 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26299 Xsed="\$SED -e 1s/^X//"
26300
26301 # A grep program that handles long lines.
26302 GREP=$lt_GREP
26303
26304 # An ERE matcher.
26305 EGREP=$lt_EGREP
26306
26307 # A literal string matcher.
26308 FGREP=$lt_FGREP
26309
26310 # A BSD- or MS-compatible name lister.
26311 NM=$lt_NM
26312
26313 # Whether we need soft or hard links.
26314 LN_S=$lt_LN_S
26315
26316 # What is the maximum length of a command?
26317 max_cmd_len=$max_cmd_len
26318
26319 # Object file suffix (normally "o").
26320 objext=$ac_objext
26321
26322 # Executable file suffix (normally "").
26323 exeext=$exeext
26324
26325 # whether the shell understands "unset".
26326 lt_unset=$lt_unset
26327
26328 # turn spaces into newlines.
26329 SP2NL=$lt_lt_SP2NL
26330
26331 # turn newlines into spaces.
26332 NL2SP=$lt_lt_NL2SP
26333
26334 # How to create reloadable object files.
26335 reload_flag=$lt_reload_flag
26336 reload_cmds=$lt_reload_cmds
26337
26338 # An object symbol dumper.
26339 OBJDUMP=$lt_OBJDUMP
26340
26341 # Method to check whether dependent libraries are shared objects.
26342 deplibs_check_method=$lt_deplibs_check_method
26343
26344 # Command to use when deplibs_check_method == "file_magic".
26345 file_magic_cmd=$lt_file_magic_cmd
26346
26347 # The archiver.
26348 AR=$lt_AR
26349 AR_FLAGS=$lt_AR_FLAGS
26350
26351 # A symbol stripping program.
26352 STRIP=$lt_STRIP
26353
26354 # Commands used to install an old-style archive.
26355 RANLIB=$lt_RANLIB
26356 old_postinstall_cmds=$lt_old_postinstall_cmds
26357 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26358
26359 # A C compiler.
26360 LTCC=$lt_CC
26361
26362 # LTCC compiler flags.
26363 LTCFLAGS=$lt_CFLAGS
26364
26365 # Take the output of nm and produce a listing of raw symbols and C names.
26366 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26367
26368 # Transform the output of nm in a proper C declaration.
26369 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26370
26371 # Transform the output of nm in a C name address pair.
26372 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26373
26374 # Transform the output of nm in a C name address pair when lib prefix is needed.
26375 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26376
26377 # The name of the directory that contains temporary libtool files.
26378 objdir=$objdir
26379
26380 # Shell to use when invoking shell scripts.
26381 SHELL=$lt_SHELL
26382
26383 # An echo program that does not interpret backslashes.
26384 ECHO=$lt_ECHO
26385
26386 # Used to examine libraries when file_magic_cmd begins with "file".
26387 MAGIC_CMD=$MAGIC_CMD
26388
26389 # Must we lock files when doing compilation?
26390 need_locks=$lt_need_locks
26391
26392 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26393 DSYMUTIL=$lt_DSYMUTIL
26394
26395 # Tool to change global to local symbols on Mac OS X.
26396 NMEDIT=$lt_NMEDIT
26397
26398 # Tool to manipulate fat objects and archives on Mac OS X.
26399 LIPO=$lt_LIPO
26400
26401 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26402 OTOOL=$lt_OTOOL
26403
26404 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26405 OTOOL64=$lt_OTOOL64
26406
26407 # Old archive suffix (normally "a").
26408 libext=$libext
26409
26410 # Shared library suffix (normally ".so").
26411 shrext_cmds=$lt_shrext_cmds
26412
26413 # The commands to extract the exported symbol list from a shared archive.
26414 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26415
26416 # Variables whose values should be saved in libtool wrapper scripts and
26417 # restored at link time.
26418 variables_saved_for_relink=$lt_variables_saved_for_relink
26419
26420 # Do we need the "lib" prefix for modules?
26421 need_lib_prefix=$need_lib_prefix
26422
26423 # Do we need a version for libraries?
26424 need_version=$need_version
26425
26426 # Library versioning type.
26427 version_type=$version_type
26428
26429 # Shared library runtime path variable.
26430 runpath_var=$runpath_var
26431
26432 # Shared library path variable.
26433 shlibpath_var=$shlibpath_var
26434
26435 # Is shlibpath searched before the hard-coded library search path?
26436 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26437
26438 # Format of library name prefix.
26439 libname_spec=$lt_libname_spec
26440
26441 # List of archive names. First name is the real one, the rest are links.
26442 # The last name is the one that the linker finds with -lNAME
26443 library_names_spec=$lt_library_names_spec
26444
26445 # The coded name of the library, if different from the real name.
26446 soname_spec=$lt_soname_spec
26447
26448 # Command to use after installation of a shared archive.
26449 postinstall_cmds=$lt_postinstall_cmds
26450
26451 # Command to use after uninstallation of a shared archive.
26452 postuninstall_cmds=$lt_postuninstall_cmds
26453
26454 # Commands used to finish a libtool library installation in a directory.
26455 finish_cmds=$lt_finish_cmds
26456
26457 # As "finish_cmds", except a single script fragment to be evaled but
26458 # not shown.
26459 finish_eval=$lt_finish_eval
26460
26461 # Whether we should hardcode library paths into libraries.
26462 hardcode_into_libs=$hardcode_into_libs
26463
26464 # Compile-time system search path for libraries.
26465 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26466
26467 # Run-time system search path for libraries.
26468 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26469
26470 # Whether dlopen is supported.
26471 dlopen_support=$enable_dlopen
26472
26473 # Whether dlopen of programs is supported.
26474 dlopen_self=$enable_dlopen_self
26475
26476 # Whether dlopen of statically linked programs is supported.
26477 dlopen_self_static=$enable_dlopen_self_static
26478
26479 # Commands to strip libraries.
26480 old_striplib=$lt_old_striplib
26481 striplib=$lt_striplib
26482
26483
26484 # The linker used to build libraries.
26485 LD=$lt_LD
26486
26487 # Commands used to build an old-style archive.
26488 old_archive_cmds=$lt_old_archive_cmds
26489
26490 # A language specific compiler.
26491 CC=$lt_compiler
26492
26493 # Is the compiler the GNU compiler?
26494 with_gcc=$GCC
26495
26496 # Compiler flag to turn off builtin functions.
26497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26498
26499 # How to pass a linker flag through the compiler.
26500 wl=$lt_lt_prog_compiler_wl
26501
26502 # Additional compiler flags for building library objects.
26503 pic_flag=$lt_lt_prog_compiler_pic
26504
26505 # Compiler flag to prevent dynamic linking.
26506 link_static_flag=$lt_lt_prog_compiler_static
26507
26508 # Does compiler simultaneously support -c and -o options?
26509 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26510
26511 # Whether or not to add -lc for building shared libraries.
26512 build_libtool_need_lc=$archive_cmds_need_lc
26513
26514 # Whether or not to disallow shared libs when runtime libs are static.
26515 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26516
26517 # Compiler flag to allow reflexive dlopens.
26518 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26519
26520 # Compiler flag to generate shared objects directly from archives.
26521 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26522
26523 # Whether the compiler copes with passing no objects directly.
26524 compiler_needs_object=$lt_compiler_needs_object
26525
26526 # Create an old-style archive from a shared archive.
26527 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26528
26529 # Create a temporary old-style archive to link instead of a shared archive.
26530 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26531
26532 # Commands used to build a shared archive.
26533 archive_cmds=$lt_archive_cmds
26534 archive_expsym_cmds=$lt_archive_expsym_cmds
26535
26536 # Commands used to build a loadable module if different from building
26537 # a shared archive.
26538 module_cmds=$lt_module_cmds
26539 module_expsym_cmds=$lt_module_expsym_cmds
26540
26541 # Whether we are building with GNU ld or not.
26542 with_gnu_ld=$lt_with_gnu_ld
26543
26544 # Flag that allows shared libraries with undefined symbols to be built.
26545 allow_undefined_flag=$lt_allow_undefined_flag
26546
26547 # Flag that enforces no undefined symbols.
26548 no_undefined_flag=$lt_no_undefined_flag
26549
26550 # Flag to hardcode \$libdir into a binary during linking.
26551 # This must work even if \$libdir does not exist
26552 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26553
26554 # If ld is used when linking, flag to hardcode \$libdir into a binary
26555 # during linking. This must work even if \$libdir does not exist.
26556 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26557
26558 # Whether we need a single "-rpath" flag with a separated argument.
26559 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26560
26561 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26562 # DIR into the resulting binary.
26563 hardcode_direct=$hardcode_direct
26564
26565 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26566 # DIR into the resulting binary and the resulting library dependency is
26567 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26568 # library is relocated.
26569 hardcode_direct_absolute=$hardcode_direct_absolute
26570
26571 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26572 # into the resulting binary.
26573 hardcode_minus_L=$hardcode_minus_L
26574
26575 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26576 # into the resulting binary.
26577 hardcode_shlibpath_var=$hardcode_shlibpath_var
26578
26579 # Set to "yes" if building a shared library automatically hardcodes DIR
26580 # into the library and all subsequent libraries and executables linked
26581 # against it.
26582 hardcode_automatic=$hardcode_automatic
26583
26584 # Set to yes if linker adds runtime paths of dependent libraries
26585 # to runtime path list.
26586 inherit_rpath=$inherit_rpath
26587
26588 # Whether libtool must link a program against all its dependency libraries.
26589 link_all_deplibs=$link_all_deplibs
26590
26591 # Fix the shell variable \$srcfile for the compiler.
26592 fix_srcfile_path=$lt_fix_srcfile_path
26593
26594 # Set to "yes" if exported symbols are required.
26595 always_export_symbols=$always_export_symbols
26596
26597 # The commands to list exported symbols.
26598 export_symbols_cmds=$lt_export_symbols_cmds
26599
26600 # Symbols that should not be listed in the preloaded symbols.
26601 exclude_expsyms=$lt_exclude_expsyms
26602
26603 # Symbols that must always be exported.
26604 include_expsyms=$lt_include_expsyms
26605
26606 # Commands necessary for linking programs (against libraries) with templates.
26607 prelink_cmds=$lt_prelink_cmds
26608
26609 # Specify filename containing input files.
26610 file_list_spec=$lt_file_list_spec
26611
26612 # How to hardcode a shared library path into an executable.
26613 hardcode_action=$hardcode_action
26614
26615 # ### END LIBTOOL CONFIG
26616
26617 _LT_EOF
26618
26619 case $host_os in
26620 aix3*)
26621 cat <<\_LT_EOF >> "$cfgfile"
26622 # AIX sometimes has problems with the GCC collect2 program. For some
26623 # reason, if we set the COLLECT_NAMES environment variable, the problems
26624 # vanish in a puff of smoke.
26625 if test "X${COLLECT_NAMES+set}" != Xset; then
26626 COLLECT_NAMES=
26627 export COLLECT_NAMES
26628 fi
26629 _LT_EOF
26630 ;;
26631 esac
26632
26633
26634 ltmain="$ac_aux_dir/ltmain.sh"
26635
26636
26637 # We use sed instead of cat because bash on DJGPP gets confused if
26638 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26639 # text mode, it properly converts lines to CR/LF. This bash problem
26640 # is reportedly fixed, but why not run on old versions too?
26641 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
26642 || (rm -f "$cfgfile"; exit 1)
26643
26644 case $xsi_shell in
26645 yes)
26646 cat << \_LT_EOF >> "$cfgfile"
26647
26648 # func_dirname file append nondir_replacement
26649 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26650 # otherwise set result to NONDIR_REPLACEMENT.
26651 func_dirname ()
26652 {
26653 case ${1} in
26654 */*) func_dirname_result="${1%/*}${2}" ;;
26655 * ) func_dirname_result="${3}" ;;
26656 esac
26657 }
26658
26659 # func_basename file
26660 func_basename ()
26661 {
26662 func_basename_result="${1##*/}"
26663 }
26664
26665 # func_dirname_and_basename file append nondir_replacement
26666 # perform func_basename and func_dirname in a single function
26667 # call:
26668 # dirname: Compute the dirname of FILE. If nonempty,
26669 # add APPEND to the result, otherwise set result
26670 # to NONDIR_REPLACEMENT.
26671 # value returned in "$func_dirname_result"
26672 # basename: Compute filename of FILE.
26673 # value retuned in "$func_basename_result"
26674 # Implementation must be kept synchronized with func_dirname
26675 # and func_basename. For efficiency, we do not delegate to
26676 # those functions but instead duplicate the functionality here.
26677 func_dirname_and_basename ()
26678 {
26679 case ${1} in
26680 */*) func_dirname_result="${1%/*}${2}" ;;
26681 * ) func_dirname_result="${3}" ;;
26682 esac
26683 func_basename_result="${1##*/}"
26684 }
26685
26686 # func_stripname prefix suffix name
26687 # strip PREFIX and SUFFIX off of NAME.
26688 # PREFIX and SUFFIX must not contain globbing or regex special
26689 # characters, hashes, percent signs, but SUFFIX may contain a leading
26690 # dot (in which case that matches only a dot).
26691 func_stripname ()
26692 {
26693 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
26694 # positional parameters, so assign one to ordinary parameter first.
26695 func_stripname_result=${3}
26696 func_stripname_result=${func_stripname_result#"${1}"}
26697 func_stripname_result=${func_stripname_result%"${2}"}
26698 }
26699
26700 # func_opt_split
26701 func_opt_split ()
26702 {
26703 func_opt_split_opt=${1%%=*}
26704 func_opt_split_arg=${1#*=}
26705 }
26706
26707 # func_lo2o object
26708 func_lo2o ()
26709 {
26710 case ${1} in
26711 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
26712 *) func_lo2o_result=${1} ;;
26713 esac
26714 }
26715
26716 # func_xform libobj-or-source
26717 func_xform ()
26718 {
26719 func_xform_result=${1%.*}.lo
26720 }
26721
26722 # func_arith arithmetic-term...
26723 func_arith ()
26724 {
26725 func_arith_result=$(( $* ))
26726 }
26727
26728 # func_len string
26729 # STRING may not start with a hyphen.
26730 func_len ()
26731 {
26732 func_len_result=${#1}
26733 }
26734
26735 _LT_EOF
26736 ;;
26737 *) # Bourne compatible functions.
26738 cat << \_LT_EOF >> "$cfgfile"
26739
26740 # func_dirname file append nondir_replacement
26741 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26742 # otherwise set result to NONDIR_REPLACEMENT.
26743 func_dirname ()
26744 {
26745 # Extract subdirectory from the argument.
26746 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
26747 if test "X$func_dirname_result" = "X${1}"; then
26748 func_dirname_result="${3}"
26749 else
26750 func_dirname_result="$func_dirname_result${2}"
26751 fi
26752 }
26753
26754 # func_basename file
26755 func_basename ()
26756 {
26757 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
26758 }
26759
26760
26761 # func_stripname prefix suffix name
26762 # strip PREFIX and SUFFIX off of NAME.
26763 # PREFIX and SUFFIX must not contain globbing or regex special
26764 # characters, hashes, percent signs, but SUFFIX may contain a leading
26765 # dot (in which case that matches only a dot).
26766 # func_strip_suffix prefix name
26767 func_stripname ()
26768 {
26769 case ${2} in
26770 .*) func_stripname_result=`$ECHO "X${3}" \
26771 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
26772 *) func_stripname_result=`$ECHO "X${3}" \
26773 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
26774 esac
26775 }
26776
26777 # sed scripts:
26778 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
26779 my_sed_long_arg='1s/^-[^=]*=//'
26780
26781 # func_opt_split
26782 func_opt_split ()
26783 {
26784 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
26785 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
26786 }
26787
26788 # func_lo2o object
26789 func_lo2o ()
26790 {
26791 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
26792 }
26793
26794 # func_xform libobj-or-source
26795 func_xform ()
26796 {
26797 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
26798 }
26799
26800 # func_arith arithmetic-term...
26801 func_arith ()
26802 {
26803 func_arith_result=`expr "$@"`
26804 }
26805
26806 # func_len string
26807 # STRING may not start with a hyphen.
26808 func_len ()
26809 {
26810 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
26811 }
26812
26813 _LT_EOF
26814 esac
26815
26816 case $lt_shell_append in
26817 yes)
26818 cat << \_LT_EOF >> "$cfgfile"
26819
26820 # func_append var value
26821 # Append VALUE to the end of shell variable VAR.
26822 func_append ()
26823 {
26824 eval "$1+=\$2"
26825 }
26826 _LT_EOF
26827 ;;
26828 *)
26829 cat << \_LT_EOF >> "$cfgfile"
26830
26831 # func_append var value
26832 # Append VALUE to the end of shell variable VAR.
26833 func_append ()
26834 {
26835 eval "$1=\$$1\$2"
26836 }
26837
26838 _LT_EOF
26839 ;;
26840 esac
26841
26842
26843 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
26844 || (rm -f "$cfgfile"; exit 1)
26845
26846 mv -f "$cfgfile" "$ofile" ||
26847 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26848 chmod +x "$ofile"
26849
26850 ;;
26851
26852 esac
26853 done # for ac_tag
26854
26855
26856 { (exit 0); exit 0; }
26857 _ACEOF
26858 chmod +x $CONFIG_STATUS
26859 ac_clean_files=$ac_clean_files_save
26860
26861 test $ac_write_fail = 0 ||
26862 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26863 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26864 { (exit 1); exit 1; }; }
26865
26866
26867 # configure is writing to config.log, and then calls config.status.
26868 # config.status does its own redirection, appending to config.log.
26869 # Unfortunately, on DOS this fails, as config.log is still kept open
26870 # by configure, so config.status won't be able to write to it; its
26871 # output is simply discarded. So we exec the FD to /dev/null,
26872 # effectively closing config.log, so it can be properly (re)opened and
26873 # appended to by config.status. When coming back to configure, we
26874 # need to make the FD available again.
26875 if test "$no_create" != yes; then
26876 ac_cs_success=:
26877 ac_config_status_args=
26878 test "$silent" = yes &&
26879 ac_config_status_args="$ac_config_status_args --quiet"
26880 exec 5>/dev/null
26881 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26882 exec 5>>config.log
26883 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26884 # would make configure fail if this is the last instruction.
26885 $ac_cs_success || { (exit 1); exit 1; }
26886 fi
26887 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26888 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26889 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26890 fi
26891