]> git.proxmox.com Git - mirror_zfs-debian.git/blame - configure
Improve ZVOL queue behavior.
[mirror_zfs-debian.git] / configure
CommitLineData
e70e591c
BB
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
14DUALCASE=1; export DUALCASE # for MKS sh
15if 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
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (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'
50else
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'
70fi
71
72# The user is always right.
73if 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 }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
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.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
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.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if 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; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_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
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
178fi
179
180 if test $as_have_required = yes && (eval ":
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$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 :
238else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
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
251done
252IFS=$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
259if 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
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
271fi
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
280if 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
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $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
355fi
356
357fi
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+"$@"}
367fi
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; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$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
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `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';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (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
530else
531 as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
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 '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_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.
570as_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.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$lt_ECHO in
579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583esac
584
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if 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
607fi
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
613if 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
711fi
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.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 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.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
743# Identity of this package.
744PACKAGE_NAME=
745PACKAGE_TARNAME=
746PACKAGE_VERSION=
747PACKAGE_STRING=
748PACKAGE_BUGREPORT=
749
750# Factoring default headers for most tests.
751ac_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
786ac_subst_vars='am__EXEEXT_FALSE
787am__EXEEXT_TRUE
788LTLIBOBJS
789LIBOBJS
790DEBUG_STACKFLAGS
791DEBUG_CFLAGS
792CONFIG_KERNEL_FALSE
793CONFIG_KERNEL_TRUE
794CONFIG_USER_FALSE
795CONFIG_USER_TRUE
796FRAME_LARGER_THAN
b3259b6a 797LIBSELINUX
e70e591c
BB
798LIBBLKID
799LIBUUID
800ZLIB
de0a1c09
BB
801udevruledir
802udevdir
e70e591c
BB
803KERNELCPPFLAGS
804KERNELMAKE_PARAMS
805SPL_SYMBOLS
806SPL_VERSION
807SPL_OBJ
808SPL
809LINUX_SYMBOLS
810LINUX_VERSION
811LINUX_OBJ
812LINUX
2e08aedb 813NO_UNUSED_BUT_SET_VARIABLE
e70e591c
BB
814ZFS_CONFIG
815TARGET_ASM_DIR
6ba3b446
PS
816MAKEPKG_VERSION
817MAKEPKG
818HAVE_MAKEPKG
819PACMAN_VERSION
820PACMAN
821HAVE_PACMAN
e70e591c
BB
822ALIEN_VERSION
823ALIEN
824HAVE_ALIEN
825DPKGBUILD_VERSION
826DPKGBUILD
827HAVE_DPKGBUILD
828DPKG_VERSION
829DPKG
830HAVE_DPKG
831RPMBUILD_VERSION
832RPMBUILD
833HAVE_RPMBUILD
834RPM_VERSION
835RPM
836HAVE_RPM
58d956b0
PS
837DEFAULT_INIT_SCRIPT
838DEFAULT_INIT_DIR
839DEFAULT_PACKAGE
840VENDOR
e70e591c
BB
841am__fastdepCCAS_FALSE
842am__fastdepCCAS_TRUE
843CCASDEPMODE
844CCASFLAGS
845CCAS
846CPP
847OTOOL64
848OTOOL
849LIPO
850NMEDIT
851DSYMUTIL
852lt_ECHO
853RANLIB
854AR
855OBJDUMP
856LN_S
857NM
858ac_ct_DUMPBIN
859DUMPBIN
860LD
861FGREP
862EGREP
863GREP
864SED
865LIBTOOL
866am__fastdepCC_FALSE
867am__fastdepCC_TRUE
868CCDEPMODE
869AMDEPBACKSLASH
870AMDEP_FALSE
871AMDEP_TRUE
872am__quote
873am__include
874DEPDIR
875OBJEXT
876EXEEXT
877ac_ct_CC
878CPPFLAGS
879LDFLAGS
880CFLAGS
881CC
882am__untar
883am__tar
884AMTAR
885am__leading_dot
886SET_MAKE
887AWK
888mkdir_p
889MKDIR_P
890INSTALL_STRIP_PROGRAM
891STRIP
892install_sh
893MAKEINFO
894AUTOHEADER
895AUTOMAKE
896AUTOCONF
897ACLOCAL
898VERSION
899PACKAGE
900CYGPATH_W
901am__isrc
902INSTALL_DATA
903INSTALL_SCRIPT
904INSTALL_PROGRAM
905AM_BACKSLASH
906AM_DEFAULT_VERBOSITY
907MAINT
908MAINTAINER_MODE_FALSE
909MAINTAINER_MODE_TRUE
910target_os
911target_vendor
912target_cpu
913target
914host_os
915host_vendor
916host_cpu
917host
918build_os
919build_vendor
920build_cpu
921build
922ZFS_META_LT_AGE
923ZFS_META_LT_REVISION
924ZFS_META_LT_CURRENT
925ZFS_META_AUTHOR
926ZFS_META_DATA
927ZFS_META_ALIAS
928ZFS_META_LICENSE
929ZFS_META_RELEASE
930ZFS_META_VERSION
931ZFS_META_NAME
932target_alias
933host_alias
934build_alias
935LIBS
936ECHO_T
937ECHO_N
938ECHO_C
939DEFS
940mandir
941localedir
942libdir
943psdir
944pdfdir
945dvidir
946htmldir
947infodir
948docdir
949oldincludedir
950includedir
951localstatedir
952sharedstatedir
953sysconfdir
954datadir
955datarootdir
956libexecdir
957sbindir
958bindir
959program_transform_name
960prefix
961exec_prefix
962PACKAGE_BUGREPORT
963PACKAGE_STRING
964PACKAGE_VERSION
965PACKAGE_TARNAME
966PACKAGE_NAME
967PATH_SEPARATOR
968SHELL'
969ac_subst_files=''
970ac_user_opts='
971enable_option_checking
972enable_maintainer_mode
973enable_silent_rules
974enable_dependency_tracking
975enable_shared
976enable_static
977with_pic
978enable_fast_install
979with_gnu_ld
980enable_libtool_lock
981with_config
982with_linux
983with_linux_obj
984with_spl
985with_spl_obj
de0a1c09
BB
986with_udevdir
987with_udevruledir
e70e591c 988with_blkid
b3259b6a 989with_selinux
e70e591c
BB
990enable_debug
991'
992 ac_precious_vars='build_alias
993host_alias
994target_alias
995CC
996CFLAGS
997LDFLAGS
998LIBS
999CPPFLAGS
1000CPP
1001CCAS
1002CCASFLAGS'
1003
1004
1005# Initialize some variables set by options.
1006ac_init_help=
1007ac_init_version=false
1008ac_unrecognized_opts=
1009ac_unrecognized_sep=
1010# The variables have the same names as the options, with
1011# dashes changed to underlines.
1012cache_file=/dev/null
1013exec_prefix=NONE
1014no_create=
1015no_recursion=
1016prefix=NONE
1017program_prefix=NONE
1018program_suffix=NONE
1019program_transform_name=s,x,x,
1020silent=
1021site=
1022srcdir=
1023verbose=
1024x_includes=NONE
1025x_libraries=NONE
1026
1027# Installation directory options.
1028# These are left unexpanded so users can "make install exec_prefix=/foo"
1029# and all the variables that are supposed to be based on exec_prefix
1030# by default will actually change.
1031# Use braces instead of parens because sh, perl, etc. also accept them.
1032# (The list follows the same order as the GNU Coding Standards.)
1033bindir='${exec_prefix}/bin'
1034sbindir='${exec_prefix}/sbin'
1035libexecdir='${exec_prefix}/libexec'
1036datarootdir='${prefix}/share'
1037datadir='${datarootdir}'
1038sysconfdir='${prefix}/etc'
1039sharedstatedir='${prefix}/com'
1040localstatedir='${prefix}/var'
1041includedir='${prefix}/include'
1042oldincludedir='/usr/include'
1043docdir='${datarootdir}/doc/${PACKAGE}'
1044infodir='${datarootdir}/info'
1045htmldir='${docdir}'
1046dvidir='${docdir}'
1047pdfdir='${docdir}'
1048psdir='${docdir}'
1049libdir='${exec_prefix}/lib'
1050localedir='${datarootdir}/locale'
1051mandir='${datarootdir}/man'
1052
1053ac_prev=
1054ac_dashdash=
1055for ac_option
1056do
1057 # If the previous option needs an argument, assign it.
1058 if test -n "$ac_prev"; then
1059 eval $ac_prev=\$ac_option
1060 ac_prev=
1061 continue
1062 fi
1063
1064 case $ac_option in
1065 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1066 *) ac_optarg=yes ;;
1067 esac
1068
1069 # Accept the important Cygnus configure options, so we can diagnose typos.
1070
1071 case $ac_dashdash$ac_option in
1072 --)
1073 ac_dashdash=yes ;;
1074
1075 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1076 ac_prev=bindir ;;
1077 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1078 bindir=$ac_optarg ;;
1079
1080 -build | --build | --buil | --bui | --bu)
1081 ac_prev=build_alias ;;
1082 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1083 build_alias=$ac_optarg ;;
1084
1085 -cache-file | --cache-file | --cache-fil | --cache-fi \
1086 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1087 ac_prev=cache_file ;;
1088 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1089 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1090 cache_file=$ac_optarg ;;
1091
1092 --config-cache | -C)
1093 cache_file=config.cache ;;
1094
1095 -datadir | --datadir | --datadi | --datad)
1096 ac_prev=datadir ;;
1097 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1098 datadir=$ac_optarg ;;
1099
1100 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1101 | --dataroo | --dataro | --datar)
1102 ac_prev=datarootdir ;;
1103 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1104 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1105 datarootdir=$ac_optarg ;;
1106
1107 -disable-* | --disable-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1112 { (exit 1); exit 1; }; }
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1116 *"
1117"enable_$ac_useropt"
1118"*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval enable_$ac_useropt=no ;;
1123
1124 -docdir | --docdir | --docdi | --doc | --do)
1125 ac_prev=docdir ;;
1126 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1127 docdir=$ac_optarg ;;
1128
1129 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1130 ac_prev=dvidir ;;
1131 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1132 dvidir=$ac_optarg ;;
1133
1134 -enable-* | --enable-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144"enable_$ac_useropt"
1145"*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval enable_$ac_useropt=\$ac_optarg ;;
1150
1151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1153 | --exec | --exe | --ex)
1154 ac_prev=exec_prefix ;;
1155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1157 | --exec=* | --exe=* | --ex=*)
1158 exec_prefix=$ac_optarg ;;
1159
1160 -gas | --gas | --ga | --g)
1161 # Obsolete; use --with-gas.
1162 with_gas=yes ;;
1163
1164 -help | --help | --hel | --he | -h)
1165 ac_init_help=long ;;
1166 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1167 ac_init_help=recursive ;;
1168 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1169 ac_init_help=short ;;
1170
1171 -host | --host | --hos | --ho)
1172 ac_prev=host_alias ;;
1173 -host=* | --host=* | --hos=* | --ho=*)
1174 host_alias=$ac_optarg ;;
1175
1176 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1177 ac_prev=htmldir ;;
1178 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1179 | --ht=*)
1180 htmldir=$ac_optarg ;;
1181
1182 -includedir | --includedir | --includedi | --included | --include \
1183 | --includ | --inclu | --incl | --inc)
1184 ac_prev=includedir ;;
1185 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1186 | --includ=* | --inclu=* | --incl=* | --inc=*)
1187 includedir=$ac_optarg ;;
1188
1189 -infodir | --infodir | --infodi | --infod | --info | --inf)
1190 ac_prev=infodir ;;
1191 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1192 infodir=$ac_optarg ;;
1193
1194 -libdir | --libdir | --libdi | --libd)
1195 ac_prev=libdir ;;
1196 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1197 libdir=$ac_optarg ;;
1198
1199 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1200 | --libexe | --libex | --libe)
1201 ac_prev=libexecdir ;;
1202 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1203 | --libexe=* | --libex=* | --libe=*)
1204 libexecdir=$ac_optarg ;;
1205
1206 -localedir | --localedir | --localedi | --localed | --locale)
1207 ac_prev=localedir ;;
1208 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1209 localedir=$ac_optarg ;;
1210
1211 -localstatedir | --localstatedir | --localstatedi | --localstated \
1212 | --localstate | --localstat | --localsta | --localst | --locals)
1213 ac_prev=localstatedir ;;
1214 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1215 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1216 localstatedir=$ac_optarg ;;
1217
1218 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1219 ac_prev=mandir ;;
1220 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1221 mandir=$ac_optarg ;;
1222
1223 -nfp | --nfp | --nf)
1224 # Obsolete; use --without-fp.
1225 with_fp=no ;;
1226
1227 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1228 | --no-cr | --no-c | -n)
1229 no_create=yes ;;
1230
1231 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1232 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1233 no_recursion=yes ;;
1234
1235 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1236 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1237 | --oldin | --oldi | --old | --ol | --o)
1238 ac_prev=oldincludedir ;;
1239 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1240 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1241 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1242 oldincludedir=$ac_optarg ;;
1243
1244 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1245 ac_prev=prefix ;;
1246 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1247 prefix=$ac_optarg ;;
1248
1249 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1250 | --program-pre | --program-pr | --program-p)
1251 ac_prev=program_prefix ;;
1252 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1253 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1254 program_prefix=$ac_optarg ;;
1255
1256 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1257 | --program-suf | --program-su | --program-s)
1258 ac_prev=program_suffix ;;
1259 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1260 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1261 program_suffix=$ac_optarg ;;
1262
1263 -program-transform-name | --program-transform-name \
1264 | --program-transform-nam | --program-transform-na \
1265 | --program-transform-n | --program-transform- \
1266 | --program-transform | --program-transfor \
1267 | --program-transfo | --program-transf \
1268 | --program-trans | --program-tran \
1269 | --progr-tra | --program-tr | --program-t)
1270 ac_prev=program_transform_name ;;
1271 -program-transform-name=* | --program-transform-name=* \
1272 | --program-transform-nam=* | --program-transform-na=* \
1273 | --program-transform-n=* | --program-transform-=* \
1274 | --program-transform=* | --program-transfor=* \
1275 | --program-transfo=* | --program-transf=* \
1276 | --program-trans=* | --program-tran=* \
1277 | --progr-tra=* | --program-tr=* | --program-t=*)
1278 program_transform_name=$ac_optarg ;;
1279
1280 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1281 ac_prev=pdfdir ;;
1282 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1283 pdfdir=$ac_optarg ;;
1284
1285 -psdir | --psdir | --psdi | --psd | --ps)
1286 ac_prev=psdir ;;
1287 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1288 psdir=$ac_optarg ;;
1289
1290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291 | -silent | --silent | --silen | --sile | --sil)
1292 silent=yes ;;
1293
1294 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1295 ac_prev=sbindir ;;
1296 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1297 | --sbi=* | --sb=*)
1298 sbindir=$ac_optarg ;;
1299
1300 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1301 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1302 | --sharedst | --shareds | --shared | --share | --shar \
1303 | --sha | --sh)
1304 ac_prev=sharedstatedir ;;
1305 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1306 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1307 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1308 | --sha=* | --sh=*)
1309 sharedstatedir=$ac_optarg ;;
1310
1311 -site | --site | --sit)
1312 ac_prev=site ;;
1313 -site=* | --site=* | --sit=*)
1314 site=$ac_optarg ;;
1315
1316 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1317 ac_prev=srcdir ;;
1318 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1319 srcdir=$ac_optarg ;;
1320
1321 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1322 | --syscon | --sysco | --sysc | --sys | --sy)
1323 ac_prev=sysconfdir ;;
1324 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1325 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1326 sysconfdir=$ac_optarg ;;
1327
1328 -target | --target | --targe | --targ | --tar | --ta | --t)
1329 ac_prev=target_alias ;;
1330 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1331 target_alias=$ac_optarg ;;
1332
1333 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1334 verbose=yes ;;
1335
1336 -version | --version | --versio | --versi | --vers | -V)
1337 ac_init_version=: ;;
1338
1339 -with-* | --with-*)
1340 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1343 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1344 { (exit 1); exit 1; }; }
1345 ac_useropt_orig=$ac_useropt
1346 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1348 *"
1349"with_$ac_useropt"
1350"*) ;;
1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1352 ac_unrecognized_sep=', ';;
1353 esac
1354 eval with_$ac_useropt=\$ac_optarg ;;
1355
1356 -without-* | --without-*)
1357 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1361 { (exit 1); exit 1; }; }
1362 ac_useropt_orig=$ac_useropt
1363 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364 case $ac_user_opts in
1365 *"
1366"with_$ac_useropt"
1367"*) ;;
1368 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1369 ac_unrecognized_sep=', ';;
1370 esac
1371 eval with_$ac_useropt=no ;;
1372
1373 --x)
1374 # Obsolete; use --with-x.
1375 with_x=yes ;;
1376
1377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1378 | --x-incl | --x-inc | --x-in | --x-i)
1379 ac_prev=x_includes ;;
1380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1382 x_includes=$ac_optarg ;;
1383
1384 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1386 ac_prev=x_libraries ;;
1387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1389 x_libraries=$ac_optarg ;;
1390
1391 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1392Try \`$0 --help' for more information." >&2
1393 { (exit 1); exit 1; }; }
1394 ;;
1395
1396 *=*)
1397 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1398 # Reject names that are not valid shell variable names.
1399 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1400 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1401 { (exit 1); exit 1; }; }
1402 eval $ac_envvar=\$ac_optarg
1403 export $ac_envvar ;;
1404
1405 *)
1406 # FIXME: should be removed in autoconf 3.0.
1407 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1408 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1409 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1410 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1411 ;;
1412
1413 esac
1414done
1415
1416if test -n "$ac_prev"; then
1417 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1418 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1419 { (exit 1); exit 1; }; }
1420fi
1421
1422if test -n "$ac_unrecognized_opts"; then
1423 case $enable_option_checking in
1424 no) ;;
1425 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1426 { (exit 1); exit 1; }; } ;;
1427 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1428 esac
1429fi
1430
1431# Check all directory arguments for consistency.
1432for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1433 datadir sysconfdir sharedstatedir localstatedir includedir \
1434 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1435 libdir localedir mandir
1436do
1437 eval ac_val=\$$ac_var
1438 # Remove trailing slashes.
1439 case $ac_val in
1440 */ )
1441 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1442 eval $ac_var=\$ac_val;;
1443 esac
1444 # Be sure to have absolute directory names.
1445 case $ac_val in
1446 [\\/$]* | ?:[\\/]* ) continue;;
1447 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1448 esac
1449 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1450 { (exit 1); exit 1; }; }
1451done
1452
1453# There might be people who depend on the old broken behavior: `$host'
1454# used to hold the argument of --host etc.
1455# FIXME: To remove some day.
1456build=$build_alias
1457host=$host_alias
1458target=$target_alias
1459
1460# FIXME: To remove some day.
1461if test "x$host_alias" != x; then
1462 if test "x$build_alias" = x; then
1463 cross_compiling=maybe
1464 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1465 If a cross compiler is detected then cross compile mode will be used." >&2
1466 elif test "x$build_alias" != "x$host_alias"; then
1467 cross_compiling=yes
1468 fi
1469fi
1470
1471ac_tool_prefix=
1472test -n "$host_alias" && ac_tool_prefix=$host_alias-
1473
1474test "$silent" = yes && exec 6>/dev/null
1475
1476
1477ac_pwd=`pwd` && test -n "$ac_pwd" &&
1478ac_ls_di=`ls -di .` &&
1479ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1480 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1481 { (exit 1); exit 1; }; }
1482test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1483 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1484 { (exit 1); exit 1; }; }
1485
1486
1487# Find the source files, if location was not specified.
1488if test -z "$srcdir"; then
1489 ac_srcdir_defaulted=yes
1490 # Try the directory containing this script, then the parent directory.
1491 ac_confdir=`$as_dirname -- "$as_myself" ||
1492$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1493 X"$as_myself" : 'X\(//\)[^/]' \| \
1494 X"$as_myself" : 'X\(//\)$' \| \
1495 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1496$as_echo X"$as_myself" |
1497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1498 s//\1/
1499 q
1500 }
1501 /^X\(\/\/\)[^/].*/{
1502 s//\1/
1503 q
1504 }
1505 /^X\(\/\/\)$/{
1506 s//\1/
1507 q
1508 }
1509 /^X\(\/\).*/{
1510 s//\1/
1511 q
1512 }
1513 s/.*/./; q'`
1514 srcdir=$ac_confdir
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516 srcdir=..
1517 fi
1518else
1519 ac_srcdir_defaulted=no
1520fi
1521if test ! -r "$srcdir/$ac_unique_file"; then
1522 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1523 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1524 { (exit 1); exit 1; }; }
1525fi
1526ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1527ac_abs_confdir=`(
1528 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1529 { (exit 1); exit 1; }; }
1530 pwd)`
1531# When building in place, set srcdir=.
1532if test "$ac_abs_confdir" = "$ac_pwd"; then
1533 srcdir=.
1534fi
1535# Remove unnecessary trailing slashes from srcdir.
1536# Double slashes in file names in object file debugging info
1537# mess up M-x gdb in Emacs.
1538case $srcdir in
1539*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1540esac
1541for ac_var in $ac_precious_vars; do
1542 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1543 eval ac_env_${ac_var}_value=\$${ac_var}
1544 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1545 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1546done
1547
1548#
1549# Report the --help message.
1550#
1551if test "$ac_init_help" = "long"; then
1552 # Omit some internal or obsolete options to make the list less imposing.
1553 # This message is too long to be a string in the A/UX 3.1 sh.
1554 cat <<_ACEOF
1555\`configure' configures this package to adapt to many kinds of systems.
1556
1557Usage: $0 [OPTION]... [VAR=VALUE]...
1558
1559To assign environment variables (e.g., CC, CFLAGS...), specify them as
1560VAR=VALUE. See below for descriptions of some of the useful variables.
1561
1562Defaults for the options are specified in brackets.
1563
1564Configuration:
1565 -h, --help display this help and exit
1566 --help=short display options specific to this package
1567 --help=recursive display the short help of all the included packages
1568 -V, --version display version information and exit
1569 -q, --quiet, --silent do not print \`checking...' messages
1570 --cache-file=FILE cache test results in FILE [disabled]
1571 -C, --config-cache alias for \`--cache-file=config.cache'
1572 -n, --no-create do not create output files
1573 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1574
1575Installation directories:
1576 --prefix=PREFIX install architecture-independent files in PREFIX
1577 [$ac_default_prefix]
1578 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1579 [PREFIX]
1580
1581By default, \`make install' will install all the files in
1582\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1583an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1584for instance \`--prefix=\$HOME'.
1585
1586For better control, use the options below.
1587
1588Fine tuning of the installation directories:
1589 --bindir=DIR user executables [EPREFIX/bin]
1590 --sbindir=DIR system admin executables [EPREFIX/sbin]
1591 --libexecdir=DIR program executables [EPREFIX/libexec]
1592 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1593 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1594 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1595 --libdir=DIR object code libraries [EPREFIX/lib]
1596 --includedir=DIR C header files [PREFIX/include]
1597 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1598 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1599 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1600 --infodir=DIR info documentation [DATAROOTDIR/info]
1601 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1602 --mandir=DIR man documentation [DATAROOTDIR/man]
1603 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1604 --htmldir=DIR html documentation [DOCDIR]
1605 --dvidir=DIR dvi documentation [DOCDIR]
1606 --pdfdir=DIR pdf documentation [DOCDIR]
1607 --psdir=DIR ps documentation [DOCDIR]
1608_ACEOF
1609
1610 cat <<\_ACEOF
1611
1612Program names:
1613 --program-prefix=PREFIX prepend PREFIX to installed program names
1614 --program-suffix=SUFFIX append SUFFIX to installed program names
1615 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1616
1617System types:
1618 --build=BUILD configure for building on BUILD [guessed]
1619 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1620 --target=TARGET configure for building compilers for TARGET [HOST]
1621_ACEOF
1622fi
1623
1624if test -n "$ac_init_help"; then
1625
1626 cat <<\_ACEOF
1627
1628Optional Features:
1629 --disable-option-checking ignore unrecognized --enable/--with options
1630 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1631 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1632 --enable-maintainer-mode enable make rules and dependencies not useful
1633 (and sometimes confusing) to the casual installer
1634 --enable-silent-rules less verbose build output (undo: `make V=1')
1635 --disable-silent-rules verbose build output (undo: `make V=0')
1636 --disable-dependency-tracking speeds up one-time build
1637 --enable-dependency-tracking do not reject slow dependency extractors
1638 --enable-shared[=PKGS] build shared libraries [default=yes]
1639 --enable-static[=PKGS] build static libraries [default=yes]
1640 --enable-fast-install[=PKGS]
1641 optimize for fast installation [default=yes]
1642 --disable-libtool-lock avoid locking (might break parallel builds)
1643 --enable-debug Enable generic debug support [default=no]
1644
1645Optional Packages:
1646 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1647 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1648 --with-pic try to use only PIC/non-PIC objects [default=use
1649 both]
1650 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1651 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1652 --with-linux=PATH Path to kernel source
1653 --with-linux-obj=PATH Path to kernel build objects
1654 --with-spl=PATH Path to spl source
1655 --with-spl-obj=PATH Path to spl build objects
de0a1c09
BB
1656 --with-udevdir=DIR install udev helpers [EPREFIX/lib/udev]
1657 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
e70e591c 1658 --with-blkid support blkid caching [default=check]
b3259b6a 1659 --with-selinux support selinux [default=check]
e70e591c
BB
1660
1661Some influential environment variables:
1662 CC C compiler command
1663 CFLAGS C compiler flags
1664 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1665 nonstandard directory <lib dir>
1666 LIBS libraries to pass to the linker, e.g. -l<library>
1667 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1668 you have headers in a nonstandard directory <include dir>
1669 CPP C preprocessor
1670 CCAS assembler compiler command (defaults to CC)
1671 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1672
1673Use these variables to override the choices made by `configure' or to help
1674it to find libraries and programs with nonstandard names/locations.
1675
1676_ACEOF
1677ac_status=$?
1678fi
1679
1680if test "$ac_init_help" = "recursive"; then
1681 # If there are subdirs, report their specific --help.
1682 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1683 test -d "$ac_dir" ||
1684 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1685 continue
1686 ac_builddir=.
1687
1688case "$ac_dir" in
1689.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1690*)
1691 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1692 # A ".." for each directory in $ac_dir_suffix.
1693 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1694 case $ac_top_builddir_sub in
1695 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1696 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1697 esac ;;
1698esac
1699ac_abs_top_builddir=$ac_pwd
1700ac_abs_builddir=$ac_pwd$ac_dir_suffix
1701# for backward compatibility:
1702ac_top_builddir=$ac_top_build_prefix
1703
1704case $srcdir in
1705 .) # We are building in place.
1706 ac_srcdir=.
1707 ac_top_srcdir=$ac_top_builddir_sub
1708 ac_abs_top_srcdir=$ac_pwd ;;
1709 [\\/]* | ?:[\\/]* ) # Absolute name.
1710 ac_srcdir=$srcdir$ac_dir_suffix;
1711 ac_top_srcdir=$srcdir
1712 ac_abs_top_srcdir=$srcdir ;;
1713 *) # Relative name.
1714 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1715 ac_top_srcdir=$ac_top_build_prefix$srcdir
1716 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1717esac
1718ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1719
1720 cd "$ac_dir" || { ac_status=$?; continue; }
1721 # Check for guested configure.
1722 if test -f "$ac_srcdir/configure.gnu"; then
1723 echo &&
1724 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1725 elif test -f "$ac_srcdir/configure"; then
1726 echo &&
1727 $SHELL "$ac_srcdir/configure" --help=recursive
1728 else
1729 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1730 fi || ac_status=$?
1731 cd "$ac_pwd" || { ac_status=$?; break; }
1732 done
1733fi
1734
1735test -n "$ac_init_help" && exit $ac_status
1736if $ac_init_version; then
1737 cat <<\_ACEOF
1738configure
1739generated by GNU Autoconf 2.63
1740
1741Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17422002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1743This configure script is free software; the Free Software Foundation
1744gives unlimited permission to copy, distribute and modify it.
1745_ACEOF
1746 exit
1747fi
1748cat >config.log <<_ACEOF
1749This file contains any messages produced by compilers while
1750running configure, to aid debugging if configure makes a mistake.
1751
1752It was created by $as_me, which was
1753generated by GNU Autoconf 2.63. Invocation command line was
1754
1755 $ $0 $@
1756
1757_ACEOF
1758exec 5>>config.log
1759{
1760cat <<_ASUNAME
1761## --------- ##
1762## Platform. ##
1763## --------- ##
1764
1765hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1766uname -m = `(uname -m) 2>/dev/null || echo unknown`
1767uname -r = `(uname -r) 2>/dev/null || echo unknown`
1768uname -s = `(uname -s) 2>/dev/null || echo unknown`
1769uname -v = `(uname -v) 2>/dev/null || echo unknown`
1770
1771/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1772/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1773
1774/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1775/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1776/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1777/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1778/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1779/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1780/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1781
1782_ASUNAME
1783
1784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785for as_dir in $PATH
1786do
1787 IFS=$as_save_IFS
1788 test -z "$as_dir" && as_dir=.
1789 $as_echo "PATH: $as_dir"
1790done
1791IFS=$as_save_IFS
1792
1793} >&5
1794
1795cat >&5 <<_ACEOF
1796
1797
1798## ----------- ##
1799## Core tests. ##
1800## ----------- ##
1801
1802_ACEOF
1803
1804
1805# Keep a trace of the command line.
1806# Strip out --no-create and --no-recursion so they do not pile up.
1807# Strip out --silent because we don't want to record it for future runs.
1808# Also quote any args containing shell meta-characters.
1809# Make two passes to allow for proper duplicate-argument suppression.
1810ac_configure_args=
1811ac_configure_args0=
1812ac_configure_args1=
1813ac_must_keep_next=false
1814for ac_pass in 1 2
1815do
1816 for ac_arg
1817 do
1818 case $ac_arg in
1819 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1821 | -silent | --silent | --silen | --sile | --sil)
1822 continue ;;
1823 *\'*)
1824 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1825 esac
1826 case $ac_pass in
1827 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1828 2)
1829 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1830 if test $ac_must_keep_next = true; then
1831 ac_must_keep_next=false # Got value, back to normal.
1832 else
1833 case $ac_arg in
1834 *=* | --config-cache | -C | -disable-* | --disable-* \
1835 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1836 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1837 | -with-* | --with-* | -without-* | --without-* | --x)
1838 case "$ac_configure_args0 " in
1839 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1840 esac
1841 ;;
1842 -* ) ac_must_keep_next=true ;;
1843 esac
1844 fi
1845 ac_configure_args="$ac_configure_args '$ac_arg'"
1846 ;;
1847 esac
1848 done
1849done
1850$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1851$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1852
1853# When interrupted or exit'd, cleanup temporary files, and complete
1854# config.log. We remove comments because anyway the quotes in there
1855# would cause problems or look ugly.
1856# WARNING: Use '\'' to represent an apostrophe within the trap.
1857# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1858trap 'exit_status=$?
1859 # Save into config.log some information that might help in debugging.
1860 {
1861 echo
1862
1863 cat <<\_ASBOX
1864## ---------------- ##
1865## Cache variables. ##
1866## ---------------- ##
1867_ASBOX
1868 echo
1869 # The following way of writing the cache mishandles newlines in values,
1870(
1871 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1872 eval ac_val=\$$ac_var
1873 case $ac_val in #(
1874 *${as_nl}*)
1875 case $ac_var in #(
1876 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1877$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1878 esac
1879 case $ac_var in #(
1880 _ | IFS | as_nl) ;; #(
1881 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1882 *) $as_unset $ac_var ;;
1883 esac ;;
1884 esac
1885 done
1886 (set) 2>&1 |
1887 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1888 *${as_nl}ac_space=\ *)
1889 sed -n \
1890 "s/'\''/'\''\\\\'\'''\''/g;
1891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1892 ;; #(
1893 *)
1894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1895 ;;
1896 esac |
1897 sort
1898)
1899 echo
1900
1901 cat <<\_ASBOX
1902## ----------------- ##
1903## Output variables. ##
1904## ----------------- ##
1905_ASBOX
1906 echo
1907 for ac_var in $ac_subst_vars
1908 do
1909 eval ac_val=\$$ac_var
1910 case $ac_val in
1911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912 esac
1913 $as_echo "$ac_var='\''$ac_val'\''"
1914 done | sort
1915 echo
1916
1917 if test -n "$ac_subst_files"; then
1918 cat <<\_ASBOX
1919## ------------------- ##
1920## File substitutions. ##
1921## ------------------- ##
1922_ASBOX
1923 echo
1924 for ac_var in $ac_subst_files
1925 do
1926 eval ac_val=\$$ac_var
1927 case $ac_val in
1928 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1929 esac
1930 $as_echo "$ac_var='\''$ac_val'\''"
1931 done | sort
1932 echo
1933 fi
1934
1935 if test -s confdefs.h; then
1936 cat <<\_ASBOX
1937## ----------- ##
1938## confdefs.h. ##
1939## ----------- ##
1940_ASBOX
1941 echo
1942 cat confdefs.h
1943 echo
1944 fi
1945 test "$ac_signal" != 0 &&
1946 $as_echo "$as_me: caught signal $ac_signal"
1947 $as_echo "$as_me: exit $exit_status"
1948 } >&5
1949 rm -f core *.core core.conftest.* &&
1950 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1951 exit $exit_status
1952' 0
1953for ac_signal in 1 2 13 15; do
1954 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1955done
1956ac_signal=0
1957
1958# confdefs.h avoids OS command line length limits that DEFS can exceed.
1959rm -f -r conftest* confdefs.h
1960
1961# Predefined preprocessor variables.
1962
1963cat >>confdefs.h <<_ACEOF
1964#define PACKAGE_NAME "$PACKAGE_NAME"
1965_ACEOF
1966
1967
1968cat >>confdefs.h <<_ACEOF
1969#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1970_ACEOF
1971
1972
1973cat >>confdefs.h <<_ACEOF
1974#define PACKAGE_VERSION "$PACKAGE_VERSION"
1975_ACEOF
1976
1977
1978cat >>confdefs.h <<_ACEOF
1979#define PACKAGE_STRING "$PACKAGE_STRING"
1980_ACEOF
1981
1982
1983cat >>confdefs.h <<_ACEOF
1984#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1985_ACEOF
1986
1987
1988# Let the site file select an alternate cache file if it wants to.
1989# Prefer an explicitly selected file to automatically selected ones.
1990ac_site_file1=NONE
1991ac_site_file2=NONE
1992if test -n "$CONFIG_SITE"; then
1993 ac_site_file1=$CONFIG_SITE
1994elif test "x$prefix" != xNONE; then
1995 ac_site_file1=$prefix/share/config.site
1996 ac_site_file2=$prefix/etc/config.site
1997else
1998 ac_site_file1=$ac_default_prefix/share/config.site
1999 ac_site_file2=$ac_default_prefix/etc/config.site
2000fi
2001for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2002do
2003 test "x$ac_site_file" = xNONE && continue
2004 if test -r "$ac_site_file"; then
2005 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2006$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2007 sed 's/^/| /' "$ac_site_file" >&5
2008 . "$ac_site_file"
2009 fi
2010done
2011
2012if test -r "$cache_file"; then
2013 # Some versions of bash will fail to source /dev/null (special
2014 # files actually), so we avoid doing that.
2015 if test -f "$cache_file"; then
2016 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2017$as_echo "$as_me: loading cache $cache_file" >&6;}
2018 case $cache_file in
2019 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2020 *) . "./$cache_file";;
2021 esac
2022 fi
2023else
2024 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2025$as_echo "$as_me: creating cache $cache_file" >&6;}
2026 >$cache_file
2027fi
2028
2029# Check that the precious variables saved in the cache have kept the same
2030# value.
2031ac_cache_corrupted=false
2032for ac_var in $ac_precious_vars; do
2033 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2034 eval ac_new_set=\$ac_env_${ac_var}_set
2035 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2036 eval ac_new_val=\$ac_env_${ac_var}_value
2037 case $ac_old_set,$ac_new_set in
2038 set,)
2039 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2040$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2041 ac_cache_corrupted=: ;;
2042 ,set)
2043 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2044$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2045 ac_cache_corrupted=: ;;
2046 ,);;
2047 *)
2048 if test "x$ac_old_val" != "x$ac_new_val"; then
2049 # differences in whitespace do not lead to failure.
2050 ac_old_val_w=`echo x $ac_old_val`
2051 ac_new_val_w=`echo x $ac_new_val`
2052 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2053 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2054$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2055 ac_cache_corrupted=:
2056 else
2057 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2058$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2059 eval $ac_var=\$ac_old_val
2060 fi
2061 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2062$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2063 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2064$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2065 fi;;
2066 esac
2067 # Pass precious variables to config.status.
2068 if test "$ac_new_set" = set; then
2069 case $ac_new_val in
2070 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2071 *) ac_arg=$ac_var=$ac_new_val ;;
2072 esac
2073 case " $ac_configure_args " in
2074 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2075 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2076 esac
2077 fi
2078done
2079if $ac_cache_corrupted; then
2080 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2083$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2084 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2085$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2086 { (exit 1); exit 1; }; }
2087fi
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105ac_ext=c
2106ac_cpp='$CPP $CPPFLAGS'
2107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110
2111
2112ac_ext=c
2113ac_cpp='$CPP $CPPFLAGS'
2114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2116ac_compiler_gnu=$ac_cv_c_compiler_gnu
2117
2118
2119
2120
2121
2122
2123 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2124$as_echo_n "checking metadata... " >&6; }
2125
2126 META="$srcdir/META"
2127 _zfs_ac_meta_got_file=no
2128 if test -f "$META"; then
2129 _zfs_ac_meta_got_file=yes
2130
2131 ZFS_META_NAME=`perl -n\
2132 -e "BEGIN { \\$key=shift @ARGV; }"\
2133 -e "next unless s/^\s*\\$key[:=]//i;"\
2134 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2135 -e "s/^\s+//;"\
2136 -e "s/\s+$//;"\
2137 -e "s/^(['\"])(.*)\1/\\$2/;"\
2138 -e "\\$val=\\$_;"\
2139 -e "END { print \\$val if defined \\$val; }"\
2140 '(?:NAME|PROJECT|PACKAGE)' $META`;
2141 if test -n "$ZFS_META_NAME"; then
2142
2143cat >>confdefs.h <<_ACEOF
2144#define ZFS_META_NAME "$ZFS_META_NAME"
2145_ACEOF
2146
2147
2148 fi
2149
2150 ZFS_META_VERSION=`perl -n\
2151 -e "BEGIN { \\$key=shift @ARGV; }"\
2152 -e "next unless s/^\s*\\$key[:=]//i;"\
2153 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2154 -e "s/^\s+//;"\
2155 -e "s/\s+$//;"\
2156 -e "s/^(['\"])(.*)\1/\\$2/;"\
2157 -e "\\$val=\\$_;"\
2158 -e "END { print \\$val if defined \\$val; }"\
2159 'VERSION' $META`;
2160 if test -n "$ZFS_META_VERSION"; then
2161
2162cat >>confdefs.h <<_ACEOF
2163#define ZFS_META_VERSION "$ZFS_META_VERSION"
2164_ACEOF
2165
2166
2167 fi
2168
2169 ZFS_META_RELEASE=`perl -n\
2170 -e "BEGIN { \\$key=shift @ARGV; }"\
2171 -e "next unless s/^\s*\\$key[:=]//i;"\
2172 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2173 -e "s/^\s+//;"\
2174 -e "s/\s+$//;"\
2175 -e "s/^(['\"])(.*)\1/\\$2/;"\
2176 -e "\\$val=\\$_;"\
2177 -e "END { print \\$val if defined \\$val; }"\
2178 'RELEASE' $META`;
2179 if test -n "$ZFS_META_RELEASE"; then
2180
2181cat >>confdefs.h <<_ACEOF
2182#define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2183_ACEOF
2184
2185
2186 fi
2187
2188 ZFS_META_LICENSE=`perl -n\
2189 -e "BEGIN { \\$key=shift @ARGV; }"\
2190 -e "next unless s/^\s*\\$key[:=]//i;"\
2191 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2192 -e "s/^\s+//;"\
2193 -e "s/\s+$//;"\
2194 -e "s/^(['\"])(.*)\1/\\$2/;"\
2195 -e "\\$val=\\$_;"\
2196 -e "END { print \\$val if defined \\$val; }"\
2197 'LICENSE' $META`;
2198 if test -n "$ZFS_META_LICENSE"; then
2199
2200cat >>confdefs.h <<_ACEOF
2201#define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2202_ACEOF
2203
2204
2205 fi
2206
2207 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2208 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2209 test -n "$ZFS_META_RELEASE" &&
2210 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2211
2212cat >>confdefs.h <<_ACEOF
2213#define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2214_ACEOF
2215
2216
2217 fi
2218
2219 ZFS_META_DATA=`perl -n\
2220 -e "BEGIN { \\$key=shift @ARGV; }"\
2221 -e "next unless s/^\s*\\$key[:=]//i;"\
2222 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2223 -e "s/^\s+//;"\
2224 -e "s/\s+$//;"\
2225 -e "s/^(['\"])(.*)\1/\\$2/;"\
2226 -e "\\$val=\\$_;"\
2227 -e "END { print \\$val if defined \\$val; }"\
2228 'DATE' $META`;
2229 if test -n "$ZFS_META_DATA"; then
2230
2231cat >>confdefs.h <<_ACEOF
2232#define ZFS_META_DATA "$ZFS_META_DATA"
2233_ACEOF
2234
2235
2236 fi
2237
2238 ZFS_META_AUTHOR=`perl -n\
2239 -e "BEGIN { \\$key=shift @ARGV; }"\
2240 -e "next unless s/^\s*\\$key[:=]//i;"\
2241 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2242 -e "s/^\s+//;"\
2243 -e "s/\s+$//;"\
2244 -e "s/^(['\"])(.*)\1/\\$2/;"\
2245 -e "\\$val=\\$_;"\
2246 -e "END { print \\$val if defined \\$val; }"\
2247 'AUTHOR' $META`;
2248 if test -n "$ZFS_META_AUTHOR"; then
2249
2250cat >>confdefs.h <<_ACEOF
2251#define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2252_ACEOF
2253
2254
2255 fi
2256
2257
2258 ZFS_META_LT_CURRENT=`perl -n\
2259 -e "BEGIN { \\$key=shift @ARGV; }"\
2260 -e "next unless s/^\s*\\$key[:=]//i;"\
2261 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2262 -e "s/^\s+//;"\
2263 -e "s/\s+$//;"\
2264 -e "s/^(['\"])(.*)\1/\\$2/;"\
2265 -e "\\$val=\\$_;"\
2266 -e "END { print \\$val if defined \\$val; }"\
2267 'LT_CURRENT' $META`;
2268 ZFS_META_LT_REVISION=`perl -n\
2269 -e "BEGIN { \\$key=shift @ARGV; }"\
2270 -e "next unless s/^\s*\\$key[:=]//i;"\
2271 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2272 -e "s/^\s+//;"\
2273 -e "s/\s+$//;"\
2274 -e "s/^(['\"])(.*)\1/\\$2/;"\
2275 -e "\\$val=\\$_;"\
2276 -e "END { print \\$val if defined \\$val; }"\
2277 'LT_REVISION' $META`;
2278 ZFS_META_LT_AGE=`perl -n\
2279 -e "BEGIN { \\$key=shift @ARGV; }"\
2280 -e "next unless s/^\s*\\$key[:=]//i;"\
2281 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2282 -e "s/^\s+//;"\
2283 -e "s/\s+$//;"\
2284 -e "s/^(['\"])(.*)\1/\\$2/;"\
2285 -e "\\$val=\\$_;"\
2286 -e "END { print \\$val if defined \\$val; }"\
2287 'LT_AGE' $META`;
2288 if test -n "$ZFS_META_LT_CURRENT" \
2289 -o -n "$ZFS_META_LT_REVISION" \
2290 -o -n "$ZFS_META_LT_AGE"; then
2291 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2292 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2293 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2294
2295cat >>confdefs.h <<_ACEOF
2296#define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2297_ACEOF
2298
2299
2300cat >>confdefs.h <<_ACEOF
2301#define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2302_ACEOF
2303
2304
2305cat >>confdefs.h <<_ACEOF
2306#define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2307_ACEOF
2308
2309
2310
2311
2312 fi
2313 fi
2314
2315 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2316$as_echo "$_zfs_ac_meta_got_file" >&6; }
2317
2318
2319ac_aux_dir=
2320for ac_dir in config "$srcdir"/config; do
2321 if test -f "$ac_dir/install-sh"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/install-sh -c"
2324 break
2325 elif 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/shtool"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/shtool install -c"
2332 break
2333 fi
2334done
2335if test -z "$ac_aux_dir"; then
2336 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2337$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2338 { (exit 1); exit 1; }; }
2339fi
2340
2341# These three variables are undocumented and unsupported,
2342# and are intended to be withdrawn in a future Autoconf release.
2343# They can cause serious problems if a builder's source tree is in a directory
2344# whose full name contains unusual characters.
2345ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2346ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2347ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2348
2349
2350# Make sure we can run config.sub.
2351$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2352 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2353$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2354 { (exit 1); exit 1; }; }
2355
2356{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2357$as_echo_n "checking build system type... " >&6; }
2358if test "${ac_cv_build+set}" = set; then
2359 $as_echo_n "(cached) " >&6
2360else
2361 ac_build_alias=$build_alias
2362test "x$ac_build_alias" = x &&
2363 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2364test "x$ac_build_alias" = x &&
2365 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2366$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2367 { (exit 1); exit 1; }; }
2368ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2369 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2370$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2371 { (exit 1); exit 1; }; }
2372
2373fi
2374{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2375$as_echo "$ac_cv_build" >&6; }
2376case $ac_cv_build in
2377*-*-*) ;;
2378*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2379$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2380 { (exit 1); exit 1; }; };;
2381esac
2382build=$ac_cv_build
2383ac_save_IFS=$IFS; IFS='-'
2384set x $ac_cv_build
2385shift
2386build_cpu=$1
2387build_vendor=$2
2388shift; shift
2389# Remember, the first character of IFS is used to create $*,
2390# except with old shells:
2391build_os=$*
2392IFS=$ac_save_IFS
2393case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2394
2395
2396{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2397$as_echo_n "checking host system type... " >&6; }
2398if test "${ac_cv_host+set}" = set; then
2399 $as_echo_n "(cached) " >&6
2400else
2401 if test "x$host_alias" = x; then
2402 ac_cv_host=$ac_cv_build
2403else
2404 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2405 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2406$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2407 { (exit 1); exit 1; }; }
2408fi
2409
2410fi
2411{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2412$as_echo "$ac_cv_host" >&6; }
2413case $ac_cv_host in
2414*-*-*) ;;
2415*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2416$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2417 { (exit 1); exit 1; }; };;
2418esac
2419host=$ac_cv_host
2420ac_save_IFS=$IFS; IFS='-'
2421set x $ac_cv_host
2422shift
2423host_cpu=$1
2424host_vendor=$2
2425shift; shift
2426# Remember, the first character of IFS is used to create $*,
2427# except with old shells:
2428host_os=$*
2429IFS=$ac_save_IFS
2430case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2431
2432
2433{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2434$as_echo_n "checking target system type... " >&6; }
2435if test "${ac_cv_target+set}" = set; then
2436 $as_echo_n "(cached) " >&6
2437else
2438 if test "x$target_alias" = x; then
2439 ac_cv_target=$ac_cv_host
2440else
2441 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2442 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2443$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2444 { (exit 1); exit 1; }; }
2445fi
2446
2447fi
2448{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2449$as_echo "$ac_cv_target" >&6; }
2450case $ac_cv_target in
2451*-*-*) ;;
2452*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2453$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2454 { (exit 1); exit 1; }; };;
2455esac
2456target=$ac_cv_target
2457ac_save_IFS=$IFS; IFS='-'
2458set x $ac_cv_target
2459shift
2460target_cpu=$1
2461target_vendor=$2
2462shift; shift
2463# Remember, the first character of IFS is used to create $*,
2464# except with old shells:
2465target_os=$*
2466IFS=$ac_save_IFS
2467case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2468
2469
2470# The aliases save the names the user supplied, while $host etc.
2471# will get canonicalized.
2472test -n "$target_alias" &&
2473 test "$program_prefix$program_suffix$program_transform_name" = \
2474 NONENONEs,x,x, &&
2475 program_prefix=${target_alias}-
2476
2477{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2478$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2479 # Check whether --enable-maintainer-mode was given.
2480if test "${enable_maintainer_mode+set}" = set; then
2481 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2482else
2483 USE_MAINTAINER_MODE=no
2484fi
2485
2486 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2487$as_echo "$USE_MAINTAINER_MODE" >&6; }
2488 if test $USE_MAINTAINER_MODE = yes; then
2489 MAINTAINER_MODE_TRUE=
2490 MAINTAINER_MODE_FALSE='#'
2491else
2492 MAINTAINER_MODE_TRUE='#'
2493 MAINTAINER_MODE_FALSE=
2494fi
2495
2496 MAINT=$MAINTAINER_MODE_TRUE
2497
2498
2499# Check whether --enable-silent-rules was given.
2500if test "${enable_silent_rules+set}" = set; then
2501 enableval=$enable_silent_rules;
2502fi
2503
2504case $enable_silent_rules in
2505yes) AM_DEFAULT_VERBOSITY=0;;
2506no) AM_DEFAULT_VERBOSITY=1;;
2507*) AM_DEFAULT_VERBOSITY=1;;
2508esac
2509AM_BACKSLASH='\'
2510
2511am__api_version='1.11'
2512
2513# Find a good install program. We prefer a C program (faster),
2514# so one script is as good as another. But avoid the broken or
2515# incompatible versions:
2516# SysV /etc/install, /usr/sbin/install
2517# SunOS /usr/etc/install
2518# IRIX /sbin/install
2519# AIX /bin/install
2520# AmigaOS /C/install, which installs bootblocks on floppy discs
2521# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2522# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2523# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2524# OS/2's system install, which has a completely different semantic
2525# ./install, which can be erroneously created by make from ./install.sh.
2526# Reject install programs that cannot install multiple files.
2527{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2528$as_echo_n "checking for a BSD-compatible install... " >&6; }
2529if test -z "$INSTALL"; then
2530if test "${ac_cv_path_install+set}" = set; then
2531 $as_echo_n "(cached) " >&6
2532else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 # Account for people who put trailing slashes in PATH elements.
2539case $as_dir/ in
2540 ./ | .// | /cC/* | \
2541 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2542 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2543 /usr/ucb/* ) ;;
2544 *)
2545 # OSF1 and SCO ODT 3.0 have their own names for install.
2546 # Don't use installbsd from OSF since it installs stuff as root
2547 # by default.
2548 for ac_prog in ginstall scoinst install; do
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2551 if test $ac_prog = install &&
2552 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2553 # AIX install. It has an incompatible calling convention.
2554 :
2555 elif test $ac_prog = install &&
2556 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2557 # program-specific install script used by HP pwplus--don't use.
2558 :
2559 else
2560 rm -rf conftest.one conftest.two conftest.dir
2561 echo one > conftest.one
2562 echo two > conftest.two
2563 mkdir conftest.dir
2564 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2565 test -s conftest.one && test -s conftest.two &&
2566 test -s conftest.dir/conftest.one &&
2567 test -s conftest.dir/conftest.two
2568 then
2569 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2570 break 3
2571 fi
2572 fi
2573 fi
2574 done
2575 done
2576 ;;
2577esac
2578
2579done
2580IFS=$as_save_IFS
2581
2582rm -rf conftest.one conftest.two conftest.dir
2583
2584fi
2585 if test "${ac_cv_path_install+set}" = set; then
2586 INSTALL=$ac_cv_path_install
2587 else
2588 # As a last resort, use the slow shell script. Don't cache a
2589 # value for INSTALL within a source directory, because that will
2590 # break other packages using the cache if that directory is
2591 # removed, or if the value is a relative name.
2592 INSTALL=$ac_install_sh
2593 fi
2594fi
2595{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2596$as_echo "$INSTALL" >&6; }
2597
2598# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2599# It thinks the first close brace ends the variable substitution.
2600test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2601
2602test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2603
2604test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2605
2606{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2607$as_echo_n "checking whether build environment is sane... " >&6; }
2608# Just in case
2609sleep 1
2610echo timestamp > conftest.file
2611# Reject unsafe characters in $srcdir or the absolute working directory
2612# name. Accept space and tab only in the latter.
2613am_lf='
2614'
2615case `pwd` in
2616 *[\\\"\#\$\&\'\`$am_lf]*)
2617 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2618$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2619 { (exit 1); exit 1; }; };;
2620esac
2621case $srcdir in
2622 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2623 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2624$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2625 { (exit 1); exit 1; }; };;
2626esac
2627
2628# Do `set' in a subshell so we don't clobber the current shell's
2629# arguments. Must try -L first in case configure is actually a
2630# symlink; some systems play weird games with the mod time of symlinks
2631# (eg FreeBSD returns the mod time of the symlink's containing
2632# directory).
2633if (
2634 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2635 if test "$*" = "X"; then
2636 # -L didn't work.
2637 set X `ls -t "$srcdir/configure" conftest.file`
2638 fi
2639 rm -f conftest.file
2640 if test "$*" != "X $srcdir/configure conftest.file" \
2641 && test "$*" != "X conftest.file $srcdir/configure"; then
2642
2643 # If neither matched, then we have a broken ls. This can happen
2644 # if, for instance, CONFIG_SHELL is bash and it inherits a
2645 # broken ls alias from the environment. This has actually
2646 # happened. Such a system could not be considered "sane".
2647 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2648alias in your environment" >&5
2649$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2650alias in your environment" >&2;}
2651 { (exit 1); exit 1; }; }
2652 fi
2653
2654 test "$2" = conftest.file
2655 )
2656then
2657 # Ok.
2658 :
2659else
2660 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2661Check your system clock" >&5
2662$as_echo "$as_me: error: newly created file is older than distributed files!
2663Check your system clock" >&2;}
2664 { (exit 1); exit 1; }; }
2665fi
2666{ $as_echo "$as_me:$LINENO: result: yes" >&5
2667$as_echo "yes" >&6; }
2668test "$program_prefix" != NONE &&
2669 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2670# Use a double $ so make ignores it.
2671test "$program_suffix" != NONE &&
2672 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2673# Double any \ or $.
2674# By default was `s,x,x', remove it if useless.
2675ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2676program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2677
2678# expand $ac_aux_dir to an absolute path
2679am_aux_dir=`cd $ac_aux_dir && pwd`
2680
2681if test x"${MISSING+set}" != xset; then
2682 case $am_aux_dir in
2683 *\ * | *\ *)
2684 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2685 *)
2686 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2687 esac
2688fi
2689# Use eval to expand $SHELL
2690if eval "$MISSING --run true"; then
2691 am_missing_run="$MISSING --run "
2692else
2693 am_missing_run=
2694 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2695$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2696fi
2697
2698if test x"${install_sh}" != xset; then
2699 case $am_aux_dir in
2700 *\ * | *\ *)
2701 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2702 *)
2703 install_sh="\${SHELL} $am_aux_dir/install-sh"
2704 esac
2705fi
2706
2707# Installed binaries are usually stripped using `strip' when the user
2708# run `make install-strip'. However `strip' might not be the right
2709# tool to use in cross-compilation environments, therefore Automake
2710# will honor the `STRIP' environment variable to overrule this program.
2711if test "$cross_compiling" != no; then
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2714set dummy ${ac_tool_prefix}strip; ac_word=$2
2715{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2716$as_echo_n "checking for $ac_word... " >&6; }
2717if test "${ac_cv_prog_STRIP+set}" = set; then
2718 $as_echo_n "(cached) " >&6
2719else
2720 if test -n "$STRIP"; then
2721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2722else
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 break 2
2733 fi
2734done
2735done
2736IFS=$as_save_IFS
2737
2738fi
2739fi
2740STRIP=$ac_cv_prog_STRIP
2741if test -n "$STRIP"; then
2742 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2743$as_echo "$STRIP" >&6; }
2744else
2745 { $as_echo "$as_me:$LINENO: result: no" >&5
2746$as_echo "no" >&6; }
2747fi
2748
2749
2750fi
2751if test -z "$ac_cv_prog_STRIP"; then
2752 ac_ct_STRIP=$STRIP
2753 # Extract the first word of "strip", so it can be a program name with args.
2754set dummy strip; ac_word=$2
2755{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2756$as_echo_n "checking for $ac_word... " >&6; }
2757if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2758 $as_echo_n "(cached) " >&6
2759else
2760 if test -n "$ac_ct_STRIP"; then
2761 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2762else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_ac_ct_STRIP="strip"
2771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774done
2775done
2776IFS=$as_save_IFS
2777
2778fi
2779fi
2780ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2781if test -n "$ac_ct_STRIP"; then
2782 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2783$as_echo "$ac_ct_STRIP" >&6; }
2784else
2785 { $as_echo "$as_me:$LINENO: result: no" >&5
2786$as_echo "no" >&6; }
2787fi
2788
2789 if test "x$ac_ct_STRIP" = x; then
2790 STRIP=":"
2791 else
2792 case $cross_compiling:$ac_tool_warned in
2793yes:)
2794{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2796ac_tool_warned=yes ;;
2797esac
2798 STRIP=$ac_ct_STRIP
2799 fi
2800else
2801 STRIP="$ac_cv_prog_STRIP"
2802fi
2803
2804fi
2805INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2806
2807{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2808$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2809if test -z "$MKDIR_P"; then
2810 if test "${ac_cv_path_mkdir+set}" = set; then
2811 $as_echo_n "(cached) " >&6
2812else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2815do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_prog in mkdir gmkdir; do
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2821 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2822 'mkdir (GNU coreutils) '* | \
2823 'mkdir (coreutils) '* | \
2824 'mkdir (fileutils) '4.1*)
2825 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2826 break 3;;
2827 esac
2828 done
2829 done
2830done
2831IFS=$as_save_IFS
2832
2833fi
2834
2835 if test "${ac_cv_path_mkdir+set}" = set; then
2836 MKDIR_P="$ac_cv_path_mkdir -p"
2837 else
2838 # As a last resort, use the slow shell script. Don't cache a
2839 # value for MKDIR_P within a source directory, because that will
2840 # break other packages using the cache if that directory is
2841 # removed, or if the value is a relative name.
2842 test -d ./--version && rmdir ./--version
2843 MKDIR_P="$ac_install_sh -d"
2844 fi
2845fi
2846{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2847$as_echo "$MKDIR_P" >&6; }
2848
2849mkdir_p="$MKDIR_P"
2850case $mkdir_p in
2851 [\\/$]* | ?:[\\/]*) ;;
2852 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2853esac
2854
2855for ac_prog in gawk mawk nawk awk
2856do
2857 # Extract the first word of "$ac_prog", so it can be a program name with args.
2858set dummy $ac_prog; ac_word=$2
2859{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2860$as_echo_n "checking for $ac_word... " >&6; }
2861if test "${ac_cv_prog_AWK+set}" = set; then
2862 $as_echo_n "(cached) " >&6
2863else
2864 if test -n "$AWK"; then
2865 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2866else
2867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868for as_dir in $PATH
2869do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_AWK="$ac_prog"
2875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 break 2
2877 fi
2878done
2879done
2880IFS=$as_save_IFS
2881
2882fi
2883fi
2884AWK=$ac_cv_prog_AWK
2885if test -n "$AWK"; then
2886 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2887$as_echo "$AWK" >&6; }
2888else
2889 { $as_echo "$as_me:$LINENO: result: no" >&5
2890$as_echo "no" >&6; }
2891fi
2892
2893
2894 test -n "$AWK" && break
2895done
2896
2897{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2898$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2899set x ${MAKE-make}
2900ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2901if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2902 $as_echo_n "(cached) " >&6
2903else
2904 cat >conftest.make <<\_ACEOF
2905SHELL = /bin/sh
2906all:
2907 @echo '@@@%%%=$(MAKE)=@@@%%%'
2908_ACEOF
2909# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2910case `${MAKE-make} -f conftest.make 2>/dev/null` in
2911 *@@@%%%=?*=@@@%%%*)
2912 eval ac_cv_prog_make_${ac_make}_set=yes;;
2913 *)
2914 eval ac_cv_prog_make_${ac_make}_set=no;;
2915esac
2916rm -f conftest.make
2917fi
2918if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2919 { $as_echo "$as_me:$LINENO: result: yes" >&5
2920$as_echo "yes" >&6; }
2921 SET_MAKE=
2922else
2923 { $as_echo "$as_me:$LINENO: result: no" >&5
2924$as_echo "no" >&6; }
2925 SET_MAKE="MAKE=${MAKE-make}"
2926fi
2927
2928rm -rf .tst 2>/dev/null
2929mkdir .tst 2>/dev/null
2930if test -d .tst; then
2931 am__leading_dot=.
2932else
2933 am__leading_dot=_
2934fi
2935rmdir .tst 2>/dev/null
2936
2937if test "`cd $srcdir && pwd`" != "`pwd`"; then
2938 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2939 # is not polluted with repeated "-I."
2940 am__isrc=' -I$(srcdir)'
2941 # test to see if srcdir already configured
2942 if test -f $srcdir/config.status; then
2943 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2944$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2945 { (exit 1); exit 1; }; }
2946 fi
2947fi
2948
2949# test whether we have cygpath
2950if test -z "$CYGPATH_W"; then
2951 if (cygpath --version) >/dev/null 2>/dev/null; then
2952 CYGPATH_W='cygpath -w'
2953 else
2954 CYGPATH_W=echo
2955 fi
2956fi
2957
2958
2959# Define the identity of the package.
2960 PACKAGE=$ZFS_META_NAME
2961 VERSION=$ZFS_META_VERSION
2962
2963
2964cat >>confdefs.h <<_ACEOF
2965#define PACKAGE "$PACKAGE"
2966_ACEOF
2967
2968
2969cat >>confdefs.h <<_ACEOF
2970#define VERSION "$VERSION"
2971_ACEOF
2972
2973# Some tools Automake needs.
2974
2975ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2976
2977
2978AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2979
2980
2981AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2982
2983
2984AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2985
2986
2987MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2988
2989# We need awk for the "check" target. The system "awk" is bad on
2990# some platforms.
2991# Always define AMTAR for backward compatibility.
2992
2993AMTAR=${AMTAR-"${am_missing_run}tar"}
2994
2995am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2996
2997
2998
2999
3000
3001ac_config_headers="$ac_config_headers zfs_config.h"
3002
3003
3004# Find a good install program. We prefer a C program (faster),
3005# so one script is as good as another. But avoid the broken or
3006# incompatible versions:
3007# SysV /etc/install, /usr/sbin/install
3008# SunOS /usr/etc/install
3009# IRIX /sbin/install
3010# AIX /bin/install
3011# AmigaOS /C/install, which installs bootblocks on floppy discs
3012# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3013# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3014# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3015# OS/2's system install, which has a completely different semantic
3016# ./install, which can be erroneously created by make from ./install.sh.
3017# Reject install programs that cannot install multiple files.
3018{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3019$as_echo_n "checking for a BSD-compatible install... " >&6; }
3020if test -z "$INSTALL"; then
3021if test "${ac_cv_path_install+set}" = set; then
3022 $as_echo_n "(cached) " >&6
3023else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025for as_dir in $PATH
3026do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 # Account for people who put trailing slashes in PATH elements.
3030case $as_dir/ in
3031 ./ | .// | /cC/* | \
3032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3034 /usr/ucb/* ) ;;
3035 *)
3036 # OSF1 and SCO ODT 3.0 have their own names for install.
3037 # Don't use installbsd from OSF since it installs stuff as root
3038 # by default.
3039 for ac_prog in ginstall scoinst install; do
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3042 if test $ac_prog = install &&
3043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3044 # AIX install. It has an incompatible calling convention.
3045 :
3046 elif test $ac_prog = install &&
3047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3048 # program-specific install script used by HP pwplus--don't use.
3049 :
3050 else
3051 rm -rf conftest.one conftest.two conftest.dir
3052 echo one > conftest.one
3053 echo two > conftest.two
3054 mkdir conftest.dir
3055 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3056 test -s conftest.one && test -s conftest.two &&
3057 test -s conftest.dir/conftest.one &&
3058 test -s conftest.dir/conftest.two
3059 then
3060 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3061 break 3
3062 fi
3063 fi
3064 fi
3065 done
3066 done
3067 ;;
3068esac
3069
3070done
3071IFS=$as_save_IFS
3072
3073rm -rf conftest.one conftest.two conftest.dir
3074
3075fi
3076 if test "${ac_cv_path_install+set}" = set; then
3077 INSTALL=$ac_cv_path_install
3078 else
3079 # As a last resort, use the slow shell script. Don't cache a
3080 # value for INSTALL within a source directory, because that will
3081 # break other packages using the cache if that directory is
3082 # removed, or if the value is a relative name.
3083 INSTALL=$ac_install_sh
3084 fi
3085fi
3086{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3087$as_echo "$INSTALL" >&6; }
3088
3089# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3090# It thinks the first close brace ends the variable substitution.
3091test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3092
3093test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3094
3095test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3096
3097ac_ext=c
3098ac_cpp='$CPP $CPPFLAGS'
3099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102if test -n "$ac_tool_prefix"; then
3103 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3104set dummy ${ac_tool_prefix}gcc; ac_word=$2
3105{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3106$as_echo_n "checking for $ac_word... " >&6; }
3107if test "${ac_cv_prog_CC+set}" = set; then
3108 $as_echo_n "(cached) " >&6
3109else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112else
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124done
3125done
3126IFS=$as_save_IFS
3127
3128fi
3129fi
3130CC=$ac_cv_prog_CC
3131if test -n "$CC"; then
3132 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3133$as_echo "$CC" >&6; }
3134else
3135 { $as_echo "$as_me:$LINENO: result: no" >&5
3136$as_echo "no" >&6; }
3137fi
3138
3139
3140fi
3141if test -z "$ac_cv_prog_CC"; then
3142 ac_ct_CC=$CC
3143 # Extract the first word of "gcc", so it can be a program name with args.
3144set dummy gcc; ac_word=$2
3145{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3146$as_echo_n "checking for $ac_word... " >&6; }
3147if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3148 $as_echo_n "(cached) " >&6
3149else
3150 if test -n "$ac_ct_CC"; then
3151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3152else
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_prog_ac_ct_CC="gcc"
3161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3163 fi
3164done
3165done
3166IFS=$as_save_IFS
3167
3168fi
3169fi
3170ac_ct_CC=$ac_cv_prog_ac_ct_CC
3171if test -n "$ac_ct_CC"; then
3172 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3173$as_echo "$ac_ct_CC" >&6; }
3174else
3175 { $as_echo "$as_me:$LINENO: result: no" >&5
3176$as_echo "no" >&6; }
3177fi
3178
3179 if test "x$ac_ct_CC" = x; then
3180 CC=""
3181 else
3182 case $cross_compiling:$ac_tool_warned in
3183yes:)
3184{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186ac_tool_warned=yes ;;
3187esac
3188 CC=$ac_ct_CC
3189 fi
3190else
3191 CC="$ac_cv_prog_CC"
3192fi
3193
3194if test -z "$CC"; then
3195 if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3197set dummy ${ac_tool_prefix}cc; ac_word=$2
3198{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3199$as_echo_n "checking for $ac_word... " >&6; }
3200if test "${ac_cv_prog_CC+set}" = set; then
3201 $as_echo_n "(cached) " >&6
3202else
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205else
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_CC="${ac_tool_prefix}cc"
3214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217done
3218done
3219IFS=$as_save_IFS
3220
3221fi
3222fi
3223CC=$ac_cv_prog_CC
3224if test -n "$CC"; then
3225 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3226$as_echo "$CC" >&6; }
3227else
3228 { $as_echo "$as_me:$LINENO: result: no" >&5
3229$as_echo "no" >&6; }
3230fi
3231
3232
3233 fi
3234fi
3235if test -z "$CC"; then
3236 # Extract the first word of "cc", so it can be a program name with args.
3237set dummy cc; ac_word=$2
3238{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3239$as_echo_n "checking for $ac_word... " >&6; }
3240if test "${ac_cv_prog_CC+set}" = set; then
3241 $as_echo_n "(cached) " >&6
3242else
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245else
3246 ac_prog_rejected=no
3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248for as_dir in $PATH
3249do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3255 ac_prog_rejected=yes
3256 continue
3257 fi
3258 ac_cv_prog_CC="cc"
3259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3261 fi
3262done
3263done
3264IFS=$as_save_IFS
3265
3266if test $ac_prog_rejected = yes; then
3267 # We found a bogon in the path, so make sure we never use it.
3268 set dummy $ac_cv_prog_CC
3269 shift
3270 if test $# != 0; then
3271 # We chose a different compiler from the bogus one.
3272 # However, it has the same basename, so the bogon will be chosen
3273 # first if we set CC to just the basename; use the full file name.
3274 shift
3275 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3276 fi
3277fi
3278fi
3279fi
3280CC=$ac_cv_prog_CC
3281if test -n "$CC"; then
3282 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3283$as_echo "$CC" >&6; }
3284else
3285 { $as_echo "$as_me:$LINENO: result: no" >&5
3286$as_echo "no" >&6; }
3287fi
3288
3289
3290fi
3291if test -z "$CC"; then
3292 if test -n "$ac_tool_prefix"; then
3293 for ac_prog in cl.exe
3294 do
3295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3296set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3297{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3298$as_echo_n "checking for $ac_word... " >&6; }
3299if test "${ac_cv_prog_CC+set}" = set; then
3300 $as_echo_n "(cached) " >&6
3301else
3302 if test -n "$CC"; then
3303 ac_cv_prog_CC="$CC" # Let the user override the test.
3304else
3305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306for as_dir in $PATH
3307do
3308 IFS=$as_save_IFS
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 break 2
3315 fi
3316done
3317done
3318IFS=$as_save_IFS
3319
3320fi
3321fi
3322CC=$ac_cv_prog_CC
3323if test -n "$CC"; then
3324 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3325$as_echo "$CC" >&6; }
3326else
3327 { $as_echo "$as_me:$LINENO: result: no" >&5
3328$as_echo "no" >&6; }
3329fi
3330
3331
3332 test -n "$CC" && break
3333 done
3334fi
3335if test -z "$CC"; then
3336 ac_ct_CC=$CC
3337 for ac_prog in cl.exe
3338do
3339 # Extract the first word of "$ac_prog", so it can be a program name with args.
3340set dummy $ac_prog; ac_word=$2
3341{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3342$as_echo_n "checking for $ac_word... " >&6; }
3343if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3344 $as_echo_n "(cached) " >&6
3345else
3346 if test -n "$ac_ct_CC"; then
3347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348else
3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH
3351do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356 ac_cv_prog_ac_ct_CC="$ac_prog"
3357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360done
3361done
3362IFS=$as_save_IFS
3363
3364fi
3365fi
3366ac_ct_CC=$ac_cv_prog_ac_ct_CC
3367if test -n "$ac_ct_CC"; then
3368 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3369$as_echo "$ac_ct_CC" >&6; }
3370else
3371 { $as_echo "$as_me:$LINENO: result: no" >&5
3372$as_echo "no" >&6; }
3373fi
3374
3375
3376 test -n "$ac_ct_CC" && break
3377done
3378
3379 if test "x$ac_ct_CC" = x; then
3380 CC=""
3381 else
3382 case $cross_compiling:$ac_tool_warned in
3383yes:)
3384{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386ac_tool_warned=yes ;;
3387esac
3388 CC=$ac_ct_CC
3389 fi
3390fi
3391
3392fi
3393
3394
3395test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3398See \`config.log' for more details." >&5
3399$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3400See \`config.log' for more details." >&2;}
3401 { (exit 1); exit 1; }; }; }
3402
3403# Provide some information about the compiler.
3404$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3405set X $ac_compile
3406ac_compiler=$2
3407{ (ac_try="$ac_compiler --version >&5"
3408case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411esac
3412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3413$as_echo "$ac_try_echo") >&5
3414 (eval "$ac_compiler --version >&5") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }
3418{ (ac_try="$ac_compiler -v >&5"
3419case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422esac
3423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3424$as_echo "$ac_try_echo") >&5
3425 (eval "$ac_compiler -v >&5") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }
3429{ (ac_try="$ac_compiler -V >&5"
3430case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433esac
3434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3435$as_echo "$ac_try_echo") >&5
3436 (eval "$ac_compiler -V >&5") 2>&5
3437 ac_status=$?
3438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }
3440
3441cat >conftest.$ac_ext <<_ACEOF
3442/* confdefs.h. */
3443_ACEOF
3444cat confdefs.h >>conftest.$ac_ext
3445cat >>conftest.$ac_ext <<_ACEOF
3446/* end confdefs.h. */
3447
3448int
3449main ()
3450{
3451
3452 ;
3453 return 0;
3454}
3455_ACEOF
3456ac_clean_files_save=$ac_clean_files
3457ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3458# Try to create an executable without -o first, disregard a.out.
3459# It will help us diagnose broken compilers, and finding out an intuition
3460# of exeext.
3461{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3462$as_echo_n "checking for C compiler default output file name... " >&6; }
3463ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3464
3465# The possible output files:
3466ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3467
3468ac_rmfiles=
3469for ac_file in $ac_files
3470do
3471 case $ac_file in
3472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3473 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3474 esac
3475done
3476rm -f $ac_rmfiles
3477
3478if { (ac_try="$ac_link_default"
3479case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482esac
3483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3484$as_echo "$ac_try_echo") >&5
3485 (eval "$ac_link_default") 2>&5
3486 ac_status=$?
3487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; then
3489 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3490# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3491# in a Makefile. We should not override ac_cv_exeext if it was cached,
3492# so that the user can short-circuit this test for compilers unknown to
3493# Autoconf.
3494for ac_file in $ac_files ''
3495do
3496 test -f "$ac_file" || continue
3497 case $ac_file in
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3499 ;;
3500 [ab].out )
3501 # We found the default executable, but exeext='' is most
3502 # certainly right.
3503 break;;
3504 *.* )
3505 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3506 then :; else
3507 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3508 fi
3509 # We set ac_cv_exeext here because the later test for it is not
3510 # safe: cross compilers may not add the suffix if given an `-o'
3511 # argument, so we may need to know it at that point already.
3512 # Even if this section looks crufty: it has the advantage of
3513 # actually working.
3514 break;;
3515 * )
3516 break;;
3517 esac
3518done
3519test "$ac_cv_exeext" = no && ac_cv_exeext=
3520
3521else
3522 ac_file=''
3523fi
3524
3525{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3526$as_echo "$ac_file" >&6; }
3527if test -z "$ac_file"; then
3528 $as_echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
3531{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3534See \`config.log' for more details." >&5
3535$as_echo "$as_me: error: C compiler cannot create executables
3536See \`config.log' for more details." >&2;}
3537 { (exit 77); exit 77; }; }; }
3538fi
3539
3540ac_exeext=$ac_cv_exeext
3541
3542# Check that the compiler produces executables we can run. If not, either
3543# the compiler is broken, or we cross compile.
3544{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3545$as_echo_n "checking whether the C compiler works... " >&6; }
3546# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3547# If not cross compiling, check that we can run a simple program.
3548if test "$cross_compiling" != yes; then
3549 if { ac_try='./$ac_file'
3550 { (case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553esac
3554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3555$as_echo "$ac_try_echo") >&5
3556 (eval "$ac_try") 2>&5
3557 ac_status=$?
3558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; }; then
3560 cross_compiling=no
3561 else
3562 if test "$cross_compiling" = maybe; then
3563 cross_compiling=yes
3564 else
3565 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3568If you meant to cross compile, use \`--host'.
3569See \`config.log' for more details." >&5
3570$as_echo "$as_me: error: cannot run C compiled programs.
3571If you meant to cross compile, use \`--host'.
3572See \`config.log' for more details." >&2;}
3573 { (exit 1); exit 1; }; }; }
3574 fi
3575 fi
3576fi
3577{ $as_echo "$as_me:$LINENO: result: yes" >&5
3578$as_echo "yes" >&6; }
3579
3580rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3581ac_clean_files=$ac_clean_files_save
3582# Check that the compiler produces executables we can run. If not, either
3583# the compiler is broken, or we cross compile.
3584{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3585$as_echo_n "checking whether we are cross compiling... " >&6; }
3586{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3587$as_echo "$cross_compiling" >&6; }
3588
3589{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3590$as_echo_n "checking for suffix of executables... " >&6; }
3591if { (ac_try="$ac_link"
3592case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595esac
3596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3597$as_echo "$ac_try_echo") >&5
3598 (eval "$ac_link") 2>&5
3599 ac_status=$?
3600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; then
3602 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3603# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3604# work properly (i.e., refer to `conftest.exe'), while it won't with
3605# `rm'.
3606for ac_file in conftest.exe conftest conftest.*; do
3607 test -f "$ac_file" || continue
3608 case $ac_file in
3609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3610 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3611 break;;
3612 * ) break;;
3613 esac
3614done
3615else
3616 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3618{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3619See \`config.log' for more details." >&5
3620$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3621See \`config.log' for more details." >&2;}
3622 { (exit 1); exit 1; }; }; }
3623fi
3624
3625rm -f conftest$ac_cv_exeext
3626{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3627$as_echo "$ac_cv_exeext" >&6; }
3628
3629rm -f conftest.$ac_ext
3630EXEEXT=$ac_cv_exeext
3631ac_exeext=$EXEEXT
3632{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3633$as_echo_n "checking for suffix of object files... " >&6; }
3634if test "${ac_cv_objext+set}" = set; then
3635 $as_echo_n "(cached) " >&6
3636else
3637 cat >conftest.$ac_ext <<_ACEOF
3638/* confdefs.h. */
3639_ACEOF
3640cat confdefs.h >>conftest.$ac_ext
3641cat >>conftest.$ac_ext <<_ACEOF
3642/* end confdefs.h. */
3643
3644int
3645main ()
3646{
3647
3648 ;
3649 return 0;
3650}
3651_ACEOF
3652rm -f conftest.o conftest.obj
3653if { (ac_try="$ac_compile"
3654case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657esac
3658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659$as_echo "$ac_try_echo") >&5
3660 (eval "$ac_compile") 2>&5
3661 ac_status=$?
3662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; then
3664 for ac_file in conftest.o conftest.obj conftest.*; do
3665 test -f "$ac_file" || continue;
3666 case $ac_file in
3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3668 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3669 break;;
3670 esac
3671done
3672else
3673 $as_echo "$as_me: failed program was:" >&5
3674sed 's/^/| /' conftest.$ac_ext >&5
3675
3676{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3679See \`config.log' for more details." >&5
3680$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3681See \`config.log' for more details." >&2;}
3682 { (exit 1); exit 1; }; }; }
3683fi
3684
3685rm -f conftest.$ac_cv_objext conftest.$ac_ext
3686fi
3687{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3688$as_echo "$ac_cv_objext" >&6; }
3689OBJEXT=$ac_cv_objext
3690ac_objext=$OBJEXT
3691{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3692$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3693if test "${ac_cv_c_compiler_gnu+set}" = set; then
3694 $as_echo_n "(cached) " >&6
3695else
3696 cat >conftest.$ac_ext <<_ACEOF
3697/* confdefs.h. */
3698_ACEOF
3699cat confdefs.h >>conftest.$ac_ext
3700cat >>conftest.$ac_ext <<_ACEOF
3701/* end confdefs.h. */
3702
3703int
3704main ()
3705{
3706#ifndef __GNUC__
3707 choke me
3708#endif
3709
3710 ;
3711 return 0;
3712}
3713_ACEOF
3714rm -f conftest.$ac_objext
3715if { (ac_try="$ac_compile"
3716case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719esac
3720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3721$as_echo "$ac_try_echo") >&5
3722 (eval "$ac_compile") 2>conftest.er1
3723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } && {
3729 test -z "$ac_c_werror_flag" ||
3730 test ! -s conftest.err
3731 } && test -s conftest.$ac_objext; then
3732 ac_compiler_gnu=yes
3733else
3734 $as_echo "$as_me: failed program was:" >&5
3735sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 ac_compiler_gnu=no
3738fi
3739
3740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741ac_cv_c_compiler_gnu=$ac_compiler_gnu
3742
3743fi
3744{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3745$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3746if test $ac_compiler_gnu = yes; then
3747 GCC=yes
3748else
3749 GCC=
3750fi
3751ac_test_CFLAGS=${CFLAGS+set}
3752ac_save_CFLAGS=$CFLAGS
3753{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3754$as_echo_n "checking whether $CC accepts -g... " >&6; }
3755if test "${ac_cv_prog_cc_g+set}" = set; then
3756 $as_echo_n "(cached) " >&6
3757else
3758 ac_save_c_werror_flag=$ac_c_werror_flag
3759 ac_c_werror_flag=yes
3760 ac_cv_prog_cc_g=no
3761 CFLAGS="-g"
3762 cat >conftest.$ac_ext <<_ACEOF
3763/* confdefs.h. */
3764_ACEOF
3765cat confdefs.h >>conftest.$ac_ext
3766cat >>conftest.$ac_ext <<_ACEOF
3767/* end confdefs.h. */
3768
3769int
3770main ()
3771{
3772
3773 ;
3774 return 0;
3775}
3776_ACEOF
3777rm -f conftest.$ac_objext
3778if { (ac_try="$ac_compile"
3779case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782esac
3783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3784$as_echo "$ac_try_echo") >&5
3785 (eval "$ac_compile") 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } && {
3792 test -z "$ac_c_werror_flag" ||
3793 test ! -s conftest.err
3794 } && test -s conftest.$ac_objext; then
3795 ac_cv_prog_cc_g=yes
3796else
3797 $as_echo "$as_me: failed program was:" >&5
3798sed 's/^/| /' conftest.$ac_ext >&5
3799
3800 CFLAGS=""
3801 cat >conftest.$ac_ext <<_ACEOF
3802/* confdefs.h. */
3803_ACEOF
3804cat confdefs.h >>conftest.$ac_ext
3805cat >>conftest.$ac_ext <<_ACEOF
3806/* end confdefs.h. */
3807
3808int
3809main ()
3810{
3811
3812 ;
3813 return 0;
3814}
3815_ACEOF
3816rm -f conftest.$ac_objext
3817if { (ac_try="$ac_compile"
3818case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821esac
3822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823$as_echo "$ac_try_echo") >&5
3824 (eval "$ac_compile") 2>conftest.er1
3825 ac_status=$?
3826 grep -v '^ *+' conftest.er1 >conftest.err
3827 rm -f conftest.er1
3828 cat conftest.err >&5
3829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } && {
3831 test -z "$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3833 } && test -s conftest.$ac_objext; then
3834 :
3835else
3836 $as_echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
3838
3839 ac_c_werror_flag=$ac_save_c_werror_flag
3840 CFLAGS="-g"
3841 cat >conftest.$ac_ext <<_ACEOF
3842/* confdefs.h. */
3843_ACEOF
3844cat confdefs.h >>conftest.$ac_ext
3845cat >>conftest.$ac_ext <<_ACEOF
3846/* end confdefs.h. */
3847
3848int
3849main ()
3850{
3851
3852 ;
3853 return 0;
3854}
3855_ACEOF
3856rm -f conftest.$ac_objext
3857if { (ac_try="$ac_compile"
3858case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861esac
3862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3863$as_echo "$ac_try_echo") >&5
3864 (eval "$ac_compile") 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } && {
3871 test -z "$ac_c_werror_flag" ||
3872 test ! -s conftest.err
3873 } && test -s conftest.$ac_objext; then
3874 ac_cv_prog_cc_g=yes
3875else
3876 $as_echo "$as_me: failed program was:" >&5
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
3879
3880fi
3881
3882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883fi
3884
3885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886fi
3887
3888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 ac_c_werror_flag=$ac_save_c_werror_flag
3890fi
3891{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3892$as_echo "$ac_cv_prog_cc_g" >&6; }
3893if test "$ac_test_CFLAGS" = set; then
3894 CFLAGS=$ac_save_CFLAGS
3895elif test $ac_cv_prog_cc_g = yes; then
3896 if test "$GCC" = yes; then
3897 CFLAGS="-g -O2"
3898 else
3899 CFLAGS="-g"
3900 fi
3901else
3902 if test "$GCC" = yes; then
3903 CFLAGS="-O2"
3904 else
3905 CFLAGS=
3906 fi
3907fi
3908{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3909$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3910if test "${ac_cv_prog_cc_c89+set}" = set; then
3911 $as_echo_n "(cached) " >&6
3912else
3913 ac_cv_prog_cc_c89=no
3914ac_save_CC=$CC
3915cat >conftest.$ac_ext <<_ACEOF
3916/* confdefs.h. */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h. */
3921#include <stdarg.h>
3922#include <stdio.h>
3923#include <sys/types.h>
3924#include <sys/stat.h>
3925/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3926struct buf { int x; };
3927FILE * (*rcsopen) (struct buf *, struct stat *, int);
3928static char *e (p, i)
3929 char **p;
3930 int i;
3931{
3932 return p[i];
3933}
3934static char *f (char * (*g) (char **, int), char **p, ...)
3935{
3936 char *s;
3937 va_list v;
3938 va_start (v,p);
3939 s = g (p, va_arg (v,int));
3940 va_end (v);
3941 return s;
3942}
3943
3944/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3945 function prototypes and stuff, but not '\xHH' hex character constants.
3946 These don't provoke an error unfortunately, instead are silently treated
3947 as 'x'. The following induces an error, until -std is added to get
3948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3949 array size at least. It's necessary to write '\x00'==0 to get something
3950 that's true only with -std. */
3951int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3952
3953/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3954 inside strings and character constants. */
3955#define FOO(x) 'x'
3956int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3957
3958int test (int i, double x);
3959struct s1 {int (*f) (int a);};
3960struct s2 {int (*f) (double a);};
3961int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3962int argc;
3963char **argv;
3964int
3965main ()
3966{
3967return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3968 ;
3969 return 0;
3970}
3971_ACEOF
3972for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3974do
3975 CC="$ac_save_CC $ac_arg"
3976 rm -f conftest.$ac_objext
3977if { (ac_try="$ac_compile"
3978case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981esac
3982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3983$as_echo "$ac_try_echo") >&5
3984 (eval "$ac_compile") 2>conftest.er1
3985 ac_status=$?
3986 grep -v '^ *+' conftest.er1 >conftest.err
3987 rm -f conftest.er1
3988 cat conftest.err >&5
3989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } && {
3991 test -z "$ac_c_werror_flag" ||
3992 test ! -s conftest.err
3993 } && test -s conftest.$ac_objext; then
3994 ac_cv_prog_cc_c89=$ac_arg
3995else
3996 $as_echo "$as_me: failed program was:" >&5
3997sed 's/^/| /' conftest.$ac_ext >&5
3998
3999
4000fi
4001
4002rm -f core conftest.err conftest.$ac_objext
4003 test "x$ac_cv_prog_cc_c89" != "xno" && break
4004done
4005rm -f conftest.$ac_ext
4006CC=$ac_save_CC
4007
4008fi
4009# AC_CACHE_VAL
4010case "x$ac_cv_prog_cc_c89" in
4011 x)
4012 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4013$as_echo "none needed" >&6; } ;;
4014 xno)
4015 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4016$as_echo "unsupported" >&6; } ;;
4017 *)
4018 CC="$CC $ac_cv_prog_cc_c89"
4019 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4020$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4021esac
4022
4023
4024ac_ext=c
4025ac_cpp='$CPP $CPPFLAGS'
4026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029DEPDIR="${am__leading_dot}deps"
4030
4031ac_config_commands="$ac_config_commands depfiles"
4032
4033
4034am_make=${MAKE-make}
4035cat > confinc << 'END'
4036am__doit:
4037 @echo this is the am__doit target
4038.PHONY: am__doit
4039END
4040# If we don't find an include directive, just comment out the code.
4041{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4042$as_echo_n "checking for style of include used by $am_make... " >&6; }
4043am__include="#"
4044am__quote=
4045_am_result=none
4046# First try GNU make style include.
4047echo "include confinc" > confmf
4048# Ignore all kinds of additional output from `make'.
4049case `$am_make -s -f confmf 2> /dev/null` in #(
4050*the\ am__doit\ target*)
4051 am__include=include
4052 am__quote=
4053 _am_result=GNU
4054 ;;
4055esac
4056# Now try BSD make style include.
4057if test "$am__include" = "#"; then
4058 echo '.include "confinc"' > confmf
4059 case `$am_make -s -f confmf 2> /dev/null` in #(
4060 *the\ am__doit\ target*)
4061 am__include=.include
4062 am__quote="\""
4063 _am_result=BSD
4064 ;;
4065 esac
4066fi
4067
4068
4069{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4070$as_echo "$_am_result" >&6; }
4071rm -f confinc confmf
4072
4073# Check whether --enable-dependency-tracking was given.
4074if test "${enable_dependency_tracking+set}" = set; then
4075 enableval=$enable_dependency_tracking;
4076fi
4077
4078if test "x$enable_dependency_tracking" != xno; then
4079 am_depcomp="$ac_aux_dir/depcomp"
4080 AMDEPBACKSLASH='\'
4081fi
4082 if test "x$enable_dependency_tracking" != xno; then
4083 AMDEP_TRUE=
4084 AMDEP_FALSE='#'
4085else
4086 AMDEP_TRUE='#'
4087 AMDEP_FALSE=
4088fi
4089
4090
4091
4092depcc="$CC" am_compiler_list=
4093
4094{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4095$as_echo_n "checking dependency style of $depcc... " >&6; }
4096if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4097 $as_echo_n "(cached) " >&6
4098else
4099 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4100 # We make a subdir and do the tests there. Otherwise we can end up
4101 # making bogus files that we don't know about and never remove. For
4102 # instance it was reported that on HP-UX the gcc test will end up
4103 # making a dummy file named `D' -- because `-MD' means `put the output
4104 # in D'.
4105 mkdir conftest.dir
4106 # Copy depcomp to subdir because otherwise we won't find it if we're
4107 # using a relative directory.
4108 cp "$am_depcomp" conftest.dir
4109 cd conftest.dir
4110 # We will build objects and dependencies in a subdirectory because
4111 # it helps to detect inapplicable dependency modes. For instance
4112 # both Tru64's cc and ICC support -MD to output dependencies as a
4113 # side effect of compilation, but ICC will put the dependencies in
4114 # the current directory while Tru64 will put them in the object
4115 # directory.
4116 mkdir sub
4117
4118 am_cv_CC_dependencies_compiler_type=none
4119 if test "$am_compiler_list" = ""; then
4120 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4121 fi
4122 am__universal=false
4123 case " $depcc " in #(
4124 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4125 esac
4126
4127 for depmode in $am_compiler_list; do
4128 # Setup a source with many dependencies, because some compilers
4129 # like to wrap large dependency lists on column 80 (with \), and
4130 # we should not choose a depcomp mode which is confused by this.
4131 #
4132 # We need to recreate these files for each test, as the compiler may
4133 # overwrite some of them when testing with obscure command lines.
4134 # This happens at least with the AIX C compiler.
4135 : > sub/conftest.c
4136 for i in 1 2 3 4 5 6; do
4137 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4138 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4139 # Solaris 8's {/usr,}/bin/sh.
4140 touch sub/conftst$i.h
4141 done
4142 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4143
4144 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4145 # mode. It turns out that the SunPro C++ compiler does not properly
4146 # handle `-M -o', and we need to detect this. Also, some Intel
4147 # versions had trouble with output in subdirs
4148 am__obj=sub/conftest.${OBJEXT-o}
4149 am__minus_obj="-o $am__obj"
4150 case $depmode in
4151 gcc)
4152 # This depmode causes a compiler race in universal mode.
4153 test "$am__universal" = false || continue
4154 ;;
4155 nosideeffect)
4156 # after this tag, mechanisms are not by side-effect, so they'll
4157 # only be used when explicitly requested
4158 if test "x$enable_dependency_tracking" = xyes; then
4159 continue
4160 else
4161 break
4162 fi
4163 ;;
4164 msvisualcpp | msvcmsys)
4165 # This compiler won't grok `-c -o', but also, the minuso test has
4166 # not run yet. These depmodes are late enough in the game, and
4167 # so weak that their functioning should not be impacted.
4168 am__obj=conftest.${OBJEXT-o}
4169 am__minus_obj=
4170 ;;
4171 none) break ;;
4172 esac
4173 if depmode=$depmode \
4174 source=sub/conftest.c object=$am__obj \
4175 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4176 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4177 >/dev/null 2>conftest.err &&
4178 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4179 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4180 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4181 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4182 # icc doesn't choke on unknown options, it will just issue warnings
4183 # or remarks (even with -Werror). So we grep stderr for any message
4184 # that says an option was ignored or not supported.
4185 # When given -MP, icc 7.0 and 7.1 complain thusly:
4186 # icc: Command line warning: ignoring option '-M'; no argument required
4187 # The diagnosis changed in icc 8.0:
4188 # icc: Command line remark: option '-MP' not supported
4189 if (grep 'ignoring option' conftest.err ||
4190 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4191 am_cv_CC_dependencies_compiler_type=$depmode
4192 break
4193 fi
4194 fi
4195 done
4196
4197 cd ..
4198 rm -rf conftest.dir
4199else
4200 am_cv_CC_dependencies_compiler_type=none
4201fi
4202
4203fi
4204{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4205$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4206CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4207
4208 if
4209 test "x$enable_dependency_tracking" != xno \
4210 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4211 am__fastdepCC_TRUE=
4212 am__fastdepCC_FALSE='#'
4213else
4214 am__fastdepCC_TRUE='#'
4215 am__fastdepCC_FALSE=
4216fi
4217
4218
4219case `pwd` in
4220 *\ * | *\ *)
4221 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4222$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4223esac
4224
4225
4226
135cf6a8
BB
4227macro_version='2.2.6b'
4228macro_revision='1.3017'
e70e591c
BB
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242ltmain="$ac_aux_dir/ltmain.sh"
4243
4244{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4245$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4246if test "${ac_cv_path_SED+set}" = set; then
4247 $as_echo_n "(cached) " >&6
4248else
4249 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4250 for ac_i in 1 2 3 4 5 6 7; do
4251 ac_script="$ac_script$as_nl$ac_script"
4252 done
4253 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4254 $as_unset ac_script || ac_script=
4255 if test -z "$SED"; then
4256 ac_path_SED_found=false
4257 # Loop through the user's path and test for each of PROGNAME-LIST
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH
4260do
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_prog in sed gsed; do
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4266 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4267# Check for GNU ac_path_SED and select it if it is found.
4268 # Check for GNU $ac_path_SED
4269case `"$ac_path_SED" --version 2>&1` in
4270*GNU*)
4271 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4272*)
4273 ac_count=0
4274 $as_echo_n 0123456789 >"conftest.in"
4275 while :
4276 do
4277 cat "conftest.in" "conftest.in" >"conftest.tmp"
4278 mv "conftest.tmp" "conftest.in"
4279 cp "conftest.in" "conftest.nl"
4280 $as_echo '' >> "conftest.nl"
4281 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283 ac_count=`expr $ac_count + 1`
4284 if test $ac_count -gt ${ac_path_SED_max-0}; then
4285 # Best one so far, save it but keep looking for a better one
4286 ac_cv_path_SED="$ac_path_SED"
4287 ac_path_SED_max=$ac_count
4288 fi
4289 # 10*(2^10) chars as input seems more than enough
4290 test $ac_count -gt 10 && break
4291 done
4292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4293esac
4294
4295 $ac_path_SED_found && break 3
4296 done
4297 done
4298done
4299IFS=$as_save_IFS
4300 if test -z "$ac_cv_path_SED"; then
4301 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4302$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4303 { (exit 1); exit 1; }; }
4304 fi
4305else
4306 ac_cv_path_SED=$SED
4307fi
4308
4309fi
4310{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4311$as_echo "$ac_cv_path_SED" >&6; }
4312 SED="$ac_cv_path_SED"
4313 rm -f conftest.sed
4314
4315test -z "$SED" && SED=sed
4316Xsed="$SED -e 1s/^X//"
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4329$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4330if test "${ac_cv_path_GREP+set}" = set; then
4331 $as_echo_n "(cached) " >&6
4332else
4333 if test -z "$GREP"; then
4334 ac_path_GREP_found=false
4335 # Loop through the user's path and test for each of PROGNAME-LIST
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4338do
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 for ac_prog in grep ggrep; do
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4344 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4345# Check for GNU ac_path_GREP and select it if it is found.
4346 # Check for GNU $ac_path_GREP
4347case `"$ac_path_GREP" --version 2>&1` in
4348*GNU*)
4349 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4350*)
4351 ac_count=0
4352 $as_echo_n 0123456789 >"conftest.in"
4353 while :
4354 do
4355 cat "conftest.in" "conftest.in" >"conftest.tmp"
4356 mv "conftest.tmp" "conftest.in"
4357 cp "conftest.in" "conftest.nl"
4358 $as_echo 'GREP' >> "conftest.nl"
4359 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4361 ac_count=`expr $ac_count + 1`
4362 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4363 # Best one so far, save it but keep looking for a better one
4364 ac_cv_path_GREP="$ac_path_GREP"
4365 ac_path_GREP_max=$ac_count
4366 fi
4367 # 10*(2^10) chars as input seems more than enough
4368 test $ac_count -gt 10 && break
4369 done
4370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4371esac
4372
4373 $ac_path_GREP_found && break 3
4374 done
4375 done
4376done
4377IFS=$as_save_IFS
4378 if test -z "$ac_cv_path_GREP"; then
4379 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4380$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4381 { (exit 1); exit 1; }; }
4382 fi
4383else
4384 ac_cv_path_GREP=$GREP
4385fi
4386
4387fi
4388{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4389$as_echo "$ac_cv_path_GREP" >&6; }
4390 GREP="$ac_cv_path_GREP"
4391
4392
4393{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4394$as_echo_n "checking for egrep... " >&6; }
4395if test "${ac_cv_path_EGREP+set}" = set; then
4396 $as_echo_n "(cached) " >&6
4397else
4398 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4399 then ac_cv_path_EGREP="$GREP -E"
4400 else
4401 if test -z "$EGREP"; then
4402 ac_path_EGREP_found=false
4403 # Loop through the user's path and test for each of PROGNAME-LIST
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4406do
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_prog in egrep; do
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4412 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4413# Check for GNU ac_path_EGREP and select it if it is found.
4414 # Check for GNU $ac_path_EGREP
4415case `"$ac_path_EGREP" --version 2>&1` in
4416*GNU*)
4417 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4418*)
4419 ac_count=0
4420 $as_echo_n 0123456789 >"conftest.in"
4421 while :
4422 do
4423 cat "conftest.in" "conftest.in" >"conftest.tmp"
4424 mv "conftest.tmp" "conftest.in"
4425 cp "conftest.in" "conftest.nl"
4426 $as_echo 'EGREP' >> "conftest.nl"
4427 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4428 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4429 ac_count=`expr $ac_count + 1`
4430 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4431 # Best one so far, save it but keep looking for a better one
4432 ac_cv_path_EGREP="$ac_path_EGREP"
4433 ac_path_EGREP_max=$ac_count
4434 fi
4435 # 10*(2^10) chars as input seems more than enough
4436 test $ac_count -gt 10 && break
4437 done
4438 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4439esac
4440
4441 $ac_path_EGREP_found && break 3
4442 done
4443 done
4444done
4445IFS=$as_save_IFS
4446 if test -z "$ac_cv_path_EGREP"; then
4447 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4448$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4449 { (exit 1); exit 1; }; }
4450 fi
4451else
4452 ac_cv_path_EGREP=$EGREP
4453fi
4454
4455 fi
4456fi
4457{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4458$as_echo "$ac_cv_path_EGREP" >&6; }
4459 EGREP="$ac_cv_path_EGREP"
4460
4461
4462{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4463$as_echo_n "checking for fgrep... " >&6; }
4464if test "${ac_cv_path_FGREP+set}" = set; then
4465 $as_echo_n "(cached) " >&6
4466else
4467 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4468 then ac_cv_path_FGREP="$GREP -F"
4469 else
4470 if test -z "$FGREP"; then
4471 ac_path_FGREP_found=false
4472 # Loop through the user's path and test for each of PROGNAME-LIST
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4475do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_prog in fgrep; do
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4481 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4482# Check for GNU ac_path_FGREP and select it if it is found.
4483 # Check for GNU $ac_path_FGREP
4484case `"$ac_path_FGREP" --version 2>&1` in
4485*GNU*)
4486 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4487*)
4488 ac_count=0
4489 $as_echo_n 0123456789 >"conftest.in"
4490 while :
4491 do
4492 cat "conftest.in" "conftest.in" >"conftest.tmp"
4493 mv "conftest.tmp" "conftest.in"
4494 cp "conftest.in" "conftest.nl"
4495 $as_echo 'FGREP' >> "conftest.nl"
4496 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4498 ac_count=`expr $ac_count + 1`
4499 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4500 # Best one so far, save it but keep looking for a better one
4501 ac_cv_path_FGREP="$ac_path_FGREP"
4502 ac_path_FGREP_max=$ac_count
4503 fi
4504 # 10*(2^10) chars as input seems more than enough
4505 test $ac_count -gt 10 && break
4506 done
4507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4508esac
4509
4510 $ac_path_FGREP_found && break 3
4511 done
4512 done
4513done
4514IFS=$as_save_IFS
4515 if test -z "$ac_cv_path_FGREP"; then
4516 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4517$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4518 { (exit 1); exit 1; }; }
4519 fi
4520else
4521 ac_cv_path_FGREP=$FGREP
4522fi
4523
4524 fi
4525fi
4526{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4527$as_echo "$ac_cv_path_FGREP" >&6; }
4528 FGREP="$ac_cv_path_FGREP"
4529
4530
4531test -z "$GREP" && GREP=grep
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551# Check whether --with-gnu-ld was given.
4552if test "${with_gnu_ld+set}" = set; then
4553 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4554else
4555 with_gnu_ld=no
4556fi
4557
4558ac_prog=ld
4559if test "$GCC" = yes; then
4560 # Check if gcc -print-prog-name=ld gives a path.
4561 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4562$as_echo_n "checking for ld used by $CC... " >&6; }
4563 case $host in
4564 *-*-mingw*)
4565 # gcc leaves a trailing carriage return which upsets mingw
4566 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4567 *)
4568 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4569 esac
4570 case $ac_prog in
4571 # Accept absolute paths.
4572 [\\/]* | ?:[\\/]*)
4573 re_direlt='/[^/][^/]*/\.\./'
4574 # Canonicalize the pathname of ld
4575 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4576 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4577 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4578 done
4579 test -z "$LD" && LD="$ac_prog"
4580 ;;
4581 "")
4582 # If it fails, then pretend we aren't using GCC.
4583 ac_prog=ld
4584 ;;
4585 *)
4586 # If it is relative, then search for the first ld in PATH.
4587 with_gnu_ld=unknown
4588 ;;
4589 esac
4590elif test "$with_gnu_ld" = yes; then
4591 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4592$as_echo_n "checking for GNU ld... " >&6; }
4593else
4594 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4595$as_echo_n "checking for non-GNU ld... " >&6; }
4596fi
4597if test "${lt_cv_path_LD+set}" = set; then
4598 $as_echo_n "(cached) " >&6
4599else
4600 if test -z "$LD"; then
4601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4602 for ac_dir in $PATH; do
4603 IFS="$lt_save_ifs"
4604 test -z "$ac_dir" && ac_dir=.
4605 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4606 lt_cv_path_LD="$ac_dir/$ac_prog"
4607 # Check to see if the program is GNU ld. I'd rather use --version,
4608 # but apparently some variants of GNU ld only accept -v.
4609 # Break only if it was the GNU/non-GNU ld that we prefer.
4610 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4611 *GNU* | *'with BFD'*)
4612 test "$with_gnu_ld" != no && break
4613 ;;
4614 *)
4615 test "$with_gnu_ld" != yes && break
4616 ;;
4617 esac
4618 fi
4619 done
4620 IFS="$lt_save_ifs"
4621else
4622 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4623fi
4624fi
4625
4626LD="$lt_cv_path_LD"
4627if test -n "$LD"; then
4628 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4629$as_echo "$LD" >&6; }
4630else
4631 { $as_echo "$as_me:$LINENO: result: no" >&5
4632$as_echo "no" >&6; }
4633fi
4634test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4635$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4636 { (exit 1); exit 1; }; }
4637{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4638$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4639if test "${lt_cv_prog_gnu_ld+set}" = set; then
4640 $as_echo_n "(cached) " >&6
4641else
4642 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4643case `$LD -v 2>&1 </dev/null` in
4644*GNU* | *'with BFD'*)
4645 lt_cv_prog_gnu_ld=yes
4646 ;;
4647*)
4648 lt_cv_prog_gnu_ld=no
4649 ;;
4650esac
4651fi
4652{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4653$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4654with_gnu_ld=$lt_cv_prog_gnu_ld
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4665$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4666if test "${lt_cv_path_NM+set}" = set; then
4667 $as_echo_n "(cached) " >&6
4668else
4669 if test -n "$NM"; then
4670 # Let the user override the test.
4671 lt_cv_path_NM="$NM"
4672else
4673 lt_nm_to_check="${ac_tool_prefix}nm"
4674 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4675 lt_nm_to_check="$lt_nm_to_check nm"
4676 fi
4677 for lt_tmp_nm in $lt_nm_to_check; do
4678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4679 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4680 IFS="$lt_save_ifs"
4681 test -z "$ac_dir" && ac_dir=.
4682 tmp_nm="$ac_dir/$lt_tmp_nm"
4683 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4684 # Check to see if the nm accepts a BSD-compat flag.
4685 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4686 # nm: unknown option "B" ignored
4687 # Tru64's nm complains that /dev/null is an invalid object file
4688 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4689 */dev/null* | *'Invalid file or object type'*)
4690 lt_cv_path_NM="$tmp_nm -B"
4691 break
4692 ;;
4693 *)
4694 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4695 */dev/null*)
4696 lt_cv_path_NM="$tmp_nm -p"
4697 break
4698 ;;
4699 *)
4700 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4701 continue # so that we can try to find one that supports BSD flags
4702 ;;
4703 esac
4704 ;;
4705 esac
4706 fi
4707 done
4708 IFS="$lt_save_ifs"
4709 done
4710 : ${lt_cv_path_NM=no}
4711fi
4712fi
4713{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4714$as_echo "$lt_cv_path_NM" >&6; }
4715if test "$lt_cv_path_NM" != "no"; then
4716 NM="$lt_cv_path_NM"
4717else
4718 # Didn't find any BSD compatible name lister, look for dumpbin.
4719 if test -n "$ac_tool_prefix"; then
4720 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4721 do
4722 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4723set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4724{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4725$as_echo_n "checking for $ac_word... " >&6; }
4726if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4727 $as_echo_n "(cached) " >&6
4728else
4729 if test -n "$DUMPBIN"; then
4730 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4731else
4732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH
4734do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2
4742 fi
4743done
4744done
4745IFS=$as_save_IFS
4746
4747fi
4748fi
4749DUMPBIN=$ac_cv_prog_DUMPBIN
4750if test -n "$DUMPBIN"; then
4751 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4752$as_echo "$DUMPBIN" >&6; }
4753else
4754 { $as_echo "$as_me:$LINENO: result: no" >&5
4755$as_echo "no" >&6; }
4756fi
4757
4758
4759 test -n "$DUMPBIN" && break
4760 done
4761fi
4762if test -z "$DUMPBIN"; then
4763 ac_ct_DUMPBIN=$DUMPBIN
4764 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4765do
4766 # Extract the first word of "$ac_prog", so it can be a program name with args.
4767set dummy $ac_prog; ac_word=$2
4768{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4769$as_echo_n "checking for $ac_word... " >&6; }
4770if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4771 $as_echo_n "(cached) " >&6
4772else
4773 if test -n "$ac_ct_DUMPBIN"; then
4774 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4775else
4776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH
4778do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4786 fi
4787done
4788done
4789IFS=$as_save_IFS
4790
4791fi
4792fi
4793ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4794if test -n "$ac_ct_DUMPBIN"; then
4795 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4796$as_echo "$ac_ct_DUMPBIN" >&6; }
4797else
4798 { $as_echo "$as_me:$LINENO: result: no" >&5
4799$as_echo "no" >&6; }
4800fi
4801
4802
4803 test -n "$ac_ct_DUMPBIN" && break
4804done
4805
4806 if test "x$ac_ct_DUMPBIN" = x; then
4807 DUMPBIN=":"
4808 else
4809 case $cross_compiling:$ac_tool_warned in
4810yes:)
4811{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4813ac_tool_warned=yes ;;
4814esac
4815 DUMPBIN=$ac_ct_DUMPBIN
4816 fi
4817fi
4818
4819
4820 if test "$DUMPBIN" != ":"; then
4821 NM="$DUMPBIN"
4822 fi
4823fi
4824test -z "$NM" && NM=nm
4825
4826
4827
4828
4829
4830
4831{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4832$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4833if test "${lt_cv_nm_interface+set}" = set; then
4834 $as_echo_n "(cached) " >&6
4835else
4836 lt_cv_nm_interface="BSD nm"
4837 echo "int some_variable = 0;" > conftest.$ac_ext
6ba3b446 4838 (eval echo "\"\$as_me:4838: $ac_compile\"" >&5)
e70e591c
BB
4839 (eval "$ac_compile" 2>conftest.err)
4840 cat conftest.err >&5
6ba3b446 4841 (eval echo "\"\$as_me:4841: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
e70e591c
BB
4842 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4843 cat conftest.err >&5
6ba3b446 4844 (eval echo "\"\$as_me:4844: output\"" >&5)
e70e591c
BB
4845 cat conftest.out >&5
4846 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4847 lt_cv_nm_interface="MS dumpbin"
4848 fi
4849 rm -f conftest*
4850fi
4851{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4852$as_echo "$lt_cv_nm_interface" >&6; }
4853
4854{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4855$as_echo_n "checking whether ln -s works... " >&6; }
4856LN_S=$as_ln_s
4857if test "$LN_S" = "ln -s"; then
4858 { $as_echo "$as_me:$LINENO: result: yes" >&5
4859$as_echo "yes" >&6; }
4860else
4861 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4862$as_echo "no, using $LN_S" >&6; }
4863fi
4864
4865# find the maximum length of command line arguments
4866{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4867$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4868if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4869 $as_echo_n "(cached) " >&6
4870else
4871 i=0
4872 teststring="ABCD"
4873
4874 case $build_os in
4875 msdosdjgpp*)
4876 # On DJGPP, this test can blow up pretty badly due to problems in libc
4877 # (any single argument exceeding 2000 bytes causes a buffer overrun
4878 # during glob expansion). Even if it were fixed, the result of this
4879 # check would be larger than it should be.
4880 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4881 ;;
4882
4883 gnu*)
4884 # Under GNU Hurd, this test is not required because there is
4885 # no limit to the length of command line arguments.
4886 # Libtool will interpret -1 as no limit whatsoever
4887 lt_cv_sys_max_cmd_len=-1;
4888 ;;
4889
4890 cygwin* | mingw* | cegcc*)
4891 # On Win9x/ME, this test blows up -- it succeeds, but takes
4892 # about 5 minutes as the teststring grows exponentially.
4893 # Worse, since 9x/ME are not pre-emptively multitasking,
4894 # you end up with a "frozen" computer, even though with patience
4895 # the test eventually succeeds (with a max line length of 256k).
4896 # Instead, let's just punt: use the minimum linelength reported by
4897 # all of the supported platforms: 8192 (on NT/2K/XP).
4898 lt_cv_sys_max_cmd_len=8192;
4899 ;;
4900
4901 amigaos*)
4902 # On AmigaOS with pdksh, this test takes hours, literally.
4903 # So we just punt and use a minimum line length of 8192.
4904 lt_cv_sys_max_cmd_len=8192;
4905 ;;
4906
4907 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4908 # This has been around since 386BSD, at least. Likely further.
4909 if test -x /sbin/sysctl; then
4910 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4911 elif test -x /usr/sbin/sysctl; then
4912 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4913 else
4914 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4915 fi
4916 # And add a safety zone
4917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4919 ;;
4920
4921 interix*)
4922 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4923 lt_cv_sys_max_cmd_len=196608
4924 ;;
4925
4926 osf*)
4927 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4928 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4929 # nice to cause kernel panics so lets avoid the loop below.
4930 # First set a reasonable default.
4931 lt_cv_sys_max_cmd_len=16384
4932 #
4933 if test -x /sbin/sysconfig; then
4934 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4935 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4936 esac
4937 fi
4938 ;;
4939 sco3.2v5*)
4940 lt_cv_sys_max_cmd_len=102400
4941 ;;
4942 sysv5* | sco5v6* | sysv4.2uw2*)
4943 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4944 if test -n "$kargmax"; then
4945 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4946 else
4947 lt_cv_sys_max_cmd_len=32768
4948 fi
4949 ;;
4950 *)
4951 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4952 if test -n "$lt_cv_sys_max_cmd_len"; then
4953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4955 else
4956 # Make teststring a little bigger before we do anything with it.
4957 # a 1K string should be a reasonable start.
4958 for i in 1 2 3 4 5 6 7 8 ; do
4959 teststring=$teststring$teststring
4960 done
4961 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4962 # If test is not a shell built-in, we'll probably end up computing a
4963 # maximum length that is only half of the actual maximum length, but
4964 # we can't tell.
4965 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4966 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4967 test $i != 17 # 1/2 MB should be enough
4968 do
4969 i=`expr $i + 1`
4970 teststring=$teststring$teststring
4971 done
4972 # Only check the string length outside the loop.
4973 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4974 teststring=
4975 # Add a significant safety factor because C++ compilers can tack on
4976 # massive amounts of additional arguments before passing them to the
4977 # linker. It appears as though 1/2 is a usable value.
4978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4979 fi
4980 ;;
4981 esac
4982
4983fi
4984
4985if test -n $lt_cv_sys_max_cmd_len ; then
4986 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4987$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4988else
4989 { $as_echo "$as_me:$LINENO: result: none" >&5
4990$as_echo "none" >&6; }
4991fi
4992max_cmd_len=$lt_cv_sys_max_cmd_len
4993
4994
4995
4996
4997
4998
4999: ${CP="cp -f"}
5000: ${MV="mv -f"}
5001: ${RM="rm -f"}
5002
5003{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5004$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5005# Try some XSI features
5006xsi_shell=no
5007( _lt_dummy="a/b/c"
5008 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5009 = c,a/b,, \
5010 && eval 'test $(( 1 + 1 )) -eq 2 \
5011 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5012 && xsi_shell=yes
5013{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5014$as_echo "$xsi_shell" >&6; }
5015
5016
5017{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5018$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5019lt_shell_append=no
5020( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5021 >/dev/null 2>&1 \
5022 && lt_shell_append=yes
5023{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5024$as_echo "$lt_shell_append" >&6; }
5025
5026
5027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5028 lt_unset=unset
5029else
5030 lt_unset=false
5031fi
5032
5033
5034
5035
5036
5037# test EBCDIC or ASCII
5038case `echo X|tr X '\101'` in
5039 A) # ASCII based system
5040 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5041 lt_SP2NL='tr \040 \012'
5042 lt_NL2SP='tr \015\012 \040\040'
5043 ;;
5044 *) # EBCDIC based system
5045 lt_SP2NL='tr \100 \n'
5046 lt_NL2SP='tr \r\n \100\100'
5047 ;;
5048esac
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5059$as_echo_n "checking for $LD option to reload object files... " >&6; }
5060if test "${lt_cv_ld_reload_flag+set}" = set; then
5061 $as_echo_n "(cached) " >&6
5062else
5063 lt_cv_ld_reload_flag='-r'
5064fi
5065{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5066$as_echo "$lt_cv_ld_reload_flag" >&6; }
5067reload_flag=$lt_cv_ld_reload_flag
5068case $reload_flag in
5069"" | " "*) ;;
5070*) reload_flag=" $reload_flag" ;;
5071esac
5072reload_cmds='$LD$reload_flag -o $output$reload_objs'
5073case $host_os in
5074 darwin*)
5075 if test "$GCC" = yes; then
5076 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5077 else
5078 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5079 fi
5080 ;;
5081esac
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091if test -n "$ac_tool_prefix"; then
5092 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5093set dummy ${ac_tool_prefix}objdump; ac_word=$2
5094{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5095$as_echo_n "checking for $ac_word... " >&6; }
5096if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5097 $as_echo_n "(cached) " >&6
5098else
5099 if test -n "$OBJDUMP"; then
5100 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5101else
5102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103for as_dir in $PATH
5104do
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5109 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 break 2
5112 fi
5113done
5114done
5115IFS=$as_save_IFS
5116
5117fi
5118fi
5119OBJDUMP=$ac_cv_prog_OBJDUMP
5120if test -n "$OBJDUMP"; then
5121 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5122$as_echo "$OBJDUMP" >&6; }
5123else
5124 { $as_echo "$as_me:$LINENO: result: no" >&5
5125$as_echo "no" >&6; }
5126fi
5127
5128
5129fi
5130if test -z "$ac_cv_prog_OBJDUMP"; then
5131 ac_ct_OBJDUMP=$OBJDUMP
5132 # Extract the first word of "objdump", so it can be a program name with args.
5133set dummy objdump; ac_word=$2
5134{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5135$as_echo_n "checking for $ac_word... " >&6; }
5136if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5137 $as_echo_n "(cached) " >&6
5138else
5139 if test -n "$ac_ct_OBJDUMP"; then
5140 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5141else
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5152 fi
5153done
5154done
5155IFS=$as_save_IFS
5156
5157fi
5158fi
5159ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5160if test -n "$ac_ct_OBJDUMP"; then
5161 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5162$as_echo "$ac_ct_OBJDUMP" >&6; }
5163else
5164 { $as_echo "$as_me:$LINENO: result: no" >&5
5165$as_echo "no" >&6; }
5166fi
5167
5168 if test "x$ac_ct_OBJDUMP" = x; then
5169 OBJDUMP="false"
5170 else
5171 case $cross_compiling:$ac_tool_warned in
5172yes:)
5173{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5175ac_tool_warned=yes ;;
5176esac
5177 OBJDUMP=$ac_ct_OBJDUMP
5178 fi
5179else
5180 OBJDUMP="$ac_cv_prog_OBJDUMP"
5181fi
5182
5183test -z "$OBJDUMP" && OBJDUMP=objdump
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5194$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5195if test "${lt_cv_deplibs_check_method+set}" = set; then
5196 $as_echo_n "(cached) " >&6
5197else
5198 lt_cv_file_magic_cmd='$MAGIC_CMD'
5199lt_cv_file_magic_test_file=
5200lt_cv_deplibs_check_method='unknown'
5201# Need to set the preceding variable on all platforms that support
5202# interlibrary dependencies.
5203# 'none' -- dependencies not supported.
5204# `unknown' -- same as none, but documents that we really don't know.
5205# 'pass_all' -- all dependencies passed with no checks.
5206# 'test_compile' -- check by making test program.
5207# 'file_magic [[regex]]' -- check by looking for files in library path
5208# which responds to the $file_magic_cmd with a given extended regex.
5209# If you have `file' or equivalent on your system and you're not sure
5210# whether `pass_all' will *always* work, you probably want this one.
5211
5212case $host_os in
5213aix[4-9]*)
5214 lt_cv_deplibs_check_method=pass_all
5215 ;;
5216
5217beos*)
5218 lt_cv_deplibs_check_method=pass_all
5219 ;;
5220
5221bsdi[45]*)
5222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5223 lt_cv_file_magic_cmd='/usr/bin/file -L'
5224 lt_cv_file_magic_test_file=/shlib/libc.so
5225 ;;
5226
5227cygwin*)
5228 # func_win32_libid is a shell function defined in ltmain.sh
5229 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5230 lt_cv_file_magic_cmd='func_win32_libid'
5231 ;;
5232
5233mingw* | pw32*)
5234 # Base MSYS/MinGW do not provide the 'file' command needed by
5235 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5236 # unless we find 'file', for example because we are cross-compiling.
5237 if ( file / ) >/dev/null 2>&1; then
5238 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5239 lt_cv_file_magic_cmd='func_win32_libid'
5240 else
5241 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5242 lt_cv_file_magic_cmd='$OBJDUMP -f'
5243 fi
5244 ;;
5245
5246cegcc)
5247 # use the weaker test based on 'objdump'. See mingw*.
5248 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5249 lt_cv_file_magic_cmd='$OBJDUMP -f'
5250 ;;
5251
5252darwin* | rhapsody*)
5253 lt_cv_deplibs_check_method=pass_all
5254 ;;
5255
5256freebsd* | dragonfly*)
5257 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5258 case $host_cpu in
5259 i*86 )
5260 # Not sure whether the presence of OpenBSD here was a mistake.
5261 # Let's accept both of them until this is cleared up.
5262 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5263 lt_cv_file_magic_cmd=/usr/bin/file
5264 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5265 ;;
5266 esac
5267 else
5268 lt_cv_deplibs_check_method=pass_all
5269 fi
5270 ;;
5271
5272gnu*)
5273 lt_cv_deplibs_check_method=pass_all
5274 ;;
5275
5276hpux10.20* | hpux11*)
5277 lt_cv_file_magic_cmd=/usr/bin/file
5278 case $host_cpu in
5279 ia64*)
5280 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5281 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5282 ;;
5283 hppa*64*)
5284 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]'
5285 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5286 ;;
5287 *)
5288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5289 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5290 ;;
5291 esac
5292 ;;
5293
5294interix[3-9]*)
5295 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5297 ;;
5298
5299irix5* | irix6* | nonstopux*)
5300 case $LD in
5301 *-32|*"-32 ") libmagic=32-bit;;
5302 *-n32|*"-n32 ") libmagic=N32;;
5303 *-64|*"-64 ") libmagic=64-bit;;
5304 *) libmagic=never-match;;
5305 esac
5306 lt_cv_deplibs_check_method=pass_all
5307 ;;
5308
5309# This must be Linux ELF.
5310linux* | k*bsd*-gnu)
5311 lt_cv_deplibs_check_method=pass_all
5312 ;;
5313
5314netbsd*)
5315 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5317 else
5318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5319 fi
5320 ;;
5321
5322newos6*)
5323 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5324 lt_cv_file_magic_cmd=/usr/bin/file
5325 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5326 ;;
5327
5328*nto* | *qnx*)
5329 lt_cv_deplibs_check_method=pass_all
5330 ;;
5331
5332openbsd*)
5333 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5335 else
5336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5337 fi
5338 ;;
5339
5340osf3* | osf4* | osf5*)
5341 lt_cv_deplibs_check_method=pass_all
5342 ;;
5343
5344rdos*)
5345 lt_cv_deplibs_check_method=pass_all
5346 ;;
5347
5348solaris*)
5349 lt_cv_deplibs_check_method=pass_all
5350 ;;
5351
5352sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5353 lt_cv_deplibs_check_method=pass_all
5354 ;;
5355
5356sysv4 | sysv4.3*)
5357 case $host_vendor in
5358 motorola)
5359 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]'
5360 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5361 ;;
5362 ncr)
5363 lt_cv_deplibs_check_method=pass_all
5364 ;;
5365 sequent)
5366 lt_cv_file_magic_cmd='/bin/file'
5367 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5368 ;;
5369 sni)
5370 lt_cv_file_magic_cmd='/bin/file'
5371 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5372 lt_cv_file_magic_test_file=/lib/libc.so
5373 ;;
5374 siemens)
5375 lt_cv_deplibs_check_method=pass_all
5376 ;;
5377 pc)
5378 lt_cv_deplibs_check_method=pass_all
5379 ;;
5380 esac
5381 ;;
5382
5383tpf*)
5384 lt_cv_deplibs_check_method=pass_all
5385 ;;
5386esac
5387
5388fi
5389{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5390$as_echo "$lt_cv_deplibs_check_method" >&6; }
5391file_magic_cmd=$lt_cv_file_magic_cmd
5392deplibs_check_method=$lt_cv_deplibs_check_method
5393test -z "$deplibs_check_method" && deplibs_check_method=unknown
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406if test -n "$ac_tool_prefix"; then
5407 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5408set dummy ${ac_tool_prefix}ar; ac_word=$2
5409{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5410$as_echo_n "checking for $ac_word... " >&6; }
5411if test "${ac_cv_prog_AR+set}" = set; then
5412 $as_echo_n "(cached) " >&6
5413else
5414 if test -n "$AR"; then
5415 ac_cv_prog_AR="$AR" # Let the user override the test.
5416else
5417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418for as_dir in $PATH
5419do
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 ac_cv_prog_AR="${ac_tool_prefix}ar"
5425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5427 fi
5428done
5429done
5430IFS=$as_save_IFS
5431
5432fi
5433fi
5434AR=$ac_cv_prog_AR
5435if test -n "$AR"; then
5436 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5437$as_echo "$AR" >&6; }
5438else
5439 { $as_echo "$as_me:$LINENO: result: no" >&5
5440$as_echo "no" >&6; }
5441fi
5442
5443
5444fi
5445if test -z "$ac_cv_prog_AR"; then
5446 ac_ct_AR=$AR
5447 # Extract the first word of "ar", so it can be a program name with args.
5448set dummy ar; ac_word=$2
5449{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5450$as_echo_n "checking for $ac_word... " >&6; }
5451if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5452 $as_echo_n "(cached) " >&6
5453else
5454 if test -n "$ac_ct_AR"; then
5455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5456else
5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH
5459do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_ac_ct_AR="ar"
5465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468done
5469done
5470IFS=$as_save_IFS
5471
5472fi
5473fi
5474ac_ct_AR=$ac_cv_prog_ac_ct_AR
5475if test -n "$ac_ct_AR"; then
5476 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5477$as_echo "$ac_ct_AR" >&6; }
5478else
5479 { $as_echo "$as_me:$LINENO: result: no" >&5
5480$as_echo "no" >&6; }
5481fi
5482
5483 if test "x$ac_ct_AR" = x; then
5484 AR="false"
5485 else
5486 case $cross_compiling:$ac_tool_warned in
5487yes:)
5488{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490ac_tool_warned=yes ;;
5491esac
5492 AR=$ac_ct_AR
5493 fi
5494else
5495 AR="$ac_cv_prog_AR"
5496fi
5497
5498test -z "$AR" && AR=ar
5499test -z "$AR_FLAGS" && AR_FLAGS=cru
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511if test -n "$ac_tool_prefix"; then
5512 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5513set dummy ${ac_tool_prefix}strip; ac_word=$2
5514{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5515$as_echo_n "checking for $ac_word... " >&6; }
5516if test "${ac_cv_prog_STRIP+set}" = set; then
5517 $as_echo_n "(cached) " >&6
5518else
5519 if test -n "$STRIP"; then
5520 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5521else
5522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523for as_dir in $PATH
5524do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533done
5534done
5535IFS=$as_save_IFS
5536
5537fi
5538fi
5539STRIP=$ac_cv_prog_STRIP
5540if test -n "$STRIP"; then
5541 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5542$as_echo "$STRIP" >&6; }
5543else
5544 { $as_echo "$as_me:$LINENO: result: no" >&5
5545$as_echo "no" >&6; }
5546fi
5547
5548
5549fi
5550if test -z "$ac_cv_prog_STRIP"; then
5551 ac_ct_STRIP=$STRIP
5552 # Extract the first word of "strip", so it can be a program name with args.
5553set dummy strip; ac_word=$2
5554{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5555$as_echo_n "checking for $ac_word... " >&6; }
5556if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5557 $as_echo_n "(cached) " >&6
5558else
5559 if test -n "$ac_ct_STRIP"; then
5560 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5561else
5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5569 ac_cv_prog_ac_ct_STRIP="strip"
5570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5572 fi
5573done
5574done
5575IFS=$as_save_IFS
5576
5577fi
5578fi
5579ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5580if test -n "$ac_ct_STRIP"; then
5581 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5582$as_echo "$ac_ct_STRIP" >&6; }
5583else
5584 { $as_echo "$as_me:$LINENO: result: no" >&5
5585$as_echo "no" >&6; }
5586fi
5587
5588 if test "x$ac_ct_STRIP" = x; then
5589 STRIP=":"
5590 else
5591 case $cross_compiling:$ac_tool_warned in
5592yes:)
5593{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5595ac_tool_warned=yes ;;
5596esac
5597 STRIP=$ac_ct_STRIP
5598 fi
5599else
5600 STRIP="$ac_cv_prog_STRIP"
5601fi
5602
5603test -z "$STRIP" && STRIP=:
5604
5605
5606
5607
5608
5609
5610if test -n "$ac_tool_prefix"; then
5611 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5612set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5613{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5614$as_echo_n "checking for $ac_word... " >&6; }
5615if test "${ac_cv_prog_RANLIB+set}" = set; then
5616 $as_echo_n "(cached) " >&6
5617else
5618 if test -n "$RANLIB"; then
5619 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5620else
5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622for as_dir in $PATH
5623do
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5629 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 break 2
5631 fi
5632done
5633done
5634IFS=$as_save_IFS
5635
5636fi
5637fi
5638RANLIB=$ac_cv_prog_RANLIB
5639if test -n "$RANLIB"; then
5640 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5641$as_echo "$RANLIB" >&6; }
5642else
5643 { $as_echo "$as_me:$LINENO: result: no" >&5
5644$as_echo "no" >&6; }
5645fi
5646
5647
5648fi
5649if test -z "$ac_cv_prog_RANLIB"; then
5650 ac_ct_RANLIB=$RANLIB
5651 # Extract the first word of "ranlib", so it can be a program name with args.
5652set dummy ranlib; ac_word=$2
5653{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5654$as_echo_n "checking for $ac_word... " >&6; }
5655if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5656 $as_echo_n "(cached) " >&6
5657else
5658 if test -n "$ac_ct_RANLIB"; then
5659 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5660else
5661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_prog_ac_ct_RANLIB="ranlib"
5669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672done
5673done
5674IFS=$as_save_IFS
5675
5676fi
5677fi
5678ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5679if test -n "$ac_ct_RANLIB"; then
5680 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5681$as_echo "$ac_ct_RANLIB" >&6; }
5682else
5683 { $as_echo "$as_me:$LINENO: result: no" >&5
5684$as_echo "no" >&6; }
5685fi
5686
5687 if test "x$ac_ct_RANLIB" = x; then
5688 RANLIB=":"
5689 else
5690 case $cross_compiling:$ac_tool_warned in
5691yes:)
5692{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5694ac_tool_warned=yes ;;
5695esac
5696 RANLIB=$ac_ct_RANLIB
5697 fi
5698else
5699 RANLIB="$ac_cv_prog_RANLIB"
5700fi
5701
5702test -z "$RANLIB" && RANLIB=:
5703
5704
5705
5706
5707
5708
5709# Determine commands to create old-style static archives.
5710old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5711old_postinstall_cmds='chmod 644 $oldlib'
5712old_postuninstall_cmds=
5713
5714if test -n "$RANLIB"; then
5715 case $host_os in
5716 openbsd*)
5717 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5718 ;;
5719 *)
5720 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5721 ;;
5722 esac
5723 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5724fi
5725
5726
5727
5728
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# If no C compiler was specified, use CC.
5760LTCC=${LTCC-"$CC"}
5761
5762# If no C compiler flags were specified, use CFLAGS.
5763LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5764
5765# Allow CC to be a program name with arguments.
5766compiler=$CC
5767
5768
5769# Check for command to grab the raw symbol name followed by C symbol from nm.
5770{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5771$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5772if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5773 $as_echo_n "(cached) " >&6
5774else
5775
5776# These are sane defaults that work on at least a few old systems.
5777# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5778
5779# Character class describing NM global symbol codes.
5780symcode='[BCDEGRST]'
5781
5782# Regexp to match symbols that can be accessed directly from C.
5783sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5784
5785# Define system-specific variables.
5786case $host_os in
5787aix*)
5788 symcode='[BCDT]'
5789 ;;
5790cygwin* | mingw* | pw32* | cegcc*)
5791 symcode='[ABCDGISTW]'
5792 ;;
5793hpux*)
5794 if test "$host_cpu" = ia64; then
5795 symcode='[ABCDEGRST]'
5796 fi
5797 ;;
5798irix* | nonstopux*)
5799 symcode='[BCDEGRST]'
5800 ;;
5801osf*)
5802 symcode='[BCDEGQRST]'
5803 ;;
5804solaris*)
5805 symcode='[BDRT]'
5806 ;;
5807sco3.2v5*)
5808 symcode='[DT]'
5809 ;;
5810sysv4.2uw2*)
5811 symcode='[DT]'
5812 ;;
5813sysv5* | sco5v6* | unixware* | OpenUNIX*)
5814 symcode='[ABDT]'
5815 ;;
5816sysv4)
5817 symcode='[DFNSTU]'
5818 ;;
5819esac
5820
5821# If we're using GNU nm, then use its standard symbol codes.
5822case `$NM -V 2>&1` in
5823*GNU* | *'with BFD'*)
5824 symcode='[ABCDGIRSTW]' ;;
5825esac
5826
5827# Transform an extracted symbol line into a proper C declaration.
5828# Some systems (esp. on ia64) link data and code symbols differently,
5829# so use this general approach.
5830lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5831
5832# Transform an extracted symbol line into symbol name and symbol address
5833lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5834lt_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'"
5835
5836# Handle CRLF in mingw tool chain
5837opt_cr=
5838case $build_os in
5839mingw*)
5840 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5841 ;;
5842esac
5843
5844# Try without a prefix underscore, then with it.
5845for ac_symprfx in "" "_"; do
5846
5847 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5848 symxfrm="\\1 $ac_symprfx\\2 \\2"
5849
5850 # Write the raw and C identifiers.
5851 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5852 # Fake it for dumpbin and say T for any non-static function
5853 # and D for any global variable.
5854 # Also find C++ and __fastcall symbols from MSVC++,
5855 # which start with @ or ?.
5856 lt_cv_sys_global_symbol_pipe="$AWK '"\
5857" {last_section=section; section=\$ 3};"\
5858" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5859" \$ 0!~/External *\|/{next};"\
5860" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5861" {if(hide[section]) next};"\
5862" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5863" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5864" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5865" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5866" ' prfx=^$ac_symprfx"
5867 else
5868 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5869 fi
5870
5871 # Check to see that the pipe works correctly.
5872 pipe_works=no
5873
5874 rm -f conftest*
5875 cat > conftest.$ac_ext <<_LT_EOF
5876#ifdef __cplusplus
5877extern "C" {
5878#endif
5879char nm_test_var;
5880void nm_test_func(void);
5881void nm_test_func(void){}
5882#ifdef __cplusplus
5883}
5884#endif
5885int main(){nm_test_var='a';nm_test_func();return(0);}
5886_LT_EOF
5887
5888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5889 (eval $ac_compile) 2>&5
5890 ac_status=$?
5891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; then
5893 # Now try to grab the symbols.
5894 nlist=conftest.nm
5895 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5896 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5897 ac_status=$?
5898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } && test -s "$nlist"; then
5900 # Try sorting and uniquifying the output.
5901 if sort "$nlist" | uniq > "$nlist"T; then
5902 mv -f "$nlist"T "$nlist"
5903 else
5904 rm -f "$nlist"T
5905 fi
5906
5907 # Make sure that we snagged all the symbols we need.
5908 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5909 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5910 cat <<_LT_EOF > conftest.$ac_ext
5911#ifdef __cplusplus
5912extern "C" {
5913#endif
5914
5915_LT_EOF
5916 # Now generate the symbol file.
5917 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5918
5919 cat <<_LT_EOF >> conftest.$ac_ext
5920
5921/* The mapping between symbol names and symbols. */
5922const struct {
5923 const char *name;
5924 void *address;
5925}
5926lt__PROGRAM__LTX_preloaded_symbols[] =
5927{
5928 { "@PROGRAM@", (void *) 0 },
5929_LT_EOF
5930 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5931 cat <<\_LT_EOF >> conftest.$ac_ext
5932 {0, (void *) 0}
5933};
5934
5935/* This works around a problem in FreeBSD linker */
5936#ifdef FREEBSD_WORKAROUND
5937static const void *lt_preloaded_setup() {
5938 return lt__PROGRAM__LTX_preloaded_symbols;
5939}
5940#endif
5941
5942#ifdef __cplusplus
5943}
5944#endif
5945_LT_EOF
5946 # Now try linking the two files.
5947 mv conftest.$ac_objext conftstm.$ac_objext
5948 lt_save_LIBS="$LIBS"
5949 lt_save_CFLAGS="$CFLAGS"
5950 LIBS="conftstm.$ac_objext"
5951 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953 (eval $ac_link) 2>&5
5954 ac_status=$?
5955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5957 pipe_works=yes
5958 fi
5959 LIBS="$lt_save_LIBS"
5960 CFLAGS="$lt_save_CFLAGS"
5961 else
5962 echo "cannot find nm_test_func in $nlist" >&5
5963 fi
5964 else
5965 echo "cannot find nm_test_var in $nlist" >&5
5966 fi
5967 else
5968 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5969 fi
5970 else
5971 echo "$progname: failed program was:" >&5
5972 cat conftest.$ac_ext >&5
5973 fi
5974 rm -rf conftest* conftst*
5975
5976 # Do not use the global_symbol_pipe unless it works.
5977 if test "$pipe_works" = yes; then
5978 break
5979 else
5980 lt_cv_sys_global_symbol_pipe=
5981 fi
5982done
5983
5984fi
5985
5986if test -z "$lt_cv_sys_global_symbol_pipe"; then
5987 lt_cv_sys_global_symbol_to_cdecl=
5988fi
5989if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5990 { $as_echo "$as_me:$LINENO: result: failed" >&5
5991$as_echo "failed" >&6; }
5992else
5993 { $as_echo "$as_me:$LINENO: result: ok" >&5
5994$as_echo "ok" >&6; }
5995fi
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019# Check whether --enable-libtool-lock was given.
6020if test "${enable_libtool_lock+set}" = set; then
6021 enableval=$enable_libtool_lock;
6022fi
6023
6024test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6025
6026# Some flags need to be propagated to the compiler or linker for good
6027# libtool support.
6028case $host in
6029ia64-*-hpux*)
6030 # Find out which ABI we are using.
6031 echo 'int i;' > conftest.$ac_ext
6032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6033 (eval $ac_compile) 2>&5
6034 ac_status=$?
6035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; then
6037 case `/usr/bin/file conftest.$ac_objext` in
6038 *ELF-32*)
6039 HPUX_IA64_MODE="32"
6040 ;;
6041 *ELF-64*)
6042 HPUX_IA64_MODE="64"
6043 ;;
6044 esac
6045 fi
6046 rm -rf conftest*
6047 ;;
6048*-*-irix6*)
6049 # Find out which ABI we are using.
6ba3b446 6050 echo '#line 6050 "configure"' > conftest.$ac_ext
e70e591c
BB
6051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052 (eval $ac_compile) 2>&5
6053 ac_status=$?
6054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; then
6056 if test "$lt_cv_prog_gnu_ld" = yes; then
6057 case `/usr/bin/file conftest.$ac_objext` in
6058 *32-bit*)
6059 LD="${LD-ld} -melf32bsmip"
6060 ;;
6061 *N32*)
6062 LD="${LD-ld} -melf32bmipn32"
6063 ;;
6064 *64-bit*)
6065 LD="${LD-ld} -melf64bmip"
6066 ;;
6067 esac
6068 else
6069 case `/usr/bin/file conftest.$ac_objext` in
6070 *32-bit*)
6071 LD="${LD-ld} -32"
6072 ;;
6073 *N32*)
6074 LD="${LD-ld} -n32"
6075 ;;
6076 *64-bit*)
6077 LD="${LD-ld} -64"
6078 ;;
6079 esac
6080 fi
6081 fi
6082 rm -rf conftest*
6083 ;;
6084
6085x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6086s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6087 # Find out which ABI we are using.
6088 echo 'int i;' > conftest.$ac_ext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090 (eval $ac_compile) 2>&5
6091 ac_status=$?
6092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; then
6094 case `/usr/bin/file conftest.o` in
6095 *32-bit*)
6096 case $host in
6097 x86_64-*kfreebsd*-gnu)
6098 LD="${LD-ld} -m elf_i386_fbsd"
6099 ;;
6100 x86_64-*linux*)
6101 LD="${LD-ld} -m elf_i386"
6102 ;;
6103 ppc64-*linux*|powerpc64-*linux*)
6104 LD="${LD-ld} -m elf32ppclinux"
6105 ;;
6106 s390x-*linux*)
6107 LD="${LD-ld} -m elf_s390"
6108 ;;
6109 sparc64-*linux*)
6110 LD="${LD-ld} -m elf32_sparc"
6111 ;;
6112 esac
6113 ;;
6114 *64-bit*)
6115 case $host in
6116 x86_64-*kfreebsd*-gnu)
6117 LD="${LD-ld} -m elf_x86_64_fbsd"
6118 ;;
6119 x86_64-*linux*)
6120 LD="${LD-ld} -m elf_x86_64"
6121 ;;
6122 ppc*-*linux*|powerpc*-*linux*)
6123 LD="${LD-ld} -m elf64ppc"
6124 ;;
6125 s390*-*linux*|s390*-*tpf*)
6126 LD="${LD-ld} -m elf64_s390"
6127 ;;
6128 sparc*-*linux*)
6129 LD="${LD-ld} -m elf64_sparc"
6130 ;;
6131 esac
6132 ;;
6133 esac
6134 fi
6135 rm -rf conftest*
6136 ;;
6137
6138*-*-sco3.2v5*)
6139 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6140 SAVE_CFLAGS="$CFLAGS"
6141 CFLAGS="$CFLAGS -belf"
6142 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6143$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6144if test "${lt_cv_cc_needs_belf+set}" = set; then
6145 $as_echo_n "(cached) " >&6
6146else
6147 ac_ext=c
6148ac_cpp='$CPP $CPPFLAGS'
6149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151ac_compiler_gnu=$ac_cv_c_compiler_gnu
6152
6153 cat >conftest.$ac_ext <<_ACEOF
6154/* confdefs.h. */
6155_ACEOF
6156cat confdefs.h >>conftest.$ac_ext
6157cat >>conftest.$ac_ext <<_ACEOF
6158/* end confdefs.h. */
6159
6160int
6161main ()
6162{
6163
6164 ;
6165 return 0;
6166}
6167_ACEOF
6168rm -f conftest.$ac_objext conftest$ac_exeext
6169if { (ac_try="$ac_link"
6170case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173esac
6174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6175$as_echo "$ac_try_echo") >&5
6176 (eval "$ac_link") 2>conftest.er1
6177 ac_status=$?
6178 grep -v '^ *+' conftest.er1 >conftest.err
6179 rm -f conftest.er1
6180 cat conftest.err >&5
6181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } && {
6183 test -z "$ac_c_werror_flag" ||
6184 test ! -s conftest.err
6185 } && test -s conftest$ac_exeext && {
6186 test "$cross_compiling" = yes ||
6187 $as_test_x conftest$ac_exeext
6188 }; then
6189 lt_cv_cc_needs_belf=yes
6190else
6191 $as_echo "$as_me: failed program was:" >&5
6192sed 's/^/| /' conftest.$ac_ext >&5
6193
6194 lt_cv_cc_needs_belf=no
6195fi
6196
6197rm -rf conftest.dSYM
6198rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6199 conftest$ac_exeext conftest.$ac_ext
6200 ac_ext=c
6201ac_cpp='$CPP $CPPFLAGS'
6202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6204ac_compiler_gnu=$ac_cv_c_compiler_gnu
6205
6206fi
6207{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6208$as_echo "$lt_cv_cc_needs_belf" >&6; }
6209 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6210 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6211 CFLAGS="$SAVE_CFLAGS"
6212 fi
6213 ;;
6214sparc*-*solaris*)
6215 # Find out which ABI we are using.
6216 echo 'int i;' > conftest.$ac_ext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218 (eval $ac_compile) 2>&5
6219 ac_status=$?
6220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; then
6222 case `/usr/bin/file conftest.o` in
6223 *64-bit*)
6224 case $lt_cv_prog_gnu_ld in
6225 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6226 *)
6227 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6228 LD="${LD-ld} -64"
6229 fi
6230 ;;
6231 esac
6232 ;;
6233 esac
6234 fi
6235 rm -rf conftest*
6236 ;;
6237esac
6238
6239need_locks="$enable_libtool_lock"
6240
6241
6242 case $host_os in
6243 rhapsody* | darwin*)
6244 if test -n "$ac_tool_prefix"; then
6245 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6246set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6247{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6248$as_echo_n "checking for $ac_word... " >&6; }
6249if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6250 $as_echo_n "(cached) " >&6
6251else
6252 if test -n "$DSYMUTIL"; then
6253 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6254else
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266done
6267done
6268IFS=$as_save_IFS
6269
6270fi
6271fi
6272DSYMUTIL=$ac_cv_prog_DSYMUTIL
6273if test -n "$DSYMUTIL"; then
6274 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6275$as_echo "$DSYMUTIL" >&6; }
6276else
6277 { $as_echo "$as_me:$LINENO: result: no" >&5
6278$as_echo "no" >&6; }
6279fi
6280
6281
6282fi
6283if test -z "$ac_cv_prog_DSYMUTIL"; then
6284 ac_ct_DSYMUTIL=$DSYMUTIL
6285 # Extract the first word of "dsymutil", so it can be a program name with args.
6286set dummy dsymutil; ac_word=$2
6287{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6288$as_echo_n "checking for $ac_word... " >&6; }
6289if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6290 $as_echo_n "(cached) " >&6
6291else
6292 if test -n "$ac_ct_DSYMUTIL"; then
6293 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6294else
6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH
6297do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6305 fi
6306done
6307done
6308IFS=$as_save_IFS
6309
6310fi
6311fi
6312ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6313if test -n "$ac_ct_DSYMUTIL"; then
6314 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6315$as_echo "$ac_ct_DSYMUTIL" >&6; }
6316else
6317 { $as_echo "$as_me:$LINENO: result: no" >&5
6318$as_echo "no" >&6; }
6319fi
6320
6321 if test "x$ac_ct_DSYMUTIL" = x; then
6322 DSYMUTIL=":"
6323 else
6324 case $cross_compiling:$ac_tool_warned in
6325yes:)
6326{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328ac_tool_warned=yes ;;
6329esac
6330 DSYMUTIL=$ac_ct_DSYMUTIL
6331 fi
6332else
6333 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6334fi
6335
6336 if test -n "$ac_tool_prefix"; then
6337 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6338set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6339{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6340$as_echo_n "checking for $ac_word... " >&6; }
6341if test "${ac_cv_prog_NMEDIT+set}" = set; then
6342 $as_echo_n "(cached) " >&6
6343else
6344 if test -n "$NMEDIT"; then
6345 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6346else
6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
6349do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358done
6359done
6360IFS=$as_save_IFS
6361
6362fi
6363fi
6364NMEDIT=$ac_cv_prog_NMEDIT
6365if test -n "$NMEDIT"; then
6366 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6367$as_echo "$NMEDIT" >&6; }
6368else
6369 { $as_echo "$as_me:$LINENO: result: no" >&5
6370$as_echo "no" >&6; }
6371fi
6372
6373
6374fi
6375if test -z "$ac_cv_prog_NMEDIT"; then
6376 ac_ct_NMEDIT=$NMEDIT
6377 # Extract the first word of "nmedit", so it can be a program name with args.
6378set dummy nmedit; ac_word=$2
6379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6380$as_echo_n "checking for $ac_word... " >&6; }
6381if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6382 $as_echo_n "(cached) " >&6
6383else
6384 if test -n "$ac_ct_NMEDIT"; then
6385 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398done
6399done
6400IFS=$as_save_IFS
6401
6402fi
6403fi
6404ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6405if test -n "$ac_ct_NMEDIT"; then
6406 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6407$as_echo "$ac_ct_NMEDIT" >&6; }
6408else
6409 { $as_echo "$as_me:$LINENO: result: no" >&5
6410$as_echo "no" >&6; }
6411fi
6412
6413 if test "x$ac_ct_NMEDIT" = x; then
6414 NMEDIT=":"
6415 else
6416 case $cross_compiling:$ac_tool_warned in
6417yes:)
6418{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6420ac_tool_warned=yes ;;
6421esac
6422 NMEDIT=$ac_ct_NMEDIT
6423 fi
6424else
6425 NMEDIT="$ac_cv_prog_NMEDIT"
6426fi
6427
6428 if test -n "$ac_tool_prefix"; then
6429 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6430set dummy ${ac_tool_prefix}lipo; ac_word=$2
6431{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6432$as_echo_n "checking for $ac_word... " >&6; }
6433if test "${ac_cv_prog_LIPO+set}" = set; then
6434 $as_echo_n "(cached) " >&6
6435else
6436 if test -n "$LIPO"; then
6437 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6438else
6439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440for as_dir in $PATH
6441do
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 break 2
6449 fi
6450done
6451done
6452IFS=$as_save_IFS
6453
6454fi
6455fi
6456LIPO=$ac_cv_prog_LIPO
6457if test -n "$LIPO"; then
6458 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6459$as_echo "$LIPO" >&6; }
6460else
6461 { $as_echo "$as_me:$LINENO: result: no" >&5
6462$as_echo "no" >&6; }
6463fi
6464
6465
6466fi
6467if test -z "$ac_cv_prog_LIPO"; then
6468 ac_ct_LIPO=$LIPO
6469 # Extract the first word of "lipo", so it can be a program name with args.
6470set dummy lipo; ac_word=$2
6471{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6472$as_echo_n "checking for $ac_word... " >&6; }
6473if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6474 $as_echo_n "(cached) " >&6
6475else
6476 if test -n "$ac_ct_LIPO"; then
6477 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6478else
6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480for as_dir in $PATH
6481do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_ac_ct_LIPO="lipo"
6487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490done
6491done
6492IFS=$as_save_IFS
6493
6494fi
6495fi
6496ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6497if test -n "$ac_ct_LIPO"; then
6498 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6499$as_echo "$ac_ct_LIPO" >&6; }
6500else
6501 { $as_echo "$as_me:$LINENO: result: no" >&5
6502$as_echo "no" >&6; }
6503fi
6504
6505 if test "x$ac_ct_LIPO" = x; then
6506 LIPO=":"
6507 else
6508 case $cross_compiling:$ac_tool_warned in
6509yes:)
6510{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6512ac_tool_warned=yes ;;
6513esac
6514 LIPO=$ac_ct_LIPO
6515 fi
6516else
6517 LIPO="$ac_cv_prog_LIPO"
6518fi
6519
6520 if test -n "$ac_tool_prefix"; then
6521 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6522set dummy ${ac_tool_prefix}otool; ac_word=$2
6523{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6524$as_echo_n "checking for $ac_word... " >&6; }
6525if test "${ac_cv_prog_OTOOL+set}" = set; then
6526 $as_echo_n "(cached) " >&6
6527else
6528 if test -n "$OTOOL"; then
6529 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6530else
6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6541 fi
6542done
6543done
6544IFS=$as_save_IFS
6545
6546fi
6547fi
6548OTOOL=$ac_cv_prog_OTOOL
6549if test -n "$OTOOL"; then
6550 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6551$as_echo "$OTOOL" >&6; }
6552else
6553 { $as_echo "$as_me:$LINENO: result: no" >&5
6554$as_echo "no" >&6; }
6555fi
6556
6557
6558fi
6559if test -z "$ac_cv_prog_OTOOL"; then
6560 ac_ct_OTOOL=$OTOOL
6561 # Extract the first word of "otool", so it can be a program name with args.
6562set dummy otool; ac_word=$2
6563{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6564$as_echo_n "checking for $ac_word... " >&6; }
6565if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6566 $as_echo_n "(cached) " >&6
6567else
6568 if test -n "$ac_ct_OTOOL"; then
6569 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6570else
6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_ac_ct_OTOOL="otool"
6579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582done
6583done
6584IFS=$as_save_IFS
6585
6586fi
6587fi
6588ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6589if test -n "$ac_ct_OTOOL"; then
6590 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6591$as_echo "$ac_ct_OTOOL" >&6; }
6592else
6593 { $as_echo "$as_me:$LINENO: result: no" >&5
6594$as_echo "no" >&6; }
6595fi
6596
6597 if test "x$ac_ct_OTOOL" = x; then
6598 OTOOL=":"
6599 else
6600 case $cross_compiling:$ac_tool_warned in
6601yes:)
6602{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6604ac_tool_warned=yes ;;
6605esac
6606 OTOOL=$ac_ct_OTOOL
6607 fi
6608else
6609 OTOOL="$ac_cv_prog_OTOOL"
6610fi
6611
6612 if test -n "$ac_tool_prefix"; then
6613 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6614set dummy ${ac_tool_prefix}otool64; ac_word=$2
6615{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6616$as_echo_n "checking for $ac_word... " >&6; }
6617if test "${ac_cv_prog_OTOOL64+set}" = set; then
6618 $as_echo_n "(cached) " >&6
6619else
6620 if test -n "$OTOOL64"; then
6621 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6622else
6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624for as_dir in $PATH
6625do
6626 IFS=$as_save_IFS
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 break 2
6633 fi
6634done
6635done
6636IFS=$as_save_IFS
6637
6638fi
6639fi
6640OTOOL64=$ac_cv_prog_OTOOL64
6641if test -n "$OTOOL64"; then
6642 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6643$as_echo "$OTOOL64" >&6; }
6644else
6645 { $as_echo "$as_me:$LINENO: result: no" >&5
6646$as_echo "no" >&6; }
6647fi
6648
6649
6650fi
6651if test -z "$ac_cv_prog_OTOOL64"; then
6652 ac_ct_OTOOL64=$OTOOL64
6653 # Extract the first word of "otool64", so it can be a program name with args.
6654set dummy otool64; ac_word=$2
6655{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6656$as_echo_n "checking for $ac_word... " >&6; }
6657if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6658 $as_echo_n "(cached) " >&6
6659else
6660 if test -n "$ac_ct_OTOOL64"; then
6661 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6662else
6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in $PATH
6665do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_ac_ct_OTOOL64="otool64"
6671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674done
6675done
6676IFS=$as_save_IFS
6677
6678fi
6679fi
6680ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6681if test -n "$ac_ct_OTOOL64"; then
6682 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6683$as_echo "$ac_ct_OTOOL64" >&6; }
6684else
6685 { $as_echo "$as_me:$LINENO: result: no" >&5
6686$as_echo "no" >&6; }
6687fi
6688
6689 if test "x$ac_ct_OTOOL64" = x; then
6690 OTOOL64=":"
6691 else
6692 case $cross_compiling:$ac_tool_warned in
6693yes:)
6694{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696ac_tool_warned=yes ;;
6697esac
6698 OTOOL64=$ac_ct_OTOOL64
6699 fi
6700else
6701 OTOOL64="$ac_cv_prog_OTOOL64"
6702fi
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6731$as_echo_n "checking for -single_module linker flag... " >&6; }
6732if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6733 $as_echo_n "(cached) " >&6
6734else
6735 lt_cv_apple_cc_single_mod=no
6736 if test -z "${LT_MULTI_MODULE}"; then
6737 # By default we will add the -single_module flag. You can override
6738 # by either setting the environment variable LT_MULTI_MODULE
6739 # non-empty at configure time, or by adding -multi_module to the
6740 # link flags.
6741 rm -rf libconftest.dylib*
6742 echo "int foo(void){return 1;}" > conftest.c
6743 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6744-dynamiclib -Wl,-single_module conftest.c" >&5
6745 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6746 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6747 _lt_result=$?
6748 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6749 lt_cv_apple_cc_single_mod=yes
6750 else
6751 cat conftest.err >&5
6752 fi
6753 rm -rf libconftest.dylib*
6754 rm -f conftest.*
6755 fi
6756fi
6757{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6758$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6759 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6760$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6761if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6762 $as_echo_n "(cached) " >&6
6763else
6764 lt_cv_ld_exported_symbols_list=no
6765 save_LDFLAGS=$LDFLAGS
6766 echo "_main" > conftest.sym
6767 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6768 cat >conftest.$ac_ext <<_ACEOF
6769/* confdefs.h. */
6770_ACEOF
6771cat confdefs.h >>conftest.$ac_ext
6772cat >>conftest.$ac_ext <<_ACEOF
6773/* end confdefs.h. */
6774
6775int
6776main ()
6777{
6778
6779 ;
6780 return 0;
6781}
6782_ACEOF
6783rm -f conftest.$ac_objext conftest$ac_exeext
6784if { (ac_try="$ac_link"
6785case "(($ac_try" in
6786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787 *) ac_try_echo=$ac_try;;
6788esac
6789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6790$as_echo "$ac_try_echo") >&5
6791 (eval "$ac_link") 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } && {
6798 test -z "$ac_c_werror_flag" ||
6799 test ! -s conftest.err
6800 } && test -s conftest$ac_exeext && {
6801 test "$cross_compiling" = yes ||
6802 $as_test_x conftest$ac_exeext
6803 }; then
6804 lt_cv_ld_exported_symbols_list=yes
6805else
6806 $as_echo "$as_me: failed program was:" >&5
6807sed 's/^/| /' conftest.$ac_ext >&5
6808
6809 lt_cv_ld_exported_symbols_list=no
6810fi
6811
6812rm -rf conftest.dSYM
6813rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6814 conftest$ac_exeext conftest.$ac_ext
6815 LDFLAGS="$save_LDFLAGS"
6816
6817fi
6818{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6819$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6820 case $host_os in
6821 rhapsody* | darwin1.[012])
6822 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6823 darwin1.*)
6824 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6825 darwin*) # darwin 5.x on
6826 # if running on 10.5 or later, the deployment target defaults
6827 # to the OS version, if on x86, and 10.4, the deployment
6828 # target defaults to 10.4. Don't you love it?
6829 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6830 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6831 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6832 10.[012]*)
6833 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6834 10.*)
6835 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6836 esac
6837 ;;
6838 esac
6839 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6840 _lt_dar_single_mod='$single_module'
6841 fi
6842 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6843 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6844 else
6845 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6846 fi
6847 if test "$DSYMUTIL" != ":"; then
6848 _lt_dsymutil='~$DSYMUTIL $lib || :'
6849 else
6850 _lt_dsymutil=
6851 fi
6852 ;;
6853 esac
6854
6855ac_ext=c
6856ac_cpp='$CPP $CPPFLAGS'
6857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6859ac_compiler_gnu=$ac_cv_c_compiler_gnu
6860{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6861$as_echo_n "checking how to run the C preprocessor... " >&6; }
6862# On Suns, sometimes $CPP names a directory.
6863if test -n "$CPP" && test -d "$CPP"; then
6864 CPP=
6865fi
6866if test -z "$CPP"; then
6867 if test "${ac_cv_prog_CPP+set}" = set; then
6868 $as_echo_n "(cached) " >&6
6869else
6870 # Double quotes because CPP needs to be expanded
6871 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6872 do
6873 ac_preproc_ok=false
6874for ac_c_preproc_warn_flag in '' yes
6875do
6876 # Use a header file that comes with gcc, so configuring glibc
6877 # with a fresh cross-compiler works.
6878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6879 # <limits.h> exists even on freestanding compilers.
6880 # On the NeXT, cc -E runs the code through the compiler's parser,
6881 # not just through cpp. "Syntax error" is here to catch this case.
6882 cat >conftest.$ac_ext <<_ACEOF
6883/* confdefs.h. */
6884_ACEOF
6885cat confdefs.h >>conftest.$ac_ext
6886cat >>conftest.$ac_ext <<_ACEOF
6887/* end confdefs.h. */
6888#ifdef __STDC__
6889# include <limits.h>
6890#else
6891# include <assert.h>
6892#endif
6893 Syntax error
6894_ACEOF
6895if { (ac_try="$ac_cpp conftest.$ac_ext"
6896case "(($ac_try" in
6897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898 *) ac_try_echo=$ac_try;;
6899esac
6900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6901$as_echo "$ac_try_echo") >&5
6902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6903 ac_status=$?
6904 grep -v '^ *+' conftest.er1 >conftest.err
6905 rm -f conftest.er1
6906 cat conftest.err >&5
6907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } >/dev/null && {
6909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6910 test ! -s conftest.err
6911 }; then
6912 :
6913else
6914 $as_echo "$as_me: failed program was:" >&5
6915sed 's/^/| /' conftest.$ac_ext >&5
6916
6917 # Broken: fails on valid input.
6918continue
6919fi
6920
6921rm -f conftest.err conftest.$ac_ext
6922
6923 # OK, works on sane cases. Now check whether nonexistent headers
6924 # can be detected and how.
6925 cat >conftest.$ac_ext <<_ACEOF
6926/* confdefs.h. */
6927_ACEOF
6928cat confdefs.h >>conftest.$ac_ext
6929cat >>conftest.$ac_ext <<_ACEOF
6930/* end confdefs.h. */
6931#include <ac_nonexistent.h>
6932_ACEOF
6933if { (ac_try="$ac_cpp conftest.$ac_ext"
6934case "(($ac_try" in
6935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6936 *) ac_try_echo=$ac_try;;
6937esac
6938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6939$as_echo "$ac_try_echo") >&5
6940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6941 ac_status=$?
6942 grep -v '^ *+' conftest.er1 >conftest.err
6943 rm -f conftest.er1
6944 cat conftest.err >&5
6945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } >/dev/null && {
6947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6948 test ! -s conftest.err
6949 }; then
6950 # Broken: success on invalid input.
6951continue
6952else
6953 $as_echo "$as_me: failed program was:" >&5
6954sed 's/^/| /' conftest.$ac_ext >&5
6955
6956 # Passes both tests.
6957ac_preproc_ok=:
6958break
6959fi
6960
6961rm -f conftest.err conftest.$ac_ext
6962
6963done
6964# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6965rm -f conftest.err conftest.$ac_ext
6966if $ac_preproc_ok; then
6967 break
6968fi
6969
6970 done
6971 ac_cv_prog_CPP=$CPP
6972
6973fi
6974 CPP=$ac_cv_prog_CPP
6975else
6976 ac_cv_prog_CPP=$CPP
6977fi
6978{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6979$as_echo "$CPP" >&6; }
6980ac_preproc_ok=false
6981for ac_c_preproc_warn_flag in '' yes
6982do
6983 # Use a header file that comes with gcc, so configuring glibc
6984 # with a fresh cross-compiler works.
6985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6986 # <limits.h> exists even on freestanding compilers.
6987 # On the NeXT, cc -E runs the code through the compiler's parser,
6988 # not just through cpp. "Syntax error" is here to catch this case.
6989 cat >conftest.$ac_ext <<_ACEOF
6990/* confdefs.h. */
6991_ACEOF
6992cat confdefs.h >>conftest.$ac_ext
6993cat >>conftest.$ac_ext <<_ACEOF
6994/* end confdefs.h. */
6995#ifdef __STDC__
6996# include <limits.h>
6997#else
6998# include <assert.h>
6999#endif
7000 Syntax error
7001_ACEOF
7002if { (ac_try="$ac_cpp conftest.$ac_ext"
7003case "(($ac_try" in
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7006esac
7007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7008$as_echo "$ac_try_echo") >&5
7009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7010 ac_status=$?
7011 grep -v '^ *+' conftest.er1 >conftest.err
7012 rm -f conftest.er1
7013 cat conftest.err >&5
7014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } >/dev/null && {
7016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7017 test ! -s conftest.err
7018 }; then
7019 :
7020else
7021 $as_echo "$as_me: failed program was:" >&5
7022sed 's/^/| /' conftest.$ac_ext >&5
7023
7024 # Broken: fails on valid input.
7025continue
7026fi
7027
7028rm -f conftest.err conftest.$ac_ext
7029
7030 # OK, works on sane cases. Now check whether nonexistent headers
7031 # can be detected and how.
7032 cat >conftest.$ac_ext <<_ACEOF
7033/* confdefs.h. */
7034_ACEOF
7035cat confdefs.h >>conftest.$ac_ext
7036cat >>conftest.$ac_ext <<_ACEOF
7037/* end confdefs.h. */
7038#include <ac_nonexistent.h>
7039_ACEOF
7040if { (ac_try="$ac_cpp conftest.$ac_ext"
7041case "(($ac_try" in
7042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7044esac
7045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7046$as_echo "$ac_try_echo") >&5
7047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } >/dev/null && {
7054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7056 }; then
7057 # Broken: success on invalid input.
7058continue
7059else
7060 $as_echo "$as_me: failed program was:" >&5
7061sed 's/^/| /' conftest.$ac_ext >&5
7062
7063 # Passes both tests.
7064ac_preproc_ok=:
7065break
7066fi
7067
7068rm -f conftest.err conftest.$ac_ext
7069
7070done
7071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7072rm -f conftest.err conftest.$ac_ext
7073if $ac_preproc_ok; then
7074 :
7075else
7076 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7078{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7079See \`config.log' for more details." >&5
7080$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7081See \`config.log' for more details." >&2;}
7082 { (exit 1); exit 1; }; }; }
7083fi
7084
7085ac_ext=c
7086ac_cpp='$CPP $CPPFLAGS'
7087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7089ac_compiler_gnu=$ac_cv_c_compiler_gnu
7090
7091
7092{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7093$as_echo_n "checking for ANSI C header files... " >&6; }
7094if test "${ac_cv_header_stdc+set}" = set; then
7095 $as_echo_n "(cached) " >&6
7096else
7097 cat >conftest.$ac_ext <<_ACEOF
7098/* confdefs.h. */
7099_ACEOF
7100cat confdefs.h >>conftest.$ac_ext
7101cat >>conftest.$ac_ext <<_ACEOF
7102/* end confdefs.h. */
7103#include <stdlib.h>
7104#include <stdarg.h>
7105#include <string.h>
7106#include <float.h>
7107
7108int
7109main ()
7110{
7111
7112 ;
7113 return 0;
7114}
7115_ACEOF
7116rm -f conftest.$ac_objext
7117if { (ac_try="$ac_compile"
7118case "(($ac_try" in
7119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120 *) ac_try_echo=$ac_try;;
7121esac
7122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7123$as_echo "$ac_try_echo") >&5
7124 (eval "$ac_compile") 2>conftest.er1
7125 ac_status=$?
7126 grep -v '^ *+' conftest.er1 >conftest.err
7127 rm -f conftest.er1
7128 cat conftest.err >&5
7129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } && {
7131 test -z "$ac_c_werror_flag" ||
7132 test ! -s conftest.err
7133 } && test -s conftest.$ac_objext; then
7134 ac_cv_header_stdc=yes
7135else
7136 $as_echo "$as_me: failed program was:" >&5
7137sed 's/^/| /' conftest.$ac_ext >&5
7138
7139 ac_cv_header_stdc=no
7140fi
7141
7142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7143
7144if test $ac_cv_header_stdc = yes; then
7145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7146 cat >conftest.$ac_ext <<_ACEOF
7147/* confdefs.h. */
7148_ACEOF
7149cat confdefs.h >>conftest.$ac_ext
7150cat >>conftest.$ac_ext <<_ACEOF
7151/* end confdefs.h. */
7152#include <string.h>
7153
7154_ACEOF
7155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7156 $EGREP "memchr" >/dev/null 2>&1; then
7157 :
7158else
7159 ac_cv_header_stdc=no
7160fi
7161rm -f conftest*
7162
7163fi
7164
7165if test $ac_cv_header_stdc = yes; then
7166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7167 cat >conftest.$ac_ext <<_ACEOF
7168/* confdefs.h. */
7169_ACEOF
7170cat confdefs.h >>conftest.$ac_ext
7171cat >>conftest.$ac_ext <<_ACEOF
7172/* end confdefs.h. */
7173#include <stdlib.h>
7174
7175_ACEOF
7176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7177 $EGREP "free" >/dev/null 2>&1; then
7178 :
7179else
7180 ac_cv_header_stdc=no
7181fi
7182rm -f conftest*
7183
7184fi
7185
7186if test $ac_cv_header_stdc = yes; then
7187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7188 if test "$cross_compiling" = yes; then
7189 :
7190else
7191 cat >conftest.$ac_ext <<_ACEOF
7192/* confdefs.h. */
7193_ACEOF
7194cat confdefs.h >>conftest.$ac_ext
7195cat >>conftest.$ac_ext <<_ACEOF
7196/* end confdefs.h. */
7197#include <ctype.h>
7198#include <stdlib.h>
7199#if ((' ' & 0x0FF) == 0x020)
7200# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7201# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7202#else
7203# define ISLOWER(c) \
7204 (('a' <= (c) && (c) <= 'i') \
7205 || ('j' <= (c) && (c) <= 'r') \
7206 || ('s' <= (c) && (c) <= 'z'))
7207# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7208#endif
7209
7210#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7211int
7212main ()
7213{
7214 int i;
7215 for (i = 0; i < 256; i++)
7216 if (XOR (islower (i), ISLOWER (i))
7217 || toupper (i) != TOUPPER (i))
7218 return 2;
7219 return 0;
7220}
7221_ACEOF
7222rm -f conftest$ac_exeext
7223if { (ac_try="$ac_link"
7224case "(($ac_try" in
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7227esac
7228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7229$as_echo "$ac_try_echo") >&5
7230 (eval "$ac_link") 2>&5
7231 ac_status=$?
7232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7234 { (case "(($ac_try" in
7235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7236 *) ac_try_echo=$ac_try;;
7237esac
7238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7239$as_echo "$ac_try_echo") >&5
7240 (eval "$ac_try") 2>&5
7241 ac_status=$?
7242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; }; then
7244 :
7245else
7246 $as_echo "$as_me: program exited with status $ac_status" >&5
7247$as_echo "$as_me: failed program was:" >&5
7248sed 's/^/| /' conftest.$ac_ext >&5
7249
7250( exit $ac_status )
7251ac_cv_header_stdc=no
7252fi
7253rm -rf conftest.dSYM
7254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7255fi
7256
7257
7258fi
7259fi
7260{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7261$as_echo "$ac_cv_header_stdc" >&6; }
7262if test $ac_cv_header_stdc = yes; then
7263
7264cat >>confdefs.h <<\_ACEOF
7265#define STDC_HEADERS 1
7266_ACEOF
7267
7268fi
7269
7270# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7281 inttypes.h stdint.h unistd.h
7282do
7283as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7284{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7285$as_echo_n "checking for $ac_header... " >&6; }
7286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7287 $as_echo_n "(cached) " >&6
7288else
7289 cat >conftest.$ac_ext <<_ACEOF
7290/* confdefs.h. */
7291_ACEOF
7292cat confdefs.h >>conftest.$ac_ext
7293cat >>conftest.$ac_ext <<_ACEOF
7294/* end confdefs.h. */
7295$ac_includes_default
7296
7297#include <$ac_header>
7298_ACEOF
7299rm -f conftest.$ac_objext
7300if { (ac_try="$ac_compile"
7301case "(($ac_try" in
7302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303 *) ac_try_echo=$ac_try;;
7304esac
7305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7306$as_echo "$ac_try_echo") >&5
7307 (eval "$ac_compile") 2>conftest.er1
7308 ac_status=$?
7309 grep -v '^ *+' conftest.er1 >conftest.err
7310 rm -f conftest.er1
7311 cat conftest.err >&5
7312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } && {
7314 test -z "$ac_c_werror_flag" ||
7315 test ! -s conftest.err
7316 } && test -s conftest.$ac_objext; then
7317 eval "$as_ac_Header=yes"
7318else
7319 $as_echo "$as_me: failed program was:" >&5
7320sed 's/^/| /' conftest.$ac_ext >&5
7321
7322 eval "$as_ac_Header=no"
7323fi
7324
7325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326fi
7327ac_res=`eval 'as_val=${'$as_ac_Header'}
7328 $as_echo "$as_val"'`
7329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7330$as_echo "$ac_res" >&6; }
7331as_val=`eval 'as_val=${'$as_ac_Header'}
7332 $as_echo "$as_val"'`
7333 if test "x$as_val" = x""yes; then
7334 cat >>confdefs.h <<_ACEOF
7335#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7336_ACEOF
7337
7338fi
7339
7340done
7341
7342
7343
7344for ac_header in dlfcn.h
7345do
7346as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7347{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7348$as_echo_n "checking for $ac_header... " >&6; }
7349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7350 $as_echo_n "(cached) " >&6
7351else
7352 cat >conftest.$ac_ext <<_ACEOF
7353/* confdefs.h. */
7354_ACEOF
7355cat confdefs.h >>conftest.$ac_ext
7356cat >>conftest.$ac_ext <<_ACEOF
7357/* end confdefs.h. */
7358$ac_includes_default
7359
7360#include <$ac_header>
7361_ACEOF
7362rm -f conftest.$ac_objext
7363if { (ac_try="$ac_compile"
7364case "(($ac_try" in
7365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7366 *) ac_try_echo=$ac_try;;
7367esac
7368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7369$as_echo "$ac_try_echo") >&5
7370 (eval "$ac_compile") 2>conftest.er1
7371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
7374 cat conftest.err >&5
7375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && {
7377 test -z "$ac_c_werror_flag" ||
7378 test ! -s conftest.err
7379 } && test -s conftest.$ac_objext; then
7380 eval "$as_ac_Header=yes"
7381else
7382 $as_echo "$as_me: failed program was:" >&5
7383sed 's/^/| /' conftest.$ac_ext >&5
7384
7385 eval "$as_ac_Header=no"
7386fi
7387
7388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7389fi
7390ac_res=`eval 'as_val=${'$as_ac_Header'}
7391 $as_echo "$as_val"'`
7392 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7393$as_echo "$ac_res" >&6; }
7394as_val=`eval 'as_val=${'$as_ac_Header'}
7395 $as_echo "$as_val"'`
7396 if test "x$as_val" = x""yes; then
7397 cat >>confdefs.h <<_ACEOF
7398#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7399_ACEOF
7400
7401fi
7402
7403done
7404
7405
7406
7407# Set options
7408
7409
7410
7411 enable_dlopen=no
7412
7413
7414 enable_win32_dll=no
7415
7416
7417 # Check whether --enable-shared was given.
7418if test "${enable_shared+set}" = set; then
7419 enableval=$enable_shared; p=${PACKAGE-default}
7420 case $enableval in
7421 yes) enable_shared=yes ;;
7422 no) enable_shared=no ;;
7423 *)
7424 enable_shared=no
7425 # Look at the argument we got. We use all the common list separators.
7426 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7427 for pkg in $enableval; do
7428 IFS="$lt_save_ifs"
7429 if test "X$pkg" = "X$p"; then
7430 enable_shared=yes
7431 fi
7432 done
7433 IFS="$lt_save_ifs"
7434 ;;
7435 esac
7436else
7437 enable_shared=yes
7438fi
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448 # Check whether --enable-static was given.
7449if test "${enable_static+set}" = set; then
7450 enableval=$enable_static; p=${PACKAGE-default}
7451 case $enableval in
7452 yes) enable_static=yes ;;
7453 no) enable_static=no ;;
7454 *)
7455 enable_static=no
7456 # Look at the argument we got. We use all the common list separators.
7457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7458 for pkg in $enableval; do
7459 IFS="$lt_save_ifs"
7460 if test "X$pkg" = "X$p"; then
7461 enable_static=yes
7462 fi
7463 done
7464 IFS="$lt_save_ifs"
7465 ;;
7466 esac
7467else
7468 enable_static=yes
7469fi
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480# Check whether --with-pic was given.
7481if test "${with_pic+set}" = set; then
7482 withval=$with_pic; pic_mode="$withval"
7483else
7484 pic_mode=default
7485fi
7486
7487
7488test -z "$pic_mode" && pic_mode=default
7489
7490
7491
7492
7493
7494
7495
7496 # Check whether --enable-fast-install was given.
7497if test "${enable_fast_install+set}" = set; then
7498 enableval=$enable_fast_install; p=${PACKAGE-default}
7499 case $enableval in
7500 yes) enable_fast_install=yes ;;
7501 no) enable_fast_install=no ;;
7502 *)
7503 enable_fast_install=no
7504 # Look at the argument we got. We use all the common list separators.
7505 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7506 for pkg in $enableval; do
7507 IFS="$lt_save_ifs"
7508 if test "X$pkg" = "X$p"; then
7509 enable_fast_install=yes
7510 fi
7511 done
7512 IFS="$lt_save_ifs"
7513 ;;
7514 esac
7515else
7516 enable_fast_install=yes
7517fi
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529# This can be used to rebuild libtool when needed
7530LIBTOOL_DEPS="$ltmain"
7531
7532# Always use our own libtool.
7533LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559test -z "$LN_S" && LN_S="ln -s"
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574if test -n "${ZSH_VERSION+set}" ; then
7575 setopt NO_GLOB_SUBST
7576fi
7577
7578{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7579$as_echo_n "checking for objdir... " >&6; }
7580if test "${lt_cv_objdir+set}" = set; then
7581 $as_echo_n "(cached) " >&6
7582else
7583 rm -f .libs 2>/dev/null
7584mkdir .libs 2>/dev/null
7585if test -d .libs; then
7586 lt_cv_objdir=.libs
7587else
7588 # MS-DOS does not allow filenames that begin with a dot.
7589 lt_cv_objdir=_libs
7590fi
7591rmdir .libs 2>/dev/null
7592fi
7593{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7594$as_echo "$lt_cv_objdir" >&6; }
7595objdir=$lt_cv_objdir
7596
7597
7598
7599
7600
7601cat >>confdefs.h <<_ACEOF
7602#define LT_OBJDIR "$lt_cv_objdir/"
7603_ACEOF
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621case $host_os in
7622aix3*)
7623 # AIX sometimes has problems with the GCC collect2 program. For some
7624 # reason, if we set the COLLECT_NAMES environment variable, the problems
7625 # vanish in a puff of smoke.
7626 if test "X${COLLECT_NAMES+set}" != Xset; then
7627 COLLECT_NAMES=
7628 export COLLECT_NAMES
7629 fi
7630 ;;
7631esac
7632
7633# Sed substitution that helps us do robust quoting. It backslashifies
7634# metacharacters that are still active within double-quoted strings.
7635sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7636
7637# Same as above, but do not quote variable references.
7638double_quote_subst='s/\(["`\\]\)/\\\1/g'
7639
7640# Sed substitution to delay expansion of an escaped shell variable in a
7641# double_quote_subst'ed string.
7642delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7643
7644# Sed substitution to delay expansion of an escaped single quote.
7645delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7646
7647# Sed substitution to avoid accidental globbing in evaled expressions
7648no_glob_subst='s/\*/\\\*/g'
7649
7650# Global variables:
7651ofile=libtool
7652can_build_shared=yes
7653
7654# All known linkers require a `.a' archive for static linking (except MSVC,
7655# which needs '.lib').
7656libext=a
7657
7658with_gnu_ld="$lt_cv_prog_gnu_ld"
7659
7660old_CC="$CC"
7661old_CFLAGS="$CFLAGS"
7662
7663# Set sane defaults for various variables
7664test -z "$CC" && CC=cc
7665test -z "$LTCC" && LTCC=$CC
7666test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7667test -z "$LD" && LD=ld
7668test -z "$ac_objext" && ac_objext=o
7669
7670for cc_temp in $compiler""; do
7671 case $cc_temp in
7672 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7673 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7674 \-*) ;;
7675 *) break;;
7676 esac
7677done
7678cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7679
7680
7681# Only perform the check for file, if the check method requires it
7682test -z "$MAGIC_CMD" && MAGIC_CMD=file
7683case $deplibs_check_method in
7684file_magic*)
7685 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7686 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7687$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7688if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7689 $as_echo_n "(cached) " >&6
7690else
7691 case $MAGIC_CMD in
7692[\\/*] | ?:[\\/]*)
7693 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7694 ;;
7695*)
7696 lt_save_MAGIC_CMD="$MAGIC_CMD"
7697 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7698 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7699 for ac_dir in $ac_dummy; do
7700 IFS="$lt_save_ifs"
7701 test -z "$ac_dir" && ac_dir=.
7702 if test -f $ac_dir/${ac_tool_prefix}file; then
7703 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7704 if test -n "$file_magic_test_file"; then
7705 case $deplibs_check_method in
7706 "file_magic "*)
7707 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7708 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7709 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7710 $EGREP "$file_magic_regex" > /dev/null; then
7711 :
7712 else
7713 cat <<_LT_EOF 1>&2
7714
7715*** Warning: the command libtool uses to detect shared libraries,
7716*** $file_magic_cmd, produces output that libtool cannot recognize.
7717*** The result is that libtool may fail to recognize shared libraries
7718*** as such. This will affect the creation of libtool libraries that
7719*** depend on shared libraries, but programs linked with such libtool
7720*** libraries will work regardless of this problem. Nevertheless, you
7721*** may want to report the problem to your system manager and/or to
7722*** bug-libtool@gnu.org
7723
7724_LT_EOF
7725 fi ;;
7726 esac
7727 fi
7728 break
7729 fi
7730 done
7731 IFS="$lt_save_ifs"
7732 MAGIC_CMD="$lt_save_MAGIC_CMD"
7733 ;;
7734esac
7735fi
7736
7737MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7738if test -n "$MAGIC_CMD"; then
7739 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7740$as_echo "$MAGIC_CMD" >&6; }
7741else
7742 { $as_echo "$as_me:$LINENO: result: no" >&5
7743$as_echo "no" >&6; }
7744fi
7745
7746
7747
7748
7749
7750if test -z "$lt_cv_path_MAGIC_CMD"; then
7751 if test -n "$ac_tool_prefix"; then
7752 { $as_echo "$as_me:$LINENO: checking for file" >&5
7753$as_echo_n "checking for file... " >&6; }
7754if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7755 $as_echo_n "(cached) " >&6
7756else
7757 case $MAGIC_CMD in
7758[\\/*] | ?:[\\/]*)
7759 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7760 ;;
7761*)
7762 lt_save_MAGIC_CMD="$MAGIC_CMD"
7763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7764 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7765 for ac_dir in $ac_dummy; do
7766 IFS="$lt_save_ifs"
7767 test -z "$ac_dir" && ac_dir=.
7768 if test -f $ac_dir/file; then
7769 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7770 if test -n "$file_magic_test_file"; then
7771 case $deplibs_check_method in
7772 "file_magic "*)
7773 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7774 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7775 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7776 $EGREP "$file_magic_regex" > /dev/null; then
7777 :
7778 else
7779 cat <<_LT_EOF 1>&2
7780
7781*** Warning: the command libtool uses to detect shared libraries,
7782*** $file_magic_cmd, produces output that libtool cannot recognize.
7783*** The result is that libtool may fail to recognize shared libraries
7784*** as such. This will affect the creation of libtool libraries that
7785*** depend on shared libraries, but programs linked with such libtool
7786*** libraries will work regardless of this problem. Nevertheless, you
7787*** may want to report the problem to your system manager and/or to
7788*** bug-libtool@gnu.org
7789
7790_LT_EOF
7791 fi ;;
7792 esac
7793 fi
7794 break
7795 fi
7796 done
7797 IFS="$lt_save_ifs"
7798 MAGIC_CMD="$lt_save_MAGIC_CMD"
7799 ;;
7800esac
7801fi
7802
7803MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7804if test -n "$MAGIC_CMD"; then
7805 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7806$as_echo "$MAGIC_CMD" >&6; }
7807else
7808 { $as_echo "$as_me:$LINENO: result: no" >&5
7809$as_echo "no" >&6; }
7810fi
7811
7812
7813 else
7814 MAGIC_CMD=:
7815 fi
7816fi
7817
7818 fi
7819 ;;
7820esac
7821
7822# Use C for the default configuration in the libtool script
7823
7824lt_save_CC="$CC"
7825ac_ext=c
7826ac_cpp='$CPP $CPPFLAGS'
7827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7829ac_compiler_gnu=$ac_cv_c_compiler_gnu
7830
7831
7832# Source file extension for C test sources.
7833ac_ext=c
7834
7835# Object file extension for compiled C test sources.
7836objext=o
7837objext=$objext
7838
7839# Code to be used in simple compile tests
7840lt_simple_compile_test_code="int some_variable = 0;"
7841
7842# Code to be used in simple link tests
7843lt_simple_link_test_code='int main(){return(0);}'
7844
7845
7846
7847
7848
7849
7850
7851# If no C compiler was specified, use CC.
7852LTCC=${LTCC-"$CC"}
7853
7854# If no C compiler flags were specified, use CFLAGS.
7855LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7856
7857# Allow CC to be a program name with arguments.
7858compiler=$CC
7859
7860# Save the default compiler, since it gets overwritten when the other
7861# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7862compiler_DEFAULT=$CC
7863
7864# save warnings/boilerplate of simple test code
7865ac_outfile=conftest.$ac_objext
7866echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7867eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7868_lt_compiler_boilerplate=`cat conftest.err`
7869$RM conftest*
7870
7871ac_outfile=conftest.$ac_objext
7872echo "$lt_simple_link_test_code" >conftest.$ac_ext
7873eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7874_lt_linker_boilerplate=`cat conftest.err`
7875$RM -r conftest*
7876
7877
7878if test -n "$compiler"; then
7879
7880lt_prog_compiler_no_builtin_flag=
7881
7882if test "$GCC" = yes; then
7883 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7884
7885 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7886$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7887if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7888 $as_echo_n "(cached) " >&6
7889else
7890 lt_cv_prog_compiler_rtti_exceptions=no
7891 ac_outfile=conftest.$ac_objext
7892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7893 lt_compiler_flag="-fno-rtti -fno-exceptions"
7894 # Insert the option either (1) after the last *FLAGS variable, or
7895 # (2) before a word containing "conftest.", or (3) at the end.
7896 # Note that $ac_compile itself does not contain backslashes and begins
7897 # with a dollar sign (not a hyphen), so the echo should work correctly.
7898 # The option is referenced via a variable to avoid confusing sed.
7899 lt_compile=`echo "$ac_compile" | $SED \
7900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7902 -e 's:$: $lt_compiler_flag:'`
6ba3b446 7903 (eval echo "\"\$as_me:7903: $lt_compile\"" >&5)
e70e591c
BB
7904 (eval "$lt_compile" 2>conftest.err)
7905 ac_status=$?
7906 cat conftest.err >&5
6ba3b446 7907 echo "$as_me:7907: \$? = $ac_status" >&5
e70e591c
BB
7908 if (exit $ac_status) && test -s "$ac_outfile"; then
7909 # The compiler can only warn and ignore the option if not recognized
7910 # So say no if there are warnings other than the usual output.
7911 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7913 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7914 lt_cv_prog_compiler_rtti_exceptions=yes
7915 fi
7916 fi
7917 $RM conftest*
7918
7919fi
7920{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7921$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7922
7923if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7924 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7925else
7926 :
7927fi
7928
7929fi
7930
7931
7932
7933
7934
7935
7936 lt_prog_compiler_wl=
7937lt_prog_compiler_pic=
7938lt_prog_compiler_static=
7939
7940{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7941$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7942
7943 if test "$GCC" = yes; then
7944 lt_prog_compiler_wl='-Wl,'
7945 lt_prog_compiler_static='-static'
7946
7947 case $host_os in
7948 aix*)
7949 # All AIX code is PIC.
7950 if test "$host_cpu" = ia64; then
7951 # AIX 5 now supports IA64 processor
7952 lt_prog_compiler_static='-Bstatic'
7953 fi
7954 ;;
7955
7956 amigaos*)
7957 case $host_cpu in
7958 powerpc)
7959 # see comment about AmigaOS4 .so support
7960 lt_prog_compiler_pic='-fPIC'
7961 ;;
7962 m68k)
7963 # FIXME: we need at least 68020 code to build shared libraries, but
7964 # adding the `-m68020' flag to GCC prevents building anything better,
7965 # like `-m68040'.
7966 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7967 ;;
7968 esac
7969 ;;
7970
7971 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7972 # PIC is the default for these OSes.
7973 ;;
7974
7975 mingw* | cygwin* | pw32* | os2* | cegcc*)
7976 # This hack is so that the source file can tell whether it is being
7977 # built for inclusion in a dll (and should export symbols for example).
7978 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7979 # (--disable-auto-import) libraries
7980 lt_prog_compiler_pic='-DDLL_EXPORT'
7981 ;;
7982
7983 darwin* | rhapsody*)
7984 # PIC is the default on this platform
7985 # Common symbols not allowed in MH_DYLIB files
7986 lt_prog_compiler_pic='-fno-common'
7987 ;;
7988
7989 hpux*)
7990 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7991 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7992 # sets the default TLS model and affects inlining.
7993 case $host_cpu in
7994 hppa*64*)
7995 # +Z the default
7996 ;;
7997 *)
7998 lt_prog_compiler_pic='-fPIC'
7999 ;;
8000 esac
8001 ;;
8002
8003 interix[3-9]*)
8004 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8005 # Instead, we relocate shared libraries at runtime.
8006 ;;
8007
8008 msdosdjgpp*)
8009 # Just because we use GCC doesn't mean we suddenly get shared libraries
8010 # on systems that don't support them.
8011 lt_prog_compiler_can_build_shared=no
8012 enable_shared=no
8013 ;;
8014
8015 *nto* | *qnx*)
8016 # QNX uses GNU C++, but need to define -shared option too, otherwise
8017 # it will coredump.
8018 lt_prog_compiler_pic='-fPIC -shared'
8019 ;;
8020
8021 sysv4*MP*)
8022 if test -d /usr/nec; then
8023 lt_prog_compiler_pic=-Kconform_pic
8024 fi
8025 ;;
8026
8027 *)
8028 lt_prog_compiler_pic='-fPIC'
8029 ;;
8030 esac
8031 else
8032 # PORTME Check for flag to pass linker flags through the system compiler.
8033 case $host_os in
8034 aix*)
8035 lt_prog_compiler_wl='-Wl,'
8036 if test "$host_cpu" = ia64; then
8037 # AIX 5 now supports IA64 processor
8038 lt_prog_compiler_static='-Bstatic'
8039 else
8040 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8041 fi
8042 ;;
8043
8044 mingw* | cygwin* | pw32* | os2* | cegcc*)
8045 # This hack is so that the source file can tell whether it is being
8046 # built for inclusion in a dll (and should export symbols for example).
8047 lt_prog_compiler_pic='-DDLL_EXPORT'
8048 ;;
8049
8050 hpux9* | hpux10* | hpux11*)
8051 lt_prog_compiler_wl='-Wl,'
8052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8053 # not for PA HP-UX.
8054 case $host_cpu in
8055 hppa*64*|ia64*)
8056 # +Z the default
8057 ;;
8058 *)
8059 lt_prog_compiler_pic='+Z'
8060 ;;
8061 esac
8062 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8063 lt_prog_compiler_static='${wl}-a ${wl}archive'
8064 ;;
8065
8066 irix5* | irix6* | nonstopux*)
8067 lt_prog_compiler_wl='-Wl,'
8068 # PIC (with -KPIC) is the default.
8069 lt_prog_compiler_static='-non_shared'
8070 ;;
8071
8072 linux* | k*bsd*-gnu)
8073 case $cc_basename in
8074 # old Intel for x86_64 which still supported -KPIC.
8075 ecc*)
8076 lt_prog_compiler_wl='-Wl,'
8077 lt_prog_compiler_pic='-KPIC'
8078 lt_prog_compiler_static='-static'
8079 ;;
8080 # icc used to be incompatible with GCC.
8081 # ICC 10 doesn't accept -KPIC any more.
8082 icc* | ifort*)
8083 lt_prog_compiler_wl='-Wl,'
8084 lt_prog_compiler_pic='-fPIC'
8085 lt_prog_compiler_static='-static'
8086 ;;
8087 # Lahey Fortran 8.1.
8088 lf95*)
8089 lt_prog_compiler_wl='-Wl,'
8090 lt_prog_compiler_pic='--shared'
8091 lt_prog_compiler_static='--static'
8092 ;;
8093 pgcc* | pgf77* | pgf90* | pgf95*)
8094 # Portland Group compilers (*not* the Pentium gcc compiler,
8095 # which looks to be a dead project)
8096 lt_prog_compiler_wl='-Wl,'
8097 lt_prog_compiler_pic='-fpic'
8098 lt_prog_compiler_static='-Bstatic'
8099 ;;
8100 ccc*)
8101 lt_prog_compiler_wl='-Wl,'
8102 # All Alpha code is PIC.
8103 lt_prog_compiler_static='-non_shared'
8104 ;;
8105 xl*)
8106 # IBM XL C 8.0/Fortran 10.1 on PPC
8107 lt_prog_compiler_wl='-Wl,'
8108 lt_prog_compiler_pic='-qpic'
8109 lt_prog_compiler_static='-qstaticlink'
8110 ;;
8111 *)
8112 case `$CC -V 2>&1 | sed 5q` in
8113 *Sun\ C*)
8114 # Sun C 5.9
8115 lt_prog_compiler_pic='-KPIC'
8116 lt_prog_compiler_static='-Bstatic'
8117 lt_prog_compiler_wl='-Wl,'
8118 ;;
8119 *Sun\ F*)
8120 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8121 lt_prog_compiler_pic='-KPIC'
8122 lt_prog_compiler_static='-Bstatic'
8123 lt_prog_compiler_wl=''
8124 ;;
8125 esac
8126 ;;
8127 esac
8128 ;;
8129
8130 newsos6)
8131 lt_prog_compiler_pic='-KPIC'
8132 lt_prog_compiler_static='-Bstatic'
8133 ;;
8134
8135 *nto* | *qnx*)
8136 # QNX uses GNU C++, but need to define -shared option too, otherwise
8137 # it will coredump.
8138 lt_prog_compiler_pic='-fPIC -shared'
8139 ;;
8140
8141 osf3* | osf4* | osf5*)
8142 lt_prog_compiler_wl='-Wl,'
8143 # All OSF/1 code is PIC.
8144 lt_prog_compiler_static='-non_shared'
8145 ;;
8146
8147 rdos*)
8148 lt_prog_compiler_static='-non_shared'
8149 ;;
8150
8151 solaris*)
8152 lt_prog_compiler_pic='-KPIC'
8153 lt_prog_compiler_static='-Bstatic'
8154 case $cc_basename in
8155 f77* | f90* | f95*)
8156 lt_prog_compiler_wl='-Qoption ld ';;
8157 *)
8158 lt_prog_compiler_wl='-Wl,';;
8159 esac
8160 ;;
8161
8162 sunos4*)
8163 lt_prog_compiler_wl='-Qoption ld '
8164 lt_prog_compiler_pic='-PIC'
8165 lt_prog_compiler_static='-Bstatic'
8166 ;;
8167
8168 sysv4 | sysv4.2uw2* | sysv4.3*)
8169 lt_prog_compiler_wl='-Wl,'
8170 lt_prog_compiler_pic='-KPIC'
8171 lt_prog_compiler_static='-Bstatic'
8172 ;;
8173
8174 sysv4*MP*)
8175 if test -d /usr/nec ;then
8176 lt_prog_compiler_pic='-Kconform_pic'
8177 lt_prog_compiler_static='-Bstatic'
8178 fi
8179 ;;
8180
8181 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_pic='-KPIC'
8184 lt_prog_compiler_static='-Bstatic'
8185 ;;
8186
8187 unicos*)
8188 lt_prog_compiler_wl='-Wl,'
8189 lt_prog_compiler_can_build_shared=no
8190 ;;
8191
8192 uts4*)
8193 lt_prog_compiler_pic='-pic'
8194 lt_prog_compiler_static='-Bstatic'
8195 ;;
8196
8197 *)
8198 lt_prog_compiler_can_build_shared=no
8199 ;;
8200 esac
8201 fi
8202
8203case $host_os in
8204 # For platforms which do not support PIC, -DPIC is meaningless:
8205 *djgpp*)
8206 lt_prog_compiler_pic=
8207 ;;
8208 *)
8209 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8210 ;;
8211esac
8212{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8213$as_echo "$lt_prog_compiler_pic" >&6; }
8214
8215
8216
8217
8218
8219
8220#
8221# Check to make sure the PIC flag actually works.
8222#
8223if test -n "$lt_prog_compiler_pic"; then
8224 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8225$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8226if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8227 $as_echo_n "(cached) " >&6
8228else
8229 lt_cv_prog_compiler_pic_works=no
8230 ac_outfile=conftest.$ac_objext
8231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8232 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8233 # Insert the option either (1) after the last *FLAGS variable, or
8234 # (2) before a word containing "conftest.", or (3) at the end.
8235 # Note that $ac_compile itself does not contain backslashes and begins
8236 # with a dollar sign (not a hyphen), so the echo should work correctly.
8237 # The option is referenced via a variable to avoid confusing sed.
8238 lt_compile=`echo "$ac_compile" | $SED \
8239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8241 -e 's:$: $lt_compiler_flag:'`
6ba3b446 8242 (eval echo "\"\$as_me:8242: $lt_compile\"" >&5)
e70e591c
BB
8243 (eval "$lt_compile" 2>conftest.err)
8244 ac_status=$?
8245 cat conftest.err >&5
6ba3b446 8246 echo "$as_me:8246: \$? = $ac_status" >&5
e70e591c
BB
8247 if (exit $ac_status) && test -s "$ac_outfile"; then
8248 # The compiler can only warn and ignore the option if not recognized
8249 # So say no if there are warnings other than the usual output.
8250 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8252 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8253 lt_cv_prog_compiler_pic_works=yes
8254 fi
8255 fi
8256 $RM conftest*
8257
8258fi
8259{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8260$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8261
8262if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8263 case $lt_prog_compiler_pic in
8264 "" | " "*) ;;
8265 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8266 esac
8267else
8268 lt_prog_compiler_pic=
8269 lt_prog_compiler_can_build_shared=no
8270fi
8271
8272fi
8273
8274
8275
8276
8277
8278
8279#
8280# Check to make sure the static flag actually works.
8281#
8282wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8283{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8284$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8285if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8286 $as_echo_n "(cached) " >&6
8287else
8288 lt_cv_prog_compiler_static_works=no
8289 save_LDFLAGS="$LDFLAGS"
8290 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8291 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8292 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8293 # The linker can only warn and ignore the option if not recognized
8294 # So say no if there are warnings
8295 if test -s conftest.err; then
8296 # Append any errors to the config.log.
8297 cat conftest.err 1>&5
8298 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8300 if diff conftest.exp conftest.er2 >/dev/null; then
8301 lt_cv_prog_compiler_static_works=yes
8302 fi
8303 else
8304 lt_cv_prog_compiler_static_works=yes
8305 fi
8306 fi
8307 $RM -r conftest*
8308 LDFLAGS="$save_LDFLAGS"
8309
8310fi
8311{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8312$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8313
8314if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8315 :
8316else
8317 lt_prog_compiler_static=
8318fi
8319
8320
8321
8322
8323
8324
8325
8326 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8327$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8328if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8329 $as_echo_n "(cached) " >&6
8330else
8331 lt_cv_prog_compiler_c_o=no
8332 $RM -r conftest 2>/dev/null
8333 mkdir conftest
8334 cd conftest
8335 mkdir out
8336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8337
8338 lt_compiler_flag="-o out/conftest2.$ac_objext"
8339 # Insert the option either (1) after the last *FLAGS variable, or
8340 # (2) before a word containing "conftest.", or (3) at the end.
8341 # Note that $ac_compile itself does not contain backslashes and begins
8342 # with a dollar sign (not a hyphen), so the echo should work correctly.
8343 lt_compile=`echo "$ac_compile" | $SED \
8344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8346 -e 's:$: $lt_compiler_flag:'`
6ba3b446 8347 (eval echo "\"\$as_me:8347: $lt_compile\"" >&5)
e70e591c
BB
8348 (eval "$lt_compile" 2>out/conftest.err)
8349 ac_status=$?
8350 cat out/conftest.err >&5
6ba3b446 8351 echo "$as_me:8351: \$? = $ac_status" >&5
e70e591c
BB
8352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8353 then
8354 # The compiler can only warn and ignore the option if not recognized
8355 # So say no if there are warnings
8356 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8359 lt_cv_prog_compiler_c_o=yes
8360 fi
8361 fi
8362 chmod u+w . 2>&5
8363 $RM conftest*
8364 # SGI C++ compiler will create directory out/ii_files/ for
8365 # template instantiation
8366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8367 $RM out/* && rmdir out
8368 cd ..
8369 $RM -r conftest
8370 $RM conftest*
8371
8372fi
8373{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8374$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8375
8376
8377
8378
8379
8380
8381 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8382$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8383if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8384 $as_echo_n "(cached) " >&6
8385else
8386 lt_cv_prog_compiler_c_o=no
8387 $RM -r conftest 2>/dev/null
8388 mkdir conftest
8389 cd conftest
8390 mkdir out
8391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8392
8393 lt_compiler_flag="-o out/conftest2.$ac_objext"
8394 # Insert the option either (1) after the last *FLAGS variable, or
8395 # (2) before a word containing "conftest.", or (3) at the end.
8396 # Note that $ac_compile itself does not contain backslashes and begins
8397 # with a dollar sign (not a hyphen), so the echo should work correctly.
8398 lt_compile=`echo "$ac_compile" | $SED \
8399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8401 -e 's:$: $lt_compiler_flag:'`
6ba3b446 8402 (eval echo "\"\$as_me:8402: $lt_compile\"" >&5)
e70e591c
BB
8403 (eval "$lt_compile" 2>out/conftest.err)
8404 ac_status=$?
8405 cat out/conftest.err >&5
6ba3b446 8406 echo "$as_me:8406: \$? = $ac_status" >&5
e70e591c
BB
8407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8408 then
8409 # The compiler can only warn and ignore the option if not recognized
8410 # So say no if there are warnings
8411 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8412 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8413 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8414 lt_cv_prog_compiler_c_o=yes
8415 fi
8416 fi
8417 chmod u+w . 2>&5
8418 $RM conftest*
8419 # SGI C++ compiler will create directory out/ii_files/ for
8420 # template instantiation
8421 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8422 $RM out/* && rmdir out
8423 cd ..
8424 $RM -r conftest
8425 $RM conftest*
8426
8427fi
8428{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8429$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8430
8431
8432
8433
8434hard_links="nottested"
8435if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8436 # do not overwrite the value of need_locks provided by the user
8437 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8438$as_echo_n "checking if we can lock with hard links... " >&6; }
8439 hard_links=yes
8440 $RM conftest*
8441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8442 touch conftest.a
8443 ln conftest.a conftest.b 2>&5 || hard_links=no
8444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8445 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8446$as_echo "$hard_links" >&6; }
8447 if test "$hard_links" = no; then
8448 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8449$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8450 need_locks=warn
8451 fi
8452else
8453 need_locks=no
8454fi
8455
8456
8457
8458
8459
8460
8461 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8462$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8463
8464 runpath_var=
8465 allow_undefined_flag=
8466 always_export_symbols=no
8467 archive_cmds=
8468 archive_expsym_cmds=
8469 compiler_needs_object=no
8470 enable_shared_with_static_runtimes=no
8471 export_dynamic_flag_spec=
8472 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8473 hardcode_automatic=no
8474 hardcode_direct=no
8475 hardcode_direct_absolute=no
8476 hardcode_libdir_flag_spec=
8477 hardcode_libdir_flag_spec_ld=
8478 hardcode_libdir_separator=
8479 hardcode_minus_L=no
8480 hardcode_shlibpath_var=unsupported
8481 inherit_rpath=no
8482 link_all_deplibs=unknown
8483 module_cmds=
8484 module_expsym_cmds=
8485 old_archive_from_new_cmds=
8486 old_archive_from_expsyms_cmds=
8487 thread_safe_flag_spec=
8488 whole_archive_flag_spec=
8489 # include_expsyms should be a list of space-separated symbols to be *always*
8490 # included in the symbol list
8491 include_expsyms=
8492 # exclude_expsyms can be an extended regexp of symbols to exclude
8493 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8494 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8495 # as well as any symbol that contains `d'.
8496 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8497 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8498 # platforms (ab)use it in PIC code, but their linkers get confused if
8499 # the symbol is explicitly referenced. Since portable code cannot
8500 # rely on this symbol name, it's probably fine to never include it in
8501 # preloaded symbol tables.
8502 # Exclude shared library initialization/finalization symbols.
8503 extract_expsyms_cmds=
8504
8505 case $host_os in
8506 cygwin* | mingw* | pw32* | cegcc*)
8507 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8508 # When not using gcc, we currently assume that we are using
8509 # Microsoft Visual C++.
8510 if test "$GCC" != yes; then
8511 with_gnu_ld=no
8512 fi
8513 ;;
8514 interix*)
8515 # we just hope/assume this is gcc and not c89 (= MSVC++)
8516 with_gnu_ld=yes
8517 ;;
8518 openbsd*)
8519 with_gnu_ld=no
8520 ;;
8521 esac
8522
8523 ld_shlibs=yes
8524 if test "$with_gnu_ld" = yes; then
8525 # If archive_cmds runs LD, not CC, wlarc should be empty
8526 wlarc='${wl}'
8527
8528 # Set some defaults for GNU ld with shared library support. These
8529 # are reset later if shared libraries are not supported. Putting them
8530 # here allows them to be overridden if necessary.
8531 runpath_var=LD_RUN_PATH
8532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8533 export_dynamic_flag_spec='${wl}--export-dynamic'
8534 # ancient GNU ld didn't support --whole-archive et. al.
8535 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8536 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8537 else
8538 whole_archive_flag_spec=
8539 fi
8540 supports_anon_versioning=no
8541 case `$LD -v 2>&1` in
8542 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8543 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8544 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8545 *\ 2.11.*) ;; # other 2.11 versions
8546 *) supports_anon_versioning=yes ;;
8547 esac
8548
8549 # See if GNU ld supports shared libraries.
8550 case $host_os in
8551 aix[3-9]*)
8552 # On AIX/PPC, the GNU linker is very broken
8553 if test "$host_cpu" != ia64; then
8554 ld_shlibs=no
8555 cat <<_LT_EOF 1>&2
8556
8557*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8558*** to be unable to reliably create shared libraries on AIX.
8559*** Therefore, libtool is disabling shared libraries support. If you
8560*** really care for shared libraries, you may want to modify your PATH
8561*** so that a non-GNU linker is found, and then restart.
8562
8563_LT_EOF
8564 fi
8565 ;;
8566
8567 amigaos*)
8568 case $host_cpu in
8569 powerpc)
8570 # see comment about AmigaOS4 .so support
8571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8572 archive_expsym_cmds=''
8573 ;;
8574 m68k)
8575 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)'
8576 hardcode_libdir_flag_spec='-L$libdir'
8577 hardcode_minus_L=yes
8578 ;;
8579 esac
8580 ;;
8581
8582 beos*)
8583 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8584 allow_undefined_flag=unsupported
8585 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8586 # support --undefined. This deserves some investigation. FIXME
8587 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8588 else
8589 ld_shlibs=no
8590 fi
8591 ;;
8592
8593 cygwin* | mingw* | pw32* | cegcc*)
8594 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8595 # as there is no search path for DLLs.
8596 hardcode_libdir_flag_spec='-L$libdir'
8597 allow_undefined_flag=unsupported
8598 always_export_symbols=no
8599 enable_shared_with_static_runtimes=yes
8600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8601
8602 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8604 # If the export-symbols file already is a .def file (1st line
8605 # is EXPORTS), use it as is; otherwise, prepend...
8606 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8607 cp $export_symbols $output_objdir/$soname.def;
8608 else
8609 echo EXPORTS > $output_objdir/$soname.def;
8610 cat $export_symbols >> $output_objdir/$soname.def;
8611 fi~
8612 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8613 else
8614 ld_shlibs=no
8615 fi
8616 ;;
8617
8618 interix[3-9]*)
8619 hardcode_direct=no
8620 hardcode_shlibpath_var=no
8621 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8622 export_dynamic_flag_spec='${wl}-E'
8623 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8624 # Instead, shared libraries are loaded at an image base (0x10000000 by
8625 # default) and relocated if they conflict, which is a slow very memory
8626 # consuming and fragmenting process. To avoid this, we pick a random,
8627 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8628 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8629 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8630 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'
8631 ;;
8632
8633 gnu* | linux* | tpf* | k*bsd*-gnu)
8634 tmp_diet=no
8635 if test "$host_os" = linux-dietlibc; then
8636 case $cc_basename in
8637 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8638 esac
8639 fi
8640 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8641 && test "$tmp_diet" = no
8642 then
8643 tmp_addflag=
8644 tmp_sharedflag='-shared'
8645 case $cc_basename,$host_cpu in
8646 pgcc*) # Portland Group C compiler
8647 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'
8648 tmp_addflag=' $pic_flag'
8649 ;;
8650 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
8653 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8654 tmp_addflag=' -i_dynamic' ;;
8655 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8656 tmp_addflag=' -i_dynamic -nofor_main' ;;
8657 ifc* | ifort*) # Intel Fortran compiler
8658 tmp_addflag=' -nofor_main' ;;
8659 lf95*) # Lahey Fortran 8.1
8660 whole_archive_flag_spec=
8661 tmp_sharedflag='--shared' ;;
8662 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8663 tmp_sharedflag='-qmkshrobj'
8664 tmp_addflag= ;;
8665 esac
8666 case `$CC -V 2>&1 | sed 5q` in
8667 *Sun\ C*) # Sun C 5.9
8668 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'
8669 compiler_needs_object=yes
8670 tmp_sharedflag='-G' ;;
8671 *Sun\ F*) # Sun Fortran 8.3
8672 tmp_sharedflag='-G' ;;
8673 esac
8674 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8675
8676 if test "x$supports_anon_versioning" = xyes; then
8677 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8678 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8679 echo "local: *; };" >> $output_objdir/$libname.ver~
8680 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8681 fi
8682
8683 case $cc_basename in
8684 xlf*)
8685 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8686 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8687 hardcode_libdir_flag_spec=
8688 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8689 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8690 if test "x$supports_anon_versioning" = xyes; then
8691 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8692 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8693 echo "local: *; };" >> $output_objdir/$libname.ver~
8694 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8695 fi
8696 ;;
8697 esac
8698 else
8699 ld_shlibs=no
8700 fi
8701 ;;
8702
8703 netbsd*)
8704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8705 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8706 wlarc=
8707 else
8708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8710 fi
8711 ;;
8712
8713 solaris*)
8714 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8715 ld_shlibs=no
8716 cat <<_LT_EOF 1>&2
8717
8718*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8719*** create shared libraries on Solaris systems. Therefore, libtool
8720*** is disabling shared libraries support. We urge you to upgrade GNU
8721*** binutils to release 2.9.1 or newer. Another option is to modify
8722*** your PATH or compiler configuration so that the native linker is
8723*** used, and then restart.
8724
8725_LT_EOF
8726 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8729 else
8730 ld_shlibs=no
8731 fi
8732 ;;
8733
8734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8735 case `$LD -v 2>&1` in
8736 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8737 ld_shlibs=no
8738 cat <<_LT_EOF 1>&2
8739
8740*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8741*** reliably create shared libraries on SCO systems. Therefore, libtool
8742*** is disabling shared libraries support. We urge you to upgrade GNU
8743*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8744*** your PATH or compiler configuration so that the native linker is
8745*** used, and then restart.
8746
8747_LT_EOF
8748 ;;
8749 *)
8750 # For security reasons, it is highly recommended that you always
8751 # use absolute paths for naming shared libraries, and exclude the
8752 # DT_RUNPATH tag from executables and libraries. But doing so
8753 # requires that you compile everything twice, which is a pain.
8754 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8758 else
8759 ld_shlibs=no
8760 fi
8761 ;;
8762 esac
8763 ;;
8764
8765 sunos4*)
8766 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8767 wlarc=
8768 hardcode_direct=yes
8769 hardcode_shlibpath_var=no
8770 ;;
8771
8772 *)
8773 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8775 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8776 else
8777 ld_shlibs=no
8778 fi
8779 ;;
8780 esac
8781
8782 if test "$ld_shlibs" = no; then
8783 runpath_var=
8784 hardcode_libdir_flag_spec=
8785 export_dynamic_flag_spec=
8786 whole_archive_flag_spec=
8787 fi
8788 else
8789 # PORTME fill in a description of your system's linker (not GNU ld)
8790 case $host_os in
8791 aix3*)
8792 allow_undefined_flag=unsupported
8793 always_export_symbols=yes
8794 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'
8795 # Note: this linker hardcodes the directories in LIBPATH if there
8796 # are no directories specified by -L.
8797 hardcode_minus_L=yes
8798 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8799 # Neither direct hardcoding nor static linking is supported with a
8800 # broken collect2.
8801 hardcode_direct=unsupported
8802 fi
8803 ;;
8804
8805 aix[4-9]*)
8806 if test "$host_cpu" = ia64; then
8807 # On IA64, the linker does run time linking by default, so we don't
8808 # have to do anything special.
8809 aix_use_runtimelinking=no
8810 exp_sym_flag='-Bexport'
8811 no_entry_flag=""
8812 else
8813 # If we're using GNU nm, then we don't want the "-C" option.
8814 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8815 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8816 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'
8817 else
8818 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'
8819 fi
8820 aix_use_runtimelinking=no
8821
8822 # Test if we are trying to use run time linking or normal
8823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8824 # need to do runtime linking.
8825 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8826 for ld_flag in $LDFLAGS; do
8827 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8828 aix_use_runtimelinking=yes
8829 break
8830 fi
8831 done
8832 ;;
8833 esac
8834
8835 exp_sym_flag='-bexport'
8836 no_entry_flag='-bnoentry'
8837 fi
8838
8839 # When large executables or shared objects are built, AIX ld can
8840 # have problems creating the table of contents. If linking a library
8841 # or program results in "error TOC overflow" add -mminimal-toc to
8842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8844
8845 archive_cmds=''
8846 hardcode_direct=yes
8847 hardcode_direct_absolute=yes
8848 hardcode_libdir_separator=':'
8849 link_all_deplibs=yes
8850 file_list_spec='${wl}-f,'
8851
8852 if test "$GCC" = yes; then
8853 case $host_os in aix4.[012]|aix4.[012].*)
8854 # We only want to do this on AIX 4.2 and lower, the check
8855 # below for broken collect2 doesn't work under 4.3+
8856 collect2name=`${CC} -print-prog-name=collect2`
8857 if test -f "$collect2name" &&
8858 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8859 then
8860 # We have reworked collect2
8861 :
8862 else
8863 # We have old collect2
8864 hardcode_direct=unsupported
8865 # It fails to find uninstalled libraries when the uninstalled
8866 # path is not listed in the libpath. Setting hardcode_minus_L
8867 # to unsupported forces relinking
8868 hardcode_minus_L=yes
8869 hardcode_libdir_flag_spec='-L$libdir'
8870 hardcode_libdir_separator=
8871 fi
8872 ;;
8873 esac
8874 shared_flag='-shared'
8875 if test "$aix_use_runtimelinking" = yes; then
8876 shared_flag="$shared_flag "'${wl}-G'
8877 fi
8878 else
8879 # not using gcc
8880 if test "$host_cpu" = ia64; then
8881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8882 # chokes on -Wl,-G. The following line is correct:
8883 shared_flag='-G'
8884 else
8885 if test "$aix_use_runtimelinking" = yes; then
8886 shared_flag='${wl}-G'
8887 else
8888 shared_flag='${wl}-bM:SRE'
8889 fi
8890 fi
8891 fi
8892
8893 export_dynamic_flag_spec='${wl}-bexpall'
8894 # It seems that -bexpall does not export symbols beginning with
8895 # underscore (_), so it is better to generate a list of symbols to export.
8896 always_export_symbols=yes
8897 if test "$aix_use_runtimelinking" = yes; then
8898 # Warning - without using the other runtime loading flags (-brtl),
8899 # -berok will link without error, but may produce a broken library.
8900 allow_undefined_flag='-berok'
8901 # Determine the default libpath from the value encoded in an
8902 # empty executable.
8903 cat >conftest.$ac_ext <<_ACEOF
8904/* confdefs.h. */
8905_ACEOF
8906cat confdefs.h >>conftest.$ac_ext
8907cat >>conftest.$ac_ext <<_ACEOF
8908/* end confdefs.h. */
8909
8910int
8911main ()
8912{
8913
8914 ;
8915 return 0;
8916}
8917_ACEOF
8918rm -f conftest.$ac_objext conftest$ac_exeext
8919if { (ac_try="$ac_link"
8920case "(($ac_try" in
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8923esac
8924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8925$as_echo "$ac_try_echo") >&5
8926 (eval "$ac_link") 2>conftest.er1
8927 ac_status=$?
8928 grep -v '^ *+' conftest.er1 >conftest.err
8929 rm -f conftest.er1
8930 cat conftest.err >&5
8931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } && {
8933 test -z "$ac_c_werror_flag" ||
8934 test ! -s conftest.err
8935 } && test -s conftest$ac_exeext && {
8936 test "$cross_compiling" = yes ||
8937 $as_test_x conftest$ac_exeext
8938 }; then
8939
8940lt_aix_libpath_sed='
8941 /Import File Strings/,/^$/ {
8942 /^0/ {
8943 s/^0 *\(.*\)$/\1/
8944 p
8945 }
8946 }'
8947aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8948# Check for a 64-bit object if we didn't find anything.
8949if test -z "$aix_libpath"; then
8950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8951fi
8952else
8953 $as_echo "$as_me: failed program was:" >&5
8954sed 's/^/| /' conftest.$ac_ext >&5
8955
8956
8957fi
8958
8959rm -rf conftest.dSYM
8960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8961 conftest$ac_exeext conftest.$ac_ext
8962if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8963
8964 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8965 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"
8966 else
8967 if test "$host_cpu" = ia64; then
8968 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8969 allow_undefined_flag="-z nodefs"
8970 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"
8971 else
8972 # Determine the default libpath from the value encoded in an
8973 # empty executable.
8974 cat >conftest.$ac_ext <<_ACEOF
8975/* confdefs.h. */
8976_ACEOF
8977cat confdefs.h >>conftest.$ac_ext
8978cat >>conftest.$ac_ext <<_ACEOF
8979/* end confdefs.h. */
8980
8981int
8982main ()
8983{
8984
8985 ;
8986 return 0;
8987}
8988_ACEOF
8989rm -f conftest.$ac_objext conftest$ac_exeext
8990if { (ac_try="$ac_link"
8991case "(($ac_try" in
8992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8993 *) ac_try_echo=$ac_try;;
8994esac
8995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8996$as_echo "$ac_try_echo") >&5
8997 (eval "$ac_link") 2>conftest.er1
8998 ac_status=$?
8999 grep -v '^ *+' conftest.er1 >conftest.err
9000 rm -f conftest.er1
9001 cat conftest.err >&5
9002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } && {
9004 test -z "$ac_c_werror_flag" ||
9005 test ! -s conftest.err
9006 } && test -s conftest$ac_exeext && {
9007 test "$cross_compiling" = yes ||
9008 $as_test_x conftest$ac_exeext
9009 }; then
9010
9011lt_aix_libpath_sed='
9012 /Import File Strings/,/^$/ {
9013 /^0/ {
9014 s/^0 *\(.*\)$/\1/
9015 p
9016 }
9017 }'
9018aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9019# Check for a 64-bit object if we didn't find anything.
9020if test -z "$aix_libpath"; then
9021 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9022fi
9023else
9024 $as_echo "$as_me: failed program was:" >&5
9025sed 's/^/| /' conftest.$ac_ext >&5
9026
9027
9028fi
9029
9030rm -rf conftest.dSYM
9031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9032 conftest$ac_exeext conftest.$ac_ext
9033if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9034
9035 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9036 # Warning - without using the other run time loading flags,
9037 # -berok will link without error, but may produce a broken library.
9038 no_undefined_flag=' ${wl}-bernotok'
9039 allow_undefined_flag=' ${wl}-berok'
9040 # Exported symbols can be pulled into shared objects from archives
9041 whole_archive_flag_spec='$convenience'
9042 archive_cmds_need_lc=yes
9043 # This is similar to how AIX traditionally builds its shared libraries.
9044 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'
9045 fi
9046 fi
9047 ;;
9048
9049 amigaos*)
9050 case $host_cpu in
9051 powerpc)
9052 # see comment about AmigaOS4 .so support
9053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054 archive_expsym_cmds=''
9055 ;;
9056 m68k)
9057 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)'
9058 hardcode_libdir_flag_spec='-L$libdir'
9059 hardcode_minus_L=yes
9060 ;;
9061 esac
9062 ;;
9063
9064 bsdi[45]*)
9065 export_dynamic_flag_spec=-rdynamic
9066 ;;
9067
9068 cygwin* | mingw* | pw32* | cegcc*)
9069 # When not using gcc, we currently assume that we are using
9070 # Microsoft Visual C++.
9071 # hardcode_libdir_flag_spec is actually meaningless, as there is
9072 # no search path for DLLs.
9073 hardcode_libdir_flag_spec=' '
9074 allow_undefined_flag=unsupported
9075 # Tell ltmain to make .lib files, not .a files.
9076 libext=lib
9077 # Tell ltmain to make .dll files, not .so files.
9078 shrext_cmds=".dll"
9079 # FIXME: Setting linknames here is a bad hack.
9080 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9081 # The linker will automatically build a .lib file if we build a DLL.
9082 old_archive_from_new_cmds='true'
9083 # FIXME: Should let the user specify the lib program.
9084 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9085 fix_srcfile_path='`cygpath -w "$srcfile"`'
9086 enable_shared_with_static_runtimes=yes
9087 ;;
9088
9089 darwin* | rhapsody*)
9090
9091
9092 archive_cmds_need_lc=no
9093 hardcode_direct=no
9094 hardcode_automatic=yes
9095 hardcode_shlibpath_var=unsupported
9096 whole_archive_flag_spec=''
9097 link_all_deplibs=yes
9098 allow_undefined_flag="$_lt_dar_allow_undefined"
9099 case $cc_basename in
9100 ifort*) _lt_dar_can_shared=yes ;;
9101 *) _lt_dar_can_shared=$GCC ;;
9102 esac
9103 if test "$_lt_dar_can_shared" = "yes"; then
9104 output_verbose_link_cmd=echo
9105 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9106 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9107 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}"
9108 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}"
9109
9110 else
9111 ld_shlibs=no
9112 fi
9113
9114 ;;
9115
9116 dgux*)
9117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118 hardcode_libdir_flag_spec='-L$libdir'
9119 hardcode_shlibpath_var=no
9120 ;;
9121
9122 freebsd1*)
9123 ld_shlibs=no
9124 ;;
9125
9126 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9127 # support. Future versions do this automatically, but an explicit c++rt0.o
9128 # does not break anything, and helps significantly (at the cost of a little
9129 # extra space).
9130 freebsd2.2*)
9131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9132 hardcode_libdir_flag_spec='-R$libdir'
9133 hardcode_direct=yes
9134 hardcode_shlibpath_var=no
9135 ;;
9136
9137 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9138 freebsd2*)
9139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_direct=yes
9141 hardcode_minus_L=yes
9142 hardcode_shlibpath_var=no
9143 ;;
9144
9145 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9146 freebsd* | dragonfly*)
9147 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9148 hardcode_libdir_flag_spec='-R$libdir'
9149 hardcode_direct=yes
9150 hardcode_shlibpath_var=no
9151 ;;
9152
9153 hpux9*)
9154 if test "$GCC" = yes; then
9155 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'
9156 else
9157 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'
9158 fi
9159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9160 hardcode_libdir_separator=:
9161 hardcode_direct=yes
9162
9163 # hardcode_minus_L: Not really in the search PATH,
9164 # but as the default location of the library.
9165 hardcode_minus_L=yes
9166 export_dynamic_flag_spec='${wl}-E'
9167 ;;
9168
9169 hpux10*)
9170 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9171 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9172 else
9173 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9174 fi
9175 if test "$with_gnu_ld" = no; then
9176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9177 hardcode_libdir_flag_spec_ld='+b $libdir'
9178 hardcode_libdir_separator=:
9179 hardcode_direct=yes
9180 hardcode_direct_absolute=yes
9181 export_dynamic_flag_spec='${wl}-E'
9182 # hardcode_minus_L: Not really in the search PATH,
9183 # but as the default location of the library.
9184 hardcode_minus_L=yes
9185 fi
9186 ;;
9187
9188 hpux11*)
9189 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9190 case $host_cpu in
9191 hppa*64*)
9192 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9193 ;;
9194 ia64*)
9195 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9196 ;;
9197 *)
9198 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9199 ;;
9200 esac
9201 else
9202 case $host_cpu in
9203 hppa*64*)
9204 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9205 ;;
9206 ia64*)
9207 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9208 ;;
9209 *)
9210 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9211 ;;
9212 esac
9213 fi
9214 if test "$with_gnu_ld" = no; then
9215 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9216 hardcode_libdir_separator=:
9217
9218 case $host_cpu in
9219 hppa*64*|ia64*)
9220 hardcode_direct=no
9221 hardcode_shlibpath_var=no
9222 ;;
9223 *)
9224 hardcode_direct=yes
9225 hardcode_direct_absolute=yes
9226 export_dynamic_flag_spec='${wl}-E'
9227
9228 # hardcode_minus_L: Not really in the search PATH,
9229 # but as the default location of the library.
9230 hardcode_minus_L=yes
9231 ;;
9232 esac
9233 fi
9234 ;;
9235
9236 irix5* | irix6* | nonstopux*)
9237 if test "$GCC" = yes; then
9238 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'
9239 # Try to use the -exported_symbol ld option, if it does not
9240 # work, assume that -exports_file does not work either and
9241 # implicitly export all symbols.
9242 save_LDFLAGS="$LDFLAGS"
9243 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9244 cat >conftest.$ac_ext <<_ACEOF
9245int foo(void) {}
9246_ACEOF
9247rm -f conftest.$ac_objext conftest$ac_exeext
9248if { (ac_try="$ac_link"
9249case "(($ac_try" in
9250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251 *) ac_try_echo=$ac_try;;
9252esac
9253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9254$as_echo "$ac_try_echo") >&5
9255 (eval "$ac_link") 2>conftest.er1
9256 ac_status=$?
9257 grep -v '^ *+' conftest.er1 >conftest.err
9258 rm -f conftest.er1
9259 cat conftest.err >&5
9260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } && {
9262 test -z "$ac_c_werror_flag" ||
9263 test ! -s conftest.err
9264 } && test -s conftest$ac_exeext && {
9265 test "$cross_compiling" = yes ||
9266 $as_test_x conftest$ac_exeext
9267 }; then
9268 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'
9269
9270else
9271 $as_echo "$as_me: failed program was:" >&5
9272sed 's/^/| /' conftest.$ac_ext >&5
9273
9274
9275fi
9276
9277rm -rf conftest.dSYM
9278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9279 conftest$ac_exeext conftest.$ac_ext
9280 LDFLAGS="$save_LDFLAGS"
9281 else
9282 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'
9283 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'
9284 fi
9285 archive_cmds_need_lc='no'
9286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9287 hardcode_libdir_separator=:
9288 inherit_rpath=yes
9289 link_all_deplibs=yes
9290 ;;
9291
9292 netbsd*)
9293 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9294 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9295 else
9296 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9297 fi
9298 hardcode_libdir_flag_spec='-R$libdir'
9299 hardcode_direct=yes
9300 hardcode_shlibpath_var=no
9301 ;;
9302
9303 newsos6)
9304 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9305 hardcode_direct=yes
9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307 hardcode_libdir_separator=:
9308 hardcode_shlibpath_var=no
9309 ;;
9310
9311 *nto* | *qnx*)
9312 ;;
9313
9314 openbsd*)
9315 if test -f /usr/libexec/ld.so; then
9316 hardcode_direct=yes
9317 hardcode_shlibpath_var=no
9318 hardcode_direct_absolute=yes
9319 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9320 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9321 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9322 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9323 export_dynamic_flag_spec='${wl}-E'
9324 else
9325 case $host_os in
9326 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_libdir_flag_spec='-R$libdir'
9329 ;;
9330 *)
9331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9332 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9333 ;;
9334 esac
9335 fi
9336 else
9337 ld_shlibs=no
9338 fi
9339 ;;
9340
9341 os2*)
9342 hardcode_libdir_flag_spec='-L$libdir'
9343 hardcode_minus_L=yes
9344 allow_undefined_flag=unsupported
9345 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'
9346 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9347 ;;
9348
9349 osf3*)
9350 if test "$GCC" = yes; then
9351 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9352 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'
9353 else
9354 allow_undefined_flag=' -expect_unresolved \*'
9355 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'
9356 fi
9357 archive_cmds_need_lc='no'
9358 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9359 hardcode_libdir_separator=:
9360 ;;
9361
9362 osf4* | osf5*) # as osf3* with the addition of -msym flag
9363 if test "$GCC" = yes; then
9364 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9365 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'
9366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9367 else
9368 allow_undefined_flag=' -expect_unresolved \*'
9369 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'
9370 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~
9371 $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'
9372
9373 # Both c and cxx compiler support -rpath directly
9374 hardcode_libdir_flag_spec='-rpath $libdir'
9375 fi
9376 archive_cmds_need_lc='no'
9377 hardcode_libdir_separator=:
9378 ;;
9379
9380 solaris*)
9381 no_undefined_flag=' -z defs'
9382 if test "$GCC" = yes; then
9383 wlarc='${wl}'
9384 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9385 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9386 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9387 else
9388 case `$CC -V 2>&1` in
9389 *"Compilers 5.0"*)
9390 wlarc=''
9391 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9393 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9394 ;;
9395 *)
9396 wlarc='${wl}'
9397 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9399 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9400 ;;
9401 esac
9402 fi
9403 hardcode_libdir_flag_spec='-R$libdir'
9404 hardcode_shlibpath_var=no
9405 case $host_os in
9406 solaris2.[0-5] | solaris2.[0-5].*) ;;
9407 *)
9408 # The compiler driver will combine and reorder linker options,
9409 # but understands `-z linker_flag'. GCC discards it without `$wl',
9410 # but is careful enough not to reorder.
9411 # Supported since Solaris 2.6 (maybe 2.5.1?)
9412 if test "$GCC" = yes; then
9413 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9414 else
9415 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9416 fi
9417 ;;
9418 esac
9419 link_all_deplibs=yes
9420 ;;
9421
9422 sunos4*)
9423 if test "x$host_vendor" = xsequent; then
9424 # Use $CC to link under sequent, because it throws in some extra .o
9425 # files that make .init and .fini sections work.
9426 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9427 else
9428 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9429 fi
9430 hardcode_libdir_flag_spec='-L$libdir'
9431 hardcode_direct=yes
9432 hardcode_minus_L=yes
9433 hardcode_shlibpath_var=no
9434 ;;
9435
9436 sysv4)
9437 case $host_vendor in
9438 sni)
9439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9440 hardcode_direct=yes # is this really true???
9441 ;;
9442 siemens)
9443 ## LD is ld it makes a PLAMLIB
9444 ## CC just makes a GrossModule.
9445 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9446 reload_cmds='$CC -r -o $output$reload_objs'
9447 hardcode_direct=no
9448 ;;
9449 motorola)
9450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9452 ;;
9453 esac
9454 runpath_var='LD_RUN_PATH'
9455 hardcode_shlibpath_var=no
9456 ;;
9457
9458 sysv4.3*)
9459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9460 hardcode_shlibpath_var=no
9461 export_dynamic_flag_spec='-Bexport'
9462 ;;
9463
9464 sysv4*MP*)
9465 if test -d /usr/nec; then
9466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467 hardcode_shlibpath_var=no
9468 runpath_var=LD_RUN_PATH
9469 hardcode_runpath_var=yes
9470 ld_shlibs=yes
9471 fi
9472 ;;
9473
9474 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9475 no_undefined_flag='${wl}-z,text'
9476 archive_cmds_need_lc=no
9477 hardcode_shlibpath_var=no
9478 runpath_var='LD_RUN_PATH'
9479
9480 if test "$GCC" = yes; then
9481 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9482 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9483 else
9484 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9485 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9486 fi
9487 ;;
9488
9489 sysv5* | sco3.2v5* | sco5v6*)
9490 # Note: We can NOT use -z defs as we might desire, because we do not
9491 # link with -lc, and that would cause any symbols used from libc to
9492 # always be unresolved, which means just about no library would
9493 # ever link correctly. If we're not using GNU ld we use -z text
9494 # though, which does catch some bad symbols but isn't as heavy-handed
9495 # as -z defs.
9496 no_undefined_flag='${wl}-z,text'
9497 allow_undefined_flag='${wl}-z,nodefs'
9498 archive_cmds_need_lc=no
9499 hardcode_shlibpath_var=no
9500 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9501 hardcode_libdir_separator=':'
9502 link_all_deplibs=yes
9503 export_dynamic_flag_spec='${wl}-Bexport'
9504 runpath_var='LD_RUN_PATH'
9505
9506 if test "$GCC" = yes; then
9507 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9508 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9509 else
9510 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512 fi
9513 ;;
9514
9515 uts4*)
9516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9517 hardcode_libdir_flag_spec='-L$libdir'
9518 hardcode_shlibpath_var=no
9519 ;;
9520
9521 *)
9522 ld_shlibs=no
9523 ;;
9524 esac
9525
9526 if test x$host_vendor = xsni; then
9527 case $host in
9528 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9529 export_dynamic_flag_spec='${wl}-Blargedynsym'
9530 ;;
9531 esac
9532 fi
9533 fi
9534
9535{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9536$as_echo "$ld_shlibs" >&6; }
9537test "$ld_shlibs" = no && can_build_shared=no
9538
9539with_gnu_ld=$with_gnu_ld
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555#
9556# Do we need to explicitly link libc?
9557#
9558case "x$archive_cmds_need_lc" in
9559x|xyes)
9560 # Assume -lc should be added
9561 archive_cmds_need_lc=yes
9562
9563 if test "$enable_shared" = yes && test "$GCC" = yes; then
9564 case $archive_cmds in
9565 *'~'*)
9566 # FIXME: we may have to deal with multi-command sequences.
9567 ;;
9568 '$CC '*)
9569 # Test whether the compiler implicitly links with -lc since on some
9570 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9571 # to ld, don't add -lc before -lgcc.
9572 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9573$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9574 $RM conftest*
9575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9576
9577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9578 (eval $ac_compile) 2>&5
9579 ac_status=$?
9580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } 2>conftest.err; then
9582 soname=conftest
9583 lib=conftest
9584 libobjs=conftest.$ac_objext
9585 deplibs=
9586 wl=$lt_prog_compiler_wl
9587 pic_flag=$lt_prog_compiler_pic
9588 compiler_flags=-v
9589 linker_flags=-v
9590 verstring=
9591 output_objdir=.
9592 libname=conftest
9593 lt_save_allow_undefined_flag=$allow_undefined_flag
9594 allow_undefined_flag=
9595 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9596 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9597 ac_status=$?
9598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }
9600 then
9601 archive_cmds_need_lc=no
9602 else
9603 archive_cmds_need_lc=yes
9604 fi
9605 allow_undefined_flag=$lt_save_allow_undefined_flag
9606 else
9607 cat conftest.err 1>&5
9608 fi
9609 $RM conftest*
9610 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9611$as_echo "$archive_cmds_need_lc" >&6; }
9612 ;;
9613 esac
9614 fi
9615 ;;
9616esac
9617
9618
9619
9620
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 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9775$as_echo_n "checking dynamic linker characteristics... " >&6; }
9776
9777if test "$GCC" = yes; then
9778 case $host_os in
9779 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9780 *) lt_awk_arg="/^libraries:/" ;;
9781 esac
9782 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9783 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9784 # if the path contains ";" then we assume it to be the separator
9785 # otherwise default to the standard path separator (i.e. ":") - it is
9786 # assumed that no part of a normal pathname contains ";" but that should
9787 # okay in the real world where ";" in dirpaths is itself problematic.
9788 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9789 else
9790 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9791 fi
9792 # Ok, now we have the path, separated by spaces, we can step through it
9793 # and add multilib dir if necessary.
9794 lt_tmp_lt_search_path_spec=
9795 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9796 for lt_sys_path in $lt_search_path_spec; do
9797 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9798 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9799 else
9800 test -d "$lt_sys_path" && \
9801 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9802 fi
9803 done
9804 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9805BEGIN {RS=" "; FS="/|\n";} {
9806 lt_foo="";
9807 lt_count=0;
9808 for (lt_i = NF; lt_i > 0; lt_i--) {
9809 if ($lt_i != "" && $lt_i != ".") {
9810 if ($lt_i == "..") {
9811 lt_count++;
9812 } else {
9813 if (lt_count == 0) {
9814 lt_foo="/" $lt_i lt_foo;
9815 } else {
9816 lt_count--;
9817 }
9818 }
9819 }
9820 }
9821 if (lt_foo != "") { lt_freq[lt_foo]++; }
9822 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9823}'`
9824 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9825else
9826 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9827fi
9828library_names_spec=
9829libname_spec='lib$name'
9830soname_spec=
9831shrext_cmds=".so"
9832postinstall_cmds=
9833postuninstall_cmds=
9834finish_cmds=
9835finish_eval=
9836shlibpath_var=
9837shlibpath_overrides_runpath=unknown
9838version_type=none
9839dynamic_linker="$host_os ld.so"
9840sys_lib_dlsearch_path_spec="/lib /usr/lib"
9841need_lib_prefix=unknown
9842hardcode_into_libs=no
9843
9844# when you set need_version to no, make sure it does not cause -set_version
9845# flags to be left without arguments
9846need_version=unknown
9847
9848case $host_os in
9849aix3*)
9850 version_type=linux
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9852 shlibpath_var=LIBPATH
9853
9854 # AIX 3 has no versioning support, so we append a major version to the name.
9855 soname_spec='${libname}${release}${shared_ext}$major'
9856 ;;
9857
9858aix[4-9]*)
9859 version_type=linux
9860 need_lib_prefix=no
9861 need_version=no
9862 hardcode_into_libs=yes
9863 if test "$host_cpu" = ia64; then
9864 # AIX 5 supports IA64
9865 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9866 shlibpath_var=LD_LIBRARY_PATH
9867 else
9868 # With GCC up to 2.95.x, collect2 would create an import file
9869 # for dependence libraries. The import file would start with
9870 # the line `#! .'. This would cause the generated library to
9871 # depend on `.', always an invalid library. This was fixed in
9872 # development snapshots of GCC prior to 3.0.
9873 case $host_os in
9874 aix4 | aix4.[01] | aix4.[01].*)
9875 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9876 echo ' yes '
9877 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9878 :
9879 else
9880 can_build_shared=no
9881 fi
9882 ;;
9883 esac
9884 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9885 # soname into executable. Probably we can add versioning support to
9886 # collect2, so additional links can be useful in future.
9887 if test "$aix_use_runtimelinking" = yes; then
9888 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9889 # instead of lib<name>.a to let people know that these are not
9890 # typical AIX shared libraries.
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892 else
9893 # We preserve .a as extension for shared libraries through AIX4.2
9894 # and later when we are not doing run time linking.
9895 library_names_spec='${libname}${release}.a $libname.a'
9896 soname_spec='${libname}${release}${shared_ext}$major'
9897 fi
9898 shlibpath_var=LIBPATH
9899 fi
9900 ;;
9901
9902amigaos*)
9903 case $host_cpu in
9904 powerpc)
9905 # Since July 2007 AmigaOS4 officially supports .so libraries.
9906 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908 ;;
9909 m68k)
9910 library_names_spec='$libname.ixlibrary $libname.a'
9911 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9912 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'
9913 ;;
9914 esac
9915 ;;
9916
9917beos*)
9918 library_names_spec='${libname}${shared_ext}'
9919 dynamic_linker="$host_os ld.so"
9920 shlibpath_var=LIBRARY_PATH
9921 ;;
9922
9923bsdi[45]*)
9924 version_type=linux
9925 need_version=no
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9929 shlibpath_var=LD_LIBRARY_PATH
9930 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9931 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9932 # the default ld.so.conf also contains /usr/contrib/lib and
9933 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9934 # libtool to hard-code these into programs
9935 ;;
9936
9937cygwin* | mingw* | pw32* | cegcc*)
9938 version_type=windows
9939 shrext_cmds=".dll"
9940 need_version=no
9941 need_lib_prefix=no
9942
9943 case $GCC,$host_os in
9944 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9945 library_names_spec='$libname.dll.a'
9946 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9947 postinstall_cmds='base_file=`basename \${file}`~
9948 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9949 dldir=$destdir/`dirname \$dlpath`~
9950 test -d \$dldir || mkdir -p \$dldir~
9951 $install_prog $dir/$dlname \$dldir/$dlname~
9952 chmod a+x \$dldir/$dlname~
9953 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9954 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9955 fi'
9956 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9957 dlpath=$dir/\$dldll~
9958 $RM \$dlpath'
9959 shlibpath_overrides_runpath=yes
9960
9961 case $host_os in
9962 cygwin*)
9963 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9964 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9965 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9966 ;;
9967 mingw* | cegcc*)
9968 # MinGW DLLs use traditional 'lib' prefix
9969 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9970 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9971 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9972 # It is most probably a Windows format PATH printed by
9973 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9974 # path with ; separators, and with drive letters. We can handle the
9975 # drive letters (cygwin fileutils understands them), so leave them,
9976 # especially as we might pass files found there to a mingw objdump,
9977 # which wouldn't understand a cygwinified path. Ahh.
9978 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9979 else
9980 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9981 fi
9982 ;;
9983 pw32*)
9984 # pw32 DLLs use 'pw' prefix rather than 'lib'
9985 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9986 ;;
9987 esac
9988 ;;
9989
9990 *)
9991 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9992 ;;
9993 esac
9994 dynamic_linker='Win32 ld.exe'
9995 # FIXME: first we should search . and the directory the executable is in
9996 shlibpath_var=PATH
9997 ;;
9998
9999darwin* | rhapsody*)
10000 dynamic_linker="$host_os dyld"
10001 version_type=darwin
10002 need_lib_prefix=no
10003 need_version=no
10004 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10005 soname_spec='${libname}${release}${major}$shared_ext'
10006 shlibpath_overrides_runpath=yes
10007 shlibpath_var=DYLD_LIBRARY_PATH
10008 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10009
10010 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10011 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10012 ;;
10013
10014dgux*)
10015 version_type=linux
10016 need_lib_prefix=no
10017 need_version=no
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 shlibpath_var=LD_LIBRARY_PATH
10021 ;;
10022
10023freebsd1*)
10024 dynamic_linker=no
10025 ;;
10026
10027freebsd* | dragonfly*)
10028 # DragonFly does not have aout. When/if they implement a new
10029 # versioning mechanism, adjust this.
10030 if test -x /usr/bin/objformat; then
10031 objformat=`/usr/bin/objformat`
10032 else
10033 case $host_os in
10034 freebsd[123]*) objformat=aout ;;
10035 *) objformat=elf ;;
10036 esac
10037 fi
10038 version_type=freebsd-$objformat
10039 case $version_type in
10040 freebsd-elf*)
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10042 need_version=no
10043 need_lib_prefix=no
10044 ;;
10045 freebsd-*)
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10047 need_version=yes
10048 ;;
10049 esac
10050 shlibpath_var=LD_LIBRARY_PATH
10051 case $host_os in
10052 freebsd2*)
10053 shlibpath_overrides_runpath=yes
10054 ;;
10055 freebsd3.[01]* | freebsdelf3.[01]*)
10056 shlibpath_overrides_runpath=yes
10057 hardcode_into_libs=yes
10058 ;;
10059 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10060 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10061 shlibpath_overrides_runpath=no
10062 hardcode_into_libs=yes
10063 ;;
10064 *) # from 4.6 on, and DragonFly
10065 shlibpath_overrides_runpath=yes
10066 hardcode_into_libs=yes
10067 ;;
10068 esac
10069 ;;
10070
10071gnu*)
10072 version_type=linux
10073 need_lib_prefix=no
10074 need_version=no
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 hardcode_into_libs=yes
10079 ;;
10080
10081hpux9* | hpux10* | hpux11*)
10082 # Give a soname corresponding to the major version so that dld.sl refuses to
10083 # link against other versions.
10084 version_type=sunos
10085 need_lib_prefix=no
10086 need_version=no
10087 case $host_cpu in
10088 ia64*)
10089 shrext_cmds='.so'
10090 hardcode_into_libs=yes
10091 dynamic_linker="$host_os dld.so"
10092 shlibpath_var=LD_LIBRARY_PATH
10093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095 soname_spec='${libname}${release}${shared_ext}$major'
10096 if test "X$HPUX_IA64_MODE" = X32; then
10097 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10098 else
10099 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10100 fi
10101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10102 ;;
10103 hppa*64*)
10104 shrext_cmds='.sl'
10105 hardcode_into_libs=yes
10106 dynamic_linker="$host_os dld.sl"
10107 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10113 ;;
10114 *)
10115 shrext_cmds='.sl'
10116 dynamic_linker="$host_os dld.sl"
10117 shlibpath_var=SHLIB_PATH
10118 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120 soname_spec='${libname}${release}${shared_ext}$major'
10121 ;;
10122 esac
10123 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10124 postinstall_cmds='chmod 555 $lib'
10125 ;;
10126
10127interix[3-9]*)
10128 version_type=linux
10129 need_lib_prefix=no
10130 need_version=no
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10134 shlibpath_var=LD_LIBRARY_PATH
10135 shlibpath_overrides_runpath=no
10136 hardcode_into_libs=yes
10137 ;;
10138
10139irix5* | irix6* | nonstopux*)
10140 case $host_os in
10141 nonstopux*) version_type=nonstopux ;;
10142 *)
10143 if test "$lt_cv_prog_gnu_ld" = yes; then
10144 version_type=linux
10145 else
10146 version_type=irix
10147 fi ;;
10148 esac
10149 need_lib_prefix=no
10150 need_version=no
10151 soname_spec='${libname}${release}${shared_ext}$major'
10152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10153 case $host_os in
10154 irix5* | nonstopux*)
10155 libsuff= shlibsuff=
10156 ;;
10157 *)
10158 case $LD in # libtool.m4 will add one of these switches to LD
10159 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10160 libsuff= shlibsuff= libmagic=32-bit;;
10161 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10162 libsuff=32 shlibsuff=N32 libmagic=N32;;
10163 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10164 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10165 *) libsuff= shlibsuff= libmagic=never-match;;
10166 esac
10167 ;;
10168 esac
10169 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10170 shlibpath_overrides_runpath=no
10171 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10172 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10173 hardcode_into_libs=yes
10174 ;;
10175
10176# No shared lib support for Linux oldld, aout, or coff.
10177linux*oldld* | linux*aout* | linux*coff*)
10178 dynamic_linker=no
10179 ;;
10180
10181# This must be Linux ELF.
10182linux* | k*bsd*-gnu)
10183 version_type=linux
10184 need_lib_prefix=no
10185 need_version=no
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187 soname_spec='${libname}${release}${shared_ext}$major'
10188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10189 shlibpath_var=LD_LIBRARY_PATH
10190 shlibpath_overrides_runpath=no
10191 # Some binutils ld are patched to set DT_RUNPATH
10192 save_LDFLAGS=$LDFLAGS
10193 save_libdir=$libdir
10194 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10195 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10196 cat >conftest.$ac_ext <<_ACEOF
10197/* confdefs.h. */
10198_ACEOF
10199cat confdefs.h >>conftest.$ac_ext
10200cat >>conftest.$ac_ext <<_ACEOF
10201/* end confdefs.h. */
10202
10203int
10204main ()
10205{
10206
10207 ;
10208 return 0;
10209}
10210_ACEOF
10211rm -f conftest.$ac_objext conftest$ac_exeext
10212if { (ac_try="$ac_link"
10213case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216esac
10217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10218$as_echo "$ac_try_echo") >&5
10219 (eval "$ac_link") 2>conftest.er1
10220 ac_status=$?
10221 grep -v '^ *+' conftest.er1 >conftest.err
10222 rm -f conftest.er1
10223 cat conftest.err >&5
10224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } && {
10226 test -z "$ac_c_werror_flag" ||
10227 test ! -s conftest.err
10228 } && test -s conftest$ac_exeext && {
10229 test "$cross_compiling" = yes ||
10230 $as_test_x conftest$ac_exeext
10231 }; then
10232 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10233 shlibpath_overrides_runpath=yes
10234fi
10235
10236else
10237 $as_echo "$as_me: failed program was:" >&5
10238sed 's/^/| /' conftest.$ac_ext >&5
10239
10240
10241fi
10242
10243rm -rf conftest.dSYM
10244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10245 conftest$ac_exeext conftest.$ac_ext
10246 LDFLAGS=$save_LDFLAGS
10247 libdir=$save_libdir
10248
10249 # This implies no fast_install, which is unacceptable.
10250 # Some rework will be needed to allow for fast_install
10251 # before this can be enabled.
10252 hardcode_into_libs=yes
10253
10254 # Add ABI-specific directories to the system library path.
10255 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10256
10257 # Append ld.so.conf contents to the search path
10258 if test -f /etc/ld.so.conf; then
10259 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' ' '`
10260 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10261 fi
10262
10263 # We used to test for /lib/ld.so.1 and disable shared libraries on
10264 # powerpc, because MkLinux only supported shared libraries with the
10265 # GNU dynamic linker. Since this was broken with cross compilers,
10266 # most powerpc-linux boxes support dynamic linking these days and
10267 # people can always --disable-shared, the test was removed, and we
10268 # assume the GNU/Linux dynamic linker is in use.
10269 dynamic_linker='GNU/Linux ld.so'
10270 ;;
10271
10272netbsd*)
10273 version_type=sunos
10274 need_lib_prefix=no
10275 need_version=no
10276 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10279 dynamic_linker='NetBSD (a.out) ld.so'
10280 else
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 dynamic_linker='NetBSD ld.elf_so'
10284 fi
10285 shlibpath_var=LD_LIBRARY_PATH
10286 shlibpath_overrides_runpath=yes
10287 hardcode_into_libs=yes
10288 ;;
10289
10290newsos6)
10291 version_type=linux
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 shlibpath_overrides_runpath=yes
10295 ;;
10296
10297*nto* | *qnx*)
10298 version_type=qnx
10299 need_lib_prefix=no
10300 need_version=no
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 shlibpath_overrides_runpath=no
10305 hardcode_into_libs=yes
10306 dynamic_linker='ldqnx.so'
10307 ;;
10308
10309openbsd*)
10310 version_type=sunos
10311 sys_lib_dlsearch_path_spec="/usr/lib"
10312 need_lib_prefix=no
10313 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10314 case $host_os in
10315 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10316 *) need_version=no ;;
10317 esac
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10322 case $host_os in
10323 openbsd2.[89] | openbsd2.[89].*)
10324 shlibpath_overrides_runpath=no
10325 ;;
10326 *)
10327 shlibpath_overrides_runpath=yes
10328 ;;
10329 esac
10330 else
10331 shlibpath_overrides_runpath=yes
10332 fi
10333 ;;
10334
10335os2*)
10336 libname_spec='$name'
10337 shrext_cmds=".dll"
10338 need_lib_prefix=no
10339 library_names_spec='$libname${shared_ext} $libname.a'
10340 dynamic_linker='OS/2 ld.exe'
10341 shlibpath_var=LIBPATH
10342 ;;
10343
10344osf3* | osf4* | osf5*)
10345 version_type=osf
10346 need_lib_prefix=no
10347 need_version=no
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10352 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10353 ;;
10354
10355rdos*)
10356 dynamic_linker=no
10357 ;;
10358
10359solaris*)
10360 version_type=linux
10361 need_lib_prefix=no
10362 need_version=no
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 shlibpath_overrides_runpath=yes
10367 hardcode_into_libs=yes
10368 # ldd complains unless libraries are executable
10369 postinstall_cmds='chmod +x $lib'
10370 ;;
10371
10372sunos4*)
10373 version_type=sunos
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10375 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 shlibpath_overrides_runpath=yes
10378 if test "$with_gnu_ld" = yes; then
10379 need_lib_prefix=no
10380 fi
10381 need_version=yes
10382 ;;
10383
10384sysv4 | sysv4.3*)
10385 version_type=linux
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 case $host_vendor in
10390 sni)
10391 shlibpath_overrides_runpath=no
10392 need_lib_prefix=no
10393 runpath_var=LD_RUN_PATH
10394 ;;
10395 siemens)
10396 need_lib_prefix=no
10397 ;;
10398 motorola)
10399 need_lib_prefix=no
10400 need_version=no
10401 shlibpath_overrides_runpath=no
10402 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10403 ;;
10404 esac
10405 ;;
10406
10407sysv4*MP*)
10408 if test -d /usr/nec ;then
10409 version_type=linux
10410 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10411 soname_spec='$libname${shared_ext}.$major'
10412 shlibpath_var=LD_LIBRARY_PATH
10413 fi
10414 ;;
10415
10416sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10417 version_type=freebsd-elf
10418 need_lib_prefix=no
10419 need_version=no
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 shlibpath_var=LD_LIBRARY_PATH
10423 shlibpath_overrides_runpath=yes
10424 hardcode_into_libs=yes
10425 if test "$with_gnu_ld" = yes; then
10426 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10427 else
10428 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10429 case $host_os in
10430 sco3.2v5*)
10431 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10432 ;;
10433 esac
10434 fi
10435 sys_lib_dlsearch_path_spec='/usr/lib'
10436 ;;
10437
10438tpf*)
10439 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10440 version_type=linux
10441 need_lib_prefix=no
10442 need_version=no
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 shlibpath_overrides_runpath=no
10446 hardcode_into_libs=yes
10447 ;;
10448
10449uts4*)
10450 version_type=linux
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 soname_spec='${libname}${release}${shared_ext}$major'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 ;;
10455
10456*)
10457 dynamic_linker=no
10458 ;;
10459esac
10460{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10461$as_echo "$dynamic_linker" >&6; }
10462test "$dynamic_linker" = no && can_build_shared=no
10463
10464variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10465if test "$GCC" = yes; then
10466 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10467fi
10468
10469if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10470 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10471fi
10472if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10473 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10474fi
10475
10476
10477
10478
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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10563$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10564hardcode_action=
10565if test -n "$hardcode_libdir_flag_spec" ||
10566 test -n "$runpath_var" ||
10567 test "X$hardcode_automatic" = "Xyes" ; then
10568
10569 # We can hardcode non-existent directories.
10570 if test "$hardcode_direct" != no &&
10571 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10572 # have to relink, otherwise we might link with an installed library
10573 # when we should be linking with a yet-to-be-installed one
10574 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10575 test "$hardcode_minus_L" != no; then
10576 # Linking always hardcodes the temporary library directory.
10577 hardcode_action=relink
10578 else
10579 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10580 hardcode_action=immediate
10581 fi
10582else
10583 # We cannot hardcode anything, or else we can only hardcode existing
10584 # directories.
10585 hardcode_action=unsupported
10586fi
10587{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10588$as_echo "$hardcode_action" >&6; }
10589
10590if test "$hardcode_action" = relink ||
10591 test "$inherit_rpath" = yes; then
10592 # Fast installation is not supported
10593 enable_fast_install=no
10594elif test "$shlibpath_overrides_runpath" = yes ||
10595 test "$enable_shared" = no; then
10596 # Fast installation is not necessary
10597 enable_fast_install=needless
10598fi
10599
10600
10601
10602
10603
10604
10605 if test "x$enable_dlopen" != xyes; then
10606 enable_dlopen=unknown
10607 enable_dlopen_self=unknown
10608 enable_dlopen_self_static=unknown
10609else
10610 lt_cv_dlopen=no
10611 lt_cv_dlopen_libs=
10612
10613 case $host_os in
10614 beos*)
10615 lt_cv_dlopen="load_add_on"
10616 lt_cv_dlopen_libs=
10617 lt_cv_dlopen_self=yes
10618 ;;
10619
10620 mingw* | pw32* | cegcc*)
10621 lt_cv_dlopen="LoadLibrary"
10622 lt_cv_dlopen_libs=
10623 ;;
10624
10625 cygwin*)
10626 lt_cv_dlopen="dlopen"
10627 lt_cv_dlopen_libs=
10628 ;;
10629
10630 darwin*)
10631 # if libdl is installed we need to link against it
10632 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10633$as_echo_n "checking for dlopen in -ldl... " >&6; }
10634if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10635 $as_echo_n "(cached) " >&6
10636else
10637 ac_check_lib_save_LIBS=$LIBS
10638LIBS="-ldl $LIBS"
10639cat >conftest.$ac_ext <<_ACEOF
10640/* confdefs.h. */
10641_ACEOF
10642cat confdefs.h >>conftest.$ac_ext
10643cat >>conftest.$ac_ext <<_ACEOF
10644/* end confdefs.h. */
10645
10646/* Override any GCC internal prototype to avoid an error.
10647 Use char because int might match the return type of a GCC
10648 builtin and then its argument prototype would still apply. */
10649#ifdef __cplusplus
10650extern "C"
10651#endif
10652char dlopen ();
10653int
10654main ()
10655{
10656return dlopen ();
10657 ;
10658 return 0;
10659}
10660_ACEOF
10661rm -f conftest.$ac_objext conftest$ac_exeext
10662if { (ac_try="$ac_link"
10663case "(($ac_try" in
10664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10666esac
10667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10668$as_echo "$ac_try_echo") >&5
10669 (eval "$ac_link") 2>conftest.er1
10670 ac_status=$?
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
10674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } && {
10676 test -z "$ac_c_werror_flag" ||
10677 test ! -s conftest.err
10678 } && test -s conftest$ac_exeext && {
10679 test "$cross_compiling" = yes ||
10680 $as_test_x conftest$ac_exeext
10681 }; then
10682 ac_cv_lib_dl_dlopen=yes
10683else
10684 $as_echo "$as_me: failed program was:" >&5
10685sed 's/^/| /' conftest.$ac_ext >&5
10686
10687 ac_cv_lib_dl_dlopen=no
10688fi
10689
10690rm -rf conftest.dSYM
10691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10692 conftest$ac_exeext conftest.$ac_ext
10693LIBS=$ac_check_lib_save_LIBS
10694fi
10695{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10696$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10697if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10699else
10700
10701 lt_cv_dlopen="dyld"
10702 lt_cv_dlopen_libs=
10703 lt_cv_dlopen_self=yes
10704
10705fi
10706
10707 ;;
10708
10709 *)
10710 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10711$as_echo_n "checking for shl_load... " >&6; }
10712if test "${ac_cv_func_shl_load+set}" = set; then
10713 $as_echo_n "(cached) " >&6
10714else
10715 cat >conftest.$ac_ext <<_ACEOF
10716/* confdefs.h. */
10717_ACEOF
10718cat confdefs.h >>conftest.$ac_ext
10719cat >>conftest.$ac_ext <<_ACEOF
10720/* end confdefs.h. */
10721/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10723#define shl_load innocuous_shl_load
10724
10725/* System header to define __stub macros and hopefully few prototypes,
10726 which can conflict with char shl_load (); below.
10727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10728 <limits.h> exists even on freestanding compilers. */
10729
10730#ifdef __STDC__
10731# include <limits.h>
10732#else
10733# include <assert.h>
10734#endif
10735
10736#undef shl_load
10737
10738/* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10741#ifdef __cplusplus
10742extern "C"
10743#endif
10744char shl_load ();
10745/* The GNU C library defines this for functions which it implements
10746 to always fail with ENOSYS. Some functions are actually named
10747 something starting with __ and the normal name is an alias. */
10748#if defined __stub_shl_load || defined __stub___shl_load
10749choke me
10750#endif
10751
10752int
10753main ()
10754{
10755return shl_load ();
10756 ;
10757 return 0;
10758}
10759_ACEOF
10760rm -f conftest.$ac_objext conftest$ac_exeext
10761if { (ac_try="$ac_link"
10762case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765esac
10766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10767$as_echo "$ac_try_echo") >&5
10768 (eval "$ac_link") 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && {
10775 test -z "$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 } && test -s conftest$ac_exeext && {
10778 test "$cross_compiling" = yes ||
10779 $as_test_x conftest$ac_exeext
10780 }; then
10781 ac_cv_func_shl_load=yes
10782else
10783 $as_echo "$as_me: failed program was:" >&5
10784sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 ac_cv_func_shl_load=no
10787fi
10788
10789rm -rf conftest.dSYM
10790rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10791 conftest$ac_exeext conftest.$ac_ext
10792fi
10793{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10794$as_echo "$ac_cv_func_shl_load" >&6; }
10795if test "x$ac_cv_func_shl_load" = x""yes; then
10796 lt_cv_dlopen="shl_load"
10797else
10798 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10799$as_echo_n "checking for shl_load in -ldld... " >&6; }
10800if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10801 $as_echo_n "(cached) " >&6
10802else
10803 ac_check_lib_save_LIBS=$LIBS
10804LIBS="-ldld $LIBS"
10805cat >conftest.$ac_ext <<_ACEOF
10806/* confdefs.h. */
10807_ACEOF
10808cat confdefs.h >>conftest.$ac_ext
10809cat >>conftest.$ac_ext <<_ACEOF
10810/* end confdefs.h. */
10811
10812/* Override any GCC internal prototype to avoid an error.
10813 Use char because int might match the return type of a GCC
10814 builtin and then its argument prototype would still apply. */
10815#ifdef __cplusplus
10816extern "C"
10817#endif
10818char shl_load ();
10819int
10820main ()
10821{
10822return shl_load ();
10823 ;
10824 return 0;
10825}
10826_ACEOF
10827rm -f conftest.$ac_objext conftest$ac_exeext
10828if { (ac_try="$ac_link"
10829case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10832esac
10833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10834$as_echo "$ac_try_echo") >&5
10835 (eval "$ac_link") 2>conftest.er1
10836 ac_status=$?
10837 grep -v '^ *+' conftest.er1 >conftest.err
10838 rm -f conftest.er1
10839 cat conftest.err >&5
10840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } && {
10842 test -z "$ac_c_werror_flag" ||
10843 test ! -s conftest.err
10844 } && test -s conftest$ac_exeext && {
10845 test "$cross_compiling" = yes ||
10846 $as_test_x conftest$ac_exeext
10847 }; then
10848 ac_cv_lib_dld_shl_load=yes
10849else
10850 $as_echo "$as_me: failed program was:" >&5
10851sed 's/^/| /' conftest.$ac_ext >&5
10852
10853 ac_cv_lib_dld_shl_load=no
10854fi
10855
10856rm -rf conftest.dSYM
10857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10858 conftest$ac_exeext conftest.$ac_ext
10859LIBS=$ac_check_lib_save_LIBS
10860fi
10861{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10862$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10863if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10864 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10865else
10866 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10867$as_echo_n "checking for dlopen... " >&6; }
10868if test "${ac_cv_func_dlopen+set}" = set; then
10869 $as_echo_n "(cached) " >&6
10870else
10871 cat >conftest.$ac_ext <<_ACEOF
10872/* confdefs.h. */
10873_ACEOF
10874cat confdefs.h >>conftest.$ac_ext
10875cat >>conftest.$ac_ext <<_ACEOF
10876/* end confdefs.h. */
10877/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10879#define dlopen innocuous_dlopen
10880
10881/* System header to define __stub macros and hopefully few prototypes,
10882 which can conflict with char dlopen (); below.
10883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10884 <limits.h> exists even on freestanding compilers. */
10885
10886#ifdef __STDC__
10887# include <limits.h>
10888#else
10889# include <assert.h>
10890#endif
10891
10892#undef dlopen
10893
10894/* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */
10897#ifdef __cplusplus
10898extern "C"
10899#endif
10900char dlopen ();
10901/* The GNU C library defines this for functions which it implements
10902 to always fail with ENOSYS. Some functions are actually named
10903 something starting with __ and the normal name is an alias. */
10904#if defined __stub_dlopen || defined __stub___dlopen
10905choke me
10906#endif
10907
10908int
10909main ()
10910{
10911return dlopen ();
10912 ;
10913 return 0;
10914}
10915_ACEOF
10916rm -f conftest.$ac_objext conftest$ac_exeext
10917if { (ac_try="$ac_link"
10918case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921esac
10922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10923$as_echo "$ac_try_echo") >&5
10924 (eval "$ac_link") 2>conftest.er1
10925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } && {
10931 test -z "$ac_c_werror_flag" ||
10932 test ! -s conftest.err
10933 } && test -s conftest$ac_exeext && {
10934 test "$cross_compiling" = yes ||
10935 $as_test_x conftest$ac_exeext
10936 }; then
10937 ac_cv_func_dlopen=yes
10938else
10939 $as_echo "$as_me: failed program was:" >&5
10940sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 ac_cv_func_dlopen=no
10943fi
10944
10945rm -rf conftest.dSYM
10946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10947 conftest$ac_exeext conftest.$ac_ext
10948fi
10949{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10950$as_echo "$ac_cv_func_dlopen" >&6; }
10951if test "x$ac_cv_func_dlopen" = x""yes; then
10952 lt_cv_dlopen="dlopen"
10953else
10954 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10955$as_echo_n "checking for dlopen in -ldl... " >&6; }
10956if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10957 $as_echo_n "(cached) " >&6
10958else
10959 ac_check_lib_save_LIBS=$LIBS
10960LIBS="-ldl $LIBS"
10961cat >conftest.$ac_ext <<_ACEOF
10962/* confdefs.h. */
10963_ACEOF
10964cat confdefs.h >>conftest.$ac_ext
10965cat >>conftest.$ac_ext <<_ACEOF
10966/* end confdefs.h. */
10967
10968/* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
10971#ifdef __cplusplus
10972extern "C"
10973#endif
10974char dlopen ();
10975int
10976main ()
10977{
10978return dlopen ();
10979 ;
10980 return 0;
10981}
10982_ACEOF
10983rm -f conftest.$ac_objext conftest$ac_exeext
10984if { (ac_try="$ac_link"
10985case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10988esac
10989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10990$as_echo "$ac_try_echo") >&5
10991 (eval "$ac_link") 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } && {
10998 test -z "$ac_c_werror_flag" ||
10999 test ! -s conftest.err
11000 } && test -s conftest$ac_exeext && {
11001 test "$cross_compiling" = yes ||
11002 $as_test_x conftest$ac_exeext
11003 }; then
11004 ac_cv_lib_dl_dlopen=yes
11005else
11006 $as_echo "$as_me: failed program was:" >&5
11007sed 's/^/| /' conftest.$ac_ext >&5
11008
11009 ac_cv_lib_dl_dlopen=no
11010fi
11011
11012rm -rf conftest.dSYM
11013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11014 conftest$ac_exeext conftest.$ac_ext
11015LIBS=$ac_check_lib_save_LIBS
11016fi
11017{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11018$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11019if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11021else
11022 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11023$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11024if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11025 $as_echo_n "(cached) " >&6
11026else
11027 ac_check_lib_save_LIBS=$LIBS
11028LIBS="-lsvld $LIBS"
11029cat >conftest.$ac_ext <<_ACEOF
11030/* confdefs.h. */
11031_ACEOF
11032cat confdefs.h >>conftest.$ac_ext
11033cat >>conftest.$ac_ext <<_ACEOF
11034/* end confdefs.h. */
11035
11036/* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
11039#ifdef __cplusplus
11040extern "C"
11041#endif
11042char dlopen ();
11043int
11044main ()
11045{
11046return dlopen ();
11047 ;
11048 return 0;
11049}
11050_ACEOF
11051rm -f conftest.$ac_objext conftest$ac_exeext
11052if { (ac_try="$ac_link"
11053case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056esac
11057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11058$as_echo "$ac_try_echo") >&5
11059 (eval "$ac_link") 2>conftest.er1
11060 ac_status=$?
11061 grep -v '^ *+' conftest.er1 >conftest.err
11062 rm -f conftest.er1
11063 cat conftest.err >&5
11064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } && {
11066 test -z "$ac_c_werror_flag" ||
11067 test ! -s conftest.err
11068 } && test -s conftest$ac_exeext && {
11069 test "$cross_compiling" = yes ||
11070 $as_test_x conftest$ac_exeext
11071 }; then
11072 ac_cv_lib_svld_dlopen=yes
11073else
11074 $as_echo "$as_me: failed program was:" >&5
11075sed 's/^/| /' conftest.$ac_ext >&5
11076
11077 ac_cv_lib_svld_dlopen=no
11078fi
11079
11080rm -rf conftest.dSYM
11081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11082 conftest$ac_exeext conftest.$ac_ext
11083LIBS=$ac_check_lib_save_LIBS
11084fi
11085{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11086$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11087if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11089else
11090 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11091$as_echo_n "checking for dld_link in -ldld... " >&6; }
11092if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11093 $as_echo_n "(cached) " >&6
11094else
11095 ac_check_lib_save_LIBS=$LIBS
11096LIBS="-ldld $LIBS"
11097cat >conftest.$ac_ext <<_ACEOF
11098/* confdefs.h. */
11099_ACEOF
11100cat confdefs.h >>conftest.$ac_ext
11101cat >>conftest.$ac_ext <<_ACEOF
11102/* end confdefs.h. */
11103
11104/* Override any GCC internal prototype to avoid an error.
11105 Use char because int might match the return type of a GCC
11106 builtin and then its argument prototype would still apply. */
11107#ifdef __cplusplus
11108extern "C"
11109#endif
11110char dld_link ();
11111int
11112main ()
11113{
11114return dld_link ();
11115 ;
11116 return 0;
11117}
11118_ACEOF
11119rm -f conftest.$ac_objext conftest$ac_exeext
11120if { (ac_try="$ac_link"
11121case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124esac
11125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11126$as_echo "$ac_try_echo") >&5
11127 (eval "$ac_link") 2>conftest.er1
11128 ac_status=$?
11129 grep -v '^ *+' conftest.er1 >conftest.err
11130 rm -f conftest.er1
11131 cat conftest.err >&5
11132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } && {
11134 test -z "$ac_c_werror_flag" ||
11135 test ! -s conftest.err
11136 } && test -s conftest$ac_exeext && {
11137 test "$cross_compiling" = yes ||
11138 $as_test_x conftest$ac_exeext
11139 }; then
11140 ac_cv_lib_dld_dld_link=yes
11141else
11142 $as_echo "$as_me: failed program was:" >&5
11143sed 's/^/| /' conftest.$ac_ext >&5
11144
11145 ac_cv_lib_dld_dld_link=no
11146fi
11147
11148rm -rf conftest.dSYM
11149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11150 conftest$ac_exeext conftest.$ac_ext
11151LIBS=$ac_check_lib_save_LIBS
11152fi
11153{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11154$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11155if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11156 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11157fi
11158
11159
11160fi
11161
11162
11163fi
11164
11165
11166fi
11167
11168
11169fi
11170
11171
11172fi
11173
11174 ;;
11175 esac
11176
11177 if test "x$lt_cv_dlopen" != xno; then
11178 enable_dlopen=yes
11179 else
11180 enable_dlopen=no
11181 fi
11182
11183 case $lt_cv_dlopen in
11184 dlopen)
11185 save_CPPFLAGS="$CPPFLAGS"
11186 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11187
11188 save_LDFLAGS="$LDFLAGS"
11189 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11190
11191 save_LIBS="$LIBS"
11192 LIBS="$lt_cv_dlopen_libs $LIBS"
11193
11194 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11195$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11196if test "${lt_cv_dlopen_self+set}" = set; then
11197 $as_echo_n "(cached) " >&6
11198else
11199 if test "$cross_compiling" = yes; then :
11200 lt_cv_dlopen_self=cross
11201else
11202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11203 lt_status=$lt_dlunknown
11204 cat > conftest.$ac_ext <<_LT_EOF
6ba3b446 11205#line 11205 "configure"
e70e591c
BB
11206#include "confdefs.h"
11207
11208#if HAVE_DLFCN_H
11209#include <dlfcn.h>
11210#endif
11211
11212#include <stdio.h>
11213
11214#ifdef RTLD_GLOBAL
11215# define LT_DLGLOBAL RTLD_GLOBAL
11216#else
11217# ifdef DL_GLOBAL
11218# define LT_DLGLOBAL DL_GLOBAL
11219# else
11220# define LT_DLGLOBAL 0
11221# endif
11222#endif
11223
11224/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11225 find out it does not work in some platform. */
11226#ifndef LT_DLLAZY_OR_NOW
11227# ifdef RTLD_LAZY
11228# define LT_DLLAZY_OR_NOW RTLD_LAZY
11229# else
11230# ifdef DL_LAZY
11231# define LT_DLLAZY_OR_NOW DL_LAZY
11232# else
11233# ifdef RTLD_NOW
11234# define LT_DLLAZY_OR_NOW RTLD_NOW
11235# else
11236# ifdef DL_NOW
11237# define LT_DLLAZY_OR_NOW DL_NOW
11238# else
11239# define LT_DLLAZY_OR_NOW 0
11240# endif
11241# endif
11242# endif
11243# endif
11244#endif
11245
11246void fnord() { int i=42;}
11247int main ()
11248{
11249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11250 int status = $lt_dlunknown;
11251
11252 if (self)
11253 {
11254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11255 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11256 /* dlclose (self); */
11257 }
11258 else
11259 puts (dlerror ());
11260
11261 return status;
11262}
11263_LT_EOF
11264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11265 (eval $ac_link) 2>&5
11266 ac_status=$?
11267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11269 (./conftest; exit; ) >&5 2>/dev/null
11270 lt_status=$?
11271 case x$lt_status in
11272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11274 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11275 esac
11276 else :
11277 # compilation failed
11278 lt_cv_dlopen_self=no
11279 fi
11280fi
11281rm -fr conftest*
11282
11283
11284fi
11285{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11286$as_echo "$lt_cv_dlopen_self" >&6; }
11287
11288 if test "x$lt_cv_dlopen_self" = xyes; then
11289 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11290 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11291$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11292if test "${lt_cv_dlopen_self_static+set}" = set; then
11293 $as_echo_n "(cached) " >&6
11294else
11295 if test "$cross_compiling" = yes; then :
11296 lt_cv_dlopen_self_static=cross
11297else
11298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11299 lt_status=$lt_dlunknown
11300 cat > conftest.$ac_ext <<_LT_EOF
6ba3b446 11301#line 11301 "configure"
e70e591c
BB
11302#include "confdefs.h"
11303
11304#if HAVE_DLFCN_H
11305#include <dlfcn.h>
11306#endif
11307
11308#include <stdio.h>
11309
11310#ifdef RTLD_GLOBAL
11311# define LT_DLGLOBAL RTLD_GLOBAL
11312#else
11313# ifdef DL_GLOBAL
11314# define LT_DLGLOBAL DL_GLOBAL
11315# else
11316# define LT_DLGLOBAL 0
11317# endif
11318#endif
11319
11320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11321 find out it does not work in some platform. */
11322#ifndef LT_DLLAZY_OR_NOW
11323# ifdef RTLD_LAZY
11324# define LT_DLLAZY_OR_NOW RTLD_LAZY
11325# else
11326# ifdef DL_LAZY
11327# define LT_DLLAZY_OR_NOW DL_LAZY
11328# else
11329# ifdef RTLD_NOW
11330# define LT_DLLAZY_OR_NOW RTLD_NOW
11331# else
11332# ifdef DL_NOW
11333# define LT_DLLAZY_OR_NOW DL_NOW
11334# else
11335# define LT_DLLAZY_OR_NOW 0
11336# endif
11337# endif
11338# endif
11339# endif
11340#endif
11341
11342void fnord() { int i=42;}
11343int main ()
11344{
11345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11346 int status = $lt_dlunknown;
11347
11348 if (self)
11349 {
11350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11351 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11352 /* dlclose (self); */
11353 }
11354 else
11355 puts (dlerror ());
11356
11357 return status;
11358}
11359_LT_EOF
11360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11361 (eval $ac_link) 2>&5
11362 ac_status=$?
11363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11365 (./conftest; exit; ) >&5 2>/dev/null
11366 lt_status=$?
11367 case x$lt_status in
11368 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11369 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11370 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11371 esac
11372 else :
11373 # compilation failed
11374 lt_cv_dlopen_self_static=no
11375 fi
11376fi
11377rm -fr conftest*
11378
11379
11380fi
11381{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11382$as_echo "$lt_cv_dlopen_self_static" >&6; }
11383 fi
11384
11385 CPPFLAGS="$save_CPPFLAGS"
11386 LDFLAGS="$save_LDFLAGS"
11387 LIBS="$save_LIBS"
11388 ;;
11389 esac
11390
11391 case $lt_cv_dlopen_self in
11392 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11393 *) enable_dlopen_self=unknown ;;
11394 esac
11395
11396 case $lt_cv_dlopen_self_static in
11397 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11398 *) enable_dlopen_self_static=unknown ;;
11399 esac
11400fi
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418striplib=
11419old_striplib=
11420{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11421$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11422if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11423 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11424 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11425 { $as_echo "$as_me:$LINENO: result: yes" >&5
11426$as_echo "yes" >&6; }
11427else
11428# FIXME - insert some real tests, host_os isn't really good enough
11429 case $host_os in
11430 darwin*)
11431 if test -n "$STRIP" ; then
11432 striplib="$STRIP -x"
11433 old_striplib="$STRIP -S"
11434 { $as_echo "$as_me:$LINENO: result: yes" >&5
11435$as_echo "yes" >&6; }
11436 else
11437 { $as_echo "$as_me:$LINENO: result: no" >&5
11438$as_echo "no" >&6; }
11439 fi
11440 ;;
11441 *)
11442 { $as_echo "$as_me:$LINENO: result: no" >&5
11443$as_echo "no" >&6; }
11444 ;;
11445 esac
11446fi
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459 # Report which library types will actually be built
11460 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11461$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11462 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11463$as_echo "$can_build_shared" >&6; }
11464
11465 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11466$as_echo_n "checking whether to build shared libraries... " >&6; }
11467 test "$can_build_shared" = "no" && enable_shared=no
11468
11469 # On AIX, shared libraries and static libraries use the same namespace, and
11470 # are all built from PIC.
11471 case $host_os in
11472 aix3*)
11473 test "$enable_shared" = yes && enable_static=no
11474 if test -n "$RANLIB"; then
11475 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11476 postinstall_cmds='$RANLIB $lib'
11477 fi
11478 ;;
11479
11480 aix[4-9]*)
11481 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11482 test "$enable_shared" = yes && enable_static=no
11483 fi
11484 ;;
11485 esac
11486 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11487$as_echo "$enable_shared" >&6; }
11488
11489 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11490$as_echo_n "checking whether to build static libraries... " >&6; }
11491 # Make sure either enable_shared or enable_static is yes.
11492 test "$enable_shared" = yes || enable_static=yes
11493 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11494$as_echo "$enable_static" >&6; }
11495
11496
11497
11498
11499fi
11500ac_ext=c
11501ac_cpp='$CPP $CPPFLAGS'
11502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11504ac_compiler_gnu=$ac_cv_c_compiler_gnu
11505
11506CC="$lt_save_CC"
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520 ac_config_commands="$ac_config_commands libtool"
11521
11522
11523
11524
11525# Only expand once:
11526
11527
11528# By default we simply use the C compiler to build assembly code.
11529
11530test "${CCAS+set}" = set || CCAS=$CC
11531test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11532
11533
11534
11535depcc="$CCAS" am_compiler_list=
11536
11537{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11538$as_echo_n "checking dependency style of $depcc... " >&6; }
11539if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11540 $as_echo_n "(cached) " >&6
11541else
11542 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11543 # We make a subdir and do the tests there. Otherwise we can end up
11544 # making bogus files that we don't know about and never remove. For
11545 # instance it was reported that on HP-UX the gcc test will end up
11546 # making a dummy file named `D' -- because `-MD' means `put the output
11547 # in D'.
11548 mkdir conftest.dir
11549 # Copy depcomp to subdir because otherwise we won't find it if we're
11550 # using a relative directory.
11551 cp "$am_depcomp" conftest.dir
11552 cd conftest.dir
11553 # We will build objects and dependencies in a subdirectory because
11554 # it helps to detect inapplicable dependency modes. For instance
11555 # both Tru64's cc and ICC support -MD to output dependencies as a
11556 # side effect of compilation, but ICC will put the dependencies in
11557 # the current directory while Tru64 will put them in the object
11558 # directory.
11559 mkdir sub
11560
11561 am_cv_CCAS_dependencies_compiler_type=none
11562 if test "$am_compiler_list" = ""; then
11563 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11564 fi
11565 am__universal=false
11566
11567
11568 for depmode in $am_compiler_list; do
11569 # Setup a source with many dependencies, because some compilers
11570 # like to wrap large dependency lists on column 80 (with \), and
11571 # we should not choose a depcomp mode which is confused by this.
11572 #
11573 # We need to recreate these files for each test, as the compiler may
11574 # overwrite some of them when testing with obscure command lines.
11575 # This happens at least with the AIX C compiler.
11576 : > sub/conftest.c
11577 for i in 1 2 3 4 5 6; do
11578 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11579 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11580 # Solaris 8's {/usr,}/bin/sh.
11581 touch sub/conftst$i.h
11582 done
11583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11584
11585 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11586 # mode. It turns out that the SunPro C++ compiler does not properly
11587 # handle `-M -o', and we need to detect this. Also, some Intel
11588 # versions had trouble with output in subdirs
11589 am__obj=sub/conftest.${OBJEXT-o}
11590 am__minus_obj="-o $am__obj"
11591 case $depmode in
11592 gcc)
11593 # This depmode causes a compiler race in universal mode.
11594 test "$am__universal" = false || continue
11595 ;;
11596 nosideeffect)
11597 # after this tag, mechanisms are not by side-effect, so they'll
11598 # only be used when explicitly requested
11599 if test "x$enable_dependency_tracking" = xyes; then
11600 continue
11601 else
11602 break
11603 fi
11604 ;;
11605 msvisualcpp | msvcmsys)
11606 # This compiler won't grok `-c -o', but also, the minuso test has
11607 # not run yet. These depmodes are late enough in the game, and
11608 # so weak that their functioning should not be impacted.
11609 am__obj=conftest.${OBJEXT-o}
11610 am__minus_obj=
11611 ;;
11612 none) break ;;
11613 esac
11614 if depmode=$depmode \
11615 source=sub/conftest.c object=$am__obj \
11616 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11617 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11618 >/dev/null 2>conftest.err &&
11619 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11620 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11621 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11622 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11623 # icc doesn't choke on unknown options, it will just issue warnings
11624 # or remarks (even with -Werror). So we grep stderr for any message
11625 # that says an option was ignored or not supported.
11626 # When given -MP, icc 7.0 and 7.1 complain thusly:
11627 # icc: Command line warning: ignoring option '-M'; no argument required
11628 # The diagnosis changed in icc 8.0:
11629 # icc: Command line remark: option '-MP' not supported
11630 if (grep 'ignoring option' conftest.err ||
11631 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11632 am_cv_CCAS_dependencies_compiler_type=$depmode
11633 break
11634 fi
11635 fi
11636 done
11637
11638 cd ..
11639 rm -rf conftest.dir
11640else
11641 am_cv_CCAS_dependencies_compiler_type=none
11642fi
11643
11644fi
11645{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11646$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11647CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11648
11649 if
11650 test "x$enable_dependency_tracking" != xno \
11651 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11652 am__fastdepCCAS_TRUE=
11653 am__fastdepCCAS_FALSE='#'
11654else
11655 am__fastdepCCAS_TRUE='#'
11656 am__fastdepCCAS_FALSE=
11657fi
11658
11659
11660
11661
11662 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11663$as_echo_n "checking zfs author... " >&6; }
11664 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11665$as_echo "$ZFS_META_AUTHOR" >&6; }
11666
11667 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11668$as_echo_n "checking zfs license... " >&6; }
11669 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11670$as_echo "$ZFS_META_LICENSE" >&6; }
11671
11672
11673
58d956b0
PS
11674 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11675$as_echo_n "checking linux distribution... " >&6; }
11676 if test -f /etc/redhat-release ; then
11677 VENDOR=redhat ;
11678 elif test -f /etc/fedora-release ; then
11679 VENDOR=fedora ;
11680 elif test -f /etc/gentoo-release ; then
11681 VENDOR=gentoo ;
11682 elif test -f /etc/debian_version ; then
11683 VENDOR=debian ;
11684 elif test -f /etc/SuSE-release ; then
11685 VENDOR=sles ;
11686 elif test -f /etc/slackware-version ; then
11687 VENDOR=slackware ;
11688 elif test -f /etc/arch-release ; then
11689 VENDOR=arch ;
11690 elif test -f /etc/lsb-release ; then
11691 VENDOR=ubuntu ;
11692 elif test -f /etc/lunar.release ; then
11693 VENDOR=lunar ;
11694 else
11695 VENDOR= ;
11696 fi
11697 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11698$as_echo "$VENDOR" >&6; }
11699
11700
11701 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11702$as_echo_n "checking default package type... " >&6; }
11703 case "$VENDOR" in
11704 redhat) DEFAULT_PACKAGE=rpm ;;
11705 fedora) DEFAULT_PACKAGE=rpm ;;
11706 ubuntu) DEFAULT_PACKAGE=deb ;;
11707 debian) DEFAULT_PACKAGE=deb ;;
11708 sles) DEFAULT_PACKAGE=rpm ;;
11709 slackware) DEFAULT_PACKAGE=tgz ;;
11710 gentoo) DEFAULT_PACKAGE=tgz ;;
11711 lunar) DEFAULT_PACKAGE=tgz ;;
11712 arch) DEFAULT_PACKAGE=arch;;
11713 *) DEFAULT_PACKAGE=rpm ;;
11714 esac
11715
11716 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11717$as_echo "$DEFAULT_PACKAGE" >&6; }
11718
11719
11720 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11721$as_echo_n "checking default init directory... " >&6; }
11722 case "$VENDOR" in
11723 arch) DEFAULT_INIT_DIR=$sysconfdir/rc.d ;;
11724 *) DEFAULT_INIT_DIR=$sysconfdir/init.d ;;
11725 esac
11726
11727 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11728$as_echo "$DEFAULT_INIT_DIR" >&6; }
11729
11730
11731 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11732$as_echo_n "checking default init script type... " >&6; }
11733 case "$VENDOR" in
11734 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
11735 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
11736 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
11737 debian) DEFAULT_INIT_SCRIPT=lsb ;;
11738 sles) DEFAULT_INIT_SCRIPT=lsb ;;
11739 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
11740 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
11741 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
11742 arch) DEFAULT_INIT_SCRIPT=arch ;;
11743 *) DEFAULT_INIT_SCRIPT=lsb ;;
11744 esac
11745
11746 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11747$as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11748
11749
11750
e70e591c
BB
11751 RPM=rpm
11752 RPMBUILD=rpmbuild
11753
11754 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11755$as_echo_n "checking whether $RPM is available... " >&6; }
11756 if tmp=$($RPM --version 2>/dev/null); then
11757
11758 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11759 HAVE_RPM=yes
11760 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11761$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11762
11763else
11764
11765 HAVE_RPM=no
11766 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11767$as_echo "$HAVE_RPM" >&6; }
11768
11769fi
11770
11771
11772 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11773$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11774 if tmp=$($RPMBUILD --version 2>/dev/null); then
11775
11776 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11777 HAVE_RPMBUILD=yes
11778 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11779$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11780
11781else
11782
11783 HAVE_RPMBUILD=no
11784 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11785$as_echo "$HAVE_RPMBUILD" >&6; }
11786
11787fi
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799 DPKG=dpkg
11800 DPKGBUILD=dpkg-buildpackage
11801
11802 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11803$as_echo_n "checking whether $DPKG is available... " >&6; }
11804 if tmp=$($DPKG --version 2>/dev/null); then
11805
11806 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11807 HAVE_DPKG=yes
11808 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11809$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11810
11811else
11812
11813 HAVE_DPKG=no
11814 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11815$as_echo "$HAVE_DPKG" >&6; }
11816
11817fi
11818
11819
11820 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11821$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11822 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11823
11824 DPKGBUILD_VERSION=$(echo $tmp | \
11825 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11826 HAVE_DPKGBUILD=yes
11827 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11828$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11829
11830else
11831
11832 HAVE_DPKGBUILD=no
11833 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11834$as_echo "$HAVE_DPKGBUILD" >&6; }
11835
11836fi
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848 ALIEN=alien
11849
11850 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11851$as_echo_n "checking whether $ALIEN is available... " >&6; }
11852 if tmp=$($ALIEN --version 2>/dev/null); then
11853
11854 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11855 HAVE_ALIEN=yes
11856 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11857$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11858
11859else
11860
11861 HAVE_ALIEN=no
11862 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11863$as_echo "$HAVE_ALIEN" >&6; }
11864
11865fi
11866
11867
11868
11869
11870
11871
11872
58d956b0
PS
11873 if test "$VENDOR" = "arch"; then
11874
6ba3b446
PS
11875 PACMAN=pacman
11876 MAKEPKG=makepkg
11877
11878 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11879$as_echo_n "checking whether $PACMAN is available... " >&6; }
11880 tmp=$($PACMAN --version 2>/dev/null)
11881 if test -n "$tmp"; then
11882
11883 PACMAN_VERSION=$(echo $tmp |
11884 $AWK '/Pacman/ { print $3 }' |
11885 $SED 's/^v//')
11886 HAVE_PACMAN=yes
11887 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11888$as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11889
11890else
11891
11892 HAVE_PACMAN=no
11893 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11894$as_echo "$HAVE_PACMAN" >&6; }
11895
11896fi
11897
11898
11899 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11900$as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11901 tmp=$($MAKEPKG --version 2>/dev/null)
11902 if test -n "$tmp"; then
11903
11904 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11905 HAVE_MAKEPKG=yes
11906 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11907$as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11908
11909else
11910
11911 HAVE_MAKEPKG=no
11912 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11913$as_echo "$HAVE_MAKEPKG" >&6; }
11914
11915fi
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
58d956b0 11926fi
01c0e61d 11927
e70e591c
BB
11928
11929
e70e591c
BB
11930 TARGET_ASM_DIR=asm-generic
11931
11932
e70e591c
BB
11933 ZFS_CONFIG=all
11934
11935# Check whether --with-config was given.
11936if test "${with_config+set}" = set; then
11937 withval=$with_config; ZFS_CONFIG="$withval"
11938fi
11939
11940
11941 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11942$as_echo_n "checking zfs config... " >&6; }
11943 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11944$as_echo "$ZFS_CONFIG" >&6; };
11945
11946
2e08aedb
BB
11947
11948
11949 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11950$as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11951
11952 saved_flags="$CFLAGS"
11953 CFLAGS="$CFLAGS -Wunused-but-set-variable"
11954
11955 if test "$cross_compiling" = yes; then
11956 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11958{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11959See \`config.log' for more details." >&5
11960$as_echo "$as_me: error: cannot run test program while cross compiling
11961See \`config.log' for more details." >&2;}
11962 { (exit 1); exit 1; }; }; }
11963else
11964 cat >conftest.$ac_ext <<_ACEOF
11965/* confdefs.h. */
11966_ACEOF
11967cat confdefs.h >>conftest.$ac_ext
11968cat >>conftest.$ac_ext <<_ACEOF
11969/* end confdefs.h. */
11970
11971int
11972main ()
11973{
11974
11975 ;
11976 return 0;
11977}
11978_ACEOF
11979rm -f conftest$ac_exeext
11980if { (ac_try="$ac_link"
11981case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11984esac
11985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11986$as_echo "$ac_try_echo") >&5
11987 (eval "$ac_link") 2>&5
11988 ac_status=$?
11989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11991 { (case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11994esac
11995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11996$as_echo "$ac_try_echo") >&5
11997 (eval "$ac_try") 2>&5
11998 ac_status=$?
11999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001
12002 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12003 { $as_echo "$as_me:$LINENO: result: yes" >&5
12004$as_echo "yes" >&6; }
12005
12006else
12007 $as_echo "$as_me: program exited with status $ac_status" >&5
12008$as_echo "$as_me: failed program was:" >&5
12009sed 's/^/| /' conftest.$ac_ext >&5
12010
12011( exit $ac_status )
12012
12013 NO_UNUSED_BUT_SET_VARIABLE=
12014 { $as_echo "$as_me:$LINENO: result: no" >&5
12015$as_echo "no" >&6; }
12016
12017fi
12018rm -rf conftest.dSYM
12019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12020fi
12021
12022
12023
12024 CFLAGS="$saved_flags"
12025
12026
12027
12028
e70e591c
BB
12029 case "$ZFS_CONFIG" in
12030 kernel)
12031
12032
12033# Check whether --with-linux was given.
12034if test "${with_linux+set}" = set; then
12035 withval=$with_linux; kernelsrc="$withval"
12036fi
12037
12038
12039
12040# Check whether --with-linux-obj was given.
12041if test "${with_linux_obj+set}" = set; then
12042 withval=$with_linux_obj; kernelbuild="$withval"
12043fi
12044
12045
12046 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
12047$as_echo_n "checking kernel source directory... " >&6; }
12048 if test -z "$kernelsrc"; then
8366cd6a 12049
1b94c25c 12050 if test -e "/lib/modules/$(uname -r)/source"; then
8366cd6a 12051
1b94c25c
BB
12052 headersdir="/lib/modules/$(uname -r)/source"
12053 sourcelink=$(readlink -f "$headersdir")
8366cd6a
PS
12054
12055elif test -e "/lib/modules/$(uname -r)/build"; then
12056
1b94c25c 12057 headersdir="/lib/modules/$(uname -r)/build"
e70e591c 12058 sourcelink=$(readlink -f "$headersdir")
8366cd6a
PS
12059
12060else
12061
e70e591c 12062 sourcelink=$(ls -1d /usr/src/kernels/* \
8366cd6a 12063 /usr/src/linux-* \
e70e591c 12064 2>/dev/null | grep -v obj | tail -1)
8366cd6a
PS
12065
12066fi
12067
e70e591c
BB
12068
12069 if test -n "$sourcelink" && test -e ${sourcelink}; then
8366cd6a 12070
e70e591c 12071 kernelsrc=`readlink -f ${sourcelink}`
8366cd6a
PS
12072
12073else
12074
e70e591c
BB
12075 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12076$as_echo "Not found" >&6; }
12077 { { $as_echo "$as_me:$LINENO: error:
12078 *** Please make sure the kernel devel package for your distribution
12079 *** is installed then try again. If that fails you can specify the
12080 *** location of the kernel source with the '--with-linux=PATH' option." >&5
12081$as_echo "$as_me: error:
12082 *** Please make sure the kernel devel package for your distribution
12083 *** is installed then try again. If that fails you can specify the
12084 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
12085 { (exit 1); exit 1; }; }
8366cd6a
PS
12086
12087fi
12088
12089
12090else
12091
e70e591c 12092 if test "$kernelsrc" = "NONE"; then
8366cd6a 12093
e70e591c 12094 kernsrcver=NONE
8366cd6a
PS
12095
12096fi
12097
12098
12099fi
12100
e70e591c
BB
12101
12102 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12103$as_echo "$kernelsrc" >&6; }
12104 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12105$as_echo_n "checking kernel build directory... " >&6; }
12106 if test -z "$kernelbuild"; then
8366cd6a 12107
1b94c25c 12108 if test -e "/lib/modules/$(uname -r)/build"; then
8366cd6a 12109
1b94c25c 12110 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
8366cd6a
PS
12111
12112elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12113
e70e591c 12114 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
8366cd6a
PS
12115
12116elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
12117
e70e591c 12118 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
8366cd6a
PS
12119
12120elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
12121
e70e591c 12122 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
8366cd6a
PS
12123
12124else
12125
e70e591c 12126 kernelbuild=${kernelsrc}
8366cd6a
PS
12127
12128fi
12129
12130
12131fi
12132
e70e591c
BB
12133 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12134$as_echo "$kernelbuild" >&6; }
12135
12136 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12137$as_echo_n "checking kernel source version... " >&6; }
12138 utsrelease1=$kernelbuild/include/linux/version.h
12139 utsrelease2=$kernelbuild/include/linux/utsrelease.h
12140 utsrelease3=$kernelbuild/include/generated/utsrelease.h
12141 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
8366cd6a 12142
e70e591c 12143 utsrelease=linux/version.h
8366cd6a
PS
12144
12145elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
12146
e70e591c 12147 utsrelease=linux/utsrelease.h
8366cd6a
PS
12148
12149elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
12150
e70e591c 12151 utsrelease=generated/utsrelease.h
8366cd6a
PS
12152
12153fi
12154
e70e591c
BB
12155
12156 if test "$utsrelease"; then
8366cd6a 12157
e70e591c
BB
12158 kernsrcver=`(echo "#include <$utsrelease>";
12159 echo "kernsrcver=UTS_RELEASE") |
12160 cpp -I $kernelbuild/include |
12161 grep "^kernsrcver=" | cut -d \" -f 2`
12162
12163 if test -z "$kernsrcver"; then
8366cd6a 12164
e70e591c
BB
12165 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12166$as_echo "Not found" >&6; }
12167 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12168$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12169 { (exit 1); exit 1; }; }
8366cd6a
PS
12170
12171fi
12172
12173
12174else
12175
e70e591c
BB
12176 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12177$as_echo "Not found" >&6; }
12178 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12179$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12180 { (exit 1); exit 1; }; }
8366cd6a
PS
12181
12182fi
12183
e70e591c
BB
12184
12185 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12186$as_echo "$kernsrcver" >&6; }
12187
12188 LINUX=${kernelsrc}
12189 LINUX_OBJ=${kernelbuild}
12190 LINUX_VERSION=${kernsrcver}
12191
12192
12193
12194
12195
12196
12197 modpost=$LINUX/scripts/Makefile.modpost
12198 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12199$as_echo_n "checking kernel file name for module symbols... " >&6; }
12200 if test -f "$modpost"; then
8366cd6a 12201
e70e591c 12202 if grep -q Modules.symvers $modpost; then
8366cd6a 12203
e70e591c 12204 LINUX_SYMBOLS=Modules.symvers
8366cd6a
PS
12205
12206else
12207
e70e591c 12208 LINUX_SYMBOLS=Module.symvers
a60b1c0a 12209
8366cd6a
PS
12210fi
12211
12212
12213 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12214
a60b1c0a
BB
12215 { { $as_echo "$as_me:$LINENO: error:
12216 *** Please make sure the kernel devel package for your distribution
12217 *** is installed. If your building with a custom kernel make sure the
12218 *** kernel is configured, built, and the '--with-linux=PATH' configure
12219 *** option refers to the location of the kernel source." >&5
12220$as_echo "$as_me: error:
12221 *** Please make sure the kernel devel package for your distribution
12222 *** is installed. If your building with a custom kernel make sure the
12223 *** kernel is configured, built, and the '--with-linux=PATH' configure
12224 *** option refers to the location of the kernel source." >&2;}
12225 { (exit 1); exit 1; }; }
8366cd6a
PS
12226
12227fi
12228
12229
12230else
12231
e70e591c 12232 LINUX_SYMBOLS=NONE
8366cd6a
PS
12233
12234fi
12235
e70e591c
BB
12236 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12237$as_echo "$LINUX_SYMBOLS" >&6; }
12238
12239
12240
12241
12242
12243# Check whether --with-spl was given.
12244if test "${with_spl+set}" = set; then
12245 withval=$with_spl; splsrc="$withval"
12246fi
12247
12248
12249
12250# Check whether --with-spl-obj was given.
12251if test "${with_spl_obj+set}" = set; then
12252 withval=$with_spl_obj; splbuild="$withval"
12253fi
12254
12255
12256
12257 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12258$as_echo_n "checking spl source directory... " >&6; }
12259 if test -z "$splsrc"; then
8366cd6a 12260
e70e591c
BB
12261 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12262 2>/dev/null | tail -1`
12263
12264 if test -z "$sourcelink" || test ! -e $sourcelink; then
8366cd6a 12265
e70e591c 12266 sourcelink=../spl
8366cd6a
PS
12267
12268fi
12269
e70e591c
BB
12270
12271 if test -e $sourcelink; then
8366cd6a 12272
e70e591c 12273 splsrc=`readlink -f ${sourcelink}`
8366cd6a
PS
12274
12275else
12276
e70e591c
BB
12277 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12278$as_echo "Not found" >&6; }
12279 { { $as_echo "$as_me:$LINENO: error:
12280 *** Please make sure the spl devel package for your distribution
12281 *** is installed then try again. If that fails you can specify the
12282 *** location of the spl source with the '--with-spl=PATH' option." >&5
12283$as_echo "$as_me: error:
12284 *** Please make sure the spl devel package for your distribution
12285 *** is installed then try again. If that fails you can specify the
12286 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12287 { (exit 1); exit 1; }; }
8366cd6a
PS
12288
12289fi
12290
12291
12292else
12293
e70e591c 12294 if test "$splsrc" = "NONE"; then
8366cd6a 12295
e70e591c
BB
12296 splbuild=NONE
12297 splsrcver=NONE
8366cd6a
PS
12298
12299fi
12300
12301
12302fi
12303
e70e591c
BB
12304
12305 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12306$as_echo "$splsrc" >&6; }
12307 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12308$as_echo_n "checking spl build directory... " >&6; }
12309 if test -z "$splbuild"; then
8366cd6a 12310
6283f55e 12311 splbuild=${splsrc}
8366cd6a
PS
12312
12313fi
12314
e70e591c
BB
12315 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12316$as_echo "$splbuild" >&6; }
12317
12318 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12319$as_echo_n "checking spl source version... " >&6; }
5e612145
BB
12320 if test -r $splbuild/spl_config.h &&
12321 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
e70e591c 12322
8366cd6a 12323
e70e591c 12324 splsrcver=`(echo "#include <spl_config.h>";
b40a77ae 12325 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
5e612145 12326 cpp -I $splbuild |
b40a77ae 12327 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
8366cd6a
PS
12328
12329fi
12330
e70e591c
BB
12331
12332 if test -z "$splsrcver"; then
8366cd6a 12333
e70e591c
BB
12334 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12335$as_echo "Not found" >&6; }
12336 { { $as_echo "$as_me:$LINENO: error:
2984e0bb
PS
12337 *** Cannot determine the version of the spl source.
12338 *** Please prepare the spl source before running this script" >&5
e70e591c 12339$as_echo "$as_me: error:
2984e0bb
PS
12340 *** Cannot determine the version of the spl source.
12341 *** Please prepare the spl source before running this script" >&2;}
e70e591c 12342 { (exit 1); exit 1; }; }
8366cd6a
PS
12343
12344fi
12345
e70e591c
BB
12346
12347 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12348$as_echo "$splsrcver" >&6; }
12349
12350 SPL=${splsrc}
12351 SPL_OBJ=${splbuild}
12352 SPL_VERSION=${splsrcver}
12353
12354
12355
12356
12357
12358
12359 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12360$as_echo_n "checking spl file name for module symbols... " >&6; }
12361 if test -r $SPL_OBJ/Module.symvers; then
8366cd6a 12362
e70e591c 12363 SPL_SYMBOLS=Module.symvers
8366cd6a
PS
12364
12365elif test -r $SPL_OBJ/Modules.symvers; then
12366
e70e591c 12367 SPL_SYMBOLS=Modules.symvers
8366cd6a
PS
12368
12369elif test -r $SPL_OBJ/module/Module.symvers; then
12370
6283f55e 12371 SPL_SYMBOLS=Module.symvers
8366cd6a
PS
12372
12373elif test -r $SPL_OBJ/module/Modules.symvers; then
12374
6283f55e 12375 SPL_SYMBOLS=Modules.symvers
8366cd6a
PS
12376
12377else
12378
e70e591c 12379 SPL_SYMBOLS=$LINUX_SYMBOLS
8366cd6a
PS
12380
12381fi
12382
e70e591c
BB
12383
12384 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12385$as_echo "$SPL_SYMBOLS" >&6; }
12386
12387
12388
12389
12390
15805c77
BB
12391 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12392$as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12393
12394
12395cat confdefs.h - <<_ACEOF >conftest.c
12396/* confdefs.h. */
12397_ACEOF
12398cat confdefs.h >>conftest.$ac_ext
12399cat >>conftest.$ac_ext <<_ACEOF
12400/* end confdefs.h. */
12401
12402
0da78696 12403 #include <linux/module.h>
15805c77
BB
12404
12405int
12406main (void)
12407{
12408
12409 #ifndef CONFIG_PREEMPT
12410 #error CONFIG_PREEMPT not #defined
12411 #endif
12412
12413 ;
12414 return 0;
12415}
12416
12417_ACEOF
12418
12419
12420 rm -Rf build && mkdir -p build
12421 echo "obj-m := conftest.o" >build/Makefile
12422 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'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12425 ac_status=$?
12426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12433
12434 { $as_echo "$as_me:$LINENO: result: yes" >&5
12435$as_echo "yes" >&6; }
12436 { { $as_echo "$as_me:$LINENO: error:
2984e0bb
PS
12437 *** Kernel built with CONFIG_PREEMPT which is not supported.
12438 *** You must rebuild your kernel without this option." >&5
15805c77 12439$as_echo "$as_me: error:
2984e0bb
PS
12440 *** Kernel built with CONFIG_PREEMPT which is not supported.
12441 *** You must rebuild your kernel without this option." >&2;}
15805c77
BB
12442 { (exit 1); exit 1; }; }
12443
12444else
12445 $as_echo "$as_me: failed program was:" >&5
12446sed 's/^/| /' conftest.$ac_ext >&5
12447
12448 { $as_echo "$as_me:$LINENO: result: no" >&5
12449$as_echo "no" >&6; }
12450
12451
12452
12453
12454fi
12455
12456 rm -Rf build
12457
12458
12459
12460
e70e591c 12461 if test "$ZFS_META_LICENSE" = CDDL; then
8366cd6a 12462
e70e591c
BB
12463 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12464$as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12465
12466
12467cat confdefs.h - <<_ACEOF >conftest.c
12468/* confdefs.h. */
12469_ACEOF
12470cat confdefs.h >>conftest.$ac_ext
12471cat >>conftest.$ac_ext <<_ACEOF
12472/* end confdefs.h. */
12473
12474
0da78696 12475 #include <linux/module.h>
e70e591c
BB
12476
12477int
12478main (void)
12479{
12480
12481 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12482 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12483 #endif
12484
12485 ;
12486 return 0;
12487}
12488
12489_ACEOF
12490
12491
12492 rm -Rf build && mkdir -p build
12493 echo "obj-m := conftest.o" >build/Makefile
12494 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'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12497 ac_status=$?
12498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12505
12506 { $as_echo "$as_me:$LINENO: result: yes" >&5
12507$as_echo "yes" >&6; }
12508 { { $as_echo "$as_me:$LINENO: error:
2984e0bb
PS
12509 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12510 *** incompatible with the CDDL license. You must rebuild
12511 *** your kernel without this option." >&5
e70e591c 12512$as_echo "$as_me: error:
2984e0bb
PS
12513 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12514 *** incompatible with the CDDL license. You must rebuild
12515 *** your kernel without this option." >&2;}
e70e591c
BB
12516 { (exit 1); exit 1; }; }
12517
12518else
12519 $as_echo "$as_me: failed program was:" >&5
12520sed 's/^/| /' conftest.$ac_ext >&5
12521
12522 { $as_echo "$as_me:$LINENO: result: no" >&5
12523$as_echo "no" >&6; }
12524
12525
12526
12527
12528fi
12529
12530 rm -Rf build
12531
12532
12533
8366cd6a
PS
12534
12535fi
12536
e70e591c
BB
12537
12538 if test "$ZFS_META_LICENSE" = GPL; then
12539
8366cd6a 12540
e70e591c
BB
12541cat >>confdefs.h <<\_ACEOF
12542#define HAVE_GPL_ONLY_SYMBOLS 1
12543_ACEOF
12544
8366cd6a
PS
12545
12546fi
12547
e70e591c
BB
12548
12549
12550 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12551$as_echo_n "checking block device operation prototypes... " >&6; }
b9c59ec8
PS
12552 tmp_flags="$EXTRA_KCFLAGS"
12553 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
12554
12555
12556cat confdefs.h - <<_ACEOF >conftest.c
12557/* confdefs.h. */
12558_ACEOF
12559cat confdefs.h >>conftest.$ac_ext
12560cat >>conftest.$ac_ext <<_ACEOF
12561/* end confdefs.h. */
12562
12563
12564 #include <linux/blkdev.h>
12565
12566int
12567main (void)
12568{
12569
12570 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12571 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12572 int (*blk_ioctl) (struct block_device *, fmode_t,
12573 unsigned, unsigned long) = NULL;
12574 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12575 unsigned, unsigned long) = NULL;
12576 struct block_device_operations blk_ops = {
12577 .open = blk_open,
12578 .release = blk_release,
12579 .ioctl = blk_ioctl,
12580 .compat_ioctl = blk_compat_ioctl,
12581 };
12582
12583 blk_ops.open(NULL, 0);
12584 blk_ops.release(NULL, 0);
12585 blk_ops.ioctl(NULL, 0, 0, 0);
12586 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12587
12588 ;
12589 return 0;
12590}
12591
12592_ACEOF
12593
12594
12595 rm -Rf build && mkdir -p build
12596 echo "obj-m := conftest.o" >build/Makefile
12597 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'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12600 ac_status=$?
12601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12605 ac_status=$?
12606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; }; then
12608
12609 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12610$as_echo "struct block_device" >&6; }
12611
12612cat >>confdefs.h <<\_ACEOF
12613#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12614_ACEOF
12615
12616
12617else
12618 $as_echo "$as_me: failed program was:" >&5
12619sed 's/^/| /' conftest.$ac_ext >&5
12620
12621 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12622$as_echo "struct inode" >&6; }
12623
12624
12625
12626fi
12627
12628 rm -Rf build
12629
12630
b9c59ec8 12631 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
12632
12633 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12634$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12635
12636
12637cat confdefs.h - <<_ACEOF >conftest.c
12638/* confdefs.h. */
12639_ACEOF
12640cat confdefs.h >>conftest.$ac_ext
12641cat >>conftest.$ac_ext <<_ACEOF
12642/* end confdefs.h. */
12643
12644
12645 #include <linux/types.h>
12646
12647int
12648main (void)
12649{
12650
79713039 12651 fmode_t *ptr __attribute__ ((unused));
e70e591c
BB
12652
12653 ;
12654 return 0;
12655}
12656
12657_ACEOF
12658
12659
12660 rm -Rf build && mkdir -p build
12661 echo "obj-m := conftest.o" >build/Makefile
12662 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'
12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12665 ac_status=$?
12666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12670 ac_status=$?
12671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12673
12674 { $as_echo "$as_me:$LINENO: result: yes" >&5
12675$as_echo "yes" >&6; }
12676
12677cat >>confdefs.h <<\_ACEOF
12678#define HAVE_FMODE_T 1
12679_ACEOF
12680
12681
12682else
12683 $as_echo "$as_me: failed program was:" >&5
12684sed 's/^/| /' conftest.$ac_ext >&5
12685
12686 { $as_echo "$as_me:$LINENO: result: no" >&5
12687$as_echo "no" >&6; }
12688
12689
12690
12691fi
12692
12693 rm -Rf build
12694
12695
12696
12697
12698 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12699$as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12700
12701
12702cat confdefs.h - <<_ACEOF >conftest.c
12703/* confdefs.h. */
12704_ACEOF
12705cat confdefs.h >>conftest.$ac_ext
12706cat >>conftest.$ac_ext <<_ACEOF
12707/* end confdefs.h. */
12708
12709
12710 #include <linux/kobject.h>
12711
12712int
12713main (void)
12714{
12715
79713039 12716 int val __attribute__ ((unused));
e70e591c
BB
12717 val = KOBJ_NAME_LEN;
12718
12719 ;
12720 return 0;
12721}
12722
12723_ACEOF
12724
12725
12726 rm -Rf build && mkdir -p build
12727 echo "obj-m := conftest.o" >build/Makefile
12728 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'
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12731 ac_status=$?
12732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735 (eval $ac_try) 2>&5
12736 ac_status=$?
12737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; }; then
12739
12740 { $as_echo "$as_me:$LINENO: result: yes" >&5
12741$as_echo "yes" >&6; }
12742
12743cat >>confdefs.h <<\_ACEOF
12744#define HAVE_KOBJ_NAME_LEN 1
12745_ACEOF
12746
12747
12748else
12749 $as_echo "$as_me: failed program was:" >&5
12750sed 's/^/| /' conftest.$ac_ext >&5
12751
12752 { $as_echo "$as_me:$LINENO: result: no" >&5
12753$as_echo "no" >&6; }
12754
12755
12756
12757fi
12758
12759 rm -Rf build
12760
12761
12762
12763
45066d1f
BB
12764 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12765$as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12766 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12767 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12768 rc=$?
12769 if test $rc -ne 0; then
8366cd6a 12770
45066d1f
BB
12771 export=0
12772 for file in fs/block_dev.c; do
12773 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
12774 rc=$?
8366cd6a
PS
12775 if test $rc -eq 0; then
12776
12777 export=1
12778 break;
12779
12780fi
12781
45066d1f
BB
12782 done
12783 if test $export -eq 0; then
8366cd6a 12784
45066d1f
BB
12785 { $as_echo "$as_me:$LINENO: result: no" >&5
12786$as_echo "no" >&6; }
12787
8366cd6a
PS
12788
12789else
12790
45066d1f
BB
12791 { $as_echo "$as_me:$LINENO: result: yes" >&5
12792$as_echo "yes" >&6; }
12793
12794cat >>confdefs.h <<\_ACEOF
12795#define HAVE_BLKDEV_GET_BY_PATH 1
12796_ACEOF
12797
8366cd6a
PS
12798
12799fi
12800
12801
12802else
12803
45066d1f
BB
12804 { $as_echo "$as_me:$LINENO: result: yes" >&5
12805$as_echo "yes" >&6; }
12806
12807cat >>confdefs.h <<\_ACEOF
12808#define HAVE_BLKDEV_GET_BY_PATH 1
12809_ACEOF
12810
8366cd6a
PS
12811
12812fi
12813
45066d1f
BB
12814
12815
12816
e70e591c
BB
12817 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12818$as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12819 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12820 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12821 rc=$?
12822 if test $rc -ne 0; then
8366cd6a 12823
e70e591c
BB
12824 export=0
12825 for file in fs/block_dev.c; do
12826 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12827 rc=$?
8366cd6a
PS
12828 if test $rc -eq 0; then
12829
12830 export=1
12831 break;
12832
12833fi
12834
e70e591c
BB
12835 done
12836 if test $export -eq 0; then
8366cd6a 12837
e70e591c
BB
12838 { $as_echo "$as_me:$LINENO: result: no" >&5
12839$as_echo "no" >&6; }
12840
8366cd6a
PS
12841
12842else
12843
e70e591c
BB
12844 { $as_echo "$as_me:$LINENO: result: yes" >&5
12845$as_echo "yes" >&6; }
12846
12847cat >>confdefs.h <<\_ACEOF
12848#define HAVE_OPEN_BDEV_EXCLUSIVE 1
12849_ACEOF
12850
8366cd6a
PS
12851
12852fi
12853
12854
12855else
12856
e70e591c
BB
12857 { $as_echo "$as_me:$LINENO: result: yes" >&5
12858$as_echo "yes" >&6; }
12859
12860cat >>confdefs.h <<\_ACEOF
12861#define HAVE_OPEN_BDEV_EXCLUSIVE 1
12862_ACEOF
12863
8366cd6a
PS
12864
12865fi
12866
e70e591c
BB
12867
12868
12869
12870 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12871$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12872
12873
12874cat confdefs.h - <<_ACEOF >conftest.c
12875/* confdefs.h. */
12876_ACEOF
12877cat confdefs.h >>conftest.$ac_ext
12878cat >>conftest.$ac_ext <<_ACEOF
12879/* end confdefs.h. */
12880
12881
12882 #include <linux/buffer_head.h>
12883
12884int
12885main (void)
12886{
12887
79713039 12888 struct block_device *bdev = NULL;
e70e591c
BB
12889 invalidate_bdev(bdev);
12890
12891 ;
12892 return 0;
12893}
12894
12895_ACEOF
12896
12897
12898 rm -Rf build && mkdir -p build
12899 echo "obj-m := conftest.o" >build/Makefile
12900 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'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911
12912 { $as_echo "$as_me:$LINENO: result: yes" >&5
12913$as_echo "yes" >&6; }
12914
12915cat >>confdefs.h <<\_ACEOF
12916#define HAVE_1ARG_INVALIDATE_BDEV 1
12917_ACEOF
12918
12919
12920else
12921 $as_echo "$as_me: failed program was:" >&5
12922sed 's/^/| /' conftest.$ac_ext >&5
12923
12924 { $as_echo "$as_me:$LINENO: result: no" >&5
12925$as_echo "no" >&6; }
12926
12927
12928
12929fi
12930
12931 rm -Rf build
12932
12933
12934
12935
12936 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12937$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
b9c59ec8
PS
12938 tmp_flags="$EXTRA_KCFLAGS"
12939 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
12940
12941
12942cat confdefs.h - <<_ACEOF >conftest.c
12943/* confdefs.h. */
12944_ACEOF
12945cat confdefs.h >>conftest.$ac_ext
12946cat >>conftest.$ac_ext <<_ACEOF
12947/* end confdefs.h. */
12948
12949
12950 #include <linux/blkdev.h>
12951
12952int
12953main (void)
12954{
12955
12956 struct block_device *bdev = NULL;
12957 bdev_logical_block_size(bdev);
12958
12959 ;
12960 return 0;
12961}
12962
12963_ACEOF
12964
12965
12966 rm -Rf build && mkdir -p build
12967 echo "obj-m := conftest.o" >build/Makefile
12968 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'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12971 ac_status=$?
12972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
12979
12980 { $as_echo "$as_me:$LINENO: result: yes" >&5
12981$as_echo "yes" >&6; }
12982
12983cat >>confdefs.h <<\_ACEOF
12984#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12985_ACEOF
12986
12987
12988else
12989 $as_echo "$as_me: failed program was:" >&5
12990sed 's/^/| /' conftest.$ac_ext >&5
12991
12992 { $as_echo "$as_me:$LINENO: result: no" >&5
12993$as_echo "no" >&6; }
12994
12995
12996
12997fi
12998
12999 rm -Rf build
13000
13001
b9c59ec8 13002 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
13003
13004
13005 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
13006$as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
13007 EXTRA_KCFLAGS="-Werror"
13008
13009
13010cat confdefs.h - <<_ACEOF >conftest.c
13011/* confdefs.h. */
13012_ACEOF
13013cat confdefs.h >>conftest.$ac_ext
13014cat >>conftest.$ac_ext <<_ACEOF
13015/* end confdefs.h. */
13016
13017
13018 #include <linux/bio.h>
13019
13020int
13021main (void)
13022{
13023
13024 struct bio bio;
13025 (void)bio_empty_barrier(&bio);
13026
13027 ;
13028 return 0;
13029}
13030
13031_ACEOF
13032
13033
13034 rm -Rf build && mkdir -p build
13035 echo "obj-m := conftest.o" >build/Makefile
13036 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'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13044 ac_status=$?
13045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13047
13048 { $as_echo "$as_me:$LINENO: result: yes" >&5
13049$as_echo "yes" >&6; }
13050
13051cat >>confdefs.h <<\_ACEOF
13052#define HAVE_BIO_EMPTY_BARRIER 1
13053_ACEOF
13054
13055
13056else
13057 $as_echo "$as_me: failed program was:" >&5
13058sed 's/^/| /' conftest.$ac_ext >&5
13059
13060 { $as_echo "$as_me:$LINENO: result: no" >&5
13061$as_echo "no" >&6; }
13062
13063
13064
13065fi
13066
13067 rm -Rf build
13068
13069
13070
13071
f4af6bb7
BB
13072 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
13073$as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13074
13075
13076cat confdefs.h - <<_ACEOF >conftest.c
13077/* confdefs.h. */
13078_ACEOF
13079cat confdefs.h >>conftest.$ac_ext
13080cat >>conftest.$ac_ext <<_ACEOF
13081/* end confdefs.h. */
13082
13083
13084 #include <linux/bio.h>
13085
13086int
13087main (void)
13088{
13089
79713039 13090 int flags __attribute__ ((unused));
f4af6bb7
BB
13091 flags = (1 << BIO_RW_FAILFAST);
13092
13093 ;
13094 return 0;
13095}
13096
13097_ACEOF
13098
13099
13100 rm -Rf build && mkdir -p build
13101 echo "obj-m := conftest.o" >build/Makefile
13102 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'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13105 ac_status=$?
13106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
13113
13114 { $as_echo "$as_me:$LINENO: result: yes" >&5
13115$as_echo "yes" >&6; }
13116
13117cat >>confdefs.h <<\_ACEOF
13118#define HAVE_BIO_RW_FAILFAST 1
13119_ACEOF
13120
13121
13122else
13123 $as_echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
13125
13126 { $as_echo "$as_me:$LINENO: result: no" >&5
13127$as_echo "no" >&6; }
13128
13129
13130
13131fi
13132
13133 rm -Rf build
13134
13135
13136
13137
2959d94a
BB
13138 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
13139$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13140
13141
13142cat confdefs.h - <<_ACEOF >conftest.c
13143/* confdefs.h. */
13144_ACEOF
13145cat confdefs.h >>conftest.$ac_ext
13146cat >>conftest.$ac_ext <<_ACEOF
13147/* end confdefs.h. */
13148
13149
13150 #include <linux/bio.h>
13151
13152int
13153main (void)
13154{
13155
79713039 13156 int flags __attribute__ ((unused));
2959d94a
BB
13157 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13158 (1 << BIO_RW_FAILFAST_TRANSPORT) |
13159 (1 << BIO_RW_FAILFAST_DRIVER));
13160
13161 ;
13162 return 0;
13163}
13164
13165_ACEOF
13166
13167
13168 rm -Rf build && mkdir -p build
13169 echo "obj-m := conftest.o" >build/Makefile
13170 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'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13173 ac_status=$?
13174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13178 ac_status=$?
13179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; }; then
13181
13182 { $as_echo "$as_me:$LINENO: result: yes" >&5
13183$as_echo "yes" >&6; }
13184
13185cat >>confdefs.h <<\_ACEOF
f4af6bb7
BB
13186#define HAVE_BIO_RW_FAILFAST_DTD 1
13187_ACEOF
13188
13189
13190else
13191 $as_echo "$as_me: failed program was:" >&5
13192sed 's/^/| /' conftest.$ac_ext >&5
13193
13194 { $as_echo "$as_me:$LINENO: result: no" >&5
13195$as_echo "no" >&6; }
13196
13197
13198
13199fi
13200
13201 rm -Rf build
13202
13203
13204
13205
13206 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13207$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13208
13209
13210cat confdefs.h - <<_ACEOF >conftest.c
13211/* confdefs.h. */
13212_ACEOF
13213cat confdefs.h >>conftest.$ac_ext
13214cat >>conftest.$ac_ext <<_ACEOF
13215/* end confdefs.h. */
13216
13217
13218 #include <linux/bio.h>
13219
13220int
13221main (void)
13222{
13223
79713039 13224 int flags __attribute__ ((unused));
f4af6bb7
BB
13225 flags = REQ_FAILFAST_MASK;
13226
13227 ;
13228 return 0;
13229}
13230
13231_ACEOF
13232
13233
13234 rm -Rf build && mkdir -p build
13235 echo "obj-m := conftest.o" >build/Makefile
13236 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'
13237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238 (eval $ac_try) 2>&5
13239 ac_status=$?
13240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13244 ac_status=$?
13245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; }; then
13247
13248 { $as_echo "$as_me:$LINENO: result: yes" >&5
13249$as_echo "yes" >&6; }
13250
13251cat >>confdefs.h <<\_ACEOF
13252#define HAVE_BIO_REQ_FAILFAST_MASK 1
2959d94a
BB
13253_ACEOF
13254
13255
13256else
13257 $as_echo "$as_me: failed program was:" >&5
13258sed 's/^/| /' conftest.$ac_ext >&5
13259
13260 { $as_echo "$as_me:$LINENO: result: no" >&5
13261$as_echo "no" >&6; }
13262
13263
13264
13265fi
13266
13267 rm -Rf build
13268
13269
13270
13271
e70e591c
BB
13272 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13273$as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13274 tmp_flags="$EXTRA_KCFLAGS"
13275 EXTRA_KCFLAGS="-Werror"
13276
13277
13278cat confdefs.h - <<_ACEOF >conftest.c
13279/* confdefs.h. */
13280_ACEOF
13281cat confdefs.h >>conftest.$ac_ext
13282cat >>conftest.$ac_ext <<_ACEOF
13283/* end confdefs.h. */
13284
13285
13286 #include <linux/bio.h>
13287
13288int
13289main (void)
13290{
13291
13292 void (*wanted_end_io)(struct bio *, int) = NULL;
79713039 13293 bio_end_io_t *local_end_io __attribute__ ((unused));
e70e591c
BB
13294
13295 local_end_io = wanted_end_io;
13296
13297 ;
13298 return 0;
13299}
13300
13301_ACEOF
13302
13303
13304 rm -Rf build && mkdir -p build
13305 echo "obj-m := conftest.o" >build/Makefile
13306 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'
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13309 ac_status=$?
13310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13314 ac_status=$?
13315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13317
13318 { $as_echo "$as_me:$LINENO: result: yes" >&5
13319$as_echo "yes" >&6; }
13320
13321cat >>confdefs.h <<\_ACEOF
13322#define HAVE_2ARGS_BIO_END_IO_T 1
13323_ACEOF
13324
13325
13326else
13327 $as_echo "$as_me: failed program was:" >&5
13328sed 's/^/| /' conftest.$ac_ext >&5
13329
13330 { $as_echo "$as_me:$LINENO: result: no" >&5
13331$as_echo "no" >&6; }
13332
13333
13334
13335fi
13336
13337 rm -Rf build
13338
13339
13340 EXTRA_KCFLAGS="$tmp_flags"
13341
13342
675de5aa
BB
13343 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13344$as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13345
13346
13347cat confdefs.h - <<_ACEOF >conftest.c
13348/* confdefs.h. */
13349_ACEOF
13350cat confdefs.h >>conftest.$ac_ext
13351cat >>conftest.$ac_ext <<_ACEOF
13352/* end confdefs.h. */
13353
13354
13355 #include <linux/bio.h>
13356
13357int
13358main (void)
13359{
13360
79713039 13361 int flags __attribute__ ((unused));
675de5aa
BB
13362 flags = BIO_RW_SYNC;
13363
13364 ;
13365 return 0;
13366}
13367
13368_ACEOF
13369
13370
13371 rm -Rf build && mkdir -p build
13372 echo "obj-m := conftest.o" >build/Makefile
13373 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'
13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375 (eval $ac_try) 2>&5
13376 ac_status=$?
13377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13381 ac_status=$?
13382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; }; then
13384
13385 { $as_echo "$as_me:$LINENO: result: yes" >&5
13386$as_echo "yes" >&6; }
13387
13388cat >>confdefs.h <<\_ACEOF
13389#define HAVE_BIO_RW_SYNC 1
13390_ACEOF
13391
13392
13393else
13394 $as_echo "$as_me: failed program was:" >&5
13395sed 's/^/| /' conftest.$ac_ext >&5
13396
13397 { $as_echo "$as_me:$LINENO: result: no" >&5
13398$as_echo "no" >&6; }
13399
13400
13401
13402fi
13403
13404 rm -Rf build
13405
13406
13407
13408
e70e591c
BB
13409 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13410$as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13411
13412
13413cat confdefs.h - <<_ACEOF >conftest.c
13414/* confdefs.h. */
13415_ACEOF
13416cat confdefs.h >>conftest.$ac_ext
13417cat >>conftest.$ac_ext <<_ACEOF
13418/* end confdefs.h. */
13419
13420
13421 #include <linux/bio.h>
13422
13423int
13424main (void)
13425{
13426
79713039 13427 int flags __attribute__ ((unused));
e70e591c
BB
13428 flags = BIO_RW_SYNCIO;
13429
13430 ;
13431 return 0;
13432}
13433
13434_ACEOF
13435
13436
13437 rm -Rf build && mkdir -p build
13438 echo "obj-m := conftest.o" >build/Makefile
13439 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'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13442 ac_status=$?
13443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450
13451 { $as_echo "$as_me:$LINENO: result: yes" >&5
13452$as_echo "yes" >&6; }
13453
13454cat >>confdefs.h <<\_ACEOF
13455#define HAVE_BIO_RW_SYNCIO 1
13456_ACEOF
13457
13458
13459else
13460 $as_echo "$as_me: failed program was:" >&5
13461sed 's/^/| /' conftest.$ac_ext >&5
13462
13463 { $as_echo "$as_me:$LINENO: result: no" >&5
13464$as_echo "no" >&6; }
13465
13466
13467
13468fi
13469
13470 rm -Rf build
13471
13472
13473
13474
675de5aa
BB
13475 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13476$as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13477
13478
13479cat confdefs.h - <<_ACEOF >conftest.c
13480/* confdefs.h. */
13481_ACEOF
13482cat confdefs.h >>conftest.$ac_ext
13483cat >>conftest.$ac_ext <<_ACEOF
13484/* end confdefs.h. */
13485
13486
13487 #include <linux/bio.h>
13488
13489int
13490main (void)
13491{
13492
79713039 13493 int flags __attribute__ ((unused));
675de5aa
BB
13494 flags = REQ_SYNC;
13495
13496 ;
13497 return 0;
13498}
13499
13500_ACEOF
13501
13502
13503 rm -Rf build && mkdir -p build
13504 echo "obj-m := conftest.o" >build/Makefile
13505 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'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
13509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13513 ac_status=$?
13514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13516
13517 { $as_echo "$as_me:$LINENO: result: yes" >&5
13518$as_echo "yes" >&6; }
13519
13520cat >>confdefs.h <<\_ACEOF
13521#define HAVE_REQ_SYNC 1
13522_ACEOF
13523
13524
13525else
13526 $as_echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 { $as_echo "$as_me:$LINENO: result: no" >&5
13530$as_echo "no" >&6; }
13531
13532
13533
13534fi
13535
13536 rm -Rf build
13537
13538
13539
13540
e70e591c
BB
13541 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13542$as_echo_n "checking whether blk_end_request() is available... " >&6; }
b9c59ec8
PS
13543 tmp_flags="$EXTRA_KCFLAGS"
13544 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
13545
13546
13547cat confdefs.h - <<_ACEOF >conftest.c
13548/* confdefs.h. */
13549_ACEOF
13550cat confdefs.h >>conftest.$ac_ext
13551cat >>conftest.$ac_ext <<_ACEOF
13552/* end confdefs.h. */
13553
13554
13555 #include <linux/blkdev.h>
13556
13557int
13558main (void)
13559{
13560
13561 struct request *req = NULL;
13562 (void) blk_end_request(req, 0, 0);
13563
13564 ;
13565 return 0;
13566}
13567
13568_ACEOF
13569
13570
13571 rm -Rf build && mkdir -p build
13572 echo "obj-m := conftest.o" >build/Makefile
13573 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'
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13576 ac_status=$?
13577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13581 ac_status=$?
13582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584
13585 { $as_echo "$as_me:$LINENO: result: yes" >&5
13586$as_echo "yes" >&6; }
13587
13588cat >>confdefs.h <<\_ACEOF
13589#define HAVE_BLK_END_REQUEST 1
13590_ACEOF
13591
13592
13593else
13594 $as_echo "$as_me: failed program was:" >&5
13595sed 's/^/| /' conftest.$ac_ext >&5
13596
13597 { $as_echo "$as_me:$LINENO: result: no" >&5
13598$as_echo "no" >&6; }
13599
13600
13601
13602fi
13603
13604 rm -Rf build
13605
13606
13607
13608 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13609$as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13610
13611
13612cat confdefs.h - <<_ACEOF >conftest.c
13613/* confdefs.h. */
13614_ACEOF
13615cat confdefs.h >>conftest.$ac_ext
13616cat >>conftest.$ac_ext <<_ACEOF
13617/* end confdefs.h. */
13618
13619
13620 #include <linux/module.h>
13621 #include <linux/blkdev.h>
13622
13623 MODULE_LICENSE("CDDL");
13624
13625int
13626main (void)
13627{
13628
13629 struct request *req = NULL;
13630 (void) blk_end_request(req, 0, 0);
13631
13632 ;
13633 return 0;
13634}
13635
13636_ACEOF
13637
13638
13639 rm -Rf build && mkdir -p build
13640 echo "obj-m := conftest.o" >build/Makefile
13641 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'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13644 ac_status=$?
13645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13649 ac_status=$?
13650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; }; then
13652
13653 { $as_echo "$as_me:$LINENO: result: no" >&5
13654$as_echo "no" >&6; }
13655
13656else
13657 $as_echo "$as_me: failed program was:" >&5
13658sed 's/^/| /' conftest.$ac_ext >&5
13659
13660 { $as_echo "$as_me:$LINENO: result: yes" >&5
13661$as_echo "yes" >&6; }
13662
13663cat >>confdefs.h <<\_ACEOF
13664#define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13665_ACEOF
13666
13667
13668
13669
b18019d2
ED
13670fi
13671
13672 rm -Rf build
13673
13674
13675 EXTRA_KCFLAGS="$tmp_flags"
13676
13677
13678 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
13679$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
13680 tmp_flags="$EXTRA_KCFLAGS"
13681 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13682
13683
13684cat confdefs.h - <<_ACEOF >conftest.c
13685/* confdefs.h. */
13686_ACEOF
13687cat confdefs.h >>conftest.$ac_ext
13688cat >>conftest.$ac_ext <<_ACEOF
13689/* end confdefs.h. */
13690
13691
13692 #include <linux/blkdev.h>
13693
13694int
13695main (void)
13696{
13697
13698 struct request_queue *q = NULL;
13699 (void) blk_queue_flush(q, REQ_FLUSH);
13700
13701 ;
13702 return 0;
13703}
13704
13705_ACEOF
13706
13707
13708 rm -Rf build && mkdir -p build
13709 echo "obj-m := conftest.o" >build/Makefile
13710 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'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13713 ac_status=$?
13714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721
13722 { $as_echo "$as_me:$LINENO: result: yes" >&5
13723$as_echo "yes" >&6; }
13724
13725cat >>confdefs.h <<\_ACEOF
13726#define HAVE_BLK_QUEUE_FLUSH 1
13727_ACEOF
13728
13729
13730else
13731 $as_echo "$as_me: failed program was:" >&5
13732sed 's/^/| /' conftest.$ac_ext >&5
13733
13734 { $as_echo "$as_me:$LINENO: result: no" >&5
13735$as_echo "no" >&6; }
13736
13737
13738
13739fi
13740
13741 rm -Rf build
13742
13743
13744
13745 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
13746$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
13747
13748
13749cat confdefs.h - <<_ACEOF >conftest.c
13750/* confdefs.h. */
13751_ACEOF
13752cat confdefs.h >>conftest.$ac_ext
13753cat >>conftest.$ac_ext <<_ACEOF
13754/* end confdefs.h. */
13755
13756
13757 #include <linux/module.h>
13758 #include <linux/blkdev.h>
13759
13760 MODULE_LICENSE("CDDL");
13761
13762int
13763main (void)
13764{
13765
13766 struct request_queue *q = NULL;
13767 (void) blk_queue_flush(q, REQ_FLUSH);
13768
13769 ;
13770 return 0;
13771}
13772
13773_ACEOF
13774
13775
13776 rm -Rf build && mkdir -p build
13777 echo "obj-m := conftest.o" >build/Makefile
13778 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'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13781 ac_status=$?
13782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; }; then
13789
13790 { $as_echo "$as_me:$LINENO: result: no" >&5
13791$as_echo "no" >&6; }
13792
13793else
13794 $as_echo "$as_me: failed program was:" >&5
13795sed 's/^/| /' conftest.$ac_ext >&5
13796
13797 { $as_echo "$as_me:$LINENO: result: yes" >&5
13798$as_echo "yes" >&6; }
13799
13800cat >>confdefs.h <<\_ACEOF
13801#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
13802_ACEOF
13803
13804
13805
13806
e70e591c
BB
13807fi
13808
13809 rm -Rf build
13810
13811
b9c59ec8 13812 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
13813
13814
34037afe
ED
13815 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
13816$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
b9c59ec8
PS
13817 tmp_flags="$EXTRA_KCFLAGS"
13818 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
13819
13820
13821cat confdefs.h - <<_ACEOF >conftest.c
13822/* confdefs.h. */
13823_ACEOF
13824cat confdefs.h >>conftest.$ac_ext
13825cat >>conftest.$ac_ext <<_ACEOF
13826/* end confdefs.h. */
13827
13828
13829 #include <linux/blkdev.h>
13830
13831int
13832main (void)
13833{
13834
13835 struct request_queue *q = NULL;
34037afe 13836 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
e70e591c
BB
13837
13838 ;
13839 return 0;
13840}
13841
13842_ACEOF
13843
13844
13845 rm -Rf build && mkdir -p build
13846 echo "obj-m := conftest.o" >build/Makefile
13847 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'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13855 ac_status=$?
13856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; }; then
13858
13859 { $as_echo "$as_me:$LINENO: result: yes" >&5
13860$as_echo "yes" >&6; }
13861
13862cat >>confdefs.h <<\_ACEOF
34037afe 13863#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
e70e591c
BB
13864_ACEOF
13865
13866
13867else
13868 $as_echo "$as_me: failed program was:" >&5
13869sed 's/^/| /' conftest.$ac_ext >&5
13870
13871 { $as_echo "$as_me:$LINENO: result: no" >&5
13872$as_echo "no" >&6; }
13873
13874
13875
13876fi
13877
13878 rm -Rf build
13879
13880
b9c59ec8 13881 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
13882
13883
34037afe
ED
13884 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
13885$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
b9c59ec8
PS
13886 tmp_flags="$EXTRA_KCFLAGS"
13887 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
13888
13889
13890cat confdefs.h - <<_ACEOF >conftest.c
13891/* confdefs.h. */
13892_ACEOF
13893cat confdefs.h >>conftest.$ac_ext
13894cat >>conftest.$ac_ext <<_ACEOF
13895/* end confdefs.h. */
13896
13897
13898 #include <linux/blkdev.h>
13899
13900int
13901main (void)
13902{
13903
13904 struct request_queue *q = NULL;
34037afe 13905 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
e70e591c
BB
13906
13907 ;
13908 return 0;
13909}
13910
13911_ACEOF
13912
13913
13914 rm -Rf build && mkdir -p build
13915 echo "obj-m := conftest.o" >build/Makefile
13916 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'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13919 ac_status=$?
13920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13924 ac_status=$?
13925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927
13928 { $as_echo "$as_me:$LINENO: result: yes" >&5
13929$as_echo "yes" >&6; }
13930
13931cat >>confdefs.h <<\_ACEOF
34037afe 13932#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
e70e591c
BB
13933_ACEOF
13934
13935
13936else
13937 $as_echo "$as_me: failed program was:" >&5
13938sed 's/^/| /' conftest.$ac_ext >&5
13939
13940 { $as_echo "$as_me:$LINENO: result: no" >&5
13941$as_echo "no" >&6; }
13942
13943
13944
13945fi
13946
13947 rm -Rf build
13948
13949
b9c59ec8 13950 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
13951
13952
34037afe
ED
13953 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
13954$as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
b9c59ec8
PS
13955 tmp_flags="$EXTRA_KCFLAGS"
13956 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
13957
13958
13959cat confdefs.h - <<_ACEOF >conftest.c
13960/* confdefs.h. */
13961_ACEOF
13962cat confdefs.h >>conftest.$ac_ext
13963cat >>conftest.$ac_ext <<_ACEOF
13964/* end confdefs.h. */
13965
13966
13967 #include <linux/blkdev.h>
13968
13969int
13970main (void)
13971{
13972
34037afe
ED
13973 struct request_queue *q = NULL;
13974 unsigned short block_size = 1;
13975 (void) blk_queue_physical_block_size(q, block_size);
e70e591c
BB
13976
13977 ;
13978 return 0;
13979}
13980
13981_ACEOF
13982
13983
13984 rm -Rf build && mkdir -p build
13985 echo "obj-m := conftest.o" >build/Makefile
13986 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'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
13990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; }; then
13997
13998 { $as_echo "$as_me:$LINENO: result: yes" >&5
13999$as_echo "yes" >&6; }
14000
14001cat >>confdefs.h <<\_ACEOF
34037afe 14002#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
e70e591c
BB
14003_ACEOF
14004
14005
14006else
14007 $as_echo "$as_me: failed program was:" >&5
14008sed 's/^/| /' conftest.$ac_ext >&5
14009
14010 { $as_echo "$as_me:$LINENO: result: no" >&5
14011$as_echo "no" >&6; }
14012
14013
14014
14015fi
14016
14017 rm -Rf build
14018
14019
34037afe
ED
14020 EXTRA_KCFLAGS="$tmp_flags"
14021
e70e591c 14022
34037afe
ED
14023 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
14024$as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
14025 tmp_flags="$EXTRA_KCFLAGS"
14026 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
14027
14028
14029cat confdefs.h - <<_ACEOF >conftest.c
14030/* confdefs.h. */
14031_ACEOF
14032cat confdefs.h >>conftest.$ac_ext
14033cat >>conftest.$ac_ext <<_ACEOF
14034/* end confdefs.h. */
14035
14036
e70e591c
BB
14037 #include <linux/blkdev.h>
14038
e70e591c
BB
14039int
14040main (void)
14041{
14042
34037afe
ED
14043 struct request_queue *q = NULL;
14044 unsigned int opt = 1;
14045 (void) blk_queue_io_opt(q, opt);
e70e591c
BB
14046
14047 ;
14048 return 0;
14049}
14050
14051_ACEOF
14052
14053
14054 rm -Rf build && mkdir -p build
14055 echo "obj-m := conftest.o" >build/Makefile
14056 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'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067
e70e591c
BB
14068 { $as_echo "$as_me:$LINENO: result: yes" >&5
14069$as_echo "yes" >&6; }
14070
14071cat >>confdefs.h <<\_ACEOF
34037afe 14072#define HAVE_BLK_QUEUE_IO_OPT 1
e70e591c
BB
14073_ACEOF
14074
14075
34037afe
ED
14076else
14077 $as_echo "$as_me: failed program was:" >&5
14078sed 's/^/| /' conftest.$ac_ext >&5
14079
14080 { $as_echo "$as_me:$LINENO: result: no" >&5
14081$as_echo "no" >&6; }
14082
e70e591c
BB
14083
14084
14085fi
14086
14087 rm -Rf build
14088
14089
b9c59ec8 14090 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
14091
14092
34037afe
ED
14093 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
14094$as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
b9c59ec8
PS
14095 tmp_flags="$EXTRA_KCFLAGS"
14096 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
14097
14098
14099cat confdefs.h - <<_ACEOF >conftest.c
14100/* confdefs.h. */
14101_ACEOF
14102cat confdefs.h >>conftest.$ac_ext
14103cat >>conftest.$ac_ext <<_ACEOF
14104/* end confdefs.h. */
14105
14106
14107 #include <linux/blkdev.h>
14108
14109int
14110main (void)
14111{
14112
34037afe
ED
14113 struct request_queue *q = NULL;
14114 (void) blk_queue_nonrot(q);
e70e591c
BB
14115
14116 ;
14117 return 0;
14118}
14119
14120_ACEOF
14121
14122
14123 rm -Rf build && mkdir -p build
14124 echo "obj-m := conftest.o" >build/Makefile
14125 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'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14128 ac_status=$?
14129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14133 ac_status=$?
14134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; }; then
14136
14137 { $as_echo "$as_me:$LINENO: result: yes" >&5
14138$as_echo "yes" >&6; }
14139
14140cat >>confdefs.h <<\_ACEOF
34037afe 14141#define HAVE_BLK_QUEUE_NONROT 1
e70e591c
BB
14142_ACEOF
14143
14144
14145else
14146 $as_echo "$as_me: failed program was:" >&5
14147sed 's/^/| /' conftest.$ac_ext >&5
14148
14149 { $as_echo "$as_me:$LINENO: result: no" >&5
14150$as_echo "no" >&6; }
14151
14152
14153
14154fi
14155
14156 rm -Rf build
14157
14158
b9c59ec8 14159 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
14160
14161
34037afe
ED
14162 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
14163$as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
b9c59ec8
PS
14164 tmp_flags="$EXTRA_KCFLAGS"
14165 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
14166
14167
14168cat confdefs.h - <<_ACEOF >conftest.c
14169/* confdefs.h. */
14170_ACEOF
14171cat confdefs.h >>conftest.$ac_ext
14172cat >>conftest.$ac_ext <<_ACEOF
14173/* end confdefs.h. */
14174
14175
14176 #include <linux/blkdev.h>
14177
14178int
14179main (void)
14180{
14181
34037afe
ED
14182 struct request_queue *q = NULL;
14183 (void) blk_fetch_request(q);
e70e591c
BB
14184
14185 ;
14186 return 0;
14187}
14188
14189_ACEOF
14190
14191
14192 rm -Rf build && mkdir -p build
14193 echo "obj-m := conftest.o" >build/Makefile
14194 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'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14197 ac_status=$?
14198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14202 ac_status=$?
14203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205
14206 { $as_echo "$as_me:$LINENO: result: yes" >&5
14207$as_echo "yes" >&6; }
14208
14209cat >>confdefs.h <<\_ACEOF
34037afe 14210#define HAVE_BLK_FETCH_REQUEST 1
e70e591c
BB
14211_ACEOF
14212
14213
14214else
14215 $as_echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
14218 { $as_echo "$as_me:$LINENO: result: no" >&5
14219$as_echo "no" >&6; }
14220
14221
14222
14223fi
14224
14225 rm -Rf build
14226
14227
b9c59ec8 14228 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
14229
14230
34037afe
ED
14231 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
14232$as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
b9c59ec8
PS
14233 tmp_flags="$EXTRA_KCFLAGS"
14234 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
14235
14236
14237cat confdefs.h - <<_ACEOF >conftest.c
14238/* confdefs.h. */
14239_ACEOF
14240cat confdefs.h >>conftest.$ac_ext
14241cat >>conftest.$ac_ext <<_ACEOF
14242/* end confdefs.h. */
14243
14244
14245 #include <linux/blkdev.h>
14246
14247int
14248main (void)
14249{
14250
34037afe
ED
14251 struct request_queue *q = NULL;
14252 struct request *req = NULL;
14253 blk_requeue_request(q, req);
e70e591c
BB
14254
14255 ;
14256 return 0;
14257}
14258
14259_ACEOF
14260
14261
14262 rm -Rf build && mkdir -p build
14263 echo "obj-m := conftest.o" >build/Makefile
14264 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'
14265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266 (eval $ac_try) 2>&5
14267 ac_status=$?
14268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14272 ac_status=$?
14273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275
14276 { $as_echo "$as_me:$LINENO: result: yes" >&5
14277$as_echo "yes" >&6; }
14278
14279cat >>confdefs.h <<\_ACEOF
34037afe 14280#define HAVE_BLK_REQUEUE_REQUEST 1
e70e591c
BB
14281_ACEOF
14282
14283
14284else
14285 $as_echo "$as_me: failed program was:" >&5
14286sed 's/^/| /' conftest.$ac_ext >&5
14287
14288 { $as_echo "$as_me:$LINENO: result: no" >&5
14289$as_echo "no" >&6; }
14290
14291
14292
14293fi
14294
14295 rm -Rf build
14296
14297
b9c59ec8 14298 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
14299
14300
34037afe
ED
14301 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
14302$as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
b9c59ec8
PS
14303 tmp_flags="$EXTRA_KCFLAGS"
14304 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
14305
14306
14307cat confdefs.h - <<_ACEOF >conftest.c
14308/* confdefs.h. */
14309_ACEOF
14310cat confdefs.h >>conftest.$ac_ext
14311cat >>conftest.$ac_ext <<_ACEOF
14312/* end confdefs.h. */
14313
14314
14315 #include <linux/blkdev.h>
14316
14317int
14318main (void)
14319{
14320
14321 struct request *req = NULL;
34037afe 14322 (void) blk_rq_bytes(req);
e70e591c
BB
14323
14324 ;
14325 return 0;
14326}
14327
14328_ACEOF
14329
14330
14331 rm -Rf build && mkdir -p build
14332 echo "obj-m := conftest.o" >build/Makefile
14333 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'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14336 ac_status=$?
14337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14341 ac_status=$?
14342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; }; then
14344
14345 { $as_echo "$as_me:$LINENO: result: yes" >&5
14346$as_echo "yes" >&6; }
14347
14348cat >>confdefs.h <<\_ACEOF
34037afe 14349#define HAVE_BLK_RQ_BYTES 1
e70e591c
BB
14350_ACEOF
14351
14352
14353else
14354 $as_echo "$as_me: failed program was:" >&5
14355sed 's/^/| /' conftest.$ac_ext >&5
14356
14357 { $as_echo "$as_me:$LINENO: result: no" >&5
14358$as_echo "no" >&6; }
14359
14360
14361
14362fi
14363
14364 rm -Rf build
14365
14366
e70e591c 14367
34037afe
ED
14368 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
14369$as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
e70e591c
BB
14370
14371
14372cat confdefs.h - <<_ACEOF >conftest.c
14373/* confdefs.h. */
14374_ACEOF
14375cat confdefs.h >>conftest.$ac_ext
14376cat >>conftest.$ac_ext <<_ACEOF
14377/* end confdefs.h. */
14378
14379
34037afe 14380 #include <linux/module.h>
e70e591c
BB
14381 #include <linux/blkdev.h>
14382
34037afe
ED
14383 MODULE_LICENSE("CDDL");
14384
e70e591c
BB
14385int
14386main (void)
14387{
14388
e70e591c 14389 struct request *req = NULL;
34037afe 14390 (void) blk_rq_bytes(req);
e70e591c
BB
14391
14392 ;
14393 return 0;
14394}
14395
14396_ACEOF
14397
14398
14399 rm -Rf build && mkdir -p build
14400 echo "obj-m := conftest.o" >build/Makefile
14401 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'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14404 ac_status=$?
14405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; }; then
14412
34037afe
ED
14413 { $as_echo "$as_me:$LINENO: result: no" >&5
14414$as_echo "no" >&6; }
14415
14416else
14417 $as_echo "$as_me: failed program was:" >&5
14418sed 's/^/| /' conftest.$ac_ext >&5
14419
e70e591c
BB
14420 { $as_echo "$as_me:$LINENO: result: yes" >&5
14421$as_echo "yes" >&6; }
14422
14423cat >>confdefs.h <<\_ACEOF
34037afe 14424#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
e70e591c
BB
14425_ACEOF
14426
14427
e70e591c
BB
14428
14429
777d4af8
BB
14430fi
14431
14432 rm -Rf build
14433
14434
b9c59ec8 14435 EXTRA_KCFLAGS="$tmp_flags"
777d4af8 14436
34037afe
ED
14437
14438 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
14439$as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
14440 tmp_flags="$EXTRA_KCFLAGS"
14441 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
777d4af8
BB
14442
14443
14444cat confdefs.h - <<_ACEOF >conftest.c
14445/* confdefs.h. */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h. */
14450
14451
34037afe 14452 #include <linux/blkdev.h>
777d4af8
BB
14453
14454int
14455main (void)
14456{
14457
34037afe
ED
14458 struct request *req = NULL;
14459 (void) blk_rq_pos(req);
777d4af8
BB
14460
14461 ;
14462 return 0;
14463}
14464
14465_ACEOF
14466
14467
14468 rm -Rf build && mkdir -p build
14469 echo "obj-m := conftest.o" >build/Makefile
14470 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'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14478 ac_status=$?
14479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481
14482 { $as_echo "$as_me:$LINENO: result: yes" >&5
14483$as_echo "yes" >&6; }
14484
14485cat >>confdefs.h <<\_ACEOF
34037afe 14486#define HAVE_BLK_RQ_POS 1
777d4af8
BB
14487_ACEOF
14488
14489
14490else
14491 $as_echo "$as_me: failed program was:" >&5
14492sed 's/^/| /' conftest.$ac_ext >&5
14493
14494 { $as_echo "$as_me:$LINENO: result: no" >&5
14495$as_echo "no" >&6; }
14496
14497
14498
e70e591c
BB
14499fi
14500
14501 rm -Rf build
14502
14503
34037afe 14504 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
14505
14506
34037afe
ED
14507 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
14508$as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
14509 tmp_flags="$EXTRA_KCFLAGS"
14510 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
f9637c6c
BB
14511
14512
14513cat confdefs.h - <<_ACEOF >conftest.c
14514/* confdefs.h. */
14515_ACEOF
14516cat confdefs.h >>conftest.$ac_ext
14517cat >>conftest.$ac_ext <<_ACEOF
14518/* end confdefs.h. */
14519
14520
34037afe 14521 #include <linux/blkdev.h>
f9637c6c
BB
14522
14523int
14524main (void)
14525{
14526
34037afe
ED
14527 struct request *req = NULL;
14528 (void) blk_rq_sectors(req);
f9637c6c
BB
14529
14530 ;
14531 return 0;
14532}
14533
14534_ACEOF
14535
14536
14537 rm -Rf build && mkdir -p build
14538 echo "obj-m := conftest.o" >build/Makefile
14539 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'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14542 ac_status=$?
14543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546 (eval $ac_try) 2>&5
14547 ac_status=$?
14548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; }; then
14550
14551 { $as_echo "$as_me:$LINENO: result: yes" >&5
14552$as_echo "yes" >&6; }
14553
14554cat >>confdefs.h <<\_ACEOF
34037afe 14555#define HAVE_BLK_RQ_SECTORS 1
f9637c6c
BB
14556_ACEOF
14557
14558
14559else
14560 $as_echo "$as_me: failed program was:" >&5
14561sed 's/^/| /' conftest.$ac_ext >&5
14562
14563 { $as_echo "$as_me:$LINENO: result: no" >&5
14564$as_echo "no" >&6; }
14565
14566
14567
14568fi
14569
14570 rm -Rf build
14571
14572
34037afe 14573 EXTRA_KCFLAGS="$tmp_flags"
f9637c6c
BB
14574
14575
34037afe
ED
14576 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
14577$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14578 tmp_flags="$EXTRA_KCFLAGS"
14579 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
f9637c6c
BB
14580
14581
14582cat confdefs.h - <<_ACEOF >conftest.c
14583/* confdefs.h. */
14584_ACEOF
14585cat confdefs.h >>conftest.$ac_ext
14586cat >>conftest.$ac_ext <<_ACEOF
14587/* end confdefs.h. */
14588
14589
34037afe 14590 #include <linux/blkdev.h>
f9637c6c
BB
14591
14592int
14593main (void)
14594{
14595
34037afe
ED
14596 struct gendisk *disk = NULL;
14597 (void) get_disk_ro(disk);
f9637c6c
BB
14598
14599 ;
14600 return 0;
14601}
14602
14603_ACEOF
14604
14605
14606 rm -Rf build && mkdir -p build
14607 echo "obj-m := conftest.o" >build/Makefile
14608 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'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14611 ac_status=$?
14612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14616 ac_status=$?
14617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619
14620 { $as_echo "$as_me:$LINENO: result: yes" >&5
14621$as_echo "yes" >&6; }
14622
14623cat >>confdefs.h <<\_ACEOF
34037afe 14624#define HAVE_GET_DISK_RO 1
f9637c6c
BB
14625_ACEOF
14626
14627
14628else
14629 $as_echo "$as_me: failed program was:" >&5
14630sed 's/^/| /' conftest.$ac_ext >&5
14631
14632 { $as_echo "$as_me:$LINENO: result: no" >&5
14633$as_echo "no" >&6; }
14634
14635
14636
14637fi
14638
14639 rm -Rf build
14640
14641
34037afe 14642 EXTRA_KCFLAGS="$tmp_flags"
f9637c6c
BB
14643
14644
34037afe
ED
14645 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
14646$as_echo_n "checking whether rq_is_sync() is available... " >&6; }
14647 tmp_flags="$EXTRA_KCFLAGS"
14648 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
47621f3d
BB
14649
14650
14651cat confdefs.h - <<_ACEOF >conftest.c
14652/* confdefs.h. */
14653_ACEOF
14654cat confdefs.h >>conftest.$ac_ext
14655cat >>conftest.$ac_ext <<_ACEOF
14656/* end confdefs.h. */
14657
14658
34037afe 14659 #include <linux/blkdev.h>
47621f3d
BB
14660
14661int
14662main (void)
14663{
14664
34037afe
ED
14665 struct request *req = NULL;
14666 (void) rq_is_sync(req);
47621f3d
BB
14667
14668 ;
14669 return 0;
14670}
14671
14672_ACEOF
14673
14674
14675 rm -Rf build && mkdir -p build
14676 echo "obj-m := conftest.o" >build/Makefile
14677 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'
14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5
14680 ac_status=$?
14681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14685 ac_status=$?
14686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; }; then
14688
14689 { $as_echo "$as_me:$LINENO: result: yes" >&5
14690$as_echo "yes" >&6; }
14691
14692cat >>confdefs.h <<\_ACEOF
34037afe 14693#define HAVE_RQ_IS_SYNC 1
47621f3d
BB
14694_ACEOF
14695
14696
14697else
14698 $as_echo "$as_me: failed program was:" >&5
14699sed 's/^/| /' conftest.$ac_ext >&5
14700
14701 { $as_echo "$as_me:$LINENO: result: no" >&5
14702$as_echo "no" >&6; }
14703
14704
14705
14706fi
14707
14708 rm -Rf build
14709
14710
34037afe 14711 EXTRA_KCFLAGS="$tmp_flags"
47621f3d
BB
14712
14713
34037afe
ED
14714 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
14715$as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
14716 tmp_flags="$EXTRA_KCFLAGS"
14717 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
7268e1be
BB
14718
14719
14720cat confdefs.h - <<_ACEOF >conftest.c
14721/* confdefs.h. */
14722_ACEOF
14723cat confdefs.h >>conftest.$ac_ext
14724cat >>conftest.$ac_ext <<_ACEOF
14725/* end confdefs.h. */
14726
14727
34037afe 14728 #include <linux/blkdev.h>
7268e1be
BB
14729
14730int
14731main (void)
14732{
14733
34037afe
ED
14734 struct bio_vec *bv;
14735 struct req_iterator iter;
14736 struct request *req = NULL;
14737 rq_for_each_segment(bv, req, iter) { }
7268e1be
BB
14738
14739 ;
14740 return 0;
14741}
14742
14743_ACEOF
14744
14745
14746 rm -Rf build && mkdir -p build
14747 echo "obj-m := conftest.o" >build/Makefile
14748 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'
14749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5
14751 ac_status=$?
14752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14756 ac_status=$?
14757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14759
34037afe
ED
14760 { $as_echo "$as_me:$LINENO: result: yes" >&5
14761$as_echo "yes" >&6; }
7268e1be
BB
14762
14763cat >>confdefs.h <<\_ACEOF
34037afe 14764#define HAVE_RQ_FOR_EACH_SEGMENT 1
adcd70bd
BB
14765_ACEOF
14766
14767
14768else
14769 $as_echo "$as_me: failed program was:" >&5
14770sed 's/^/| /' conftest.$ac_ext >&5
14771
34037afe
ED
14772 { $as_echo "$as_me:$LINENO: result: no" >&5
14773$as_echo "no" >&6; }
adcd70bd
BB
14774
14775
14776
14777fi
14778
14779 rm -Rf build
14780
14781
34037afe 14782 EXTRA_KCFLAGS="$tmp_flags"
adcd70bd 14783
34037afe
ED
14784 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
14785$as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
adcd70bd
BB
14786
14787
14788cat confdefs.h - <<_ACEOF >conftest.c
14789/* confdefs.h. */
14790_ACEOF
14791cat confdefs.h >>conftest.$ac_ext
14792cat >>conftest.$ac_ext <<_ACEOF
14793/* end confdefs.h. */
14794
14795
14796 #include <linux/fs.h>
34037afe
ED
14797 #include <linux/xattr.h>
14798
14799 const struct xattr_handler xattr_test_handler = {
14800 .prefix = "test",
14801 .get = NULL,
14802 .set = NULL,
14803 };
14804
14805 const struct xattr_handler *xattr_handlers[] = {
14806 &xattr_test_handler,
14807 };
adcd70bd
BB
14808
14809int
14810main (void)
14811{
14812
34037afe 14813 struct super_block sb __attribute__ ((unused));
adcd70bd 14814
34037afe 14815 sb.s_xattr = xattr_handlers;
adcd70bd
BB
14816
14817 ;
14818 return 0;
14819}
14820
14821_ACEOF
14822
14823
14824 rm -Rf build && mkdir -p build
14825 echo "obj-m := conftest.o" >build/Makefile
14826 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'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14829 ac_status=$?
14830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14834 ac_status=$?
14835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; }; then
14837
34037afe
ED
14838 { $as_echo "$as_me:$LINENO: result: yes" >&5
14839$as_echo "yes" >&6; }
adcd70bd
BB
14840
14841cat >>confdefs.h <<\_ACEOF
34037afe 14842#define HAVE_CONST_XATTR_HANDLER 1
7268e1be
BB
14843_ACEOF
14844
14845
14846else
14847 $as_echo "$as_me: failed program was:" >&5
14848sed 's/^/| /' conftest.$ac_ext >&5
14849
34037afe
ED
14850 { $as_echo "$as_me:$LINENO: result: no" >&5
14851$as_echo "no" >&6; }
7268e1be
BB
14852
14853
14854
14855fi
14856
14857 rm -Rf build
14858
14859
14860
14861
34037afe
ED
14862 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
14863$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
adcd70bd
BB
14864
14865
14866cat confdefs.h - <<_ACEOF >conftest.c
14867/* confdefs.h. */
14868_ACEOF
14869cat confdefs.h >>conftest.$ac_ext
14870cat >>conftest.$ac_ext <<_ACEOF
14871/* end confdefs.h. */
14872
14873
34037afe 14874 #include <linux/xattr.h>
adcd70bd
BB
14875
14876int
14877main (void)
14878{
14879
34037afe
ED
14880 int (*get)(struct dentry *dentry, const char *name,
14881 void *buffer, size_t size, int handler_flags) = NULL;
14882 struct xattr_handler xops __attribute__ ((unused));
adcd70bd 14883
34037afe 14884 xops.get = get;
adcd70bd
BB
14885
14886 ;
14887 return 0;
14888}
14889
14890_ACEOF
14891
14892
14893 rm -Rf build && mkdir -p build
14894 echo "obj-m := conftest.o" >build/Makefile
14895 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'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14898 ac_status=$?
14899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902 (eval $ac_try) 2>&5
14903 ac_status=$?
14904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
14906
34037afe
ED
14907 { $as_echo "$as_me:$LINENO: result: yes" >&5
14908$as_echo "yes" >&6; }
adcd70bd
BB
14909
14910cat >>confdefs.h <<\_ACEOF
34037afe 14911#define HAVE_DENTRY_XATTR_GET 1
adcd70bd
BB
14912_ACEOF
14913
14914
14915else
14916 $as_echo "$as_me: failed program was:" >&5
14917sed 's/^/| /' conftest.$ac_ext >&5
14918
34037afe
ED
14919 { $as_echo "$as_me:$LINENO: result: no" >&5
14920$as_echo "no" >&6; }
adcd70bd
BB
14921
14922
14923
14924fi
14925
14926 rm -Rf build
14927
14928
14929
14930
34037afe
ED
14931 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
14932$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
2c395def
BB
14933
14934
14935cat confdefs.h - <<_ACEOF >conftest.c
14936/* confdefs.h. */
14937_ACEOF
14938cat confdefs.h >>conftest.$ac_ext
14939cat >>conftest.$ac_ext <<_ACEOF
14940/* end confdefs.h. */
14941
14942
34037afe 14943 #include <linux/xattr.h>
2c395def
BB
14944
14945int
14946main (void)
14947{
14948
34037afe
ED
14949 int (*set)(struct dentry *dentry, const char *name,
14950 const void *buffer, size_t size, int flags,
14951 int handler_flags) = NULL;
14952 struct xattr_handler xops __attribute__ ((unused));
14953
14954 xops.set = set;
2c395def
BB
14955
14956 ;
14957 return 0;
14958}
14959
14960_ACEOF
14961
14962
14963 rm -Rf build && mkdir -p build
14964 echo "obj-m := conftest.o" >build/Makefile
14965 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'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14976
14977 { $as_echo "$as_me:$LINENO: result: yes" >&5
14978$as_echo "yes" >&6; }
14979
14980cat >>confdefs.h <<\_ACEOF
34037afe 14981#define HAVE_DENTRY_XATTR_SET 1
2c395def
BB
14982_ACEOF
14983
14984
14985else
14986 $as_echo "$as_me: failed program was:" >&5
14987sed 's/^/| /' conftest.$ac_ext >&5
14988
14989 { $as_echo "$as_me:$LINENO: result: no" >&5
14990$as_echo "no" >&6; }
14991
14992
14993
14994fi
14995
14996 rm -Rf build
14997
14998
14999
15000
34037afe
ED
15001 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
15002$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
15003
ab26409d
BB
15004
15005
15006cat confdefs.h - <<_ACEOF >conftest.c
15007/* confdefs.h. */
15008_ACEOF
15009cat confdefs.h >>conftest.$ac_ext
15010cat >>conftest.$ac_ext <<_ACEOF
15011/* end confdefs.h. */
15012
15013
15014 #include <linux/fs.h>
15015
15016int
15017main (void)
15018{
15019
34037afe
ED
15020 int (*show_options) (struct seq_file *, struct dentry *) = NULL;
15021 struct super_operations sops __attribute__ ((unused));
15022
15023 sops.show_options = show_options;
ab26409d
BB
15024
15025 ;
15026 return 0;
15027}
15028
15029_ACEOF
15030
15031
15032 rm -Rf build && mkdir -p build
15033 echo "obj-m := conftest.o" >build/Makefile
15034 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'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; }; then
15045
15046 { $as_echo "$as_me:$LINENO: result: yes" >&5
15047$as_echo "yes" >&6; }
15048
15049cat >>confdefs.h <<\_ACEOF
34037afe 15050#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
ab26409d
BB
15051_ACEOF
15052
15053
15054else
15055 $as_echo "$as_me: failed program was:" >&5
15056sed 's/^/| /' conftest.$ac_ext >&5
15057
15058 { $as_echo "$as_me:$LINENO: result: no" >&5
15059$as_echo "no" >&6; }
15060
15061
15062
15063fi
15064
15065 rm -Rf build
15066
15067
15068
15069
34037afe
ED
15070 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
15071$as_echo_n "checking whether fops->fsync() wants... " >&6; }
15072
ab26409d
BB
15073
15074
15075cat confdefs.h - <<_ACEOF >conftest.c
15076/* confdefs.h. */
15077_ACEOF
15078cat confdefs.h >>conftest.$ac_ext
15079cat >>conftest.$ac_ext <<_ACEOF
15080/* end confdefs.h. */
15081
15082
15083 #include <linux/fs.h>
15084
15085int
15086main (void)
15087{
15088
34037afe
ED
15089 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15090 struct file_operations fops __attribute__ ((unused));
15091
15092 fops.fsync = fsync;
ab26409d
BB
15093
15094 ;
15095 return 0;
15096}
15097
15098_ACEOF
15099
15100
15101 rm -Rf build && mkdir -p build
15102 echo "obj-m := conftest.o" >build/Makefile
15103 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'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15106 ac_status=$?
15107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114
34037afe
ED
15115 { $as_echo "$as_me:$LINENO: result: dentry" >&5
15116$as_echo "dentry" >&6; }
ab26409d
BB
15117
15118cat >>confdefs.h <<\_ACEOF
34037afe 15119#define HAVE_FSYNC_WITH_DENTRY 1
ab26409d
BB
15120_ACEOF
15121
15122
15123else
15124 $as_echo "$as_me: failed program was:" >&5
15125sed 's/^/| /' conftest.$ac_ext >&5
15126
ab26409d
BB
15127
15128
15129
15130fi
15131
15132 rm -Rf build
15133
15134
15135
15136
8366cd6a 15137
8366cd6a 15138
34037afe
ED
15139cat confdefs.h - <<_ACEOF >conftest.c
15140/* confdefs.h. */
15141_ACEOF
15142cat confdefs.h >>conftest.$ac_ext
15143cat >>conftest.$ac_ext <<_ACEOF
15144/* end confdefs.h. */
8366cd6a 15145
8366cd6a 15146
34037afe 15147 #include <linux/fs.h>
8366cd6a 15148
34037afe
ED
15149int
15150main (void)
15151{
bdf4328b 15152
34037afe
ED
15153 int (*fsync) (struct file *, int) = NULL;
15154 struct file_operations fops __attribute__ ((unused));
8366cd6a 15155
34037afe 15156 fops.fsync = fsync;
8366cd6a 15157
34037afe
ED
15158 ;
15159 return 0;
15160}
bdf4328b 15161
bdf4328b
BB
15162_ACEOF
15163
8366cd6a 15164
34037afe
ED
15165 rm -Rf build && mkdir -p build
15166 echo "obj-m := conftest.o" >build/Makefile
15167 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'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15175 ac_status=$?
15176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }; then
15178
15179 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
15180$as_echo "no dentry" >&6; }
15181
15182cat >>confdefs.h <<\_ACEOF
15183#define HAVE_FSYNC_WITHOUT_DENTRY 1
15184_ACEOF
8366cd6a
PS
15185
15186
15187else
34037afe
ED
15188 $as_echo "$as_me: failed program was:" >&5
15189sed 's/^/| /' conftest.$ac_ext >&5
8366cd6a 15190
bdf4328b 15191
bdf4328b 15192
8366cd6a
PS
15193
15194fi
15195
34037afe 15196 rm -Rf build
bdf4328b
BB
15197
15198
15199
8366cd6a 15200
8366cd6a 15201
8366cd6a 15202
34037afe
ED
15203cat confdefs.h - <<_ACEOF >conftest.c
15204/* confdefs.h. */
15205_ACEOF
15206cat confdefs.h >>conftest.$ac_ext
15207cat >>conftest.$ac_ext <<_ACEOF
15208/* end confdefs.h. */
8366cd6a 15209
055656d4 15210
34037afe 15211 #include <linux/fs.h>
8366cd6a 15212
34037afe
ED
15213int
15214main (void)
15215{
8366cd6a 15216
34037afe
ED
15217 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
15218 struct file_operations fops __attribute__ ((unused));
055656d4 15219
34037afe 15220 fops.fsync = fsync;
055656d4 15221
34037afe
ED
15222 ;
15223 return 0;
15224}
8366cd6a 15225
34037afe 15226_ACEOF
8366cd6a
PS
15227
15228
34037afe
ED
15229 rm -Rf build && mkdir -p build
15230 echo "obj-m := conftest.o" >build/Makefile
15231 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'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15239 ac_status=$?
15240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
8366cd6a 15242
34037afe
ED
15243 { $as_echo "$as_me:$LINENO: result: range" >&5
15244$as_echo "range" >&6; }
055656d4
GB
15245
15246cat >>confdefs.h <<\_ACEOF
34037afe 15247#define HAVE_FSYNC_RANGE 1
055656d4
GB
15248_ACEOF
15249
8366cd6a 15250
34037afe
ED
15251else
15252 $as_echo "$as_me: failed program was:" >&5
15253sed 's/^/| /' conftest.$ac_ext >&5
055656d4
GB
15254
15255
15256
8366cd6a 15257
34037afe 15258fi
8366cd6a 15259
34037afe 15260 rm -Rf build
8366cd6a 15261
8366cd6a 15262
8366cd6a 15263
df554c14 15264
8366cd6a 15265
34037afe
ED
15266 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
15267$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
8366cd6a 15268
df554c14 15269
34037afe
ED
15270cat confdefs.h - <<_ACEOF >conftest.c
15271/* confdefs.h. */
df554c14 15272_ACEOF
34037afe
ED
15273cat confdefs.h >>conftest.$ac_ext
15274cat >>conftest.$ac_ext <<_ACEOF
15275/* end confdefs.h. */
df554c14 15276
8366cd6a 15277
34037afe 15278 #include <linux/fs.h>
8366cd6a 15279
34037afe
ED
15280int
15281main (void)
15282{
8366cd6a 15283
34037afe
ED
15284 void (*evict_inode) (struct inode *) = NULL;
15285 struct super_operations sops __attribute__ ((unused)) = {
15286 .evict_inode = evict_inode,
15287 };
8366cd6a 15288
34037afe
ED
15289 ;
15290 return 0;
15291}
df554c14 15292
df554c14
BB
15293_ACEOF
15294
8366cd6a 15295
34037afe
ED
15296 rm -Rf build && mkdir -p build
15297 echo "obj-m := conftest.o" >build/Makefile
15298 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'
15299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15301 ac_status=$?
15302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5
15306 ac_status=$?
15307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; }; then
8366cd6a 15309
34037afe 15310 { $as_echo "$as_me:$LINENO: result: yes" >&5
b3129792
PJ
15311$as_echo "yes" >&6; }
15312
15313cat >>confdefs.h <<\_ACEOF
34037afe 15314#define HAVE_EVICT_INODE 1
b3129792
PJ
15315_ACEOF
15316
8366cd6a 15317
8366cd6a 15318else
34037afe
ED
15319 $as_echo "$as_me: failed program was:" >&5
15320sed 's/^/| /' conftest.$ac_ext >&5
8366cd6a 15321
34037afe
ED
15322 { $as_echo "$as_me:$LINENO: result: no" >&5
15323$as_echo "no" >&6; }
b3129792 15324
b3129792 15325
8366cd6a
PS
15326
15327fi
15328
34037afe 15329 rm -Rf build
b3129792
PJ
15330
15331
15332
34037afe
ED
15333
15334 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
15335$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
5c03efc3
BB
15336
15337
15338cat confdefs.h - <<_ACEOF >conftest.c
15339/* confdefs.h. */
15340_ACEOF
15341cat confdefs.h >>conftest.$ac_ext
15342cat >>conftest.$ac_ext <<_ACEOF
15343/* end confdefs.h. */
15344
15345
34037afe 15346 #include <linux/fs.h>
5c03efc3
BB
15347
15348int
15349main (void)
15350{
15351
34037afe
ED
15352 int (*nr_cached_objects)(struct super_block *)
15353 __attribute__ ((unused)) = NULL;
15354 struct super_operations sops __attribute__ ((unused)) = {
15355 .nr_cached_objects = nr_cached_objects,
15356 };
5c03efc3
BB
15357
15358 ;
15359 return 0;
15360}
15361
15362_ACEOF
15363
15364
15365 rm -Rf build && mkdir -p build
15366 echo "obj-m := conftest.o" >build/Makefile
15367 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'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15370 ac_status=$?
15371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378
15379 { $as_echo "$as_me:$LINENO: result: yes" >&5
15380$as_echo "yes" >&6; }
15381
15382cat >>confdefs.h <<\_ACEOF
34037afe 15383#define HAVE_NR_CACHED_OBJECTS 1
5c03efc3
BB
15384_ACEOF
15385
15386
15387else
15388 $as_echo "$as_me: failed program was:" >&5
15389sed 's/^/| /' conftest.$ac_ext >&5
15390
15391 { $as_echo "$as_me:$LINENO: result: no" >&5
15392$as_echo "no" >&6; }
15393
15394
15395
166dd49d
BB
15396fi
15397
15398 rm -Rf build
15399
15400
166dd49d
BB
15401
15402
34037afe
ED
15403 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
15404$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
166dd49d
BB
15405
15406
15407cat confdefs.h - <<_ACEOF >conftest.c
15408/* confdefs.h. */
15409_ACEOF
15410cat confdefs.h >>conftest.$ac_ext
15411cat >>conftest.$ac_ext <<_ACEOF
15412/* end confdefs.h. */
15413
15414
34037afe 15415 #include <linux/fs.h>
166dd49d
BB
15416
15417int
15418main (void)
15419{
15420
34037afe
ED
15421 void (*free_cached_objects)(struct super_block *, int)
15422 __attribute__ ((unused)) = NULL;
15423 struct super_operations sops __attribute__ ((unused)) = {
15424 .free_cached_objects = free_cached_objects,
15425 };
166dd49d
BB
15426
15427 ;
15428 return 0;
15429}
15430
15431_ACEOF
15432
15433
15434 rm -Rf build && mkdir -p build
15435 echo "obj-m := conftest.o" >build/Makefile
15436 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'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15444 ac_status=$?
15445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447
15448 { $as_echo "$as_me:$LINENO: result: yes" >&5
15449$as_echo "yes" >&6; }
15450
15451cat >>confdefs.h <<\_ACEOF
34037afe 15452#define HAVE_FREE_CACHED_OBJECTS 1
166dd49d
BB
15453_ACEOF
15454
15455
15456else
15457 $as_echo "$as_me: failed program was:" >&5
15458sed 's/^/| /' conftest.$ac_ext >&5
15459
15460 { $as_echo "$as_me:$LINENO: result: no" >&5
15461$as_echo "no" >&6; }
15462
15463
15464
5c03efc3
BB
15465fi
15466
15467 rm -Rf build
15468
15469
5c03efc3
BB
15470
15471
34037afe
ED
15472 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
15473$as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
15474 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
2cf7f52b
BB
15475 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15476 rc=$?
15477 if test $rc -ne 0; then
8366cd6a 15478
2cf7f52b 15479 export=0
34037afe
ED
15480 for file in fs/inode.c; do
15481 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
2cf7f52b 15482 rc=$?
8366cd6a
PS
15483 if test $rc -eq 0; then
15484
15485 export=1
15486 break;
15487
15488fi
15489
2cf7f52b
BB
15490 done
15491 if test $export -eq 0; then
8366cd6a 15492
2cf7f52b
BB
15493 { $as_echo "$as_me:$LINENO: result: no" >&5
15494$as_echo "no" >&6; }
15495
8366cd6a
PS
15496
15497else
15498
2cf7f52b
BB
15499 { $as_echo "$as_me:$LINENO: result: yes" >&5
15500$as_echo "yes" >&6; }
15501
15502cat >>confdefs.h <<\_ACEOF
34037afe 15503#define HAVE_INSERT_INODE_LOCKED 1
2cf7f52b
BB
15504_ACEOF
15505
8366cd6a
PS
15506
15507fi
15508
15509
15510else
15511
2cf7f52b
BB
15512 { $as_echo "$as_me:$LINENO: result: yes" >&5
15513$as_echo "yes" >&6; }
15514
15515cat >>confdefs.h <<\_ACEOF
34037afe 15516#define HAVE_INSERT_INODE_LOCKED 1
2cf7f52b
BB
15517_ACEOF
15518
8366cd6a
PS
15519
15520fi
15521
2cf7f52b
BB
15522
15523
15524
34037afe
ED
15525 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
15526$as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
15527 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
15528 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15529 rc=$?
15530 if test $rc -ne 0; then
ab26409d 15531
34037afe
ED
15532 export=0
15533 for file in fs/dcache.c; do
15534 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
15535 rc=$?
15536 if test $rc -eq 0; then
ab26409d 15537
34037afe
ED
15538 export=1
15539 break;
ab26409d 15540
34037afe 15541fi
ab26409d 15542
34037afe
ED
15543 done
15544 if test $export -eq 0; then
ab26409d 15545
34037afe
ED
15546 { $as_echo "$as_me:$LINENO: result: no" >&5
15547$as_echo "no" >&6; }
ab26409d
BB
15548
15549
34037afe 15550else
ab26409d 15551
34037afe 15552 { $as_echo "$as_me:$LINENO: result: yes" >&5
ab26409d
BB
15553$as_echo "yes" >&6; }
15554
15555cat >>confdefs.h <<\_ACEOF
34037afe 15556#define HAVE_D_OBTAIN_ALIAS 1
ab26409d
BB
15557_ACEOF
15558
15559
ab26409d
BB
15560fi
15561
76659dc1 15562
34037afe 15563else
76659dc1
BB
15564
15565 { $as_echo "$as_me:$LINENO: result: yes" >&5
15566$as_echo "yes" >&6; }
15567
15568cat >>confdefs.h <<\_ACEOF
34037afe 15569#define HAVE_D_OBTAIN_ALIAS 1
76659dc1
BB
15570_ACEOF
15571
15572
76659dc1
BB
15573fi
15574
76659dc1
BB
15575
15576
15577
34037afe
ED
15578 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
15579$as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
15580 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
5547c2f1
BB
15581 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15582 rc=$?
15583 if test $rc -ne 0; then
15584
15585 export=0
34037afe
ED
15586 for file in fs/block_dev.c; do
15587 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
5547c2f1
BB
15588 rc=$?
15589 if test $rc -eq 0; then
15590
15591 export=1
15592 break;
15593
15594fi
15595
15596 done
15597 if test $export -eq 0; then
15598
15599 { $as_echo "$as_me:$LINENO: result: no" >&5
15600$as_echo "no" >&6; }
15601
15602
15603else
15604
15605 { $as_echo "$as_me:$LINENO: result: yes" >&5
15606$as_echo "yes" >&6; }
15607
15608cat >>confdefs.h <<\_ACEOF
34037afe 15609#define HAVE_CHECK_DISK_SIZE_CHANGE 1
5547c2f1
BB
15610_ACEOF
15611
15612
15613fi
15614
15615
15616else
15617
15618 { $as_echo "$as_me:$LINENO: result: yes" >&5
15619$as_echo "yes" >&6; }
15620
15621cat >>confdefs.h <<\_ACEOF
34037afe 15622#define HAVE_CHECK_DISK_SIZE_CHANGE 1
5547c2f1
BB
15623_ACEOF
15624
15625
15626fi
15627
15628
15629
15630
34037afe
ED
15631 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
15632$as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
15633 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
15634 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15635 rc=$?
15636 if test $rc -ne 0; then
15637
15638 export=0
15639 for file in mm/truncate.c; do
15640 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
15641 rc=$?
15642 if test $rc -eq 0; then
15643
15644 export=1
15645 break;
15646
15647fi
15648
15649 done
15650 if test $export -eq 0; then
15651
15652 { $as_echo "$as_me:$LINENO: result: no" >&5
15653$as_echo "no" >&6; }
15654
15655
15656else
15657
15658 { $as_echo "$as_me:$LINENO: result: yes" >&5
15659$as_echo "yes" >&6; }
15660
15661cat >>confdefs.h <<\_ACEOF
15662#define HAVE_TRUNCATE_SETSIZE 1
15663_ACEOF
15664
15665
15666fi
15667
15668
15669else
15670
15671 { $as_echo "$as_me:$LINENO: result: yes" >&5
15672$as_echo "yes" >&6; }
15673
15674cat >>confdefs.h <<\_ACEOF
15675#define HAVE_TRUNCATE_SETSIZE 1
15676_ACEOF
15677
15678
15679fi
15680
15681
15682
15683
15684 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
15685$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
15686 tmp_flags="$EXTRA_KCFLAGS"
15687 EXTRA_KCFLAGS="-Werror"
28eb9213
DH
15688
15689
15690cat confdefs.h - <<_ACEOF >conftest.c
15691/* confdefs.h. */
15692_ACEOF
15693cat confdefs.h >>conftest.$ac_ext
15694cat >>conftest.$ac_ext <<_ACEOF
15695/* end confdefs.h. */
15696
15697
34037afe 15698 #include <linux/security.h>
28eb9213
DH
15699
15700int
15701main (void)
15702{
15703
34037afe
ED
15704 struct inode *ip __attribute__ ((unused)) = NULL;
15705 struct inode *dip __attribute__ ((unused)) = NULL;
15706 const struct qstr *str __attribute__ ((unused)) = NULL;
15707 char *name __attribute__ ((unused)) = NULL;
15708 void *value __attribute__ ((unused)) = NULL;
15709 size_t len __attribute__ ((unused)) = 0;
15710
15711 security_inode_init_security(ip, dip, str, &name, &value, &len);
28eb9213
DH
15712
15713 ;
15714 return 0;
15715}
15716
15717_ACEOF
15718
15719
15720 rm -Rf build && mkdir -p build
15721 echo "obj-m := conftest.o" >build/Makefile
15722 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'
15723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15724 (eval $ac_try) 2>&5
15725 ac_status=$?
15726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15730 ac_status=$?
15731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; }; then
15733
15734 { $as_echo "$as_me:$LINENO: result: yes" >&5
15735$as_echo "yes" >&6; }
15736
15737cat >>confdefs.h <<\_ACEOF
34037afe 15738#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
28eb9213
DH
15739_ACEOF
15740
15741
15742else
15743 $as_echo "$as_me: failed program was:" >&5
15744sed 's/^/| /' conftest.$ac_ext >&5
15745
15746 { $as_echo "$as_me:$LINENO: result: no" >&5
15747$as_echo "no" >&6; }
15748
15749
15750
15751fi
15752
15753 rm -Rf build
15754
15755
34037afe 15756 EXTRA_KCFLAGS="$tmp_flags"
28eb9213
DH
15757
15758
34037afe
ED
15759 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
15760$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
15761 tmp_flags="$EXTRA_KCFLAGS"
15762 EXTRA_KCFLAGS="-Werror"
8366cd6a 15763
8366cd6a 15764
34037afe
ED
15765cat confdefs.h - <<_ACEOF >conftest.c
15766/* confdefs.h. */
15767_ACEOF
15768cat confdefs.h >>conftest.$ac_ext
15769cat >>conftest.$ac_ext <<_ACEOF
15770/* end confdefs.h. */
8366cd6a 15771
e70e591c 15772
34037afe
ED
15773 #include <linux/security.h>
15774
15775int
15776main (void)
15777{
e70e591c 15778
34037afe
ED
15779 struct inode *ip __attribute__ ((unused)) = NULL;
15780 struct inode *dip __attribute__ ((unused)) = NULL;
15781 const struct qstr *str __attribute__ ((unused)) = NULL;
15782 initxattrs func __attribute__ ((unused)) = NULL;
e70e591c 15783
34037afe 15784 security_inode_init_security(ip, dip, str, func, NULL);
6283f55e 15785
34037afe
ED
15786 ;
15787 return 0;
15788}
6283f55e 15789
34037afe 15790_ACEOF
e70e591c 15791
de0a1c09 15792
34037afe
ED
15793 rm -Rf build && mkdir -p build
15794 echo "obj-m := conftest.o" >build/Makefile
15795 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'
15796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15798 ac_status=$?
15799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15803 ac_status=$?
15804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
de0a1c09 15806
34037afe
ED
15807 { $as_echo "$as_me:$LINENO: result: yes" >&5
15808$as_echo "yes" >&6; }
15809
15810cat >>confdefs.h <<\_ACEOF
15811#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
15812_ACEOF
de0a1c09
BB
15813
15814
de0a1c09 15815else
34037afe
ED
15816 $as_echo "$as_me: failed program was:" >&5
15817sed 's/^/| /' conftest.$ac_ext >&5
de0a1c09 15818
34037afe
ED
15819 { $as_echo "$as_me:$LINENO: result: no" >&5
15820$as_echo "no" >&6; }
de0a1c09
BB
15821
15822
15823
34037afe 15824fi
de0a1c09 15825
34037afe 15826 rm -Rf build
de0a1c09 15827
e70e591c 15828
34037afe 15829 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
15830
15831
34037afe
ED
15832 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
15833$as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
15834 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
15835 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15836 rc=$?
15837 if test $rc -ne 0; then
e70e591c 15838
34037afe
ED
15839 export=0
15840 for file in fs/super.c; do
15841 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
15842 rc=$?
15843 if test $rc -eq 0; then
e70e591c 15844
34037afe
ED
15845 export=1
15846 break;
e70e591c 15847
e70e591c 15848fi
e70e591c 15849
34037afe
ED
15850 done
15851 if test $export -eq 0; then
15852
15853 { $as_echo "$as_me:$LINENO: result: no" >&5
15854$as_echo "no" >&6; }
15855
e70e591c 15856
e70e591c 15857else
e70e591c 15858
34037afe
ED
15859 { $as_echo "$as_me:$LINENO: result: yes" >&5
15860$as_echo "yes" >&6; }
e70e591c 15861
34037afe
ED
15862cat >>confdefs.h <<\_ACEOF
15863#define HAVE_MOUNT_NODEV 1
e70e591c 15864_ACEOF
34037afe
ED
15865
15866
e70e591c 15867fi
e70e591c
BB
15868
15869
34037afe
ED
15870else
15871
15872 { $as_echo "$as_me:$LINENO: result: yes" >&5
15873$as_echo "yes" >&6; }
e70e591c
BB
15874
15875cat >>confdefs.h <<\_ACEOF
34037afe 15876#define HAVE_MOUNT_NODEV 1
e70e591c
BB
15877_ACEOF
15878
e70e591c 15879
34037afe 15880fi
e70e591c 15881
e70e591c 15882
e70e591c 15883
e70e591c 15884
34037afe
ED
15885 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
15886$as_echo_n "checking whether super_block has s_shrink... " >&6; }
e70e591c 15887
e70e591c 15888
34037afe 15889cat confdefs.h - <<_ACEOF >conftest.c
e70e591c
BB
15890/* confdefs.h. */
15891_ACEOF
15892cat confdefs.h >>conftest.$ac_ext
15893cat >>conftest.$ac_ext <<_ACEOF
15894/* end confdefs.h. */
e70e591c 15895
e70e591c 15896
34037afe
ED
15897 #include <linux/fs.h>
15898
15899int
15900main (void)
15901{
15902
15903 int (*shrink)(struct shrinker *, struct shrink_control *sc)
15904 __attribute__ ((unused)) = NULL;
15905 struct super_block sb __attribute__ ((unused)) = {
15906 .s_shrink.shrink = shrink,
15907 .s_shrink.seeks = DEFAULT_SEEKS,
15908 .s_shrink.batch = 0,
15909 };
15910
15911 ;
15912 return 0;
15913}
e70e591c 15914
e70e591c 15915_ACEOF
34037afe
ED
15916
15917
15918 rm -Rf build && mkdir -p build
15919 echo "obj-m := conftest.o" >build/Makefile
15920 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'
15921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922 (eval $ac_try) 2>&5
e70e591c 15923 ac_status=$?
e70e591c 15924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037afe
ED
15925 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15928 ac_status=$?
15929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; }; then
15931
15932 { $as_echo "$as_me:$LINENO: result: yes" >&5
15933$as_echo "yes" >&6; }
15934
15935cat >>confdefs.h <<\_ACEOF
15936#define HAVE_SHRINK 1
15937_ACEOF
15938
15939
15940
e70e591c
BB
15941else
15942 $as_echo "$as_me: failed program was:" >&5
15943sed 's/^/| /' conftest.$ac_ext >&5
15944
34037afe
ED
15945 { $as_echo "$as_me:$LINENO: result: no" >&5
15946$as_echo "no" >&6; }
e70e591c 15947
e70e591c 15948
e70e591c 15949
e70e591c 15950fi
e70e591c 15951
34037afe 15952 rm -Rf build
e70e591c
BB
15953
15954
15955
15956
34037afe
ED
15957 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
15958$as_echo_n "checking whether super_block has s_bdi... " >&6; }
15959
15960
15961cat confdefs.h - <<_ACEOF >conftest.c
e70e591c
BB
15962/* confdefs.h. */
15963_ACEOF
15964cat confdefs.h >>conftest.$ac_ext
15965cat >>conftest.$ac_ext <<_ACEOF
15966/* end confdefs.h. */
15967
34037afe
ED
15968
15969 #include <linux/fs.h>
15970
e70e591c 15971int
34037afe 15972main (void)
e70e591c 15973{
34037afe
ED
15974
15975 struct super_block sb __attribute__ ((unused));
15976 sb.s_bdi = NULL;
15977
e70e591c
BB
15978 ;
15979 return 0;
15980}
34037afe 15981
e70e591c 15982_ACEOF
34037afe
ED
15983
15984
15985 rm -Rf build && mkdir -p build
15986 echo "obj-m := conftest.o" >build/Makefile
15987 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'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
e70e591c 15990 ac_status=$?
e70e591c 15991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037afe
ED
15992 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994 (eval $ac_try) 2>&5
15995 ac_status=$?
15996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); }; }; then
15998
15999 { $as_echo "$as_me:$LINENO: result: yes" >&5
16000$as_echo "yes" >&6; }
16001
16002cat >>confdefs.h <<\_ACEOF
16003#define HAVE_BDI 1
16004_ACEOF
16005
16006
e70e591c
BB
16007else
16008 $as_echo "$as_me: failed program was:" >&5
16009sed 's/^/| /' conftest.$ac_ext >&5
16010
34037afe
ED
16011 { $as_echo "$as_me:$LINENO: result: no" >&5
16012$as_echo "no" >&6; }
16013
16014
16015
e70e591c
BB
16016fi
16017
34037afe 16018 rm -Rf build
e70e591c 16019
e70e591c 16020
34037afe
ED
16021
16022
16023 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
16024$as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
16025 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
16026 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16027 rc=$?
16028 if test $rc -ne 0; then
16029
16030 export=0
16031 for file in mm/backing-dev.c; do
16032 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
16033 rc=$?
16034 if test $rc -eq 0; then
16035
16036 export=1
16037 break;
16038
e70e591c
BB
16039fi
16040
34037afe
ED
16041 done
16042 if test $export -eq 0; then
16043
16044 { $as_echo "$as_me:$LINENO: result: no" >&5
16045$as_echo "no" >&6; }
e70e591c
BB
16046
16047
e70e591c 16048else
e70e591c 16049
34037afe
ED
16050 { $as_echo "$as_me:$LINENO: result: yes" >&5
16051$as_echo "yes" >&6; }
16052
16053cat >>confdefs.h <<\_ACEOF
16054#define HAVE_BDI_SETUP_AND_REGISTER 1
e70e591c 16055_ACEOF
e70e591c 16056
e70e591c 16057
e70e591c 16058fi
e70e591c 16059
e70e591c
BB
16060
16061else
34037afe
ED
16062
16063 { $as_echo "$as_me:$LINENO: result: yes" >&5
16064$as_echo "yes" >&6; }
16065
16066cat >>confdefs.h <<\_ACEOF
16067#define HAVE_BDI_SETUP_AND_REGISTER 1
16068_ACEOF
16069
16070
e70e591c
BB
16071fi
16072
16073
16074
34037afe
ED
16075
16076 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
16077$as_echo_n "checking whether set_nlink() is available... " >&6; }
16078
16079
16080cat confdefs.h - <<_ACEOF >conftest.c
e70e591c
BB
16081/* confdefs.h. */
16082_ACEOF
16083cat confdefs.h >>conftest.$ac_ext
16084cat >>conftest.$ac_ext <<_ACEOF
16085/* end confdefs.h. */
16086
34037afe
ED
16087
16088 #include <linux/fs.h>
16089
e70e591c 16090int
34037afe 16091main (void)
e70e591c 16092{
34037afe
ED
16093
16094 struct inode node;
16095 unsigned int link = 0;
16096 (void) set_nlink(&node, link);
16097
e70e591c
BB
16098 ;
16099 return 0;
16100}
34037afe 16101
e70e591c 16102_ACEOF
34037afe
ED
16103
16104
16105 rm -Rf build && mkdir -p build
16106 echo "obj-m := conftest.o" >build/Makefile
16107 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'
16108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109 (eval $ac_try) 2>&5
e70e591c 16110 ac_status=$?
e70e591c 16111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037afe
ED
16112 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16115 ac_status=$?
16116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16118
16119 { $as_echo "$as_me:$LINENO: result: yes" >&5
16120$as_echo "yes" >&6; }
16121
16122cat >>confdefs.h <<\_ACEOF
16123#define HAVE_SET_NLINK 1
16124_ACEOF
16125
16126
e70e591c
BB
16127else
16128 $as_echo "$as_me: failed program was:" >&5
16129sed 's/^/| /' conftest.$ac_ext >&5
16130
34037afe
ED
16131 { $as_echo "$as_me:$LINENO: result: no" >&5
16132$as_echo "no" >&6; }
16133
16134
e70e591c 16135
e70e591c 16136fi
e70e591c 16137
34037afe
ED
16138 rm -Rf build
16139
16140
16141
16142
16143 if test "$LINUX_OBJ" != "$LINUX"; then
16144
16145 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
e70e591c 16146
e70e591c
BB
16147fi
16148
16149
e70e591c
BB
16150
16151
34037afe
ED
16152 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
16153 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
16154 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
e70e591c
BB
16155
16156
34037afe
ED
16157 ;;
16158 user)
e70e591c 16159
e70e591c 16160
34037afe
ED
16161# Check whether --with-udevdir was given.
16162if test "${with_udevdir+set}" = set; then
16163 withval=$with_udevdir; udevdir=$withval
16164else
16165 udevdir='${exec_prefix}/lib/udev'
e70e591c 16166fi
34037afe
ED
16167
16168
16169
16170# Check whether --with-udevruledir was given.
16171if test "${with_udevruledir+set}" = set; then
16172 withval=$with_udevruledir; udevruledir=$withval
16173else
16174 udevruledir='${udevdir}/rules.d'
16175fi
16176
16177
16178
16179
16180
16181
16182 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
16183$as_echo_n "checking for target asm dir... " >&6; }
16184 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
16185
16186 case $TARGET_ARCH in
16187 i386|x86_64)
16188 TARGET_ASM_DIR=asm-${TARGET_ARCH}
16189 ;;
16190 *)
16191 TARGET_ASM_DIR=asm-generic
16192 ;;
16193 esac
16194
16195
16196 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
16197$as_echo "$TARGET_ASM_DIR" >&6; }
16198
16199
16200 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
16201$as_echo_n "checking for ioctl()... " >&6; }
16202 cat >conftest.$ac_ext <<_ACEOF
16203/* confdefs.h. */
16204_ACEOF
16205cat confdefs.h >>conftest.$ac_ext
16206cat >>conftest.$ac_ext <<_ACEOF
16207/* end confdefs.h. */
16208#include <unistd.h>
16209
16210_ACEOF
16211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16212 $EGREP "ioctl" >/dev/null 2>&1; then
16213 is_unistd=yes
16214else
16215 is_unistd=no
16216fi
16217rm -f conftest*
16218
16219 cat >conftest.$ac_ext <<_ACEOF
16220/* confdefs.h. */
16221_ACEOF
16222cat confdefs.h >>conftest.$ac_ext
16223cat >>conftest.$ac_ext <<_ACEOF
16224/* end confdefs.h. */
16225#include <sys/ioctl.h>
16226
16227_ACEOF
16228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16229 $EGREP "ioctl" >/dev/null 2>&1; then
16230 is_sys_ioctl=yes
16231else
16232 is_sys_ioctl=no
16233fi
16234rm -f conftest*
16235
16236 cat >conftest.$ac_ext <<_ACEOF
16237/* confdefs.h. */
16238_ACEOF
16239cat confdefs.h >>conftest.$ac_ext
16240cat >>conftest.$ac_ext <<_ACEOF
16241/* end confdefs.h. */
16242#include <stropts.h>
16243
16244_ACEOF
16245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16246 $EGREP "ioctl" >/dev/null 2>&1; then
16247 is_stropts=yes
16248else
16249 is_stropts=no
16250fi
16251rm -f conftest*
16252
16253
16254 if test $is_unistd = yes; then
16255 result=unistd.h
16256
16257cat >>confdefs.h <<\_ACEOF
16258#define HAVE_IOCTL_IN_UNISTD_H 1
16259_ACEOF
16260
16261 else
16262
16263 if test $is_sys_ioctl = yes; then
16264 result=sys/ioctl.h
16265
16266cat >>confdefs.h <<\_ACEOF
16267#define HAVE_IOCTL_IN_SYS_IOCTL_H 1
16268_ACEOF
16269
16270 elif test $is_stropts = yes; then
16271
16272cat >>confdefs.h <<\_ACEOF
16273#define HAVE_IOCTL_IN_STROPTS_H 1
16274_ACEOF
16275
16276 else
16277 result=no
16278 fi
16279 fi
16280
16281 if test $result = no; then
16282 { $as_echo "$as_me:$LINENO: result: no" >&5
16283$as_echo "no" >&6; }
16284 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
16285$as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
16286 { (exit 1); exit 1; }; }
16287 else
16288 { $as_echo "$as_me:$LINENO: result: yes" >&5
16289$as_echo "yes" >&6; }
16290 fi
16291
16292
16293 ZLIB=
16294
16295 if test "${ac_cv_header_zlib_h+set}" = set; then
16296 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16297$as_echo_n "checking for zlib.h... " >&6; }
16298if test "${ac_cv_header_zlib_h+set}" = set; then
16299 $as_echo_n "(cached) " >&6
16300fi
16301{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16302$as_echo "$ac_cv_header_zlib_h" >&6; }
e70e591c
BB
16303else
16304 # Is the header compilable?
34037afe
ED
16305{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
16306$as_echo_n "checking zlib.h usability... " >&6; }
e70e591c
BB
16307cat >conftest.$ac_ext <<_ACEOF
16308/* confdefs.h. */
16309_ACEOF
16310cat confdefs.h >>conftest.$ac_ext
16311cat >>conftest.$ac_ext <<_ACEOF
16312/* end confdefs.h. */
16313$ac_includes_default
34037afe 16314#include <zlib.h>
e70e591c
BB
16315_ACEOF
16316rm -f conftest.$ac_objext
16317if { (ac_try="$ac_compile"
16318case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16321esac
16322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16323$as_echo "$ac_try_echo") >&5
16324 (eval "$ac_compile") 2>conftest.er1
16325 ac_status=$?
16326 grep -v '^ *+' conftest.er1 >conftest.err
16327 rm -f conftest.er1
16328 cat conftest.err >&5
16329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } && {
16331 test -z "$ac_c_werror_flag" ||
16332 test ! -s conftest.err
16333 } && test -s conftest.$ac_objext; then
16334 ac_header_compiler=yes
16335else
16336 $as_echo "$as_me: failed program was:" >&5
16337sed 's/^/| /' conftest.$ac_ext >&5
16338
16339 ac_header_compiler=no
16340fi
16341
16342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16343{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16344$as_echo "$ac_header_compiler" >&6; }
16345
16346# Is the header present?
34037afe
ED
16347{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
16348$as_echo_n "checking zlib.h presence... " >&6; }
e70e591c
BB
16349cat >conftest.$ac_ext <<_ACEOF
16350/* confdefs.h. */
16351_ACEOF
16352cat confdefs.h >>conftest.$ac_ext
16353cat >>conftest.$ac_ext <<_ACEOF
16354/* end confdefs.h. */
34037afe 16355#include <zlib.h>
e70e591c
BB
16356_ACEOF
16357if { (ac_try="$ac_cpp conftest.$ac_ext"
16358case "(($ac_try" in
16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16361esac
16362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16363$as_echo "$ac_try_echo") >&5
16364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16365 ac_status=$?
16366 grep -v '^ *+' conftest.er1 >conftest.err
16367 rm -f conftest.er1
16368 cat conftest.err >&5
16369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } >/dev/null && {
16371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16372 test ! -s conftest.err
16373 }; then
16374 ac_header_preproc=yes
16375else
16376 $as_echo "$as_me: failed program was:" >&5
16377sed 's/^/| /' conftest.$ac_ext >&5
16378
16379 ac_header_preproc=no
16380fi
16381
16382rm -f conftest.err conftest.$ac_ext
16383{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16384$as_echo "$ac_header_preproc" >&6; }
16385
16386# So? What about this header?
16387case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16388 yes:no: )
34037afe
ED
16389 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16390$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16391 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
16392$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
e70e591c
BB
16393 ac_header_preproc=yes
16394 ;;
16395 no:yes:* )
34037afe
ED
16396 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
16397$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
16398 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
16399$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
16400 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
16401$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
16402 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
16403$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16404 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
16405$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
16406 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
16407$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
e70e591c
BB
16408
16409 ;;
16410esac
34037afe
ED
16411{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16412$as_echo_n "checking for zlib.h... " >&6; }
16413if test "${ac_cv_header_zlib_h+set}" = set; then
e70e591c
BB
16414 $as_echo_n "(cached) " >&6
16415else
34037afe 16416 ac_cv_header_zlib_h=$ac_header_preproc
e70e591c 16417fi
34037afe
ED
16418{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16419$as_echo "$ac_cv_header_zlib_h" >&6; }
e70e591c
BB
16420
16421fi
34037afe 16422if test "x$ac_cv_header_zlib_h" = x""yes; then
e70e591c
BB
16423 :
16424else
16425 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16427{ { $as_echo "$as_me:$LINENO: error:
34037afe 16428 *** zlib.h missing, zlib-devel package required
e70e591c
BB
16429See \`config.log' for more details." >&5
16430$as_echo "$as_me: error:
34037afe 16431 *** zlib.h missing, zlib-devel package required
e70e591c
BB
16432See \`config.log' for more details." >&2;}
16433 { (exit 1); exit 1; }; }; }
16434fi
16435
16436
16437
16438
34037afe
ED
16439{ $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
16440$as_echo_n "checking for compress2 in -lz... " >&6; }
16441if test "${ac_cv_lib_z_compress2+set}" = set; then
e70e591c
BB
16442 $as_echo_n "(cached) " >&6
16443else
16444 ac_check_lib_save_LIBS=$LIBS
34037afe 16445LIBS="-lz $LIBS"
e70e591c
BB
16446cat >conftest.$ac_ext <<_ACEOF
16447/* confdefs.h. */
16448_ACEOF
16449cat confdefs.h >>conftest.$ac_ext
16450cat >>conftest.$ac_ext <<_ACEOF
16451/* end confdefs.h. */
16452
16453/* Override any GCC internal prototype to avoid an error.
16454 Use char because int might match the return type of a GCC
16455 builtin and then its argument prototype would still apply. */
16456#ifdef __cplusplus
16457extern "C"
16458#endif
34037afe 16459char compress2 ();
e70e591c
BB
16460int
16461main ()
16462{
34037afe 16463return compress2 ();
e70e591c
BB
16464 ;
16465 return 0;
16466}
16467_ACEOF
16468rm -f conftest.$ac_objext conftest$ac_exeext
16469if { (ac_try="$ac_link"
16470case "(($ac_try" in
16471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472 *) ac_try_echo=$ac_try;;
16473esac
16474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16475$as_echo "$ac_try_echo") >&5
16476 (eval "$ac_link") 2>conftest.er1
16477 ac_status=$?
16478 grep -v '^ *+' conftest.er1 >conftest.err
16479 rm -f conftest.er1
16480 cat conftest.err >&5
16481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } && {
16483 test -z "$ac_c_werror_flag" ||
16484 test ! -s conftest.err
16485 } && test -s conftest$ac_exeext && {
16486 test "$cross_compiling" = yes ||
16487 $as_test_x conftest$ac_exeext
16488 }; then
34037afe 16489 ac_cv_lib_z_compress2=yes
e70e591c
BB
16490else
16491 $as_echo "$as_me: failed program was:" >&5
16492sed 's/^/| /' conftest.$ac_ext >&5
16493
34037afe 16494 ac_cv_lib_z_compress2=no
e70e591c
BB
16495fi
16496
16497rm -rf conftest.dSYM
16498rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16499 conftest$ac_exeext conftest.$ac_ext
16500LIBS=$ac_check_lib_save_LIBS
16501fi
34037afe
ED
16502{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
16503$as_echo "$ac_cv_lib_z_compress2" >&6; }
16504if test "x$ac_cv_lib_z_compress2" = x""yes; then
e70e591c 16505 cat >>confdefs.h <<_ACEOF
34037afe 16506#define HAVE_LIBZ 1
e70e591c
BB
16507_ACEOF
16508
34037afe 16509 LIBS="-lz $LIBS"
e70e591c
BB
16510
16511else
16512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16514{ { $as_echo "$as_me:$LINENO: error:
34037afe 16515 *** compress2() missing, zlib-devel package required
e70e591c
BB
16516See \`config.log' for more details." >&5
16517$as_echo "$as_me: error:
34037afe 16518 *** compress2() missing, zlib-devel package required
e70e591c
BB
16519See \`config.log' for more details." >&2;}
16520 { (exit 1); exit 1; }; }; }
16521fi
16522
16523
16524
34037afe
ED
16525{ $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
16526$as_echo_n "checking for uncompress in -lz... " >&6; }
16527if test "${ac_cv_lib_z_uncompress+set}" = set; then
e70e591c
BB
16528 $as_echo_n "(cached) " >&6
16529else
16530 ac_check_lib_save_LIBS=$LIBS
34037afe 16531LIBS="-lz $LIBS"
e70e591c
BB
16532cat >conftest.$ac_ext <<_ACEOF
16533/* confdefs.h. */
16534_ACEOF
16535cat confdefs.h >>conftest.$ac_ext
16536cat >>conftest.$ac_ext <<_ACEOF
16537/* end confdefs.h. */
16538
16539/* Override any GCC internal prototype to avoid an error.
16540 Use char because int might match the return type of a GCC
16541 builtin and then its argument prototype would still apply. */
16542#ifdef __cplusplus
16543extern "C"
16544#endif
34037afe 16545char uncompress ();
e70e591c
BB
16546int
16547main ()
16548{
34037afe 16549return uncompress ();
e70e591c
BB
16550 ;
16551 return 0;
16552}
16553_ACEOF
16554rm -f conftest.$ac_objext conftest$ac_exeext
16555if { (ac_try="$ac_link"
16556case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16559esac
16560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16561$as_echo "$ac_try_echo") >&5
16562 (eval "$ac_link") 2>conftest.er1
16563 ac_status=$?
16564 grep -v '^ *+' conftest.er1 >conftest.err
16565 rm -f conftest.er1
16566 cat conftest.err >&5
16567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } && {
16569 test -z "$ac_c_werror_flag" ||
16570 test ! -s conftest.err
16571 } && test -s conftest$ac_exeext && {
16572 test "$cross_compiling" = yes ||
16573 $as_test_x conftest$ac_exeext
16574 }; then
34037afe 16575 ac_cv_lib_z_uncompress=yes
e70e591c
BB
16576else
16577 $as_echo "$as_me: failed program was:" >&5
16578sed 's/^/| /' conftest.$ac_ext >&5
16579
34037afe 16580 ac_cv_lib_z_uncompress=no
e70e591c
BB
16581fi
16582
16583rm -rf conftest.dSYM
16584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16585 conftest$ac_exeext conftest.$ac_ext
16586LIBS=$ac_check_lib_save_LIBS
16587fi
34037afe
ED
16588{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
16589$as_echo "$ac_cv_lib_z_uncompress" >&6; }
16590if test "x$ac_cv_lib_z_uncompress" = x""yes; then
16591 cat >>confdefs.h <<_ACEOF
16592#define HAVE_LIBZ 1
e70e591c
BB
16593_ACEOF
16594
34037afe 16595 LIBS="-lz $LIBS"
e70e591c
BB
16596
16597else
16598 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16599$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16600{ { $as_echo "$as_me:$LINENO: error:
34037afe 16601 *** uncompress() missing, zlib-devel package required
e70e591c
BB
16602See \`config.log' for more details." >&5
16603$as_echo "$as_me: error:
34037afe 16604 *** uncompress() missing, zlib-devel package required
e70e591c
BB
16605See \`config.log' for more details." >&2;}
16606 { (exit 1); exit 1; }; }; }
16607fi
16608
16609
e70e591c 16610
34037afe
ED
16611{ $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
16612$as_echo_n "checking for crc32 in -lz... " >&6; }
16613if test "${ac_cv_lib_z_crc32+set}" = set; then
e70e591c
BB
16614 $as_echo_n "(cached) " >&6
16615else
16616 ac_check_lib_save_LIBS=$LIBS
34037afe 16617LIBS="-lz $LIBS"
e70e591c
BB
16618cat >conftest.$ac_ext <<_ACEOF
16619/* confdefs.h. */
16620_ACEOF
16621cat confdefs.h >>conftest.$ac_ext
16622cat >>conftest.$ac_ext <<_ACEOF
16623/* end confdefs.h. */
16624
16625/* Override any GCC internal prototype to avoid an error.
16626 Use char because int might match the return type of a GCC
16627 builtin and then its argument prototype would still apply. */
16628#ifdef __cplusplus
16629extern "C"
16630#endif
34037afe 16631char crc32 ();
e70e591c
BB
16632int
16633main ()
16634{
34037afe 16635return crc32 ();
e70e591c
BB
16636 ;
16637 return 0;
16638}
16639_ACEOF
16640rm -f conftest.$ac_objext conftest$ac_exeext
16641if { (ac_try="$ac_link"
16642case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16645esac
16646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16647$as_echo "$ac_try_echo") >&5
16648 (eval "$ac_link") 2>conftest.er1
16649 ac_status=$?
16650 grep -v '^ *+' conftest.er1 >conftest.err
16651 rm -f conftest.er1
16652 cat conftest.err >&5
16653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } && {
16655 test -z "$ac_c_werror_flag" ||
16656 test ! -s conftest.err
16657 } && test -s conftest$ac_exeext && {
16658 test "$cross_compiling" = yes ||
16659 $as_test_x conftest$ac_exeext
16660 }; then
34037afe 16661 ac_cv_lib_z_crc32=yes
e70e591c
BB
16662else
16663 $as_echo "$as_me: failed program was:" >&5
16664sed 's/^/| /' conftest.$ac_ext >&5
16665
34037afe 16666 ac_cv_lib_z_crc32=no
e70e591c
BB
16667fi
16668
16669rm -rf conftest.dSYM
16670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16671 conftest$ac_exeext conftest.$ac_ext
16672LIBS=$ac_check_lib_save_LIBS
16673fi
34037afe
ED
16674{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
16675$as_echo "$ac_cv_lib_z_crc32" >&6; }
16676if test "x$ac_cv_lib_z_crc32" = x""yes; then
16677 cat >>confdefs.h <<_ACEOF
16678#define HAVE_LIBZ 1
e70e591c
BB
16679_ACEOF
16680
34037afe 16681 LIBS="-lz $LIBS"
e70e591c
BB
16682
16683else
e70e591c
BB
16684 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34037afe
ED
16686{ { $as_echo "$as_me:$LINENO: error:
16687 *** crc32() missing, zlib-devel package required
e70e591c 16688See \`config.log' for more details." >&5
34037afe
ED
16689$as_echo "$as_me: error:
16690 *** crc32() missing, zlib-devel package required
e70e591c
BB
16691See \`config.log' for more details." >&2;}
16692 { (exit 1); exit 1; }; }; }
16693fi
16694
16695
34037afe 16696 ZLIB="-lz"
e70e591c
BB
16697
16698
34037afe
ED
16699cat >>confdefs.h <<\_ACEOF
16700#define HAVE_ZLIB 1
16701_ACEOF
b3259b6a 16702
b3259b6a
BB
16703
16704
34037afe 16705 LIBUUID=
b3259b6a 16706
34037afe
ED
16707 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
16708 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
16709$as_echo_n "checking for uuid/uuid.h... " >&6; }
16710if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
b3259b6a
BB
16711 $as_echo_n "(cached) " >&6
16712fi
34037afe
ED
16713{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
16714$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
b3259b6a
BB
16715else
16716 # Is the header compilable?
34037afe
ED
16717{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
16718$as_echo_n "checking uuid/uuid.h usability... " >&6; }
b3259b6a
BB
16719cat >conftest.$ac_ext <<_ACEOF
16720/* confdefs.h. */
16721_ACEOF
16722cat confdefs.h >>conftest.$ac_ext
16723cat >>conftest.$ac_ext <<_ACEOF
16724/* end confdefs.h. */
16725$ac_includes_default
34037afe 16726#include <uuid/uuid.h>
b3259b6a
BB
16727_ACEOF
16728rm -f conftest.$ac_objext
16729if { (ac_try="$ac_compile"
16730case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16733esac
16734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16735$as_echo "$ac_try_echo") >&5
16736 (eval "$ac_compile") 2>conftest.er1
16737 ac_status=$?
16738 grep -v '^ *+' conftest.er1 >conftest.err
16739 rm -f conftest.er1
16740 cat conftest.err >&5
16741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } && {
16743 test -z "$ac_c_werror_flag" ||
16744 test ! -s conftest.err
16745 } && test -s conftest.$ac_objext; then
16746 ac_header_compiler=yes
16747else
16748 $as_echo "$as_me: failed program was:" >&5
16749sed 's/^/| /' conftest.$ac_ext >&5
16750
16751 ac_header_compiler=no
16752fi
16753
16754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16756$as_echo "$ac_header_compiler" >&6; }
16757
16758# Is the header present?
34037afe
ED
16759{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
16760$as_echo_n "checking uuid/uuid.h presence... " >&6; }
b3259b6a
BB
16761cat >conftest.$ac_ext <<_ACEOF
16762/* confdefs.h. */
16763_ACEOF
16764cat confdefs.h >>conftest.$ac_ext
16765cat >>conftest.$ac_ext <<_ACEOF
16766/* end confdefs.h. */
34037afe 16767#include <uuid/uuid.h>
b3259b6a
BB
16768_ACEOF
16769if { (ac_try="$ac_cpp conftest.$ac_ext"
16770case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16773esac
16774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16775$as_echo "$ac_try_echo") >&5
16776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16777 ac_status=$?
16778 grep -v '^ *+' conftest.er1 >conftest.err
16779 rm -f conftest.er1
16780 cat conftest.err >&5
16781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } >/dev/null && {
16783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16784 test ! -s conftest.err
16785 }; then
16786 ac_header_preproc=yes
16787else
16788 $as_echo "$as_me: failed program was:" >&5
16789sed 's/^/| /' conftest.$ac_ext >&5
16790
16791 ac_header_preproc=no
16792fi
16793
16794rm -f conftest.err conftest.$ac_ext
16795{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16796$as_echo "$ac_header_preproc" >&6; }
16797
16798# So? What about this header?
16799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16800 yes:no: )
34037afe
ED
16801 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
16802$as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16803 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
16804$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
b3259b6a
BB
16805 ac_header_preproc=yes
16806 ;;
16807 no:yes:* )
34037afe
ED
16808 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
16809$as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
16810 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
16811$as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
16812 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
16813$as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
16814 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
16815$as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
16816 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
16817$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
16818 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
16819$as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
16820
16821 ;;
16822esac
16823{ $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
16824$as_echo_n "checking for uuid/uuid.h... " >&6; }
16825if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
b3259b6a
BB
16826 $as_echo_n "(cached) " >&6
16827else
34037afe 16828 ac_cv_header_uuid_uuid_h=$ac_header_preproc
b3259b6a 16829fi
34037afe
ED
16830{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
16831$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
b3259b6a
BB
16832
16833fi
34037afe
ED
16834if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
16835 :
16836else
16837 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16839{ { $as_echo "$as_me:$LINENO: error:
16840 *** uuid/uuid.h missing, libuuid-devel package required
16841See \`config.log' for more details." >&5
16842$as_echo "$as_me: error:
16843 *** uuid/uuid.h missing, libuuid-devel package required
16844See \`config.log' for more details." >&2;}
16845 { (exit 1); exit 1; }; }; }
16846fi
b3259b6a 16847
34037afe
ED
16848
16849
16850
16851{ $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
16852$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
16853if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
b3259b6a
BB
16854 $as_echo_n "(cached) " >&6
16855else
16856 ac_check_lib_save_LIBS=$LIBS
34037afe 16857LIBS="-luuid $LIBS"
b3259b6a
BB
16858cat >conftest.$ac_ext <<_ACEOF
16859/* confdefs.h. */
16860_ACEOF
16861cat confdefs.h >>conftest.$ac_ext
16862cat >>conftest.$ac_ext <<_ACEOF
16863/* end confdefs.h. */
16864
16865/* Override any GCC internal prototype to avoid an error.
16866 Use char because int might match the return type of a GCC
16867 builtin and then its argument prototype would still apply. */
16868#ifdef __cplusplus
16869extern "C"
16870#endif
34037afe 16871char uuid_generate ();
b3259b6a
BB
16872int
16873main ()
16874{
34037afe 16875return uuid_generate ();
b3259b6a
BB
16876 ;
16877 return 0;
16878}
16879_ACEOF
16880rm -f conftest.$ac_objext conftest$ac_exeext
16881if { (ac_try="$ac_link"
16882case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16885esac
16886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16887$as_echo "$ac_try_echo") >&5
16888 (eval "$ac_link") 2>conftest.er1
16889 ac_status=$?
16890 grep -v '^ *+' conftest.er1 >conftest.err
16891 rm -f conftest.er1
16892 cat conftest.err >&5
16893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } && {
16895 test -z "$ac_c_werror_flag" ||
16896 test ! -s conftest.err
16897 } && test -s conftest$ac_exeext && {
16898 test "$cross_compiling" = yes ||
16899 $as_test_x conftest$ac_exeext
16900 }; then
34037afe 16901 ac_cv_lib_uuid_uuid_generate=yes
b3259b6a
BB
16902else
16903 $as_echo "$as_me: failed program was:" >&5
16904sed 's/^/| /' conftest.$ac_ext >&5
16905
34037afe 16906 ac_cv_lib_uuid_uuid_generate=no
b3259b6a
BB
16907fi
16908
16909rm -rf conftest.dSYM
16910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16911 conftest$ac_exeext conftest.$ac_ext
16912LIBS=$ac_check_lib_save_LIBS
16913fi
34037afe
ED
16914{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
16915$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
16916if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
16917 cat >>confdefs.h <<_ACEOF
16918#define HAVE_LIBUUID 1
16919_ACEOF
b3259b6a 16920
34037afe
ED
16921 LIBS="-luuid $LIBS"
16922
16923else
16924 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16926{ { $as_echo "$as_me:$LINENO: error:
16927 *** uuid_generate() missing, libuuid-devel package required
16928See \`config.log' for more details." >&5
16929$as_echo "$as_me: error:
16930 *** uuid_generate() missing, libuuid-devel package required
16931See \`config.log' for more details." >&2;}
16932 { (exit 1); exit 1; }; }; }
16933fi
16934
16935
16936
16937{ $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
16938$as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
16939if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
16940 $as_echo_n "(cached) " >&6
16941else
16942 ac_check_lib_save_LIBS=$LIBS
16943LIBS="-luuid $LIBS"
16944cat >conftest.$ac_ext <<_ACEOF
16945/* confdefs.h. */
16946_ACEOF
16947cat confdefs.h >>conftest.$ac_ext
16948cat >>conftest.$ac_ext <<_ACEOF
16949/* end confdefs.h. */
16950
16951/* Override any GCC internal prototype to avoid an error.
16952 Use char because int might match the return type of a GCC
16953 builtin and then its argument prototype would still apply. */
16954#ifdef __cplusplus
16955extern "C"
16956#endif
16957char uuid_is_null ();
16958int
16959main ()
16960{
16961return uuid_is_null ();
16962 ;
16963 return 0;
16964}
16965_ACEOF
16966rm -f conftest.$ac_objext conftest$ac_exeext
16967if { (ac_try="$ac_link"
16968case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16971esac
16972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16973$as_echo "$ac_try_echo") >&5
16974 (eval "$ac_link") 2>conftest.er1
16975 ac_status=$?
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
16979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } && {
16981 test -z "$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 } && test -s conftest$ac_exeext && {
16984 test "$cross_compiling" = yes ||
16985 $as_test_x conftest$ac_exeext
16986 }; then
16987 ac_cv_lib_uuid_uuid_is_null=yes
16988else
16989 $as_echo "$as_me: failed program was:" >&5
16990sed 's/^/| /' conftest.$ac_ext >&5
16991
16992 ac_cv_lib_uuid_uuid_is_null=no
16993fi
16994
16995rm -rf conftest.dSYM
16996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16997 conftest$ac_exeext conftest.$ac_ext
16998LIBS=$ac_check_lib_save_LIBS
16999fi
17000{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
17001$as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
17002if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
17003 cat >>confdefs.h <<_ACEOF
17004#define HAVE_LIBUUID 1
17005_ACEOF
17006
17007 LIBS="-luuid $LIBS"
17008
17009else
17010 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17012{ { $as_echo "$as_me:$LINENO: error:
17013 *** uuid_is_null() missing, libuuid-devel package required
17014See \`config.log' for more details." >&5
17015$as_echo "$as_me: error:
17016 *** uuid_is_null() missing, libuuid-devel package required
17017See \`config.log' for more details." >&2;}
17018 { (exit 1); exit 1; }; }; }
17019fi
17020
17021
17022 LIBUUID="-luuid"
b3259b6a
BB
17023
17024
17025cat >>confdefs.h <<\_ACEOF
34037afe
ED
17026#define HAVE_LIBUUID 1
17027_ACEOF
17028
17029
17030
17031
17032# Check whether --with-blkid was given.
17033if test "${with_blkid+set}" = set; then
17034 withval=$with_blkid;
17035else
17036 with_blkid=check
17037fi
17038
17039
17040 LIBBLKID=
17041 if test "x$with_blkid" != xno; then
17042
17043 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
17044$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
17045if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
17046 $as_echo_n "(cached) " >&6
17047else
17048 ac_check_lib_save_LIBS=$LIBS
17049LIBS="-lblkid $LIBS"
17050cat >conftest.$ac_ext <<_ACEOF
17051/* confdefs.h. */
17052_ACEOF
17053cat confdefs.h >>conftest.$ac_ext
17054cat >>conftest.$ac_ext <<_ACEOF
17055/* end confdefs.h. */
17056
17057/* Override any GCC internal prototype to avoid an error.
17058 Use char because int might match the return type of a GCC
17059 builtin and then its argument prototype would still apply. */
17060#ifdef __cplusplus
17061extern "C"
17062#endif
17063char blkid_get_cache ();
17064int
17065main ()
17066{
17067return blkid_get_cache ();
17068 ;
17069 return 0;
17070}
b3259b6a 17071_ACEOF
34037afe
ED
17072rm -f conftest.$ac_objext conftest$ac_exeext
17073if { (ac_try="$ac_link"
17074case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17077esac
17078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17079$as_echo "$ac_try_echo") >&5
17080 (eval "$ac_link") 2>conftest.er1
17081 ac_status=$?
17082 grep -v '^ *+' conftest.er1 >conftest.err
17083 rm -f conftest.er1
17084 cat conftest.err >&5
17085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); } && {
17087 test -z "$ac_c_werror_flag" ||
17088 test ! -s conftest.err
17089 } && test -s conftest$ac_exeext && {
17090 test "$cross_compiling" = yes ||
17091 $as_test_x conftest$ac_exeext
17092 }; then
17093 ac_cv_lib_blkid_blkid_get_cache=yes
17094else
17095 $as_echo "$as_me: failed program was:" >&5
17096sed 's/^/| /' conftest.$ac_ext >&5
17097
17098 ac_cv_lib_blkid_blkid_get_cache=no
17099fi
17100
17101rm -rf conftest.dSYM
17102rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17103 conftest$ac_exeext conftest.$ac_ext
17104LIBS=$ac_check_lib_save_LIBS
17105fi
17106{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
17107$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
17108if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
17109
17110 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
17111$as_echo_n "checking for blkid zfs support... " >&6; }
17112
17113 ZFS_DEV=`mktemp`
17114 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
17115 >/dev/null 2>/dev/null
17116 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
17117 dd of=$ZFS_DEV bs=1k count=8 \
17118 seek=132 conv=notrunc &>/dev/null \
17119 >/dev/null 2>/dev/null
17120
17121 saved_LDFLAGS="$LDFLAGS"
17122 LDFLAGS="-lblkid"
17123
17124 if test "$cross_compiling" = yes; then
17125 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17127{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17128See \`config.log' for more details." >&5
17129$as_echo "$as_me: error: cannot run test program while cross compiling
17130See \`config.log' for more details." >&2;}
17131 { (exit 1); exit 1; }; }; }
17132else
17133 cat >conftest.$ac_ext <<_ACEOF
17134/* confdefs.h. */
17135_ACEOF
17136cat confdefs.h >>conftest.$ac_ext
17137cat >>conftest.$ac_ext <<_ACEOF
17138/* end confdefs.h. */
17139
17140 #include <stdio.h>
17141 #include <blkid/blkid.h>
17142
17143int
17144main ()
17145{
17146
17147 blkid_cache cache;
17148 char *value;
17149
17150 if (blkid_get_cache(&cache, NULL) < 0)
17151 return 1;
17152
17153 value = blkid_get_tag_value(cache, "TYPE",
17154 "$ZFS_DEV");
17155 if (!value) {
17156 blkid_put_cache(cache);
17157 return 2;
17158 }
17159
17160 if (strcmp(value, "zfs")) {
17161 free(value);
17162 blkid_put_cache(cache);
17163 return 3;
17164 }
17165
17166 free(value);
17167 blkid_put_cache(cache);
17168
17169 ;
17170 return 0;
17171}
17172_ACEOF
17173rm -f conftest$ac_exeext
17174if { (ac_try="$ac_link"
17175case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17178esac
17179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17180$as_echo "$ac_try_echo") >&5
17181 (eval "$ac_link") 2>&5
17182 ac_status=$?
17183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17185 { (case "(($ac_try" in
17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187 *) ac_try_echo=$ac_try;;
17188esac
17189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17190$as_echo "$ac_try_echo") >&5
17191 (eval "$ac_try") 2>&5
17192 ac_status=$?
17193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; }; then
17195
17196 rm -f $ZFS_DEV
17197 { $as_echo "$as_me:$LINENO: result: yes" >&5
17198$as_echo "yes" >&6; }
17199 LIBBLKID="-lblkid"
17200
17201
17202cat >>confdefs.h <<\_ACEOF
17203#define HAVE_LIBBLKID 1
17204_ACEOF
17205
17206
17207else
17208 $as_echo "$as_me: program exited with status $ac_status" >&5
17209$as_echo "$as_me: failed program was:" >&5
17210sed 's/^/| /' conftest.$ac_ext >&5
17211
17212( exit $ac_status )
17213
17214 rm -f $ZFS_DEV
17215 { $as_echo "$as_me:$LINENO: result: no" >&5
17216$as_echo "no" >&6; }
17217 if test "x$with_blkid" != xcheck; then
17218 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17220{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17221See \`config.log' for more details." >&5
17222$as_echo "$as_me: error: --with-blkid given but unavailable
17223See \`config.log' for more details." >&2;}
17224 { (exit 1); exit 1; }; }; }
17225fi
17226
17227
17228fi
17229rm -rf conftest.dSYM
17230rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17231fi
17232
17233
17234
17235 LDFLAGS="$saved_LDFLAGS"
17236
17237else
17238
17239 if test "x$with_blkid" != xcheck; then
17240 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17242{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17243See \`config.log' for more details." >&5
17244$as_echo "$as_me: error: --with-blkid given but unavailable
17245See \`config.log' for more details." >&2;}
17246 { (exit 1); exit 1; }; }; }
17247fi
17248
17249
17250
17251fi
17252
17253
17254fi
17255
17256
17257
17258
17259# Check whether --with-selinux was given.
17260if test "${with_selinux+set}" = set; then
17261 withval=$with_selinux;
17262else
17263 with_selinux=check
17264fi
17265
17266
17267 LIBSELINUX=
17268 if test "x$with_selinux" != xno; then
17269
17270 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17271 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
17272$as_echo_n "checking for selinux/selinux.h... " >&6; }
17273if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17274 $as_echo_n "(cached) " >&6
17275fi
17276{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
17277$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
17278else
17279 # Is the header compilable?
17280{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
17281$as_echo_n "checking selinux/selinux.h usability... " >&6; }
17282cat >conftest.$ac_ext <<_ACEOF
17283/* confdefs.h. */
17284_ACEOF
17285cat confdefs.h >>conftest.$ac_ext
17286cat >>conftest.$ac_ext <<_ACEOF
17287/* end confdefs.h. */
17288$ac_includes_default
17289#include <selinux/selinux.h>
17290_ACEOF
17291rm -f conftest.$ac_objext
17292if { (ac_try="$ac_compile"
17293case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17296esac
17297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17298$as_echo "$ac_try_echo") >&5
17299 (eval "$ac_compile") 2>conftest.er1
17300 ac_status=$?
17301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
17304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } && {
17306 test -z "$ac_c_werror_flag" ||
17307 test ! -s conftest.err
17308 } && test -s conftest.$ac_objext; then
17309 ac_header_compiler=yes
17310else
17311 $as_echo "$as_me: failed program was:" >&5
17312sed 's/^/| /' conftest.$ac_ext >&5
17313
17314 ac_header_compiler=no
17315fi
17316
17317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17318{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17319$as_echo "$ac_header_compiler" >&6; }
17320
17321# Is the header present?
17322{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
17323$as_echo_n "checking selinux/selinux.h presence... " >&6; }
17324cat >conftest.$ac_ext <<_ACEOF
17325/* confdefs.h. */
17326_ACEOF
17327cat confdefs.h >>conftest.$ac_ext
17328cat >>conftest.$ac_ext <<_ACEOF
17329/* end confdefs.h. */
17330#include <selinux/selinux.h>
17331_ACEOF
17332if { (ac_try="$ac_cpp conftest.$ac_ext"
17333case "(($ac_try" in
17334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335 *) ac_try_echo=$ac_try;;
17336esac
17337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17338$as_echo "$ac_try_echo") >&5
17339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17340 ac_status=$?
17341 grep -v '^ *+' conftest.er1 >conftest.err
17342 rm -f conftest.er1
17343 cat conftest.err >&5
17344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } >/dev/null && {
17346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17347 test ! -s conftest.err
17348 }; then
17349 ac_header_preproc=yes
17350else
17351 $as_echo "$as_me: failed program was:" >&5
17352sed 's/^/| /' conftest.$ac_ext >&5
17353
17354 ac_header_preproc=no
17355fi
17356
17357rm -f conftest.err conftest.$ac_ext
17358{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17359$as_echo "$ac_header_preproc" >&6; }
17360
17361# So? What about this header?
17362case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17363 yes:no: )
17364 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
17365$as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17366 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
17367$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
17368 ac_header_preproc=yes
17369 ;;
17370 no:yes:* )
17371 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
17372$as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
17373 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
17374$as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
17375 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
17376$as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
17377 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
17378$as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
17379 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
17380$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
17381 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
17382$as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
17383
17384 ;;
17385esac
17386{ $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
17387$as_echo_n "checking for selinux/selinux.h... " >&6; }
17388if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17389 $as_echo_n "(cached) " >&6
17390else
17391 ac_cv_header_selinux_selinux_h=$ac_header_preproc
17392fi
17393{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
17394$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
17395
17396fi
17397if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
17398
17399 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
17400$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
17401if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
17402 $as_echo_n "(cached) " >&6
17403else
17404 ac_check_lib_save_LIBS=$LIBS
17405LIBS="-lselinux $LIBS"
17406cat >conftest.$ac_ext <<_ACEOF
17407/* confdefs.h. */
17408_ACEOF
17409cat confdefs.h >>conftest.$ac_ext
17410cat >>conftest.$ac_ext <<_ACEOF
17411/* end confdefs.h. */
17412
17413/* Override any GCC internal prototype to avoid an error.
17414 Use char because int might match the return type of a GCC
17415 builtin and then its argument prototype would still apply. */
17416#ifdef __cplusplus
17417extern "C"
17418#endif
17419char is_selinux_enabled ();
17420int
17421main ()
17422{
17423return is_selinux_enabled ();
17424 ;
17425 return 0;
17426}
17427_ACEOF
17428rm -f conftest.$ac_objext conftest$ac_exeext
17429if { (ac_try="$ac_link"
17430case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17433esac
17434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17435$as_echo "$ac_try_echo") >&5
17436 (eval "$ac_link") 2>conftest.er1
17437 ac_status=$?
17438 grep -v '^ *+' conftest.er1 >conftest.err
17439 rm -f conftest.er1
17440 cat conftest.err >&5
17441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } && {
17443 test -z "$ac_c_werror_flag" ||
17444 test ! -s conftest.err
17445 } && test -s conftest$ac_exeext && {
17446 test "$cross_compiling" = yes ||
17447 $as_test_x conftest$ac_exeext
17448 }; then
17449 ac_cv_lib_selinux_is_selinux_enabled=yes
17450else
17451 $as_echo "$as_me: failed program was:" >&5
17452sed 's/^/| /' conftest.$ac_ext >&5
17453
17454 ac_cv_lib_selinux_is_selinux_enabled=no
17455fi
17456
17457rm -rf conftest.dSYM
17458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17459 conftest$ac_exeext conftest.$ac_ext
17460LIBS=$ac_check_lib_save_LIBS
17461fi
17462{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
17463$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
17464if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
17465
17466 LIBSELINUX="-lselinux"
17467
17468
17469cat >>confdefs.h <<\_ACEOF
17470#define HAVE_LIBSELINUX 1
17471_ACEOF
17472
17473
17474else
17475
17476 if test "x$with_selinux" != xcheck; then
17477 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17479{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
17480See \`config.log' for more details." >&5
17481$as_echo "$as_me: error: --with-selinux given but unavailable
17482See \`config.log' for more details." >&2;}
17483 { (exit 1); exit 1; }; }; }
17484
17485fi
17486
17487
17488fi
17489
17490
17491else
17492
17493 if test "x$with_selinux" != xcheck; then
17494 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17496{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
17497See \`config.log' for more details." >&5
17498$as_echo "$as_me: error: --with-selinux given but unavailable
17499See \`config.log' for more details." >&2;}
17500 { (exit 1); exit 1; }; }; }
17501
17502fi
17503
17504
17505fi
17506
17507
17508
17509else
17510
17511 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
17512$as_echo_n "checking for selinux support... " >&6; }
17513 { $as_echo "$as_me:$LINENO: result: no" >&5
17514$as_echo "no" >&6; }
17515
17516fi
17517
17518
17519
17520 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
17521$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
17522
17523 saved_flags="$CFLAGS"
17524 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
17525
17526 if test "$cross_compiling" = yes; then
17527 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17529{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17530See \`config.log' for more details." >&5
17531$as_echo "$as_me: error: cannot run test program while cross compiling
17532See \`config.log' for more details." >&2;}
17533 { (exit 1); exit 1; }; }; }
17534else
17535 cat >conftest.$ac_ext <<_ACEOF
17536/* confdefs.h. */
17537_ACEOF
17538cat confdefs.h >>conftest.$ac_ext
17539cat >>conftest.$ac_ext <<_ACEOF
17540/* end confdefs.h. */
17541
17542int
17543main ()
17544{
17545
17546 ;
17547 return 0;
17548}
17549_ACEOF
17550rm -f conftest$ac_exeext
17551if { (ac_try="$ac_link"
17552case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17555esac
17556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17557$as_echo "$ac_try_echo") >&5
17558 (eval "$ac_link") 2>&5
17559 ac_status=$?
17560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17562 { (case "(($ac_try" in
17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17565esac
17566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17567$as_echo "$ac_try_echo") >&5
17568 (eval "$ac_try") 2>&5
17569 ac_status=$?
17570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; }; then
17572
17573 FRAME_LARGER_THAN=-Wframe-larger-than=1024
17574 { $as_echo "$as_me:$LINENO: result: yes" >&5
17575$as_echo "yes" >&6; }
17576
17577else
17578 $as_echo "$as_me: program exited with status $ac_status" >&5
17579$as_echo "$as_me: failed program was:" >&5
17580sed 's/^/| /' conftest.$ac_ext >&5
17581
17582( exit $ac_status )
17583
17584 FRAME_LARGER_THAN=
17585 { $as_echo "$as_me:$LINENO: result: no" >&5
17586$as_echo "no" >&6; }
17587
17588fi
17589rm -rf conftest.dSYM
17590rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17591fi
17592
17593
17594
17595 CFLAGS="$saved_flags"
17596
17597
17598
17599
17600 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
17601$as_echo_n "checking whether pthread stack includes guard... " >&6; }
17602
17603 saved_CFLAGS="$CFLAGS"
17604 CFLAGS="-fstack-check"
17605 saved_LDFLAGS="$LDFLAGS"
17606 LDFLAGS="-lpthread"
17607
17608 if test "$cross_compiling" = yes; then
17609 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17611{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17612See \`config.log' for more details." >&5
17613$as_echo "$as_me: error: cannot run test program while cross compiling
17614See \`config.log' for more details." >&2;}
17615 { (exit 1); exit 1; }; }; }
17616else
17617 cat >conftest.$ac_ext <<_ACEOF
17618/* confdefs.h. */
17619_ACEOF
17620cat confdefs.h >>conftest.$ac_ext
17621cat >>conftest.$ac_ext <<_ACEOF
17622/* end confdefs.h. */
17623
17624 #include <pthread.h>
17625 #include <sys/resource.h>
17626 #include <unistd.h>
17627 #include <bits/local_lim.h>
17628
17629 #define PAGESIZE (sysconf(_SC_PAGESIZE))
17630 #define STACK_SIZE 8192
17631 #define BUFSIZE 4096
17632
17633 void * func(void *arg)
17634 {
17635 char buf[BUFSIZE];
17636 }
17637
17638int
17639main ()
17640{
17641
17642 pthread_t tid;
17643 pthread_attr_t attr;
17644 struct rlimit l;
17645
17646 l.rlim_cur = 0;
17647 l.rlim_max = 0;
17648 setrlimit(RLIMIT_CORE, &l);
17649 pthread_attr_init(&attr);
17650 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
17651 pthread_attr_setguardsize(&attr, PAGESIZE);
17652 pthread_create(&tid, &attr, func, NULL);
17653 pthread_join(tid, NULL);
17654
17655 ;
17656 return 0;
17657}
17658_ACEOF
17659rm -f conftest$ac_exeext
17660if { (ac_try="$ac_link"
17661case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17664esac
17665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17666$as_echo "$ac_try_echo") >&5
17667 (eval "$ac_link") 2>&5
17668 ac_status=$?
17669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17671 { (case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17674esac
17675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17676$as_echo "$ac_try_echo") >&5
17677 (eval "$ac_try") 2>&5
17678 ac_status=$?
17679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681
17682 { $as_echo "$as_me:$LINENO: result: no" >&5
17683$as_echo "no" >&6; }
17684
17685else
17686 $as_echo "$as_me: program exited with status $ac_status" >&5
17687$as_echo "$as_me: failed program was:" >&5
17688sed 's/^/| /' conftest.$ac_ext >&5
17689
17690( exit $ac_status )
17691
17692
17693cat >>confdefs.h <<\_ACEOF
17694#define NPTL_GUARD_WITHIN_STACK 1
17695_ACEOF
17696
17697 { $as_echo "$as_me:$LINENO: result: yes" >&5
17698$as_echo "yes" >&6; }
17699
17700fi
17701rm -rf conftest.dSYM
17702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17703fi
17704
17705
17706 CFLAGS="$saved_CFLAGS"
17707 LDFLAGS="$saved_LDFLAGS"
17708
17709 ;;
17710 all)
17711
17712
17713# Check whether --with-linux was given.
17714if test "${with_linux+set}" = set; then
17715 withval=$with_linux; kernelsrc="$withval"
17716fi
17717
17718
17719
17720# Check whether --with-linux-obj was given.
17721if test "${with_linux_obj+set}" = set; then
17722 withval=$with_linux_obj; kernelbuild="$withval"
17723fi
17724
17725
17726 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
17727$as_echo_n "checking kernel source directory... " >&6; }
17728 if test -z "$kernelsrc"; then
17729
17730 if test -e "/lib/modules/$(uname -r)/source"; then
17731
17732 headersdir="/lib/modules/$(uname -r)/source"
17733 sourcelink=$(readlink -f "$headersdir")
17734
17735elif test -e "/lib/modules/$(uname -r)/build"; then
17736
17737 headersdir="/lib/modules/$(uname -r)/build"
17738 sourcelink=$(readlink -f "$headersdir")
17739
17740else
17741
17742 sourcelink=$(ls -1d /usr/src/kernels/* \
17743 /usr/src/linux-* \
17744 2>/dev/null | grep -v obj | tail -1)
17745
17746fi
17747
17748
17749 if test -n "$sourcelink" && test -e ${sourcelink}; then
17750
17751 kernelsrc=`readlink -f ${sourcelink}`
17752
17753else
17754
17755 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17756$as_echo "Not found" >&6; }
17757 { { $as_echo "$as_me:$LINENO: error:
17758 *** Please make sure the kernel devel package for your distribution
17759 *** is installed then try again. If that fails you can specify the
17760 *** location of the kernel source with the '--with-linux=PATH' option." >&5
17761$as_echo "$as_me: error:
17762 *** Please make sure the kernel devel package for your distribution
17763 *** is installed then try again. If that fails you can specify the
17764 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
17765 { (exit 1); exit 1; }; }
17766
17767fi
17768
17769
17770else
17771
17772 if test "$kernelsrc" = "NONE"; then
17773
17774 kernsrcver=NONE
17775
17776fi
17777
17778
17779fi
17780
17781
17782 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
17783$as_echo "$kernelsrc" >&6; }
17784 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
17785$as_echo_n "checking kernel build directory... " >&6; }
17786 if test -z "$kernelbuild"; then
17787
17788 if test -e "/lib/modules/$(uname -r)/build"; then
17789
17790 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
17791
17792elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
17793
17794 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
17795
17796elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
17797
17798 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
17799
17800elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
17801
17802 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
17803
17804else
17805
17806 kernelbuild=${kernelsrc}
17807
17808fi
17809
17810
17811fi
17812
17813 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
17814$as_echo "$kernelbuild" >&6; }
17815
17816 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
17817$as_echo_n "checking kernel source version... " >&6; }
17818 utsrelease1=$kernelbuild/include/linux/version.h
17819 utsrelease2=$kernelbuild/include/linux/utsrelease.h
17820 utsrelease3=$kernelbuild/include/generated/utsrelease.h
17821 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
17822
17823 utsrelease=linux/version.h
17824
17825elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
17826
17827 utsrelease=linux/utsrelease.h
17828
17829elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
17830
17831 utsrelease=generated/utsrelease.h
17832
17833fi
17834
17835
17836 if test "$utsrelease"; then
17837
17838 kernsrcver=`(echo "#include <$utsrelease>";
17839 echo "kernsrcver=UTS_RELEASE") |
17840 cpp -I $kernelbuild/include |
17841 grep "^kernsrcver=" | cut -d \" -f 2`
17842
17843 if test -z "$kernsrcver"; then
17844
17845 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17846$as_echo "Not found" >&6; }
17847 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
17848$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
17849 { (exit 1); exit 1; }; }
17850
17851fi
17852
17853
17854else
17855
17856 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17857$as_echo "Not found" >&6; }
17858 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
17859$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
17860 { (exit 1); exit 1; }; }
17861
17862fi
17863
17864
17865 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
17866$as_echo "$kernsrcver" >&6; }
17867
17868 LINUX=${kernelsrc}
17869 LINUX_OBJ=${kernelbuild}
17870 LINUX_VERSION=${kernsrcver}
17871
17872
17873
17874
17875
17876
17877 modpost=$LINUX/scripts/Makefile.modpost
17878 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
17879$as_echo_n "checking kernel file name for module symbols... " >&6; }
17880 if test -f "$modpost"; then
17881
17882 if grep -q Modules.symvers $modpost; then
17883
17884 LINUX_SYMBOLS=Modules.symvers
17885
17886else
17887
17888 LINUX_SYMBOLS=Module.symvers
17889
17890fi
17891
17892
17893 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
17894
17895 { { $as_echo "$as_me:$LINENO: error:
17896 *** Please make sure the kernel devel package for your distribution
17897 *** is installed. If your building with a custom kernel make sure the
17898 *** kernel is configured, built, and the '--with-linux=PATH' configure
17899 *** option refers to the location of the kernel source." >&5
17900$as_echo "$as_me: error:
17901 *** Please make sure the kernel devel package for your distribution
17902 *** is installed. If your building with a custom kernel make sure the
17903 *** kernel is configured, built, and the '--with-linux=PATH' configure
17904 *** option refers to the location of the kernel source." >&2;}
17905 { (exit 1); exit 1; }; }
17906
17907fi
b3259b6a
BB
17908
17909
17910else
17911
34037afe 17912 LINUX_SYMBOLS=NONE
b3259b6a
BB
17913
17914fi
17915
34037afe
ED
17916 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
17917$as_echo "$LINUX_SYMBOLS" >&6; }
b3259b6a 17918
b3259b6a
BB
17919
17920
b3259b6a 17921
b3259b6a 17922
34037afe
ED
17923# Check whether --with-spl was given.
17924if test "${with_spl+set}" = set; then
17925 withval=$with_spl; splsrc="$withval"
b3259b6a
BB
17926fi
17927
17928
34037afe
ED
17929
17930# Check whether --with-spl-obj was given.
17931if test "${with_spl_obj+set}" = set; then
17932 withval=$with_spl_obj; splbuild="$withval"
b3259b6a
BB
17933fi
17934
17935
17936
34037afe
ED
17937 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
17938$as_echo_n "checking spl source directory... " >&6; }
17939 if test -z "$splsrc"; then
b3259b6a 17940
34037afe
ED
17941 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
17942 2>/dev/null | tail -1`
b3259b6a 17943
34037afe 17944 if test -z "$sourcelink" || test ! -e $sourcelink; then
b3259b6a 17945
34037afe 17946 sourcelink=../spl
b3259b6a 17947
34037afe 17948fi
b3259b6a 17949
e70e591c 17950
34037afe
ED
17951 if test -e $sourcelink; then
17952
17953 splsrc=`readlink -f ${sourcelink}`
e70e591c 17954
e70e591c 17955else
e70e591c 17956
34037afe
ED
17957 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17958$as_echo "Not found" >&6; }
17959 { { $as_echo "$as_me:$LINENO: error:
17960 *** Please make sure the spl devel package for your distribution
17961 *** is installed then try again. If that fails you can specify the
17962 *** location of the spl source with the '--with-spl=PATH' option." >&5
17963$as_echo "$as_me: error:
17964 *** Please make sure the spl devel package for your distribution
17965 *** is installed then try again. If that fails you can specify the
17966 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
17967 { (exit 1); exit 1; }; }
e70e591c 17968
34037afe 17969fi
e70e591c 17970
e70e591c
BB
17971
17972else
e70e591c 17973
34037afe 17974 if test "$splsrc" = "NONE"; then
e70e591c 17975
34037afe
ED
17976 splbuild=NONE
17977 splsrcver=NONE
e70e591c
BB
17978
17979fi
34037afe
ED
17980
17981
e70e591c
BB
17982fi
17983
17984
34037afe
ED
17985 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
17986$as_echo "$splsrc" >&6; }
17987 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
17988$as_echo_n "checking spl build directory... " >&6; }
17989 if test -z "$splbuild"; then
17990
17991 splbuild=${splsrc}
17992
17993fi
e70e591c 17994
34037afe
ED
17995 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
17996$as_echo "$splbuild" >&6; }
e70e591c 17997
34037afe
ED
17998 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
17999$as_echo_n "checking spl source version... " >&6; }
18000 if test -r $splbuild/spl_config.h &&
18001 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
e70e591c
BB
18002
18003
34037afe
ED
18004 splsrcver=`(echo "#include <spl_config.h>";
18005 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
18006 cpp -I $splbuild |
18007 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
e70e591c 18008
34037afe 18009fi
e70e591c 18010
e70e591c 18011
34037afe 18012 if test -z "$splsrcver"; then
e70e591c 18013
34037afe
ED
18014 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18015$as_echo "Not found" >&6; }
18016 { { $as_echo "$as_me:$LINENO: error:
18017 *** Cannot determine the version of the spl source.
18018 *** Please prepare the spl source before running this script" >&5
18019$as_echo "$as_me: error:
18020 *** Cannot determine the version of the spl source.
18021 *** Please prepare the spl source before running this script" >&2;}
18022 { (exit 1); exit 1; }; }
e70e591c 18023
34037afe 18024fi
e70e591c 18025
e70e591c 18026
34037afe
ED
18027 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
18028$as_echo "$splsrcver" >&6; }
e70e591c 18029
34037afe
ED
18030 SPL=${splsrc}
18031 SPL_OBJ=${splbuild}
18032 SPL_VERSION=${splsrcver}
e70e591c 18033
e70e591c 18034
e70e591c 18035
e70e591c 18036
e70e591c 18037
e70e591c 18038
34037afe
ED
18039 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
18040$as_echo_n "checking spl file name for module symbols... " >&6; }
18041 if test -r $SPL_OBJ/Module.symvers; then
e70e591c 18042
34037afe 18043 SPL_SYMBOLS=Module.symvers
e70e591c 18044
34037afe 18045elif test -r $SPL_OBJ/Modules.symvers; then
e70e591c 18046
34037afe
ED
18047 SPL_SYMBOLS=Modules.symvers
18048
18049elif test -r $SPL_OBJ/module/Module.symvers; then
e70e591c 18050
34037afe 18051 SPL_SYMBOLS=Module.symvers
e70e591c 18052
34037afe 18053elif test -r $SPL_OBJ/module/Modules.symvers; then
e70e591c 18054
34037afe 18055 SPL_SYMBOLS=Modules.symvers
e70e591c 18056
34037afe
ED
18057else
18058
18059 SPL_SYMBOLS=$LINUX_SYMBOLS
e70e591c 18060
e70e591c
BB
18061fi
18062
18063
34037afe
ED
18064 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
18065$as_echo "$SPL_SYMBOLS" >&6; }
e70e591c 18066
e70e591c
BB
18067
18068
8366cd6a 18069
8366cd6a 18070
34037afe
ED
18071 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
18072$as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
8366cd6a 18073
8366cd6a 18074
34037afe
ED
18075cat confdefs.h - <<_ACEOF >conftest.c
18076/* confdefs.h. */
18077_ACEOF
18078cat confdefs.h >>conftest.$ac_ext
18079cat >>conftest.$ac_ext <<_ACEOF
18080/* end confdefs.h. */
8366cd6a 18081
8366cd6a 18082
34037afe 18083 #include <linux/module.h>
8366cd6a 18084
34037afe
ED
18085int
18086main (void)
18087{
8366cd6a 18088
34037afe
ED
18089 #ifndef CONFIG_PREEMPT
18090 #error CONFIG_PREEMPT not #defined
18091 #endif
e70e591c 18092
34037afe
ED
18093 ;
18094 return 0;
18095}
8366cd6a 18096
34037afe 18097_ACEOF
8366cd6a 18098
8366cd6a 18099
34037afe
ED
18100 rm -Rf build && mkdir -p build
18101 echo "obj-m := conftest.o" >build/Makefile
18102 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'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18105 ac_status=$?
18106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18110 ac_status=$?
18111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113
18114 { $as_echo "$as_me:$LINENO: result: yes" >&5
18115$as_echo "yes" >&6; }
18116 { { $as_echo "$as_me:$LINENO: error:
18117 *** Kernel built with CONFIG_PREEMPT which is not supported.
18118 *** You must rebuild your kernel without this option." >&5
e70e591c 18119$as_echo "$as_me: error:
34037afe
ED
18120 *** Kernel built with CONFIG_PREEMPT which is not supported.
18121 *** You must rebuild your kernel without this option." >&2;}
e70e591c 18122 { (exit 1); exit 1; }; }
8366cd6a 18123
34037afe
ED
18124else
18125 $as_echo "$as_me: failed program was:" >&5
18126sed 's/^/| /' conftest.$ac_ext >&5
8366cd6a 18127
34037afe
ED
18128 { $as_echo "$as_me:$LINENO: result: no" >&5
18129$as_echo "no" >&6; }
8366cd6a 18130
8366cd6a 18131
8366cd6a 18132
8366cd6a
PS
18133
18134fi
18135
34037afe
ED
18136 rm -Rf build
18137
8366cd6a 18138
8366cd6a 18139
e70e591c 18140
34037afe 18141 if test "$ZFS_META_LICENSE" = CDDL; then
8366cd6a 18142
34037afe
ED
18143 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
18144$as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
8366cd6a 18145
8366cd6a 18146
34037afe
ED
18147cat confdefs.h - <<_ACEOF >conftest.c
18148/* confdefs.h. */
18149_ACEOF
18150cat confdefs.h >>conftest.$ac_ext
18151cat >>conftest.$ac_ext <<_ACEOF
18152/* end confdefs.h. */
8366cd6a 18153
8366cd6a 18154
34037afe 18155 #include <linux/module.h>
8366cd6a 18156
34037afe
ED
18157int
18158main (void)
18159{
8366cd6a 18160
34037afe
ED
18161 #ifndef CONFIG_DEBUG_LOCK_ALLOC
18162 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
18163 #endif
8366cd6a 18164
34037afe
ED
18165 ;
18166 return 0;
18167}
18168
18169_ACEOF
18170
18171
18172 rm -Rf build && mkdir -p build
18173 echo "obj-m := conftest.o" >build/Makefile
18174 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'
18175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18176 (eval $ac_try) 2>&5
18177 ac_status=$?
18178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18182 ac_status=$?
18183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185
18186 { $as_echo "$as_me:$LINENO: result: yes" >&5
18187$as_echo "yes" >&6; }
18188 { { $as_echo "$as_me:$LINENO: error:
18189 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
18190 *** incompatible with the CDDL license. You must rebuild
18191 *** your kernel without this option." >&5
18192$as_echo "$as_me: error:
18193 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
18194 *** incompatible with the CDDL license. You must rebuild
18195 *** your kernel without this option." >&2;}
18196 { (exit 1); exit 1; }; }
8366cd6a
PS
18197
18198else
34037afe
ED
18199 $as_echo "$as_me: failed program was:" >&5
18200sed 's/^/| /' conftest.$ac_ext >&5
18201
18202 { $as_echo "$as_me:$LINENO: result: no" >&5
18203$as_echo "no" >&6; }
8366cd6a 18204
8366cd6a 18205
8366cd6a
PS
18206
18207
18208fi
18209
34037afe 18210 rm -Rf build
e70e591c 18211
8366cd6a 18212
8366cd6a 18213
8366cd6a 18214
34037afe 18215fi
8366cd6a 18216
8366cd6a 18217
34037afe
ED
18218 if test "$ZFS_META_LICENSE" = GPL; then
18219
18220
18221cat >>confdefs.h <<\_ACEOF
18222#define HAVE_GPL_ONLY_SYMBOLS 1
18223_ACEOF
18224
8366cd6a
PS
18225
18226fi
18227
e70e591c 18228
8366cd6a 18229
34037afe
ED
18230 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
18231$as_echo_n "checking block device operation prototypes... " >&6; }
18232 tmp_flags="$EXTRA_KCFLAGS"
18233 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c 18234
8366cd6a 18235
34037afe
ED
18236cat confdefs.h - <<_ACEOF >conftest.c
18237/* confdefs.h. */
18238_ACEOF
18239cat confdefs.h >>conftest.$ac_ext
18240cat >>conftest.$ac_ext <<_ACEOF
18241/* end confdefs.h. */
8366cd6a 18242
8366cd6a 18243
34037afe 18244 #include <linux/blkdev.h>
8366cd6a 18245
34037afe
ED
18246int
18247main (void)
18248{
8366cd6a 18249
34037afe
ED
18250 int (*blk_open) (struct block_device *, fmode_t) = NULL;
18251 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
18252 int (*blk_ioctl) (struct block_device *, fmode_t,
18253 unsigned, unsigned long) = NULL;
18254 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
18255 unsigned, unsigned long) = NULL;
18256 struct block_device_operations blk_ops = {
18257 .open = blk_open,
18258 .release = blk_release,
18259 .ioctl = blk_ioctl,
18260 .compat_ioctl = blk_compat_ioctl,
18261 };
18262
18263 blk_ops.open(NULL, 0);
18264 blk_ops.release(NULL, 0);
18265 blk_ops.ioctl(NULL, 0, 0, 0);
18266 blk_ops.compat_ioctl(NULL, 0, 0, 0);
18267
18268 ;
18269 return 0;
18270}
18271
18272_ACEOF
8366cd6a 18273
8366cd6a 18274
34037afe
ED
18275 rm -Rf build && mkdir -p build
18276 echo "obj-m := conftest.o" >build/Makefile
18277 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'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18280 ac_status=$?
18281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; }; then
e70e591c 18288
34037afe
ED
18289 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
18290$as_echo "struct block_device" >&6; }
e70e591c 18291
34037afe
ED
18292cat >>confdefs.h <<\_ACEOF
18293#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
18294_ACEOF
e70e591c
BB
18295
18296
34037afe
ED
18297else
18298 $as_echo "$as_me: failed program was:" >&5
18299sed 's/^/| /' conftest.$ac_ext >&5
e70e591c 18300
34037afe
ED
18301 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
18302$as_echo "struct inode" >&6; }
e70e591c
BB
18303
18304
18305
34037afe 18306fi
8366cd6a 18307
34037afe 18308 rm -Rf build
8366cd6a 18309
8366cd6a 18310
34037afe 18311 EXTRA_KCFLAGS="$tmp_flags"
8366cd6a 18312
34037afe
ED
18313 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
18314$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
a60b1c0a 18315
8366cd6a 18316
34037afe
ED
18317cat confdefs.h - <<_ACEOF >conftest.c
18318/* confdefs.h. */
18319_ACEOF
18320cat confdefs.h >>conftest.$ac_ext
18321cat >>conftest.$ac_ext <<_ACEOF
18322/* end confdefs.h. */
8366cd6a 18323
8366cd6a 18324
34037afe 18325 #include <linux/types.h>
8366cd6a 18326
34037afe
ED
18327int
18328main (void)
18329{
8366cd6a 18330
34037afe 18331 fmode_t *ptr __attribute__ ((unused));
8366cd6a 18332
34037afe
ED
18333 ;
18334 return 0;
18335}
8366cd6a 18336
34037afe 18337_ACEOF
8366cd6a 18338
8366cd6a 18339
34037afe
ED
18340 rm -Rf build && mkdir -p build
18341 echo "obj-m := conftest.o" >build/Makefile
18342 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'
18343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344 (eval $ac_try) 2>&5
18345 ac_status=$?
18346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
e70e591c 18353
34037afe
ED
18354 { $as_echo "$as_me:$LINENO: result: yes" >&5
18355$as_echo "yes" >&6; }
e70e591c 18356
34037afe
ED
18357cat >>confdefs.h <<\_ACEOF
18358#define HAVE_FMODE_T 1
18359_ACEOF
e70e591c
BB
18360
18361
34037afe
ED
18362else
18363 $as_echo "$as_me: failed program was:" >&5
18364sed 's/^/| /' conftest.$ac_ext >&5
e70e591c 18365
34037afe
ED
18366 { $as_echo "$as_me:$LINENO: result: no" >&5
18367$as_echo "no" >&6; }
e70e591c
BB
18368
18369
18370
e70e591c
BB
18371fi
18372
34037afe 18373 rm -Rf build
e70e591c
BB
18374
18375
e70e591c 18376
8366cd6a 18377
34037afe
ED
18378 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
18379$as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
8366cd6a 18380
8366cd6a 18381
34037afe
ED
18382cat confdefs.h - <<_ACEOF >conftest.c
18383/* confdefs.h. */
18384_ACEOF
18385cat confdefs.h >>conftest.$ac_ext
18386cat >>conftest.$ac_ext <<_ACEOF
18387/* end confdefs.h. */
e70e591c 18388
8366cd6a 18389
34037afe 18390 #include <linux/kobject.h>
8366cd6a 18391
34037afe
ED
18392int
18393main (void)
18394{
8366cd6a 18395
34037afe
ED
18396 int val __attribute__ ((unused));
18397 val = KOBJ_NAME_LEN;
8366cd6a 18398
34037afe
ED
18399 ;
18400 return 0;
18401}
8366cd6a 18402
34037afe 18403_ACEOF
8366cd6a 18404
8366cd6a 18405
34037afe
ED
18406 rm -Rf build && mkdir -p build
18407 echo "obj-m := conftest.o" >build/Makefile
18408 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'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18411 ac_status=$?
18412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18415 (eval $ac_try) 2>&5
18416 ac_status=$?
18417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; }; then
8366cd6a 18419
34037afe
ED
18420 { $as_echo "$as_me:$LINENO: result: yes" >&5
18421$as_echo "yes" >&6; }
8366cd6a 18422
34037afe
ED
18423cat >>confdefs.h <<\_ACEOF
18424#define HAVE_KOBJ_NAME_LEN 1
18425_ACEOF
8366cd6a
PS
18426
18427
34037afe
ED
18428else
18429 $as_echo "$as_me: failed program was:" >&5
18430sed 's/^/| /' conftest.$ac_ext >&5
8366cd6a 18431
34037afe
ED
18432 { $as_echo "$as_me:$LINENO: result: no" >&5
18433$as_echo "no" >&6; }
e70e591c 18434
8366cd6a 18435
8366cd6a
PS
18436
18437fi
18438
34037afe 18439 rm -Rf build
e70e591c 18440
8366cd6a 18441
8366cd6a 18442
8366cd6a 18443
34037afe
ED
18444 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
18445$as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
18446 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
18447 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18448 rc=$?
18449 if test $rc -ne 0; then
e70e591c 18450
34037afe
ED
18451 export=0
18452 for file in fs/block_dev.c; do
18453 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
18454 rc=$?
18455 if test $rc -eq 0; then
8366cd6a 18456
34037afe
ED
18457 export=1
18458 break;
8366cd6a
PS
18459
18460fi
18461
34037afe
ED
18462 done
18463 if test $export -eq 0; then
e70e591c 18464
34037afe
ED
18465 { $as_echo "$as_me:$LINENO: result: no" >&5
18466$as_echo "no" >&6; }
8366cd6a 18467
8366cd6a 18468
34037afe 18469else
8366cd6a 18470
34037afe
ED
18471 { $as_echo "$as_me:$LINENO: result: yes" >&5
18472$as_echo "yes" >&6; }
8366cd6a 18473
34037afe
ED
18474cat >>confdefs.h <<\_ACEOF
18475#define HAVE_BLKDEV_GET_BY_PATH 1
18476_ACEOF
8366cd6a 18477
8366cd6a 18478
34037afe 18479fi
8366cd6a 18480
8366cd6a
PS
18481
18482else
18483
34037afe
ED
18484 { $as_echo "$as_me:$LINENO: result: yes" >&5
18485$as_echo "yes" >&6; }
8366cd6a 18486
34037afe
ED
18487cat >>confdefs.h <<\_ACEOF
18488#define HAVE_BLKDEV_GET_BY_PATH 1
18489_ACEOF
8366cd6a 18490
e70e591c 18491
34037afe 18492fi
e70e591c
BB
18493
18494
18495
18496
34037afe
ED
18497 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
18498$as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
18499 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
18500 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18501 rc=$?
18502 if test $rc -ne 0; then
e70e591c 18503
34037afe
ED
18504 export=0
18505 for file in fs/block_dev.c; do
18506 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
18507 rc=$?
18508 if test $rc -eq 0; then
15805c77 18509
34037afe
ED
18510 export=1
18511 break;
15805c77 18512
34037afe 18513fi
15805c77 18514
34037afe
ED
18515 done
18516 if test $export -eq 0; then
15805c77 18517
34037afe
ED
18518 { $as_echo "$as_me:$LINENO: result: no" >&5
18519$as_echo "no" >&6; }
15805c77 18520
15805c77 18521
34037afe 18522else
15805c77 18523
34037afe
ED
18524 { $as_echo "$as_me:$LINENO: result: yes" >&5
18525$as_echo "yes" >&6; }
15805c77 18526
34037afe
ED
18527cat >>confdefs.h <<\_ACEOF
18528#define HAVE_OPEN_BDEV_EXCLUSIVE 1
15805c77
BB
18529_ACEOF
18530
18531
34037afe 18532fi
15805c77 18533
15805c77
BB
18534
18535else
15805c77 18536
34037afe
ED
18537 { $as_echo "$as_me:$LINENO: result: yes" >&5
18538$as_echo "yes" >&6; }
15805c77 18539
34037afe
ED
18540cat >>confdefs.h <<\_ACEOF
18541#define HAVE_OPEN_BDEV_EXCLUSIVE 1
18542_ACEOF
15805c77
BB
18543
18544
18545fi
18546
15805c77
BB
18547
18548
18549
34037afe
ED
18550 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
18551$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
e70e591c
BB
18552
18553
18554cat confdefs.h - <<_ACEOF >conftest.c
18555/* confdefs.h. */
18556_ACEOF
18557cat confdefs.h >>conftest.$ac_ext
18558cat >>conftest.$ac_ext <<_ACEOF
18559/* end confdefs.h. */
18560
18561
34037afe 18562 #include <linux/buffer_head.h>
e70e591c
BB
18563
18564int
18565main (void)
18566{
18567
34037afe
ED
18568 struct block_device *bdev = NULL;
18569 invalidate_bdev(bdev);
e70e591c
BB
18570
18571 ;
18572 return 0;
18573}
18574
18575_ACEOF
18576
18577
18578 rm -Rf build && mkdir -p build
18579 echo "obj-m := conftest.o" >build/Makefile
18580 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'
18581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18582 (eval $ac_try) 2>&5
18583 ac_status=$?
18584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587 (eval $ac_try) 2>&5
18588 ac_status=$?
18589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; }; then
18591
18592 { $as_echo "$as_me:$LINENO: result: yes" >&5
18593$as_echo "yes" >&6; }
34037afe
ED
18594
18595cat >>confdefs.h <<\_ACEOF
18596#define HAVE_1ARG_INVALIDATE_BDEV 1
18597_ACEOF
18598
e70e591c
BB
18599
18600else
18601 $as_echo "$as_me: failed program was:" >&5
18602sed 's/^/| /' conftest.$ac_ext >&5
18603
18604 { $as_echo "$as_me:$LINENO: result: no" >&5
18605$as_echo "no" >&6; }
18606
18607
18608
e70e591c
BB
18609fi
18610
18611 rm -Rf build
18612
18613
18614
8366cd6a 18615
34037afe
ED
18616 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
18617$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
b9c59ec8
PS
18618 tmp_flags="$EXTRA_KCFLAGS"
18619 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
18620
18621
18622cat confdefs.h - <<_ACEOF >conftest.c
18623/* confdefs.h. */
18624_ACEOF
18625cat confdefs.h >>conftest.$ac_ext
18626cat >>conftest.$ac_ext <<_ACEOF
18627/* end confdefs.h. */
18628
18629
18630 #include <linux/blkdev.h>
18631
18632int
18633main (void)
18634{
18635
34037afe
ED
18636 struct block_device *bdev = NULL;
18637 bdev_logical_block_size(bdev);
e70e591c
BB
18638
18639 ;
18640 return 0;
18641}
18642
18643_ACEOF
18644
18645
18646 rm -Rf build && mkdir -p build
18647 echo "obj-m := conftest.o" >build/Makefile
18648 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'
18649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650 (eval $ac_try) 2>&5
18651 ac_status=$?
18652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655 (eval $ac_try) 2>&5
18656 ac_status=$?
18657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; }; then
18659
34037afe
ED
18660 { $as_echo "$as_me:$LINENO: result: yes" >&5
18661$as_echo "yes" >&6; }
e70e591c
BB
18662
18663cat >>confdefs.h <<\_ACEOF
34037afe 18664#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
e70e591c
BB
18665_ACEOF
18666
18667
18668else
18669 $as_echo "$as_me: failed program was:" >&5
18670sed 's/^/| /' conftest.$ac_ext >&5
18671
34037afe
ED
18672 { $as_echo "$as_me:$LINENO: result: no" >&5
18673$as_echo "no" >&6; }
e70e591c
BB
18674
18675
18676
18677fi
18678
18679 rm -Rf build
18680
18681
b9c59ec8 18682 EXTRA_KCFLAGS="$tmp_flags"
e70e591c 18683
34037afe
ED
18684
18685 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
18686$as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
18687 EXTRA_KCFLAGS="-Werror"
e70e591c
BB
18688
18689
18690cat confdefs.h - <<_ACEOF >conftest.c
18691/* confdefs.h. */
18692_ACEOF
18693cat confdefs.h >>conftest.$ac_ext
18694cat >>conftest.$ac_ext <<_ACEOF
18695/* end confdefs.h. */
18696
18697
34037afe 18698 #include <linux/bio.h>
e70e591c
BB
18699
18700int
18701main (void)
18702{
18703
34037afe
ED
18704 struct bio bio;
18705 (void)bio_empty_barrier(&bio);
e70e591c
BB
18706
18707 ;
18708 return 0;
18709}
18710
18711_ACEOF
18712
18713
18714 rm -Rf build && mkdir -p build
18715 echo "obj-m := conftest.o" >build/Makefile
18716 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'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18719 ac_status=$?
18720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18724 ac_status=$?
18725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; }; then
18727
18728 { $as_echo "$as_me:$LINENO: result: yes" >&5
18729$as_echo "yes" >&6; }
18730
18731cat >>confdefs.h <<\_ACEOF
34037afe 18732#define HAVE_BIO_EMPTY_BARRIER 1
e70e591c
BB
18733_ACEOF
18734
18735
18736else
18737 $as_echo "$as_me: failed program was:" >&5
18738sed 's/^/| /' conftest.$ac_ext >&5
18739
18740 { $as_echo "$as_me:$LINENO: result: no" >&5
18741$as_echo "no" >&6; }
18742
18743
18744
18745fi
18746
18747 rm -Rf build
18748
18749
18750
18751
34037afe
ED
18752 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
18753$as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
e70e591c
BB
18754
18755
18756cat confdefs.h - <<_ACEOF >conftest.c
18757/* confdefs.h. */
18758_ACEOF
18759cat confdefs.h >>conftest.$ac_ext
18760cat >>conftest.$ac_ext <<_ACEOF
18761/* end confdefs.h. */
18762
18763
34037afe 18764 #include <linux/bio.h>
e70e591c
BB
18765
18766int
18767main (void)
18768{
18769
34037afe
ED
18770 int flags __attribute__ ((unused));
18771 flags = (1 << BIO_RW_FAILFAST);
e70e591c
BB
18772
18773 ;
18774 return 0;
18775}
18776
18777_ACEOF
18778
18779
18780 rm -Rf build && mkdir -p build
18781 echo "obj-m := conftest.o" >build/Makefile
18782 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'
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18785 ac_status=$?
18786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18790 ac_status=$?
18791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793
18794 { $as_echo "$as_me:$LINENO: result: yes" >&5
18795$as_echo "yes" >&6; }
18796
18797cat >>confdefs.h <<\_ACEOF
34037afe 18798#define HAVE_BIO_RW_FAILFAST 1
e70e591c
BB
18799_ACEOF
18800
18801
18802else
18803 $as_echo "$as_me: failed program was:" >&5
18804sed 's/^/| /' conftest.$ac_ext >&5
18805
18806 { $as_echo "$as_me:$LINENO: result: no" >&5
18807$as_echo "no" >&6; }
18808
18809
18810
18811fi
18812
18813 rm -Rf build
18814
18815
18816
18817
34037afe
ED
18818 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
18819$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
8366cd6a 18820
45066d1f 18821
34037afe
ED
18822cat confdefs.h - <<_ACEOF >conftest.c
18823/* confdefs.h. */
45066d1f 18824_ACEOF
34037afe
ED
18825cat confdefs.h >>conftest.$ac_ext
18826cat >>conftest.$ac_ext <<_ACEOF
18827/* end confdefs.h. */
45066d1f 18828
8366cd6a 18829
34037afe 18830 #include <linux/bio.h>
8366cd6a 18831
34037afe
ED
18832int
18833main (void)
18834{
8366cd6a 18835
34037afe
ED
18836 int flags __attribute__ ((unused));
18837 flags = ((1 << BIO_RW_FAILFAST_DEV) |
18838 (1 << BIO_RW_FAILFAST_TRANSPORT) |
18839 (1 << BIO_RW_FAILFAST_DRIVER));
8366cd6a 18840
34037afe
ED
18841 ;
18842 return 0;
18843}
8366cd6a 18844
34037afe 18845_ACEOF
e70e591c 18846
8366cd6a 18847
34037afe
ED
18848 rm -Rf build && mkdir -p build
18849 echo "obj-m := conftest.o" >build/Makefile
18850 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'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857 (eval $ac_try) 2>&5
18858 ac_status=$?
18859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; }; then
8366cd6a 18861
34037afe 18862 { $as_echo "$as_me:$LINENO: result: yes" >&5
e70e591c
BB
18863$as_echo "yes" >&6; }
18864
18865cat >>confdefs.h <<\_ACEOF
34037afe 18866#define HAVE_BIO_RW_FAILFAST_DTD 1
e70e591c
BB
18867_ACEOF
18868
8366cd6a 18869
8366cd6a 18870else
34037afe
ED
18871 $as_echo "$as_me: failed program was:" >&5
18872sed 's/^/| /' conftest.$ac_ext >&5
8366cd6a 18873
34037afe
ED
18874 { $as_echo "$as_me:$LINENO: result: no" >&5
18875$as_echo "no" >&6; }
e70e591c 18876
e70e591c 18877
8366cd6a
PS
18878
18879fi
18880
34037afe
ED
18881 rm -Rf build
18882
e70e591c
BB
18883
18884
18885
34037afe
ED
18886 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
18887$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
e70e591c
BB
18888
18889
18890cat confdefs.h - <<_ACEOF >conftest.c
18891/* confdefs.h. */
18892_ACEOF
18893cat confdefs.h >>conftest.$ac_ext
18894cat >>conftest.$ac_ext <<_ACEOF
18895/* end confdefs.h. */
18896
18897
34037afe 18898 #include <linux/bio.h>
e70e591c
BB
18899
18900int
18901main (void)
18902{
18903
34037afe
ED
18904 int flags __attribute__ ((unused));
18905 flags = REQ_FAILFAST_MASK;
e70e591c
BB
18906
18907 ;
18908 return 0;
18909}
18910
18911_ACEOF
18912
18913
18914 rm -Rf build && mkdir -p build
18915 echo "obj-m := conftest.o" >build/Makefile
18916 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'
18917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918 (eval $ac_try) 2>&5
18919 ac_status=$?
18920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923 (eval $ac_try) 2>&5
18924 ac_status=$?
18925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); }; }; then
18927
18928 { $as_echo "$as_me:$LINENO: result: yes" >&5
18929$as_echo "yes" >&6; }
18930
18931cat >>confdefs.h <<\_ACEOF
34037afe 18932#define HAVE_BIO_REQ_FAILFAST_MASK 1
e70e591c
BB
18933_ACEOF
18934
18935
18936else
18937 $as_echo "$as_me: failed program was:" >&5
18938sed 's/^/| /' conftest.$ac_ext >&5
18939
18940 { $as_echo "$as_me:$LINENO: result: no" >&5
18941$as_echo "no" >&6; }
18942
18943
18944
18945fi
18946
18947 rm -Rf build
18948
18949
18950
18951
34037afe
ED
18952 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
18953$as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
b9c59ec8 18954 tmp_flags="$EXTRA_KCFLAGS"
34037afe 18955 EXTRA_KCFLAGS="-Werror"
e70e591c
BB
18956
18957
18958cat confdefs.h - <<_ACEOF >conftest.c
18959/* confdefs.h. */
18960_ACEOF
18961cat confdefs.h >>conftest.$ac_ext
18962cat >>conftest.$ac_ext <<_ACEOF
18963/* end confdefs.h. */
18964
18965
34037afe 18966 #include <linux/bio.h>
e70e591c
BB
18967
18968int
18969main (void)
18970{
18971
34037afe
ED
18972 void (*wanted_end_io)(struct bio *, int) = NULL;
18973 bio_end_io_t *local_end_io __attribute__ ((unused));
18974
18975 local_end_io = wanted_end_io;
e70e591c
BB
18976
18977 ;
18978 return 0;
18979}
18980
18981_ACEOF
18982
18983
18984 rm -Rf build && mkdir -p build
18985 echo "obj-m := conftest.o" >build/Makefile
18986 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'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18989 ac_status=$?
18990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18994 ac_status=$?
18995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; }; then
18997
18998 { $as_echo "$as_me:$LINENO: result: yes" >&5
18999$as_echo "yes" >&6; }
19000
19001cat >>confdefs.h <<\_ACEOF
34037afe 19002#define HAVE_2ARGS_BIO_END_IO_T 1
e70e591c
BB
19003_ACEOF
19004
19005
19006else
19007 $as_echo "$as_me: failed program was:" >&5
19008sed 's/^/| /' conftest.$ac_ext >&5
19009
19010 { $as_echo "$as_me:$LINENO: result: no" >&5
19011$as_echo "no" >&6; }
19012
19013
19014
19015fi
19016
19017 rm -Rf build
19018
19019
b9c59ec8 19020 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
19021
19022
34037afe
ED
19023 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
19024$as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
e70e591c
BB
19025
19026
19027cat confdefs.h - <<_ACEOF >conftest.c
19028/* confdefs.h. */
19029_ACEOF
19030cat confdefs.h >>conftest.$ac_ext
19031cat >>conftest.$ac_ext <<_ACEOF
19032/* end confdefs.h. */
19033
19034
19035 #include <linux/bio.h>
19036
19037int
19038main (void)
19039{
19040
34037afe
ED
19041 int flags __attribute__ ((unused));
19042 flags = BIO_RW_SYNC;
e70e591c
BB
19043
19044 ;
19045 return 0;
19046}
19047
19048_ACEOF
19049
19050
19051 rm -Rf build && mkdir -p build
19052 echo "obj-m := conftest.o" >build/Makefile
19053 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'
19054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19056 ac_status=$?
19057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19061 ac_status=$?
19062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; }; then
19064
19065 { $as_echo "$as_me:$LINENO: result: yes" >&5
19066$as_echo "yes" >&6; }
19067
19068cat >>confdefs.h <<\_ACEOF
34037afe 19069#define HAVE_BIO_RW_SYNC 1
e70e591c
BB
19070_ACEOF
19071
19072
19073else
19074 $as_echo "$as_me: failed program was:" >&5
19075sed 's/^/| /' conftest.$ac_ext >&5
19076
19077 { $as_echo "$as_me:$LINENO: result: no" >&5
19078$as_echo "no" >&6; }
19079
19080
19081
19082fi
19083
19084 rm -Rf build
19085
19086
19087
19088
34037afe
ED
19089 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
19090$as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
f4af6bb7
BB
19091
19092
19093cat confdefs.h - <<_ACEOF >conftest.c
19094/* confdefs.h. */
19095_ACEOF
19096cat confdefs.h >>conftest.$ac_ext
19097cat >>conftest.$ac_ext <<_ACEOF
19098/* end confdefs.h. */
19099
19100
19101 #include <linux/bio.h>
19102
19103int
19104main (void)
19105{
19106
79713039 19107 int flags __attribute__ ((unused));
34037afe 19108 flags = BIO_RW_SYNCIO;
f4af6bb7
BB
19109
19110 ;
19111 return 0;
19112}
19113
19114_ACEOF
19115
19116
19117 rm -Rf build && mkdir -p build
19118 echo "obj-m := conftest.o" >build/Makefile
19119 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'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19127 ac_status=$?
19128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; }; then
19130
19131 { $as_echo "$as_me:$LINENO: result: yes" >&5
19132$as_echo "yes" >&6; }
19133
19134cat >>confdefs.h <<\_ACEOF
34037afe 19135#define HAVE_BIO_RW_SYNCIO 1
f4af6bb7
BB
19136_ACEOF
19137
19138
19139else
19140 $as_echo "$as_me: failed program was:" >&5
19141sed 's/^/| /' conftest.$ac_ext >&5
19142
19143 { $as_echo "$as_me:$LINENO: result: no" >&5
19144$as_echo "no" >&6; }
19145
19146
19147
19148fi
19149
19150 rm -Rf build
19151
19152
19153
19154
34037afe
ED
19155 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
19156$as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
2959d94a
BB
19157
19158
19159cat confdefs.h - <<_ACEOF >conftest.c
19160/* confdefs.h. */
19161_ACEOF
19162cat confdefs.h >>conftest.$ac_ext
19163cat >>conftest.$ac_ext <<_ACEOF
19164/* end confdefs.h. */
19165
19166
19167 #include <linux/bio.h>
19168
19169int
19170main (void)
19171{
19172
79713039 19173 int flags __attribute__ ((unused));
34037afe 19174 flags = REQ_SYNC;
2959d94a
BB
19175
19176 ;
19177 return 0;
19178}
19179
19180_ACEOF
19181
19182
19183 rm -Rf build && mkdir -p build
19184 echo "obj-m := conftest.o" >build/Makefile
19185 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'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19188 ac_status=$?
19189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192 (eval $ac_try) 2>&5
19193 ac_status=$?
19194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; }; then
19196
19197 { $as_echo "$as_me:$LINENO: result: yes" >&5
19198$as_echo "yes" >&6; }
19199
19200cat >>confdefs.h <<\_ACEOF
34037afe 19201#define HAVE_REQ_SYNC 1
f4af6bb7
BB
19202_ACEOF
19203
19204
19205else
19206 $as_echo "$as_me: failed program was:" >&5
19207sed 's/^/| /' conftest.$ac_ext >&5
19208
19209 { $as_echo "$as_me:$LINENO: result: no" >&5
19210$as_echo "no" >&6; }
19211
19212
19213
19214fi
19215
19216 rm -Rf build
19217
19218
19219
19220
34037afe
ED
19221 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
19222$as_echo_n "checking whether blk_end_request() is available... " >&6; }
19223 tmp_flags="$EXTRA_KCFLAGS"
19224 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
f4af6bb7
BB
19225
19226
19227cat confdefs.h - <<_ACEOF >conftest.c
19228/* confdefs.h. */
19229_ACEOF
19230cat confdefs.h >>conftest.$ac_ext
19231cat >>conftest.$ac_ext <<_ACEOF
19232/* end confdefs.h. */
19233
19234
34037afe 19235 #include <linux/blkdev.h>
f4af6bb7
BB
19236
19237int
19238main (void)
19239{
19240
34037afe
ED
19241 struct request *req = NULL;
19242 (void) blk_end_request(req, 0, 0);
f4af6bb7
BB
19243
19244 ;
19245 return 0;
19246}
19247
19248_ACEOF
19249
19250
19251 rm -Rf build && mkdir -p build
19252 echo "obj-m := conftest.o" >build/Makefile
19253 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'
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19256 ac_status=$?
19257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260 (eval $ac_try) 2>&5
19261 ac_status=$?
19262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; }; then
19264
19265 { $as_echo "$as_me:$LINENO: result: yes" >&5
19266$as_echo "yes" >&6; }
19267
19268cat >>confdefs.h <<\_ACEOF
34037afe 19269#define HAVE_BLK_END_REQUEST 1
2959d94a
BB
19270_ACEOF
19271
19272
19273else
19274 $as_echo "$as_me: failed program was:" >&5
19275sed 's/^/| /' conftest.$ac_ext >&5
19276
19277 { $as_echo "$as_me:$LINENO: result: no" >&5
19278$as_echo "no" >&6; }
19279
19280
19281
19282fi
19283
19284 rm -Rf build
19285
19286
19287
34037afe
ED
19288 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
19289$as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
e70e591c
BB
19290
19291
19292cat confdefs.h - <<_ACEOF >conftest.c
19293/* confdefs.h. */
19294_ACEOF
19295cat confdefs.h >>conftest.$ac_ext
19296cat >>conftest.$ac_ext <<_ACEOF
19297/* end confdefs.h. */
19298
19299
34037afe
ED
19300 #include <linux/module.h>
19301 #include <linux/blkdev.h>
19302
19303 MODULE_LICENSE("CDDL");
e70e591c
BB
19304
19305int
19306main (void)
19307{
19308
34037afe
ED
19309 struct request *req = NULL;
19310 (void) blk_end_request(req, 0, 0);
e70e591c
BB
19311
19312 ;
19313 return 0;
19314}
19315
19316_ACEOF
19317
19318
19319 rm -Rf build && mkdir -p build
19320 echo "obj-m := conftest.o" >build/Makefile
19321 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'
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
19325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19332
34037afe
ED
19333 { $as_echo "$as_me:$LINENO: result: no" >&5
19334$as_echo "no" >&6; }
19335
19336else
19337 $as_echo "$as_me: failed program was:" >&5
19338sed 's/^/| /' conftest.$ac_ext >&5
19339
e70e591c
BB
19340 { $as_echo "$as_me:$LINENO: result: yes" >&5
19341$as_echo "yes" >&6; }
19342
19343cat >>confdefs.h <<\_ACEOF
34037afe 19344#define HAVE_BLK_END_REQUEST_GPL_ONLY 1
e70e591c
BB
19345_ACEOF
19346
19347
e70e591c
BB
19348
19349
19350fi
19351
19352 rm -Rf build
19353
19354
19355 EXTRA_KCFLAGS="$tmp_flags"
19356
19357
34037afe
ED
19358 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
19359$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
19360 tmp_flags="$EXTRA_KCFLAGS"
19361 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
675de5aa
BB
19362
19363
19364cat confdefs.h - <<_ACEOF >conftest.c
19365/* confdefs.h. */
19366_ACEOF
19367cat confdefs.h >>conftest.$ac_ext
19368cat >>conftest.$ac_ext <<_ACEOF
19369/* end confdefs.h. */
19370
19371
34037afe 19372 #include <linux/blkdev.h>
675de5aa
BB
19373
19374int
19375main (void)
19376{
19377
34037afe
ED
19378 struct request_queue *q = NULL;
19379 (void) blk_queue_flush(q, REQ_FLUSH);
675de5aa
BB
19380
19381 ;
19382 return 0;
19383}
19384
19385_ACEOF
19386
19387
19388 rm -Rf build && mkdir -p build
19389 echo "obj-m := conftest.o" >build/Makefile
19390 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'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401
19402 { $as_echo "$as_me:$LINENO: result: yes" >&5
19403$as_echo "yes" >&6; }
19404
19405cat >>confdefs.h <<\_ACEOF
34037afe 19406#define HAVE_BLK_QUEUE_FLUSH 1
675de5aa
BB
19407_ACEOF
19408
19409
19410else
19411 $as_echo "$as_me: failed program was:" >&5
19412sed 's/^/| /' conftest.$ac_ext >&5
19413
19414 { $as_echo "$as_me:$LINENO: result: no" >&5
19415$as_echo "no" >&6; }
19416
19417
19418
19419fi
19420
19421 rm -Rf build
19422
19423
19424
34037afe
ED
19425 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
19426$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
e70e591c
BB
19427
19428
19429cat confdefs.h - <<_ACEOF >conftest.c
19430/* confdefs.h. */
19431_ACEOF
19432cat confdefs.h >>conftest.$ac_ext
19433cat >>conftest.$ac_ext <<_ACEOF
19434/* end confdefs.h. */
19435
19436
34037afe
ED
19437 #include <linux/module.h>
19438 #include <linux/blkdev.h>
19439
19440 MODULE_LICENSE("CDDL");
e70e591c
BB
19441
19442int
19443main (void)
19444{
19445
34037afe
ED
19446 struct request_queue *q = NULL;
19447 (void) blk_queue_flush(q, REQ_FLUSH);
e70e591c
BB
19448
19449 ;
19450 return 0;
19451}
19452
19453_ACEOF
19454
19455
19456 rm -Rf build && mkdir -p build
19457 echo "obj-m := conftest.o" >build/Makefile
19458 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'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19461 ac_status=$?
19462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
19469
34037afe
ED
19470 { $as_echo "$as_me:$LINENO: result: no" >&5
19471$as_echo "no" >&6; }
19472
19473else
19474 $as_echo "$as_me: failed program was:" >&5
19475sed 's/^/| /' conftest.$ac_ext >&5
19476
e70e591c
BB
19477 { $as_echo "$as_me:$LINENO: result: yes" >&5
19478$as_echo "yes" >&6; }
19479
19480cat >>confdefs.h <<\_ACEOF
34037afe 19481#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
e70e591c
BB
19482_ACEOF
19483
19484
e70e591c
BB
19485
19486
19487fi
19488
19489 rm -Rf build
19490
19491
34037afe 19492 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
19493
19494
34037afe
ED
19495 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
19496$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
19497 tmp_flags="$EXTRA_KCFLAGS"
19498 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
675de5aa
BB
19499
19500
19501cat confdefs.h - <<_ACEOF >conftest.c
19502/* confdefs.h. */
19503_ACEOF
19504cat confdefs.h >>conftest.$ac_ext
19505cat >>conftest.$ac_ext <<_ACEOF
19506/* end confdefs.h. */
19507
19508
34037afe 19509 #include <linux/blkdev.h>
675de5aa
BB
19510
19511int
19512main (void)
19513{
19514
34037afe
ED
19515 struct request_queue *q = NULL;
19516 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
675de5aa
BB
19517
19518 ;
19519 return 0;
19520}
19521
19522_ACEOF
19523
19524
19525 rm -Rf build && mkdir -p build
19526 echo "obj-m := conftest.o" >build/Makefile
19527 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'
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19530 ac_status=$?
19531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19535 ac_status=$?
19536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538
19539 { $as_echo "$as_me:$LINENO: result: yes" >&5
19540$as_echo "yes" >&6; }
19541
19542cat >>confdefs.h <<\_ACEOF
34037afe 19543#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
675de5aa
BB
19544_ACEOF
19545
19546
19547else
19548 $as_echo "$as_me: failed program was:" >&5
19549sed 's/^/| /' conftest.$ac_ext >&5
19550
19551 { $as_echo "$as_me:$LINENO: result: no" >&5
19552$as_echo "no" >&6; }
19553
19554
19555
19556fi
19557
19558 rm -Rf build
19559
19560
34037afe 19561 EXTRA_KCFLAGS="$tmp_flags"
675de5aa
BB
19562
19563
34037afe
ED
19564 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
19565$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
b9c59ec8
PS
19566 tmp_flags="$EXTRA_KCFLAGS"
19567 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
19568
19569
19570cat confdefs.h - <<_ACEOF >conftest.c
19571/* confdefs.h. */
19572_ACEOF
19573cat confdefs.h >>conftest.$ac_ext
19574cat >>conftest.$ac_ext <<_ACEOF
19575/* end confdefs.h. */
19576
19577
19578 #include <linux/blkdev.h>
19579
19580int
19581main (void)
19582{
19583
34037afe
ED
19584 struct request_queue *q = NULL;
19585 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
e70e591c
BB
19586
19587 ;
19588 return 0;
19589}
19590
19591_ACEOF
19592
19593
19594 rm -Rf build && mkdir -p build
19595 echo "obj-m := conftest.o" >build/Makefile
19596 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'
19597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19599 ac_status=$?
19600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19604 ac_status=$?
19605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; }; then
19607
19608 { $as_echo "$as_me:$LINENO: result: yes" >&5
19609$as_echo "yes" >&6; }
19610
19611cat >>confdefs.h <<\_ACEOF
34037afe 19612#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
e70e591c
BB
19613_ACEOF
19614
19615
19616else
19617 $as_echo "$as_me: failed program was:" >&5
19618sed 's/^/| /' conftest.$ac_ext >&5
19619
19620 { $as_echo "$as_me:$LINENO: result: no" >&5
19621$as_echo "no" >&6; }
19622
19623
19624
19625fi
19626
19627 rm -Rf build
19628
19629
34037afe 19630 EXTRA_KCFLAGS="$tmp_flags"
e70e591c 19631
34037afe
ED
19632
19633 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
19634$as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
19635 tmp_flags="$EXTRA_KCFLAGS"
19636 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
19637
19638
19639cat confdefs.h - <<_ACEOF >conftest.c
19640/* confdefs.h. */
19641_ACEOF
19642cat confdefs.h >>conftest.$ac_ext
19643cat >>conftest.$ac_ext <<_ACEOF
19644/* end confdefs.h. */
19645
19646
e70e591c
BB
19647 #include <linux/blkdev.h>
19648
e70e591c
BB
19649int
19650main (void)
19651{
19652
34037afe
ED
19653 struct request_queue *q = NULL;
19654 unsigned short block_size = 1;
19655 (void) blk_queue_physical_block_size(q, block_size);
e70e591c
BB
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
e70e591c
BB
19678 { $as_echo "$as_me:$LINENO: result: yes" >&5
19679$as_echo "yes" >&6; }
19680
19681cat >>confdefs.h <<\_ACEOF
34037afe 19682#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
e70e591c
BB
19683_ACEOF
19684
19685
34037afe
ED
19686else
19687 $as_echo "$as_me: failed program was:" >&5
19688sed 's/^/| /' conftest.$ac_ext >&5
19689
19690 { $as_echo "$as_me:$LINENO: result: no" >&5
19691$as_echo "no" >&6; }
19692
e70e591c
BB
19693
19694
b18019d2
ED
19695fi
19696
19697 rm -Rf build
19698
19699
19700 EXTRA_KCFLAGS="$tmp_flags"
19701
19702
34037afe
ED
19703 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
19704$as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
b18019d2
ED
19705 tmp_flags="$EXTRA_KCFLAGS"
19706 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19707
19708
19709cat confdefs.h - <<_ACEOF >conftest.c
19710/* confdefs.h. */
19711_ACEOF
19712cat confdefs.h >>conftest.$ac_ext
19713cat >>conftest.$ac_ext <<_ACEOF
19714/* end confdefs.h. */
19715
19716
19717 #include <linux/blkdev.h>
19718
19719int
19720main (void)
19721{
19722
19723 struct request_queue *q = NULL;
34037afe
ED
19724 unsigned int opt = 1;
19725 (void) blk_queue_io_opt(q, opt);
b18019d2
ED
19726
19727 ;
19728 return 0;
19729}
19730
19731_ACEOF
19732
19733
19734 rm -Rf build && mkdir -p build
19735 echo "obj-m := conftest.o" >build/Makefile
19736 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'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19747
19748 { $as_echo "$as_me:$LINENO: result: yes" >&5
19749$as_echo "yes" >&6; }
19750
19751cat >>confdefs.h <<\_ACEOF
34037afe 19752#define HAVE_BLK_QUEUE_IO_OPT 1
b18019d2
ED
19753_ACEOF
19754
19755
19756else
19757 $as_echo "$as_me: failed program was:" >&5
19758sed 's/^/| /' conftest.$ac_ext >&5
19759
19760 { $as_echo "$as_me:$LINENO: result: no" >&5
19761$as_echo "no" >&6; }
19762
19763
19764
19765fi
19766
19767 rm -Rf build
19768
19769
34037afe
ED
19770 EXTRA_KCFLAGS="$tmp_flags"
19771
b18019d2 19772
34037afe
ED
19773 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
19774$as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
19775 tmp_flags="$EXTRA_KCFLAGS"
19776 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
b18019d2
ED
19777
19778
19779cat confdefs.h - <<_ACEOF >conftest.c
19780/* confdefs.h. */
19781_ACEOF
19782cat confdefs.h >>conftest.$ac_ext
19783cat >>conftest.$ac_ext <<_ACEOF
19784/* end confdefs.h. */
19785
19786
b18019d2
ED
19787 #include <linux/blkdev.h>
19788
b18019d2
ED
19789int
19790main (void)
19791{
19792
19793 struct request_queue *q = NULL;
34037afe 19794 (void) blk_queue_nonrot(q);
b18019d2
ED
19795
19796 ;
19797 return 0;
19798}
19799
19800_ACEOF
19801
19802
19803 rm -Rf build && mkdir -p build
19804 echo "obj-m := conftest.o" >build/Makefile
19805 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19813 ac_status=$?
19814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816
b18019d2
ED
19817 { $as_echo "$as_me:$LINENO: result: yes" >&5
19818$as_echo "yes" >&6; }
19819
19820cat >>confdefs.h <<\_ACEOF
34037afe 19821#define HAVE_BLK_QUEUE_NONROT 1
b18019d2
ED
19822_ACEOF
19823
19824
34037afe
ED
19825else
19826 $as_echo "$as_me: failed program was:" >&5
19827sed 's/^/| /' conftest.$ac_ext >&5
19828
19829 { $as_echo "$as_me:$LINENO: result: no" >&5
19830$as_echo "no" >&6; }
19831
b18019d2
ED
19832
19833
e70e591c
BB
19834fi
19835
19836 rm -Rf build
19837
19838
b9c59ec8 19839 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
19840
19841
19842 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
19843$as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
b9c59ec8
PS
19844 tmp_flags="$EXTRA_KCFLAGS"
19845 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
19846
19847
19848cat confdefs.h - <<_ACEOF >conftest.c
19849/* confdefs.h. */
19850_ACEOF
19851cat confdefs.h >>conftest.$ac_ext
19852cat >>conftest.$ac_ext <<_ACEOF
19853/* end confdefs.h. */
19854
19855
19856 #include <linux/blkdev.h>
19857
19858int
19859main (void)
19860{
19861
19862 struct request_queue *q = NULL;
19863 (void) blk_fetch_request(q);
19864
19865 ;
19866 return 0;
19867}
19868
19869_ACEOF
19870
19871
19872 rm -Rf build && mkdir -p build
19873 echo "obj-m := conftest.o" >build/Makefile
19874 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'
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19877 ac_status=$?
19878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19882 ac_status=$?
19883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; }; then
19885
19886 { $as_echo "$as_me:$LINENO: result: yes" >&5
19887$as_echo "yes" >&6; }
19888
19889cat >>confdefs.h <<\_ACEOF
19890#define HAVE_BLK_FETCH_REQUEST 1
19891_ACEOF
19892
19893
19894else
19895 $as_echo "$as_me: failed program was:" >&5
19896sed 's/^/| /' conftest.$ac_ext >&5
19897
19898 { $as_echo "$as_me:$LINENO: result: no" >&5
19899$as_echo "no" >&6; }
19900
19901
19902
19903fi
19904
19905 rm -Rf build
19906
19907
b9c59ec8 19908 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
19909
19910
19911 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
19912$as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
b9c59ec8
PS
19913 tmp_flags="$EXTRA_KCFLAGS"
19914 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
19915
19916
19917cat confdefs.h - <<_ACEOF >conftest.c
19918/* confdefs.h. */
19919_ACEOF
19920cat confdefs.h >>conftest.$ac_ext
19921cat >>conftest.$ac_ext <<_ACEOF
19922/* end confdefs.h. */
19923
19924
19925 #include <linux/blkdev.h>
19926
19927int
19928main (void)
19929{
19930
19931 struct request_queue *q = NULL;
19932 struct request *req = NULL;
19933 blk_requeue_request(q, req);
19934
19935 ;
19936 return 0;
19937}
19938
19939_ACEOF
19940
19941
19942 rm -Rf build && mkdir -p build
19943 echo "obj-m := conftest.o" >build/Makefile
19944 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'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19947 ac_status=$?
19948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951 (eval $ac_try) 2>&5
19952 ac_status=$?
19953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; }; then
19955
19956 { $as_echo "$as_me:$LINENO: result: yes" >&5
19957$as_echo "yes" >&6; }
19958
19959cat >>confdefs.h <<\_ACEOF
19960#define HAVE_BLK_REQUEUE_REQUEST 1
19961_ACEOF
19962
19963
19964else
19965 $as_echo "$as_me: failed program was:" >&5
19966sed 's/^/| /' conftest.$ac_ext >&5
19967
19968 { $as_echo "$as_me:$LINENO: result: no" >&5
19969$as_echo "no" >&6; }
19970
19971
19972
19973fi
19974
19975 rm -Rf build
19976
19977
b9c59ec8 19978 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
19979
19980
19981 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
19982$as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
b9c59ec8
PS
19983 tmp_flags="$EXTRA_KCFLAGS"
19984 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
19985
19986
19987cat confdefs.h - <<_ACEOF >conftest.c
19988/* confdefs.h. */
19989_ACEOF
19990cat confdefs.h >>conftest.$ac_ext
19991cat >>conftest.$ac_ext <<_ACEOF
19992/* end confdefs.h. */
19993
19994
19995 #include <linux/blkdev.h>
19996
19997int
19998main (void)
19999{
20000
20001 struct request *req = NULL;
20002 (void) blk_rq_bytes(req);
20003
20004 ;
20005 return 0;
20006}
20007
20008_ACEOF
20009
20010
20011 rm -Rf build && mkdir -p build
20012 echo "obj-m := conftest.o" >build/Makefile
20013 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'
20014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015 (eval $ac_try) 2>&5
20016 ac_status=$?
20017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20021 ac_status=$?
20022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; }; then
20024
20025 { $as_echo "$as_me:$LINENO: result: yes" >&5
20026$as_echo "yes" >&6; }
20027
20028cat >>confdefs.h <<\_ACEOF
20029#define HAVE_BLK_RQ_BYTES 1
20030_ACEOF
20031
20032
20033else
20034 $as_echo "$as_me: failed program was:" >&5
20035sed 's/^/| /' conftest.$ac_ext >&5
20036
20037 { $as_echo "$as_me:$LINENO: result: no" >&5
20038$as_echo "no" >&6; }
20039
20040
20041
20042fi
20043
20044 rm -Rf build
20045
20046
20047
20048 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
20049$as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
20050
20051
20052cat confdefs.h - <<_ACEOF >conftest.c
20053/* confdefs.h. */
20054_ACEOF
20055cat confdefs.h >>conftest.$ac_ext
20056cat >>conftest.$ac_ext <<_ACEOF
20057/* end confdefs.h. */
20058
20059
20060 #include <linux/module.h>
20061 #include <linux/blkdev.h>
20062
20063 MODULE_LICENSE("CDDL");
20064
20065int
20066main (void)
20067{
20068
20069 struct request *req = NULL;
20070 (void) blk_rq_bytes(req);
20071
20072 ;
20073 return 0;
20074}
20075
20076_ACEOF
20077
20078
20079 rm -Rf build && mkdir -p build
20080 echo "obj-m := conftest.o" >build/Makefile
20081 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'
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20084 ac_status=$?
20085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20088 (eval $ac_try) 2>&5
20089 ac_status=$?
20090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); }; }; then
20092
20093 { $as_echo "$as_me:$LINENO: result: no" >&5
20094$as_echo "no" >&6; }
20095
20096else
20097 $as_echo "$as_me: failed program was:" >&5
20098sed 's/^/| /' conftest.$ac_ext >&5
20099
20100 { $as_echo "$as_me:$LINENO: result: yes" >&5
20101$as_echo "yes" >&6; }
20102
20103cat >>confdefs.h <<\_ACEOF
20104#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
20105_ACEOF
20106
20107
20108
20109
20110fi
20111
20112 rm -Rf build
20113
20114
b9c59ec8 20115 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
20116
20117
20118 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
20119$as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
b9c59ec8
PS
20120 tmp_flags="$EXTRA_KCFLAGS"
20121 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
20122
20123
20124cat confdefs.h - <<_ACEOF >conftest.c
20125/* confdefs.h. */
20126_ACEOF
20127cat confdefs.h >>conftest.$ac_ext
20128cat >>conftest.$ac_ext <<_ACEOF
20129/* end confdefs.h. */
20130
20131
20132 #include <linux/blkdev.h>
20133
20134int
20135main (void)
20136{
20137
20138 struct request *req = NULL;
20139 (void) blk_rq_pos(req);
20140
20141 ;
20142 return 0;
20143}
20144
20145_ACEOF
20146
20147
20148 rm -Rf build && mkdir -p build
20149 echo "obj-m := conftest.o" >build/Makefile
20150 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'
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20153 ac_status=$?
20154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20158 ac_status=$?
20159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161
20162 { $as_echo "$as_me:$LINENO: result: yes" >&5
20163$as_echo "yes" >&6; }
20164
20165cat >>confdefs.h <<\_ACEOF
20166#define HAVE_BLK_RQ_POS 1
20167_ACEOF
20168
20169
20170else
20171 $as_echo "$as_me: failed program was:" >&5
20172sed 's/^/| /' conftest.$ac_ext >&5
20173
20174 { $as_echo "$as_me:$LINENO: result: no" >&5
20175$as_echo "no" >&6; }
20176
20177
20178
20179fi
20180
20181 rm -Rf build
20182
20183
b9c59ec8 20184 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
20185
20186
20187 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
20188$as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
b9c59ec8
PS
20189 tmp_flags="$EXTRA_KCFLAGS"
20190 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
20191
20192
20193cat confdefs.h - <<_ACEOF >conftest.c
20194/* confdefs.h. */
20195_ACEOF
20196cat confdefs.h >>conftest.$ac_ext
20197cat >>conftest.$ac_ext <<_ACEOF
20198/* end confdefs.h. */
20199
20200
20201 #include <linux/blkdev.h>
20202
20203int
20204main (void)
20205{
20206
20207 struct request *req = NULL;
20208 (void) blk_rq_sectors(req);
20209
20210 ;
20211 return 0;
20212}
20213
20214_ACEOF
20215
20216
20217 rm -Rf build && mkdir -p build
20218 echo "obj-m := conftest.o" >build/Makefile
20219 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'
20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221 (eval $ac_try) 2>&5
20222 ac_status=$?
20223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20227 ac_status=$?
20228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230
20231 { $as_echo "$as_me:$LINENO: result: yes" >&5
20232$as_echo "yes" >&6; }
20233
20234cat >>confdefs.h <<\_ACEOF
20235#define HAVE_BLK_RQ_SECTORS 1
20236_ACEOF
20237
20238
20239else
20240 $as_echo "$as_me: failed program was:" >&5
20241sed 's/^/| /' conftest.$ac_ext >&5
20242
20243 { $as_echo "$as_me:$LINENO: result: no" >&5
20244$as_echo "no" >&6; }
20245
20246
20247
20248fi
20249
20250 rm -Rf build
20251
20252
b9c59ec8 20253 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
20254
20255
20256 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
20257$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
b9c59ec8
PS
20258 tmp_flags="$EXTRA_KCFLAGS"
20259 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
20260
20261
20262cat confdefs.h - <<_ACEOF >conftest.c
20263/* confdefs.h. */
20264_ACEOF
20265cat confdefs.h >>conftest.$ac_ext
20266cat >>conftest.$ac_ext <<_ACEOF
20267/* end confdefs.h. */
20268
20269
20270 #include <linux/blkdev.h>
20271
20272int
20273main (void)
20274{
20275
20276 struct gendisk *disk = NULL;
20277 (void) get_disk_ro(disk);
20278
20279 ;
20280 return 0;
20281}
20282
20283_ACEOF
20284
20285
20286 rm -Rf build && mkdir -p build
20287 echo "obj-m := conftest.o" >build/Makefile
20288 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20296 ac_status=$?
20297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20299
20300 { $as_echo "$as_me:$LINENO: result: yes" >&5
20301$as_echo "yes" >&6; }
20302
20303cat >>confdefs.h <<\_ACEOF
20304#define HAVE_GET_DISK_RO 1
20305_ACEOF
20306
20307
20308else
20309 $as_echo "$as_me: failed program was:" >&5
20310sed 's/^/| /' conftest.$ac_ext >&5
20311
20312 { $as_echo "$as_me:$LINENO: result: no" >&5
20313$as_echo "no" >&6; }
20314
20315
20316
20317fi
20318
20319 rm -Rf build
20320
20321
b9c59ec8 20322 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
20323
20324
20325 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
20326$as_echo_n "checking whether rq_is_sync() is available... " >&6; }
b9c59ec8
PS
20327 tmp_flags="$EXTRA_KCFLAGS"
20328 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
20329
20330
20331cat confdefs.h - <<_ACEOF >conftest.c
20332/* confdefs.h. */
20333_ACEOF
20334cat confdefs.h >>conftest.$ac_ext
20335cat >>conftest.$ac_ext <<_ACEOF
20336/* end confdefs.h. */
20337
20338
20339 #include <linux/blkdev.h>
20340
20341int
20342main (void)
20343{
20344
20345 struct request *req = NULL;
20346 (void) rq_is_sync(req);
20347
20348 ;
20349 return 0;
20350}
20351
20352_ACEOF
20353
20354
20355 rm -Rf build && mkdir -p build
20356 echo "obj-m := conftest.o" >build/Makefile
20357 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
20366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
20368
20369 { $as_echo "$as_me:$LINENO: result: yes" >&5
20370$as_echo "yes" >&6; }
20371
20372cat >>confdefs.h <<\_ACEOF
20373#define HAVE_RQ_IS_SYNC 1
20374_ACEOF
20375
20376
20377else
20378 $as_echo "$as_me: failed program was:" >&5
20379sed 's/^/| /' conftest.$ac_ext >&5
20380
20381 { $as_echo "$as_me:$LINENO: result: no" >&5
20382$as_echo "no" >&6; }
20383
20384
20385
20386fi
20387
20388 rm -Rf build
20389
20390
b9c59ec8 20391 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
20392
20393
20394 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
20395$as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
b9c59ec8
PS
20396 tmp_flags="$EXTRA_KCFLAGS"
20397 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
20398
20399
20400cat confdefs.h - <<_ACEOF >conftest.c
20401/* confdefs.h. */
20402_ACEOF
20403cat confdefs.h >>conftest.$ac_ext
20404cat >>conftest.$ac_ext <<_ACEOF
20405/* end confdefs.h. */
20406
20407
20408 #include <linux/blkdev.h>
20409
20410int
20411main (void)
20412{
20413
20414 struct bio_vec *bv;
20415 struct req_iterator iter;
20416 struct request *req = NULL;
20417 rq_for_each_segment(bv, req, iter) { }
20418
20419 ;
20420 return 0;
20421}
20422
20423_ACEOF
20424
20425
20426 rm -Rf build && mkdir -p build
20427 echo "obj-m := conftest.o" >build/Makefile
20428 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'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20431 ac_status=$?
20432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20436 ac_status=$?
20437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
20439
20440 { $as_echo "$as_me:$LINENO: result: yes" >&5
20441$as_echo "yes" >&6; }
20442
20443cat >>confdefs.h <<\_ACEOF
20444#define HAVE_RQ_FOR_EACH_SEGMENT 1
20445_ACEOF
20446
20447
20448else
20449 $as_echo "$as_me: failed program was:" >&5
20450sed 's/^/| /' conftest.$ac_ext >&5
20451
20452 { $as_echo "$as_me:$LINENO: result: no" >&5
20453$as_echo "no" >&6; }
20454
20455
20456
777d4af8
BB
20457fi
20458
20459 rm -Rf build
20460
20461
b9c59ec8 20462 EXTRA_KCFLAGS="$tmp_flags"
777d4af8
BB
20463
20464 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
20465$as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
20466
20467
20468cat confdefs.h - <<_ACEOF >conftest.c
20469/* confdefs.h. */
20470_ACEOF
20471cat confdefs.h >>conftest.$ac_ext
20472cat >>conftest.$ac_ext <<_ACEOF
20473/* end confdefs.h. */
20474
20475
20476 #include <linux/fs.h>
20477 #include <linux/xattr.h>
20478
20479 const struct xattr_handler xattr_test_handler = {
20480 .prefix = "test",
20481 .get = NULL,
20482 .set = NULL,
20483 };
20484
20485 const struct xattr_handler *xattr_handlers[] = {
20486 &xattr_test_handler,
20487 };
20488
20489int
20490main (void)
20491{
20492
79713039 20493 struct super_block sb __attribute__ ((unused));
777d4af8
BB
20494
20495 sb.s_xattr = xattr_handlers;
20496
20497 ;
20498 return 0;
20499}
20500
20501_ACEOF
20502
20503
20504 rm -Rf build && mkdir -p build
20505 echo "obj-m := conftest.o" >build/Makefile
20506 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'
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20509 ac_status=$?
20510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20514 ac_status=$?
20515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517
20518 { $as_echo "$as_me:$LINENO: result: yes" >&5
20519$as_echo "yes" >&6; }
20520
20521cat >>confdefs.h <<\_ACEOF
20522#define HAVE_CONST_XATTR_HANDLER 1
20523_ACEOF
20524
20525
20526else
20527 $as_echo "$as_me: failed program was:" >&5
20528sed 's/^/| /' conftest.$ac_ext >&5
20529
20530 { $as_echo "$as_me:$LINENO: result: no" >&5
20531$as_echo "no" >&6; }
20532
20533
20534
e70e591c
BB
20535fi
20536
20537 rm -Rf build
20538
20539
20540
20541
f9637c6c
BB
20542 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
20543$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
20544
20545
20546cat confdefs.h - <<_ACEOF >conftest.c
20547/* confdefs.h. */
20548_ACEOF
20549cat confdefs.h >>conftest.$ac_ext
20550cat >>conftest.$ac_ext <<_ACEOF
20551/* end confdefs.h. */
20552
20553
20554 #include <linux/xattr.h>
20555
20556int
20557main (void)
20558{
20559
20560 int (*get)(struct dentry *dentry, const char *name,
20561 void *buffer, size_t size, int handler_flags) = NULL;
79713039 20562 struct xattr_handler xops __attribute__ ((unused));
f9637c6c
BB
20563
20564 xops.get = get;
20565
20566 ;
20567 return 0;
20568}
20569
20570_ACEOF
20571
20572
20573 rm -Rf build && mkdir -p build
20574 echo "obj-m := conftest.o" >build/Makefile
20575 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'
20576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20577 (eval $ac_try) 2>&5
20578 ac_status=$?
20579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582 (eval $ac_try) 2>&5
20583 ac_status=$?
20584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; }; then
20586
20587 { $as_echo "$as_me:$LINENO: result: yes" >&5
20588$as_echo "yes" >&6; }
20589
20590cat >>confdefs.h <<\_ACEOF
20591#define HAVE_DENTRY_XATTR_GET 1
20592_ACEOF
20593
20594
20595else
20596 $as_echo "$as_me: failed program was:" >&5
20597sed 's/^/| /' conftest.$ac_ext >&5
20598
20599 { $as_echo "$as_me:$LINENO: result: no" >&5
20600$as_echo "no" >&6; }
20601
20602
20603
20604fi
20605
20606 rm -Rf build
20607
20608
20609
20610
20611 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
20612$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
20613
20614
20615cat confdefs.h - <<_ACEOF >conftest.c
20616/* confdefs.h. */
20617_ACEOF
20618cat confdefs.h >>conftest.$ac_ext
20619cat >>conftest.$ac_ext <<_ACEOF
20620/* end confdefs.h. */
20621
20622
20623 #include <linux/xattr.h>
20624
20625int
20626main (void)
20627{
20628
20629 int (*set)(struct dentry *dentry, const char *name,
20630 const void *buffer, size_t size, int flags,
20631 int handler_flags) = NULL;
79713039 20632 struct xattr_handler xops __attribute__ ((unused));
f9637c6c
BB
20633
20634 xops.set = set;
20635
20636 ;
20637 return 0;
20638}
20639
20640_ACEOF
20641
20642
20643 rm -Rf build && mkdir -p build
20644 echo "obj-m := conftest.o" >build/Makefile
20645 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'
20646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20647 (eval $ac_try) 2>&5
20648 ac_status=$?
20649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652 (eval $ac_try) 2>&5
20653 ac_status=$?
20654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656
20657 { $as_echo "$as_me:$LINENO: result: yes" >&5
20658$as_echo "yes" >&6; }
20659
20660cat >>confdefs.h <<\_ACEOF
20661#define HAVE_DENTRY_XATTR_SET 1
20662_ACEOF
20663
20664
20665else
20666 $as_echo "$as_me: failed program was:" >&5
20667sed 's/^/| /' conftest.$ac_ext >&5
20668
20669 { $as_echo "$as_me:$LINENO: result: no" >&5
20670$as_echo "no" >&6; }
20671
20672
20673
20674fi
20675
20676 rm -Rf build
20677
20678
20679
20680
47621f3d
BB
20681 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
20682$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
20683
20684
20685
20686cat confdefs.h - <<_ACEOF >conftest.c
20687/* confdefs.h. */
20688_ACEOF
20689cat confdefs.h >>conftest.$ac_ext
20690cat >>conftest.$ac_ext <<_ACEOF
20691/* end confdefs.h. */
20692
20693
20694 #include <linux/fs.h>
20695
20696int
20697main (void)
20698{
20699
20700 int (*show_options) (struct seq_file *, struct dentry *) = NULL;
20701 struct super_operations sops __attribute__ ((unused));
20702
20703 sops.show_options = show_options;
20704
20705 ;
20706 return 0;
20707}
20708
20709_ACEOF
20710
20711
20712 rm -Rf build && mkdir -p build
20713 echo "obj-m := conftest.o" >build/Makefile
20714 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'
20715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716 (eval $ac_try) 2>&5
20717 ac_status=$?
20718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20722 ac_status=$?
20723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725
20726 { $as_echo "$as_me:$LINENO: result: yes" >&5
20727$as_echo "yes" >&6; }
20728
20729cat >>confdefs.h <<\_ACEOF
20730#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
20731_ACEOF
20732
20733
20734else
20735 $as_echo "$as_me: failed program was:" >&5
20736sed 's/^/| /' conftest.$ac_ext >&5
20737
20738 { $as_echo "$as_me:$LINENO: result: no" >&5
20739$as_echo "no" >&6; }
20740
20741
20742
20743fi
20744
20745 rm -Rf build
20746
20747
20748
20749
adcd70bd
BB
20750 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
20751$as_echo_n "checking whether fops->fsync() wants... " >&6; }
20752
7268e1be
BB
20753
20754
20755cat confdefs.h - <<_ACEOF >conftest.c
20756/* confdefs.h. */
20757_ACEOF
20758cat confdefs.h >>conftest.$ac_ext
20759cat >>conftest.$ac_ext <<_ACEOF
20760/* end confdefs.h. */
20761
20762
20763 #include <linux/fs.h>
20764
20765int
20766main (void)
20767{
20768
adcd70bd 20769 int (*fsync) (struct file *, struct dentry *, int) = NULL;
79713039 20770 struct file_operations fops __attribute__ ((unused));
7268e1be
BB
20771
20772 fops.fsync = fsync;
20773
20774 ;
20775 return 0;
20776}
20777
20778_ACEOF
20779
20780
20781 rm -Rf build && mkdir -p build
20782 echo "obj-m := conftest.o" >build/Makefile
20783 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'
20784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20785 (eval $ac_try) 2>&5
20786 ac_status=$?
20787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20791 ac_status=$?
20792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794
adcd70bd
BB
20795 { $as_echo "$as_me:$LINENO: result: dentry" >&5
20796$as_echo "dentry" >&6; }
7268e1be
BB
20797
20798cat >>confdefs.h <<\_ACEOF
adcd70bd
BB
20799#define HAVE_FSYNC_WITH_DENTRY 1
20800_ACEOF
20801
20802
20803else
20804 $as_echo "$as_me: failed program was:" >&5
20805sed 's/^/| /' conftest.$ac_ext >&5
20806
20807
20808
20809
20810fi
20811
20812 rm -Rf build
20813
20814
20815
20816
20817
20818
20819cat confdefs.h - <<_ACEOF >conftest.c
20820/* confdefs.h. */
20821_ACEOF
20822cat confdefs.h >>conftest.$ac_ext
20823cat >>conftest.$ac_ext <<_ACEOF
20824/* end confdefs.h. */
20825
20826
20827 #include <linux/fs.h>
20828
20829int
20830main (void)
20831{
20832
20833 int (*fsync) (struct file *, int) = NULL;
20834 struct file_operations fops __attribute__ ((unused));
20835
20836 fops.fsync = fsync;
20837
20838 ;
20839 return 0;
20840}
20841
20842_ACEOF
20843
20844
20845 rm -Rf build && mkdir -p build
20846 echo "obj-m := conftest.o" >build/Makefile
20847 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'
20848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849 (eval $ac_try) 2>&5
20850 ac_status=$?
20851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20855 ac_status=$?
20856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858
20859 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
20860$as_echo "no dentry" >&6; }
20861
20862cat >>confdefs.h <<\_ACEOF
20863#define HAVE_FSYNC_WITHOUT_DENTRY 1
7268e1be
BB
20864_ACEOF
20865
20866
20867else
20868 $as_echo "$as_me: failed program was:" >&5
20869sed 's/^/| /' conftest.$ac_ext >&5
20870
7268e1be
BB
20871
20872
20873
20874fi
20875
20876 rm -Rf build
20877
20878
20879
20880
adcd70bd
BB
20881
20882
20883cat confdefs.h - <<_ACEOF >conftest.c
20884/* confdefs.h. */
20885_ACEOF
20886cat confdefs.h >>conftest.$ac_ext
20887cat >>conftest.$ac_ext <<_ACEOF
20888/* end confdefs.h. */
20889
20890
20891 #include <linux/fs.h>
20892
20893int
20894main (void)
20895{
20896
20897 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
20898 struct file_operations fops __attribute__ ((unused));
20899
20900 fops.fsync = fsync;
20901
20902 ;
20903 return 0;
20904}
20905
20906_ACEOF
20907
20908
20909 rm -Rf build && mkdir -p build
20910 echo "obj-m := conftest.o" >build/Makefile
20911 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'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20914 ac_status=$?
20915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20919 ac_status=$?
20920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; }; then
20922
20923 { $as_echo "$as_me:$LINENO: result: range" >&5
20924$as_echo "range" >&6; }
20925
20926cat >>confdefs.h <<\_ACEOF
20927#define HAVE_FSYNC_RANGE 1
20928_ACEOF
20929
20930
20931else
20932 $as_echo "$as_me: failed program was:" >&5
20933sed 's/^/| /' conftest.$ac_ext >&5
20934
20935
20936
20937
20938fi
20939
20940 rm -Rf build
20941
20942
20943
20944
20945
2c395def
BB
20946 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
20947$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
20948
20949
20950cat confdefs.h - <<_ACEOF >conftest.c
20951/* confdefs.h. */
20952_ACEOF
20953cat confdefs.h >>conftest.$ac_ext
20954cat >>conftest.$ac_ext <<_ACEOF
20955/* end confdefs.h. */
20956
20957
20958 #include <linux/fs.h>
20959
20960int
20961main (void)
20962{
20963
20964 void (*evict_inode) (struct inode *) = NULL;
ddd052aa
BB
20965 struct super_operations sops __attribute__ ((unused)) = {
20966 .evict_inode = evict_inode,
20967 };
2c395def
BB
20968
20969 ;
20970 return 0;
20971}
20972
20973_ACEOF
20974
20975
20976 rm -Rf build && mkdir -p build
20977 echo "obj-m := conftest.o" >build/Makefile
20978 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20986 ac_status=$?
20987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; }; then
20989
20990 { $as_echo "$as_me:$LINENO: result: yes" >&5
20991$as_echo "yes" >&6; }
20992
20993cat >>confdefs.h <<\_ACEOF
20994#define HAVE_EVICT_INODE 1
20995_ACEOF
20996
20997
20998else
20999 $as_echo "$as_me: failed program was:" >&5
21000sed 's/^/| /' conftest.$ac_ext >&5
21001
21002 { $as_echo "$as_me:$LINENO: result: no" >&5
21003$as_echo "no" >&6; }
21004
21005
21006
21007fi
21008
21009 rm -Rf build
21010
21011
21012
21013
ab26409d
BB
21014 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
21015$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
21016
21017
21018cat confdefs.h - <<_ACEOF >conftest.c
21019/* confdefs.h. */
21020_ACEOF
21021cat confdefs.h >>conftest.$ac_ext
21022cat >>conftest.$ac_ext <<_ACEOF
21023/* end confdefs.h. */
21024
21025
21026 #include <linux/fs.h>
21027
21028int
21029main (void)
21030{
21031
21032 int (*nr_cached_objects)(struct super_block *)
21033 __attribute__ ((unused)) = NULL;
21034 struct super_operations sops __attribute__ ((unused)) = {
21035 .nr_cached_objects = nr_cached_objects,
21036 };
21037
21038 ;
21039 return 0;
21040}
21041
21042_ACEOF
21043
21044
21045 rm -Rf build && mkdir -p build
21046 echo "obj-m := conftest.o" >build/Makefile
21047 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'
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21050 ac_status=$?
21051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21055 ac_status=$?
21056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; }; then
21058
21059 { $as_echo "$as_me:$LINENO: result: yes" >&5
21060$as_echo "yes" >&6; }
21061
21062cat >>confdefs.h <<\_ACEOF
21063#define HAVE_NR_CACHED_OBJECTS 1
21064_ACEOF
21065
21066
21067else
21068 $as_echo "$as_me: failed program was:" >&5
21069sed 's/^/| /' conftest.$ac_ext >&5
21070
21071 { $as_echo "$as_me:$LINENO: result: no" >&5
21072$as_echo "no" >&6; }
21073
21074
21075
21076fi
21077
21078 rm -Rf build
21079
21080
21081
21082
21083 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
21084$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
21085
21086
21087cat confdefs.h - <<_ACEOF >conftest.c
21088/* confdefs.h. */
21089_ACEOF
21090cat confdefs.h >>conftest.$ac_ext
21091cat >>conftest.$ac_ext <<_ACEOF
21092/* end confdefs.h. */
21093
21094
21095 #include <linux/fs.h>
21096
21097int
21098main (void)
21099{
21100
21101 void (*free_cached_objects)(struct super_block *, int)
21102 __attribute__ ((unused)) = NULL;
21103 struct super_operations sops __attribute__ ((unused)) = {
21104 .free_cached_objects = free_cached_objects,
21105 };
21106
21107 ;
21108 return 0;
21109}
21110
21111_ACEOF
21112
21113
21114 rm -Rf build && mkdir -p build
21115 echo "obj-m := conftest.o" >build/Makefile
21116 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'
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21119 ac_status=$?
21120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21124 ac_status=$?
21125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; }; then
21127
21128 { $as_echo "$as_me:$LINENO: result: yes" >&5
21129$as_echo "yes" >&6; }
21130
21131cat >>confdefs.h <<\_ACEOF
21132#define HAVE_FREE_CACHED_OBJECTS 1
21133_ACEOF
21134
21135
21136else
21137 $as_echo "$as_me: failed program was:" >&5
21138sed 's/^/| /' conftest.$ac_ext >&5
21139
21140 { $as_echo "$as_me:$LINENO: result: no" >&5
21141$as_echo "no" >&6; }
21142
21143
21144
21145fi
21146
21147 rm -Rf build
21148
21149
21150
21151
bdf4328b
BB
21152 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
21153$as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
21154 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
21155 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21156 rc=$?
21157 if test $rc -ne 0; then
8366cd6a 21158
bdf4328b
BB
21159 export=0
21160 for file in fs/inode.c; do
21161 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
21162 rc=$?
8366cd6a
PS
21163 if test $rc -eq 0; then
21164
21165 export=1
21166 break;
21167
21168fi
21169
bdf4328b
BB
21170 done
21171 if test $export -eq 0; then
8366cd6a 21172
bdf4328b
BB
21173 { $as_echo "$as_me:$LINENO: result: no" >&5
21174$as_echo "no" >&6; }
21175
8366cd6a
PS
21176
21177else
21178
bdf4328b
BB
21179 { $as_echo "$as_me:$LINENO: result: yes" >&5
21180$as_echo "yes" >&6; }
21181
21182cat >>confdefs.h <<\_ACEOF
21183#define HAVE_INSERT_INODE_LOCKED 1
21184_ACEOF
21185
8366cd6a
PS
21186
21187fi
21188
21189
21190else
21191
bdf4328b
BB
21192 { $as_echo "$as_me:$LINENO: result: yes" >&5
21193$as_echo "yes" >&6; }
21194
21195cat >>confdefs.h <<\_ACEOF
21196#define HAVE_INSERT_INODE_LOCKED 1
21197_ACEOF
21198
8366cd6a
PS
21199
21200fi
21201
bdf4328b
BB
21202
21203
21204
055656d4
GB
21205 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
21206$as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
21207 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
21208 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21209 rc=$?
21210 if test $rc -ne 0; then
8366cd6a 21211
055656d4
GB
21212 export=0
21213 for file in fs/dcache.c; do
21214 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
21215 rc=$?
8366cd6a
PS
21216 if test $rc -eq 0; then
21217
21218 export=1
21219 break;
21220
21221fi
21222
055656d4
GB
21223 done
21224 if test $export -eq 0; then
8366cd6a 21225
055656d4
GB
21226 { $as_echo "$as_me:$LINENO: result: no" >&5
21227$as_echo "no" >&6; }
21228
8366cd6a
PS
21229
21230else
21231
055656d4
GB
21232 { $as_echo "$as_me:$LINENO: result: yes" >&5
21233$as_echo "yes" >&6; }
21234
21235cat >>confdefs.h <<\_ACEOF
21236#define HAVE_D_OBTAIN_ALIAS 1
21237_ACEOF
21238
8366cd6a
PS
21239
21240fi
21241
21242
21243else
21244
055656d4
GB
21245 { $as_echo "$as_me:$LINENO: result: yes" >&5
21246$as_echo "yes" >&6; }
21247
21248cat >>confdefs.h <<\_ACEOF
21249#define HAVE_D_OBTAIN_ALIAS 1
21250_ACEOF
21251
8366cd6a
PS
21252
21253fi
21254
055656d4
GB
21255
21256
21257
df554c14
BB
21258 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
21259$as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
21260 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
21261 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21262 rc=$?
21263 if test $rc -ne 0; then
8366cd6a 21264
df554c14
BB
21265 export=0
21266 for file in fs/block_dev.c; do
21267 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
21268 rc=$?
8366cd6a
PS
21269 if test $rc -eq 0; then
21270
21271 export=1
21272 break;
21273
21274fi
21275
df554c14
BB
21276 done
21277 if test $export -eq 0; then
8366cd6a 21278
df554c14
BB
21279 { $as_echo "$as_me:$LINENO: result: no" >&5
21280$as_echo "no" >&6; }
21281
8366cd6a
PS
21282
21283else
21284
df554c14
BB
21285 { $as_echo "$as_me:$LINENO: result: yes" >&5
21286$as_echo "yes" >&6; }
21287
21288cat >>confdefs.h <<\_ACEOF
21289#define HAVE_CHECK_DISK_SIZE_CHANGE 1
21290_ACEOF
21291
8366cd6a
PS
21292
21293fi
21294
21295
21296else
21297
df554c14
BB
21298 { $as_echo "$as_me:$LINENO: result: yes" >&5
21299$as_echo "yes" >&6; }
21300
21301cat >>confdefs.h <<\_ACEOF
21302#define HAVE_CHECK_DISK_SIZE_CHANGE 1
21303_ACEOF
21304
8366cd6a
PS
21305
21306fi
21307
df554c14
BB
21308
21309
21310
b3129792
PJ
21311 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
21312$as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
21313 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
21314 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21315 rc=$?
21316 if test $rc -ne 0; then
8366cd6a 21317
b3129792
PJ
21318 export=0
21319 for file in mm/truncate.c; do
21320 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
21321 rc=$?
8366cd6a
PS
21322 if test $rc -eq 0; then
21323
21324 export=1
21325 break;
21326
21327fi
21328
b3129792
PJ
21329 done
21330 if test $export -eq 0; then
8366cd6a 21331
b3129792
PJ
21332 { $as_echo "$as_me:$LINENO: result: no" >&5
21333$as_echo "no" >&6; }
21334
8366cd6a
PS
21335
21336else
21337
b3129792
PJ
21338 { $as_echo "$as_me:$LINENO: result: yes" >&5
21339$as_echo "yes" >&6; }
21340
21341cat >>confdefs.h <<\_ACEOF
21342#define HAVE_TRUNCATE_SETSIZE 1
21343_ACEOF
21344
8366cd6a
PS
21345
21346fi
21347
21348
21349else
21350
b3129792
PJ
21351 { $as_echo "$as_me:$LINENO: result: yes" >&5
21352$as_echo "yes" >&6; }
21353
21354cat >>confdefs.h <<\_ACEOF
21355#define HAVE_TRUNCATE_SETSIZE 1
21356_ACEOF
21357
8366cd6a
PS
21358
21359fi
21360
b3129792
PJ
21361
21362
21363
5c03efc3
BB
21364 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
21365$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
21366 tmp_flags="$EXTRA_KCFLAGS"
21367 EXTRA_KCFLAGS="-Werror"
21368
21369
21370cat confdefs.h - <<_ACEOF >conftest.c
21371/* confdefs.h. */
21372_ACEOF
21373cat confdefs.h >>conftest.$ac_ext
21374cat >>conftest.$ac_ext <<_ACEOF
21375/* end confdefs.h. */
21376
21377
21378 #include <linux/security.h>
21379
21380int
21381main (void)
21382{
21383
166dd49d
BB
21384 struct inode *ip __attribute__ ((unused)) = NULL;
21385 struct inode *dip __attribute__ ((unused)) = NULL;
21386 const struct qstr *str __attribute__ ((unused)) = NULL;
21387 char *name __attribute__ ((unused)) = NULL;
21388 void *value __attribute__ ((unused)) = NULL;
21389 size_t len __attribute__ ((unused)) = 0;
21390
21391 security_inode_init_security(ip, dip, str, &name, &value, &len);
5c03efc3
BB
21392
21393 ;
21394 return 0;
21395}
21396
21397_ACEOF
21398
21399
21400 rm -Rf build && mkdir -p build
21401 echo "obj-m := conftest.o" >build/Makefile
21402 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'
21403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404 (eval $ac_try) 2>&5
21405 ac_status=$?
21406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409 (eval $ac_try) 2>&5
21410 ac_status=$?
21411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; }; then
21413
21414 { $as_echo "$as_me:$LINENO: result: yes" >&5
21415$as_echo "yes" >&6; }
21416
21417cat >>confdefs.h <<\_ACEOF
21418#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
21419_ACEOF
21420
21421
21422else
21423 $as_echo "$as_me: failed program was:" >&5
21424sed 's/^/| /' conftest.$ac_ext >&5
21425
21426 { $as_echo "$as_me:$LINENO: result: no" >&5
21427$as_echo "no" >&6; }
21428
21429
21430
166dd49d
BB
21431fi
21432
21433 rm -Rf build
21434
21435
21436 EXTRA_KCFLAGS="$tmp_flags"
21437
21438
21439 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
21440$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
21441 tmp_flags="$EXTRA_KCFLAGS"
21442 EXTRA_KCFLAGS="-Werror"
21443
21444
21445cat confdefs.h - <<_ACEOF >conftest.c
21446/* confdefs.h. */
21447_ACEOF
21448cat confdefs.h >>conftest.$ac_ext
21449cat >>conftest.$ac_ext <<_ACEOF
21450/* end confdefs.h. */
21451
21452
21453 #include <linux/security.h>
21454
21455int
21456main (void)
21457{
21458
21459 struct inode *ip __attribute__ ((unused)) = NULL;
21460 struct inode *dip __attribute__ ((unused)) = NULL;
21461 const struct qstr *str __attribute__ ((unused)) = NULL;
21462 initxattrs func __attribute__ ((unused)) = NULL;
21463
21464 security_inode_init_security(ip, dip, str, func, NULL);
21465
21466 ;
21467 return 0;
21468}
21469
21470_ACEOF
21471
21472
21473 rm -Rf build && mkdir -p build
21474 echo "obj-m := conftest.o" >build/Makefile
21475 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'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21478 ac_status=$?
21479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21483 ac_status=$?
21484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
21486
21487 { $as_echo "$as_me:$LINENO: result: yes" >&5
21488$as_echo "yes" >&6; }
21489
21490cat >>confdefs.h <<\_ACEOF
21491#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
21492_ACEOF
21493
21494
21495else
21496 $as_echo "$as_me: failed program was:" >&5
21497sed 's/^/| /' conftest.$ac_ext >&5
21498
21499 { $as_echo "$as_me:$LINENO: result: no" >&5
21500$as_echo "no" >&6; }
21501
21502
21503
5c03efc3
BB
21504fi
21505
21506 rm -Rf build
21507
21508
21509 EXTRA_KCFLAGS="$tmp_flags"
21510
21511
2cf7f52b
BB
21512 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
21513$as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
21514 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
21515 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21516 rc=$?
21517 if test $rc -ne 0; then
8366cd6a 21518
2cf7f52b
BB
21519 export=0
21520 for file in fs/super.c; do
21521 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
21522 rc=$?
8366cd6a
PS
21523 if test $rc -eq 0; then
21524
21525 export=1
21526 break;
21527
21528fi
21529
2cf7f52b
BB
21530 done
21531 if test $export -eq 0; then
8366cd6a 21532
2cf7f52b
BB
21533 { $as_echo "$as_me:$LINENO: result: no" >&5
21534$as_echo "no" >&6; }
21535
8366cd6a
PS
21536
21537else
21538
2cf7f52b
BB
21539 { $as_echo "$as_me:$LINENO: result: yes" >&5
21540$as_echo "yes" >&6; }
21541
21542cat >>confdefs.h <<\_ACEOF
21543#define HAVE_MOUNT_NODEV 1
21544_ACEOF
21545
8366cd6a
PS
21546
21547fi
21548
21549
21550else
21551
2cf7f52b
BB
21552 { $as_echo "$as_me:$LINENO: result: yes" >&5
21553$as_echo "yes" >&6; }
21554
21555cat >>confdefs.h <<\_ACEOF
21556#define HAVE_MOUNT_NODEV 1
21557_ACEOF
21558
8366cd6a
PS
21559
21560fi
21561
2cf7f52b
BB
21562
21563
21564
ab26409d
BB
21565 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
21566$as_echo_n "checking whether super_block has s_shrink... " >&6; }
21567
21568
21569cat confdefs.h - <<_ACEOF >conftest.c
21570/* confdefs.h. */
21571_ACEOF
21572cat confdefs.h >>conftest.$ac_ext
21573cat >>conftest.$ac_ext <<_ACEOF
21574/* end confdefs.h. */
21575
21576
21577 #include <linux/fs.h>
21578
21579int
21580main (void)
21581{
21582
21583 int (*shrink)(struct shrinker *, struct shrink_control *sc)
21584 __attribute__ ((unused)) = NULL;
21585 struct super_block sb __attribute__ ((unused)) = {
21586 .s_shrink.shrink = shrink,
21587 .s_shrink.seeks = DEFAULT_SEEKS,
21588 .s_shrink.batch = 0,
21589 };
21590
21591 ;
21592 return 0;
21593}
21594
21595_ACEOF
21596
21597
21598 rm -Rf build && mkdir -p build
21599 echo "obj-m := conftest.o" >build/Makefile
21600 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'
21601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602 (eval $ac_try) 2>&5
21603 ac_status=$?
21604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; }; then
21611
21612 { $as_echo "$as_me:$LINENO: result: yes" >&5
21613$as_echo "yes" >&6; }
21614
21615cat >>confdefs.h <<\_ACEOF
21616#define HAVE_SHRINK 1
21617_ACEOF
21618
21619
21620
21621else
21622 $as_echo "$as_me: failed program was:" >&5
21623sed 's/^/| /' conftest.$ac_ext >&5
21624
21625 { $as_echo "$as_me:$LINENO: result: no" >&5
21626$as_echo "no" >&6; }
21627
21628
21629
21630fi
21631
21632 rm -Rf build
21633
21634
21635
21636
76659dc1
BB
21637 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
21638$as_echo_n "checking whether super_block has s_bdi... " >&6; }
21639
21640
21641cat confdefs.h - <<_ACEOF >conftest.c
21642/* confdefs.h. */
21643_ACEOF
21644cat confdefs.h >>conftest.$ac_ext
21645cat >>conftest.$ac_ext <<_ACEOF
21646/* end confdefs.h. */
21647
21648
21649 #include <linux/fs.h>
21650
21651int
21652main (void)
21653{
21654
21655 struct super_block sb __attribute__ ((unused));
21656 sb.s_bdi = NULL;
21657
21658 ;
21659 return 0;
21660}
21661
21662_ACEOF
21663
21664
21665 rm -Rf build && mkdir -p build
21666 echo "obj-m := conftest.o" >build/Makefile
21667 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'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21670 ac_status=$?
21671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21675 ac_status=$?
21676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; }; then
21678
21679 { $as_echo "$as_me:$LINENO: result: yes" >&5
21680$as_echo "yes" >&6; }
21681
21682cat >>confdefs.h <<\_ACEOF
21683#define HAVE_BDI 1
21684_ACEOF
21685
21686
21687else
21688 $as_echo "$as_me: failed program was:" >&5
21689sed 's/^/| /' conftest.$ac_ext >&5
21690
21691 { $as_echo "$as_me:$LINENO: result: no" >&5
21692$as_echo "no" >&6; }
21693
21694
21695
21696fi
21697
21698 rm -Rf build
21699
21700
21701
21702
5547c2f1
BB
21703 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
21704$as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
21705 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
21706 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21707 rc=$?
21708 if test $rc -ne 0; then
21709
21710 export=0
21711 for file in mm/backing-dev.c; do
21712 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
21713 rc=$?
21714 if test $rc -eq 0; then
21715
21716 export=1
21717 break;
21718
21719fi
21720
21721 done
21722 if test $export -eq 0; then
21723
21724 { $as_echo "$as_me:$LINENO: result: no" >&5
21725$as_echo "no" >&6; }
21726
21727
21728else
21729
21730 { $as_echo "$as_me:$LINENO: result: yes" >&5
21731$as_echo "yes" >&6; }
21732
21733cat >>confdefs.h <<\_ACEOF
21734#define HAVE_BDI_SETUP_AND_REGISTER 1
21735_ACEOF
21736
21737
21738fi
21739
21740
21741else
21742
21743 { $as_echo "$as_me:$LINENO: result: yes" >&5
21744$as_echo "yes" >&6; }
21745
21746cat >>confdefs.h <<\_ACEOF
21747#define HAVE_BDI_SETUP_AND_REGISTER 1
21748_ACEOF
21749
21750
21751fi
21752
21753
21754
21755
28eb9213
DH
21756 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
21757$as_echo_n "checking whether set_nlink() is available... " >&6; }
21758
21759
21760cat confdefs.h - <<_ACEOF >conftest.c
21761/* confdefs.h. */
21762_ACEOF
21763cat confdefs.h >>conftest.$ac_ext
21764cat >>conftest.$ac_ext <<_ACEOF
21765/* end confdefs.h. */
21766
21767
21768 #include <linux/fs.h>
21769
21770int
21771main (void)
21772{
21773
21774 struct inode node;
21775 unsigned int link = 0;
21776 (void) set_nlink(&node, link);
21777
21778 ;
21779 return 0;
21780}
21781
21782_ACEOF
21783
21784
21785 rm -Rf build && mkdir -p build
21786 echo "obj-m := conftest.o" >build/Makefile
21787 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'
21788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789 (eval $ac_try) 2>&5
21790 ac_status=$?
21791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21795 ac_status=$?
21796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798
21799 { $as_echo "$as_me:$LINENO: result: yes" >&5
21800$as_echo "yes" >&6; }
21801
21802cat >>confdefs.h <<\_ACEOF
21803#define HAVE_SET_NLINK 1
21804_ACEOF
21805
21806
21807else
21808 $as_echo "$as_me: failed program was:" >&5
21809sed 's/^/| /' conftest.$ac_ext >&5
21810
21811 { $as_echo "$as_me:$LINENO: result: no" >&5
21812$as_echo "no" >&6; }
21813
21814
21815
21816fi
21817
21818 rm -Rf build
21819
21820
21821
21822
e70e591c 21823 if test "$LINUX_OBJ" != "$LINUX"; then
8366cd6a 21824
e70e591c 21825 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
8366cd6a
PS
21826
21827fi
21828
e70e591c
BB
21829
21830
21831
8a7e1cee 21832 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
12c1acde 21833 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
6283f55e
BB
21834 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
21835
21836
e70e591c
BB
21837
21838
21839
de0a1c09
BB
21840
21841# Check whether --with-udevdir was given.
21842if test "${with_udevdir+set}" = set; then
21843 withval=$with_udevdir; udevdir=$withval
21844else
21845 udevdir='${exec_prefix}/lib/udev'
21846fi
21847
21848
21849
21850# Check whether --with-udevruledir was given.
21851if test "${with_udevruledir+set}" = set; then
21852 withval=$with_udevruledir; udevruledir=$withval
21853else
21854 udevruledir='${udevdir}/rules.d'
21855fi
21856
21857
21858
21859
21860
21861
e70e591c
BB
21862 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
21863$as_echo_n "checking for target asm dir... " >&6; }
21864 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
21865
21866 case $TARGET_ARCH in
21867 i386|x86_64)
21868 TARGET_ASM_DIR=asm-${TARGET_ARCH}
21869 ;;
21870 *)
21871 TARGET_ASM_DIR=asm-generic
21872 ;;
21873 esac
21874
21875
21876 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
21877$as_echo "$TARGET_ASM_DIR" >&6; }
21878
21879
e70e591c
BB
21880 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
21881$as_echo_n "checking for ioctl()... " >&6; }
21882 cat >conftest.$ac_ext <<_ACEOF
21883/* confdefs.h. */
21884_ACEOF
21885cat confdefs.h >>conftest.$ac_ext
21886cat >>conftest.$ac_ext <<_ACEOF
21887/* end confdefs.h. */
21888#include <unistd.h>
21889
21890_ACEOF
21891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21892 $EGREP "ioctl" >/dev/null 2>&1; then
21893 is_unistd=yes
21894else
21895 is_unistd=no
21896fi
21897rm -f conftest*
21898
21899 cat >conftest.$ac_ext <<_ACEOF
21900/* confdefs.h. */
21901_ACEOF
21902cat confdefs.h >>conftest.$ac_ext
21903cat >>conftest.$ac_ext <<_ACEOF
21904/* end confdefs.h. */
21905#include <sys/ioctl.h>
21906
21907_ACEOF
21908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21909 $EGREP "ioctl" >/dev/null 2>&1; then
21910 is_sys_ioctl=yes
21911else
21912 is_sys_ioctl=no
21913fi
21914rm -f conftest*
21915
21916 cat >conftest.$ac_ext <<_ACEOF
21917/* confdefs.h. */
21918_ACEOF
21919cat confdefs.h >>conftest.$ac_ext
21920cat >>conftest.$ac_ext <<_ACEOF
21921/* end confdefs.h. */
21922#include <stropts.h>
21923
21924_ACEOF
21925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21926 $EGREP "ioctl" >/dev/null 2>&1; then
21927 is_stropts=yes
21928else
21929 is_stropts=no
21930fi
21931rm -f conftest*
21932
21933
21934 if test $is_unistd = yes; then
21935 result=unistd.h
21936
21937cat >>confdefs.h <<\_ACEOF
21938#define HAVE_IOCTL_IN_UNISTD_H 1
21939_ACEOF
21940
21941 else
21942
21943 if test $is_sys_ioctl = yes; then
21944 result=sys/ioctl.h
21945
21946cat >>confdefs.h <<\_ACEOF
21947#define HAVE_IOCTL_IN_SYS_IOCTL_H 1
21948_ACEOF
21949
21950 elif test $is_stropts = yes; then
21951
21952cat >>confdefs.h <<\_ACEOF
21953#define HAVE_IOCTL_IN_STROPTS_H 1
21954_ACEOF
21955
21956 else
21957 result=no
21958 fi
21959 fi
21960
21961 if test $result = no; then
21962 { $as_echo "$as_me:$LINENO: result: no" >&5
21963$as_echo "no" >&6; }
21964 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
21965$as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
21966 { (exit 1); exit 1; }; }
21967 else
21968 { $as_echo "$as_me:$LINENO: result: yes" >&5
21969$as_echo "yes" >&6; }
21970 fi
21971
21972
21973 ZLIB=
21974
21975 if test "${ac_cv_header_zlib_h+set}" = set; then
21976 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
21977$as_echo_n "checking for zlib.h... " >&6; }
21978if test "${ac_cv_header_zlib_h+set}" = set; then
21979 $as_echo_n "(cached) " >&6
21980fi
21981{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21982$as_echo "$ac_cv_header_zlib_h" >&6; }
21983else
21984 # Is the header compilable?
21985{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
21986$as_echo_n "checking zlib.h usability... " >&6; }
21987cat >conftest.$ac_ext <<_ACEOF
21988/* confdefs.h. */
21989_ACEOF
21990cat confdefs.h >>conftest.$ac_ext
21991cat >>conftest.$ac_ext <<_ACEOF
21992/* end confdefs.h. */
21993$ac_includes_default
21994#include <zlib.h>
21995_ACEOF
21996rm -f conftest.$ac_objext
21997if { (ac_try="$ac_compile"
21998case "(($ac_try" in
21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000 *) ac_try_echo=$ac_try;;
22001esac
22002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22003$as_echo "$ac_try_echo") >&5
22004 (eval "$ac_compile") 2>conftest.er1
22005 ac_status=$?
22006 grep -v '^ *+' conftest.er1 >conftest.err
22007 rm -f conftest.er1
22008 cat conftest.err >&5
22009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } && {
22011 test -z "$ac_c_werror_flag" ||
22012 test ! -s conftest.err
22013 } && test -s conftest.$ac_objext; then
22014 ac_header_compiler=yes
22015else
22016 $as_echo "$as_me: failed program was:" >&5
22017sed 's/^/| /' conftest.$ac_ext >&5
22018
22019 ac_header_compiler=no
22020fi
22021
22022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22023{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22024$as_echo "$ac_header_compiler" >&6; }
22025
22026# Is the header present?
22027{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
22028$as_echo_n "checking zlib.h presence... " >&6; }
22029cat >conftest.$ac_ext <<_ACEOF
22030/* confdefs.h. */
22031_ACEOF
22032cat confdefs.h >>conftest.$ac_ext
22033cat >>conftest.$ac_ext <<_ACEOF
22034/* end confdefs.h. */
22035#include <zlib.h>
22036_ACEOF
22037if { (ac_try="$ac_cpp conftest.$ac_ext"
22038case "(($ac_try" in
22039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040 *) ac_try_echo=$ac_try;;
22041esac
22042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22043$as_echo "$ac_try_echo") >&5
22044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22045 ac_status=$?
22046 grep -v '^ *+' conftest.er1 >conftest.err
22047 rm -f conftest.er1
22048 cat conftest.err >&5
22049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } >/dev/null && {
22051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22052 test ! -s conftest.err
22053 }; then
22054 ac_header_preproc=yes
22055else
22056 $as_echo "$as_me: failed program was:" >&5
22057sed 's/^/| /' conftest.$ac_ext >&5
22058
22059 ac_header_preproc=no
22060fi
22061
22062rm -f conftest.err conftest.$ac_ext
22063{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22064$as_echo "$ac_header_preproc" >&6; }
22065
22066# So? What about this header?
22067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22068 yes:no: )
22069 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22070$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22071 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22072$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22073 ac_header_preproc=yes
22074 ;;
22075 no:yes:* )
22076 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22077$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
22078 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22079$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22080 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22081$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22082 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22083$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
22084 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22085$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
22086 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22087$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
22088
22089 ;;
22090esac
22091{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
22092$as_echo_n "checking for zlib.h... " >&6; }
22093if test "${ac_cv_header_zlib_h+set}" = set; then
22094 $as_echo_n "(cached) " >&6
22095else
22096 ac_cv_header_zlib_h=$ac_header_preproc
22097fi
22098{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22099$as_echo "$ac_cv_header_zlib_h" >&6; }
22100
22101fi
22102if test "x$ac_cv_header_zlib_h" = x""yes; then
22103 :
22104else
22105 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22107{ { $as_echo "$as_me:$LINENO: error:
22108 *** zlib.h missing, zlib-devel package required
22109See \`config.log' for more details." >&5
22110$as_echo "$as_me: error:
22111 *** zlib.h missing, zlib-devel package required
22112See \`config.log' for more details." >&2;}
22113 { (exit 1); exit 1; }; }; }
22114fi
22115
22116
22117
22118
22119{ $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
22120$as_echo_n "checking for compress2 in -lz... " >&6; }
22121if test "${ac_cv_lib_z_compress2+set}" = set; then
22122 $as_echo_n "(cached) " >&6
22123else
22124 ac_check_lib_save_LIBS=$LIBS
22125LIBS="-lz $LIBS"
22126cat >conftest.$ac_ext <<_ACEOF
22127/* confdefs.h. */
22128_ACEOF
22129cat confdefs.h >>conftest.$ac_ext
22130cat >>conftest.$ac_ext <<_ACEOF
22131/* end confdefs.h. */
22132
22133/* Override any GCC internal prototype to avoid an error.
22134 Use char because int might match the return type of a GCC
22135 builtin and then its argument prototype would still apply. */
22136#ifdef __cplusplus
22137extern "C"
22138#endif
22139char compress2 ();
22140int
22141main ()
22142{
22143return compress2 ();
22144 ;
22145 return 0;
22146}
22147_ACEOF
22148rm -f conftest.$ac_objext conftest$ac_exeext
22149if { (ac_try="$ac_link"
22150case "(($ac_try" in
22151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22152 *) ac_try_echo=$ac_try;;
22153esac
22154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22155$as_echo "$ac_try_echo") >&5
22156 (eval "$ac_link") 2>conftest.er1
22157 ac_status=$?
22158 grep -v '^ *+' conftest.er1 >conftest.err
22159 rm -f conftest.er1
22160 cat conftest.err >&5
22161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } && {
22163 test -z "$ac_c_werror_flag" ||
22164 test ! -s conftest.err
22165 } && test -s conftest$ac_exeext && {
22166 test "$cross_compiling" = yes ||
22167 $as_test_x conftest$ac_exeext
22168 }; then
22169 ac_cv_lib_z_compress2=yes
22170else
22171 $as_echo "$as_me: failed program was:" >&5
22172sed 's/^/| /' conftest.$ac_ext >&5
22173
22174 ac_cv_lib_z_compress2=no
22175fi
22176
22177rm -rf conftest.dSYM
22178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22179 conftest$ac_exeext conftest.$ac_ext
22180LIBS=$ac_check_lib_save_LIBS
22181fi
22182{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
22183$as_echo "$ac_cv_lib_z_compress2" >&6; }
22184if test "x$ac_cv_lib_z_compress2" = x""yes; then
22185 cat >>confdefs.h <<_ACEOF
22186#define HAVE_LIBZ 1
22187_ACEOF
22188
22189 LIBS="-lz $LIBS"
22190
22191else
22192 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22194{ { $as_echo "$as_me:$LINENO: error:
22195 *** compress2() missing, zlib-devel package required
22196See \`config.log' for more details." >&5
22197$as_echo "$as_me: error:
22198 *** compress2() missing, zlib-devel package required
22199See \`config.log' for more details." >&2;}
22200 { (exit 1); exit 1; }; }; }
22201fi
22202
22203
22204
22205{ $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
22206$as_echo_n "checking for uncompress in -lz... " >&6; }
22207if test "${ac_cv_lib_z_uncompress+set}" = set; then
22208 $as_echo_n "(cached) " >&6
22209else
22210 ac_check_lib_save_LIBS=$LIBS
22211LIBS="-lz $LIBS"
22212cat >conftest.$ac_ext <<_ACEOF
22213/* confdefs.h. */
22214_ACEOF
22215cat confdefs.h >>conftest.$ac_ext
22216cat >>conftest.$ac_ext <<_ACEOF
22217/* end confdefs.h. */
22218
22219/* Override any GCC internal prototype to avoid an error.
22220 Use char because int might match the return type of a GCC
22221 builtin and then its argument prototype would still apply. */
22222#ifdef __cplusplus
22223extern "C"
22224#endif
22225char uncompress ();
22226int
22227main ()
22228{
22229return uncompress ();
22230 ;
22231 return 0;
22232}
22233_ACEOF
22234rm -f conftest.$ac_objext conftest$ac_exeext
22235if { (ac_try="$ac_link"
22236case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22239esac
22240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22241$as_echo "$ac_try_echo") >&5
22242 (eval "$ac_link") 2>conftest.er1
22243 ac_status=$?
22244 grep -v '^ *+' conftest.er1 >conftest.err
22245 rm -f conftest.er1
22246 cat conftest.err >&5
22247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } && {
22249 test -z "$ac_c_werror_flag" ||
22250 test ! -s conftest.err
22251 } && test -s conftest$ac_exeext && {
22252 test "$cross_compiling" = yes ||
22253 $as_test_x conftest$ac_exeext
22254 }; then
22255 ac_cv_lib_z_uncompress=yes
22256else
22257 $as_echo "$as_me: failed program was:" >&5
22258sed 's/^/| /' conftest.$ac_ext >&5
22259
22260 ac_cv_lib_z_uncompress=no
22261fi
22262
22263rm -rf conftest.dSYM
22264rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22265 conftest$ac_exeext conftest.$ac_ext
22266LIBS=$ac_check_lib_save_LIBS
22267fi
22268{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
22269$as_echo "$ac_cv_lib_z_uncompress" >&6; }
22270if test "x$ac_cv_lib_z_uncompress" = x""yes; then
22271 cat >>confdefs.h <<_ACEOF
22272#define HAVE_LIBZ 1
22273_ACEOF
22274
22275 LIBS="-lz $LIBS"
22276
22277else
22278 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22280{ { $as_echo "$as_me:$LINENO: error:
22281 *** uncompress() missing, zlib-devel package required
22282See \`config.log' for more details." >&5
22283$as_echo "$as_me: error:
22284 *** uncompress() missing, zlib-devel package required
22285See \`config.log' for more details." >&2;}
22286 { (exit 1); exit 1; }; }; }
22287fi
22288
22289
22290
22291{ $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
22292$as_echo_n "checking for crc32 in -lz... " >&6; }
22293if test "${ac_cv_lib_z_crc32+set}" = set; then
22294 $as_echo_n "(cached) " >&6
22295else
22296 ac_check_lib_save_LIBS=$LIBS
22297LIBS="-lz $LIBS"
22298cat >conftest.$ac_ext <<_ACEOF
22299/* confdefs.h. */
22300_ACEOF
22301cat confdefs.h >>conftest.$ac_ext
22302cat >>conftest.$ac_ext <<_ACEOF
22303/* end confdefs.h. */
22304
22305/* Override any GCC internal prototype to avoid an error.
22306 Use char because int might match the return type of a GCC
22307 builtin and then its argument prototype would still apply. */
22308#ifdef __cplusplus
22309extern "C"
22310#endif
22311char crc32 ();
22312int
22313main ()
22314{
22315return crc32 ();
22316 ;
22317 return 0;
22318}
22319_ACEOF
22320rm -f conftest.$ac_objext conftest$ac_exeext
22321if { (ac_try="$ac_link"
22322case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22325esac
22326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22327$as_echo "$ac_try_echo") >&5
22328 (eval "$ac_link") 2>conftest.er1
22329 ac_status=$?
22330 grep -v '^ *+' conftest.er1 >conftest.err
22331 rm -f conftest.er1
22332 cat conftest.err >&5
22333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } && {
22335 test -z "$ac_c_werror_flag" ||
22336 test ! -s conftest.err
22337 } && test -s conftest$ac_exeext && {
22338 test "$cross_compiling" = yes ||
22339 $as_test_x conftest$ac_exeext
22340 }; then
22341 ac_cv_lib_z_crc32=yes
22342else
22343 $as_echo "$as_me: failed program was:" >&5
22344sed 's/^/| /' conftest.$ac_ext >&5
22345
22346 ac_cv_lib_z_crc32=no
22347fi
22348
22349rm -rf conftest.dSYM
22350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22351 conftest$ac_exeext conftest.$ac_ext
22352LIBS=$ac_check_lib_save_LIBS
22353fi
22354{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
22355$as_echo "$ac_cv_lib_z_crc32" >&6; }
22356if test "x$ac_cv_lib_z_crc32" = x""yes; then
22357 cat >>confdefs.h <<_ACEOF
22358#define HAVE_LIBZ 1
22359_ACEOF
22360
22361 LIBS="-lz $LIBS"
22362
22363else
22364 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22366{ { $as_echo "$as_me:$LINENO: error:
22367 *** crc32() missing, zlib-devel package required
22368See \`config.log' for more details." >&5
22369$as_echo "$as_me: error:
22370 *** crc32() missing, zlib-devel package required
22371See \`config.log' for more details." >&2;}
22372 { (exit 1); exit 1; }; }; }
22373fi
22374
22375
22376 ZLIB="-lz"
22377
22378
22379cat >>confdefs.h <<\_ACEOF
22380#define HAVE_ZLIB 1
22381_ACEOF
22382
22383
22384
22385 LIBUUID=
22386
22387 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
22388 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
22389$as_echo_n "checking for uuid/uuid.h... " >&6; }
22390if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
22391 $as_echo_n "(cached) " >&6
22392fi
22393{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
22394$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
22395else
22396 # Is the header compilable?
22397{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
22398$as_echo_n "checking uuid/uuid.h usability... " >&6; }
22399cat >conftest.$ac_ext <<_ACEOF
22400/* confdefs.h. */
22401_ACEOF
22402cat confdefs.h >>conftest.$ac_ext
22403cat >>conftest.$ac_ext <<_ACEOF
22404/* end confdefs.h. */
22405$ac_includes_default
22406#include <uuid/uuid.h>
22407_ACEOF
22408rm -f conftest.$ac_objext
22409if { (ac_try="$ac_compile"
22410case "(($ac_try" in
22411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22412 *) ac_try_echo=$ac_try;;
22413esac
22414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22415$as_echo "$ac_try_echo") >&5
22416 (eval "$ac_compile") 2>conftest.er1
22417 ac_status=$?
22418 grep -v '^ *+' conftest.er1 >conftest.err
22419 rm -f conftest.er1
22420 cat conftest.err >&5
22421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } && {
22423 test -z "$ac_c_werror_flag" ||
22424 test ! -s conftest.err
22425 } && test -s conftest.$ac_objext; then
22426 ac_header_compiler=yes
22427else
22428 $as_echo "$as_me: failed program was:" >&5
22429sed 's/^/| /' conftest.$ac_ext >&5
22430
22431 ac_header_compiler=no
22432fi
22433
22434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22435{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22436$as_echo "$ac_header_compiler" >&6; }
22437
22438# Is the header present?
22439{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
22440$as_echo_n "checking uuid/uuid.h presence... " >&6; }
22441cat >conftest.$ac_ext <<_ACEOF
22442/* confdefs.h. */
22443_ACEOF
22444cat confdefs.h >>conftest.$ac_ext
22445cat >>conftest.$ac_ext <<_ACEOF
22446/* end confdefs.h. */
22447#include <uuid/uuid.h>
22448_ACEOF
22449if { (ac_try="$ac_cpp conftest.$ac_ext"
22450case "(($ac_try" in
22451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452 *) ac_try_echo=$ac_try;;
22453esac
22454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22455$as_echo "$ac_try_echo") >&5
22456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22457 ac_status=$?
22458 grep -v '^ *+' conftest.er1 >conftest.err
22459 rm -f conftest.er1
22460 cat conftest.err >&5
22461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); } >/dev/null && {
22463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22464 test ! -s conftest.err
22465 }; then
22466 ac_header_preproc=yes
22467else
22468 $as_echo "$as_me: failed program was:" >&5
22469sed 's/^/| /' conftest.$ac_ext >&5
22470
22471 ac_header_preproc=no
22472fi
22473
22474rm -f conftest.err conftest.$ac_ext
22475{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22476$as_echo "$ac_header_preproc" >&6; }
22477
22478# So? What about this header?
22479case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22480 yes:no: )
22481 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
22482$as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22483 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
22484$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
22485 ac_header_preproc=yes
22486 ;;
22487 no:yes:* )
22488 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
22489$as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
22490 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
22491$as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
22492 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
22493$as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
22494 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
22495$as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
22496 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
22497$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
22498 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
22499$as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
22500
22501 ;;
22502esac
22503{ $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
22504$as_echo_n "checking for uuid/uuid.h... " >&6; }
22505if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
22506 $as_echo_n "(cached) " >&6
22507else
22508 ac_cv_header_uuid_uuid_h=$ac_header_preproc
22509fi
22510{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
22511$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
22512
22513fi
22514if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
22515 :
22516else
22517 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22519{ { $as_echo "$as_me:$LINENO: error:
22520 *** uuid/uuid.h missing, libuuid-devel package required
22521See \`config.log' for more details." >&5
22522$as_echo "$as_me: error:
22523 *** uuid/uuid.h missing, libuuid-devel package required
22524See \`config.log' for more details." >&2;}
22525 { (exit 1); exit 1; }; }; }
22526fi
22527
22528
22529
22530
22531{ $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
22532$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
22533if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
22534 $as_echo_n "(cached) " >&6
22535else
22536 ac_check_lib_save_LIBS=$LIBS
22537LIBS="-luuid $LIBS"
22538cat >conftest.$ac_ext <<_ACEOF
22539/* confdefs.h. */
22540_ACEOF
22541cat confdefs.h >>conftest.$ac_ext
22542cat >>conftest.$ac_ext <<_ACEOF
22543/* end confdefs.h. */
22544
22545/* Override any GCC internal prototype to avoid an error.
22546 Use char because int might match the return type of a GCC
22547 builtin and then its argument prototype would still apply. */
22548#ifdef __cplusplus
22549extern "C"
22550#endif
22551char uuid_generate ();
22552int
22553main ()
22554{
22555return uuid_generate ();
22556 ;
22557 return 0;
22558}
22559_ACEOF
22560rm -f conftest.$ac_objext conftest$ac_exeext
22561if { (ac_try="$ac_link"
22562case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22565esac
22566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22567$as_echo "$ac_try_echo") >&5
22568 (eval "$ac_link") 2>conftest.er1
22569 ac_status=$?
22570 grep -v '^ *+' conftest.er1 >conftest.err
22571 rm -f conftest.er1
22572 cat conftest.err >&5
22573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } && {
22575 test -z "$ac_c_werror_flag" ||
22576 test ! -s conftest.err
22577 } && test -s conftest$ac_exeext && {
22578 test "$cross_compiling" = yes ||
22579 $as_test_x conftest$ac_exeext
22580 }; then
22581 ac_cv_lib_uuid_uuid_generate=yes
22582else
22583 $as_echo "$as_me: failed program was:" >&5
22584sed 's/^/| /' conftest.$ac_ext >&5
22585
22586 ac_cv_lib_uuid_uuid_generate=no
22587fi
22588
22589rm -rf conftest.dSYM
22590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22591 conftest$ac_exeext conftest.$ac_ext
22592LIBS=$ac_check_lib_save_LIBS
22593fi
22594{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
22595$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
22596if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
22597 cat >>confdefs.h <<_ACEOF
22598#define HAVE_LIBUUID 1
22599_ACEOF
22600
22601 LIBS="-luuid $LIBS"
22602
22603else
22604 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22606{ { $as_echo "$as_me:$LINENO: error:
22607 *** uuid_generate() missing, libuuid-devel package required
22608See \`config.log' for more details." >&5
22609$as_echo "$as_me: error:
22610 *** uuid_generate() missing, libuuid-devel package required
22611See \`config.log' for more details." >&2;}
22612 { (exit 1); exit 1; }; }; }
22613fi
22614
22615
22616
22617{ $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
22618$as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
22619if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
22620 $as_echo_n "(cached) " >&6
22621else
22622 ac_check_lib_save_LIBS=$LIBS
22623LIBS="-luuid $LIBS"
22624cat >conftest.$ac_ext <<_ACEOF
22625/* confdefs.h. */
22626_ACEOF
22627cat confdefs.h >>conftest.$ac_ext
22628cat >>conftest.$ac_ext <<_ACEOF
22629/* end confdefs.h. */
22630
22631/* Override any GCC internal prototype to avoid an error.
22632 Use char because int might match the return type of a GCC
22633 builtin and then its argument prototype would still apply. */
22634#ifdef __cplusplus
22635extern "C"
22636#endif
22637char uuid_is_null ();
22638int
22639main ()
22640{
22641return uuid_is_null ();
22642 ;
22643 return 0;
22644}
22645_ACEOF
22646rm -f conftest.$ac_objext conftest$ac_exeext
22647if { (ac_try="$ac_link"
22648case "(($ac_try" in
22649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650 *) ac_try_echo=$ac_try;;
22651esac
22652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22653$as_echo "$ac_try_echo") >&5
22654 (eval "$ac_link") 2>conftest.er1
22655 ac_status=$?
22656 grep -v '^ *+' conftest.er1 >conftest.err
22657 rm -f conftest.er1
22658 cat conftest.err >&5
22659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); } && {
22661 test -z "$ac_c_werror_flag" ||
22662 test ! -s conftest.err
22663 } && test -s conftest$ac_exeext && {
22664 test "$cross_compiling" = yes ||
22665 $as_test_x conftest$ac_exeext
22666 }; then
22667 ac_cv_lib_uuid_uuid_is_null=yes
22668else
22669 $as_echo "$as_me: failed program was:" >&5
22670sed 's/^/| /' conftest.$ac_ext >&5
22671
22672 ac_cv_lib_uuid_uuid_is_null=no
22673fi
22674
22675rm -rf conftest.dSYM
22676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22677 conftest$ac_exeext conftest.$ac_ext
22678LIBS=$ac_check_lib_save_LIBS
22679fi
22680{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
22681$as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
22682if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
22683 cat >>confdefs.h <<_ACEOF
22684#define HAVE_LIBUUID 1
22685_ACEOF
22686
22687 LIBS="-luuid $LIBS"
22688
22689else
22690 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22692{ { $as_echo "$as_me:$LINENO: error:
22693 *** uuid_is_null() missing, libuuid-devel package required
22694See \`config.log' for more details." >&5
22695$as_echo "$as_me: error:
22696 *** uuid_is_null() missing, libuuid-devel package required
22697See \`config.log' for more details." >&2;}
22698 { (exit 1); exit 1; }; }; }
22699fi
22700
22701
22702 LIBUUID="-luuid"
22703
22704
22705cat >>confdefs.h <<\_ACEOF
22706#define HAVE_LIBUUID 1
22707_ACEOF
22708
22709
22710
22711
22712# Check whether --with-blkid was given.
22713if test "${with_blkid+set}" = set; then
22714 withval=$with_blkid;
22715else
22716 with_blkid=check
22717fi
22718
22719
22720 LIBBLKID=
22721 if test "x$with_blkid" != xno; then
22722
22723 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
22724$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
22725if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
22726 $as_echo_n "(cached) " >&6
22727else
22728 ac_check_lib_save_LIBS=$LIBS
22729LIBS="-lblkid $LIBS"
22730cat >conftest.$ac_ext <<_ACEOF
22731/* confdefs.h. */
22732_ACEOF
22733cat confdefs.h >>conftest.$ac_ext
22734cat >>conftest.$ac_ext <<_ACEOF
22735/* end confdefs.h. */
22736
22737/* Override any GCC internal prototype to avoid an error.
22738 Use char because int might match the return type of a GCC
22739 builtin and then its argument prototype would still apply. */
22740#ifdef __cplusplus
22741extern "C"
22742#endif
22743char blkid_get_cache ();
22744int
22745main ()
22746{
22747return blkid_get_cache ();
22748 ;
22749 return 0;
22750}
22751_ACEOF
22752rm -f conftest.$ac_objext conftest$ac_exeext
22753if { (ac_try="$ac_link"
22754case "(($ac_try" in
22755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22756 *) ac_try_echo=$ac_try;;
22757esac
22758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22759$as_echo "$ac_try_echo") >&5
22760 (eval "$ac_link") 2>conftest.er1
22761 ac_status=$?
22762 grep -v '^ *+' conftest.er1 >conftest.err
22763 rm -f conftest.er1
22764 cat conftest.err >&5
22765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); } && {
22767 test -z "$ac_c_werror_flag" ||
22768 test ! -s conftest.err
22769 } && test -s conftest$ac_exeext && {
22770 test "$cross_compiling" = yes ||
22771 $as_test_x conftest$ac_exeext
22772 }; then
22773 ac_cv_lib_blkid_blkid_get_cache=yes
22774else
22775 $as_echo "$as_me: failed program was:" >&5
22776sed 's/^/| /' conftest.$ac_ext >&5
22777
22778 ac_cv_lib_blkid_blkid_get_cache=no
22779fi
22780
22781rm -rf conftest.dSYM
22782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22783 conftest$ac_exeext conftest.$ac_ext
22784LIBS=$ac_check_lib_save_LIBS
22785fi
22786{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
22787$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
22788if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
22789
22790 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
22791$as_echo_n "checking for blkid zfs support... " >&6; }
22792
22793 ZFS_DEV=`mktemp`
22794 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
22795 >/dev/null 2>/dev/null
22796 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
22797 dd of=$ZFS_DEV bs=1k count=8 \
22798 seek=132 conv=notrunc &>/dev/null \
22799 >/dev/null 2>/dev/null
22800
22801 saved_LDFLAGS="$LDFLAGS"
22802 LDFLAGS="-lblkid"
22803
22804 if test "$cross_compiling" = yes; then
22805 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22807{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22808See \`config.log' for more details." >&5
22809$as_echo "$as_me: error: cannot run test program while cross compiling
22810See \`config.log' for more details." >&2;}
22811 { (exit 1); exit 1; }; }; }
22812else
22813 cat >conftest.$ac_ext <<_ACEOF
22814/* confdefs.h. */
22815_ACEOF
22816cat confdefs.h >>conftest.$ac_ext
22817cat >>conftest.$ac_ext <<_ACEOF
22818/* end confdefs.h. */
22819
22820 #include <stdio.h>
22821 #include <blkid/blkid.h>
22822
22823int
22824main ()
22825{
22826
22827 blkid_cache cache;
22828 char *value;
22829
22830 if (blkid_get_cache(&cache, NULL) < 0)
22831 return 1;
22832
22833 value = blkid_get_tag_value(cache, "TYPE",
22834 "$ZFS_DEV");
22835 if (!value) {
22836 blkid_put_cache(cache);
22837 return 2;
22838 }
22839
22840 if (strcmp(value, "zfs")) {
22841 free(value);
22842 blkid_put_cache(cache);
22843 return 3;
22844 }
22845
22846 free(value);
22847 blkid_put_cache(cache);
22848
22849 ;
22850 return 0;
22851}
22852_ACEOF
22853rm -f conftest$ac_exeext
22854if { (ac_try="$ac_link"
22855case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22858esac
22859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22860$as_echo "$ac_try_echo") >&5
22861 (eval "$ac_link") 2>&5
22862 ac_status=$?
22863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22865 { (case "(($ac_try" in
22866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22867 *) ac_try_echo=$ac_try;;
22868esac
22869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22870$as_echo "$ac_try_echo") >&5
22871 (eval "$ac_try") 2>&5
22872 ac_status=$?
22873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); }; }; then
22875
22876 rm -f $ZFS_DEV
22877 { $as_echo "$as_me:$LINENO: result: yes" >&5
22878$as_echo "yes" >&6; }
22879 LIBBLKID="-lblkid"
22880
22881
22882cat >>confdefs.h <<\_ACEOF
22883#define HAVE_LIBBLKID 1
22884_ACEOF
22885
22886
22887else
22888 $as_echo "$as_me: program exited with status $ac_status" >&5
22889$as_echo "$as_me: failed program was:" >&5
22890sed 's/^/| /' conftest.$ac_ext >&5
22891
22892( exit $ac_status )
22893
22894 rm -f $ZFS_DEV
22895 { $as_echo "$as_me:$LINENO: result: no" >&5
22896$as_echo "no" >&6; }
22897 if test "x$with_blkid" != xcheck; then
22898 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22900{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
22901See \`config.log' for more details." >&5
22902$as_echo "$as_me: error: --with-blkid given but unavailable
22903See \`config.log' for more details." >&2;}
22904 { (exit 1); exit 1; }; }; }
22905fi
22906
22907
22908fi
22909rm -rf conftest.dSYM
22910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22911fi
22912
22913
22914
22915 LDFLAGS="$saved_LDFLAGS"
22916
22917else
22918
22919 if test "x$with_blkid" != xcheck; then
22920 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22922{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
22923See \`config.log' for more details." >&5
22924$as_echo "$as_me: error: --with-blkid given but unavailable
22925See \`config.log' for more details." >&2;}
22926 { (exit 1); exit 1; }; }; }
22927fi
22928
22929
22930
22931fi
22932
22933
22934fi
22935
22936
22937
b3259b6a
BB
22938
22939# Check whether --with-selinux was given.
22940if test "${with_selinux+set}" = set; then
22941 withval=$with_selinux;
22942else
22943 with_selinux=check
22944fi
22945
22946
22947 LIBSELINUX=
22948 if test "x$with_selinux" != xno; then
22949
22950 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
22951 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
22952$as_echo_n "checking for selinux/selinux.h... " >&6; }
22953if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
22954 $as_echo_n "(cached) " >&6
22955fi
22956{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
22957$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
22958else
22959 # Is the header compilable?
22960{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
22961$as_echo_n "checking selinux/selinux.h usability... " >&6; }
22962cat >conftest.$ac_ext <<_ACEOF
22963/* confdefs.h. */
22964_ACEOF
22965cat confdefs.h >>conftest.$ac_ext
22966cat >>conftest.$ac_ext <<_ACEOF
22967/* end confdefs.h. */
22968$ac_includes_default
22969#include <selinux/selinux.h>
22970_ACEOF
22971rm -f conftest.$ac_objext
22972if { (ac_try="$ac_compile"
22973case "(($ac_try" in
22974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22975 *) ac_try_echo=$ac_try;;
22976esac
22977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22978$as_echo "$ac_try_echo") >&5
22979 (eval "$ac_compile") 2>conftest.er1
22980 ac_status=$?
22981 grep -v '^ *+' conftest.er1 >conftest.err
22982 rm -f conftest.er1
22983 cat conftest.err >&5
22984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); } && {
22986 test -z "$ac_c_werror_flag" ||
22987 test ! -s conftest.err
22988 } && test -s conftest.$ac_objext; then
22989 ac_header_compiler=yes
22990else
22991 $as_echo "$as_me: failed program was:" >&5
22992sed 's/^/| /' conftest.$ac_ext >&5
22993
22994 ac_header_compiler=no
22995fi
22996
22997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22998{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22999$as_echo "$ac_header_compiler" >&6; }
23000
23001# Is the header present?
23002{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
23003$as_echo_n "checking selinux/selinux.h presence... " >&6; }
23004cat >conftest.$ac_ext <<_ACEOF
23005/* confdefs.h. */
23006_ACEOF
23007cat confdefs.h >>conftest.$ac_ext
23008cat >>conftest.$ac_ext <<_ACEOF
23009/* end confdefs.h. */
23010#include <selinux/selinux.h>
23011_ACEOF
23012if { (ac_try="$ac_cpp conftest.$ac_ext"
23013case "(($ac_try" in
23014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23015 *) ac_try_echo=$ac_try;;
23016esac
23017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23018$as_echo "$ac_try_echo") >&5
23019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23020 ac_status=$?
23021 grep -v '^ *+' conftest.er1 >conftest.err
23022 rm -f conftest.er1
23023 cat conftest.err >&5
23024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); } >/dev/null && {
23026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23027 test ! -s conftest.err
23028 }; then
23029 ac_header_preproc=yes
23030else
23031 $as_echo "$as_me: failed program was:" >&5
23032sed 's/^/| /' conftest.$ac_ext >&5
23033
23034 ac_header_preproc=no
23035fi
23036
23037rm -f conftest.err conftest.$ac_ext
23038{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23039$as_echo "$ac_header_preproc" >&6; }
23040
23041# So? What about this header?
23042case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23043 yes:no: )
23044 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
23045$as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23046 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
23047$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
23048 ac_header_preproc=yes
23049 ;;
23050 no:yes:* )
23051 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
23052$as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
23053 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
23054$as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
23055 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
23056$as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
23057 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
23058$as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
23059 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
23060$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
23061 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
23062$as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
23063
23064 ;;
23065esac
23066{ $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
23067$as_echo_n "checking for selinux/selinux.h... " >&6; }
23068if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
23069 $as_echo_n "(cached) " >&6
23070else
23071 ac_cv_header_selinux_selinux_h=$ac_header_preproc
23072fi
23073{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
23074$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
23075
23076fi
23077if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
23078
23079 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
23080$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
23081if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
23082 $as_echo_n "(cached) " >&6
23083else
23084 ac_check_lib_save_LIBS=$LIBS
23085LIBS="-lselinux $LIBS"
23086cat >conftest.$ac_ext <<_ACEOF
23087/* confdefs.h. */
23088_ACEOF
23089cat confdefs.h >>conftest.$ac_ext
23090cat >>conftest.$ac_ext <<_ACEOF
23091/* end confdefs.h. */
23092
23093/* Override any GCC internal prototype to avoid an error.
23094 Use char because int might match the return type of a GCC
23095 builtin and then its argument prototype would still apply. */
23096#ifdef __cplusplus
23097extern "C"
23098#endif
23099char is_selinux_enabled ();
23100int
23101main ()
23102{
23103return is_selinux_enabled ();
23104 ;
23105 return 0;
23106}
23107_ACEOF
23108rm -f conftest.$ac_objext conftest$ac_exeext
23109if { (ac_try="$ac_link"
23110case "(($ac_try" in
23111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23112 *) ac_try_echo=$ac_try;;
23113esac
23114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23115$as_echo "$ac_try_echo") >&5
23116 (eval "$ac_link") 2>conftest.er1
23117 ac_status=$?
23118 grep -v '^ *+' conftest.er1 >conftest.err
23119 rm -f conftest.er1
23120 cat conftest.err >&5
23121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); } && {
23123 test -z "$ac_c_werror_flag" ||
23124 test ! -s conftest.err
23125 } && test -s conftest$ac_exeext && {
23126 test "$cross_compiling" = yes ||
23127 $as_test_x conftest$ac_exeext
23128 }; then
23129 ac_cv_lib_selinux_is_selinux_enabled=yes
23130else
23131 $as_echo "$as_me: failed program was:" >&5
23132sed 's/^/| /' conftest.$ac_ext >&5
23133
23134 ac_cv_lib_selinux_is_selinux_enabled=no
23135fi
23136
23137rm -rf conftest.dSYM
23138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23139 conftest$ac_exeext conftest.$ac_ext
23140LIBS=$ac_check_lib_save_LIBS
23141fi
23142{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
23143$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
23144if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
23145
23146 LIBSELINUX="-lselinux"
23147
23148
23149cat >>confdefs.h <<\_ACEOF
23150#define HAVE_LIBSELINUX 1
23151_ACEOF
23152
23153
23154else
23155
23156 if test "x$with_selinux" != xcheck; then
23157 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23159{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
23160See \`config.log' for more details." >&5
23161$as_echo "$as_me: error: --with-selinux given but unavailable
23162See \`config.log' for more details." >&2;}
23163 { (exit 1); exit 1; }; }; }
23164
23165fi
23166
23167
23168fi
23169
23170
23171else
23172
23173 if test "x$with_selinux" != xcheck; then
23174 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23176{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
23177See \`config.log' for more details." >&5
23178$as_echo "$as_me: error: --with-selinux given but unavailable
23179See \`config.log' for more details." >&2;}
23180 { (exit 1); exit 1; }; }; }
23181
23182fi
23183
23184
23185fi
23186
23187
23188
23189else
23190
23191 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
23192$as_echo_n "checking for selinux support... " >&6; }
23193 { $as_echo "$as_me:$LINENO: result: no" >&5
23194$as_echo "no" >&6; }
23195
23196fi
23197
23198
23199
e70e591c
BB
23200 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
23201$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
23202
23203 saved_flags="$CFLAGS"
23204 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
23205
23206 if test "$cross_compiling" = yes; then
23207 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23209{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23210See \`config.log' for more details." >&5
23211$as_echo "$as_me: error: cannot run test program while cross compiling
23212See \`config.log' for more details." >&2;}
23213 { (exit 1); exit 1; }; }; }
23214else
23215 cat >conftest.$ac_ext <<_ACEOF
23216/* confdefs.h. */
23217_ACEOF
23218cat confdefs.h >>conftest.$ac_ext
23219cat >>conftest.$ac_ext <<_ACEOF
23220/* end confdefs.h. */
23221
23222int
23223main ()
23224{
23225
23226 ;
23227 return 0;
23228}
23229_ACEOF
23230rm -f conftest$ac_exeext
23231if { (ac_try="$ac_link"
23232case "(($ac_try" in
23233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23234 *) ac_try_echo=$ac_try;;
23235esac
23236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23237$as_echo "$ac_try_echo") >&5
23238 (eval "$ac_link") 2>&5
23239 ac_status=$?
23240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23242 { (case "(($ac_try" in
23243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244 *) ac_try_echo=$ac_try;;
23245esac
23246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23247$as_echo "$ac_try_echo") >&5
23248 (eval "$ac_try") 2>&5
23249 ac_status=$?
23250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); }; }; then
23252
23253 FRAME_LARGER_THAN=-Wframe-larger-than=1024
23254 { $as_echo "$as_me:$LINENO: result: yes" >&5
23255$as_echo "yes" >&6; }
23256
23257else
23258 $as_echo "$as_me: program exited with status $ac_status" >&5
23259$as_echo "$as_me: failed program was:" >&5
23260sed 's/^/| /' conftest.$ac_ext >&5
23261
23262( exit $ac_status )
23263
23264 FRAME_LARGER_THAN=
23265 { $as_echo "$as_me:$LINENO: result: no" >&5
23266$as_echo "no" >&6; }
23267
23268fi
23269rm -rf conftest.dSYM
23270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23271fi
23272
23273
23274
23275 CFLAGS="$saved_flags"
23276
23277
23278
23279
23280 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
23281$as_echo_n "checking whether pthread stack includes guard... " >&6; }
23282
23283 saved_CFLAGS="$CFLAGS"
23284 CFLAGS="-fstack-check"
23285 saved_LDFLAGS="$LDFLAGS"
23286 LDFLAGS="-lpthread"
23287
23288 if test "$cross_compiling" = yes; then
23289 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23291{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23292See \`config.log' for more details." >&5
23293$as_echo "$as_me: error: cannot run test program while cross compiling
23294See \`config.log' for more details." >&2;}
23295 { (exit 1); exit 1; }; }; }
23296else
23297 cat >conftest.$ac_ext <<_ACEOF
23298/* confdefs.h. */
23299_ACEOF
23300cat confdefs.h >>conftest.$ac_ext
23301cat >>conftest.$ac_ext <<_ACEOF
23302/* end confdefs.h. */
23303
23304 #include <pthread.h>
23305 #include <sys/resource.h>
23306 #include <unistd.h>
23307 #include <bits/local_lim.h>
23308
23309 #define PAGESIZE (sysconf(_SC_PAGESIZE))
23310 #define STACK_SIZE 8192
23311 #define BUFSIZE 4096
23312
23313 void * func(void *arg)
23314 {
23315 char buf[BUFSIZE];
23316 }
23317
23318int
23319main ()
23320{
23321
23322 pthread_t tid;
23323 pthread_attr_t attr;
23324 struct rlimit l;
23325
23326 l.rlim_cur = 0;
23327 l.rlim_max = 0;
23328 setrlimit(RLIMIT_CORE, &l);
23329 pthread_attr_init(&attr);
23330 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
23331 pthread_attr_setguardsize(&attr, PAGESIZE);
23332 pthread_create(&tid, &attr, func, NULL);
23333 pthread_join(tid, NULL);
23334
23335 ;
23336 return 0;
23337}
23338_ACEOF
23339rm -f conftest$ac_exeext
23340if { (ac_try="$ac_link"
23341case "(($ac_try" in
23342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343 *) ac_try_echo=$ac_try;;
23344esac
23345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23346$as_echo "$ac_try_echo") >&5
23347 (eval "$ac_link") 2>&5
23348 ac_status=$?
23349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23351 { (case "(($ac_try" in
23352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23353 *) ac_try_echo=$ac_try;;
23354esac
23355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23356$as_echo "$ac_try_echo") >&5
23357 (eval "$ac_try") 2>&5
23358 ac_status=$?
23359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); }; }; then
23361
23362 { $as_echo "$as_me:$LINENO: result: no" >&5
23363$as_echo "no" >&6; }
23364
23365else
23366 $as_echo "$as_me: program exited with status $ac_status" >&5
23367$as_echo "$as_me: failed program was:" >&5
23368sed 's/^/| /' conftest.$ac_ext >&5
23369
23370( exit $ac_status )
23371
23372
23373cat >>confdefs.h <<\_ACEOF
23374#define NPTL_GUARD_WITHIN_STACK 1
23375_ACEOF
23376
23377 { $as_echo "$as_me:$LINENO: result: yes" >&5
23378$as_echo "yes" >&6; }
23379
23380fi
23381rm -rf conftest.dSYM
23382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23383fi
23384
23385
23386 CFLAGS="$saved_CFLAGS"
23387 LDFLAGS="$saved_LDFLAGS"
23388
23389 ;;
23390 srpm) ;;
23391 *)
23392 { $as_echo "$as_me:$LINENO: result: Error!" >&5
23393$as_echo "Error!" >&6; }
23394 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
23395 user kernel|user|all|srpm" >&5
23396$as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
23397 user kernel|user|all|srpm" >&2;}
23398 { (exit 1); exit 1; }; } ;;
23399 esac
23400
23401 if test "$ZFS_CONFIG" = user ||
23402 test "$ZFS_CONFIG" = all; then
23403 CONFIG_USER_TRUE=
23404 CONFIG_USER_FALSE='#'
23405else
23406 CONFIG_USER_TRUE='#'
23407 CONFIG_USER_FALSE=
23408fi
23409
23410 if test "$ZFS_CONFIG" = kernel ||
23411 test "$ZFS_CONFIG" = all; then
23412 CONFIG_KERNEL_TRUE=
23413 CONFIG_KERNEL_FALSE='#'
23414else
23415 CONFIG_KERNEL_TRUE='#'
23416 CONFIG_KERNEL_FALSE=
23417fi
23418
23419
23420
e70e591c
BB
23421 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
23422$as_echo_n "checking whether debugging is enabled... " >&6; }
23423 # Check whether --enable-debug was given.
23424if test "${enable_debug+set}" = set; then
23425 enableval=$enable_debug;
23426else
23427 enable_debug=no
23428fi
23429
23430
23431 if test "x$enable_debug" = xyes; then
23432
23433 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
23434 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
23435 DEBUG_CFLAGS="-DDEBUG -Werror"
23436 DEBUG_STACKFLAGS="-fstack-check"
23437
23438else
23439
23440 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
23441 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
23442 DEBUG_CFLAGS="-DNDEBUG"
23443 DEBUG_STACKFLAGS=""
23444
23445fi
23446
23447
23448
23449
23450 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
23451$as_echo "$enable_debug" >&6; }
23452
23453
6ba3b446 23454ac_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/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/sas_switch_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"
e70e591c
BB
23455
23456
23457cat >confcache <<\_ACEOF
23458# This file is a shell script that caches the results of configure
23459# tests run on this system so they can be shared between configure
23460# scripts and configure runs, see configure's option --config-cache.
23461# It is not useful on other systems. If it contains results you don't
23462# want to keep, you may remove or edit it.
23463#
23464# config.status only pays attention to the cache file if you give it
23465# the --recheck option to rerun configure.
23466#
23467# `ac_cv_env_foo' variables (set or unset) will be overridden when
23468# loading this file, other *unset* `ac_cv_foo' will be assigned the
23469# following values.
23470
23471_ACEOF
23472
23473# The following way of writing the cache mishandles newlines in values,
23474# but we know of no workaround that is simple, portable, and efficient.
23475# So, we kill variables containing newlines.
23476# Ultrix sh set writes to stderr and can't be redirected directly,
23477# and sets the high bit in the cache file unless we assign to the vars.
23478(
23479 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23480 eval ac_val=\$$ac_var
23481 case $ac_val in #(
23482 *${as_nl}*)
23483 case $ac_var in #(
23484 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
23485$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23486 esac
23487 case $ac_var in #(
23488 _ | IFS | as_nl) ;; #(
23489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23490 *) $as_unset $ac_var ;;
23491 esac ;;
23492 esac
23493 done
23494
23495 (set) 2>&1 |
23496 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23497 *${as_nl}ac_space=\ *)
23498 # `set' does not quote correctly, so add quotes (double-quote
23499 # substitution turns \\\\ into \\, and sed turns \\ into \).
23500 sed -n \
23501 "s/'/'\\\\''/g;
23502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23503 ;; #(
23504 *)
23505 # `set' quotes correctly as required by POSIX, so do not add quotes.
23506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23507 ;;
23508 esac |
23509 sort
23510) |
23511 sed '
23512 /^ac_cv_env_/b end
23513 t clear
23514 :clear
23515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23516 t end
23517 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23518 :end' >>confcache
23519if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23520 if test -w "$cache_file"; then
23521 test "x$cache_file" != "x/dev/null" &&
23522 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
23523$as_echo "$as_me: updating cache $cache_file" >&6;}
23524 cat confcache >$cache_file
23525 else
23526 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23527$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23528 fi
23529fi
23530rm -f confcache
23531
23532test "x$prefix" = xNONE && prefix=$ac_default_prefix
23533# Let make expand exec_prefix.
23534test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23535
23536DEFS=-DHAVE_CONFIG_H
23537
23538ac_libobjs=
23539ac_ltlibobjs=
23540for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23541 # 1. Remove the extension, and $U if already installed.
23542 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23543 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23544 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23545 # will be set to the directory where LIBOBJS objects are built.
23546 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23547 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23548done
23549LIBOBJS=$ac_libobjs
23550
23551LTLIBOBJS=$ac_ltlibobjs
23552
23553
23554if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23555 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23556Usually this means the macro was only invoked conditionally." >&5
23557$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23558Usually this means the macro was only invoked conditionally." >&2;}
23559 { (exit 1); exit 1; }; }
23560fi
23561 if test -n "$EXEEXT"; then
23562 am__EXEEXT_TRUE=
23563 am__EXEEXT_FALSE='#'
23564else
23565 am__EXEEXT_TRUE='#'
23566 am__EXEEXT_FALSE=
23567fi
23568
23569if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23570 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23571Usually this means the macro was only invoked conditionally." >&5
23572$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
23573Usually this means the macro was only invoked conditionally." >&2;}
23574 { (exit 1); exit 1; }; }
23575fi
23576if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23577 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23578Usually this means the macro was only invoked conditionally." >&5
23579$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23580Usually this means the macro was only invoked conditionally." >&2;}
23581 { (exit 1); exit 1; }; }
23582fi
23583if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
23584 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
23585Usually this means the macro was only invoked conditionally." >&5
23586$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
23587Usually this means the macro was only invoked conditionally." >&2;}
23588 { (exit 1); exit 1; }; }
23589fi
23590if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
23591 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
23592Usually this means the macro was only invoked conditionally." >&5
23593$as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
23594Usually this means the macro was only invoked conditionally." >&2;}
23595 { (exit 1); exit 1; }; }
23596fi
23597if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
23598 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
23599Usually this means the macro was only invoked conditionally." >&5
23600$as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
23601Usually this means the macro was only invoked conditionally." >&2;}
23602 { (exit 1); exit 1; }; }
23603fi
23604
23605: ${CONFIG_STATUS=./config.status}
23606ac_write_fail=0
23607ac_clean_files_save=$ac_clean_files
23608ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23609{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23610$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23611cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23612#! $SHELL
23613# Generated by $as_me.
23614# Run this file to recreate the current configuration.
23615# Compiler output produced by configure, useful for debugging
23616# configure, is in config.log if it exists.
23617
23618debug=false
23619ac_cs_recheck=false
23620ac_cs_silent=false
23621SHELL=\${CONFIG_SHELL-$SHELL}
23622_ACEOF
23623
23624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23625## --------------------- ##
23626## M4sh Initialization. ##
23627## --------------------- ##
23628
23629# Be more Bourne compatible
23630DUALCASE=1; export DUALCASE # for MKS sh
23631if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23632 emulate sh
23633 NULLCMD=:
23634 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23635 # is contrary to our usage. Disable this feature.
23636 alias -g '${1+"$@"}'='"$@"'
23637 setopt NO_GLOB_SUBST
23638else
23639 case `(set -o) 2>/dev/null` in
23640 *posix*) set -o posix ;;
23641esac
23642
23643fi
23644
23645
23646
23647
23648# PATH needs CR
23649# Avoid depending upon Character Ranges.
23650as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23651as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23652as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23653as_cr_digits='0123456789'
23654as_cr_alnum=$as_cr_Letters$as_cr_digits
23655
23656as_nl='
23657'
23658export as_nl
23659# Printing a long string crashes Solaris 7 /usr/bin/printf.
23660as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23661as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23662as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23663if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23664 as_echo='printf %s\n'
23665 as_echo_n='printf %s'
23666else
23667 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23668 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23669 as_echo_n='/usr/ucb/echo -n'
23670 else
23671 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23672 as_echo_n_body='eval
23673 arg=$1;
23674 case $arg in
23675 *"$as_nl"*)
23676 expr "X$arg" : "X\\(.*\\)$as_nl";
23677 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23678 esac;
23679 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23680 '
23681 export as_echo_n_body
23682 as_echo_n='sh -c $as_echo_n_body as_echo'
23683 fi
23684 export as_echo_body
23685 as_echo='sh -c $as_echo_body as_echo'
23686fi
23687
23688# The user is always right.
23689if test "${PATH_SEPARATOR+set}" != set; then
23690 PATH_SEPARATOR=:
23691 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23692 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23693 PATH_SEPARATOR=';'
23694 }
23695fi
23696
23697# Support unset when possible.
23698if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23699 as_unset=unset
23700else
23701 as_unset=false
23702fi
23703
23704
23705# IFS
23706# We need space, tab and new line, in precisely that order. Quoting is
23707# there to prevent editors from complaining about space-tab.
23708# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23709# splitting by setting IFS to empty value.)
23710IFS=" "" $as_nl"
23711
23712# Find who we are. Look in the path if we contain no directory separator.
23713case $0 in
23714 *[\\/]* ) as_myself=$0 ;;
23715 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23716for as_dir in $PATH
23717do
23718 IFS=$as_save_IFS
23719 test -z "$as_dir" && as_dir=.
23720 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23721done
23722IFS=$as_save_IFS
23723
23724 ;;
23725esac
23726# We did not find ourselves, most probably we were run as `sh COMMAND'
23727# in which case we are not to be found in the path.
23728if test "x$as_myself" = x; then
23729 as_myself=$0
23730fi
23731if test ! -f "$as_myself"; then
23732 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23733 { (exit 1); exit 1; }
23734fi
23735
23736# Work around bugs in pre-3.0 UWIN ksh.
23737for as_var in ENV MAIL MAILPATH
23738do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23739done
23740PS1='$ '
23741PS2='> '
23742PS4='+ '
23743
23744# NLS nuisances.
23745LC_ALL=C
23746export LC_ALL
23747LANGUAGE=C
23748export LANGUAGE
23749
23750# Required to use basename.
23751if expr a : '\(a\)' >/dev/null 2>&1 &&
23752 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23753 as_expr=expr
23754else
23755 as_expr=false
23756fi
23757
23758if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23759 as_basename=basename
23760else
23761 as_basename=false
23762fi
23763
23764
23765# Name of the executable.
23766as_me=`$as_basename -- "$0" ||
23767$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23768 X"$0" : 'X\(//\)$' \| \
23769 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23770$as_echo X/"$0" |
23771 sed '/^.*\/\([^/][^/]*\)\/*$/{
23772 s//\1/
23773 q
23774 }
23775 /^X\/\(\/\/\)$/{
23776 s//\1/
23777 q
23778 }
23779 /^X\/\(\/\).*/{
23780 s//\1/
23781 q
23782 }
23783 s/.*/./; q'`
23784
23785# CDPATH.
23786$as_unset CDPATH
23787
23788
23789
23790 as_lineno_1=$LINENO
23791 as_lineno_2=$LINENO
23792 test "x$as_lineno_1" != "x$as_lineno_2" &&
23793 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23794
23795 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23796 # uniformly replaced by the line number. The first 'sed' inserts a
23797 # line-number line after each line using $LINENO; the second 'sed'
23798 # does the real work. The second script uses 'N' to pair each
23799 # line-number line with the line containing $LINENO, and appends
23800 # trailing '-' during substitution so that $LINENO is not a special
23801 # case at line end.
23802 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23803 # scripts with optimization help from Paolo Bonzini. Blame Lee
23804 # E. McMahon (1931-1989) for sed's syntax. :-)
23805 sed -n '
23806 p
23807 /[$]LINENO/=
23808 ' <$as_myself |
23809 sed '
23810 s/[$]LINENO.*/&-/
23811 t lineno
23812 b
23813 :lineno
23814 N
23815 :loop
23816 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23817 t loop
23818 s/-\n.*//
23819 ' >$as_me.lineno &&
23820 chmod +x "$as_me.lineno" ||
23821 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23822 { (exit 1); exit 1; }; }
23823
23824 # Don't try to exec as it changes $[0], causing all sort of problems
23825 # (the dirname of $[0] is not the place where we might find the
23826 # original and so on. Autoconf is especially sensitive to this).
23827 . "./$as_me.lineno"
23828 # Exit status is that of the last command.
23829 exit
23830}
23831
23832
23833if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23834 as_dirname=dirname
23835else
23836 as_dirname=false
23837fi
23838
23839ECHO_C= ECHO_N= ECHO_T=
23840case `echo -n x` in
23841-n*)
23842 case `echo 'x\c'` in
23843 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23844 *) ECHO_C='\c';;
23845 esac;;
23846*)
23847 ECHO_N='-n';;
23848esac
23849if expr a : '\(a\)' >/dev/null 2>&1 &&
23850 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23851 as_expr=expr
23852else
23853 as_expr=false
23854fi
23855
23856rm -f conf$$ conf$$.exe conf$$.file
23857if test -d conf$$.dir; then
23858 rm -f conf$$.dir/conf$$.file
23859else
23860 rm -f conf$$.dir
23861 mkdir conf$$.dir 2>/dev/null
23862fi
23863if (echo >conf$$.file) 2>/dev/null; then
23864 if ln -s conf$$.file conf$$ 2>/dev/null; then
23865 as_ln_s='ln -s'
23866 # ... but there are two gotchas:
23867 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23868 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23869 # In both cases, we have to default to `cp -p'.
23870 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23871 as_ln_s='cp -p'
23872 elif ln conf$$.file conf$$ 2>/dev/null; then
23873 as_ln_s=ln
23874 else
23875 as_ln_s='cp -p'
23876 fi
23877else
23878 as_ln_s='cp -p'
23879fi
23880rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23881rmdir conf$$.dir 2>/dev/null
23882
23883if mkdir -p . 2>/dev/null; then
23884 as_mkdir_p=:
23885else
23886 test -d ./-p && rmdir ./-p
23887 as_mkdir_p=false
23888fi
23889
23890if test -x / >/dev/null 2>&1; then
23891 as_test_x='test -x'
23892else
23893 if ls -dL / >/dev/null 2>&1; then
23894 as_ls_L_option=L
23895 else
23896 as_ls_L_option=
23897 fi
23898 as_test_x='
23899 eval sh -c '\''
23900 if test -d "$1"; then
23901 test -d "$1/.";
23902 else
23903 case $1 in
23904 -*)set "./$1";;
23905 esac;
23906 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23907 ???[sx]*):;;*)false;;esac;fi
23908 '\'' sh
23909 '
23910fi
23911as_executable_p=$as_test_x
23912
23913# Sed expression to map a string onto a valid CPP name.
23914as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23915
23916# Sed expression to map a string onto a valid variable name.
23917as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23918
23919
23920exec 6>&1
23921
23922# Save the log message, to keep $[0] and so on meaningful, and to
23923# report actual input values of CONFIG_FILES etc. instead of their
23924# values after options handling.
23925ac_log="
23926This file was extended by $as_me, which was
23927generated by GNU Autoconf 2.63. Invocation command line was
23928
23929 CONFIG_FILES = $CONFIG_FILES
23930 CONFIG_HEADERS = $CONFIG_HEADERS
23931 CONFIG_LINKS = $CONFIG_LINKS
23932 CONFIG_COMMANDS = $CONFIG_COMMANDS
23933 $ $0 $@
23934
23935on `(hostname || uname -n) 2>/dev/null | sed 1q`
23936"
23937
23938_ACEOF
23939
23940case $ac_config_files in *"
23941"*) set x $ac_config_files; shift; ac_config_files=$*;;
23942esac
23943
23944case $ac_config_headers in *"
23945"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23946esac
23947
23948
23949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23950# Files that config.status was made for.
23951config_files="$ac_config_files"
23952config_headers="$ac_config_headers"
23953config_commands="$ac_config_commands"
23954
23955_ACEOF
23956
23957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23958ac_cs_usage="\
23959\`$as_me' instantiates files from templates according to the
23960current configuration.
23961
23962Usage: $0 [OPTION]... [FILE]...
23963
23964 -h, --help print this help, then exit
23965 -V, --version print version number and configuration settings, then exit
23966 -q, --quiet, --silent
23967 do not print progress messages
23968 -d, --debug don't remove temporary files
23969 --recheck update $as_me by reconfiguring in the same conditions
23970 --file=FILE[:TEMPLATE]
23971 instantiate the configuration file FILE
23972 --header=FILE[:TEMPLATE]
23973 instantiate the configuration header FILE
23974
23975Configuration files:
23976$config_files
23977
23978Configuration headers:
23979$config_headers
23980
23981Configuration commands:
23982$config_commands
23983
23984Report bugs to <bug-autoconf@gnu.org>."
23985
23986_ACEOF
23987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23988ac_cs_version="\\
23989config.status
23990configured by $0, generated by GNU Autoconf 2.63,
23991 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23992
23993Copyright (C) 2008 Free Software Foundation, Inc.
23994This config.status script is free software; the Free Software Foundation
23995gives unlimited permission to copy, distribute and modify it."
23996
23997ac_pwd='$ac_pwd'
23998srcdir='$srcdir'
23999INSTALL='$INSTALL'
24000MKDIR_P='$MKDIR_P'
24001AWK='$AWK'
24002test -n "\$AWK" || AWK=awk
24003_ACEOF
24004
24005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24006# The default lists apply if the user does not specify any file.
24007ac_need_defaults=:
24008while test $# != 0
24009do
24010 case $1 in
24011 --*=*)
24012 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24013 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24014 ac_shift=:
24015 ;;
24016 *)
24017 ac_option=$1
24018 ac_optarg=$2
24019 ac_shift=shift
24020 ;;
24021 esac
24022
24023 case $ac_option in
24024 # Handling of the options.
24025 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24026 ac_cs_recheck=: ;;
24027 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24028 $as_echo "$ac_cs_version"; exit ;;
24029 --debug | --debu | --deb | --de | --d | -d )
24030 debug=: ;;
24031 --file | --fil | --fi | --f )
24032 $ac_shift
24033 case $ac_optarg in
24034 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24035 esac
24036 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
24037 ac_need_defaults=false;;
24038 --header | --heade | --head | --hea )
24039 $ac_shift
24040 case $ac_optarg in
24041 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24042 esac
24043 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
24044 ac_need_defaults=false;;
24045 --he | --h)
24046 # Conflict between --help and --header
24047 { $as_echo "$as_me: error: ambiguous option: $1
24048Try \`$0 --help' for more information." >&2
24049 { (exit 1); exit 1; }; };;
24050 --help | --hel | -h )
24051 $as_echo "$ac_cs_usage"; exit ;;
24052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24053 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24054 ac_cs_silent=: ;;
24055
24056 # This is an error.
24057 -*) { $as_echo "$as_me: error: unrecognized option: $1
24058Try \`$0 --help' for more information." >&2
24059 { (exit 1); exit 1; }; } ;;
24060
24061 *) ac_config_targets="$ac_config_targets $1"
24062 ac_need_defaults=false ;;
24063
24064 esac
24065 shift
24066done
24067
24068ac_configure_extra_args=
24069
24070if $ac_cs_silent; then
24071 exec 6>/dev/null
24072 ac_configure_extra_args="$ac_configure_extra_args --silent"
24073fi
24074
24075_ACEOF
24076cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24077if \$ac_cs_recheck; then
24078 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24079 shift
24080 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24081 CONFIG_SHELL='$SHELL'
24082 export CONFIG_SHELL
24083 exec "\$@"
24084fi
24085
24086_ACEOF
24087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24088exec 5>>config.log
24089{
24090 echo
24091 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24092## Running $as_me. ##
24093_ASBOX
24094 $as_echo "$ac_log"
24095} >&5
24096
24097_ACEOF
24098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24099#
24100# INIT-COMMANDS
24101#
24102AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24103
24104
24105# The HP-UX ksh and POSIX shell print the target directory to stdout
24106# if CDPATH is set.
24107(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24108
24109sed_quote_subst='$sed_quote_subst'
24110double_quote_subst='$double_quote_subst'
24111delay_variable_subst='$delay_variable_subst'
24112macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
24113macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
24114enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
24115enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
24116pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
24117enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
24118host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
24119host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
24120host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
24121build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
24122build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
24123build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
24124SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
24125Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
24126GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
24127EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
24128FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
24129LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
24130NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
24131LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
24132max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
24133ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
24134exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
24135lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
24136lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
24137lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
24138reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
24139reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24140OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
24141deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
24142file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
24143AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
24144AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
24145STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
24146RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
24147old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24148old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24149old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24150CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
24151CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
24152compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
24153GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
24154lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
24155lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
24156lt_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"`'
24157lt_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"`'
24158objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
24159SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
24160ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
24161MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
24162lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
24163lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
24164lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
24165lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
24166lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
24167need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
24168DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
24169NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
24170LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
24171OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
24172OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
24173libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
24174shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24175extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24176archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
24177enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
24178export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24179whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24180compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
24181old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24182old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24183archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24184archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24185module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24186module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24187with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
24188allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
24189no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
24190hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24191hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
24192hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
24193hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
24194hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
24195hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
24196hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24197hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
24198inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
24199link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
24200fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
24201always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
24202export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24203exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
24204include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
24205prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24206file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
24207variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
24208need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
24209need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
24210version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
24211runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24212shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24213shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
24214libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
24215library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
24216soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
24217postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24218postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24219finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24220finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
24221hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
24222sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
24223sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
24224hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
24225enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
24226enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
24227enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
24228old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
24229striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
24230
24231LTCC='$LTCC'
24232LTCFLAGS='$LTCFLAGS'
24233compiler='$compiler_DEFAULT'
24234
24235# Quote evaled strings.
24236for var in SED \
24237GREP \
24238EGREP \
24239FGREP \
24240LD \
24241NM \
24242LN_S \
24243lt_SP2NL \
24244lt_NL2SP \
24245reload_flag \
24246OBJDUMP \
24247deplibs_check_method \
24248file_magic_cmd \
24249AR \
24250AR_FLAGS \
24251STRIP \
24252RANLIB \
24253CC \
24254CFLAGS \
24255compiler \
24256lt_cv_sys_global_symbol_pipe \
24257lt_cv_sys_global_symbol_to_cdecl \
24258lt_cv_sys_global_symbol_to_c_name_address \
24259lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24260SHELL \
24261ECHO \
24262lt_prog_compiler_no_builtin_flag \
24263lt_prog_compiler_wl \
24264lt_prog_compiler_pic \
24265lt_prog_compiler_static \
24266lt_cv_prog_compiler_c_o \
24267need_locks \
24268DSYMUTIL \
24269NMEDIT \
24270LIPO \
24271OTOOL \
24272OTOOL64 \
24273shrext_cmds \
24274export_dynamic_flag_spec \
24275whole_archive_flag_spec \
24276compiler_needs_object \
24277with_gnu_ld \
24278allow_undefined_flag \
24279no_undefined_flag \
24280hardcode_libdir_flag_spec \
24281hardcode_libdir_flag_spec_ld \
24282hardcode_libdir_separator \
24283fix_srcfile_path \
24284exclude_expsyms \
24285include_expsyms \
24286file_list_spec \
24287variables_saved_for_relink \
24288libname_spec \
24289library_names_spec \
24290soname_spec \
24291finish_eval \
24292old_striplib \
24293striplib; do
24294 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
24295 *[\\\\\\\`\\"\\\$]*)
24296 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24297 ;;
24298 *)
24299 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24300 ;;
24301 esac
24302done
24303
24304# Double-quote double-evaled strings.
24305for var in reload_cmds \
24306old_postinstall_cmds \
24307old_postuninstall_cmds \
24308old_archive_cmds \
24309extract_expsyms_cmds \
24310old_archive_from_new_cmds \
24311old_archive_from_expsyms_cmds \
24312archive_cmds \
24313archive_expsym_cmds \
24314module_cmds \
24315module_expsym_cmds \
24316export_symbols_cmds \
24317prelink_cmds \
24318postinstall_cmds \
24319postuninstall_cmds \
24320finish_cmds \
24321sys_lib_search_path_spec \
24322sys_lib_dlsearch_path_spec; do
24323 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
24324 *[\\\\\\\`\\"\\\$]*)
24325 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24326 ;;
24327 *)
24328 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24329 ;;
24330 esac
24331done
24332
24333# Fix-up fallback echo if it was mangled by the above quoting rules.
24334case \$lt_ECHO in
24335*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
24336 ;;
24337esac
24338
24339ac_aux_dir='$ac_aux_dir'
24340xsi_shell='$xsi_shell'
24341lt_shell_append='$lt_shell_append'
24342
24343# See if we are running on zsh, and set the options which allow our
24344# commands through without removal of \ escapes INIT.
24345if test -n "\${ZSH_VERSION+set}" ; then
24346 setopt NO_GLOB_SUBST
24347fi
24348
24349
24350 PACKAGE='$PACKAGE'
24351 VERSION='$VERSION'
24352 TIMESTAMP='$TIMESTAMP'
24353 RM='$RM'
24354 ofile='$ofile'
24355
24356
24357
24358
24359_ACEOF
24360
24361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24362
24363# Handling of arguments.
24364for ac_config_target in $ac_config_targets
24365do
24366 case $ac_config_target in
24367 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
24368 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24369 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24370 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
ae26d046
MAR
24371 "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
24372 "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
de0a1c09
BB
24373 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
24374 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
e70e591c 24375 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
01c0e61d
BB
24376 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
24377 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
e70e591c
BB
24378 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24379 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
24380 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24381 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
24382 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
24383 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
24384 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
24385 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
6283f55e
BB
24386 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
24387 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
24388 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
24389 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
24390 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
24391 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
24392 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
e70e591c
BB
24393 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
24394 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
24395 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
24396 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
24397 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
24398 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
e70e591c 24399 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
46e18b3f 24400 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
e70e591c
BB
24401 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
24402 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
24403 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
24404 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
24405 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
e70e591c
BB
24406 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
24407 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
d53368f6
BB
24408 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
24409 "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
4c0d8e50 24410 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
d53368f6 24411 "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
560bcf9d 24412 "cmd/sas_switch_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/sas_switch_id/Makefile" ;;
e70e591c
BB
24413 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
24414 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
24415 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
24416 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
24417 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
24418 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
24419 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
6283f55e 24420 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8299a1f4 24421 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
6283f55e
BB
24422 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
24423 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
24424 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
24425 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
e70e591c 24426 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
6283f55e
BB
24427 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
24428 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
24429 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
a5b4d635 24430 "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
e70e591c
BB
24431 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
24432 "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
24433 "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
6ba3b446
PS
24434 "PKGBUILD-zfs") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs" ;;
24435 "PKGBUILD-zfs-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs-modules" ;;
6283f55e 24436 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
e70e591c
BB
24437
24438 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24439$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24440 { (exit 1); exit 1; }; };;
24441 esac
24442done
24443
24444
24445# If the user did not use the arguments to specify the items to instantiate,
24446# then the envvar interface is used. Set only those that are not.
24447# We use the long form for the default assignment because of an extremely
24448# bizarre bug on SunOS 4.1.3.
24449if $ac_need_defaults; then
24450 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24451 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24452 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24453fi
24454
24455# Have a temporary directory for convenience. Make it in the build tree
24456# simply because there is no reason against having it here, and in addition,
24457# creating and moving files from /tmp can sometimes cause problems.
24458# Hook for its removal unless debugging.
24459# Note that there is a small window in which the directory will not be cleaned:
24460# after its creation but before its name has been assigned to `$tmp'.
24461$debug ||
24462{
24463 tmp=
24464 trap 'exit_status=$?
24465 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24466' 0
24467 trap '{ (exit 1); exit 1; }' 1 2 13 15
24468}
24469# Create a (secure) tmp directory for tmp files.
24470
24471{
24472 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24473 test -n "$tmp" && test -d "$tmp"
24474} ||
24475{
24476 tmp=./conf$$-$RANDOM
24477 (umask 077 && mkdir "$tmp")
24478} ||
24479{
24480 $as_echo "$as_me: cannot create a temporary directory in ." >&2
24481 { (exit 1); exit 1; }
24482}
24483
24484# Set up the scripts for CONFIG_FILES section.
24485# No need to generate them if there are no CONFIG_FILES.
24486# This happens for instance with `./config.status config.h'.
24487if test -n "$CONFIG_FILES"; then
24488
24489
24490ac_cr='\r'
24491ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24492if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24493 ac_cs_awk_cr='\\r'
24494else
24495 ac_cs_awk_cr=$ac_cr
24496fi
24497
24498echo 'BEGIN {' >"$tmp/subs1.awk" &&
24499_ACEOF
24500
24501
24502{
24503 echo "cat >conf$$subs.awk <<_ACEOF" &&
24504 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24505 echo "_ACEOF"
24506} >conf$$subs.sh ||
24507 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24508$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24509 { (exit 1); exit 1; }; }
24510ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24511ac_delim='%!_!# '
24512for ac_last_try in false false false false false :; do
24513 . ./conf$$subs.sh ||
24514 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24515$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24516 { (exit 1); exit 1; }; }
24517
24518 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24519 if test $ac_delim_n = $ac_delim_num; then
24520 break
24521 elif $ac_last_try; then
24522 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24523$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24524 { (exit 1); exit 1; }; }
24525 else
24526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24527 fi
24528done
24529rm -f conf$$subs.sh
24530
24531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24532cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24533_ACEOF
24534sed -n '
24535h
24536s/^/S["/; s/!.*/"]=/
24537p
24538g
24539s/^[^!]*!//
24540:repl
24541t repl
24542s/'"$ac_delim"'$//
24543t delim
24544:nl
24545h
24546s/\(.\{148\}\).*/\1/
24547t more1
24548s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24549p
24550n
24551b repl
24552:more1
24553s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24554p
24555g
24556s/.\{148\}//
24557t nl
24558:delim
24559h
24560s/\(.\{148\}\).*/\1/
24561t more2
24562s/["\\]/\\&/g; s/^/"/; s/$/"/
24563p
24564b
24565:more2
24566s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24567p
24568g
24569s/.\{148\}//
24570t delim
24571' <conf$$subs.awk | sed '
24572/^[^""]/{
24573 N
24574 s/\n//
24575}
24576' >>$CONFIG_STATUS || ac_write_fail=1
24577rm -f conf$$subs.awk
24578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24579_ACAWK
24580cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24581 for (key in S) S_is_set[key] = 1
24582 FS = "\a"
24583
24584}
24585{
24586 line = $ 0
24587 nfields = split(line, field, "@")
24588 substed = 0
24589 len = length(field[1])
24590 for (i = 2; i < nfields; i++) {
24591 key = field[i]
24592 keylen = length(key)
24593 if (S_is_set[key]) {
24594 value = S[key]
24595 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24596 len += length(value) + length(field[++i])
24597 substed = 1
24598 } else
24599 len += 1 + keylen
24600 }
24601
24602 print line
24603}
24604
24605_ACAWK
24606_ACEOF
24607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24608if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24609 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24610else
24611 cat
24612fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24613 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
24614$as_echo "$as_me: error: could not setup config files machinery" >&2;}
24615 { (exit 1); exit 1; }; }
24616_ACEOF
24617
24618# VPATH may cause trouble with some makes, so we remove $(srcdir),
24619# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24620# trailing colons and then remove the whole line if VPATH becomes empty
24621# (actually we leave an empty line to preserve line numbers).
24622if test "x$srcdir" = x.; then
24623 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24624s/:*\$(srcdir):*/:/
24625s/:*\${srcdir}:*/:/
24626s/:*@srcdir@:*/:/
24627s/^\([^=]*=[ ]*\):*/\1/
24628s/:*$//
24629s/^[^=]*=[ ]*$//
24630}'
24631fi
24632
24633cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24634fi # test -n "$CONFIG_FILES"
24635
24636# Set up the scripts for CONFIG_HEADERS section.
24637# No need to generate them if there are no CONFIG_HEADERS.
24638# This happens for instance with `./config.status Makefile'.
24639if test -n "$CONFIG_HEADERS"; then
24640cat >"$tmp/defines.awk" <<\_ACAWK ||
24641BEGIN {
24642_ACEOF
24643
24644# Transform confdefs.h into an awk script `defines.awk', embedded as
24645# here-document in config.status, that substitutes the proper values into
24646# config.h.in to produce config.h.
24647
24648# Create a delimiter string that does not exist in confdefs.h, to ease
24649# handling of long lines.
24650ac_delim='%!_!# '
24651for ac_last_try in false false :; do
24652 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24653 if test -z "$ac_t"; then
24654 break
24655 elif $ac_last_try; then
24656 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
24657$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
24658 { (exit 1); exit 1; }; }
24659 else
24660 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24661 fi
24662done
24663
24664# For the awk script, D is an array of macro values keyed by name,
24665# likewise P contains macro parameters if any. Preserve backslash
24666# newline sequences.
24667
24668ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24669sed -n '
24670s/.\{148\}/&'"$ac_delim"'/g
24671t rset
24672:rset
24673s/^[ ]*#[ ]*define[ ][ ]*/ /
24674t def
24675d
24676:def
24677s/\\$//
24678t bsnl
24679s/["\\]/\\&/g
24680s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24681D["\1"]=" \3"/p
24682s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24683d
24684:bsnl
24685s/["\\]/\\&/g
24686s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24687D["\1"]=" \3\\\\\\n"\\/p
24688t cont
24689s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24690t cont
24691d
24692:cont
24693n
24694s/.\{148\}/&'"$ac_delim"'/g
24695t clear
24696:clear
24697s/\\$//
24698t bsnlc
24699s/["\\]/\\&/g; s/^/"/; s/$/"/p
24700d
24701:bsnlc
24702s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24703b cont
24704' <confdefs.h | sed '
24705s/'"$ac_delim"'/"\\\
24706"/g' >>$CONFIG_STATUS || ac_write_fail=1
24707
24708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24709 for (key in D) D_is_set[key] = 1
24710 FS = "\a"
24711}
24712/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24713 line = \$ 0
24714 split(line, arg, " ")
24715 if (arg[1] == "#") {
24716 defundef = arg[2]
24717 mac1 = arg[3]
24718 } else {
24719 defundef = substr(arg[1], 2)
24720 mac1 = arg[2]
24721 }
24722 split(mac1, mac2, "(") #)
24723 macro = mac2[1]
24724 prefix = substr(line, 1, index(line, defundef) - 1)
24725 if (D_is_set[macro]) {
24726 # Preserve the white space surrounding the "#".
24727 print prefix "define", macro P[macro] D[macro]
24728 next
24729 } else {
24730 # Replace #undef with comments. This is necessary, for example,
24731 # in the case of _POSIX_SOURCE, which is predefined and required
24732 # on some systems where configure will not decide to define it.
24733 if (defundef == "undef") {
24734 print "/*", prefix defundef, macro, "*/"
24735 next
24736 }
24737 }
24738}
24739{ print }
24740_ACAWK
24741_ACEOF
24742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24743 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
24744$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
24745 { (exit 1); exit 1; }; }
24746fi # test -n "$CONFIG_HEADERS"
24747
24748
24749eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24750shift
24751for ac_tag
24752do
24753 case $ac_tag in
24754 :[FHLC]) ac_mode=$ac_tag; continue;;
24755 esac
24756 case $ac_mode$ac_tag in
24757 :[FHL]*:*);;
24758 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
24759$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
24760 { (exit 1); exit 1; }; };;
24761 :[FH]-) ac_tag=-:-;;
24762 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24763 esac
24764 ac_save_IFS=$IFS
24765 IFS=:
24766 set x $ac_tag
24767 IFS=$ac_save_IFS
24768 shift
24769 ac_file=$1
24770 shift
24771
24772 case $ac_mode in
24773 :L) ac_source=$1;;
24774 :[FH])
24775 ac_file_inputs=
24776 for ac_f
24777 do
24778 case $ac_f in
24779 -) ac_f="$tmp/stdin";;
24780 *) # Look for the file first in the build tree, then in the source tree
24781 # (if the path is not absolute). The absolute path cannot be DOS-style,
24782 # because $ac_f cannot contain `:'.
24783 test -f "$ac_f" ||
24784 case $ac_f in
24785 [\\/$]*) false;;
24786 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24787 esac ||
24788 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24789$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24790 { (exit 1); exit 1; }; };;
24791 esac
24792 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24793 ac_file_inputs="$ac_file_inputs '$ac_f'"
24794 done
24795
24796 # Let's still pretend it is `configure' which instantiates (i.e., don't
24797 # use $as_me), people would be surprised to read:
24798 # /* config.h. Generated by config.status. */
24799 configure_input='Generated from '`
24800 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24801 `' by configure.'
24802 if test x"$ac_file" != x-; then
24803 configure_input="$ac_file. $configure_input"
24804 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
24805$as_echo "$as_me: creating $ac_file" >&6;}
24806 fi
24807 # Neutralize special characters interpreted by sed in replacement strings.
24808 case $configure_input in #(
24809 *\&* | *\|* | *\\* )
24810 ac_sed_conf_input=`$as_echo "$configure_input" |
24811 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24812 *) ac_sed_conf_input=$configure_input;;
24813 esac
24814
24815 case $ac_tag in
24816 *:-:* | *:-) cat >"$tmp/stdin" \
24817 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24818$as_echo "$as_me: error: could not create $ac_file" >&2;}
24819 { (exit 1); exit 1; }; } ;;
24820 esac
24821 ;;
24822 esac
24823
24824 ac_dir=`$as_dirname -- "$ac_file" ||
24825$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24826 X"$ac_file" : 'X\(//\)[^/]' \| \
24827 X"$ac_file" : 'X\(//\)$' \| \
24828 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24829$as_echo X"$ac_file" |
24830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24831 s//\1/
24832 q
24833 }
24834 /^X\(\/\/\)[^/].*/{
24835 s//\1/
24836 q
24837 }
24838 /^X\(\/\/\)$/{
24839 s//\1/
24840 q
24841 }
24842 /^X\(\/\).*/{
24843 s//\1/
24844 q
24845 }
24846 s/.*/./; q'`
24847 { as_dir="$ac_dir"
24848 case $as_dir in #(
24849 -*) as_dir=./$as_dir;;
24850 esac
24851 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24852 as_dirs=
24853 while :; do
24854 case $as_dir in #(
24855 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24856 *) as_qdir=$as_dir;;
24857 esac
24858 as_dirs="'$as_qdir' $as_dirs"
24859 as_dir=`$as_dirname -- "$as_dir" ||
24860$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24861 X"$as_dir" : 'X\(//\)[^/]' \| \
24862 X"$as_dir" : 'X\(//\)$' \| \
24863 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24864$as_echo X"$as_dir" |
24865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24866 s//\1/
24867 q
24868 }
24869 /^X\(\/\/\)[^/].*/{
24870 s//\1/
24871 q
24872 }
24873 /^X\(\/\/\)$/{
24874 s//\1/
24875 q
24876 }
24877 /^X\(\/\).*/{
24878 s//\1/
24879 q
24880 }
24881 s/.*/./; q'`
24882 test -d "$as_dir" && break
24883 done
24884 test -z "$as_dirs" || eval "mkdir $as_dirs"
24885 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24886$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24887 { (exit 1); exit 1; }; }; }
24888 ac_builddir=.
24889
24890case "$ac_dir" in
24891.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24892*)
24893 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24894 # A ".." for each directory in $ac_dir_suffix.
24895 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24896 case $ac_top_builddir_sub in
24897 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24898 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24899 esac ;;
24900esac
24901ac_abs_top_builddir=$ac_pwd
24902ac_abs_builddir=$ac_pwd$ac_dir_suffix
24903# for backward compatibility:
24904ac_top_builddir=$ac_top_build_prefix
24905
24906case $srcdir in
24907 .) # We are building in place.
24908 ac_srcdir=.
24909 ac_top_srcdir=$ac_top_builddir_sub
24910 ac_abs_top_srcdir=$ac_pwd ;;
24911 [\\/]* | ?:[\\/]* ) # Absolute name.
24912 ac_srcdir=$srcdir$ac_dir_suffix;
24913 ac_top_srcdir=$srcdir
24914 ac_abs_top_srcdir=$srcdir ;;
24915 *) # Relative name.
24916 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24917 ac_top_srcdir=$ac_top_build_prefix$srcdir
24918 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24919esac
24920ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24921
24922
24923 case $ac_mode in
24924 :F)
24925 #
24926 # CONFIG_FILE
24927 #
24928
24929 case $INSTALL in
24930 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24931 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24932 esac
24933 ac_MKDIR_P=$MKDIR_P
24934 case $MKDIR_P in
24935 [\\/$]* | ?:[\\/]* ) ;;
24936 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24937 esac
24938_ACEOF
24939
24940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24941# If the template does not know about datarootdir, expand it.
24942# FIXME: This hack should be removed a few years after 2.60.
24943ac_datarootdir_hack=; ac_datarootdir_seen=
24944
24945ac_sed_dataroot='
24946/datarootdir/ {
24947 p
24948 q
24949}
24950/@datadir@/p
24951/@docdir@/p
24952/@infodir@/p
24953/@localedir@/p
24954/@mandir@/p
24955'
24956case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24957*datarootdir*) ac_datarootdir_seen=yes;;
24958*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24959 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24960$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24961_ACEOF
24962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24963 ac_datarootdir_hack='
24964 s&@datadir@&$datadir&g
24965 s&@docdir@&$docdir&g
24966 s&@infodir@&$infodir&g
24967 s&@localedir@&$localedir&g
24968 s&@mandir@&$mandir&g
24969 s&\\\${datarootdir}&$datarootdir&g' ;;
24970esac
24971_ACEOF
24972
24973# Neutralize VPATH when `$srcdir' = `.'.
24974# Shell code in configure.ac might set extrasub.
24975# FIXME: do we really want to maintain this feature?
24976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24977ac_sed_extra="$ac_vpsub
24978$extrasub
24979_ACEOF
24980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24981:t
24982/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24983s|@configure_input@|$ac_sed_conf_input|;t t
24984s&@top_builddir@&$ac_top_builddir_sub&;t t
24985s&@top_build_prefix@&$ac_top_build_prefix&;t t
24986s&@srcdir@&$ac_srcdir&;t t
24987s&@abs_srcdir@&$ac_abs_srcdir&;t t
24988s&@top_srcdir@&$ac_top_srcdir&;t t
24989s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24990s&@builddir@&$ac_builddir&;t t
24991s&@abs_builddir@&$ac_abs_builddir&;t t
24992s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24993s&@INSTALL@&$ac_INSTALL&;t t
24994s&@MKDIR_P@&$ac_MKDIR_P&;t t
24995$ac_datarootdir_hack
24996"
24997eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24998 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24999$as_echo "$as_me: error: could not create $ac_file" >&2;}
25000 { (exit 1); exit 1; }; }
25001
25002test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25003 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25004 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25005 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25006which seems to be undefined. Please make sure it is defined." >&5
25007$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25008which seems to be undefined. Please make sure it is defined." >&2;}
25009
25010 rm -f "$tmp/stdin"
25011 case $ac_file in
25012 -) cat "$tmp/out" && rm -f "$tmp/out";;
25013 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25014 esac \
25015 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25016$as_echo "$as_me: error: could not create $ac_file" >&2;}
25017 { (exit 1); exit 1; }; }
25018 ;;
25019 :H)
25020 #
25021 # CONFIG_HEADER
25022 #
25023 if test x"$ac_file" != x-; then
25024 {
25025 $as_echo "/* $configure_input */" \
25026 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25027 } >"$tmp/config.h" \
25028 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25029$as_echo "$as_me: error: could not create $ac_file" >&2;}
25030 { (exit 1); exit 1; }; }
25031 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25032 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25033$as_echo "$as_me: $ac_file is unchanged" >&6;}
25034 else
25035 rm -f "$ac_file"
25036 mv "$tmp/config.h" "$ac_file" \
25037 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25038$as_echo "$as_me: error: could not create $ac_file" >&2;}
25039 { (exit 1); exit 1; }; }
25040 fi
25041 else
25042 $as_echo "/* $configure_input */" \
25043 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25044 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
25045$as_echo "$as_me: error: could not create -" >&2;}
25046 { (exit 1); exit 1; }; }
25047 fi
25048# Compute "$ac_file"'s index in $config_headers.
25049_am_arg="$ac_file"
25050_am_stamp_count=1
25051for _am_header in $config_headers :; do
25052 case $_am_header in
25053 $_am_arg | $_am_arg:* )
25054 break ;;
25055 * )
25056 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25057 esac
25058done
25059echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25060$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25061 X"$_am_arg" : 'X\(//\)[^/]' \| \
25062 X"$_am_arg" : 'X\(//\)$' \| \
25063 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25064$as_echo X"$_am_arg" |
25065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25066 s//\1/
25067 q
25068 }
25069 /^X\(\/\/\)[^/].*/{
25070 s//\1/
25071 q
25072 }
25073 /^X\(\/\/\)$/{
25074 s//\1/
25075 q
25076 }
25077 /^X\(\/\).*/{
25078 s//\1/
25079 q
25080 }
25081 s/.*/./; q'`/stamp-h$_am_stamp_count
25082 ;;
25083
25084 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
25085$as_echo "$as_me: executing $ac_file commands" >&6;}
25086 ;;
25087 esac
25088
25089
25090 case $ac_file$ac_mode in
25091 "zfs_config.h":H)
25092 (mv zfs_config.h zfs_config.h.tmp &&
6283f55e 25093 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
e70e591c
BB
25094 rm zfs_config.h.tmp) || exit 1 ;;
25095 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25096 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25097 # are listed without --file. Let's play safe and only enable the eval
25098 # if we detect the quoting.
25099 case $CONFIG_FILES in
25100 *\'*) eval set x "$CONFIG_FILES" ;;
25101 *) set x $CONFIG_FILES ;;
25102 esac
25103 shift
25104 for mf
25105 do
25106 # Strip MF so we end up with the name of the file.
25107 mf=`echo "$mf" | sed -e 's/:.*$//'`
25108 # Check whether this is an Automake generated Makefile or not.
25109 # We used to match only the files named `Makefile.in', but
25110 # some people rename them; so instead we look at the file content.
25111 # Grep'ing the first line is not enough: some people post-process
25112 # each Makefile.in and add a new line on top of each file to say so.
25113 # Grep'ing the whole file is not good either: AIX grep has a line
25114 # limit of 2048, but all sed's we know have understand at least 4000.
25115 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25116 dirpart=`$as_dirname -- "$mf" ||
25117$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25118 X"$mf" : 'X\(//\)[^/]' \| \
25119 X"$mf" : 'X\(//\)$' \| \
25120 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25121$as_echo X"$mf" |
25122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25123 s//\1/
25124 q
25125 }
25126 /^X\(\/\/\)[^/].*/{
25127 s//\1/
25128 q
25129 }
25130 /^X\(\/\/\)$/{
25131 s//\1/
25132 q
25133 }
25134 /^X\(\/\).*/{
25135 s//\1/
25136 q
25137 }
25138 s/.*/./; q'`
25139 else
25140 continue
25141 fi
25142 # Extract the definition of DEPDIR, am__include, and am__quote
25143 # from the Makefile without running `make'.
25144 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25145 test -z "$DEPDIR" && continue
25146 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25147 test -z "am__include" && continue
25148 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25149 # When using ansi2knr, U may be empty or an underscore; expand it
25150 U=`sed -n 's/^U = //p' < "$mf"`
25151 # Find all dependency output files, they are included files with
25152 # $(DEPDIR) in their names. We invoke sed twice because it is the
25153 # simplest approach to changing $(DEPDIR) to its actual value in the
25154 # expansion.
25155 for file in `sed -n "
25156 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25157 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25158 # Make sure the directory exists.
25159 test -f "$dirpart/$file" && continue
25160 fdir=`$as_dirname -- "$file" ||
25161$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25162 X"$file" : 'X\(//\)[^/]' \| \
25163 X"$file" : 'X\(//\)$' \| \
25164 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25165$as_echo X"$file" |
25166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25167 s//\1/
25168 q
25169 }
25170 /^X\(\/\/\)[^/].*/{
25171 s//\1/
25172 q
25173 }
25174 /^X\(\/\/\)$/{
25175 s//\1/
25176 q
25177 }
25178 /^X\(\/\).*/{
25179 s//\1/
25180 q
25181 }
25182 s/.*/./; q'`
25183 { as_dir=$dirpart/$fdir
25184 case $as_dir in #(
25185 -*) as_dir=./$as_dir;;
25186 esac
25187 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25188 as_dirs=
25189 while :; do
25190 case $as_dir in #(
25191 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25192 *) as_qdir=$as_dir;;
25193 esac
25194 as_dirs="'$as_qdir' $as_dirs"
25195 as_dir=`$as_dirname -- "$as_dir" ||
25196$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25197 X"$as_dir" : 'X\(//\)[^/]' \| \
25198 X"$as_dir" : 'X\(//\)$' \| \
25199 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25200$as_echo X"$as_dir" |
25201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25202 s//\1/
25203 q
25204 }
25205 /^X\(\/\/\)[^/].*/{
25206 s//\1/
25207 q
25208 }
25209 /^X\(\/\/\)$/{
25210 s//\1/
25211 q
25212 }
25213 /^X\(\/\).*/{
25214 s//\1/
25215 q
25216 }
25217 s/.*/./; q'`
25218 test -d "$as_dir" && break
25219 done
25220 test -z "$as_dirs" || eval "mkdir $as_dirs"
25221 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25222$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25223 { (exit 1); exit 1; }; }; }
25224 # echo "creating $dirpart/$file"
25225 echo '# dummy' > "$dirpart/$file"
25226 done
25227 done
25228}
25229 ;;
25230 "libtool":C)
25231
25232 # See if we are running on zsh, and set the options which allow our
25233 # commands through without removal of \ escapes.
25234 if test -n "${ZSH_VERSION+set}" ; then
25235 setopt NO_GLOB_SUBST
25236 fi
25237
25238 cfgfile="${ofile}T"
25239 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25240 $RM "$cfgfile"
25241
25242 cat <<_LT_EOF >> "$cfgfile"
25243#! $SHELL
25244
25245# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25246# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25247# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25248# NOTE: Changes made to this file will be lost: look at ltmain.sh.
25249#
25250# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25251# 2006, 2007, 2008 Free Software Foundation, Inc.
25252# Written by Gordon Matzigkeit, 1996
25253#
25254# This file is part of GNU Libtool.
25255#
25256# GNU Libtool is free software; you can redistribute it and/or
25257# modify it under the terms of the GNU General Public License as
25258# published by the Free Software Foundation; either version 2 of
25259# the License, or (at your option) any later version.
25260#
25261# As a special exception to the GNU General Public License,
25262# if you distribute this file as part of a program or library that
25263# is built using GNU Libtool, you may include this file under the
25264# same distribution terms that you use for the rest of that program.
25265#
25266# GNU Libtool is distributed in the hope that it will be useful,
25267# but WITHOUT ANY WARRANTY; without even the implied warranty of
25268# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25269# GNU General Public License for more details.
25270#
25271# You should have received a copy of the GNU General Public License
25272# along with GNU Libtool; see the file COPYING. If not, a copy
25273# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25274# obtained by writing to the Free Software Foundation, Inc.,
25275# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25276
25277
25278# The names of the tagged configurations supported by this script.
25279available_tags=""
25280
25281# ### BEGIN LIBTOOL CONFIG
25282
25283# Which release of libtool.m4 was used?
25284macro_version=$macro_version
25285macro_revision=$macro_revision
25286
25287# Whether or not to build shared libraries.
25288build_libtool_libs=$enable_shared
25289
25290# Whether or not to build static libraries.
25291build_old_libs=$enable_static
25292
25293# What type of objects to build.
25294pic_mode=$pic_mode
25295
25296# Whether or not to optimize for fast installation.
25297fast_install=$enable_fast_install
25298
25299# The host system.
25300host_alias=$host_alias
25301host=$host
25302host_os=$host_os
25303
25304# The build system.
25305build_alias=$build_alias
25306build=$build
25307build_os=$build_os
25308
25309# A sed program that does not truncate output.
25310SED=$lt_SED
25311
25312# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25313Xsed="\$SED -e 1s/^X//"
25314
25315# A grep program that handles long lines.
25316GREP=$lt_GREP
25317
25318# An ERE matcher.
25319EGREP=$lt_EGREP
25320
25321# A literal string matcher.
25322FGREP=$lt_FGREP
25323
25324# A BSD- or MS-compatible name lister.
25325NM=$lt_NM
25326
25327# Whether we need soft or hard links.
25328LN_S=$lt_LN_S
25329
25330# What is the maximum length of a command?
25331max_cmd_len=$max_cmd_len
25332
25333# Object file suffix (normally "o").
25334objext=$ac_objext
25335
25336# Executable file suffix (normally "").
25337exeext=$exeext
25338
25339# whether the shell understands "unset".
25340lt_unset=$lt_unset
25341
25342# turn spaces into newlines.
25343SP2NL=$lt_lt_SP2NL
25344
25345# turn newlines into spaces.
25346NL2SP=$lt_lt_NL2SP
25347
25348# How to create reloadable object files.
25349reload_flag=$lt_reload_flag
25350reload_cmds=$lt_reload_cmds
25351
25352# An object symbol dumper.
25353OBJDUMP=$lt_OBJDUMP
25354
25355# Method to check whether dependent libraries are shared objects.
25356deplibs_check_method=$lt_deplibs_check_method
25357
25358# Command to use when deplibs_check_method == "file_magic".
25359file_magic_cmd=$lt_file_magic_cmd
25360
25361# The archiver.
25362AR=$lt_AR
25363AR_FLAGS=$lt_AR_FLAGS
25364
25365# A symbol stripping program.
25366STRIP=$lt_STRIP
25367
25368# Commands used to install an old-style archive.
25369RANLIB=$lt_RANLIB
25370old_postinstall_cmds=$lt_old_postinstall_cmds
25371old_postuninstall_cmds=$lt_old_postuninstall_cmds
25372
25373# A C compiler.
25374LTCC=$lt_CC
25375
25376# LTCC compiler flags.
25377LTCFLAGS=$lt_CFLAGS
25378
25379# Take the output of nm and produce a listing of raw symbols and C names.
25380global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25381
25382# Transform the output of nm in a proper C declaration.
25383global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25384
25385# Transform the output of nm in a C name address pair.
25386global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25387
25388# Transform the output of nm in a C name address pair when lib prefix is needed.
25389global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25390
25391# The name of the directory that contains temporary libtool files.
25392objdir=$objdir
25393
25394# Shell to use when invoking shell scripts.
25395SHELL=$lt_SHELL
25396
25397# An echo program that does not interpret backslashes.
25398ECHO=$lt_ECHO
25399
25400# Used to examine libraries when file_magic_cmd begins with "file".
25401MAGIC_CMD=$MAGIC_CMD
25402
25403# Must we lock files when doing compilation?
25404need_locks=$lt_need_locks
25405
25406# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25407DSYMUTIL=$lt_DSYMUTIL
25408
25409# Tool to change global to local symbols on Mac OS X.
25410NMEDIT=$lt_NMEDIT
25411
25412# Tool to manipulate fat objects and archives on Mac OS X.
25413LIPO=$lt_LIPO
25414
25415# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25416OTOOL=$lt_OTOOL
25417
25418# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25419OTOOL64=$lt_OTOOL64
25420
25421# Old archive suffix (normally "a").
25422libext=$libext
25423
25424# Shared library suffix (normally ".so").
25425shrext_cmds=$lt_shrext_cmds
25426
25427# The commands to extract the exported symbol list from a shared archive.
25428extract_expsyms_cmds=$lt_extract_expsyms_cmds
25429
25430# Variables whose values should be saved in libtool wrapper scripts and
25431# restored at link time.
25432variables_saved_for_relink=$lt_variables_saved_for_relink
25433
25434# Do we need the "lib" prefix for modules?
25435need_lib_prefix=$need_lib_prefix
25436
25437# Do we need a version for libraries?
25438need_version=$need_version
25439
25440# Library versioning type.
25441version_type=$version_type
25442
25443# Shared library runtime path variable.
25444runpath_var=$runpath_var
25445
25446# Shared library path variable.
25447shlibpath_var=$shlibpath_var
25448
25449# Is shlibpath searched before the hard-coded library search path?
25450shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25451
25452# Format of library name prefix.
25453libname_spec=$lt_libname_spec
25454
25455# List of archive names. First name is the real one, the rest are links.
25456# The last name is the one that the linker finds with -lNAME
25457library_names_spec=$lt_library_names_spec
25458
25459# The coded name of the library, if different from the real name.
25460soname_spec=$lt_soname_spec
25461
25462# Command to use after installation of a shared archive.
25463postinstall_cmds=$lt_postinstall_cmds
25464
25465# Command to use after uninstallation of a shared archive.
25466postuninstall_cmds=$lt_postuninstall_cmds
25467
25468# Commands used to finish a libtool library installation in a directory.
25469finish_cmds=$lt_finish_cmds
25470
25471# As "finish_cmds", except a single script fragment to be evaled but
25472# not shown.
25473finish_eval=$lt_finish_eval
25474
25475# Whether we should hardcode library paths into libraries.
25476hardcode_into_libs=$hardcode_into_libs
25477
25478# Compile-time system search path for libraries.
25479sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25480
25481# Run-time system search path for libraries.
25482sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25483
25484# Whether dlopen is supported.
25485dlopen_support=$enable_dlopen
25486
25487# Whether dlopen of programs is supported.
25488dlopen_self=$enable_dlopen_self
25489
25490# Whether dlopen of statically linked programs is supported.
25491dlopen_self_static=$enable_dlopen_self_static
25492
25493# Commands to strip libraries.
25494old_striplib=$lt_old_striplib
25495striplib=$lt_striplib
25496
25497
25498# The linker used to build libraries.
25499LD=$lt_LD
25500
25501# Commands used to build an old-style archive.
25502old_archive_cmds=$lt_old_archive_cmds
25503
25504# A language specific compiler.
25505CC=$lt_compiler
25506
25507# Is the compiler the GNU compiler?
25508with_gcc=$GCC
25509
25510# Compiler flag to turn off builtin functions.
25511no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25512
25513# How to pass a linker flag through the compiler.
25514wl=$lt_lt_prog_compiler_wl
25515
25516# Additional compiler flags for building library objects.
25517pic_flag=$lt_lt_prog_compiler_pic
25518
25519# Compiler flag to prevent dynamic linking.
25520link_static_flag=$lt_lt_prog_compiler_static
25521
25522# Does compiler simultaneously support -c and -o options?
25523compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25524
25525# Whether or not to add -lc for building shared libraries.
25526build_libtool_need_lc=$archive_cmds_need_lc
25527
25528# Whether or not to disallow shared libs when runtime libs are static.
25529allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25530
25531# Compiler flag to allow reflexive dlopens.
25532export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25533
25534# Compiler flag to generate shared objects directly from archives.
25535whole_archive_flag_spec=$lt_whole_archive_flag_spec
25536
25537# Whether the compiler copes with passing no objects directly.
25538compiler_needs_object=$lt_compiler_needs_object
25539
25540# Create an old-style archive from a shared archive.
25541old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25542
25543# Create a temporary old-style archive to link instead of a shared archive.
25544old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25545
25546# Commands used to build a shared archive.
25547archive_cmds=$lt_archive_cmds
25548archive_expsym_cmds=$lt_archive_expsym_cmds
25549
25550# Commands used to build a loadable module if different from building
25551# a shared archive.
25552module_cmds=$lt_module_cmds
25553module_expsym_cmds=$lt_module_expsym_cmds
25554
25555# Whether we are building with GNU ld or not.
25556with_gnu_ld=$lt_with_gnu_ld
25557
25558# Flag that allows shared libraries with undefined symbols to be built.
25559allow_undefined_flag=$lt_allow_undefined_flag
25560
25561# Flag that enforces no undefined symbols.
25562no_undefined_flag=$lt_no_undefined_flag
25563
25564# Flag to hardcode \$libdir into a binary during linking.
25565# This must work even if \$libdir does not exist
25566hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25567
25568# If ld is used when linking, flag to hardcode \$libdir into a binary
25569# during linking. This must work even if \$libdir does not exist.
25570hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
25571
25572# Whether we need a single "-rpath" flag with a separated argument.
25573hardcode_libdir_separator=$lt_hardcode_libdir_separator
25574
25575# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25576# DIR into the resulting binary.
25577hardcode_direct=$hardcode_direct
25578
25579# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25580# DIR into the resulting binary and the resulting library dependency is
25581# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25582# library is relocated.
25583hardcode_direct_absolute=$hardcode_direct_absolute
25584
25585# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25586# into the resulting binary.
25587hardcode_minus_L=$hardcode_minus_L
25588
25589# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25590# into the resulting binary.
25591hardcode_shlibpath_var=$hardcode_shlibpath_var
25592
25593# Set to "yes" if building a shared library automatically hardcodes DIR
25594# into the library and all subsequent libraries and executables linked
25595# against it.
25596hardcode_automatic=$hardcode_automatic
25597
25598# Set to yes if linker adds runtime paths of dependent libraries
25599# to runtime path list.
25600inherit_rpath=$inherit_rpath
25601
25602# Whether libtool must link a program against all its dependency libraries.
25603link_all_deplibs=$link_all_deplibs
25604
25605# Fix the shell variable \$srcfile for the compiler.
25606fix_srcfile_path=$lt_fix_srcfile_path
25607
25608# Set to "yes" if exported symbols are required.
25609always_export_symbols=$always_export_symbols
25610
25611# The commands to list exported symbols.
25612export_symbols_cmds=$lt_export_symbols_cmds
25613
25614# Symbols that should not be listed in the preloaded symbols.
25615exclude_expsyms=$lt_exclude_expsyms
25616
25617# Symbols that must always be exported.
25618include_expsyms=$lt_include_expsyms
25619
25620# Commands necessary for linking programs (against libraries) with templates.
25621prelink_cmds=$lt_prelink_cmds
25622
25623# Specify filename containing input files.
25624file_list_spec=$lt_file_list_spec
25625
25626# How to hardcode a shared library path into an executable.
25627hardcode_action=$hardcode_action
25628
25629# ### END LIBTOOL CONFIG
25630
25631_LT_EOF
25632
25633 case $host_os in
25634 aix3*)
25635 cat <<\_LT_EOF >> "$cfgfile"
25636# AIX sometimes has problems with the GCC collect2 program. For some
25637# reason, if we set the COLLECT_NAMES environment variable, the problems
25638# vanish in a puff of smoke.
25639if test "X${COLLECT_NAMES+set}" != Xset; then
25640 COLLECT_NAMES=
25641 export COLLECT_NAMES
25642fi
25643_LT_EOF
25644 ;;
25645 esac
25646
25647
25648ltmain="$ac_aux_dir/ltmain.sh"
25649
25650
25651 # We use sed instead of cat because bash on DJGPP gets confused if
25652 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25653 # text mode, it properly converts lines to CR/LF. This bash problem
25654 # is reportedly fixed, but why not run on old versions too?
25655 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
25656 || (rm -f "$cfgfile"; exit 1)
25657
25658 case $xsi_shell in
25659 yes)
25660 cat << \_LT_EOF >> "$cfgfile"
25661
25662# func_dirname file append nondir_replacement
25663# Compute the dirname of FILE. If nonempty, add APPEND to the result,
25664# otherwise set result to NONDIR_REPLACEMENT.
25665func_dirname ()
25666{
25667 case ${1} in
25668 */*) func_dirname_result="${1%/*}${2}" ;;
25669 * ) func_dirname_result="${3}" ;;
25670 esac
25671}
25672
25673# func_basename file
25674func_basename ()
25675{
25676 func_basename_result="${1##*/}"
25677}
25678
25679# func_dirname_and_basename file append nondir_replacement
25680# perform func_basename and func_dirname in a single function
25681# call:
25682# dirname: Compute the dirname of FILE. If nonempty,
25683# add APPEND to the result, otherwise set result
25684# to NONDIR_REPLACEMENT.
25685# value returned in "$func_dirname_result"
25686# basename: Compute filename of FILE.
25687# value retuned in "$func_basename_result"
25688# Implementation must be kept synchronized with func_dirname
25689# and func_basename. For efficiency, we do not delegate to
25690# those functions but instead duplicate the functionality here.
25691func_dirname_and_basename ()
25692{
25693 case ${1} in
25694 */*) func_dirname_result="${1%/*}${2}" ;;
25695 * ) func_dirname_result="${3}" ;;
25696 esac
25697 func_basename_result="${1##*/}"
25698}
25699
25700# func_stripname prefix suffix name
25701# strip PREFIX and SUFFIX off of NAME.
25702# PREFIX and SUFFIX must not contain globbing or regex special
25703# characters, hashes, percent signs, but SUFFIX may contain a leading
25704# dot (in which case that matches only a dot).
25705func_stripname ()
25706{
25707 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25708 # positional parameters, so assign one to ordinary parameter first.
25709 func_stripname_result=${3}
25710 func_stripname_result=${func_stripname_result#"${1}"}
25711 func_stripname_result=${func_stripname_result%"${2}"}
25712}
25713
25714# func_opt_split
25715func_opt_split ()
25716{
25717 func_opt_split_opt=${1%%=*}
25718 func_opt_split_arg=${1#*=}
25719}
25720
25721# func_lo2o object
25722func_lo2o ()
25723{
25724 case ${1} in
25725 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25726 *) func_lo2o_result=${1} ;;
25727 esac
25728}
25729
25730# func_xform libobj-or-source
25731func_xform ()
25732{
25733 func_xform_result=${1%.*}.lo
25734}
25735
25736# func_arith arithmetic-term...
25737func_arith ()
25738{
25739 func_arith_result=$(( $* ))
25740}
25741
25742# func_len string
25743# STRING may not start with a hyphen.
25744func_len ()
25745{
25746 func_len_result=${#1}
25747}
25748
25749_LT_EOF
25750 ;;
25751 *) # Bourne compatible functions.
25752 cat << \_LT_EOF >> "$cfgfile"
25753
25754# func_dirname file append nondir_replacement
25755# Compute the dirname of FILE. If nonempty, add APPEND to the result,
25756# otherwise set result to NONDIR_REPLACEMENT.
25757func_dirname ()
25758{
25759 # Extract subdirectory from the argument.
25760 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
25761 if test "X$func_dirname_result" = "X${1}"; then
25762 func_dirname_result="${3}"
25763 else
25764 func_dirname_result="$func_dirname_result${2}"
25765 fi
25766}
25767
25768# func_basename file
25769func_basename ()
25770{
25771 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
25772}
25773
25774
25775# func_stripname prefix suffix name
25776# strip PREFIX and SUFFIX off of NAME.
25777# PREFIX and SUFFIX must not contain globbing or regex special
25778# characters, hashes, percent signs, but SUFFIX may contain a leading
25779# dot (in which case that matches only a dot).
25780# func_strip_suffix prefix name
25781func_stripname ()
25782{
25783 case ${2} in
25784 .*) func_stripname_result=`$ECHO "X${3}" \
25785 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
25786 *) func_stripname_result=`$ECHO "X${3}" \
25787 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
25788 esac
25789}
25790
25791# sed scripts:
25792my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25793my_sed_long_arg='1s/^-[^=]*=//'
25794
25795# func_opt_split
25796func_opt_split ()
25797{
25798 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
25799 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
25800}
25801
25802# func_lo2o object
25803func_lo2o ()
25804{
25805 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
25806}
25807
25808# func_xform libobj-or-source
25809func_xform ()
25810{
25811 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
25812}
25813
25814# func_arith arithmetic-term...
25815func_arith ()
25816{
25817 func_arith_result=`expr "$@"`
25818}
25819
25820# func_len string
25821# STRING may not start with a hyphen.
25822func_len ()
25823{
25824 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25825}
25826
25827_LT_EOF
25828esac
25829
25830case $lt_shell_append in
25831 yes)
25832 cat << \_LT_EOF >> "$cfgfile"
25833
25834# func_append var value
25835# Append VALUE to the end of shell variable VAR.
25836func_append ()
25837{
25838 eval "$1+=\$2"
25839}
25840_LT_EOF
25841 ;;
25842 *)
25843 cat << \_LT_EOF >> "$cfgfile"
25844
25845# func_append var value
25846# Append VALUE to the end of shell variable VAR.
25847func_append ()
25848{
25849 eval "$1=\$$1\$2"
25850}
25851
25852_LT_EOF
25853 ;;
25854 esac
25855
25856
25857 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25858 || (rm -f "$cfgfile"; exit 1)
25859
25860 mv -f "$cfgfile" "$ofile" ||
25861 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25862 chmod +x "$ofile"
25863
25864 ;;
25865
25866 esac
25867done # for ac_tag
25868
25869
25870{ (exit 0); exit 0; }
25871_ACEOF
25872chmod +x $CONFIG_STATUS
25873ac_clean_files=$ac_clean_files_save
25874
25875test $ac_write_fail = 0 ||
25876 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
25877$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
25878 { (exit 1); exit 1; }; }
25879
25880
25881# configure is writing to config.log, and then calls config.status.
25882# config.status does its own redirection, appending to config.log.
25883# Unfortunately, on DOS this fails, as config.log is still kept open
25884# by configure, so config.status won't be able to write to it; its
25885# output is simply discarded. So we exec the FD to /dev/null,
25886# effectively closing config.log, so it can be properly (re)opened and
25887# appended to by config.status. When coming back to configure, we
25888# need to make the FD available again.
25889if test "$no_create" != yes; then
25890 ac_cs_success=:
25891 ac_config_status_args=
25892 test "$silent" = yes &&
25893 ac_config_status_args="$ac_config_status_args --quiet"
25894 exec 5>/dev/null
25895 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25896 exec 5>>config.log
25897 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25898 # would make configure fail if this is the last instruction.
25899 $ac_cs_success || { (exit 1); exit 1; }
25900fi
25901if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25902 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25903$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25904fi
25905