]> git.proxmox.com Git - mirror_zfs-debian.git/blob - configure
510673810d8c316ee66bf9ee251c7429b3aaa539
[mirror_zfs-debian.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604 $*
605 _LT_EOF
606 exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 # Factoring default headers for most tests.
751 ac_includes_default="\
752 #include <stdio.h>
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
755 #endif
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
758 #endif
759 #ifdef STDC_HEADERS
760 # include <stdlib.h>
761 # include <stddef.h>
762 #else
763 # ifdef HAVE_STDLIB_H
764 # include <stdlib.h>
765 # endif
766 #endif
767 #ifdef HAVE_STRING_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769 # include <memory.h>
770 # endif
771 # include <string.h>
772 #endif
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
775 #endif
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
778 #endif
779 #ifdef HAVE_STDINT_H
780 # include <stdint.h>
781 #endif
782 #ifdef HAVE_UNISTD_H
783 # include <unistd.h>
784 #endif"
785
786 ac_subst_vars='am__EXEEXT_FALSE
787 am__EXEEXT_TRUE
788 LTLIBOBJS
789 LIBOBJS
790 DEBUG_STACKFLAGS
791 DEBUG_CFLAGS
792 CONFIG_KERNEL_FALSE
793 CONFIG_KERNEL_TRUE
794 CONFIG_USER_FALSE
795 CONFIG_USER_TRUE
796 FRAME_LARGER_THAN
797 LIBSELINUX
798 LIBBLKID
799 LIBUUID
800 ZLIB
801 udevruledir
802 udevdir
803 KERNELCPPFLAGS
804 KERNELMAKE_PARAMS
805 SPL_SYMBOLS
806 SPL_VERSION
807 SPL_OBJ
808 SPL
809 LINUX_SYMBOLS
810 LINUX_VERSION
811 LINUX_OBJ
812 LINUX
813 NO_UNUSED_BUT_SET_VARIABLE
814 ZFS_CONFIG
815 TARGET_ASM_DIR
816 DEFAULT_INIT_SCRIPT
817 DEFAULT_INIT_DIR
818 DEFAULT_PACKAGE
819 VENDOR
820 MAKEPKG_VERSION
821 MAKEPKG
822 HAVE_MAKEPKG
823 PACMAN_VERSION
824 PACMAN
825 HAVE_PACMAN
826 ALIEN_VERSION
827 ALIEN
828 HAVE_ALIEN
829 DPKGBUILD_VERSION
830 DPKGBUILD
831 HAVE_DPKGBUILD
832 DPKG_VERSION
833 DPKG
834 HAVE_DPKG
835 RPMBUILD_VERSION
836 RPMBUILD
837 HAVE_RPMBUILD
838 RPM_VERSION
839 RPM
840 HAVE_RPM
841 am__fastdepCCAS_FALSE
842 am__fastdepCCAS_TRUE
843 CCASDEPMODE
844 CCASFLAGS
845 CCAS
846 CPP
847 OTOOL64
848 OTOOL
849 LIPO
850 NMEDIT
851 DSYMUTIL
852 lt_ECHO
853 RANLIB
854 AR
855 OBJDUMP
856 LN_S
857 NM
858 ac_ct_DUMPBIN
859 DUMPBIN
860 LD
861 FGREP
862 EGREP
863 GREP
864 SED
865 LIBTOOL
866 am__fastdepCC_FALSE
867 am__fastdepCC_TRUE
868 CCDEPMODE
869 AMDEPBACKSLASH
870 AMDEP_FALSE
871 AMDEP_TRUE
872 am__quote
873 am__include
874 DEPDIR
875 OBJEXT
876 EXEEXT
877 ac_ct_CC
878 CPPFLAGS
879 LDFLAGS
880 CFLAGS
881 CC
882 am__untar
883 am__tar
884 AMTAR
885 am__leading_dot
886 SET_MAKE
887 AWK
888 mkdir_p
889 MKDIR_P
890 INSTALL_STRIP_PROGRAM
891 STRIP
892 install_sh
893 MAKEINFO
894 AUTOHEADER
895 AUTOMAKE
896 AUTOCONF
897 ACLOCAL
898 VERSION
899 PACKAGE
900 CYGPATH_W
901 am__isrc
902 INSTALL_DATA
903 INSTALL_SCRIPT
904 INSTALL_PROGRAM
905 AM_BACKSLASH
906 AM_DEFAULT_VERBOSITY
907 MAINT
908 MAINTAINER_MODE_FALSE
909 MAINTAINER_MODE_TRUE
910 target_os
911 target_vendor
912 target_cpu
913 target
914 host_os
915 host_vendor
916 host_cpu
917 host
918 build_os
919 build_vendor
920 build_cpu
921 build
922 ZFS_META_LT_AGE
923 ZFS_META_LT_REVISION
924 ZFS_META_LT_CURRENT
925 ZFS_META_AUTHOR
926 ZFS_META_DATA
927 ZFS_META_ALIAS
928 ZFS_META_LICENSE
929 ZFS_META_RELEASE
930 ZFS_META_VERSION
931 ZFS_META_NAME
932 target_alias
933 host_alias
934 build_alias
935 LIBS
936 ECHO_T
937 ECHO_N
938 ECHO_C
939 DEFS
940 mandir
941 localedir
942 libdir
943 psdir
944 pdfdir
945 dvidir
946 htmldir
947 infodir
948 docdir
949 oldincludedir
950 includedir
951 localstatedir
952 sharedstatedir
953 sysconfdir
954 datadir
955 datarootdir
956 libexecdir
957 sbindir
958 bindir
959 program_transform_name
960 prefix
961 exec_prefix
962 PACKAGE_BUGREPORT
963 PACKAGE_STRING
964 PACKAGE_VERSION
965 PACKAGE_TARNAME
966 PACKAGE_NAME
967 PATH_SEPARATOR
968 SHELL'
969 ac_subst_files=''
970 ac_user_opts='
971 enable_option_checking
972 enable_maintainer_mode
973 enable_silent_rules
974 enable_dependency_tracking
975 enable_shared
976 enable_static
977 with_pic
978 enable_fast_install
979 with_gnu_ld
980 enable_libtool_lock
981 with_config
982 with_linux
983 with_linux_obj
984 with_spl
985 with_spl_obj
986 with_udevdir
987 with_udevruledir
988 with_blkid
989 with_selinux
990 enable_debug
991 '
992 ac_precious_vars='build_alias
993 host_alias
994 target_alias
995 CC
996 CFLAGS
997 LDFLAGS
998 LIBS
999 CPPFLAGS
1000 CPP
1001 CCAS
1002 CCASFLAGS'
1003
1004
1005 # Initialize some variables set by options.
1006 ac_init_help=
1007 ac_init_version=false
1008 ac_unrecognized_opts=
1009 ac_unrecognized_sep=
1010 # The variables have the same names as the options, with
1011 # dashes changed to underlines.
1012 cache_file=/dev/null
1013 exec_prefix=NONE
1014 no_create=
1015 no_recursion=
1016 prefix=NONE
1017 program_prefix=NONE
1018 program_suffix=NONE
1019 program_transform_name=s,x,x,
1020 silent=
1021 site=
1022 srcdir=
1023 verbose=
1024 x_includes=NONE
1025 x_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.)
1033 bindir='${exec_prefix}/bin'
1034 sbindir='${exec_prefix}/sbin'
1035 libexecdir='${exec_prefix}/libexec'
1036 datarootdir='${prefix}/share'
1037 datadir='${datarootdir}'
1038 sysconfdir='${prefix}/etc'
1039 sharedstatedir='${prefix}/com'
1040 localstatedir='${prefix}/var'
1041 includedir='${prefix}/include'
1042 oldincludedir='/usr/include'
1043 docdir='${datarootdir}/doc/${PACKAGE}'
1044 infodir='${datarootdir}/info'
1045 htmldir='${docdir}'
1046 dvidir='${docdir}'
1047 pdfdir='${docdir}'
1048 psdir='${docdir}'
1049 libdir='${exec_prefix}/lib'
1050 localedir='${datarootdir}/locale'
1051 mandir='${datarootdir}/man'
1052
1053 ac_prev=
1054 ac_dashdash=
1055 for ac_option
1056 do
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
1392 Try \`$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
1414 done
1415
1416 if 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; }; }
1420 fi
1421
1422 if 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
1429 fi
1430
1431 # Check all directory arguments for consistency.
1432 for 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
1436 do
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; }; }
1451 done
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.
1456 build=$build_alias
1457 host=$host_alias
1458 target=$target_alias
1459
1460 # FIXME: To remove some day.
1461 if 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
1469 fi
1470
1471 ac_tool_prefix=
1472 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1473
1474 test "$silent" = yes && exec 6>/dev/null
1475
1476
1477 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1478 ac_ls_di=`ls -di .` &&
1479 ac_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; }; }
1482 test "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.
1488 if 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
1518 else
1519 ac_srcdir_defaulted=no
1520 fi
1521 if 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; }; }
1525 fi
1526 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1527 ac_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=.
1532 if test "$ac_abs_confdir" = "$ac_pwd"; then
1533 srcdir=.
1534 fi
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.
1538 case $srcdir in
1539 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1540 esac
1541 for 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}
1546 done
1547
1548 #
1549 # Report the --help message.
1550 #
1551 if 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
1557 Usage: $0 [OPTION]... [VAR=VALUE]...
1558
1559 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1560 VAR=VALUE. See below for descriptions of some of the useful variables.
1561
1562 Defaults for the options are specified in brackets.
1563
1564 Configuration:
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
1575 Installation 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
1581 By default, \`make install' will install all the files in
1582 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1583 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1584 for instance \`--prefix=\$HOME'.
1585
1586 For better control, use the options below.
1587
1588 Fine 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
1612 Program 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
1617 System 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
1622 fi
1623
1624 if test -n "$ac_init_help"; then
1625
1626 cat <<\_ACEOF
1627
1628 Optional 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
1645 Optional 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
1656 --with-udevdir=DIR install udev helpers [EPREFIX/lib/udev]
1657 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
1658 --with-blkid support blkid caching [default=check]
1659 --with-selinux support selinux [default=check]
1660
1661 Some 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
1673 Use these variables to override the choices made by `configure' or to help
1674 it to find libraries and programs with nonstandard names/locations.
1675
1676 _ACEOF
1677 ac_status=$?
1678 fi
1679
1680 if 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
1688 case "$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 ;;
1698 esac
1699 ac_abs_top_builddir=$ac_pwd
1700 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1701 # for backward compatibility:
1702 ac_top_builddir=$ac_top_build_prefix
1703
1704 case $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 ;;
1717 esac
1718 ac_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
1733 fi
1734
1735 test -n "$ac_init_help" && exit $ac_status
1736 if $ac_init_version; then
1737 cat <<\_ACEOF
1738 configure
1739 generated by GNU Autoconf 2.63
1740
1741 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1742 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1743 This configure script is free software; the Free Software Foundation
1744 gives unlimited permission to copy, distribute and modify it.
1745 _ACEOF
1746 exit
1747 fi
1748 cat >config.log <<_ACEOF
1749 This file contains any messages produced by compilers while
1750 running configure, to aid debugging if configure makes a mistake.
1751
1752 It was created by $as_me, which was
1753 generated by GNU Autoconf 2.63. Invocation command line was
1754
1755 $ $0 $@
1756
1757 _ACEOF
1758 exec 5>>config.log
1759 {
1760 cat <<_ASUNAME
1761 ## --------- ##
1762 ## Platform. ##
1763 ## --------- ##
1764
1765 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1766 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1767 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1768 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1769 uname -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
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 for as_dir in $PATH
1786 do
1787 IFS=$as_save_IFS
1788 test -z "$as_dir" && as_dir=.
1789 $as_echo "PATH: $as_dir"
1790 done
1791 IFS=$as_save_IFS
1792
1793 } >&5
1794
1795 cat >&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.
1810 ac_configure_args=
1811 ac_configure_args0=
1812 ac_configure_args1=
1813 ac_must_keep_next=false
1814 for ac_pass in 1 2
1815 do
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
1849 done
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.
1858 trap '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
1953 for ac_signal in 1 2 13 15; do
1954 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1955 done
1956 ac_signal=0
1957
1958 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1959 rm -f -r conftest* confdefs.h
1960
1961 # Predefined preprocessor variables.
1962
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_NAME "$PACKAGE_NAME"
1965 _ACEOF
1966
1967
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1970 _ACEOF
1971
1972
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1975 _ACEOF
1976
1977
1978 cat >>confdefs.h <<_ACEOF
1979 #define PACKAGE_STRING "$PACKAGE_STRING"
1980 _ACEOF
1981
1982
1983 cat >>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.
1990 ac_site_file1=NONE
1991 ac_site_file2=NONE
1992 if test -n "$CONFIG_SITE"; then
1993 ac_site_file1=$CONFIG_SITE
1994 elif test "x$prefix" != xNONE; then
1995 ac_site_file1=$prefix/share/config.site
1996 ac_site_file2=$prefix/etc/config.site
1997 else
1998 ac_site_file1=$ac_default_prefix/share/config.site
1999 ac_site_file2=$ac_default_prefix/etc/config.site
2000 fi
2001 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2002 do
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
2010 done
2011
2012 if 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
2023 else
2024 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2025 $as_echo "$as_me: creating cache $cache_file" >&6;}
2026 >$cache_file
2027 fi
2028
2029 # Check that the precious variables saved in the cache have kept the same
2030 # value.
2031 ac_cache_corrupted=false
2032 for 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
2078 done
2079 if $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; }; }
2087 fi
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105 ac_ext=c
2106 ac_cpp='$CPP $CPPFLAGS'
2107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110
2111
2112 ac_ext=c
2113 ac_cpp='$CPP $CPPFLAGS'
2114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2116 ac_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
2143 cat >>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
2162 cat >>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
2181 cat >>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
2200 cat >>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
2212 cat >>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
2231 cat >>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
2250 cat >>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
2295 cat >>confdefs.h <<_ACEOF
2296 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2297 _ACEOF
2298
2299
2300 cat >>confdefs.h <<_ACEOF
2301 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2302 _ACEOF
2303
2304
2305 cat >>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
2319 ac_aux_dir=
2320 for 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
2334 done
2335 if 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; }; }
2339 fi
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.
2345 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2346 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2347 ac_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; }
2358 if test "${ac_cv_build+set}" = set; then
2359 $as_echo_n "(cached) " >&6
2360 else
2361 ac_build_alias=$build_alias
2362 test "x$ac_build_alias" = x &&
2363 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2364 test "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; }; }
2368 ac_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
2373 fi
2374 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2375 $as_echo "$ac_cv_build" >&6; }
2376 case $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; }; };;
2381 esac
2382 build=$ac_cv_build
2383 ac_save_IFS=$IFS; IFS='-'
2384 set x $ac_cv_build
2385 shift
2386 build_cpu=$1
2387 build_vendor=$2
2388 shift; shift
2389 # Remember, the first character of IFS is used to create $*,
2390 # except with old shells:
2391 build_os=$*
2392 IFS=$ac_save_IFS
2393 case $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; }
2398 if test "${ac_cv_host+set}" = set; then
2399 $as_echo_n "(cached) " >&6
2400 else
2401 if test "x$host_alias" = x; then
2402 ac_cv_host=$ac_cv_build
2403 else
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; }; }
2408 fi
2409
2410 fi
2411 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2412 $as_echo "$ac_cv_host" >&6; }
2413 case $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; }; };;
2418 esac
2419 host=$ac_cv_host
2420 ac_save_IFS=$IFS; IFS='-'
2421 set x $ac_cv_host
2422 shift
2423 host_cpu=$1
2424 host_vendor=$2
2425 shift; shift
2426 # Remember, the first character of IFS is used to create $*,
2427 # except with old shells:
2428 host_os=$*
2429 IFS=$ac_save_IFS
2430 case $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; }
2435 if test "${ac_cv_target+set}" = set; then
2436 $as_echo_n "(cached) " >&6
2437 else
2438 if test "x$target_alias" = x; then
2439 ac_cv_target=$ac_cv_host
2440 else
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; }; }
2445 fi
2446
2447 fi
2448 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2449 $as_echo "$ac_cv_target" >&6; }
2450 case $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; }; };;
2455 esac
2456 target=$ac_cv_target
2457 ac_save_IFS=$IFS; IFS='-'
2458 set x $ac_cv_target
2459 shift
2460 target_cpu=$1
2461 target_vendor=$2
2462 shift; shift
2463 # Remember, the first character of IFS is used to create $*,
2464 # except with old shells:
2465 target_os=$*
2466 IFS=$ac_save_IFS
2467 case $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.
2472 test -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.
2480 if test "${enable_maintainer_mode+set}" = set; then
2481 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2482 else
2483 USE_MAINTAINER_MODE=no
2484 fi
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='#'
2491 else
2492 MAINTAINER_MODE_TRUE='#'
2493 MAINTAINER_MODE_FALSE=
2494 fi
2495
2496 MAINT=$MAINTAINER_MODE_TRUE
2497
2498
2499 # Check whether --enable-silent-rules was given.
2500 if test "${enable_silent_rules+set}" = set; then
2501 enableval=$enable_silent_rules;
2502 fi
2503
2504 case $enable_silent_rules in
2505 yes) AM_DEFAULT_VERBOSITY=0;;
2506 no) AM_DEFAULT_VERBOSITY=1;;
2507 *) AM_DEFAULT_VERBOSITY=1;;
2508 esac
2509 AM_BACKSLASH='\'
2510
2511 am__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; }
2529 if test -z "$INSTALL"; then
2530 if test "${ac_cv_path_install+set}" = set; then
2531 $as_echo_n "(cached) " >&6
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 # Account for people who put trailing slashes in PATH elements.
2539 case $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 ;;
2577 esac
2578
2579 done
2580 IFS=$as_save_IFS
2581
2582 rm -rf conftest.one conftest.two conftest.dir
2583
2584 fi
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
2594 fi
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.
2600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2601
2602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2603
2604 test -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
2609 sleep 1
2610 echo timestamp > conftest.file
2611 # Reject unsafe characters in $srcdir or the absolute working directory
2612 # name. Accept space and tab only in the latter.
2613 am_lf='
2614 '
2615 case `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; }; };;
2620 esac
2621 case $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; }; };;
2626 esac
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).
2633 if (
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
2648 alias in your environment" >&5
2649 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2650 alias in your environment" >&2;}
2651 { (exit 1); exit 1; }; }
2652 fi
2653
2654 test "$2" = conftest.file
2655 )
2656 then
2657 # Ok.
2658 :
2659 else
2660 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2661 Check your system clock" >&5
2662 $as_echo "$as_me: error: newly created file is older than distributed files!
2663 Check your system clock" >&2;}
2664 { (exit 1); exit 1; }; }
2665 fi
2666 { $as_echo "$as_me:$LINENO: result: yes" >&5
2667 $as_echo "yes" >&6; }
2668 test "$program_prefix" != NONE &&
2669 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2670 # Use a double $ so make ignores it.
2671 test "$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.
2675 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2676 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2677
2678 # expand $ac_aux_dir to an absolute path
2679 am_aux_dir=`cd $ac_aux_dir && pwd`
2680
2681 if 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
2688 fi
2689 # Use eval to expand $SHELL
2690 if eval "$MISSING --run true"; then
2691 am_missing_run="$MISSING --run "
2692 else
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;}
2696 fi
2697
2698 if 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
2705 fi
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.
2711 if 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.
2714 set 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; }
2717 if test "${ac_cv_prog_STRIP+set}" = set; then
2718 $as_echo_n "(cached) " >&6
2719 else
2720 if test -n "$STRIP"; then
2721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
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
2734 done
2735 done
2736 IFS=$as_save_IFS
2737
2738 fi
2739 fi
2740 STRIP=$ac_cv_prog_STRIP
2741 if test -n "$STRIP"; then
2742 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2743 $as_echo "$STRIP" >&6; }
2744 else
2745 { $as_echo "$as_me:$LINENO: result: no" >&5
2746 $as_echo "no" >&6; }
2747 fi
2748
2749
2750 fi
2751 if 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.
2754 set 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; }
2757 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2758 $as_echo_n "(cached) " >&6
2759 else
2760 if test -n "$ac_ct_STRIP"; then
2761 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
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
2774 done
2775 done
2776 IFS=$as_save_IFS
2777
2778 fi
2779 fi
2780 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2781 if test -n "$ac_ct_STRIP"; then
2782 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2783 $as_echo "$ac_ct_STRIP" >&6; }
2784 else
2785 { $as_echo "$as_me:$LINENO: result: no" >&5
2786 $as_echo "no" >&6; }
2787 fi
2788
2789 if test "x$ac_ct_STRIP" = x; then
2790 STRIP=":"
2791 else
2792 case $cross_compiling:$ac_tool_warned in
2793 yes:)
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;}
2796 ac_tool_warned=yes ;;
2797 esac
2798 STRIP=$ac_ct_STRIP
2799 fi
2800 else
2801 STRIP="$ac_cv_prog_STRIP"
2802 fi
2803
2804 fi
2805 INSTALL_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; }
2809 if test -z "$MKDIR_P"; then
2810 if test "${ac_cv_path_mkdir+set}" = set; then
2811 $as_echo_n "(cached) " >&6
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2815 do
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
2830 done
2831 IFS=$as_save_IFS
2832
2833 fi
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
2845 fi
2846 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2847 $as_echo "$MKDIR_P" >&6; }
2848
2849 mkdir_p="$MKDIR_P"
2850 case $mkdir_p in
2851 [\\/$]* | ?:[\\/]*) ;;
2852 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2853 esac
2854
2855 for ac_prog in gawk mawk nawk awk
2856 do
2857 # Extract the first word of "$ac_prog", so it can be a program name with args.
2858 set 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; }
2861 if test "${ac_cv_prog_AWK+set}" = set; then
2862 $as_echo_n "(cached) " >&6
2863 else
2864 if test -n "$AWK"; then
2865 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
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
2878 done
2879 done
2880 IFS=$as_save_IFS
2881
2882 fi
2883 fi
2884 AWK=$ac_cv_prog_AWK
2885 if test -n "$AWK"; then
2886 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2887 $as_echo "$AWK" >&6; }
2888 else
2889 { $as_echo "$as_me:$LINENO: result: no" >&5
2890 $as_echo "no" >&6; }
2891 fi
2892
2893
2894 test -n "$AWK" && break
2895 done
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; }
2899 set x ${MAKE-make}
2900 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2901 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2902 $as_echo_n "(cached) " >&6
2903 else
2904 cat >conftest.make <<\_ACEOF
2905 SHELL = /bin/sh
2906 all:
2907 @echo '@@@%%%=$(MAKE)=@@@%%%'
2908 _ACEOF
2909 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2910 case `${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;;
2915 esac
2916 rm -f conftest.make
2917 fi
2918 if 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=
2922 else
2923 { $as_echo "$as_me:$LINENO: result: no" >&5
2924 $as_echo "no" >&6; }
2925 SET_MAKE="MAKE=${MAKE-make}"
2926 fi
2927
2928 rm -rf .tst 2>/dev/null
2929 mkdir .tst 2>/dev/null
2930 if test -d .tst; then
2931 am__leading_dot=.
2932 else
2933 am__leading_dot=_
2934 fi
2935 rmdir .tst 2>/dev/null
2936
2937 if 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
2947 fi
2948
2949 # test whether we have cygpath
2950 if 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
2956 fi
2957
2958
2959 # Define the identity of the package.
2960 PACKAGE=$ZFS_META_NAME
2961 VERSION=$ZFS_META_VERSION
2962
2963
2964 cat >>confdefs.h <<_ACEOF
2965 #define PACKAGE "$PACKAGE"
2966 _ACEOF
2967
2968
2969 cat >>confdefs.h <<_ACEOF
2970 #define VERSION "$VERSION"
2971 _ACEOF
2972
2973 # Some tools Automake needs.
2974
2975 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2976
2977
2978 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2979
2980
2981 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2982
2983
2984 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2985
2986
2987 MAKEINFO=${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
2993 AMTAR=${AMTAR-"${am_missing_run}tar"}
2994
2995 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2996
2997
2998
2999
3000
3001 ac_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; }
3020 if test -z "$INSTALL"; then
3021 if test "${ac_cv_path_install+set}" = set; then
3022 $as_echo_n "(cached) " >&6
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 # Account for people who put trailing slashes in PATH elements.
3030 case $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 ;;
3068 esac
3069
3070 done
3071 IFS=$as_save_IFS
3072
3073 rm -rf conftest.one conftest.two conftest.dir
3074
3075 fi
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
3085 fi
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.
3091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3092
3093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3094
3095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3096
3097 ac_ext=c
3098 ac_cpp='$CPP $CPPFLAGS'
3099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102 if 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.
3104 set 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; }
3107 if test "${ac_cv_prog_CC+set}" = set; then
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
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
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 CC=$ac_cv_prog_CC
3131 if test -n "$CC"; then
3132 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3134 else
3135 { $as_echo "$as_me:$LINENO: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139
3140 fi
3141 if 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.
3144 set 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; }
3147 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3148 $as_echo_n "(cached) " >&6
3149 else
3150 if test -n "$ac_ct_CC"; then
3151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
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
3164 done
3165 done
3166 IFS=$as_save_IFS
3167
3168 fi
3169 fi
3170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3171 if test -n "$ac_ct_CC"; then
3172 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3173 $as_echo "$ac_ct_CC" >&6; }
3174 else
3175 { $as_echo "$as_me:$LINENO: result: no" >&5
3176 $as_echo "no" >&6; }
3177 fi
3178
3179 if test "x$ac_ct_CC" = x; then
3180 CC=""
3181 else
3182 case $cross_compiling:$ac_tool_warned in
3183 yes:)
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;}
3186 ac_tool_warned=yes ;;
3187 esac
3188 CC=$ac_ct_CC
3189 fi
3190 else
3191 CC="$ac_cv_prog_CC"
3192 fi
3193
3194 if 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.
3197 set 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; }
3200 if test "${ac_cv_prog_CC+set}" = set; then
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
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
3217 done
3218 done
3219 IFS=$as_save_IFS
3220
3221 fi
3222 fi
3223 CC=$ac_cv_prog_CC
3224 if test -n "$CC"; then
3225 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3226 $as_echo "$CC" >&6; }
3227 else
3228 { $as_echo "$as_me:$LINENO: result: no" >&5
3229 $as_echo "no" >&6; }
3230 fi
3231
3232
3233 fi
3234 fi
3235 if test -z "$CC"; then
3236 # Extract the first word of "cc", so it can be a program name with args.
3237 set 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; }
3240 if test "${ac_cv_prog_CC+set}" = set; then
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 else
3246 ac_prog_rejected=no
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
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
3262 done
3263 done
3264 IFS=$as_save_IFS
3265
3266 if 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
3277 fi
3278 fi
3279 fi
3280 CC=$ac_cv_prog_CC
3281 if test -n "$CC"; then
3282 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3283 $as_echo "$CC" >&6; }
3284 else
3285 { $as_echo "$as_me:$LINENO: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fi
3288
3289
3290 fi
3291 if 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.
3296 set 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; }
3299 if test "${ac_cv_prog_CC+set}" = set; then
3300 $as_echo_n "(cached) " >&6
3301 else
3302 if test -n "$CC"; then
3303 ac_cv_prog_CC="$CC" # Let the user override the test.
3304 else
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
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
3316 done
3317 done
3318 IFS=$as_save_IFS
3319
3320 fi
3321 fi
3322 CC=$ac_cv_prog_CC
3323 if test -n "$CC"; then
3324 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3325 $as_echo "$CC" >&6; }
3326 else
3327 { $as_echo "$as_me:$LINENO: result: no" >&5
3328 $as_echo "no" >&6; }
3329 fi
3330
3331
3332 test -n "$CC" && break
3333 done
3334 fi
3335 if test -z "$CC"; then
3336 ac_ct_CC=$CC
3337 for ac_prog in cl.exe
3338 do
3339 # Extract the first word of "$ac_prog", so it can be a program name with args.
3340 set 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; }
3343 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3344 $as_echo_n "(cached) " >&6
3345 else
3346 if test -n "$ac_ct_CC"; then
3347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356 ac_cv_prog_ac_ct_CC="$ac_prog"
3357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360 done
3361 done
3362 IFS=$as_save_IFS
3363
3364 fi
3365 fi
3366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3367 if test -n "$ac_ct_CC"; then
3368 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3369 $as_echo "$ac_ct_CC" >&6; }
3370 else
3371 { $as_echo "$as_me:$LINENO: result: no" >&5
3372 $as_echo "no" >&6; }
3373 fi
3374
3375
3376 test -n "$ac_ct_CC" && break
3377 done
3378
3379 if test "x$ac_ct_CC" = x; then
3380 CC=""
3381 else
3382 case $cross_compiling:$ac_tool_warned in
3383 yes:)
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;}
3386 ac_tool_warned=yes ;;
3387 esac
3388 CC=$ac_ct_CC
3389 fi
3390 fi
3391
3392 fi
3393
3394
3395 test -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
3398 See \`config.log' for more details." >&5
3399 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3400 See \`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
3405 set X $ac_compile
3406 ac_compiler=$2
3407 { (ac_try="$ac_compiler --version >&5"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval 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"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval 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"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval 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
3441 cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h. */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447
3448 int
3449 main ()
3450 {
3451
3452 ;
3453 return 0;
3454 }
3455 _ACEOF
3456 ac_clean_files_save=$ac_clean_files
3457 ac_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; }
3463 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3464
3465 # The possible output files:
3466 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3467
3468 ac_rmfiles=
3469 for ac_file in $ac_files
3470 do
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
3475 done
3476 rm -f $ac_rmfiles
3477
3478 if { (ac_try="$ac_link_default"
3479 case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval 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.
3494 for ac_file in $ac_files ''
3495 do
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
3518 done
3519 test "$ac_cv_exeext" = no && ac_cv_exeext=
3520
3521 else
3522 ac_file=''
3523 fi
3524
3525 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3526 $as_echo "$ac_file" >&6; }
3527 if test -z "$ac_file"; then
3528 $as_echo "$as_me: failed program was:" >&5
3529 sed '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
3534 See \`config.log' for more details." >&5
3535 $as_echo "$as_me: error: C compiler cannot create executables
3536 See \`config.log' for more details." >&2;}
3537 { (exit 77); exit 77; }; }; }
3538 fi
3539
3540 ac_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.
3548 if 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;;
3553 esac
3554 eval 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.
3568 If you meant to cross compile, use \`--host'.
3569 See \`config.log' for more details." >&5
3570 $as_echo "$as_me: error: cannot run C compiled programs.
3571 If you meant to cross compile, use \`--host'.
3572 See \`config.log' for more details." >&2;}
3573 { (exit 1); exit 1; }; }; }
3574 fi
3575 fi
3576 fi
3577 { $as_echo "$as_me:$LINENO: result: yes" >&5
3578 $as_echo "yes" >&6; }
3579
3580 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3581 ac_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; }
3591 if { (ac_try="$ac_link"
3592 case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval 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'.
3606 for 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
3614 done
3615 else
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
3619 See \`config.log' for more details." >&5
3620 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3621 See \`config.log' for more details." >&2;}
3622 { (exit 1); exit 1; }; }; }
3623 fi
3624
3625 rm -f conftest$ac_cv_exeext
3626 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3627 $as_echo "$ac_cv_exeext" >&6; }
3628
3629 rm -f conftest.$ac_ext
3630 EXEEXT=$ac_cv_exeext
3631 ac_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; }
3634 if test "${ac_cv_objext+set}" = set; then
3635 $as_echo_n "(cached) " >&6
3636 else
3637 cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643
3644 int
3645 main ()
3646 {
3647
3648 ;
3649 return 0;
3650 }
3651 _ACEOF
3652 rm -f conftest.o conftest.obj
3653 if { (ac_try="$ac_compile"
3654 case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657 esac
3658 eval 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
3671 done
3672 else
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed '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
3679 See \`config.log' for more details." >&5
3680 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3681 See \`config.log' for more details." >&2;}
3682 { (exit 1); exit 1; }; }; }
3683 fi
3684
3685 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3686 fi
3687 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3688 $as_echo "$ac_cv_objext" >&6; }
3689 OBJEXT=$ac_cv_objext
3690 ac_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; }
3693 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3694 $as_echo_n "(cached) " >&6
3695 else
3696 cat >conftest.$ac_ext <<_ACEOF
3697 /* confdefs.h. */
3698 _ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3702
3703 int
3704 main ()
3705 {
3706 #ifndef __GNUC__
3707 choke me
3708 #endif
3709
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 rm -f conftest.$ac_objext
3715 if { (ac_try="$ac_compile"
3716 case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval 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
3733 else
3734 $as_echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 ac_compiler_gnu=no
3738 fi
3739
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3742
3743 fi
3744 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3745 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3746 if test $ac_compiler_gnu = yes; then
3747 GCC=yes
3748 else
3749 GCC=
3750 fi
3751 ac_test_CFLAGS=${CFLAGS+set}
3752 ac_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; }
3755 if test "${ac_cv_prog_cc_g+set}" = set; then
3756 $as_echo_n "(cached) " >&6
3757 else
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
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3768
3769 int
3770 main ()
3771 {
3772
3773 ;
3774 return 0;
3775 }
3776 _ACEOF
3777 rm -f conftest.$ac_objext
3778 if { (ac_try="$ac_compile"
3779 case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782 esac
3783 eval 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
3796 else
3797 $as_echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3799
3800 CFLAGS=""
3801 cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h. */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3807
3808 int
3809 main ()
3810 {
3811
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval 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 :
3835 else
3836 $as_echo "$as_me: failed program was:" >&5
3837 sed '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
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847
3848 int
3849 main ()
3850 {
3851
3852 ;
3853 return 0;
3854 }
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (ac_try="$ac_compile"
3858 case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval 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
3875 else
3876 $as_echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3878
3879
3880 fi
3881
3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 fi
3884
3885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886 fi
3887
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 ac_c_werror_flag=$ac_save_c_werror_flag
3890 fi
3891 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3892 $as_echo "$ac_cv_prog_cc_g" >&6; }
3893 if test "$ac_test_CFLAGS" = set; then
3894 CFLAGS=$ac_save_CFLAGS
3895 elif 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
3901 else
3902 if test "$GCC" = yes; then
3903 CFLAGS="-O2"
3904 else
3905 CFLAGS=
3906 fi
3907 fi
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; }
3910 if test "${ac_cv_prog_cc_c89+set}" = set; then
3911 $as_echo_n "(cached) " >&6
3912 else
3913 ac_cv_prog_cc_c89=no
3914 ac_save_CC=$CC
3915 cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h. */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>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. */
3926 struct buf { int x; };
3927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3928 static char *e (p, i)
3929 char **p;
3930 int i;
3931 {
3932 return p[i];
3933 }
3934 static 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. */
3951 int 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'
3956 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3957
3958 int test (int i, double x);
3959 struct s1 {int (*f) (int a);};
3960 struct s2 {int (*f) (double a);};
3961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3962 int argc;
3963 char **argv;
3964 int
3965 main ()
3966 {
3967 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3968 ;
3969 return 0;
3970 }
3971 _ACEOF
3972 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3974 do
3975 CC="$ac_save_CC $ac_arg"
3976 rm -f conftest.$ac_objext
3977 if { (ac_try="$ac_compile"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval 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
3995 else
3996 $as_echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
3998
3999
4000 fi
4001
4002 rm -f core conftest.err conftest.$ac_objext
4003 test "x$ac_cv_prog_cc_c89" != "xno" && break
4004 done
4005 rm -f conftest.$ac_ext
4006 CC=$ac_save_CC
4007
4008 fi
4009 # AC_CACHE_VAL
4010 case "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; } ;;
4021 esac
4022
4023
4024 ac_ext=c
4025 ac_cpp='$CPP $CPPFLAGS'
4026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029 DEPDIR="${am__leading_dot}deps"
4030
4031 ac_config_commands="$ac_config_commands depfiles"
4032
4033
4034 am_make=${MAKE-make}
4035 cat > confinc << 'END'
4036 am__doit:
4037 @echo this is the am__doit target
4038 .PHONY: am__doit
4039 END
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; }
4043 am__include="#"
4044 am__quote=
4045 _am_result=none
4046 # First try GNU make style include.
4047 echo "include confinc" > confmf
4048 # Ignore all kinds of additional output from `make'.
4049 case `$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 ;;
4055 esac
4056 # Now try BSD make style include.
4057 if 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
4066 fi
4067
4068
4069 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4070 $as_echo "$_am_result" >&6; }
4071 rm -f confinc confmf
4072
4073 # Check whether --enable-dependency-tracking was given.
4074 if test "${enable_dependency_tracking+set}" = set; then
4075 enableval=$enable_dependency_tracking;
4076 fi
4077
4078 if test "x$enable_dependency_tracking" != xno; then
4079 am_depcomp="$ac_aux_dir/depcomp"
4080 AMDEPBACKSLASH='\'
4081 fi
4082 if test "x$enable_dependency_tracking" != xno; then
4083 AMDEP_TRUE=
4084 AMDEP_FALSE='#'
4085 else
4086 AMDEP_TRUE='#'
4087 AMDEP_FALSE=
4088 fi
4089
4090
4091
4092 depcc="$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; }
4096 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4097 $as_echo_n "(cached) " >&6
4098 else
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
4199 else
4200 am_cv_CC_dependencies_compiler_type=none
4201 fi
4202
4203 fi
4204 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4205 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4206 CCDEPMODE=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='#'
4213 else
4214 am__fastdepCC_TRUE='#'
4215 am__fastdepCC_FALSE=
4216 fi
4217
4218
4219 case `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;} ;;
4223 esac
4224
4225
4226
4227 macro_version='2.2.6b'
4228 macro_revision='1.3017'
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242 ltmain="$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; }
4246 if test "${ac_cv_path_SED+set}" = set; then
4247 $as_echo_n "(cached) " >&6
4248 else
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
4259 for as_dir in $PATH
4260 do
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
4269 case `"$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;;
4293 esac
4294
4295 $ac_path_SED_found && break 3
4296 done
4297 done
4298 done
4299 IFS=$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
4305 else
4306 ac_cv_path_SED=$SED
4307 fi
4308
4309 fi
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
4315 test -z "$SED" && SED=sed
4316 Xsed="$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; }
4330 if test "${ac_cv_path_GREP+set}" = set; then
4331 $as_echo_n "(cached) " >&6
4332 else
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
4337 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4338 do
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
4347 case `"$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;;
4371 esac
4372
4373 $ac_path_GREP_found && break 3
4374 done
4375 done
4376 done
4377 IFS=$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
4383 else
4384 ac_cv_path_GREP=$GREP
4385 fi
4386
4387 fi
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; }
4395 if test "${ac_cv_path_EGREP+set}" = set; then
4396 $as_echo_n "(cached) " >&6
4397 else
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
4405 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4406 do
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
4415 case `"$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;;
4439 esac
4440
4441 $ac_path_EGREP_found && break 3
4442 done
4443 done
4444 done
4445 IFS=$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
4451 else
4452 ac_cv_path_EGREP=$EGREP
4453 fi
4454
4455 fi
4456 fi
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; }
4464 if test "${ac_cv_path_FGREP+set}" = set; then
4465 $as_echo_n "(cached) " >&6
4466 else
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
4474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4475 do
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
4484 case `"$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;;
4508 esac
4509
4510 $ac_path_FGREP_found && break 3
4511 done
4512 done
4513 done
4514 IFS=$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
4520 else
4521 ac_cv_path_FGREP=$FGREP
4522 fi
4523
4524 fi
4525 fi
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
4531 test -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.
4552 if test "${with_gnu_ld+set}" = set; then
4553 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4554 else
4555 with_gnu_ld=no
4556 fi
4557
4558 ac_prog=ld
4559 if 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
4590 elif 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; }
4593 else
4594 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4595 $as_echo_n "checking for non-GNU ld... " >&6; }
4596 fi
4597 if test "${lt_cv_path_LD+set}" = set; then
4598 $as_echo_n "(cached) " >&6
4599 else
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"
4621 else
4622 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4623 fi
4624 fi
4625
4626 LD="$lt_cv_path_LD"
4627 if test -n "$LD"; then
4628 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4629 $as_echo "$LD" >&6; }
4630 else
4631 { $as_echo "$as_me:$LINENO: result: no" >&5
4632 $as_echo "no" >&6; }
4633 fi
4634 test -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; }
4639 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4640 $as_echo_n "(cached) " >&6
4641 else
4642 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4643 case `$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 ;;
4650 esac
4651 fi
4652 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4653 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4654 with_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; }
4666 if test "${lt_cv_path_NM+set}" = set; then
4667 $as_echo_n "(cached) " >&6
4668 else
4669 if test -n "$NM"; then
4670 # Let the user override the test.
4671 lt_cv_path_NM="$NM"
4672 else
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}
4711 fi
4712 fi
4713 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4714 $as_echo "$lt_cv_path_NM" >&6; }
4715 if test "$lt_cv_path_NM" != "no"; then
4716 NM="$lt_cv_path_NM"
4717 else
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.
4723 set 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; }
4726 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4727 $as_echo_n "(cached) " >&6
4728 else
4729 if test -n "$DUMPBIN"; then
4730 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
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
4743 done
4744 done
4745 IFS=$as_save_IFS
4746
4747 fi
4748 fi
4749 DUMPBIN=$ac_cv_prog_DUMPBIN
4750 if test -n "$DUMPBIN"; then
4751 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4752 $as_echo "$DUMPBIN" >&6; }
4753 else
4754 { $as_echo "$as_me:$LINENO: result: no" >&5
4755 $as_echo "no" >&6; }
4756 fi
4757
4758
4759 test -n "$DUMPBIN" && break
4760 done
4761 fi
4762 if test -z "$DUMPBIN"; then
4763 ac_ct_DUMPBIN=$DUMPBIN
4764 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4765 do
4766 # Extract the first word of "$ac_prog", so it can be a program name with args.
4767 set 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; }
4770 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4771 $as_echo_n "(cached) " >&6
4772 else
4773 if test -n "$ac_ct_DUMPBIN"; then
4774 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4775 else
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
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
4787 done
4788 done
4789 IFS=$as_save_IFS
4790
4791 fi
4792 fi
4793 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4794 if test -n "$ac_ct_DUMPBIN"; then
4795 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4796 $as_echo "$ac_ct_DUMPBIN" >&6; }
4797 else
4798 { $as_echo "$as_me:$LINENO: result: no" >&5
4799 $as_echo "no" >&6; }
4800 fi
4801
4802
4803 test -n "$ac_ct_DUMPBIN" && break
4804 done
4805
4806 if test "x$ac_ct_DUMPBIN" = x; then
4807 DUMPBIN=":"
4808 else
4809 case $cross_compiling:$ac_tool_warned in
4810 yes:)
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;}
4813 ac_tool_warned=yes ;;
4814 esac
4815 DUMPBIN=$ac_ct_DUMPBIN
4816 fi
4817 fi
4818
4819
4820 if test "$DUMPBIN" != ":"; then
4821 NM="$DUMPBIN"
4822 fi
4823 fi
4824 test -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; }
4833 if test "${lt_cv_nm_interface+set}" = set; then
4834 $as_echo_n "(cached) " >&6
4835 else
4836 lt_cv_nm_interface="BSD nm"
4837 echo "int some_variable = 0;" > conftest.$ac_ext
4838 (eval echo "\"\$as_me:4838: $ac_compile\"" >&5)
4839 (eval "$ac_compile" 2>conftest.err)
4840 cat conftest.err >&5
4841 (eval echo "\"\$as_me:4841: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4842 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4843 cat conftest.err >&5
4844 (eval echo "\"\$as_me:4844: output\"" >&5)
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*
4850 fi
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; }
4856 LN_S=$as_ln_s
4857 if test "$LN_S" = "ln -s"; then
4858 { $as_echo "$as_me:$LINENO: result: yes" >&5
4859 $as_echo "yes" >&6; }
4860 else
4861 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4862 $as_echo "no, using $LN_S" >&6; }
4863 fi
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; }
4868 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4869 $as_echo_n "(cached) " >&6
4870 else
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
4983 fi
4984
4985 if 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; }
4988 else
4989 { $as_echo "$as_me:$LINENO: result: none" >&5
4990 $as_echo "none" >&6; }
4991 fi
4992 max_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
5006 xsi_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; }
5019 lt_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
5027 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5028 lt_unset=unset
5029 else
5030 lt_unset=false
5031 fi
5032
5033
5034
5035
5036
5037 # test EBCDIC or ASCII
5038 case `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 ;;
5048 esac
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; }
5060 if test "${lt_cv_ld_reload_flag+set}" = set; then
5061 $as_echo_n "(cached) " >&6
5062 else
5063 lt_cv_ld_reload_flag='-r'
5064 fi
5065 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5066 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5067 reload_flag=$lt_cv_ld_reload_flag
5068 case $reload_flag in
5069 "" | " "*) ;;
5070 *) reload_flag=" $reload_flag" ;;
5071 esac
5072 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5073 case $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 ;;
5081 esac
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091 if 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.
5093 set 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; }
5096 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5097 $as_echo_n "(cached) " >&6
5098 else
5099 if test -n "$OBJDUMP"; then
5100 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5101 else
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5104 do
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
5113 done
5114 done
5115 IFS=$as_save_IFS
5116
5117 fi
5118 fi
5119 OBJDUMP=$ac_cv_prog_OBJDUMP
5120 if test -n "$OBJDUMP"; then
5121 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5122 $as_echo "$OBJDUMP" >&6; }
5123 else
5124 { $as_echo "$as_me:$LINENO: result: no" >&5
5125 $as_echo "no" >&6; }
5126 fi
5127
5128
5129 fi
5130 if 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.
5133 set 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; }
5136 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -n "$ac_ct_OBJDUMP"; then
5140 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
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
5153 done
5154 done
5155 IFS=$as_save_IFS
5156
5157 fi
5158 fi
5159 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5160 if test -n "$ac_ct_OBJDUMP"; then
5161 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5162 $as_echo "$ac_ct_OBJDUMP" >&6; }
5163 else
5164 { $as_echo "$as_me:$LINENO: result: no" >&5
5165 $as_echo "no" >&6; }
5166 fi
5167
5168 if test "x$ac_ct_OBJDUMP" = x; then
5169 OBJDUMP="false"
5170 else
5171 case $cross_compiling:$ac_tool_warned in
5172 yes:)
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;}
5175 ac_tool_warned=yes ;;
5176 esac
5177 OBJDUMP=$ac_ct_OBJDUMP
5178 fi
5179 else
5180 OBJDUMP="$ac_cv_prog_OBJDUMP"
5181 fi
5182
5183 test -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; }
5195 if test "${lt_cv_deplibs_check_method+set}" = set; then
5196 $as_echo_n "(cached) " >&6
5197 else
5198 lt_cv_file_magic_cmd='$MAGIC_CMD'
5199 lt_cv_file_magic_test_file=
5200 lt_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
5212 case $host_os in
5213 aix[4-9]*)
5214 lt_cv_deplibs_check_method=pass_all
5215 ;;
5216
5217 beos*)
5218 lt_cv_deplibs_check_method=pass_all
5219 ;;
5220
5221 bsdi[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
5227 cygwin*)
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
5233 mingw* | 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
5246 cegcc)
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
5252 darwin* | rhapsody*)
5253 lt_cv_deplibs_check_method=pass_all
5254 ;;
5255
5256 freebsd* | 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
5272 gnu*)
5273 lt_cv_deplibs_check_method=pass_all
5274 ;;
5275
5276 hpux10.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
5294 interix[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
5299 irix5* | 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.
5310 linux* | k*bsd*-gnu)
5311 lt_cv_deplibs_check_method=pass_all
5312 ;;
5313
5314 netbsd*)
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
5322 newos6*)
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
5332 openbsd*)
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
5340 osf3* | osf4* | osf5*)
5341 lt_cv_deplibs_check_method=pass_all
5342 ;;
5343
5344 rdos*)
5345 lt_cv_deplibs_check_method=pass_all
5346 ;;
5347
5348 solaris*)
5349 lt_cv_deplibs_check_method=pass_all
5350 ;;
5351
5352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5353 lt_cv_deplibs_check_method=pass_all
5354 ;;
5355
5356 sysv4 | 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
5383 tpf*)
5384 lt_cv_deplibs_check_method=pass_all
5385 ;;
5386 esac
5387
5388 fi
5389 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5390 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5391 file_magic_cmd=$lt_cv_file_magic_cmd
5392 deplibs_check_method=$lt_cv_deplibs_check_method
5393 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406 if 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.
5408 set 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; }
5411 if test "${ac_cv_prog_AR+set}" = set; then
5412 $as_echo_n "(cached) " >&6
5413 else
5414 if test -n "$AR"; then
5415 ac_cv_prog_AR="$AR" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5419 do
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
5428 done
5429 done
5430 IFS=$as_save_IFS
5431
5432 fi
5433 fi
5434 AR=$ac_cv_prog_AR
5435 if test -n "$AR"; then
5436 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5437 $as_echo "$AR" >&6; }
5438 else
5439 { $as_echo "$as_me:$LINENO: result: no" >&5
5440 $as_echo "no" >&6; }
5441 fi
5442
5443
5444 fi
5445 if 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.
5448 set 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; }
5451 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$ac_ct_AR"; then
5455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
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
5468 done
5469 done
5470 IFS=$as_save_IFS
5471
5472 fi
5473 fi
5474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5475 if test -n "$ac_ct_AR"; then
5476 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5477 $as_echo "$ac_ct_AR" >&6; }
5478 else
5479 { $as_echo "$as_me:$LINENO: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482
5483 if test "x$ac_ct_AR" = x; then
5484 AR="false"
5485 else
5486 case $cross_compiling:$ac_tool_warned in
5487 yes:)
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;}
5490 ac_tool_warned=yes ;;
5491 esac
5492 AR=$ac_ct_AR
5493 fi
5494 else
5495 AR="$ac_cv_prog_AR"
5496 fi
5497
5498 test -z "$AR" && AR=ar
5499 test -z "$AR_FLAGS" && AR_FLAGS=cru
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511 if 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.
5513 set 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; }
5516 if test "${ac_cv_prog_STRIP+set}" = set; then
5517 $as_echo_n "(cached) " >&6
5518 else
5519 if test -n "$STRIP"; then
5520 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5521 else
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
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
5533 done
5534 done
5535 IFS=$as_save_IFS
5536
5537 fi
5538 fi
5539 STRIP=$ac_cv_prog_STRIP
5540 if test -n "$STRIP"; then
5541 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5542 $as_echo "$STRIP" >&6; }
5543 else
5544 { $as_echo "$as_me:$LINENO: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547
5548
5549 fi
5550 if 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.
5553 set 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; }
5556 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5557 $as_echo_n "(cached) " >&6
5558 else
5559 if test -n "$ac_ct_STRIP"; then
5560 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
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
5573 done
5574 done
5575 IFS=$as_save_IFS
5576
5577 fi
5578 fi
5579 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5580 if test -n "$ac_ct_STRIP"; then
5581 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5582 $as_echo "$ac_ct_STRIP" >&6; }
5583 else
5584 { $as_echo "$as_me:$LINENO: result: no" >&5
5585 $as_echo "no" >&6; }
5586 fi
5587
5588 if test "x$ac_ct_STRIP" = x; then
5589 STRIP=":"
5590 else
5591 case $cross_compiling:$ac_tool_warned in
5592 yes:)
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;}
5595 ac_tool_warned=yes ;;
5596 esac
5597 STRIP=$ac_ct_STRIP
5598 fi
5599 else
5600 STRIP="$ac_cv_prog_STRIP"
5601 fi
5602
5603 test -z "$STRIP" && STRIP=:
5604
5605
5606
5607
5608
5609
5610 if 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.
5612 set 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; }
5615 if test "${ac_cv_prog_RANLIB+set}" = set; then
5616 $as_echo_n "(cached) " >&6
5617 else
5618 if test -n "$RANLIB"; then
5619 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5620 else
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
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
5632 done
5633 done
5634 IFS=$as_save_IFS
5635
5636 fi
5637 fi
5638 RANLIB=$ac_cv_prog_RANLIB
5639 if test -n "$RANLIB"; then
5640 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5641 $as_echo "$RANLIB" >&6; }
5642 else
5643 { $as_echo "$as_me:$LINENO: result: no" >&5
5644 $as_echo "no" >&6; }
5645 fi
5646
5647
5648 fi
5649 if 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.
5652 set 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; }
5655 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$ac_ct_RANLIB"; then
5659 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
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
5672 done
5673 done
5674 IFS=$as_save_IFS
5675
5676 fi
5677 fi
5678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5679 if test -n "$ac_ct_RANLIB"; then
5680 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5681 $as_echo "$ac_ct_RANLIB" >&6; }
5682 else
5683 { $as_echo "$as_me:$LINENO: result: no" >&5
5684 $as_echo "no" >&6; }
5685 fi
5686
5687 if test "x$ac_ct_RANLIB" = x; then
5688 RANLIB=":"
5689 else
5690 case $cross_compiling:$ac_tool_warned in
5691 yes:)
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;}
5694 ac_tool_warned=yes ;;
5695 esac
5696 RANLIB=$ac_ct_RANLIB
5697 fi
5698 else
5699 RANLIB="$ac_cv_prog_RANLIB"
5700 fi
5701
5702 test -z "$RANLIB" && RANLIB=:
5703
5704
5705
5706
5707
5708
5709 # Determine commands to create old-style static archives.
5710 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5711 old_postinstall_cmds='chmod 644 $oldlib'
5712 old_postuninstall_cmds=
5713
5714 if 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"
5724 fi
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.
5760 LTCC=${LTCC-"$CC"}
5761
5762 # If no C compiler flags were specified, use CFLAGS.
5763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5764
5765 # Allow CC to be a program name with arguments.
5766 compiler=$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; }
5772 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5773 $as_echo_n "(cached) " >&6
5774 else
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.
5780 symcode='[BCDEGRST]'
5781
5782 # Regexp to match symbols that can be accessed directly from C.
5783 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5784
5785 # Define system-specific variables.
5786 case $host_os in
5787 aix*)
5788 symcode='[BCDT]'
5789 ;;
5790 cygwin* | mingw* | pw32* | cegcc*)
5791 symcode='[ABCDGISTW]'
5792 ;;
5793 hpux*)
5794 if test "$host_cpu" = ia64; then
5795 symcode='[ABCDEGRST]'
5796 fi
5797 ;;
5798 irix* | nonstopux*)
5799 symcode='[BCDEGRST]'
5800 ;;
5801 osf*)
5802 symcode='[BCDEGQRST]'
5803 ;;
5804 solaris*)
5805 symcode='[BDRT]'
5806 ;;
5807 sco3.2v5*)
5808 symcode='[DT]'
5809 ;;
5810 sysv4.2uw2*)
5811 symcode='[DT]'
5812 ;;
5813 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5814 symcode='[ABDT]'
5815 ;;
5816 sysv4)
5817 symcode='[DFNSTU]'
5818 ;;
5819 esac
5820
5821 # If we're using GNU nm, then use its standard symbol codes.
5822 case `$NM -V 2>&1` in
5823 *GNU* | *'with BFD'*)
5824 symcode='[ABCDGIRSTW]' ;;
5825 esac
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.
5830 lt_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
5833 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5834 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5835
5836 # Handle CRLF in mingw tool chain
5837 opt_cr=
5838 case $build_os in
5839 mingw*)
5840 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5841 ;;
5842 esac
5843
5844 # Try without a prefix underscore, then with it.
5845 for 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
5877 extern "C" {
5878 #endif
5879 char nm_test_var;
5880 void nm_test_func(void);
5881 void nm_test_func(void){}
5882 #ifdef __cplusplus
5883 }
5884 #endif
5885 int 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
5912 extern "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. */
5922 const struct {
5923 const char *name;
5924 void *address;
5925 }
5926 lt__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
5937 static 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
5982 done
5983
5984 fi
5985
5986 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5987 lt_cv_sys_global_symbol_to_cdecl=
5988 fi
5989 if 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; }
5992 else
5993 { $as_echo "$as_me:$LINENO: result: ok" >&5
5994 $as_echo "ok" >&6; }
5995 fi
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.
6020 if test "${enable_libtool_lock+set}" = set; then
6021 enableval=$enable_libtool_lock;
6022 fi
6023
6024 test "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.
6028 case $host in
6029 ia64-*-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.
6050 echo '#line 6050 "configure"' > conftest.$ac_ext
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
6085 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6086 s390*-*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; }
6144 if test "${lt_cv_cc_needs_belf+set}" = set; then
6145 $as_echo_n "(cached) " >&6
6146 else
6147 ac_ext=c
6148 ac_cpp='$CPP $CPPFLAGS'
6149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6152
6153 cat >conftest.$ac_ext <<_ACEOF
6154 /* confdefs.h. */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159
6160 int
6161 main ()
6162 {
6163
6164 ;
6165 return 0;
6166 }
6167 _ACEOF
6168 rm -f conftest.$ac_objext conftest$ac_exeext
6169 if { (ac_try="$ac_link"
6170 case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173 esac
6174 eval 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
6190 else
6191 $as_echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194 lt_cv_cc_needs_belf=no
6195 fi
6196
6197 rm -rf conftest.dSYM
6198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6199 conftest$ac_exeext conftest.$ac_ext
6200 ac_ext=c
6201 ac_cpp='$CPP $CPPFLAGS'
6202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6205
6206 fi
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 ;;
6214 sparc*-*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 ;;
6237 esac
6238
6239 need_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.
6246 set 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; }
6249 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6250 $as_echo_n "(cached) " >&6
6251 else
6252 if test -n "$DSYMUTIL"; then
6253 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
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
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6273 if test -n "$DSYMUTIL"; then
6274 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6275 $as_echo "$DSYMUTIL" >&6; }
6276 else
6277 { $as_echo "$as_me:$LINENO: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280
6281
6282 fi
6283 if 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.
6286 set 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; }
6289 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6290 $as_echo_n "(cached) " >&6
6291 else
6292 if test -n "$ac_ct_DSYMUTIL"; then
6293 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
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
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6313 if test -n "$ac_ct_DSYMUTIL"; then
6314 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6315 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6316 else
6317 { $as_echo "$as_me:$LINENO: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321 if test "x$ac_ct_DSYMUTIL" = x; then
6322 DSYMUTIL=":"
6323 else
6324 case $cross_compiling:$ac_tool_warned in
6325 yes:)
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;}
6328 ac_tool_warned=yes ;;
6329 esac
6330 DSYMUTIL=$ac_ct_DSYMUTIL
6331 fi
6332 else
6333 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6334 fi
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.
6338 set 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; }
6341 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6342 $as_echo_n "(cached) " >&6
6343 else
6344 if test -n "$NMEDIT"; then
6345 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
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
6358 done
6359 done
6360 IFS=$as_save_IFS
6361
6362 fi
6363 fi
6364 NMEDIT=$ac_cv_prog_NMEDIT
6365 if test -n "$NMEDIT"; then
6366 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6367 $as_echo "$NMEDIT" >&6; }
6368 else
6369 { $as_echo "$as_me:$LINENO: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372
6373
6374 fi
6375 if 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.
6378 set 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; }
6381 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$ac_ct_NMEDIT"; then
6385 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
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
6398 done
6399 done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6405 if test -n "$ac_ct_NMEDIT"; then
6406 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6407 $as_echo "$ac_ct_NMEDIT" >&6; }
6408 else
6409 { $as_echo "$as_me:$LINENO: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413 if test "x$ac_ct_NMEDIT" = x; then
6414 NMEDIT=":"
6415 else
6416 case $cross_compiling:$ac_tool_warned in
6417 yes:)
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;}
6420 ac_tool_warned=yes ;;
6421 esac
6422 NMEDIT=$ac_ct_NMEDIT
6423 fi
6424 else
6425 NMEDIT="$ac_cv_prog_NMEDIT"
6426 fi
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.
6430 set 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; }
6433 if test "${ac_cv_prog_LIPO+set}" = set; then
6434 $as_echo_n "(cached) " >&6
6435 else
6436 if test -n "$LIPO"; then
6437 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
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
6450 done
6451 done
6452 IFS=$as_save_IFS
6453
6454 fi
6455 fi
6456 LIPO=$ac_cv_prog_LIPO
6457 if test -n "$LIPO"; then
6458 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6459 $as_echo "$LIPO" >&6; }
6460 else
6461 { $as_echo "$as_me:$LINENO: result: no" >&5
6462 $as_echo "no" >&6; }
6463 fi
6464
6465
6466 fi
6467 if 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.
6470 set 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; }
6473 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6474 $as_echo_n "(cached) " >&6
6475 else
6476 if test -n "$ac_ct_LIPO"; then
6477 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
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
6490 done
6491 done
6492 IFS=$as_save_IFS
6493
6494 fi
6495 fi
6496 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6497 if test -n "$ac_ct_LIPO"; then
6498 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6499 $as_echo "$ac_ct_LIPO" >&6; }
6500 else
6501 { $as_echo "$as_me:$LINENO: result: no" >&5
6502 $as_echo "no" >&6; }
6503 fi
6504
6505 if test "x$ac_ct_LIPO" = x; then
6506 LIPO=":"
6507 else
6508 case $cross_compiling:$ac_tool_warned in
6509 yes:)
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;}
6512 ac_tool_warned=yes ;;
6513 esac
6514 LIPO=$ac_ct_LIPO
6515 fi
6516 else
6517 LIPO="$ac_cv_prog_LIPO"
6518 fi
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.
6522 set 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; }
6525 if test "${ac_cv_prog_OTOOL+set}" = set; then
6526 $as_echo_n "(cached) " >&6
6527 else
6528 if test -n "$OTOOL"; then
6529 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
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
6542 done
6543 done
6544 IFS=$as_save_IFS
6545
6546 fi
6547 fi
6548 OTOOL=$ac_cv_prog_OTOOL
6549 if test -n "$OTOOL"; then
6550 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6551 $as_echo "$OTOOL" >&6; }
6552 else
6553 { $as_echo "$as_me:$LINENO: result: no" >&5
6554 $as_echo "no" >&6; }
6555 fi
6556
6557
6558 fi
6559 if 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.
6562 set 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; }
6565 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6566 $as_echo_n "(cached) " >&6
6567 else
6568 if test -n "$ac_ct_OTOOL"; then
6569 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
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
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6589 if test -n "$ac_ct_OTOOL"; then
6590 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6591 $as_echo "$ac_ct_OTOOL" >&6; }
6592 else
6593 { $as_echo "$as_me:$LINENO: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597 if test "x$ac_ct_OTOOL" = x; then
6598 OTOOL=":"
6599 else
6600 case $cross_compiling:$ac_tool_warned in
6601 yes:)
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;}
6604 ac_tool_warned=yes ;;
6605 esac
6606 OTOOL=$ac_ct_OTOOL
6607 fi
6608 else
6609 OTOOL="$ac_cv_prog_OTOOL"
6610 fi
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.
6614 set 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; }
6617 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6618 $as_echo_n "(cached) " >&6
6619 else
6620 if test -n "$OTOOL64"; then
6621 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
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
6634 done
6635 done
6636 IFS=$as_save_IFS
6637
6638 fi
6639 fi
6640 OTOOL64=$ac_cv_prog_OTOOL64
6641 if test -n "$OTOOL64"; then
6642 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6643 $as_echo "$OTOOL64" >&6; }
6644 else
6645 { $as_echo "$as_me:$LINENO: result: no" >&5
6646 $as_echo "no" >&6; }
6647 fi
6648
6649
6650 fi
6651 if 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.
6654 set 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; }
6657 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6658 $as_echo_n "(cached) " >&6
6659 else
6660 if test -n "$ac_ct_OTOOL64"; then
6661 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
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
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6681 if test -n "$ac_ct_OTOOL64"; then
6682 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6683 $as_echo "$ac_ct_OTOOL64" >&6; }
6684 else
6685 { $as_echo "$as_me:$LINENO: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688
6689 if test "x$ac_ct_OTOOL64" = x; then
6690 OTOOL64=":"
6691 else
6692 case $cross_compiling:$ac_tool_warned in
6693 yes:)
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;}
6696 ac_tool_warned=yes ;;
6697 esac
6698 OTOOL64=$ac_ct_OTOOL64
6699 fi
6700 else
6701 OTOOL64="$ac_cv_prog_OTOOL64"
6702 fi
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; }
6732 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6733 $as_echo_n "(cached) " >&6
6734 else
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
6756 fi
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; }
6761 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6762 $as_echo_n "(cached) " >&6
6763 else
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
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774
6775 int
6776 main ()
6777 {
6778
6779 ;
6780 return 0;
6781 }
6782 _ACEOF
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (ac_try="$ac_link"
6785 case "(($ac_try" in
6786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787 *) ac_try_echo=$ac_try;;
6788 esac
6789 eval 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
6805 else
6806 $as_echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.$ac_ext >&5
6808
6809 lt_cv_ld_exported_symbols_list=no
6810 fi
6811
6812 rm -rf conftest.dSYM
6813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6814 conftest$ac_exeext conftest.$ac_ext
6815 LDFLAGS="$save_LDFLAGS"
6816
6817 fi
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
6855 ac_ext=c
6856 ac_cpp='$CPP $CPPFLAGS'
6857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6859 ac_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.
6863 if test -n "$CPP" && test -d "$CPP"; then
6864 CPP=
6865 fi
6866 if test -z "$CPP"; then
6867 if test "${ac_cv_prog_CPP+set}" = set; then
6868 $as_echo_n "(cached) " >&6
6869 else
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
6874 for ac_c_preproc_warn_flag in '' yes
6875 do
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
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>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
6895 if { (ac_try="$ac_cpp conftest.$ac_ext"
6896 case "(($ac_try" in
6897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898 *) ac_try_echo=$ac_try;;
6899 esac
6900 eval 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 :
6913 else
6914 $as_echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917 # Broken: fails on valid input.
6918 continue
6919 fi
6920
6921 rm -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
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 #include <ac_nonexistent.h>
6932 _ACEOF
6933 if { (ac_try="$ac_cpp conftest.$ac_ext"
6934 case "(($ac_try" in
6935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6936 *) ac_try_echo=$ac_try;;
6937 esac
6938 eval 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.
6951 continue
6952 else
6953 $as_echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6955
6956 # Passes both tests.
6957 ac_preproc_ok=:
6958 break
6959 fi
6960
6961 rm -f conftest.err conftest.$ac_ext
6962
6963 done
6964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6965 rm -f conftest.err conftest.$ac_ext
6966 if $ac_preproc_ok; then
6967 break
6968 fi
6969
6970 done
6971 ac_cv_prog_CPP=$CPP
6972
6973 fi
6974 CPP=$ac_cv_prog_CPP
6975 else
6976 ac_cv_prog_CPP=$CPP
6977 fi
6978 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6979 $as_echo "$CPP" >&6; }
6980 ac_preproc_ok=false
6981 for ac_c_preproc_warn_flag in '' yes
6982 do
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
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>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
7002 if { (ac_try="$ac_cpp conftest.$ac_ext"
7003 case "(($ac_try" in
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7006 esac
7007 eval 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 :
7020 else
7021 $as_echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7023
7024 # Broken: fails on valid input.
7025 continue
7026 fi
7027
7028 rm -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
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 #include <ac_nonexistent.h>
7039 _ACEOF
7040 if { (ac_try="$ac_cpp conftest.$ac_ext"
7041 case "(($ac_try" in
7042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7044 esac
7045 eval 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.
7058 continue
7059 else
7060 $as_echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7062
7063 # Passes both tests.
7064 ac_preproc_ok=:
7065 break
7066 fi
7067
7068 rm -f conftest.err conftest.$ac_ext
7069
7070 done
7071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7072 rm -f conftest.err conftest.$ac_ext
7073 if $ac_preproc_ok; then
7074 :
7075 else
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
7079 See \`config.log' for more details." >&5
7080 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7081 See \`config.log' for more details." >&2;}
7082 { (exit 1); exit 1; }; }; }
7083 fi
7084
7085 ac_ext=c
7086 ac_cpp='$CPP $CPPFLAGS'
7087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7089 ac_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; }
7094 if test "${ac_cv_header_stdc+set}" = set; then
7095 $as_echo_n "(cached) " >&6
7096 else
7097 cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h. */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>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
7108 int
7109 main ()
7110 {
7111
7112 ;
7113 return 0;
7114 }
7115 _ACEOF
7116 rm -f conftest.$ac_objext
7117 if { (ac_try="$ac_compile"
7118 case "(($ac_try" in
7119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120 *) ac_try_echo=$ac_try;;
7121 esac
7122 eval 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
7135 else
7136 $as_echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7138
7139 ac_cv_header_stdc=no
7140 fi
7141
7142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7143
7144 if 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
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7152 #include <string.h>
7153
7154 _ACEOF
7155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7156 $EGREP "memchr" >/dev/null 2>&1; then
7157 :
7158 else
7159 ac_cv_header_stdc=no
7160 fi
7161 rm -f conftest*
7162
7163 fi
7164
7165 if 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
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7173 #include <stdlib.h>
7174
7175 _ACEOF
7176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7177 $EGREP "free" >/dev/null 2>&1; then
7178 :
7179 else
7180 ac_cv_header_stdc=no
7181 fi
7182 rm -f conftest*
7183
7184 fi
7185
7186 if 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 :
7190 else
7191 cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h. */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>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)))
7211 int
7212 main ()
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
7222 rm -f conftest$ac_exeext
7223 if { (ac_try="$ac_link"
7224 case "(($ac_try" in
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7227 esac
7228 eval 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;;
7237 esac
7238 eval 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 :
7245 else
7246 $as_echo "$as_me: program exited with status $ac_status" >&5
7247 $as_echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.$ac_ext >&5
7249
7250 ( exit $ac_status )
7251 ac_cv_header_stdc=no
7252 fi
7253 rm -rf conftest.dSYM
7254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7255 fi
7256
7257
7258 fi
7259 fi
7260 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7261 $as_echo "$ac_cv_header_stdc" >&6; }
7262 if test $ac_cv_header_stdc = yes; then
7263
7264 cat >>confdefs.h <<\_ACEOF
7265 #define STDC_HEADERS 1
7266 _ACEOF
7267
7268 fi
7269
7270 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7281 inttypes.h stdint.h unistd.h
7282 do
7283 as_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; }
7286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7287 $as_echo_n "(cached) " >&6
7288 else
7289 cat >conftest.$ac_ext <<_ACEOF
7290 /* confdefs.h. */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7295 $ac_includes_default
7296
7297 #include <$ac_header>
7298 _ACEOF
7299 rm -f conftest.$ac_objext
7300 if { (ac_try="$ac_compile"
7301 case "(($ac_try" in
7302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303 *) ac_try_echo=$ac_try;;
7304 esac
7305 eval 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"
7318 else
7319 $as_echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7321
7322 eval "$as_ac_Header=no"
7323 fi
7324
7325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326 fi
7327 ac_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; }
7331 as_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
7338 fi
7339
7340 done
7341
7342
7343
7344 for ac_header in dlfcn.h
7345 do
7346 as_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; }
7349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7350 $as_echo_n "(cached) " >&6
7351 else
7352 cat >conftest.$ac_ext <<_ACEOF
7353 /* confdefs.h. */
7354 _ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358 $ac_includes_default
7359
7360 #include <$ac_header>
7361 _ACEOF
7362 rm -f conftest.$ac_objext
7363 if { (ac_try="$ac_compile"
7364 case "(($ac_try" in
7365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7366 *) ac_try_echo=$ac_try;;
7367 esac
7368 eval 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"
7381 else
7382 $as_echo "$as_me: failed program was:" >&5
7383 sed 's/^/| /' conftest.$ac_ext >&5
7384
7385 eval "$as_ac_Header=no"
7386 fi
7387
7388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7389 fi
7390 ac_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; }
7394 as_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
7401 fi
7402
7403 done
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.
7418 if 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
7436 else
7437 enable_shared=yes
7438 fi
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448 # Check whether --enable-static was given.
7449 if 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
7467 else
7468 enable_static=yes
7469 fi
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480 # Check whether --with-pic was given.
7481 if test "${with_pic+set}" = set; then
7482 withval=$with_pic; pic_mode="$withval"
7483 else
7484 pic_mode=default
7485 fi
7486
7487
7488 test -z "$pic_mode" && pic_mode=default
7489
7490
7491
7492
7493
7494
7495
7496 # Check whether --enable-fast-install was given.
7497 if 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
7515 else
7516 enable_fast_install=yes
7517 fi
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529 # This can be used to rebuild libtool when needed
7530 LIBTOOL_DEPS="$ltmain"
7531
7532 # Always use our own libtool.
7533 LIBTOOL='$(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
7559 test -z "$LN_S" && LN_S="ln -s"
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574 if test -n "${ZSH_VERSION+set}" ; then
7575 setopt NO_GLOB_SUBST
7576 fi
7577
7578 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7579 $as_echo_n "checking for objdir... " >&6; }
7580 if test "${lt_cv_objdir+set}" = set; then
7581 $as_echo_n "(cached) " >&6
7582 else
7583 rm -f .libs 2>/dev/null
7584 mkdir .libs 2>/dev/null
7585 if test -d .libs; then
7586 lt_cv_objdir=.libs
7587 else
7588 # MS-DOS does not allow filenames that begin with a dot.
7589 lt_cv_objdir=_libs
7590 fi
7591 rmdir .libs 2>/dev/null
7592 fi
7593 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7594 $as_echo "$lt_cv_objdir" >&6; }
7595 objdir=$lt_cv_objdir
7596
7597
7598
7599
7600
7601 cat >>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
7621 case $host_os in
7622 aix3*)
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 ;;
7631 esac
7632
7633 # Sed substitution that helps us do robust quoting. It backslashifies
7634 # metacharacters that are still active within double-quoted strings.
7635 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7636
7637 # Same as above, but do not quote variable references.
7638 double_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.
7642 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7643
7644 # Sed substitution to delay expansion of an escaped single quote.
7645 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7646
7647 # Sed substitution to avoid accidental globbing in evaled expressions
7648 no_glob_subst='s/\*/\\\*/g'
7649
7650 # Global variables:
7651 ofile=libtool
7652 can_build_shared=yes
7653
7654 # All known linkers require a `.a' archive for static linking (except MSVC,
7655 # which needs '.lib').
7656 libext=a
7657
7658 with_gnu_ld="$lt_cv_prog_gnu_ld"
7659
7660 old_CC="$CC"
7661 old_CFLAGS="$CFLAGS"
7662
7663 # Set sane defaults for various variables
7664 test -z "$CC" && CC=cc
7665 test -z "$LTCC" && LTCC=$CC
7666 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7667 test -z "$LD" && LD=ld
7668 test -z "$ac_objext" && ac_objext=o
7669
7670 for 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
7677 done
7678 cc_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
7682 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7683 case $deplibs_check_method in
7684 file_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; }
7688 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7689 $as_echo_n "(cached) " >&6
7690 else
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 ;;
7734 esac
7735 fi
7736
7737 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7738 if test -n "$MAGIC_CMD"; then
7739 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7740 $as_echo "$MAGIC_CMD" >&6; }
7741 else
7742 { $as_echo "$as_me:$LINENO: result: no" >&5
7743 $as_echo "no" >&6; }
7744 fi
7745
7746
7747
7748
7749
7750 if 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; }
7754 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7755 $as_echo_n "(cached) " >&6
7756 else
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 ;;
7800 esac
7801 fi
7802
7803 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7804 if test -n "$MAGIC_CMD"; then
7805 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7806 $as_echo "$MAGIC_CMD" >&6; }
7807 else
7808 { $as_echo "$as_me:$LINENO: result: no" >&5
7809 $as_echo "no" >&6; }
7810 fi
7811
7812
7813 else
7814 MAGIC_CMD=:
7815 fi
7816 fi
7817
7818 fi
7819 ;;
7820 esac
7821
7822 # Use C for the default configuration in the libtool script
7823
7824 lt_save_CC="$CC"
7825 ac_ext=c
7826 ac_cpp='$CPP $CPPFLAGS'
7827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7830
7831
7832 # Source file extension for C test sources.
7833 ac_ext=c
7834
7835 # Object file extension for compiled C test sources.
7836 objext=o
7837 objext=$objext
7838
7839 # Code to be used in simple compile tests
7840 lt_simple_compile_test_code="int some_variable = 0;"
7841
7842 # Code to be used in simple link tests
7843 lt_simple_link_test_code='int main(){return(0);}'
7844
7845
7846
7847
7848
7849
7850
7851 # If no C compiler was specified, use CC.
7852 LTCC=${LTCC-"$CC"}
7853
7854 # If no C compiler flags were specified, use CFLAGS.
7855 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7856
7857 # Allow CC to be a program name with arguments.
7858 compiler=$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.
7862 compiler_DEFAULT=$CC
7863
7864 # save warnings/boilerplate of simple test code
7865 ac_outfile=conftest.$ac_objext
7866 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7867 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7868 _lt_compiler_boilerplate=`cat conftest.err`
7869 $RM conftest*
7870
7871 ac_outfile=conftest.$ac_objext
7872 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7873 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7874 _lt_linker_boilerplate=`cat conftest.err`
7875 $RM -r conftest*
7876
7877
7878 if test -n "$compiler"; then
7879
7880 lt_prog_compiler_no_builtin_flag=
7881
7882 if 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; }
7887 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7888 $as_echo_n "(cached) " >&6
7889 else
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:'`
7903 (eval echo "\"\$as_me:7903: $lt_compile\"" >&5)
7904 (eval "$lt_compile" 2>conftest.err)
7905 ac_status=$?
7906 cat conftest.err >&5
7907 echo "$as_me:7907: \$? = $ac_status" >&5
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
7919 fi
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
7923 if 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"
7925 else
7926 :
7927 fi
7928
7929 fi
7930
7931
7932
7933
7934
7935
7936 lt_prog_compiler_wl=
7937 lt_prog_compiler_pic=
7938 lt_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
8203 case $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 ;;
8211 esac
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 #
8223 if 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; }
8226 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8227 $as_echo_n "(cached) " >&6
8228 else
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:'`
8242 (eval echo "\"\$as_me:8242: $lt_compile\"" >&5)
8243 (eval "$lt_compile" 2>conftest.err)
8244 ac_status=$?
8245 cat conftest.err >&5
8246 echo "$as_me:8246: \$? = $ac_status" >&5
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
8258 fi
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
8262 if 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
8267 else
8268 lt_prog_compiler_pic=
8269 lt_prog_compiler_can_build_shared=no
8270 fi
8271
8272 fi
8273
8274
8275
8276
8277
8278
8279 #
8280 # Check to make sure the static flag actually works.
8281 #
8282 wl=$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; }
8285 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8286 $as_echo_n "(cached) " >&6
8287 else
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
8310 fi
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
8314 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8315 :
8316 else
8317 lt_prog_compiler_static=
8318 fi
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; }
8328 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8329 $as_echo_n "(cached) " >&6
8330 else
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:'`
8347 (eval echo "\"\$as_me:8347: $lt_compile\"" >&5)
8348 (eval "$lt_compile" 2>out/conftest.err)
8349 ac_status=$?
8350 cat out/conftest.err >&5
8351 echo "$as_me:8351: \$? = $ac_status" >&5
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
8372 fi
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; }
8383 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8384 $as_echo_n "(cached) " >&6
8385 else
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:'`
8402 (eval echo "\"\$as_me:8402: $lt_compile\"" >&5)
8403 (eval "$lt_compile" 2>out/conftest.err)
8404 ac_status=$?
8405 cat out/conftest.err >&5
8406 echo "$as_me:8406: \$? = $ac_status" >&5
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
8427 fi
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
8434 hard_links="nottested"
8435 if 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
8452 else
8453 need_locks=no
8454 fi
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
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8909
8910 int
8911 main ()
8912 {
8913
8914 ;
8915 return 0;
8916 }
8917 _ACEOF
8918 rm -f conftest.$ac_objext conftest$ac_exeext
8919 if { (ac_try="$ac_link"
8920 case "(($ac_try" in
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8923 esac
8924 eval 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
8940 lt_aix_libpath_sed='
8941 /Import File Strings/,/^$/ {
8942 /^0/ {
8943 s/^0 *\(.*\)$/\1/
8944 p
8945 }
8946 }'
8947 aix_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.
8949 if test -z "$aix_libpath"; then
8950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8951 fi
8952 else
8953 $as_echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8955
8956
8957 fi
8958
8959 rm -rf conftest.dSYM
8960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8961 conftest$ac_exeext conftest.$ac_ext
8962 if 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
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8980
8981 int
8982 main ()
8983 {
8984
8985 ;
8986 return 0;
8987 }
8988 _ACEOF
8989 rm -f conftest.$ac_objext conftest$ac_exeext
8990 if { (ac_try="$ac_link"
8991 case "(($ac_try" in
8992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8993 *) ac_try_echo=$ac_try;;
8994 esac
8995 eval 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
9011 lt_aix_libpath_sed='
9012 /Import File Strings/,/^$/ {
9013 /^0/ {
9014 s/^0 *\(.*\)$/\1/
9015 p
9016 }
9017 }'
9018 aix_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.
9020 if test -z "$aix_libpath"; then
9021 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9022 fi
9023 else
9024 $as_echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9026
9027
9028 fi
9029
9030 rm -rf conftest.dSYM
9031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9032 conftest$ac_exeext conftest.$ac_ext
9033 if 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
9245 int foo(void) {}
9246 _ACEOF
9247 rm -f conftest.$ac_objext conftest$ac_exeext
9248 if { (ac_try="$ac_link"
9249 case "(($ac_try" in
9250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251 *) ac_try_echo=$ac_try;;
9252 esac
9253 eval 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
9270 else
9271 $as_echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9273
9274
9275 fi
9276
9277 rm -rf conftest.dSYM
9278 rm -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; }
9537 test "$ld_shlibs" = no && can_build_shared=no
9538
9539 with_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 #
9558 case "x$archive_cmds_need_lc" in
9559 x|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 ;;
9616 esac
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
9777 if 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 '
9805 BEGIN {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`
9825 else
9826 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9827 fi
9828 library_names_spec=
9829 libname_spec='lib$name'
9830 soname_spec=
9831 shrext_cmds=".so"
9832 postinstall_cmds=
9833 postuninstall_cmds=
9834 finish_cmds=
9835 finish_eval=
9836 shlibpath_var=
9837 shlibpath_overrides_runpath=unknown
9838 version_type=none
9839 dynamic_linker="$host_os ld.so"
9840 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9841 need_lib_prefix=unknown
9842 hardcode_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
9846 need_version=unknown
9847
9848 case $host_os in
9849 aix3*)
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
9858 aix[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
9902 amigaos*)
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
9917 beos*)
9918 library_names_spec='${libname}${shared_ext}'
9919 dynamic_linker="$host_os ld.so"
9920 shlibpath_var=LIBRARY_PATH
9921 ;;
9922
9923 bsdi[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
9937 cygwin* | 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
9999 darwin* | 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
10014 dgux*)
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
10023 freebsd1*)
10024 dynamic_linker=no
10025 ;;
10026
10027 freebsd* | 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
10071 gnu*)
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
10081 hpux9* | 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
10127 interix[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
10139 irix5* | 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.
10177 linux*oldld* | linux*aout* | linux*coff*)
10178 dynamic_linker=no
10179 ;;
10180
10181 # This must be Linux ELF.
10182 linux* | 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
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10202
10203 int
10204 main ()
10205 {
10206
10207 ;
10208 return 0;
10209 }
10210 _ACEOF
10211 rm -f conftest.$ac_objext conftest$ac_exeext
10212 if { (ac_try="$ac_link"
10213 case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216 esac
10217 eval 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
10234 fi
10235
10236 else
10237 $as_echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10239
10240
10241 fi
10242
10243 rm -rf conftest.dSYM
10244 rm -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
10272 netbsd*)
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
10290 newsos6)
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
10309 openbsd*)
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
10335 os2*)
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
10344 osf3* | 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
10355 rdos*)
10356 dynamic_linker=no
10357 ;;
10358
10359 solaris*)
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
10372 sunos4*)
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
10384 sysv4 | 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
10407 sysv4*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
10416 sysv5* | 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
10438 tpf*)
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
10449 uts4*)
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 ;;
10459 esac
10460 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10461 $as_echo "$dynamic_linker" >&6; }
10462 test "$dynamic_linker" = no && can_build_shared=no
10463
10464 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10465 if test "$GCC" = yes; then
10466 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10467 fi
10468
10469 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10470 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10471 fi
10472 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10473 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10474 fi
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; }
10564 hardcode_action=
10565 if 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
10582 else
10583 # We cannot hardcode anything, or else we can only hardcode existing
10584 # directories.
10585 hardcode_action=unsupported
10586 fi
10587 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10588 $as_echo "$hardcode_action" >&6; }
10589
10590 if test "$hardcode_action" = relink ||
10591 test "$inherit_rpath" = yes; then
10592 # Fast installation is not supported
10593 enable_fast_install=no
10594 elif test "$shlibpath_overrides_runpath" = yes ||
10595 test "$enable_shared" = no; then
10596 # Fast installation is not necessary
10597 enable_fast_install=needless
10598 fi
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
10609 else
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; }
10634 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10635 $as_echo_n "(cached) " >&6
10636 else
10637 ac_check_lib_save_LIBS=$LIBS
10638 LIBS="-ldl $LIBS"
10639 cat >conftest.$ac_ext <<_ACEOF
10640 /* confdefs.h. */
10641 _ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>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
10650 extern "C"
10651 #endif
10652 char dlopen ();
10653 int
10654 main ()
10655 {
10656 return dlopen ();
10657 ;
10658 return 0;
10659 }
10660 _ACEOF
10661 rm -f conftest.$ac_objext conftest$ac_exeext
10662 if { (ac_try="$ac_link"
10663 case "(($ac_try" in
10664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10666 esac
10667 eval 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
10683 else
10684 $as_echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10686
10687 ac_cv_lib_dl_dlopen=no
10688 fi
10689
10690 rm -rf conftest.dSYM
10691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10694 fi
10695 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10696 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10697 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10699 else
10700
10701 lt_cv_dlopen="dyld"
10702 lt_cv_dlopen_libs=
10703 lt_cv_dlopen_self=yes
10704
10705 fi
10706
10707 ;;
10708
10709 *)
10710 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10711 $as_echo_n "checking for shl_load... " >&6; }
10712 if test "${ac_cv_func_shl_load+set}" = set; then
10713 $as_echo_n "(cached) " >&6
10714 else
10715 cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h. */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>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
10742 extern "C"
10743 #endif
10744 char 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
10749 choke me
10750 #endif
10751
10752 int
10753 main ()
10754 {
10755 return shl_load ();
10756 ;
10757 return 0;
10758 }
10759 _ACEOF
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (ac_try="$ac_link"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765 esac
10766 eval 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
10782 else
10783 $as_echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 ac_cv_func_shl_load=no
10787 fi
10788
10789 rm -rf conftest.dSYM
10790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10791 conftest$ac_exeext conftest.$ac_ext
10792 fi
10793 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10794 $as_echo "$ac_cv_func_shl_load" >&6; }
10795 if test "x$ac_cv_func_shl_load" = x""yes; then
10796 lt_cv_dlopen="shl_load"
10797 else
10798 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10799 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10800 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10801 $as_echo_n "(cached) " >&6
10802 else
10803 ac_check_lib_save_LIBS=$LIBS
10804 LIBS="-ldld $LIBS"
10805 cat >conftest.$ac_ext <<_ACEOF
10806 /* confdefs.h. */
10807 _ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>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
10816 extern "C"
10817 #endif
10818 char shl_load ();
10819 int
10820 main ()
10821 {
10822 return shl_load ();
10823 ;
10824 return 0;
10825 }
10826 _ACEOF
10827 rm -f conftest.$ac_objext conftest$ac_exeext
10828 if { (ac_try="$ac_link"
10829 case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10832 esac
10833 eval 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
10849 else
10850 $as_echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10852
10853 ac_cv_lib_dld_shl_load=no
10854 fi
10855
10856 rm -rf conftest.dSYM
10857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10858 conftest$ac_exeext conftest.$ac_ext
10859 LIBS=$ac_check_lib_save_LIBS
10860 fi
10861 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10862 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10863 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10864 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10865 else
10866 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10867 $as_echo_n "checking for dlopen... " >&6; }
10868 if test "${ac_cv_func_dlopen+set}" = set; then
10869 $as_echo_n "(cached) " >&6
10870 else
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h. */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>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
10898 extern "C"
10899 #endif
10900 char 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
10905 choke me
10906 #endif
10907
10908 int
10909 main ()
10910 {
10911 return dlopen ();
10912 ;
10913 return 0;
10914 }
10915 _ACEOF
10916 rm -f conftest.$ac_objext conftest$ac_exeext
10917 if { (ac_try="$ac_link"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921 esac
10922 eval 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
10938 else
10939 $as_echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 ac_cv_func_dlopen=no
10943 fi
10944
10945 rm -rf conftest.dSYM
10946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10947 conftest$ac_exeext conftest.$ac_ext
10948 fi
10949 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10950 $as_echo "$ac_cv_func_dlopen" >&6; }
10951 if test "x$ac_cv_func_dlopen" = x""yes; then
10952 lt_cv_dlopen="dlopen"
10953 else
10954 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10955 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10956 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10957 $as_echo_n "(cached) " >&6
10958 else
10959 ac_check_lib_save_LIBS=$LIBS
10960 LIBS="-ldl $LIBS"
10961 cat >conftest.$ac_ext <<_ACEOF
10962 /* confdefs.h. */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>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
10972 extern "C"
10973 #endif
10974 char dlopen ();
10975 int
10976 main ()
10977 {
10978 return dlopen ();
10979 ;
10980 return 0;
10981 }
10982 _ACEOF
10983 rm -f conftest.$ac_objext conftest$ac_exeext
10984 if { (ac_try="$ac_link"
10985 case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10988 esac
10989 eval 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
11005 else
11006 $as_echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11008
11009 ac_cv_lib_dl_dlopen=no
11010 fi
11011
11012 rm -rf conftest.dSYM
11013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11016 fi
11017 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11018 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11019 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11021 else
11022 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11023 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11024 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11025 $as_echo_n "(cached) " >&6
11026 else
11027 ac_check_lib_save_LIBS=$LIBS
11028 LIBS="-lsvld $LIBS"
11029 cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h. */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>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
11040 extern "C"
11041 #endif
11042 char dlopen ();
11043 int
11044 main ()
11045 {
11046 return dlopen ();
11047 ;
11048 return 0;
11049 }
11050 _ACEOF
11051 rm -f conftest.$ac_objext conftest$ac_exeext
11052 if { (ac_try="$ac_link"
11053 case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056 esac
11057 eval 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
11073 else
11074 $as_echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11076
11077 ac_cv_lib_svld_dlopen=no
11078 fi
11079
11080 rm -rf conftest.dSYM
11081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11082 conftest$ac_exeext conftest.$ac_ext
11083 LIBS=$ac_check_lib_save_LIBS
11084 fi
11085 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11086 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11087 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11089 else
11090 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11091 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11093 $as_echo_n "(cached) " >&6
11094 else
11095 ac_check_lib_save_LIBS=$LIBS
11096 LIBS="-ldld $LIBS"
11097 cat >conftest.$ac_ext <<_ACEOF
11098 /* confdefs.h. */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>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
11108 extern "C"
11109 #endif
11110 char dld_link ();
11111 int
11112 main ()
11113 {
11114 return dld_link ();
11115 ;
11116 return 0;
11117 }
11118 _ACEOF
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (ac_try="$ac_link"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124 esac
11125 eval 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
11141 else
11142 $as_echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11144
11145 ac_cv_lib_dld_dld_link=no
11146 fi
11147
11148 rm -rf conftest.dSYM
11149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11150 conftest$ac_exeext conftest.$ac_ext
11151 LIBS=$ac_check_lib_save_LIBS
11152 fi
11153 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11154 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11155 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11156 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11157 fi
11158
11159
11160 fi
11161
11162
11163 fi
11164
11165
11166 fi
11167
11168
11169 fi
11170
11171
11172 fi
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; }
11196 if test "${lt_cv_dlopen_self+set}" = set; then
11197 $as_echo_n "(cached) " >&6
11198 else
11199 if test "$cross_compiling" = yes; then :
11200 lt_cv_dlopen_self=cross
11201 else
11202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11203 lt_status=$lt_dlunknown
11204 cat > conftest.$ac_ext <<_LT_EOF
11205 #line 11205 "configure"
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
11246 void fnord() { int i=42;}
11247 int 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
11280 fi
11281 rm -fr conftest*
11282
11283
11284 fi
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; }
11292 if test "${lt_cv_dlopen_self_static+set}" = set; then
11293 $as_echo_n "(cached) " >&6
11294 else
11295 if test "$cross_compiling" = yes; then :
11296 lt_cv_dlopen_self_static=cross
11297 else
11298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11299 lt_status=$lt_dlunknown
11300 cat > conftest.$ac_ext <<_LT_EOF
11301 #line 11301 "configure"
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
11342 void fnord() { int i=42;}
11343 int 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
11376 fi
11377 rm -fr conftest*
11378
11379
11380 fi
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
11400 fi
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418 striplib=
11419 old_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; }
11422 if 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; }
11427 else
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
11446 fi
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
11499 fi
11500 ac_ext=c
11501 ac_cpp='$CPP $CPPFLAGS'
11502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11505
11506 CC="$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
11530 test "${CCAS+set}" = set || CCAS=$CC
11531 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11532
11533
11534
11535 depcc="$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; }
11539 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11540 $as_echo_n "(cached) " >&6
11541 else
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
11640 else
11641 am_cv_CCAS_dependencies_compiler_type=none
11642 fi
11643
11644 fi
11645 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11646 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11647 CCASDEPMODE=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='#'
11654 else
11655 am__fastdepCCAS_TRUE='#'
11656 am__fastdepCCAS_FALSE=
11657 fi
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
11674 RPM=rpm
11675 RPMBUILD=rpmbuild
11676
11677 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11678 $as_echo_n "checking whether $RPM is available... " >&6; }
11679 if tmp=$($RPM --version 2>/dev/null); then
11680
11681 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11682 HAVE_RPM=yes
11683 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11684 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11685
11686 else
11687
11688 HAVE_RPM=no
11689 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11690 $as_echo "$HAVE_RPM" >&6; }
11691
11692 fi
11693
11694
11695 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11696 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11697 if tmp=$($RPMBUILD --version 2>/dev/null); then
11698
11699 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11700 HAVE_RPMBUILD=yes
11701 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11702 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11703
11704 else
11705
11706 HAVE_RPMBUILD=no
11707 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11708 $as_echo "$HAVE_RPMBUILD" >&6; }
11709
11710 fi
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722 DPKG=dpkg
11723 DPKGBUILD=dpkg-buildpackage
11724
11725 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11726 $as_echo_n "checking whether $DPKG is available... " >&6; }
11727 if tmp=$($DPKG --version 2>/dev/null); then
11728
11729 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11730 HAVE_DPKG=yes
11731 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11732 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11733
11734 else
11735
11736 HAVE_DPKG=no
11737 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11738 $as_echo "$HAVE_DPKG" >&6; }
11739
11740 fi
11741
11742
11743 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11744 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11745 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11746
11747 DPKGBUILD_VERSION=$(echo $tmp | \
11748 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11749 HAVE_DPKGBUILD=yes
11750 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11751 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11752
11753 else
11754
11755 HAVE_DPKGBUILD=no
11756 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11757 $as_echo "$HAVE_DPKGBUILD" >&6; }
11758
11759 fi
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771 ALIEN=alien
11772
11773 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11774 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11775 if tmp=$($ALIEN --version 2>/dev/null); then
11776
11777 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11778 HAVE_ALIEN=yes
11779 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11780 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11781
11782 else
11783
11784 HAVE_ALIEN=no
11785 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11786 $as_echo "$HAVE_ALIEN" >&6; }
11787
11788 fi
11789
11790
11791
11792
11793
11794
11795
11796 PACMAN=pacman
11797 MAKEPKG=makepkg
11798
11799 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11800 $as_echo_n "checking whether $PACMAN is available... " >&6; }
11801 tmp=$($PACMAN --version 2>/dev/null)
11802 if test -n "$tmp"; then
11803
11804 PACMAN_VERSION=$(echo $tmp |
11805 $AWK '/Pacman/ { print $3 }' |
11806 $SED 's/^v//')
11807 HAVE_PACMAN=yes
11808 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11809 $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11810
11811 else
11812
11813 HAVE_PACMAN=no
11814 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11815 $as_echo "$HAVE_PACMAN" >&6; }
11816
11817 fi
11818
11819
11820 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11821 $as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11822 tmp=$($MAKEPKG --version 2>/dev/null)
11823 if test -n "$tmp"; then
11824
11825 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11826 HAVE_MAKEPKG=yes
11827 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11828 $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11829
11830 else
11831
11832 HAVE_MAKEPKG=no
11833 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11834 $as_echo "$HAVE_MAKEPKG" >&6; }
11835
11836 fi
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11849 $as_echo_n "checking linux distribution... " >&6; }
11850 if test -f /etc/redhat-release ; then
11851 VENDOR=redhat ;
11852 elif test -f /etc/fedora-release ; then
11853 VENDOR=fedora ;
11854 elif test -f /etc/gentoo-release ; then
11855 VENDOR=gentoo ;
11856 elif test -f /etc/debian_version ; then
11857 VENDOR=debian ;
11858 elif test -f /etc/SuSE-release ; then
11859 VENDOR=sles ;
11860 elif test -f /etc/slackware-version ; then
11861 VENDOR=slackware ;
11862 elif test -f /etc/arch-release ; then
11863 VENDOR=arch ;
11864 elif test -f /etc/lsb-release ; then
11865 VENDOR=ubuntu ;
11866 elif test -f /etc/lunar.release ; then
11867 VENDOR=lunar ;
11868 else
11869 VENDOR= ;
11870 fi
11871 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11872 $as_echo "$VENDOR" >&6; }
11873
11874
11875 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11876 $as_echo_n "checking default package type... " >&6; }
11877 case "$VENDOR" in
11878 redhat) DEFAULT_PACKAGE=rpm ;;
11879 fedora) DEFAULT_PACKAGE=rpm ;;
11880 ubuntu) DEFAULT_PACKAGE=deb ;;
11881 debian) DEFAULT_PACKAGE=deb ;;
11882 sles) DEFAULT_PACKAGE=rpm ;;
11883 slackware) DEFAULT_PACKAGE=tgz ;;
11884 gentoo) DEFAULT_PACKAGE=tgz ;;
11885 lunar) DEFAULT_PACKAGE=tgz ;;
11886 arch) DEFAULT_PACKAGE=arch;;
11887 *) DEFAULT_PACKAGE=rpm ;;
11888 esac
11889
11890 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11891 $as_echo "$DEFAULT_PACKAGE" >&6; }
11892
11893
11894 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11895 $as_echo_n "checking default init directory... " >&6; }
11896 case "$VENDOR" in
11897 arch) DEFAULT_INIT_DIR=$sysconfdir/rc.d ;;
11898 *) DEFAULT_INIT_DIR=$sysconfdir/init.d ;;
11899 esac
11900
11901 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11902 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11903
11904
11905 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11906 $as_echo_n "checking default init script type... " >&6; }
11907 case "$VENDOR" in
11908 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
11909 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
11910 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
11911 debian) DEFAULT_INIT_SCRIPT=lsb ;;
11912 sles) DEFAULT_INIT_SCRIPT=lsb ;;
11913 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
11914 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
11915 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
11916 arch) DEFAULT_INIT_SCRIPT=arch ;;
11917 *) DEFAULT_INIT_SCRIPT=lsb ;;
11918 esac
11919
11920 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11921 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11922
11923
11924
11925
11926 TARGET_ASM_DIR=asm-generic
11927
11928
11929 ZFS_CONFIG=all
11930
11931 # Check whether --with-config was given.
11932 if test "${with_config+set}" = set; then
11933 withval=$with_config; ZFS_CONFIG="$withval"
11934 fi
11935
11936
11937 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11938 $as_echo_n "checking zfs config... " >&6; }
11939 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11940 $as_echo "$ZFS_CONFIG" >&6; };
11941
11942
11943
11944
11945 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11946 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11947
11948 saved_flags="$CFLAGS"
11949 CFLAGS="$CFLAGS -Wunused-but-set-variable"
11950
11951 if test "$cross_compiling" = yes; then
11952 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11954 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11955 See \`config.log' for more details." >&5
11956 $as_echo "$as_me: error: cannot run test program while cross compiling
11957 See \`config.log' for more details." >&2;}
11958 { (exit 1); exit 1; }; }; }
11959 else
11960 cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h. */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11966
11967 int
11968 main ()
11969 {
11970
11971 ;
11972 return 0;
11973 }
11974 _ACEOF
11975 rm -f conftest$ac_exeext
11976 if { (ac_try="$ac_link"
11977 case "(($ac_try" in
11978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11980 esac
11981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11982 $as_echo "$ac_try_echo") >&5
11983 (eval "$ac_link") 2>&5
11984 ac_status=$?
11985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11987 { (case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11990 esac
11991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11992 $as_echo "$ac_try_echo") >&5
11993 (eval "$ac_try") 2>&5
11994 ac_status=$?
11995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); }; }; then
11997
11998 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
11999 { $as_echo "$as_me:$LINENO: result: yes" >&5
12000 $as_echo "yes" >&6; }
12001
12002 else
12003 $as_echo "$as_me: program exited with status $ac_status" >&5
12004 $as_echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12006
12007 ( exit $ac_status )
12008
12009 NO_UNUSED_BUT_SET_VARIABLE=
12010 { $as_echo "$as_me:$LINENO: result: no" >&5
12011 $as_echo "no" >&6; }
12012
12013 fi
12014 rm -rf conftest.dSYM
12015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12016 fi
12017
12018
12019
12020 CFLAGS="$saved_flags"
12021
12022
12023
12024
12025 case "$ZFS_CONFIG" in
12026 kernel)
12027
12028
12029 # Check whether --with-linux was given.
12030 if test "${with_linux+set}" = set; then
12031 withval=$with_linux; kernelsrc="$withval"
12032 fi
12033
12034
12035
12036 # Check whether --with-linux-obj was given.
12037 if test "${with_linux_obj+set}" = set; then
12038 withval=$with_linux_obj; kernelbuild="$withval"
12039 fi
12040
12041
12042 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
12043 $as_echo_n "checking kernel source directory... " >&6; }
12044 if test -z "$kernelsrc"; then
12045
12046 if test -e "/lib/modules/$(uname -r)/source"; then
12047
12048 headersdir="/lib/modules/$(uname -r)/source"
12049 sourcelink=$(readlink -f "$headersdir")
12050
12051 elif test -e "/lib/modules/$(uname -r)/build"; then
12052
12053 headersdir="/lib/modules/$(uname -r)/build"
12054 sourcelink=$(readlink -f "$headersdir")
12055
12056 else
12057
12058 sourcelink=$(ls -1d /usr/src/kernels/* \
12059 /usr/src/linux-* \
12060 2>/dev/null | grep -v obj | tail -1)
12061
12062 fi
12063
12064
12065 if test -n "$sourcelink" && test -e ${sourcelink}; then
12066
12067 kernelsrc=`readlink -f ${sourcelink}`
12068
12069 else
12070
12071 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12072 $as_echo "Not found" >&6; }
12073 { { $as_echo "$as_me:$LINENO: error:
12074 *** Please make sure the kernel devel package for your distribution
12075 *** is installed then try again. If that fails you can specify the
12076 *** location of the kernel source with the '--with-linux=PATH' option." >&5
12077 $as_echo "$as_me: 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." >&2;}
12081 { (exit 1); exit 1; }; }
12082
12083 fi
12084
12085
12086 else
12087
12088 if test "$kernelsrc" = "NONE"; then
12089
12090 kernsrcver=NONE
12091
12092 fi
12093
12094
12095 fi
12096
12097
12098 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12099 $as_echo "$kernelsrc" >&6; }
12100 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12101 $as_echo_n "checking kernel build directory... " >&6; }
12102 if test -z "$kernelbuild"; then
12103
12104 if test -e "/lib/modules/$(uname -r)/build"; then
12105
12106 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12107
12108 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12109
12110 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12111
12112 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
12113
12114 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12115
12116 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
12117
12118 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12119
12120 else
12121
12122 kernelbuild=${kernelsrc}
12123
12124 fi
12125
12126
12127 fi
12128
12129 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12130 $as_echo "$kernelbuild" >&6; }
12131
12132 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12133 $as_echo_n "checking kernel source version... " >&6; }
12134 utsrelease1=$kernelbuild/include/linux/version.h
12135 utsrelease2=$kernelbuild/include/linux/utsrelease.h
12136 utsrelease3=$kernelbuild/include/generated/utsrelease.h
12137 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
12138
12139 utsrelease=linux/version.h
12140
12141 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
12142
12143 utsrelease=linux/utsrelease.h
12144
12145 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
12146
12147 utsrelease=generated/utsrelease.h
12148
12149 fi
12150
12151
12152 if test "$utsrelease"; then
12153
12154 kernsrcver=`(echo "#include <$utsrelease>";
12155 echo "kernsrcver=UTS_RELEASE") |
12156 cpp -I $kernelbuild/include |
12157 grep "^kernsrcver=" | cut -d \" -f 2`
12158
12159 if test -z "$kernsrcver"; then
12160
12161 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12162 $as_echo "Not found" >&6; }
12163 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12164 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12165 { (exit 1); exit 1; }; }
12166
12167 fi
12168
12169
12170 else
12171
12172 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12173 $as_echo "Not found" >&6; }
12174 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12175 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12176 { (exit 1); exit 1; }; }
12177
12178 fi
12179
12180
12181 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12182 $as_echo "$kernsrcver" >&6; }
12183
12184 LINUX=${kernelsrc}
12185 LINUX_OBJ=${kernelbuild}
12186 LINUX_VERSION=${kernsrcver}
12187
12188
12189
12190
12191
12192
12193 modpost=$LINUX/scripts/Makefile.modpost
12194 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12195 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12196 if test -f "$modpost"; then
12197
12198 if grep -q Modules.symvers $modpost; then
12199
12200 LINUX_SYMBOLS=Modules.symvers
12201
12202 else
12203
12204 LINUX_SYMBOLS=Module.symvers
12205
12206 fi
12207
12208
12209 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12210
12211 { { $as_echo "$as_me:$LINENO: error:
12212 *** Please make sure the kernel devel package for your distribution
12213 *** is installed. If your building with a custom kernel make sure the
12214 *** kernel is configured, built, and the '--with-linux=PATH' configure
12215 *** option refers to the location of the kernel source." >&5
12216 $as_echo "$as_me: error:
12217 *** Please make sure the kernel devel package for your distribution
12218 *** is installed. If your building with a custom kernel make sure the
12219 *** kernel is configured, built, and the '--with-linux=PATH' configure
12220 *** option refers to the location of the kernel source." >&2;}
12221 { (exit 1); exit 1; }; }
12222
12223 fi
12224
12225
12226 else
12227
12228 LINUX_SYMBOLS=NONE
12229
12230 fi
12231
12232 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12233 $as_echo "$LINUX_SYMBOLS" >&6; }
12234
12235
12236
12237
12238
12239 # Check whether --with-spl was given.
12240 if test "${with_spl+set}" = set; then
12241 withval=$with_spl; splsrc="$withval"
12242 fi
12243
12244
12245
12246 # Check whether --with-spl-obj was given.
12247 if test "${with_spl_obj+set}" = set; then
12248 withval=$with_spl_obj; splbuild="$withval"
12249 fi
12250
12251
12252
12253 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12254 $as_echo_n "checking spl source directory... " >&6; }
12255 if test -z "$splsrc"; then
12256
12257 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12258 2>/dev/null | tail -1`
12259
12260 if test -z "$sourcelink" || test ! -e $sourcelink; then
12261
12262 sourcelink=../spl
12263
12264 fi
12265
12266
12267 if test -e $sourcelink; then
12268
12269 splsrc=`readlink -f ${sourcelink}`
12270
12271 else
12272
12273 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12274 $as_echo "Not found" >&6; }
12275 { { $as_echo "$as_me:$LINENO: error:
12276 *** Please make sure the spl devel package for your distribution
12277 *** is installed then try again. If that fails you can specify the
12278 *** location of the spl source with the '--with-spl=PATH' option." >&5
12279 $as_echo "$as_me: 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." >&2;}
12283 { (exit 1); exit 1; }; }
12284
12285 fi
12286
12287
12288 else
12289
12290 if test "$splsrc" = "NONE"; then
12291
12292 splbuild=NONE
12293 splsrcver=NONE
12294
12295 fi
12296
12297
12298 fi
12299
12300
12301 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12302 $as_echo "$splsrc" >&6; }
12303 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12304 $as_echo_n "checking spl build directory... " >&6; }
12305 if test -z "$splbuild"; then
12306
12307 splbuild=${splsrc}
12308
12309 fi
12310
12311 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12312 $as_echo "$splbuild" >&6; }
12313
12314 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12315 $as_echo_n "checking spl source version... " >&6; }
12316 if test -r $splbuild/spl_config.h &&
12317 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
12318
12319
12320 splsrcver=`(echo "#include <spl_config.h>";
12321 echo "splsrcver=SPL_META_VERSION") |
12322 cpp -I $splbuild |
12323 grep "^splsrcver=" | cut -d \" -f 2`
12324
12325 fi
12326
12327
12328 if test -z "$splsrcver"; then
12329
12330 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12331 $as_echo "Not found" >&6; }
12332 { { $as_echo "$as_me:$LINENO: error:
12333 *** Cannot determine the version of the spl source.
12334 *** Please prepare the spl source before running this script" >&5
12335 $as_echo "$as_me: error:
12336 *** Cannot determine the version of the spl source.
12337 *** Please prepare the spl source before running this script" >&2;}
12338 { (exit 1); exit 1; }; }
12339
12340 fi
12341
12342
12343 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12344 $as_echo "$splsrcver" >&6; }
12345
12346 SPL=${splsrc}
12347 SPL_OBJ=${splbuild}
12348 SPL_VERSION=${splsrcver}
12349
12350
12351
12352
12353
12354
12355 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12356 $as_echo_n "checking spl file name for module symbols... " >&6; }
12357 if test -r $SPL_OBJ/Module.symvers; then
12358
12359 SPL_SYMBOLS=Module.symvers
12360
12361 elif test -r $SPL_OBJ/Modules.symvers; then
12362
12363 SPL_SYMBOLS=Modules.symvers
12364
12365 elif test -r $SPL_OBJ/module/Module.symvers; then
12366
12367 SPL_SYMBOLS=Module.symvers
12368
12369 elif test -r $SPL_OBJ/module/Modules.symvers; then
12370
12371 SPL_SYMBOLS=Modules.symvers
12372
12373 else
12374
12375 SPL_SYMBOLS=$LINUX_SYMBOLS
12376
12377 fi
12378
12379
12380 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12381 $as_echo "$SPL_SYMBOLS" >&6; }
12382
12383
12384
12385
12386
12387 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12388 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12389
12390
12391 cat confdefs.h - <<_ACEOF >conftest.c
12392 /* confdefs.h. */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12397
12398
12399 #include <linux/module.h>
12400
12401 int
12402 main (void)
12403 {
12404
12405 #ifndef CONFIG_PREEMPT
12406 #error CONFIG_PREEMPT not #defined
12407 #endif
12408
12409 ;
12410 return 0;
12411 }
12412
12413 _ACEOF
12414
12415
12416 rm -Rf build && mkdir -p build
12417 echo "obj-m := conftest.o" >build/Makefile
12418 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12426 ac_status=$?
12427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429
12430 { $as_echo "$as_me:$LINENO: result: yes" >&5
12431 $as_echo "yes" >&6; }
12432 { { $as_echo "$as_me:$LINENO: error:
12433 *** Kernel built with CONFIG_PREEMPT which is not supported.
12434 *** You must rebuild your kernel without this option." >&5
12435 $as_echo "$as_me: error:
12436 *** Kernel built with CONFIG_PREEMPT which is not supported.
12437 *** You must rebuild your kernel without this option." >&2;}
12438 { (exit 1); exit 1; }; }
12439
12440 else
12441 $as_echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444 { $as_echo "$as_me:$LINENO: result: no" >&5
12445 $as_echo "no" >&6; }
12446
12447
12448
12449
12450 fi
12451
12452 rm -Rf build
12453
12454
12455
12456
12457 if test "$ZFS_META_LICENSE" = CDDL; then
12458
12459 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12460 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12461
12462
12463 cat confdefs.h - <<_ACEOF >conftest.c
12464 /* confdefs.h. */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12469
12470
12471 #include <linux/module.h>
12472
12473 int
12474 main (void)
12475 {
12476
12477 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12478 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12479 #endif
12480
12481 ;
12482 return 0;
12483 }
12484
12485 _ACEOF
12486
12487
12488 rm -Rf build && mkdir -p build
12489 echo "obj-m := conftest.o" >build/Makefile
12490 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12493 ac_status=$?
12494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12498 ac_status=$?
12499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
12501
12502 { $as_echo "$as_me:$LINENO: result: yes" >&5
12503 $as_echo "yes" >&6; }
12504 { { $as_echo "$as_me:$LINENO: error:
12505 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12506 *** incompatible with the CDDL license. You must rebuild
12507 *** your kernel without this option." >&5
12508 $as_echo "$as_me: error:
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." >&2;}
12512 { (exit 1); exit 1; }; }
12513
12514 else
12515 $as_echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12517
12518 { $as_echo "$as_me:$LINENO: result: no" >&5
12519 $as_echo "no" >&6; }
12520
12521
12522
12523
12524 fi
12525
12526 rm -Rf build
12527
12528
12529
12530
12531 fi
12532
12533
12534 if test "$ZFS_META_LICENSE" = GPL; then
12535
12536
12537 cat >>confdefs.h <<\_ACEOF
12538 #define HAVE_GPL_ONLY_SYMBOLS 1
12539 _ACEOF
12540
12541
12542 fi
12543
12544
12545
12546 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12547 $as_echo_n "checking block device operation prototypes... " >&6; }
12548 tmp_flags="$EXTRA_KCFLAGS"
12549 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
12550
12551
12552 cat confdefs.h - <<_ACEOF >conftest.c
12553 /* confdefs.h. */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558
12559
12560 #include <linux/blkdev.h>
12561
12562 int
12563 main (void)
12564 {
12565
12566 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12567 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12568 int (*blk_ioctl) (struct block_device *, fmode_t,
12569 unsigned, unsigned long) = NULL;
12570 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12571 unsigned, unsigned long) = NULL;
12572 struct block_device_operations blk_ops = {
12573 .open = blk_open,
12574 .release = blk_release,
12575 .ioctl = blk_ioctl,
12576 .compat_ioctl = blk_compat_ioctl,
12577 };
12578
12579 blk_ops.open(NULL, 0);
12580 blk_ops.release(NULL, 0);
12581 blk_ops.ioctl(NULL, 0, 0, 0);
12582 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12583
12584 ;
12585 return 0;
12586 }
12587
12588 _ACEOF
12589
12590
12591 rm -Rf build && mkdir -p build
12592 echo "obj-m := conftest.o" >build/Makefile
12593 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12596 ac_status=$?
12597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12601 ac_status=$?
12602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; }; then
12604
12605 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12606 $as_echo "struct block_device" >&6; }
12607
12608 cat >>confdefs.h <<\_ACEOF
12609 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12610 _ACEOF
12611
12612
12613 else
12614 $as_echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12616
12617 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12618 $as_echo "struct inode" >&6; }
12619
12620
12621
12622 fi
12623
12624 rm -Rf build
12625
12626
12627 EXTRA_KCFLAGS="$tmp_flags"
12628
12629 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12630 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12631
12632
12633 cat confdefs.h - <<_ACEOF >conftest.c
12634 /* confdefs.h. */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639
12640
12641 #include <linux/types.h>
12642
12643 int
12644 main (void)
12645 {
12646
12647 fmode_t *ptr __attribute__ ((unused));
12648
12649 ;
12650 return 0;
12651 }
12652
12653 _ACEOF
12654
12655
12656 rm -Rf build && mkdir -p build
12657 echo "obj-m := conftest.o" >build/Makefile
12658 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12661 ac_status=$?
12662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12666 ac_status=$?
12667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12669
12670 { $as_echo "$as_me:$LINENO: result: yes" >&5
12671 $as_echo "yes" >&6; }
12672
12673 cat >>confdefs.h <<\_ACEOF
12674 #define HAVE_FMODE_T 1
12675 _ACEOF
12676
12677
12678 else
12679 $as_echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12681
12682 { $as_echo "$as_me:$LINENO: result: no" >&5
12683 $as_echo "no" >&6; }
12684
12685
12686
12687 fi
12688
12689 rm -Rf build
12690
12691
12692
12693
12694 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12695 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12696
12697
12698 cat confdefs.h - <<_ACEOF >conftest.c
12699 /* confdefs.h. */
12700 _ACEOF
12701 cat confdefs.h >>conftest.$ac_ext
12702 cat >>conftest.$ac_ext <<_ACEOF
12703 /* end confdefs.h. */
12704
12705
12706 #include <linux/kobject.h>
12707
12708 int
12709 main (void)
12710 {
12711
12712 int val __attribute__ ((unused));
12713 val = KOBJ_NAME_LEN;
12714
12715 ;
12716 return 0;
12717 }
12718
12719 _ACEOF
12720
12721
12722 rm -Rf build && mkdir -p build
12723 echo "obj-m := conftest.o" >build/Makefile
12724 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726 (eval $ac_try) 2>&5
12727 ac_status=$?
12728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12732 ac_status=$?
12733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; }; then
12735
12736 { $as_echo "$as_me:$LINENO: result: yes" >&5
12737 $as_echo "yes" >&6; }
12738
12739 cat >>confdefs.h <<\_ACEOF
12740 #define HAVE_KOBJ_NAME_LEN 1
12741 _ACEOF
12742
12743
12744 else
12745 $as_echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12747
12748 { $as_echo "$as_me:$LINENO: result: no" >&5
12749 $as_echo "no" >&6; }
12750
12751
12752
12753 fi
12754
12755 rm -Rf build
12756
12757
12758
12759
12760 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12761 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12762 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12763 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12764 rc=$?
12765 if test $rc -ne 0; then
12766
12767 export=0
12768 for file in fs/block_dev.c; do
12769 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
12770 rc=$?
12771 if test $rc -eq 0; then
12772
12773 export=1
12774 break;
12775
12776 fi
12777
12778 done
12779 if test $export -eq 0; then
12780
12781 { $as_echo "$as_me:$LINENO: result: no" >&5
12782 $as_echo "no" >&6; }
12783
12784
12785 else
12786
12787 { $as_echo "$as_me:$LINENO: result: yes" >&5
12788 $as_echo "yes" >&6; }
12789
12790 cat >>confdefs.h <<\_ACEOF
12791 #define HAVE_BLKDEV_GET_BY_PATH 1
12792 _ACEOF
12793
12794
12795 fi
12796
12797
12798 else
12799
12800 { $as_echo "$as_me:$LINENO: result: yes" >&5
12801 $as_echo "yes" >&6; }
12802
12803 cat >>confdefs.h <<\_ACEOF
12804 #define HAVE_BLKDEV_GET_BY_PATH 1
12805 _ACEOF
12806
12807
12808 fi
12809
12810
12811
12812
12813 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12814 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12815 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12816 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12817 rc=$?
12818 if test $rc -ne 0; then
12819
12820 export=0
12821 for file in fs/block_dev.c; do
12822 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12823 rc=$?
12824 if test $rc -eq 0; then
12825
12826 export=1
12827 break;
12828
12829 fi
12830
12831 done
12832 if test $export -eq 0; then
12833
12834 { $as_echo "$as_me:$LINENO: result: no" >&5
12835 $as_echo "no" >&6; }
12836
12837
12838 else
12839
12840 { $as_echo "$as_me:$LINENO: result: yes" >&5
12841 $as_echo "yes" >&6; }
12842
12843 cat >>confdefs.h <<\_ACEOF
12844 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12845 _ACEOF
12846
12847
12848 fi
12849
12850
12851 else
12852
12853 { $as_echo "$as_me:$LINENO: result: yes" >&5
12854 $as_echo "yes" >&6; }
12855
12856 cat >>confdefs.h <<\_ACEOF
12857 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12858 _ACEOF
12859
12860
12861 fi
12862
12863
12864
12865
12866 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12867 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12868
12869
12870 cat confdefs.h - <<_ACEOF >conftest.c
12871 /* confdefs.h. */
12872 _ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12876
12877
12878 #include <linux/buffer_head.h>
12879
12880 int
12881 main (void)
12882 {
12883
12884 struct block_device *bdev = NULL;
12885 invalidate_bdev(bdev);
12886
12887 ;
12888 return 0;
12889 }
12890
12891 _ACEOF
12892
12893
12894 rm -Rf build && mkdir -p build
12895 echo "obj-m := conftest.o" >build/Makefile
12896 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898 (eval $ac_try) 2>&5
12899 ac_status=$?
12900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12904 ac_status=$?
12905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; }; then
12907
12908 { $as_echo "$as_me:$LINENO: result: yes" >&5
12909 $as_echo "yes" >&6; }
12910
12911 cat >>confdefs.h <<\_ACEOF
12912 #define HAVE_1ARG_INVALIDATE_BDEV 1
12913 _ACEOF
12914
12915
12916 else
12917 $as_echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12919
12920 { $as_echo "$as_me:$LINENO: result: no" >&5
12921 $as_echo "no" >&6; }
12922
12923
12924
12925 fi
12926
12927 rm -Rf build
12928
12929
12930
12931
12932 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12933 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12934 tmp_flags="$EXTRA_KCFLAGS"
12935 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
12936
12937
12938 cat confdefs.h - <<_ACEOF >conftest.c
12939 /* confdefs.h. */
12940 _ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h. */
12944
12945
12946 #include <linux/blkdev.h>
12947
12948 int
12949 main (void)
12950 {
12951
12952 struct block_device *bdev = NULL;
12953 bdev_logical_block_size(bdev);
12954
12955 ;
12956 return 0;
12957 }
12958
12959 _ACEOF
12960
12961
12962 rm -Rf build && mkdir -p build
12963 echo "obj-m := conftest.o" >build/Makefile
12964 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12967 ac_status=$?
12968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12972 ac_status=$?
12973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12975
12976 { $as_echo "$as_me:$LINENO: result: yes" >&5
12977 $as_echo "yes" >&6; }
12978
12979 cat >>confdefs.h <<\_ACEOF
12980 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12981 _ACEOF
12982
12983
12984 else
12985 $as_echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12987
12988 { $as_echo "$as_me:$LINENO: result: no" >&5
12989 $as_echo "no" >&6; }
12990
12991
12992
12993 fi
12994
12995 rm -Rf build
12996
12997
12998 EXTRA_KCFLAGS="$tmp_flags"
12999
13000
13001 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
13002 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
13003 EXTRA_KCFLAGS="-Werror"
13004
13005
13006 cat confdefs.h - <<_ACEOF >conftest.c
13007 /* confdefs.h. */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012
13013
13014 #include <linux/bio.h>
13015
13016 int
13017 main (void)
13018 {
13019
13020 struct bio bio;
13021 (void)bio_empty_barrier(&bio);
13022
13023 ;
13024 return 0;
13025 }
13026
13027 _ACEOF
13028
13029
13030 rm -Rf build && mkdir -p build
13031 echo "obj-m := conftest.o" >build/Makefile
13032 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13035 ac_status=$?
13036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043
13044 { $as_echo "$as_me:$LINENO: result: yes" >&5
13045 $as_echo "yes" >&6; }
13046
13047 cat >>confdefs.h <<\_ACEOF
13048 #define HAVE_BIO_EMPTY_BARRIER 1
13049 _ACEOF
13050
13051
13052 else
13053 $as_echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13055
13056 { $as_echo "$as_me:$LINENO: result: no" >&5
13057 $as_echo "no" >&6; }
13058
13059
13060
13061 fi
13062
13063 rm -Rf build
13064
13065
13066
13067
13068 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
13069 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13070
13071
13072 cat confdefs.h - <<_ACEOF >conftest.c
13073 /* confdefs.h. */
13074 _ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13078
13079
13080 #include <linux/bio.h>
13081
13082 int
13083 main (void)
13084 {
13085
13086 int flags __attribute__ ((unused));
13087 flags = (1 << BIO_RW_FAILFAST);
13088
13089 ;
13090 return 0;
13091 }
13092
13093 _ACEOF
13094
13095
13096 rm -Rf build && mkdir -p build
13097 echo "obj-m := conftest.o" >build/Makefile
13098 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13101 ac_status=$?
13102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109
13110 { $as_echo "$as_me:$LINENO: result: yes" >&5
13111 $as_echo "yes" >&6; }
13112
13113 cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_BIO_RW_FAILFAST 1
13115 _ACEOF
13116
13117
13118 else
13119 $as_echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13121
13122 { $as_echo "$as_me:$LINENO: result: no" >&5
13123 $as_echo "no" >&6; }
13124
13125
13126
13127 fi
13128
13129 rm -Rf build
13130
13131
13132
13133
13134 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
13135 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13136
13137
13138 cat confdefs.h - <<_ACEOF >conftest.c
13139 /* confdefs.h. */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144
13145
13146 #include <linux/bio.h>
13147
13148 int
13149 main (void)
13150 {
13151
13152 int flags __attribute__ ((unused));
13153 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13154 (1 << BIO_RW_FAILFAST_TRANSPORT) |
13155 (1 << BIO_RW_FAILFAST_DRIVER));
13156
13157 ;
13158 return 0;
13159 }
13160
13161 _ACEOF
13162
13163
13164 rm -Rf build && mkdir -p build
13165 echo "obj-m := conftest.o" >build/Makefile
13166 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13169 ac_status=$?
13170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13174 ac_status=$?
13175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177
13178 { $as_echo "$as_me:$LINENO: result: yes" >&5
13179 $as_echo "yes" >&6; }
13180
13181 cat >>confdefs.h <<\_ACEOF
13182 #define HAVE_BIO_RW_FAILFAST_DTD 1
13183 _ACEOF
13184
13185
13186 else
13187 $as_echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13189
13190 { $as_echo "$as_me:$LINENO: result: no" >&5
13191 $as_echo "no" >&6; }
13192
13193
13194
13195 fi
13196
13197 rm -Rf build
13198
13199
13200
13201
13202 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13203 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13204
13205
13206 cat confdefs.h - <<_ACEOF >conftest.c
13207 /* confdefs.h. */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13212
13213
13214 #include <linux/bio.h>
13215
13216 int
13217 main (void)
13218 {
13219
13220 int flags __attribute__ ((unused));
13221 flags = REQ_FAILFAST_MASK;
13222
13223 ;
13224 return 0;
13225 }
13226
13227 _ACEOF
13228
13229
13230 rm -Rf build && mkdir -p build
13231 echo "obj-m := conftest.o" >build/Makefile
13232 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13235 ac_status=$?
13236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
13243
13244 { $as_echo "$as_me:$LINENO: result: yes" >&5
13245 $as_echo "yes" >&6; }
13246
13247 cat >>confdefs.h <<\_ACEOF
13248 #define HAVE_BIO_REQ_FAILFAST_MASK 1
13249 _ACEOF
13250
13251
13252 else
13253 $as_echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13255
13256 { $as_echo "$as_me:$LINENO: result: no" >&5
13257 $as_echo "no" >&6; }
13258
13259
13260
13261 fi
13262
13263 rm -Rf build
13264
13265
13266
13267
13268 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13269 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13270 tmp_flags="$EXTRA_KCFLAGS"
13271 EXTRA_KCFLAGS="-Werror"
13272
13273
13274 cat confdefs.h - <<_ACEOF >conftest.c
13275 /* confdefs.h. */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13280
13281
13282 #include <linux/bio.h>
13283
13284 int
13285 main (void)
13286 {
13287
13288 void (*wanted_end_io)(struct bio *, int) = NULL;
13289 bio_end_io_t *local_end_io __attribute__ ((unused));
13290
13291 local_end_io = wanted_end_io;
13292
13293 ;
13294 return 0;
13295 }
13296
13297 _ACEOF
13298
13299
13300 rm -Rf build && mkdir -p build
13301 echo "obj-m := conftest.o" >build/Makefile
13302 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13305 ac_status=$?
13306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; }; then
13313
13314 { $as_echo "$as_me:$LINENO: result: yes" >&5
13315 $as_echo "yes" >&6; }
13316
13317 cat >>confdefs.h <<\_ACEOF
13318 #define HAVE_2ARGS_BIO_END_IO_T 1
13319 _ACEOF
13320
13321
13322 else
13323 $as_echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326 { $as_echo "$as_me:$LINENO: result: no" >&5
13327 $as_echo "no" >&6; }
13328
13329
13330
13331 fi
13332
13333 rm -Rf build
13334
13335
13336 EXTRA_KCFLAGS="$tmp_flags"
13337
13338
13339 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13340 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13341
13342
13343 cat confdefs.h - <<_ACEOF >conftest.c
13344 /* confdefs.h. */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349
13350
13351 #include <linux/bio.h>
13352
13353 int
13354 main (void)
13355 {
13356
13357 int flags __attribute__ ((unused));
13358 flags = BIO_RW_SYNC;
13359
13360 ;
13361 return 0;
13362 }
13363
13364 _ACEOF
13365
13366
13367 rm -Rf build && mkdir -p build
13368 echo "obj-m := conftest.o" >build/Makefile
13369 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13372 ac_status=$?
13373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13377 ac_status=$?
13378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; }; then
13380
13381 { $as_echo "$as_me:$LINENO: result: yes" >&5
13382 $as_echo "yes" >&6; }
13383
13384 cat >>confdefs.h <<\_ACEOF
13385 #define HAVE_BIO_RW_SYNC 1
13386 _ACEOF
13387
13388
13389 else
13390 $as_echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13392
13393 { $as_echo "$as_me:$LINENO: result: no" >&5
13394 $as_echo "no" >&6; }
13395
13396
13397
13398 fi
13399
13400 rm -Rf build
13401
13402
13403
13404
13405 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13406 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13407
13408
13409 cat confdefs.h - <<_ACEOF >conftest.c
13410 /* confdefs.h. */
13411 _ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h. */
13415
13416
13417 #include <linux/bio.h>
13418
13419 int
13420 main (void)
13421 {
13422
13423 int flags __attribute__ ((unused));
13424 flags = BIO_RW_SYNCIO;
13425
13426 ;
13427 return 0;
13428 }
13429
13430 _ACEOF
13431
13432
13433 rm -Rf build && mkdir -p build
13434 echo "obj-m := conftest.o" >build/Makefile
13435 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13443 ac_status=$?
13444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446
13447 { $as_echo "$as_me:$LINENO: result: yes" >&5
13448 $as_echo "yes" >&6; }
13449
13450 cat >>confdefs.h <<\_ACEOF
13451 #define HAVE_BIO_RW_SYNCIO 1
13452 _ACEOF
13453
13454
13455 else
13456 $as_echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13458
13459 { $as_echo "$as_me:$LINENO: result: no" >&5
13460 $as_echo "no" >&6; }
13461
13462
13463
13464 fi
13465
13466 rm -Rf build
13467
13468
13469
13470
13471 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13472 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13473
13474
13475 cat confdefs.h - <<_ACEOF >conftest.c
13476 /* confdefs.h. */
13477 _ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h. */
13481
13482
13483 #include <linux/bio.h>
13484
13485 int
13486 main (void)
13487 {
13488
13489 int flags __attribute__ ((unused));
13490 flags = REQ_SYNC;
13491
13492 ;
13493 return 0;
13494 }
13495
13496 _ACEOF
13497
13498
13499 rm -Rf build && mkdir -p build
13500 echo "obj-m := conftest.o" >build/Makefile
13501 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13504 ac_status=$?
13505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13509 ac_status=$?
13510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13512
13513 { $as_echo "$as_me:$LINENO: result: yes" >&5
13514 $as_echo "yes" >&6; }
13515
13516 cat >>confdefs.h <<\_ACEOF
13517 #define HAVE_REQ_SYNC 1
13518 _ACEOF
13519
13520
13521 else
13522 $as_echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13524
13525 { $as_echo "$as_me:$LINENO: result: no" >&5
13526 $as_echo "no" >&6; }
13527
13528
13529
13530 fi
13531
13532 rm -Rf build
13533
13534
13535
13536
13537 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13538 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13539 tmp_flags="$EXTRA_KCFLAGS"
13540 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13541
13542
13543 cat confdefs.h - <<_ACEOF >conftest.c
13544 /* confdefs.h. */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13549
13550
13551 #include <linux/blkdev.h>
13552
13553 int
13554 main (void)
13555 {
13556
13557 struct request *req = NULL;
13558 (void) blk_end_request(req, 0, 0);
13559
13560 ;
13561 return 0;
13562 }
13563
13564 _ACEOF
13565
13566
13567 rm -Rf build && mkdir -p build
13568 echo "obj-m := conftest.o" >build/Makefile
13569 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13572 ac_status=$?
13573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13577 ac_status=$?
13578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580
13581 { $as_echo "$as_me:$LINENO: result: yes" >&5
13582 $as_echo "yes" >&6; }
13583
13584 cat >>confdefs.h <<\_ACEOF
13585 #define HAVE_BLK_END_REQUEST 1
13586 _ACEOF
13587
13588
13589 else
13590 $as_echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13592
13593 { $as_echo "$as_me:$LINENO: result: no" >&5
13594 $as_echo "no" >&6; }
13595
13596
13597
13598 fi
13599
13600 rm -Rf build
13601
13602
13603
13604 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13605 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13606
13607
13608 cat confdefs.h - <<_ACEOF >conftest.c
13609 /* confdefs.h. */
13610 _ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13614
13615
13616 #include <linux/module.h>
13617 #include <linux/blkdev.h>
13618
13619 MODULE_LICENSE("CDDL");
13620
13621 int
13622 main (void)
13623 {
13624
13625 struct request *req = NULL;
13626 (void) blk_end_request(req, 0, 0);
13627
13628 ;
13629 return 0;
13630 }
13631
13632 _ACEOF
13633
13634
13635 rm -Rf build && mkdir -p build
13636 echo "obj-m := conftest.o" >build/Makefile
13637 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5
13640 ac_status=$?
13641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13648
13649 { $as_echo "$as_me:$LINENO: result: no" >&5
13650 $as_echo "no" >&6; }
13651
13652 else
13653 $as_echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13655
13656 { $as_echo "$as_me:$LINENO: result: yes" >&5
13657 $as_echo "yes" >&6; }
13658
13659 cat >>confdefs.h <<\_ACEOF
13660 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13661 _ACEOF
13662
13663
13664
13665
13666 fi
13667
13668 rm -Rf build
13669
13670
13671 EXTRA_KCFLAGS="$tmp_flags"
13672
13673
13674 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
13675 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
13676 tmp_flags="$EXTRA_KCFLAGS"
13677 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13678
13679
13680 cat confdefs.h - <<_ACEOF >conftest.c
13681 /* confdefs.h. */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13686
13687
13688 #include <linux/blkdev.h>
13689
13690 int
13691 main (void)
13692 {
13693
13694 struct request_queue *q = NULL;
13695 (void) blk_fetch_request(q);
13696
13697 ;
13698 return 0;
13699 }
13700
13701 _ACEOF
13702
13703
13704 rm -Rf build && mkdir -p build
13705 echo "obj-m := conftest.o" >build/Makefile
13706 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13714 ac_status=$?
13715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; }; then
13717
13718 { $as_echo "$as_me:$LINENO: result: yes" >&5
13719 $as_echo "yes" >&6; }
13720
13721 cat >>confdefs.h <<\_ACEOF
13722 #define HAVE_BLK_FETCH_REQUEST 1
13723 _ACEOF
13724
13725
13726 else
13727 $as_echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13729
13730 { $as_echo "$as_me:$LINENO: result: no" >&5
13731 $as_echo "no" >&6; }
13732
13733
13734
13735 fi
13736
13737 rm -Rf build
13738
13739
13740 EXTRA_KCFLAGS="$tmp_flags"
13741
13742
13743 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
13744 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13745 tmp_flags="$EXTRA_KCFLAGS"
13746 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13747
13748
13749 cat confdefs.h - <<_ACEOF >conftest.c
13750 /* confdefs.h. */
13751 _ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h. */
13755
13756
13757 #include <linux/blkdev.h>
13758
13759 int
13760 main (void)
13761 {
13762
13763 struct request_queue *q = NULL;
13764 struct request *req = NULL;
13765 blk_requeue_request(q, req);
13766
13767 ;
13768 return 0;
13769 }
13770
13771 _ACEOF
13772
13773
13774 rm -Rf build && mkdir -p build
13775 echo "obj-m := conftest.o" >build/Makefile
13776 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787
13788 { $as_echo "$as_me:$LINENO: result: yes" >&5
13789 $as_echo "yes" >&6; }
13790
13791 cat >>confdefs.h <<\_ACEOF
13792 #define HAVE_BLK_REQUEUE_REQUEST 1
13793 _ACEOF
13794
13795
13796 else
13797 $as_echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13799
13800 { $as_echo "$as_me:$LINENO: result: no" >&5
13801 $as_echo "no" >&6; }
13802
13803
13804
13805 fi
13806
13807 rm -Rf build
13808
13809
13810 EXTRA_KCFLAGS="$tmp_flags"
13811
13812
13813 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
13814 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13815 tmp_flags="$EXTRA_KCFLAGS"
13816 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13817
13818
13819 cat confdefs.h - <<_ACEOF >conftest.c
13820 /* confdefs.h. */
13821 _ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825
13826
13827 #include <linux/blkdev.h>
13828
13829 int
13830 main (void)
13831 {
13832
13833 struct request *req = NULL;
13834 (void) blk_rq_bytes(req);
13835
13836 ;
13837 return 0;
13838 }
13839
13840 _ACEOF
13841
13842
13843 rm -Rf build && mkdir -p build
13844 echo "obj-m := conftest.o" >build/Makefile
13845 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13848 ac_status=$?
13849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856
13857 { $as_echo "$as_me:$LINENO: result: yes" >&5
13858 $as_echo "yes" >&6; }
13859
13860 cat >>confdefs.h <<\_ACEOF
13861 #define HAVE_BLK_RQ_BYTES 1
13862 _ACEOF
13863
13864
13865 else
13866 $as_echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13868
13869 { $as_echo "$as_me:$LINENO: result: no" >&5
13870 $as_echo "no" >&6; }
13871
13872
13873
13874 fi
13875
13876 rm -Rf build
13877
13878
13879
13880 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
13881 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13882
13883
13884 cat confdefs.h - <<_ACEOF >conftest.c
13885 /* confdefs.h. */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890
13891
13892 #include <linux/module.h>
13893 #include <linux/blkdev.h>
13894
13895 MODULE_LICENSE("CDDL");
13896
13897 int
13898 main (void)
13899 {
13900
13901 struct request *req = NULL;
13902 (void) blk_rq_bytes(req);
13903
13904 ;
13905 return 0;
13906 }
13907
13908 _ACEOF
13909
13910
13911 rm -Rf build && mkdir -p build
13912 echo "obj-m := conftest.o" >build/Makefile
13913 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924
13925 { $as_echo "$as_me:$LINENO: result: no" >&5
13926 $as_echo "no" >&6; }
13927
13928 else
13929 $as_echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13931
13932 { $as_echo "$as_me:$LINENO: result: yes" >&5
13933 $as_echo "yes" >&6; }
13934
13935 cat >>confdefs.h <<\_ACEOF
13936 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
13937 _ACEOF
13938
13939
13940
13941
13942 fi
13943
13944 rm -Rf build
13945
13946
13947 EXTRA_KCFLAGS="$tmp_flags"
13948
13949
13950 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
13951 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13952 tmp_flags="$EXTRA_KCFLAGS"
13953 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13954
13955
13956 cat confdefs.h - <<_ACEOF >conftest.c
13957 /* confdefs.h. */
13958 _ACEOF
13959 cat confdefs.h >>conftest.$ac_ext
13960 cat >>conftest.$ac_ext <<_ACEOF
13961 /* end confdefs.h. */
13962
13963
13964 #include <linux/blkdev.h>
13965
13966 int
13967 main (void)
13968 {
13969
13970 struct request *req = NULL;
13971 (void) blk_rq_pos(req);
13972
13973 ;
13974 return 0;
13975 }
13976
13977 _ACEOF
13978
13979
13980 rm -Rf build && mkdir -p build
13981 echo "obj-m := conftest.o" >build/Makefile
13982 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13985 ac_status=$?
13986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
13991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993
13994 { $as_echo "$as_me:$LINENO: result: yes" >&5
13995 $as_echo "yes" >&6; }
13996
13997 cat >>confdefs.h <<\_ACEOF
13998 #define HAVE_BLK_RQ_POS 1
13999 _ACEOF
14000
14001
14002 else
14003 $as_echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14005
14006 { $as_echo "$as_me:$LINENO: result: no" >&5
14007 $as_echo "no" >&6; }
14008
14009
14010
14011 fi
14012
14013 rm -Rf build
14014
14015
14016 EXTRA_KCFLAGS="$tmp_flags"
14017
14018
14019 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
14020 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
14021 tmp_flags="$EXTRA_KCFLAGS"
14022 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14023
14024
14025 cat confdefs.h - <<_ACEOF >conftest.c
14026 /* confdefs.h. */
14027 _ACEOF
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h. */
14031
14032
14033 #include <linux/blkdev.h>
14034
14035 int
14036 main (void)
14037 {
14038
14039 struct request *req = NULL;
14040 (void) blk_rq_sectors(req);
14041
14042 ;
14043 return 0;
14044 }
14045
14046 _ACEOF
14047
14048
14049 rm -Rf build && mkdir -p build
14050 echo "obj-m := conftest.o" >build/Makefile
14051 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14054 ac_status=$?
14055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
14062
14063 { $as_echo "$as_me:$LINENO: result: yes" >&5
14064 $as_echo "yes" >&6; }
14065
14066 cat >>confdefs.h <<\_ACEOF
14067 #define HAVE_BLK_RQ_SECTORS 1
14068 _ACEOF
14069
14070
14071 else
14072 $as_echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14074
14075 { $as_echo "$as_me:$LINENO: result: no" >&5
14076 $as_echo "no" >&6; }
14077
14078
14079
14080 fi
14081
14082 rm -Rf build
14083
14084
14085 EXTRA_KCFLAGS="$tmp_flags"
14086
14087
14088 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
14089 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14090 tmp_flags="$EXTRA_KCFLAGS"
14091 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14092
14093
14094 cat confdefs.h - <<_ACEOF >conftest.c
14095 /* confdefs.h. */
14096 _ACEOF
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h. */
14100
14101
14102 #include <linux/blkdev.h>
14103
14104 int
14105 main (void)
14106 {
14107
14108 struct gendisk *disk = NULL;
14109 (void) get_disk_ro(disk);
14110
14111 ;
14112 return 0;
14113 }
14114
14115 _ACEOF
14116
14117
14118 rm -Rf build && mkdir -p build
14119 echo "obj-m := conftest.o" >build/Makefile
14120 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14123 ac_status=$?
14124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
14131
14132 { $as_echo "$as_me:$LINENO: result: yes" >&5
14133 $as_echo "yes" >&6; }
14134
14135 cat >>confdefs.h <<\_ACEOF
14136 #define HAVE_GET_DISK_RO 1
14137 _ACEOF
14138
14139
14140 else
14141 $as_echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14143
14144 { $as_echo "$as_me:$LINENO: result: no" >&5
14145 $as_echo "no" >&6; }
14146
14147
14148
14149 fi
14150
14151 rm -Rf build
14152
14153
14154 EXTRA_KCFLAGS="$tmp_flags"
14155
14156
14157 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
14158 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
14159 tmp_flags="$EXTRA_KCFLAGS"
14160 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14161
14162
14163 cat confdefs.h - <<_ACEOF >conftest.c
14164 /* confdefs.h. */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14169
14170
14171 #include <linux/blkdev.h>
14172
14173 int
14174 main (void)
14175 {
14176
14177 struct request *req = NULL;
14178 (void) rq_is_sync(req);
14179
14180 ;
14181 return 0;
14182 }
14183
14184 _ACEOF
14185
14186
14187 rm -Rf build && mkdir -p build
14188 echo "obj-m := conftest.o" >build/Makefile
14189 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14192 ac_status=$?
14193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
14200
14201 { $as_echo "$as_me:$LINENO: result: yes" >&5
14202 $as_echo "yes" >&6; }
14203
14204 cat >>confdefs.h <<\_ACEOF
14205 #define HAVE_RQ_IS_SYNC 1
14206 _ACEOF
14207
14208
14209 else
14210 $as_echo "$as_me: failed program was:" >&5
14211 sed 's/^/| /' conftest.$ac_ext >&5
14212
14213 { $as_echo "$as_me:$LINENO: result: no" >&5
14214 $as_echo "no" >&6; }
14215
14216
14217
14218 fi
14219
14220 rm -Rf build
14221
14222
14223 EXTRA_KCFLAGS="$tmp_flags"
14224
14225
14226 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
14227 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
14228 tmp_flags="$EXTRA_KCFLAGS"
14229 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14230
14231
14232 cat confdefs.h - <<_ACEOF >conftest.c
14233 /* confdefs.h. */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238
14239
14240 #include <linux/blkdev.h>
14241
14242 int
14243 main (void)
14244 {
14245
14246 struct bio_vec *bv;
14247 struct req_iterator iter;
14248 struct request *req = NULL;
14249 rq_for_each_segment(bv, req, iter) { }
14250
14251 ;
14252 return 0;
14253 }
14254
14255 _ACEOF
14256
14257
14258 rm -Rf build && mkdir -p build
14259 echo "obj-m := conftest.o" >build/Makefile
14260 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14268 ac_status=$?
14269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271
14272 { $as_echo "$as_me:$LINENO: result: yes" >&5
14273 $as_echo "yes" >&6; }
14274
14275 cat >>confdefs.h <<\_ACEOF
14276 #define HAVE_RQ_FOR_EACH_SEGMENT 1
14277 _ACEOF
14278
14279
14280 else
14281 $as_echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14283
14284 { $as_echo "$as_me:$LINENO: result: no" >&5
14285 $as_echo "no" >&6; }
14286
14287
14288
14289 fi
14290
14291 rm -Rf build
14292
14293
14294 EXTRA_KCFLAGS="$tmp_flags"
14295
14296 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
14297 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
14298
14299
14300 cat confdefs.h - <<_ACEOF >conftest.c
14301 /* confdefs.h. */
14302 _ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306
14307
14308 #include <linux/fs.h>
14309 #include <linux/xattr.h>
14310
14311 const struct xattr_handler xattr_test_handler = {
14312 .prefix = "test",
14313 .get = NULL,
14314 .set = NULL,
14315 };
14316
14317 const struct xattr_handler *xattr_handlers[] = {
14318 &xattr_test_handler,
14319 };
14320
14321 int
14322 main (void)
14323 {
14324
14325 struct super_block sb __attribute__ ((unused));
14326
14327 sb.s_xattr = xattr_handlers;
14328
14329 ;
14330 return 0;
14331 }
14332
14333 _ACEOF
14334
14335
14336 rm -Rf build && mkdir -p build
14337 echo "obj-m := conftest.o" >build/Makefile
14338 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345 (eval $ac_try) 2>&5
14346 ac_status=$?
14347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }; }; then
14349
14350 { $as_echo "$as_me:$LINENO: result: yes" >&5
14351 $as_echo "yes" >&6; }
14352
14353 cat >>confdefs.h <<\_ACEOF
14354 #define HAVE_CONST_XATTR_HANDLER 1
14355 _ACEOF
14356
14357
14358 else
14359 $as_echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14361
14362 { $as_echo "$as_me:$LINENO: result: no" >&5
14363 $as_echo "no" >&6; }
14364
14365
14366
14367 fi
14368
14369 rm -Rf build
14370
14371
14372
14373
14374 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
14375 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14376
14377
14378 cat confdefs.h - <<_ACEOF >conftest.c
14379 /* confdefs.h. */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384
14385
14386 #include <linux/xattr.h>
14387
14388 int
14389 main (void)
14390 {
14391
14392 int (*get)(struct dentry *dentry, const char *name,
14393 void *buffer, size_t size, int handler_flags) = NULL;
14394 struct xattr_handler xops __attribute__ ((unused));
14395
14396 xops.get = get;
14397
14398 ;
14399 return 0;
14400 }
14401
14402 _ACEOF
14403
14404
14405 rm -Rf build && mkdir -p build
14406 echo "obj-m := conftest.o" >build/Makefile
14407 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14409 (eval $ac_try) 2>&5
14410 ac_status=$?
14411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14415 ac_status=$?
14416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418
14419 { $as_echo "$as_me:$LINENO: result: yes" >&5
14420 $as_echo "yes" >&6; }
14421
14422 cat >>confdefs.h <<\_ACEOF
14423 #define HAVE_DENTRY_XATTR_GET 1
14424 _ACEOF
14425
14426
14427 else
14428 $as_echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14430
14431 { $as_echo "$as_me:$LINENO: result: no" >&5
14432 $as_echo "no" >&6; }
14433
14434
14435
14436 fi
14437
14438 rm -Rf build
14439
14440
14441
14442
14443 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
14444 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
14445
14446
14447 cat confdefs.h - <<_ACEOF >conftest.c
14448 /* confdefs.h. */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453
14454
14455 #include <linux/xattr.h>
14456
14457 int
14458 main (void)
14459 {
14460
14461 int (*set)(struct dentry *dentry, const char *name,
14462 const void *buffer, size_t size, int flags,
14463 int handler_flags) = NULL;
14464 struct xattr_handler xops __attribute__ ((unused));
14465
14466 xops.set = set;
14467
14468 ;
14469 return 0;
14470 }
14471
14472 _ACEOF
14473
14474
14475 rm -Rf build && mkdir -p build
14476 echo "obj-m := conftest.o" >build/Makefile
14477 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14480 ac_status=$?
14481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14485 ac_status=$?
14486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; }; then
14488
14489 { $as_echo "$as_me:$LINENO: result: yes" >&5
14490 $as_echo "yes" >&6; }
14491
14492 cat >>confdefs.h <<\_ACEOF
14493 #define HAVE_DENTRY_XATTR_SET 1
14494 _ACEOF
14495
14496
14497 else
14498 $as_echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14500
14501 { $as_echo "$as_me:$LINENO: result: no" >&5
14502 $as_echo "no" >&6; }
14503
14504
14505
14506 fi
14507
14508 rm -Rf build
14509
14510
14511
14512
14513 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
14514 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
14515
14516
14517
14518 cat confdefs.h - <<_ACEOF >conftest.c
14519 /* confdefs.h. */
14520 _ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14524
14525
14526 #include <linux/fs.h>
14527
14528 int
14529 main (void)
14530 {
14531
14532 int (*fsync) (struct file *, struct dentry *, int) = NULL;
14533 struct file_operations fops __attribute__ ((unused));
14534
14535 fops.fsync = fsync;
14536
14537 ;
14538 return 0;
14539 }
14540
14541 _ACEOF
14542
14543
14544 rm -Rf build && mkdir -p build
14545 echo "obj-m := conftest.o" >build/Makefile
14546 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14549 ac_status=$?
14550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14554 ac_status=$?
14555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; }; then
14557
14558 { $as_echo "$as_me:$LINENO: result: dentry" >&5
14559 $as_echo "dentry" >&6; }
14560
14561 cat >>confdefs.h <<\_ACEOF
14562 #define HAVE_FSYNC_WITH_DENTRY 1
14563 _ACEOF
14564
14565
14566 else
14567 $as_echo "$as_me: failed program was:" >&5
14568 sed 's/^/| /' conftest.$ac_ext >&5
14569
14570
14571
14572
14573 fi
14574
14575 rm -Rf build
14576
14577
14578
14579
14580
14581
14582 cat confdefs.h - <<_ACEOF >conftest.c
14583 /* confdefs.h. */
14584 _ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14588
14589
14590 #include <linux/fs.h>
14591
14592 int
14593 main (void)
14594 {
14595
14596 int (*fsync) (struct file *, int) = NULL;
14597 struct file_operations fops __attribute__ ((unused));
14598
14599 fops.fsync = fsync;
14600
14601 ;
14602 return 0;
14603 }
14604
14605 _ACEOF
14606
14607
14608 rm -Rf build && mkdir -p build
14609 echo "obj-m := conftest.o" >build/Makefile
14610 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14613 ac_status=$?
14614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14618 ac_status=$?
14619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14621
14622 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
14623 $as_echo "no dentry" >&6; }
14624
14625 cat >>confdefs.h <<\_ACEOF
14626 #define HAVE_FSYNC_WITHOUT_DENTRY 1
14627 _ACEOF
14628
14629
14630 else
14631 $as_echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14633
14634
14635
14636
14637 fi
14638
14639 rm -Rf build
14640
14641
14642
14643
14644
14645
14646 cat confdefs.h - <<_ACEOF >conftest.c
14647 /* confdefs.h. */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652
14653
14654 #include <linux/fs.h>
14655
14656 int
14657 main (void)
14658 {
14659
14660 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
14661 struct file_operations fops __attribute__ ((unused));
14662
14663 fops.fsync = fsync;
14664
14665 ;
14666 return 0;
14667 }
14668
14669 _ACEOF
14670
14671
14672 rm -Rf build && mkdir -p build
14673 echo "obj-m := conftest.o" >build/Makefile
14674 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14677 ac_status=$?
14678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14682 ac_status=$?
14683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685
14686 { $as_echo "$as_me:$LINENO: result: range" >&5
14687 $as_echo "range" >&6; }
14688
14689 cat >>confdefs.h <<\_ACEOF
14690 #define HAVE_FSYNC_RANGE 1
14691 _ACEOF
14692
14693
14694 else
14695 $as_echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14697
14698
14699
14700
14701 fi
14702
14703 rm -Rf build
14704
14705
14706
14707
14708
14709 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
14710 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
14711
14712
14713 cat confdefs.h - <<_ACEOF >conftest.c
14714 /* confdefs.h. */
14715 _ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14719
14720
14721 #include <linux/fs.h>
14722
14723 int
14724 main (void)
14725 {
14726
14727 void (*evict_inode) (struct inode *) = NULL;
14728 struct super_operations sops __attribute__ ((unused)) = {
14729 .evict_inode = evict_inode,
14730 };
14731
14732 ;
14733 return 0;
14734 }
14735
14736 _ACEOF
14737
14738
14739 rm -Rf build && mkdir -p build
14740 echo "obj-m := conftest.o" >build/Makefile
14741 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14744 ac_status=$?
14745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752
14753 { $as_echo "$as_me:$LINENO: result: yes" >&5
14754 $as_echo "yes" >&6; }
14755
14756 cat >>confdefs.h <<\_ACEOF
14757 #define HAVE_EVICT_INODE 1
14758 _ACEOF
14759
14760
14761 else
14762 $as_echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14764
14765 { $as_echo "$as_me:$LINENO: result: no" >&5
14766 $as_echo "no" >&6; }
14767
14768
14769
14770 fi
14771
14772 rm -Rf build
14773
14774
14775
14776
14777 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
14778 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
14779
14780
14781 cat confdefs.h - <<_ACEOF >conftest.c
14782 /* confdefs.h. */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787
14788
14789 #include <linux/fs.h>
14790
14791 int
14792 main (void)
14793 {
14794
14795 int (*nr_cached_objects)(struct super_block *)
14796 __attribute__ ((unused)) = NULL;
14797 struct super_operations sops __attribute__ ((unused)) = {
14798 .nr_cached_objects = nr_cached_objects,
14799 };
14800
14801 ;
14802 return 0;
14803 }
14804
14805 _ACEOF
14806
14807
14808 rm -Rf build && mkdir -p build
14809 echo "obj-m := conftest.o" >build/Makefile
14810 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
14819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821
14822 { $as_echo "$as_me:$LINENO: result: yes" >&5
14823 $as_echo "yes" >&6; }
14824
14825 cat >>confdefs.h <<\_ACEOF
14826 #define HAVE_NR_CACHED_OBJECTS 1
14827 _ACEOF
14828
14829
14830 else
14831 $as_echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14833
14834 { $as_echo "$as_me:$LINENO: result: no" >&5
14835 $as_echo "no" >&6; }
14836
14837
14838
14839 fi
14840
14841 rm -Rf build
14842
14843
14844
14845
14846 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
14847 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
14848
14849
14850 cat confdefs.h - <<_ACEOF >conftest.c
14851 /* confdefs.h. */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14856
14857
14858 #include <linux/fs.h>
14859
14860 int
14861 main (void)
14862 {
14863
14864 void (*free_cached_objects)(struct super_block *, int)
14865 __attribute__ ((unused)) = NULL;
14866 struct super_operations sops __attribute__ ((unused)) = {
14867 .free_cached_objects = free_cached_objects,
14868 };
14869
14870 ;
14871 return 0;
14872 }
14873
14874 _ACEOF
14875
14876
14877 rm -Rf build && mkdir -p build
14878 echo "obj-m := conftest.o" >build/Makefile
14879 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14887 ac_status=$?
14888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14890
14891 { $as_echo "$as_me:$LINENO: result: yes" >&5
14892 $as_echo "yes" >&6; }
14893
14894 cat >>confdefs.h <<\_ACEOF
14895 #define HAVE_FREE_CACHED_OBJECTS 1
14896 _ACEOF
14897
14898
14899 else
14900 $as_echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14902
14903 { $as_echo "$as_me:$LINENO: result: no" >&5
14904 $as_echo "no" >&6; }
14905
14906
14907
14908 fi
14909
14910 rm -Rf build
14911
14912
14913
14914
14915 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
14916 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
14917 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
14918 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14919 rc=$?
14920 if test $rc -ne 0; then
14921
14922 export=0
14923 for file in fs/inode.c; do
14924 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
14925 rc=$?
14926 if test $rc -eq 0; then
14927
14928 export=1
14929 break;
14930
14931 fi
14932
14933 done
14934 if test $export -eq 0; then
14935
14936 { $as_echo "$as_me:$LINENO: result: no" >&5
14937 $as_echo "no" >&6; }
14938
14939
14940 else
14941
14942 { $as_echo "$as_me:$LINENO: result: yes" >&5
14943 $as_echo "yes" >&6; }
14944
14945 cat >>confdefs.h <<\_ACEOF
14946 #define HAVE_INSERT_INODE_LOCKED 1
14947 _ACEOF
14948
14949
14950 fi
14951
14952
14953 else
14954
14955 { $as_echo "$as_me:$LINENO: result: yes" >&5
14956 $as_echo "yes" >&6; }
14957
14958 cat >>confdefs.h <<\_ACEOF
14959 #define HAVE_INSERT_INODE_LOCKED 1
14960 _ACEOF
14961
14962
14963 fi
14964
14965
14966
14967
14968 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
14969 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
14970 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
14971 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14972 rc=$?
14973 if test $rc -ne 0; then
14974
14975 export=0
14976 for file in fs/dcache.c; do
14977 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
14978 rc=$?
14979 if test $rc -eq 0; then
14980
14981 export=1
14982 break;
14983
14984 fi
14985
14986 done
14987 if test $export -eq 0; then
14988
14989 { $as_echo "$as_me:$LINENO: result: no" >&5
14990 $as_echo "no" >&6; }
14991
14992
14993 else
14994
14995 { $as_echo "$as_me:$LINENO: result: yes" >&5
14996 $as_echo "yes" >&6; }
14997
14998 cat >>confdefs.h <<\_ACEOF
14999 #define HAVE_D_OBTAIN_ALIAS 1
15000 _ACEOF
15001
15002
15003 fi
15004
15005
15006 else
15007
15008 { $as_echo "$as_me:$LINENO: result: yes" >&5
15009 $as_echo "yes" >&6; }
15010
15011 cat >>confdefs.h <<\_ACEOF
15012 #define HAVE_D_OBTAIN_ALIAS 1
15013 _ACEOF
15014
15015
15016 fi
15017
15018
15019
15020
15021 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
15022 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
15023 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
15024 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15025 rc=$?
15026 if test $rc -ne 0; then
15027
15028 export=0
15029 for file in fs/block_dev.c; do
15030 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
15031 rc=$?
15032 if test $rc -eq 0; then
15033
15034 export=1
15035 break;
15036
15037 fi
15038
15039 done
15040 if test $export -eq 0; then
15041
15042 { $as_echo "$as_me:$LINENO: result: no" >&5
15043 $as_echo "no" >&6; }
15044
15045
15046 else
15047
15048 { $as_echo "$as_me:$LINENO: result: yes" >&5
15049 $as_echo "yes" >&6; }
15050
15051 cat >>confdefs.h <<\_ACEOF
15052 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
15053 _ACEOF
15054
15055
15056 fi
15057
15058
15059 else
15060
15061 { $as_echo "$as_me:$LINENO: result: yes" >&5
15062 $as_echo "yes" >&6; }
15063
15064 cat >>confdefs.h <<\_ACEOF
15065 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
15066 _ACEOF
15067
15068
15069 fi
15070
15071
15072
15073
15074 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
15075 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
15076 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
15077 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15078 rc=$?
15079 if test $rc -ne 0; then
15080
15081 export=0
15082 for file in mm/truncate.c; do
15083 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
15084 rc=$?
15085 if test $rc -eq 0; then
15086
15087 export=1
15088 break;
15089
15090 fi
15091
15092 done
15093 if test $export -eq 0; then
15094
15095 { $as_echo "$as_me:$LINENO: result: no" >&5
15096 $as_echo "no" >&6; }
15097
15098
15099 else
15100
15101 { $as_echo "$as_me:$LINENO: result: yes" >&5
15102 $as_echo "yes" >&6; }
15103
15104 cat >>confdefs.h <<\_ACEOF
15105 #define HAVE_TRUNCATE_SETSIZE 1
15106 _ACEOF
15107
15108
15109 fi
15110
15111
15112 else
15113
15114 { $as_echo "$as_me:$LINENO: result: yes" >&5
15115 $as_echo "yes" >&6; }
15116
15117 cat >>confdefs.h <<\_ACEOF
15118 #define HAVE_TRUNCATE_SETSIZE 1
15119 _ACEOF
15120
15121
15122 fi
15123
15124
15125
15126
15127 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
15128 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
15129 tmp_flags="$EXTRA_KCFLAGS"
15130 EXTRA_KCFLAGS="-Werror"
15131
15132
15133 cat confdefs.h - <<_ACEOF >conftest.c
15134 /* confdefs.h. */
15135 _ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15139
15140
15141 #include <linux/security.h>
15142
15143 int
15144 main (void)
15145 {
15146
15147 struct inode *ip __attribute__ ((unused)) = NULL;
15148 struct inode *dip __attribute__ ((unused)) = NULL;
15149 const struct qstr *str __attribute__ ((unused)) = NULL;
15150 char *name __attribute__ ((unused)) = NULL;
15151 void *value __attribute__ ((unused)) = NULL;
15152 size_t len __attribute__ ((unused)) = 0;
15153
15154 security_inode_init_security(ip, dip, str, &name, &value, &len);
15155
15156 ;
15157 return 0;
15158 }
15159
15160 _ACEOF
15161
15162
15163 rm -Rf build && mkdir -p build
15164 echo "obj-m := conftest.o" >build/Makefile
15165 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172 (eval $ac_try) 2>&5
15173 ac_status=$?
15174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; }; then
15176
15177 { $as_echo "$as_me:$LINENO: result: yes" >&5
15178 $as_echo "yes" >&6; }
15179
15180 cat >>confdefs.h <<\_ACEOF
15181 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
15182 _ACEOF
15183
15184
15185 else
15186 $as_echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15188
15189 { $as_echo "$as_me:$LINENO: result: no" >&5
15190 $as_echo "no" >&6; }
15191
15192
15193
15194 fi
15195
15196 rm -Rf build
15197
15198
15199 EXTRA_KCFLAGS="$tmp_flags"
15200
15201
15202 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
15203 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
15204 tmp_flags="$EXTRA_KCFLAGS"
15205 EXTRA_KCFLAGS="-Werror"
15206
15207
15208 cat confdefs.h - <<_ACEOF >conftest.c
15209 /* confdefs.h. */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15214
15215
15216 #include <linux/security.h>
15217
15218 int
15219 main (void)
15220 {
15221
15222 struct inode *ip __attribute__ ((unused)) = NULL;
15223 struct inode *dip __attribute__ ((unused)) = NULL;
15224 const struct qstr *str __attribute__ ((unused)) = NULL;
15225 initxattrs func __attribute__ ((unused)) = NULL;
15226
15227 security_inode_init_security(ip, dip, str, func, NULL);
15228
15229 ;
15230 return 0;
15231 }
15232
15233 _ACEOF
15234
15235
15236 rm -Rf build && mkdir -p build
15237 echo "obj-m := conftest.o" >build/Makefile
15238 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15241 ac_status=$?
15242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15246 ac_status=$?
15247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15249
15250 { $as_echo "$as_me:$LINENO: result: yes" >&5
15251 $as_echo "yes" >&6; }
15252
15253 cat >>confdefs.h <<\_ACEOF
15254 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
15255 _ACEOF
15256
15257
15258 else
15259 $as_echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15261
15262 { $as_echo "$as_me:$LINENO: result: no" >&5
15263 $as_echo "no" >&6; }
15264
15265
15266
15267 fi
15268
15269 rm -Rf build
15270
15271
15272 EXTRA_KCFLAGS="$tmp_flags"
15273
15274
15275 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
15276 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
15277 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
15278 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15279 rc=$?
15280 if test $rc -ne 0; then
15281
15282 export=0
15283 for file in fs/super.c; do
15284 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
15285 rc=$?
15286 if test $rc -eq 0; then
15287
15288 export=1
15289 break;
15290
15291 fi
15292
15293 done
15294 if test $export -eq 0; then
15295
15296 { $as_echo "$as_me:$LINENO: result: no" >&5
15297 $as_echo "no" >&6; }
15298
15299
15300 else
15301
15302 { $as_echo "$as_me:$LINENO: result: yes" >&5
15303 $as_echo "yes" >&6; }
15304
15305 cat >>confdefs.h <<\_ACEOF
15306 #define HAVE_MOUNT_NODEV 1
15307 _ACEOF
15308
15309
15310 fi
15311
15312
15313 else
15314
15315 { $as_echo "$as_me:$LINENO: result: yes" >&5
15316 $as_echo "yes" >&6; }
15317
15318 cat >>confdefs.h <<\_ACEOF
15319 #define HAVE_MOUNT_NODEV 1
15320 _ACEOF
15321
15322
15323 fi
15324
15325
15326
15327
15328 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
15329 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
15330
15331
15332 cat confdefs.h - <<_ACEOF >conftest.c
15333 /* confdefs.h. */
15334 _ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15338
15339
15340 #include <linux/fs.h>
15341
15342 int
15343 main (void)
15344 {
15345
15346 int (*shrink)(struct shrinker *, struct shrink_control *sc)
15347 __attribute__ ((unused)) = NULL;
15348 struct super_block sb __attribute__ ((unused)) = {
15349 .s_shrink.shrink = shrink,
15350 .s_shrink.seeks = DEFAULT_SEEKS,
15351 .s_shrink.batch = 0,
15352 };
15353
15354 ;
15355 return 0;
15356 }
15357
15358 _ACEOF
15359
15360
15361 rm -Rf build && mkdir -p build
15362 echo "obj-m := conftest.o" >build/Makefile
15363 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15366 ac_status=$?
15367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370 (eval $ac_try) 2>&5
15371 ac_status=$?
15372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; }; then
15374
15375 { $as_echo "$as_me:$LINENO: result: yes" >&5
15376 $as_echo "yes" >&6; }
15377
15378 cat >>confdefs.h <<\_ACEOF
15379 #define HAVE_SHRINK 1
15380 _ACEOF
15381
15382
15383
15384 else
15385 $as_echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15387
15388 { $as_echo "$as_me:$LINENO: result: no" >&5
15389 $as_echo "no" >&6; }
15390
15391
15392
15393 fi
15394
15395 rm -Rf build
15396
15397
15398
15399
15400 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
15401 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
15402
15403
15404 cat confdefs.h - <<_ACEOF >conftest.c
15405 /* confdefs.h. */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15410
15411
15412 #include <linux/fs.h>
15413
15414 int
15415 main (void)
15416 {
15417
15418 struct super_block sb __attribute__ ((unused));
15419 sb.s_bdi = NULL;
15420
15421 ;
15422 return 0;
15423 }
15424
15425 _ACEOF
15426
15427
15428 rm -Rf build && mkdir -p build
15429 echo "obj-m := conftest.o" >build/Makefile
15430 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15433 ac_status=$?
15434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15438 ac_status=$?
15439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }; then
15441
15442 { $as_echo "$as_me:$LINENO: result: yes" >&5
15443 $as_echo "yes" >&6; }
15444
15445 cat >>confdefs.h <<\_ACEOF
15446 #define HAVE_BDI 1
15447 _ACEOF
15448
15449
15450 else
15451 $as_echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15453
15454 { $as_echo "$as_me:$LINENO: result: no" >&5
15455 $as_echo "no" >&6; }
15456
15457
15458
15459 fi
15460
15461 rm -Rf build
15462
15463
15464
15465
15466 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
15467 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
15468 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
15469 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15470 rc=$?
15471 if test $rc -ne 0; then
15472
15473 export=0
15474 for file in mm/backing-dev.c; do
15475 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
15476 rc=$?
15477 if test $rc -eq 0; then
15478
15479 export=1
15480 break;
15481
15482 fi
15483
15484 done
15485 if test $export -eq 0; then
15486
15487 { $as_echo "$as_me:$LINENO: result: no" >&5
15488 $as_echo "no" >&6; }
15489
15490
15491 else
15492
15493 { $as_echo "$as_me:$LINENO: result: yes" >&5
15494 $as_echo "yes" >&6; }
15495
15496 cat >>confdefs.h <<\_ACEOF
15497 #define HAVE_BDI_SETUP_AND_REGISTER 1
15498 _ACEOF
15499
15500
15501 fi
15502
15503
15504 else
15505
15506 { $as_echo "$as_me:$LINENO: result: yes" >&5
15507 $as_echo "yes" >&6; }
15508
15509 cat >>confdefs.h <<\_ACEOF
15510 #define HAVE_BDI_SETUP_AND_REGISTER 1
15511 _ACEOF
15512
15513
15514 fi
15515
15516
15517
15518
15519 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
15520 $as_echo_n "checking whether set_nlink() is available... " >&6; }
15521
15522
15523 cat confdefs.h - <<_ACEOF >conftest.c
15524 /* confdefs.h. */
15525 _ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h. */
15529
15530
15531 #include <linux/fs.h>
15532
15533 int
15534 main (void)
15535 {
15536
15537 struct inode node;
15538 unsigned int link = 0;
15539 (void) set_nlink(&node, link);
15540
15541 ;
15542 return 0;
15543 }
15544
15545 _ACEOF
15546
15547
15548 rm -Rf build && mkdir -p build
15549 echo "obj-m := conftest.o" >build/Makefile
15550 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15553 ac_status=$?
15554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15558 ac_status=$?
15559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561
15562 { $as_echo "$as_me:$LINENO: result: yes" >&5
15563 $as_echo "yes" >&6; }
15564
15565 cat >>confdefs.h <<\_ACEOF
15566 #define HAVE_SET_NLINK 1
15567 _ACEOF
15568
15569
15570 else
15571 $as_echo "$as_me: failed program was:" >&5
15572 sed 's/^/| /' conftest.$ac_ext >&5
15573
15574 { $as_echo "$as_me:$LINENO: result: no" >&5
15575 $as_echo "no" >&6; }
15576
15577
15578
15579 fi
15580
15581 rm -Rf build
15582
15583
15584
15585
15586 if test "$LINUX_OBJ" != "$LINUX"; then
15587
15588 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15589
15590 fi
15591
15592
15593
15594
15595 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
15596 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
15597 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
15598
15599
15600 ;;
15601 user)
15602
15603
15604 # Check whether --with-udevdir was given.
15605 if test "${with_udevdir+set}" = set; then
15606 withval=$with_udevdir; udevdir=$withval
15607 else
15608 udevdir='${exec_prefix}/lib/udev'
15609 fi
15610
15611
15612
15613 # Check whether --with-udevruledir was given.
15614 if test "${with_udevruledir+set}" = set; then
15615 withval=$with_udevruledir; udevruledir=$withval
15616 else
15617 udevruledir='${udevdir}/rules.d'
15618 fi
15619
15620
15621
15622
15623
15624
15625 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
15626 $as_echo_n "checking for target asm dir... " >&6; }
15627 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
15628
15629 case $TARGET_ARCH in
15630 i386|x86_64)
15631 TARGET_ASM_DIR=asm-${TARGET_ARCH}
15632 ;;
15633 *)
15634 TARGET_ASM_DIR=asm-generic
15635 ;;
15636 esac
15637
15638
15639 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
15640 $as_echo "$TARGET_ASM_DIR" >&6; }
15641
15642
15643 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
15644 $as_echo_n "checking for ioctl()... " >&6; }
15645 cat >conftest.$ac_ext <<_ACEOF
15646 /* confdefs.h. */
15647 _ACEOF
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15651 #include <unistd.h>
15652
15653 _ACEOF
15654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15655 $EGREP "ioctl" >/dev/null 2>&1; then
15656 is_unistd=yes
15657 else
15658 is_unistd=no
15659 fi
15660 rm -f conftest*
15661
15662 cat >conftest.$ac_ext <<_ACEOF
15663 /* confdefs.h. */
15664 _ACEOF
15665 cat confdefs.h >>conftest.$ac_ext
15666 cat >>conftest.$ac_ext <<_ACEOF
15667 /* end confdefs.h. */
15668 #include <sys/ioctl.h>
15669
15670 _ACEOF
15671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15672 $EGREP "ioctl" >/dev/null 2>&1; then
15673 is_sys_ioctl=yes
15674 else
15675 is_sys_ioctl=no
15676 fi
15677 rm -f conftest*
15678
15679 cat >conftest.$ac_ext <<_ACEOF
15680 /* confdefs.h. */
15681 _ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 #include <stropts.h>
15686
15687 _ACEOF
15688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15689 $EGREP "ioctl" >/dev/null 2>&1; then
15690 is_stropts=yes
15691 else
15692 is_stropts=no
15693 fi
15694 rm -f conftest*
15695
15696
15697 if test $is_unistd = yes; then
15698 result=unistd.h
15699
15700 cat >>confdefs.h <<\_ACEOF
15701 #define HAVE_IOCTL_IN_UNISTD_H 1
15702 _ACEOF
15703
15704 else
15705
15706 if test $is_sys_ioctl = yes; then
15707 result=sys/ioctl.h
15708
15709 cat >>confdefs.h <<\_ACEOF
15710 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
15711 _ACEOF
15712
15713 elif test $is_stropts = yes; then
15714
15715 cat >>confdefs.h <<\_ACEOF
15716 #define HAVE_IOCTL_IN_STROPTS_H 1
15717 _ACEOF
15718
15719 else
15720 result=no
15721 fi
15722 fi
15723
15724 if test $result = no; then
15725 { $as_echo "$as_me:$LINENO: result: no" >&5
15726 $as_echo "no" >&6; }
15727 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
15728 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
15729 { (exit 1); exit 1; }; }
15730 else
15731 { $as_echo "$as_me:$LINENO: result: yes" >&5
15732 $as_echo "yes" >&6; }
15733 fi
15734
15735
15736 ZLIB=
15737
15738 if test "${ac_cv_header_zlib_h+set}" = set; then
15739 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
15740 $as_echo_n "checking for zlib.h... " >&6; }
15741 if test "${ac_cv_header_zlib_h+set}" = set; then
15742 $as_echo_n "(cached) " >&6
15743 fi
15744 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
15745 $as_echo "$ac_cv_header_zlib_h" >&6; }
15746 else
15747 # Is the header compilable?
15748 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
15749 $as_echo_n "checking zlib.h usability... " >&6; }
15750 cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h. */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 $ac_includes_default
15757 #include <zlib.h>
15758 _ACEOF
15759 rm -f conftest.$ac_objext
15760 if { (ac_try="$ac_compile"
15761 case "(($ac_try" in
15762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763 *) ac_try_echo=$ac_try;;
15764 esac
15765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15766 $as_echo "$ac_try_echo") >&5
15767 (eval "$ac_compile") 2>conftest.er1
15768 ac_status=$?
15769 grep -v '^ *+' conftest.er1 >conftest.err
15770 rm -f conftest.er1
15771 cat conftest.err >&5
15772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); } && {
15774 test -z "$ac_c_werror_flag" ||
15775 test ! -s conftest.err
15776 } && test -s conftest.$ac_objext; then
15777 ac_header_compiler=yes
15778 else
15779 $as_echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15781
15782 ac_header_compiler=no
15783 fi
15784
15785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15786 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15787 $as_echo "$ac_header_compiler" >&6; }
15788
15789 # Is the header present?
15790 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
15791 $as_echo_n "checking zlib.h presence... " >&6; }
15792 cat >conftest.$ac_ext <<_ACEOF
15793 /* confdefs.h. */
15794 _ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h. */
15798 #include <zlib.h>
15799 _ACEOF
15800 if { (ac_try="$ac_cpp conftest.$ac_ext"
15801 case "(($ac_try" in
15802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15804 esac
15805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15806 $as_echo "$ac_try_echo") >&5
15807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15808 ac_status=$?
15809 grep -v '^ *+' conftest.er1 >conftest.err
15810 rm -f conftest.er1
15811 cat conftest.err >&5
15812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } >/dev/null && {
15814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15815 test ! -s conftest.err
15816 }; then
15817 ac_header_preproc=yes
15818 else
15819 $as_echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15821
15822 ac_header_preproc=no
15823 fi
15824
15825 rm -f conftest.err conftest.$ac_ext
15826 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15827 $as_echo "$ac_header_preproc" >&6; }
15828
15829 # So? What about this header?
15830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15831 yes:no: )
15832 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15833 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15834 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
15835 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
15836 ac_header_preproc=yes
15837 ;;
15838 no:yes:* )
15839 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
15840 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
15841 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
15842 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
15843 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
15844 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
15845 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
15846 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15847 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
15848 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
15849 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
15850 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
15851
15852 ;;
15853 esac
15854 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
15855 $as_echo_n "checking for zlib.h... " >&6; }
15856 if test "${ac_cv_header_zlib_h+set}" = set; then
15857 $as_echo_n "(cached) " >&6
15858 else
15859 ac_cv_header_zlib_h=$ac_header_preproc
15860 fi
15861 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
15862 $as_echo "$ac_cv_header_zlib_h" >&6; }
15863
15864 fi
15865 if test "x$ac_cv_header_zlib_h" = x""yes; then
15866 :
15867 else
15868 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15870 { { $as_echo "$as_me:$LINENO: error:
15871 *** zlib.h missing, zlib-devel package required
15872 See \`config.log' for more details." >&5
15873 $as_echo "$as_me: error:
15874 *** zlib.h missing, zlib-devel package required
15875 See \`config.log' for more details." >&2;}
15876 { (exit 1); exit 1; }; }; }
15877 fi
15878
15879
15880
15881
15882 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
15883 $as_echo_n "checking for compress2 in -lz... " >&6; }
15884 if test "${ac_cv_lib_z_compress2+set}" = set; then
15885 $as_echo_n "(cached) " >&6
15886 else
15887 ac_check_lib_save_LIBS=$LIBS
15888 LIBS="-lz $LIBS"
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h. */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895
15896 /* Override any GCC internal prototype to avoid an error.
15897 Use char because int might match the return type of a GCC
15898 builtin and then its argument prototype would still apply. */
15899 #ifdef __cplusplus
15900 extern "C"
15901 #endif
15902 char compress2 ();
15903 int
15904 main ()
15905 {
15906 return compress2 ();
15907 ;
15908 return 0;
15909 }
15910 _ACEOF
15911 rm -f conftest.$ac_objext conftest$ac_exeext
15912 if { (ac_try="$ac_link"
15913 case "(($ac_try" in
15914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915 *) ac_try_echo=$ac_try;;
15916 esac
15917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15918 $as_echo "$ac_try_echo") >&5
15919 (eval "$ac_link") 2>conftest.er1
15920 ac_status=$?
15921 grep -v '^ *+' conftest.er1 >conftest.err
15922 rm -f conftest.er1
15923 cat conftest.err >&5
15924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } && {
15926 test -z "$ac_c_werror_flag" ||
15927 test ! -s conftest.err
15928 } && test -s conftest$ac_exeext && {
15929 test "$cross_compiling" = yes ||
15930 $as_test_x conftest$ac_exeext
15931 }; then
15932 ac_cv_lib_z_compress2=yes
15933 else
15934 $as_echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15936
15937 ac_cv_lib_z_compress2=no
15938 fi
15939
15940 rm -rf conftest.dSYM
15941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15942 conftest$ac_exeext conftest.$ac_ext
15943 LIBS=$ac_check_lib_save_LIBS
15944 fi
15945 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
15946 $as_echo "$ac_cv_lib_z_compress2" >&6; }
15947 if test "x$ac_cv_lib_z_compress2" = x""yes; then
15948 cat >>confdefs.h <<_ACEOF
15949 #define HAVE_LIBZ 1
15950 _ACEOF
15951
15952 LIBS="-lz $LIBS"
15953
15954 else
15955 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15957 { { $as_echo "$as_me:$LINENO: error:
15958 *** compress2() missing, zlib-devel package required
15959 See \`config.log' for more details." >&5
15960 $as_echo "$as_me: error:
15961 *** compress2() missing, zlib-devel package required
15962 See \`config.log' for more details." >&2;}
15963 { (exit 1); exit 1; }; }; }
15964 fi
15965
15966
15967
15968 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
15969 $as_echo_n "checking for uncompress in -lz... " >&6; }
15970 if test "${ac_cv_lib_z_uncompress+set}" = set; then
15971 $as_echo_n "(cached) " >&6
15972 else
15973 ac_check_lib_save_LIBS=$LIBS
15974 LIBS="-lz $LIBS"
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h. */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981
15982 /* Override any GCC internal prototype to avoid an error.
15983 Use char because int might match the return type of a GCC
15984 builtin and then its argument prototype would still apply. */
15985 #ifdef __cplusplus
15986 extern "C"
15987 #endif
15988 char uncompress ();
15989 int
15990 main ()
15991 {
15992 return uncompress ();
15993 ;
15994 return 0;
15995 }
15996 _ACEOF
15997 rm -f conftest.$ac_objext conftest$ac_exeext
15998 if { (ac_try="$ac_link"
15999 case "(($ac_try" in
16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001 *) ac_try_echo=$ac_try;;
16002 esac
16003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16004 $as_echo "$ac_try_echo") >&5
16005 (eval "$ac_link") 2>conftest.er1
16006 ac_status=$?
16007 grep -v '^ *+' conftest.er1 >conftest.err
16008 rm -f conftest.er1
16009 cat conftest.err >&5
16010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } && {
16012 test -z "$ac_c_werror_flag" ||
16013 test ! -s conftest.err
16014 } && test -s conftest$ac_exeext && {
16015 test "$cross_compiling" = yes ||
16016 $as_test_x conftest$ac_exeext
16017 }; then
16018 ac_cv_lib_z_uncompress=yes
16019 else
16020 $as_echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16022
16023 ac_cv_lib_z_uncompress=no
16024 fi
16025
16026 rm -rf conftest.dSYM
16027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16028 conftest$ac_exeext conftest.$ac_ext
16029 LIBS=$ac_check_lib_save_LIBS
16030 fi
16031 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
16032 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
16033 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
16034 cat >>confdefs.h <<_ACEOF
16035 #define HAVE_LIBZ 1
16036 _ACEOF
16037
16038 LIBS="-lz $LIBS"
16039
16040 else
16041 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16043 { { $as_echo "$as_me:$LINENO: error:
16044 *** uncompress() missing, zlib-devel package required
16045 See \`config.log' for more details." >&5
16046 $as_echo "$as_me: error:
16047 *** uncompress() missing, zlib-devel package required
16048 See \`config.log' for more details." >&2;}
16049 { (exit 1); exit 1; }; }; }
16050 fi
16051
16052
16053
16054 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
16055 $as_echo_n "checking for crc32 in -lz... " >&6; }
16056 if test "${ac_cv_lib_z_crc32+set}" = set; then
16057 $as_echo_n "(cached) " >&6
16058 else
16059 ac_check_lib_save_LIBS=$LIBS
16060 LIBS="-lz $LIBS"
16061 cat >conftest.$ac_ext <<_ACEOF
16062 /* confdefs.h. */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067
16068 /* Override any GCC internal prototype to avoid an error.
16069 Use char because int might match the return type of a GCC
16070 builtin and then its argument prototype would still apply. */
16071 #ifdef __cplusplus
16072 extern "C"
16073 #endif
16074 char crc32 ();
16075 int
16076 main ()
16077 {
16078 return crc32 ();
16079 ;
16080 return 0;
16081 }
16082 _ACEOF
16083 rm -f conftest.$ac_objext conftest$ac_exeext
16084 if { (ac_try="$ac_link"
16085 case "(($ac_try" in
16086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087 *) ac_try_echo=$ac_try;;
16088 esac
16089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16090 $as_echo "$ac_try_echo") >&5
16091 (eval "$ac_link") 2>conftest.er1
16092 ac_status=$?
16093 grep -v '^ *+' conftest.er1 >conftest.err
16094 rm -f conftest.er1
16095 cat conftest.err >&5
16096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } && {
16098 test -z "$ac_c_werror_flag" ||
16099 test ! -s conftest.err
16100 } && test -s conftest$ac_exeext && {
16101 test "$cross_compiling" = yes ||
16102 $as_test_x conftest$ac_exeext
16103 }; then
16104 ac_cv_lib_z_crc32=yes
16105 else
16106 $as_echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16108
16109 ac_cv_lib_z_crc32=no
16110 fi
16111
16112 rm -rf conftest.dSYM
16113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16114 conftest$ac_exeext conftest.$ac_ext
16115 LIBS=$ac_check_lib_save_LIBS
16116 fi
16117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
16118 $as_echo "$ac_cv_lib_z_crc32" >&6; }
16119 if test "x$ac_cv_lib_z_crc32" = x""yes; then
16120 cat >>confdefs.h <<_ACEOF
16121 #define HAVE_LIBZ 1
16122 _ACEOF
16123
16124 LIBS="-lz $LIBS"
16125
16126 else
16127 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16129 { { $as_echo "$as_me:$LINENO: error:
16130 *** crc32() missing, zlib-devel package required
16131 See \`config.log' for more details." >&5
16132 $as_echo "$as_me: error:
16133 *** crc32() missing, zlib-devel package required
16134 See \`config.log' for more details." >&2;}
16135 { (exit 1); exit 1; }; }; }
16136 fi
16137
16138
16139 ZLIB="-lz"
16140
16141
16142 cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_ZLIB 1
16144 _ACEOF
16145
16146
16147
16148 LIBUUID=
16149
16150 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
16151 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
16152 $as_echo_n "checking for uuid/uuid.h... " >&6; }
16153 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
16154 $as_echo_n "(cached) " >&6
16155 fi
16156 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
16157 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
16158 else
16159 # Is the header compilable?
16160 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
16161 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
16162 cat >conftest.$ac_ext <<_ACEOF
16163 /* confdefs.h. */
16164 _ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h. */
16168 $ac_includes_default
16169 #include <uuid/uuid.h>
16170 _ACEOF
16171 rm -f conftest.$ac_objext
16172 if { (ac_try="$ac_compile"
16173 case "(($ac_try" in
16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175 *) ac_try_echo=$ac_try;;
16176 esac
16177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16178 $as_echo "$ac_try_echo") >&5
16179 (eval "$ac_compile") 2>conftest.er1
16180 ac_status=$?
16181 grep -v '^ *+' conftest.er1 >conftest.err
16182 rm -f conftest.er1
16183 cat conftest.err >&5
16184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } && {
16186 test -z "$ac_c_werror_flag" ||
16187 test ! -s conftest.err
16188 } && test -s conftest.$ac_objext; then
16189 ac_header_compiler=yes
16190 else
16191 $as_echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16193
16194 ac_header_compiler=no
16195 fi
16196
16197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16198 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16199 $as_echo "$ac_header_compiler" >&6; }
16200
16201 # Is the header present?
16202 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
16203 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
16204 cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h. */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 #include <uuid/uuid.h>
16211 _ACEOF
16212 if { (ac_try="$ac_cpp conftest.$ac_ext"
16213 case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16216 esac
16217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16218 $as_echo "$ac_try_echo") >&5
16219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16220 ac_status=$?
16221 grep -v '^ *+' conftest.er1 >conftest.err
16222 rm -f conftest.er1
16223 cat conftest.err >&5
16224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } >/dev/null && {
16226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16227 test ! -s conftest.err
16228 }; then
16229 ac_header_preproc=yes
16230 else
16231 $as_echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16233
16234 ac_header_preproc=no
16235 fi
16236
16237 rm -f conftest.err conftest.$ac_ext
16238 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16239 $as_echo "$ac_header_preproc" >&6; }
16240
16241 # So? What about this header?
16242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16243 yes:no: )
16244 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
16245 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16246 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
16247 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
16248 ac_header_preproc=yes
16249 ;;
16250 no:yes:* )
16251 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
16252 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
16253 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
16254 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
16255 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
16256 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
16257 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
16258 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
16259 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
16260 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
16261 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
16262 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
16263
16264 ;;
16265 esac
16266 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
16267 $as_echo_n "checking for uuid/uuid.h... " >&6; }
16268 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
16269 $as_echo_n "(cached) " >&6
16270 else
16271 ac_cv_header_uuid_uuid_h=$ac_header_preproc
16272 fi
16273 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
16274 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
16275
16276 fi
16277 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
16278 :
16279 else
16280 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16282 { { $as_echo "$as_me:$LINENO: error:
16283 *** uuid/uuid.h missing, libuuid-devel package required
16284 See \`config.log' for more details." >&5
16285 $as_echo "$as_me: error:
16286 *** uuid/uuid.h missing, libuuid-devel package required
16287 See \`config.log' for more details." >&2;}
16288 { (exit 1); exit 1; }; }; }
16289 fi
16290
16291
16292
16293
16294 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
16295 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
16296 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
16297 $as_echo_n "(cached) " >&6
16298 else
16299 ac_check_lib_save_LIBS=$LIBS
16300 LIBS="-luuid $LIBS"
16301 cat >conftest.$ac_ext <<_ACEOF
16302 /* confdefs.h. */
16303 _ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h. */
16307
16308 /* Override any GCC internal prototype to avoid an error.
16309 Use char because int might match the return type of a GCC
16310 builtin and then its argument prototype would still apply. */
16311 #ifdef __cplusplus
16312 extern "C"
16313 #endif
16314 char uuid_generate ();
16315 int
16316 main ()
16317 {
16318 return uuid_generate ();
16319 ;
16320 return 0;
16321 }
16322 _ACEOF
16323 rm -f conftest.$ac_objext conftest$ac_exeext
16324 if { (ac_try="$ac_link"
16325 case "(($ac_try" in
16326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327 *) ac_try_echo=$ac_try;;
16328 esac
16329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16330 $as_echo "$ac_try_echo") >&5
16331 (eval "$ac_link") 2>conftest.er1
16332 ac_status=$?
16333 grep -v '^ *+' conftest.er1 >conftest.err
16334 rm -f conftest.er1
16335 cat conftest.err >&5
16336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } && {
16338 test -z "$ac_c_werror_flag" ||
16339 test ! -s conftest.err
16340 } && test -s conftest$ac_exeext && {
16341 test "$cross_compiling" = yes ||
16342 $as_test_x conftest$ac_exeext
16343 }; then
16344 ac_cv_lib_uuid_uuid_generate=yes
16345 else
16346 $as_echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16348
16349 ac_cv_lib_uuid_uuid_generate=no
16350 fi
16351
16352 rm -rf conftest.dSYM
16353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16354 conftest$ac_exeext conftest.$ac_ext
16355 LIBS=$ac_check_lib_save_LIBS
16356 fi
16357 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
16358 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
16359 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
16360 cat >>confdefs.h <<_ACEOF
16361 #define HAVE_LIBUUID 1
16362 _ACEOF
16363
16364 LIBS="-luuid $LIBS"
16365
16366 else
16367 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16369 { { $as_echo "$as_me:$LINENO: error:
16370 *** uuid_generate() missing, libuuid-devel package required
16371 See \`config.log' for more details." >&5
16372 $as_echo "$as_me: error:
16373 *** uuid_generate() missing, libuuid-devel package required
16374 See \`config.log' for more details." >&2;}
16375 { (exit 1); exit 1; }; }; }
16376 fi
16377
16378
16379
16380 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
16381 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
16382 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
16383 $as_echo_n "(cached) " >&6
16384 else
16385 ac_check_lib_save_LIBS=$LIBS
16386 LIBS="-luuid $LIBS"
16387 cat >conftest.$ac_ext <<_ACEOF
16388 /* confdefs.h. */
16389 _ACEOF
16390 cat confdefs.h >>conftest.$ac_ext
16391 cat >>conftest.$ac_ext <<_ACEOF
16392 /* end confdefs.h. */
16393
16394 /* Override any GCC internal prototype to avoid an error.
16395 Use char because int might match the return type of a GCC
16396 builtin and then its argument prototype would still apply. */
16397 #ifdef __cplusplus
16398 extern "C"
16399 #endif
16400 char uuid_is_null ();
16401 int
16402 main ()
16403 {
16404 return uuid_is_null ();
16405 ;
16406 return 0;
16407 }
16408 _ACEOF
16409 rm -f conftest.$ac_objext conftest$ac_exeext
16410 if { (ac_try="$ac_link"
16411 case "(($ac_try" in
16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413 *) ac_try_echo=$ac_try;;
16414 esac
16415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16416 $as_echo "$ac_try_echo") >&5
16417 (eval "$ac_link") 2>conftest.er1
16418 ac_status=$?
16419 grep -v '^ *+' conftest.er1 >conftest.err
16420 rm -f conftest.er1
16421 cat conftest.err >&5
16422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } && {
16424 test -z "$ac_c_werror_flag" ||
16425 test ! -s conftest.err
16426 } && test -s conftest$ac_exeext && {
16427 test "$cross_compiling" = yes ||
16428 $as_test_x conftest$ac_exeext
16429 }; then
16430 ac_cv_lib_uuid_uuid_is_null=yes
16431 else
16432 $as_echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16434
16435 ac_cv_lib_uuid_uuid_is_null=no
16436 fi
16437
16438 rm -rf conftest.dSYM
16439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16440 conftest$ac_exeext conftest.$ac_ext
16441 LIBS=$ac_check_lib_save_LIBS
16442 fi
16443 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
16444 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
16445 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
16446 cat >>confdefs.h <<_ACEOF
16447 #define HAVE_LIBUUID 1
16448 _ACEOF
16449
16450 LIBS="-luuid $LIBS"
16451
16452 else
16453 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16455 { { $as_echo "$as_me:$LINENO: error:
16456 *** uuid_is_null() missing, libuuid-devel package required
16457 See \`config.log' for more details." >&5
16458 $as_echo "$as_me: error:
16459 *** uuid_is_null() missing, libuuid-devel package required
16460 See \`config.log' for more details." >&2;}
16461 { (exit 1); exit 1; }; }; }
16462 fi
16463
16464
16465 LIBUUID="-luuid"
16466
16467
16468 cat >>confdefs.h <<\_ACEOF
16469 #define HAVE_LIBUUID 1
16470 _ACEOF
16471
16472
16473
16474
16475 # Check whether --with-blkid was given.
16476 if test "${with_blkid+set}" = set; then
16477 withval=$with_blkid;
16478 else
16479 with_blkid=check
16480 fi
16481
16482
16483 LIBBLKID=
16484 if test "x$with_blkid" != xno; then
16485
16486 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
16487 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
16488 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
16489 $as_echo_n "(cached) " >&6
16490 else
16491 ac_check_lib_save_LIBS=$LIBS
16492 LIBS="-lblkid $LIBS"
16493 cat >conftest.$ac_ext <<_ACEOF
16494 /* confdefs.h. */
16495 _ACEOF
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h. */
16499
16500 /* Override any GCC internal prototype to avoid an error.
16501 Use char because int might match the return type of a GCC
16502 builtin and then its argument prototype would still apply. */
16503 #ifdef __cplusplus
16504 extern "C"
16505 #endif
16506 char blkid_get_cache ();
16507 int
16508 main ()
16509 {
16510 return blkid_get_cache ();
16511 ;
16512 return 0;
16513 }
16514 _ACEOF
16515 rm -f conftest.$ac_objext conftest$ac_exeext
16516 if { (ac_try="$ac_link"
16517 case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520 esac
16521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16522 $as_echo "$ac_try_echo") >&5
16523 (eval "$ac_link") 2>conftest.er1
16524 ac_status=$?
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
16528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } && {
16530 test -z "$ac_c_werror_flag" ||
16531 test ! -s conftest.err
16532 } && test -s conftest$ac_exeext && {
16533 test "$cross_compiling" = yes ||
16534 $as_test_x conftest$ac_exeext
16535 }; then
16536 ac_cv_lib_blkid_blkid_get_cache=yes
16537 else
16538 $as_echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541 ac_cv_lib_blkid_blkid_get_cache=no
16542 fi
16543
16544 rm -rf conftest.dSYM
16545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16546 conftest$ac_exeext conftest.$ac_ext
16547 LIBS=$ac_check_lib_save_LIBS
16548 fi
16549 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
16550 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
16551 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
16552
16553 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
16554 $as_echo_n "checking for blkid zfs support... " >&6; }
16555
16556 ZFS_DEV=`mktemp`
16557 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
16558 >/dev/null 2>/dev/null
16559 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
16560 dd of=$ZFS_DEV bs=1k count=8 \
16561 seek=132 conv=notrunc &>/dev/null \
16562 >/dev/null 2>/dev/null
16563
16564 saved_LDFLAGS="$LDFLAGS"
16565 LDFLAGS="-lblkid"
16566
16567 if test "$cross_compiling" = yes; then
16568 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16570 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16571 See \`config.log' for more details." >&5
16572 $as_echo "$as_me: error: cannot run test program while cross compiling
16573 See \`config.log' for more details." >&2;}
16574 { (exit 1); exit 1; }; }; }
16575 else
16576 cat >conftest.$ac_ext <<_ACEOF
16577 /* confdefs.h. */
16578 _ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h. */
16582
16583 #include <stdio.h>
16584 #include <blkid/blkid.h>
16585
16586 int
16587 main ()
16588 {
16589
16590 blkid_cache cache;
16591 char *value;
16592
16593 if (blkid_get_cache(&cache, NULL) < 0)
16594 return 1;
16595
16596 value = blkid_get_tag_value(cache, "TYPE",
16597 "$ZFS_DEV");
16598 if (!value) {
16599 blkid_put_cache(cache);
16600 return 2;
16601 }
16602
16603 if (strcmp(value, "zfs")) {
16604 free(value);
16605 blkid_put_cache(cache);
16606 return 3;
16607 }
16608
16609 free(value);
16610 blkid_put_cache(cache);
16611
16612 ;
16613 return 0;
16614 }
16615 _ACEOF
16616 rm -f conftest$ac_exeext
16617 if { (ac_try="$ac_link"
16618 case "(($ac_try" in
16619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620 *) ac_try_echo=$ac_try;;
16621 esac
16622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16623 $as_echo "$ac_try_echo") >&5
16624 (eval "$ac_link") 2>&5
16625 ac_status=$?
16626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16628 { (case "(($ac_try" in
16629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630 *) ac_try_echo=$ac_try;;
16631 esac
16632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16633 $as_echo "$ac_try_echo") >&5
16634 (eval "$ac_try") 2>&5
16635 ac_status=$?
16636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; }; then
16638
16639 rm -f $ZFS_DEV
16640 { $as_echo "$as_me:$LINENO: result: yes" >&5
16641 $as_echo "yes" >&6; }
16642 LIBBLKID="-lblkid"
16643
16644
16645 cat >>confdefs.h <<\_ACEOF
16646 #define HAVE_LIBBLKID 1
16647 _ACEOF
16648
16649
16650 else
16651 $as_echo "$as_me: program exited with status $ac_status" >&5
16652 $as_echo "$as_me: failed program was:" >&5
16653 sed 's/^/| /' conftest.$ac_ext >&5
16654
16655 ( exit $ac_status )
16656
16657 rm -f $ZFS_DEV
16658 { $as_echo "$as_me:$LINENO: result: no" >&5
16659 $as_echo "no" >&6; }
16660 if test "x$with_blkid" != xcheck; then
16661 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16663 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
16664 See \`config.log' for more details." >&5
16665 $as_echo "$as_me: error: --with-blkid given but unavailable
16666 See \`config.log' for more details." >&2;}
16667 { (exit 1); exit 1; }; }; }
16668 fi
16669
16670
16671 fi
16672 rm -rf conftest.dSYM
16673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16674 fi
16675
16676
16677
16678 LDFLAGS="$saved_LDFLAGS"
16679
16680 else
16681
16682 if test "x$with_blkid" != xcheck; then
16683 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16685 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
16686 See \`config.log' for more details." >&5
16687 $as_echo "$as_me: error: --with-blkid given but unavailable
16688 See \`config.log' for more details." >&2;}
16689 { (exit 1); exit 1; }; }; }
16690 fi
16691
16692
16693
16694 fi
16695
16696
16697 fi
16698
16699
16700
16701
16702 # Check whether --with-selinux was given.
16703 if test "${with_selinux+set}" = set; then
16704 withval=$with_selinux;
16705 else
16706 with_selinux=check
16707 fi
16708
16709
16710 LIBSELINUX=
16711 if test "x$with_selinux" != xno; then
16712
16713 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
16714 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
16715 $as_echo_n "checking for selinux/selinux.h... " >&6; }
16716 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
16717 $as_echo_n "(cached) " >&6
16718 fi
16719 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
16720 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
16721 else
16722 # Is the header compilable?
16723 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
16724 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
16725 cat >conftest.$ac_ext <<_ACEOF
16726 /* confdefs.h. */
16727 _ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h. */
16731 $ac_includes_default
16732 #include <selinux/selinux.h>
16733 _ACEOF
16734 rm -f conftest.$ac_objext
16735 if { (ac_try="$ac_compile"
16736 case "(($ac_try" in
16737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738 *) ac_try_echo=$ac_try;;
16739 esac
16740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16741 $as_echo "$ac_try_echo") >&5
16742 (eval "$ac_compile") 2>conftest.er1
16743 ac_status=$?
16744 grep -v '^ *+' conftest.er1 >conftest.err
16745 rm -f conftest.er1
16746 cat conftest.err >&5
16747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } && {
16749 test -z "$ac_c_werror_flag" ||
16750 test ! -s conftest.err
16751 } && test -s conftest.$ac_objext; then
16752 ac_header_compiler=yes
16753 else
16754 $as_echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16756
16757 ac_header_compiler=no
16758 fi
16759
16760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16761 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16762 $as_echo "$ac_header_compiler" >&6; }
16763
16764 # Is the header present?
16765 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
16766 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
16767 cat >conftest.$ac_ext <<_ACEOF
16768 /* confdefs.h. */
16769 _ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 #include <selinux/selinux.h>
16774 _ACEOF
16775 if { (ac_try="$ac_cpp conftest.$ac_ext"
16776 case "(($ac_try" in
16777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778 *) ac_try_echo=$ac_try;;
16779 esac
16780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16781 $as_echo "$ac_try_echo") >&5
16782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16783 ac_status=$?
16784 grep -v '^ *+' conftest.er1 >conftest.err
16785 rm -f conftest.er1
16786 cat conftest.err >&5
16787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } >/dev/null && {
16789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16790 test ! -s conftest.err
16791 }; then
16792 ac_header_preproc=yes
16793 else
16794 $as_echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16796
16797 ac_header_preproc=no
16798 fi
16799
16800 rm -f conftest.err conftest.$ac_ext
16801 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16802 $as_echo "$ac_header_preproc" >&6; }
16803
16804 # So? What about this header?
16805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16806 yes:no: )
16807 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
16808 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16809 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
16810 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
16811 ac_header_preproc=yes
16812 ;;
16813 no:yes:* )
16814 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
16815 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
16816 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
16817 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
16818 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
16819 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
16820 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
16821 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
16822 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
16823 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
16824 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
16825 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
16826
16827 ;;
16828 esac
16829 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
16830 $as_echo_n "checking for selinux/selinux.h... " >&6; }
16831 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
16832 $as_echo_n "(cached) " >&6
16833 else
16834 ac_cv_header_selinux_selinux_h=$ac_header_preproc
16835 fi
16836 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
16837 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
16838
16839 fi
16840 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
16841
16842 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
16843 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
16844 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
16845 $as_echo_n "(cached) " >&6
16846 else
16847 ac_check_lib_save_LIBS=$LIBS
16848 LIBS="-lselinux $LIBS"
16849 cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h. */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855
16856 /* Override any GCC internal prototype to avoid an error.
16857 Use char because int might match the return type of a GCC
16858 builtin and then its argument prototype would still apply. */
16859 #ifdef __cplusplus
16860 extern "C"
16861 #endif
16862 char is_selinux_enabled ();
16863 int
16864 main ()
16865 {
16866 return is_selinux_enabled ();
16867 ;
16868 return 0;
16869 }
16870 _ACEOF
16871 rm -f conftest.$ac_objext conftest$ac_exeext
16872 if { (ac_try="$ac_link"
16873 case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16876 esac
16877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16878 $as_echo "$ac_try_echo") >&5
16879 (eval "$ac_link") 2>conftest.er1
16880 ac_status=$?
16881 grep -v '^ *+' conftest.er1 >conftest.err
16882 rm -f conftest.er1
16883 cat conftest.err >&5
16884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } && {
16886 test -z "$ac_c_werror_flag" ||
16887 test ! -s conftest.err
16888 } && test -s conftest$ac_exeext && {
16889 test "$cross_compiling" = yes ||
16890 $as_test_x conftest$ac_exeext
16891 }; then
16892 ac_cv_lib_selinux_is_selinux_enabled=yes
16893 else
16894 $as_echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16896
16897 ac_cv_lib_selinux_is_selinux_enabled=no
16898 fi
16899
16900 rm -rf conftest.dSYM
16901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16902 conftest$ac_exeext conftest.$ac_ext
16903 LIBS=$ac_check_lib_save_LIBS
16904 fi
16905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
16906 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
16907 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
16908
16909 LIBSELINUX="-lselinux"
16910
16911
16912 cat >>confdefs.h <<\_ACEOF
16913 #define HAVE_LIBSELINUX 1
16914 _ACEOF
16915
16916
16917 else
16918
16919 if test "x$with_selinux" != xcheck; then
16920 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16922 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
16923 See \`config.log' for more details." >&5
16924 $as_echo "$as_me: error: --with-selinux given but unavailable
16925 See \`config.log' for more details." >&2;}
16926 { (exit 1); exit 1; }; }; }
16927
16928 fi
16929
16930
16931 fi
16932
16933
16934 else
16935
16936 if test "x$with_selinux" != xcheck; then
16937 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16939 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
16940 See \`config.log' for more details." >&5
16941 $as_echo "$as_me: error: --with-selinux given but unavailable
16942 See \`config.log' for more details." >&2;}
16943 { (exit 1); exit 1; }; }; }
16944
16945 fi
16946
16947
16948 fi
16949
16950
16951
16952 else
16953
16954 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
16955 $as_echo_n "checking for selinux support... " >&6; }
16956 { $as_echo "$as_me:$LINENO: result: no" >&5
16957 $as_echo "no" >&6; }
16958
16959 fi
16960
16961
16962
16963 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
16964 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
16965
16966 saved_flags="$CFLAGS"
16967 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
16968
16969 if test "$cross_compiling" = yes; then
16970 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16972 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16973 See \`config.log' for more details." >&5
16974 $as_echo "$as_me: error: cannot run test program while cross compiling
16975 See \`config.log' for more details." >&2;}
16976 { (exit 1); exit 1; }; }; }
16977 else
16978 cat >conftest.$ac_ext <<_ACEOF
16979 /* confdefs.h. */
16980 _ACEOF
16981 cat confdefs.h >>conftest.$ac_ext
16982 cat >>conftest.$ac_ext <<_ACEOF
16983 /* end confdefs.h. */
16984
16985 int
16986 main ()
16987 {
16988
16989 ;
16990 return 0;
16991 }
16992 _ACEOF
16993 rm -f conftest$ac_exeext
16994 if { (ac_try="$ac_link"
16995 case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998 esac
16999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17000 $as_echo "$ac_try_echo") >&5
17001 (eval "$ac_link") 2>&5
17002 ac_status=$?
17003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17008 esac
17009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17010 $as_echo "$ac_try_echo") >&5
17011 (eval "$ac_try") 2>&5
17012 ac_status=$?
17013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015
17016 FRAME_LARGER_THAN=-Wframe-larger-than=1024
17017 { $as_echo "$as_me:$LINENO: result: yes" >&5
17018 $as_echo "yes" >&6; }
17019
17020 else
17021 $as_echo "$as_me: program exited with status $ac_status" >&5
17022 $as_echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17024
17025 ( exit $ac_status )
17026
17027 FRAME_LARGER_THAN=
17028 { $as_echo "$as_me:$LINENO: result: no" >&5
17029 $as_echo "no" >&6; }
17030
17031 fi
17032 rm -rf conftest.dSYM
17033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17034 fi
17035
17036
17037
17038 CFLAGS="$saved_flags"
17039
17040
17041
17042
17043 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
17044 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
17045
17046 saved_CFLAGS="$CFLAGS"
17047 CFLAGS="-fstack-check"
17048 saved_LDFLAGS="$LDFLAGS"
17049 LDFLAGS="-lpthread"
17050
17051 if test "$cross_compiling" = yes; then
17052 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17054 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17055 See \`config.log' for more details." >&5
17056 $as_echo "$as_me: error: cannot run test program while cross compiling
17057 See \`config.log' for more details." >&2;}
17058 { (exit 1); exit 1; }; }; }
17059 else
17060 cat >conftest.$ac_ext <<_ACEOF
17061 /* confdefs.h. */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066
17067 #include <pthread.h>
17068 #include <sys/resource.h>
17069 #include <unistd.h>
17070 #include <bits/local_lim.h>
17071
17072 #define PAGESIZE (sysconf(_SC_PAGESIZE))
17073 #define STACK_SIZE 8192
17074 #define BUFSIZE 4096
17075
17076 void * func(void *arg)
17077 {
17078 char buf[BUFSIZE];
17079 }
17080
17081 int
17082 main ()
17083 {
17084
17085 pthread_t tid;
17086 pthread_attr_t attr;
17087 struct rlimit l;
17088
17089 l.rlim_cur = 0;
17090 l.rlim_max = 0;
17091 setrlimit(RLIMIT_CORE, &l);
17092 pthread_attr_init(&attr);
17093 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
17094 pthread_attr_setguardsize(&attr, PAGESIZE);
17095 pthread_create(&tid, &attr, func, NULL);
17096 pthread_join(tid, NULL);
17097
17098 ;
17099 return 0;
17100 }
17101 _ACEOF
17102 rm -f conftest$ac_exeext
17103 if { (ac_try="$ac_link"
17104 case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17107 esac
17108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17109 $as_echo "$ac_try_echo") >&5
17110 (eval "$ac_link") 2>&5
17111 ac_status=$?
17112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17114 { (case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17117 esac
17118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17119 $as_echo "$ac_try_echo") >&5
17120 (eval "$ac_try") 2>&5
17121 ac_status=$?
17122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124
17125 { $as_echo "$as_me:$LINENO: result: no" >&5
17126 $as_echo "no" >&6; }
17127
17128 else
17129 $as_echo "$as_me: program exited with status $ac_status" >&5
17130 $as_echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17132
17133 ( exit $ac_status )
17134
17135
17136 cat >>confdefs.h <<\_ACEOF
17137 #define NPTL_GUARD_WITHIN_STACK 1
17138 _ACEOF
17139
17140 { $as_echo "$as_me:$LINENO: result: yes" >&5
17141 $as_echo "yes" >&6; }
17142
17143 fi
17144 rm -rf conftest.dSYM
17145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17146 fi
17147
17148
17149 CFLAGS="$saved_CFLAGS"
17150 LDFLAGS="$saved_LDFLAGS"
17151
17152 ;;
17153 all)
17154
17155
17156 # Check whether --with-linux was given.
17157 if test "${with_linux+set}" = set; then
17158 withval=$with_linux; kernelsrc="$withval"
17159 fi
17160
17161
17162
17163 # Check whether --with-linux-obj was given.
17164 if test "${with_linux_obj+set}" = set; then
17165 withval=$with_linux_obj; kernelbuild="$withval"
17166 fi
17167
17168
17169 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
17170 $as_echo_n "checking kernel source directory... " >&6; }
17171 if test -z "$kernelsrc"; then
17172
17173 if test -e "/lib/modules/$(uname -r)/source"; then
17174
17175 headersdir="/lib/modules/$(uname -r)/source"
17176 sourcelink=$(readlink -f "$headersdir")
17177
17178 elif test -e "/lib/modules/$(uname -r)/build"; then
17179
17180 headersdir="/lib/modules/$(uname -r)/build"
17181 sourcelink=$(readlink -f "$headersdir")
17182
17183 else
17184
17185 sourcelink=$(ls -1d /usr/src/kernels/* \
17186 /usr/src/linux-* \
17187 2>/dev/null | grep -v obj | tail -1)
17188
17189 fi
17190
17191
17192 if test -n "$sourcelink" && test -e ${sourcelink}; then
17193
17194 kernelsrc=`readlink -f ${sourcelink}`
17195
17196 else
17197
17198 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17199 $as_echo "Not found" >&6; }
17200 { { $as_echo "$as_me:$LINENO: error:
17201 *** Please make sure the kernel devel package for your distribution
17202 *** is installed then try again. If that fails you can specify the
17203 *** location of the kernel source with the '--with-linux=PATH' option." >&5
17204 $as_echo "$as_me: error:
17205 *** Please make sure the kernel devel package for your distribution
17206 *** is installed then try again. If that fails you can specify the
17207 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
17208 { (exit 1); exit 1; }; }
17209
17210 fi
17211
17212
17213 else
17214
17215 if test "$kernelsrc" = "NONE"; then
17216
17217 kernsrcver=NONE
17218
17219 fi
17220
17221
17222 fi
17223
17224
17225 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
17226 $as_echo "$kernelsrc" >&6; }
17227 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
17228 $as_echo_n "checking kernel build directory... " >&6; }
17229 if test -z "$kernelbuild"; then
17230
17231 if test -e "/lib/modules/$(uname -r)/build"; then
17232
17233 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
17234
17235 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
17236
17237 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
17238
17239 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
17240
17241 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
17242
17243 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
17244
17245 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
17246
17247 else
17248
17249 kernelbuild=${kernelsrc}
17250
17251 fi
17252
17253
17254 fi
17255
17256 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
17257 $as_echo "$kernelbuild" >&6; }
17258
17259 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
17260 $as_echo_n "checking kernel source version... " >&6; }
17261 utsrelease1=$kernelbuild/include/linux/version.h
17262 utsrelease2=$kernelbuild/include/linux/utsrelease.h
17263 utsrelease3=$kernelbuild/include/generated/utsrelease.h
17264 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
17265
17266 utsrelease=linux/version.h
17267
17268 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
17269
17270 utsrelease=linux/utsrelease.h
17271
17272 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
17273
17274 utsrelease=generated/utsrelease.h
17275
17276 fi
17277
17278
17279 if test "$utsrelease"; then
17280
17281 kernsrcver=`(echo "#include <$utsrelease>";
17282 echo "kernsrcver=UTS_RELEASE") |
17283 cpp -I $kernelbuild/include |
17284 grep "^kernsrcver=" | cut -d \" -f 2`
17285
17286 if test -z "$kernsrcver"; then
17287
17288 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17289 $as_echo "Not found" >&6; }
17290 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
17291 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
17292 { (exit 1); exit 1; }; }
17293
17294 fi
17295
17296
17297 else
17298
17299 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17300 $as_echo "Not found" >&6; }
17301 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
17302 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
17303 { (exit 1); exit 1; }; }
17304
17305 fi
17306
17307
17308 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
17309 $as_echo "$kernsrcver" >&6; }
17310
17311 LINUX=${kernelsrc}
17312 LINUX_OBJ=${kernelbuild}
17313 LINUX_VERSION=${kernsrcver}
17314
17315
17316
17317
17318
17319
17320 modpost=$LINUX/scripts/Makefile.modpost
17321 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
17322 $as_echo_n "checking kernel file name for module symbols... " >&6; }
17323 if test -f "$modpost"; then
17324
17325 if grep -q Modules.symvers $modpost; then
17326
17327 LINUX_SYMBOLS=Modules.symvers
17328
17329 else
17330
17331 LINUX_SYMBOLS=Module.symvers
17332
17333 fi
17334
17335
17336 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
17337
17338 { { $as_echo "$as_me:$LINENO: error:
17339 *** Please make sure the kernel devel package for your distribution
17340 *** is installed. If your building with a custom kernel make sure the
17341 *** kernel is configured, built, and the '--with-linux=PATH' configure
17342 *** option refers to the location of the kernel source." >&5
17343 $as_echo "$as_me: error:
17344 *** Please make sure the kernel devel package for your distribution
17345 *** is installed. If your building with a custom kernel make sure the
17346 *** kernel is configured, built, and the '--with-linux=PATH' configure
17347 *** option refers to the location of the kernel source." >&2;}
17348 { (exit 1); exit 1; }; }
17349
17350 fi
17351
17352
17353 else
17354
17355 LINUX_SYMBOLS=NONE
17356
17357 fi
17358
17359 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
17360 $as_echo "$LINUX_SYMBOLS" >&6; }
17361
17362
17363
17364
17365
17366 # Check whether --with-spl was given.
17367 if test "${with_spl+set}" = set; then
17368 withval=$with_spl; splsrc="$withval"
17369 fi
17370
17371
17372
17373 # Check whether --with-spl-obj was given.
17374 if test "${with_spl_obj+set}" = set; then
17375 withval=$with_spl_obj; splbuild="$withval"
17376 fi
17377
17378
17379
17380 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
17381 $as_echo_n "checking spl source directory... " >&6; }
17382 if test -z "$splsrc"; then
17383
17384 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
17385 2>/dev/null | tail -1`
17386
17387 if test -z "$sourcelink" || test ! -e $sourcelink; then
17388
17389 sourcelink=../spl
17390
17391 fi
17392
17393
17394 if test -e $sourcelink; then
17395
17396 splsrc=`readlink -f ${sourcelink}`
17397
17398 else
17399
17400 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17401 $as_echo "Not found" >&6; }
17402 { { $as_echo "$as_me:$LINENO: error:
17403 *** Please make sure the spl devel package for your distribution
17404 *** is installed then try again. If that fails you can specify the
17405 *** location of the spl source with the '--with-spl=PATH' option." >&5
17406 $as_echo "$as_me: error:
17407 *** Please make sure the spl devel package for your distribution
17408 *** is installed then try again. If that fails you can specify the
17409 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
17410 { (exit 1); exit 1; }; }
17411
17412 fi
17413
17414
17415 else
17416
17417 if test "$splsrc" = "NONE"; then
17418
17419 splbuild=NONE
17420 splsrcver=NONE
17421
17422 fi
17423
17424
17425 fi
17426
17427
17428 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
17429 $as_echo "$splsrc" >&6; }
17430 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
17431 $as_echo_n "checking spl build directory... " >&6; }
17432 if test -z "$splbuild"; then
17433
17434 splbuild=${splsrc}
17435
17436 fi
17437
17438 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
17439 $as_echo "$splbuild" >&6; }
17440
17441 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
17442 $as_echo_n "checking spl source version... " >&6; }
17443 if test -r $splbuild/spl_config.h &&
17444 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
17445
17446
17447 splsrcver=`(echo "#include <spl_config.h>";
17448 echo "splsrcver=SPL_META_VERSION") |
17449 cpp -I $splbuild |
17450 grep "^splsrcver=" | cut -d \" -f 2`
17451
17452 fi
17453
17454
17455 if test -z "$splsrcver"; then
17456
17457 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17458 $as_echo "Not found" >&6; }
17459 { { $as_echo "$as_me:$LINENO: error:
17460 *** Cannot determine the version of the spl source.
17461 *** Please prepare the spl source before running this script" >&5
17462 $as_echo "$as_me: error:
17463 *** Cannot determine the version of the spl source.
17464 *** Please prepare the spl source before running this script" >&2;}
17465 { (exit 1); exit 1; }; }
17466
17467 fi
17468
17469
17470 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
17471 $as_echo "$splsrcver" >&6; }
17472
17473 SPL=${splsrc}
17474 SPL_OBJ=${splbuild}
17475 SPL_VERSION=${splsrcver}
17476
17477
17478
17479
17480
17481
17482 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
17483 $as_echo_n "checking spl file name for module symbols... " >&6; }
17484 if test -r $SPL_OBJ/Module.symvers; then
17485
17486 SPL_SYMBOLS=Module.symvers
17487
17488 elif test -r $SPL_OBJ/Modules.symvers; then
17489
17490 SPL_SYMBOLS=Modules.symvers
17491
17492 elif test -r $SPL_OBJ/module/Module.symvers; then
17493
17494 SPL_SYMBOLS=Module.symvers
17495
17496 elif test -r $SPL_OBJ/module/Modules.symvers; then
17497
17498 SPL_SYMBOLS=Modules.symvers
17499
17500 else
17501
17502 SPL_SYMBOLS=$LINUX_SYMBOLS
17503
17504 fi
17505
17506
17507 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
17508 $as_echo "$SPL_SYMBOLS" >&6; }
17509
17510
17511
17512
17513
17514 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
17515 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
17516
17517
17518 cat confdefs.h - <<_ACEOF >conftest.c
17519 /* confdefs.h. */
17520 _ACEOF
17521 cat confdefs.h >>conftest.$ac_ext
17522 cat >>conftest.$ac_ext <<_ACEOF
17523 /* end confdefs.h. */
17524
17525
17526 #include <linux/module.h>
17527
17528 int
17529 main (void)
17530 {
17531
17532 #ifndef CONFIG_PREEMPT
17533 #error CONFIG_PREEMPT not #defined
17534 #endif
17535
17536 ;
17537 return 0;
17538 }
17539
17540 _ACEOF
17541
17542
17543 rm -Rf build && mkdir -p build
17544 echo "obj-m := conftest.o" >build/Makefile
17545 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17548 ac_status=$?
17549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17553 ac_status=$?
17554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556
17557 { $as_echo "$as_me:$LINENO: result: yes" >&5
17558 $as_echo "yes" >&6; }
17559 { { $as_echo "$as_me:$LINENO: error:
17560 *** Kernel built with CONFIG_PREEMPT which is not supported.
17561 *** You must rebuild your kernel without this option." >&5
17562 $as_echo "$as_me: error:
17563 *** Kernel built with CONFIG_PREEMPT which is not supported.
17564 *** You must rebuild your kernel without this option." >&2;}
17565 { (exit 1); exit 1; }; }
17566
17567 else
17568 $as_echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17570
17571 { $as_echo "$as_me:$LINENO: result: no" >&5
17572 $as_echo "no" >&6; }
17573
17574
17575
17576
17577 fi
17578
17579 rm -Rf build
17580
17581
17582
17583
17584 if test "$ZFS_META_LICENSE" = CDDL; then
17585
17586 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
17587 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
17588
17589
17590 cat confdefs.h - <<_ACEOF >conftest.c
17591 /* confdefs.h. */
17592 _ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17596
17597
17598 #include <linux/module.h>
17599
17600 int
17601 main (void)
17602 {
17603
17604 #ifndef CONFIG_DEBUG_LOCK_ALLOC
17605 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
17606 #endif
17607
17608 ;
17609 return 0;
17610 }
17611
17612 _ACEOF
17613
17614
17615 rm -Rf build && mkdir -p build
17616 echo "obj-m := conftest.o" >build/Makefile
17617 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17620 ac_status=$?
17621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17625 ac_status=$?
17626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
17628
17629 { $as_echo "$as_me:$LINENO: result: yes" >&5
17630 $as_echo "yes" >&6; }
17631 { { $as_echo "$as_me:$LINENO: error:
17632 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
17633 *** incompatible with the CDDL license. You must rebuild
17634 *** your kernel without this option." >&5
17635 $as_echo "$as_me: error:
17636 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
17637 *** incompatible with the CDDL license. You must rebuild
17638 *** your kernel without this option." >&2;}
17639 { (exit 1); exit 1; }; }
17640
17641 else
17642 $as_echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17644
17645 { $as_echo "$as_me:$LINENO: result: no" >&5
17646 $as_echo "no" >&6; }
17647
17648
17649
17650
17651 fi
17652
17653 rm -Rf build
17654
17655
17656
17657
17658 fi
17659
17660
17661 if test "$ZFS_META_LICENSE" = GPL; then
17662
17663
17664 cat >>confdefs.h <<\_ACEOF
17665 #define HAVE_GPL_ONLY_SYMBOLS 1
17666 _ACEOF
17667
17668
17669 fi
17670
17671
17672
17673 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
17674 $as_echo_n "checking block device operation prototypes... " >&6; }
17675 tmp_flags="$EXTRA_KCFLAGS"
17676 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
17677
17678
17679 cat confdefs.h - <<_ACEOF >conftest.c
17680 /* confdefs.h. */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17685
17686
17687 #include <linux/blkdev.h>
17688
17689 int
17690 main (void)
17691 {
17692
17693 int (*blk_open) (struct block_device *, fmode_t) = NULL;
17694 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
17695 int (*blk_ioctl) (struct block_device *, fmode_t,
17696 unsigned, unsigned long) = NULL;
17697 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
17698 unsigned, unsigned long) = NULL;
17699 struct block_device_operations blk_ops = {
17700 .open = blk_open,
17701 .release = blk_release,
17702 .ioctl = blk_ioctl,
17703 .compat_ioctl = blk_compat_ioctl,
17704 };
17705
17706 blk_ops.open(NULL, 0);
17707 blk_ops.release(NULL, 0);
17708 blk_ops.ioctl(NULL, 0, 0, 0);
17709 blk_ops.compat_ioctl(NULL, 0, 0, 0);
17710
17711 ;
17712 return 0;
17713 }
17714
17715 _ACEOF
17716
17717
17718 rm -Rf build && mkdir -p build
17719 echo "obj-m := conftest.o" >build/Makefile
17720 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727 (eval $ac_try) 2>&5
17728 ac_status=$?
17729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; }; then
17731
17732 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
17733 $as_echo "struct block_device" >&6; }
17734
17735 cat >>confdefs.h <<\_ACEOF
17736 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
17737 _ACEOF
17738
17739
17740 else
17741 $as_echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17743
17744 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
17745 $as_echo "struct inode" >&6; }
17746
17747
17748
17749 fi
17750
17751 rm -Rf build
17752
17753
17754 EXTRA_KCFLAGS="$tmp_flags"
17755
17756 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
17757 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
17758
17759
17760 cat confdefs.h - <<_ACEOF >conftest.c
17761 /* confdefs.h. */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17766
17767
17768 #include <linux/types.h>
17769
17770 int
17771 main (void)
17772 {
17773
17774 fmode_t *ptr __attribute__ ((unused));
17775
17776 ;
17777 return 0;
17778 }
17779
17780 _ACEOF
17781
17782
17783 rm -Rf build && mkdir -p build
17784 echo "obj-m := conftest.o" >build/Makefile
17785 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17788 ac_status=$?
17789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17793 ac_status=$?
17794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; }; then
17796
17797 { $as_echo "$as_me:$LINENO: result: yes" >&5
17798 $as_echo "yes" >&6; }
17799
17800 cat >>confdefs.h <<\_ACEOF
17801 #define HAVE_FMODE_T 1
17802 _ACEOF
17803
17804
17805 else
17806 $as_echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17808
17809 { $as_echo "$as_me:$LINENO: result: no" >&5
17810 $as_echo "no" >&6; }
17811
17812
17813
17814 fi
17815
17816 rm -Rf build
17817
17818
17819
17820
17821 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
17822 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
17823
17824
17825 cat confdefs.h - <<_ACEOF >conftest.c
17826 /* confdefs.h. */
17827 _ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h. */
17831
17832
17833 #include <linux/kobject.h>
17834
17835 int
17836 main (void)
17837 {
17838
17839 int val __attribute__ ((unused));
17840 val = KOBJ_NAME_LEN;
17841
17842 ;
17843 return 0;
17844 }
17845
17846 _ACEOF
17847
17848
17849 rm -Rf build && mkdir -p build
17850 echo "obj-m := conftest.o" >build/Makefile
17851 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
17855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17862
17863 { $as_echo "$as_me:$LINENO: result: yes" >&5
17864 $as_echo "yes" >&6; }
17865
17866 cat >>confdefs.h <<\_ACEOF
17867 #define HAVE_KOBJ_NAME_LEN 1
17868 _ACEOF
17869
17870
17871 else
17872 $as_echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17874
17875 { $as_echo "$as_me:$LINENO: result: no" >&5
17876 $as_echo "no" >&6; }
17877
17878
17879
17880 fi
17881
17882 rm -Rf build
17883
17884
17885
17886
17887 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
17888 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
17889 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
17890 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17891 rc=$?
17892 if test $rc -ne 0; then
17893
17894 export=0
17895 for file in fs/block_dev.c; do
17896 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
17897 rc=$?
17898 if test $rc -eq 0; then
17899
17900 export=1
17901 break;
17902
17903 fi
17904
17905 done
17906 if test $export -eq 0; then
17907
17908 { $as_echo "$as_me:$LINENO: result: no" >&5
17909 $as_echo "no" >&6; }
17910
17911
17912 else
17913
17914 { $as_echo "$as_me:$LINENO: result: yes" >&5
17915 $as_echo "yes" >&6; }
17916
17917 cat >>confdefs.h <<\_ACEOF
17918 #define HAVE_BLKDEV_GET_BY_PATH 1
17919 _ACEOF
17920
17921
17922 fi
17923
17924
17925 else
17926
17927 { $as_echo "$as_me:$LINENO: result: yes" >&5
17928 $as_echo "yes" >&6; }
17929
17930 cat >>confdefs.h <<\_ACEOF
17931 #define HAVE_BLKDEV_GET_BY_PATH 1
17932 _ACEOF
17933
17934
17935 fi
17936
17937
17938
17939
17940 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
17941 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
17942 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
17943 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17944 rc=$?
17945 if test $rc -ne 0; then
17946
17947 export=0
17948 for file in fs/block_dev.c; do
17949 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
17950 rc=$?
17951 if test $rc -eq 0; then
17952
17953 export=1
17954 break;
17955
17956 fi
17957
17958 done
17959 if test $export -eq 0; then
17960
17961 { $as_echo "$as_me:$LINENO: result: no" >&5
17962 $as_echo "no" >&6; }
17963
17964
17965 else
17966
17967 { $as_echo "$as_me:$LINENO: result: yes" >&5
17968 $as_echo "yes" >&6; }
17969
17970 cat >>confdefs.h <<\_ACEOF
17971 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
17972 _ACEOF
17973
17974
17975 fi
17976
17977
17978 else
17979
17980 { $as_echo "$as_me:$LINENO: result: yes" >&5
17981 $as_echo "yes" >&6; }
17982
17983 cat >>confdefs.h <<\_ACEOF
17984 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
17985 _ACEOF
17986
17987
17988 fi
17989
17990
17991
17992
17993 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
17994 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
17995
17996
17997 cat confdefs.h - <<_ACEOF >conftest.c
17998 /* confdefs.h. */
17999 _ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18003
18004
18005 #include <linux/buffer_head.h>
18006
18007 int
18008 main (void)
18009 {
18010
18011 struct block_device *bdev = NULL;
18012 invalidate_bdev(bdev);
18013
18014 ;
18015 return 0;
18016 }
18017
18018 _ACEOF
18019
18020
18021 rm -Rf build && mkdir -p build
18022 echo "obj-m := conftest.o" >build/Makefile
18023 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18026 ac_status=$?
18027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18031 ac_status=$?
18032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; }; then
18034
18035 { $as_echo "$as_me:$LINENO: result: yes" >&5
18036 $as_echo "yes" >&6; }
18037
18038 cat >>confdefs.h <<\_ACEOF
18039 #define HAVE_1ARG_INVALIDATE_BDEV 1
18040 _ACEOF
18041
18042
18043 else
18044 $as_echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18046
18047 { $as_echo "$as_me:$LINENO: result: no" >&5
18048 $as_echo "no" >&6; }
18049
18050
18051
18052 fi
18053
18054 rm -Rf build
18055
18056
18057
18058
18059 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
18060 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
18061 tmp_flags="$EXTRA_KCFLAGS"
18062 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
18063
18064
18065 cat confdefs.h - <<_ACEOF >conftest.c
18066 /* confdefs.h. */
18067 _ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18071
18072
18073 #include <linux/blkdev.h>
18074
18075 int
18076 main (void)
18077 {
18078
18079 struct block_device *bdev = NULL;
18080 bdev_logical_block_size(bdev);
18081
18082 ;
18083 return 0;
18084 }
18085
18086 _ACEOF
18087
18088
18089 rm -Rf build && mkdir -p build
18090 echo "obj-m := conftest.o" >build/Makefile
18091 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18094 ac_status=$?
18095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102
18103 { $as_echo "$as_me:$LINENO: result: yes" >&5
18104 $as_echo "yes" >&6; }
18105
18106 cat >>confdefs.h <<\_ACEOF
18107 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
18108 _ACEOF
18109
18110
18111 else
18112 $as_echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18114
18115 { $as_echo "$as_me:$LINENO: result: no" >&5
18116 $as_echo "no" >&6; }
18117
18118
18119
18120 fi
18121
18122 rm -Rf build
18123
18124
18125 EXTRA_KCFLAGS="$tmp_flags"
18126
18127
18128 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
18129 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
18130 EXTRA_KCFLAGS="-Werror"
18131
18132
18133 cat confdefs.h - <<_ACEOF >conftest.c
18134 /* confdefs.h. */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18139
18140
18141 #include <linux/bio.h>
18142
18143 int
18144 main (void)
18145 {
18146
18147 struct bio bio;
18148 (void)bio_empty_barrier(&bio);
18149
18150 ;
18151 return 0;
18152 }
18153
18154 _ACEOF
18155
18156
18157 rm -Rf build && mkdir -p build
18158 echo "obj-m := conftest.o" >build/Makefile
18159 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18162 ac_status=$?
18163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; }; then
18170
18171 { $as_echo "$as_me:$LINENO: result: yes" >&5
18172 $as_echo "yes" >&6; }
18173
18174 cat >>confdefs.h <<\_ACEOF
18175 #define HAVE_BIO_EMPTY_BARRIER 1
18176 _ACEOF
18177
18178
18179 else
18180 $as_echo "$as_me: failed program was:" >&5
18181 sed 's/^/| /' conftest.$ac_ext >&5
18182
18183 { $as_echo "$as_me:$LINENO: result: no" >&5
18184 $as_echo "no" >&6; }
18185
18186
18187
18188 fi
18189
18190 rm -Rf build
18191
18192
18193
18194
18195 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
18196 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
18197
18198
18199 cat confdefs.h - <<_ACEOF >conftest.c
18200 /* confdefs.h. */
18201 _ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h. */
18205
18206
18207 #include <linux/bio.h>
18208
18209 int
18210 main (void)
18211 {
18212
18213 int flags __attribute__ ((unused));
18214 flags = (1 << BIO_RW_FAILFAST);
18215
18216 ;
18217 return 0;
18218 }
18219
18220 _ACEOF
18221
18222
18223 rm -Rf build && mkdir -p build
18224 echo "obj-m := conftest.o" >build/Makefile
18225 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18233 ac_status=$?
18234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; }; then
18236
18237 { $as_echo "$as_me:$LINENO: result: yes" >&5
18238 $as_echo "yes" >&6; }
18239
18240 cat >>confdefs.h <<\_ACEOF
18241 #define HAVE_BIO_RW_FAILFAST 1
18242 _ACEOF
18243
18244
18245 else
18246 $as_echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18248
18249 { $as_echo "$as_me:$LINENO: result: no" >&5
18250 $as_echo "no" >&6; }
18251
18252
18253
18254 fi
18255
18256 rm -Rf build
18257
18258
18259
18260
18261 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
18262 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
18263
18264
18265 cat confdefs.h - <<_ACEOF >conftest.c
18266 /* confdefs.h. */
18267 _ACEOF
18268 cat confdefs.h >>conftest.$ac_ext
18269 cat >>conftest.$ac_ext <<_ACEOF
18270 /* end confdefs.h. */
18271
18272
18273 #include <linux/bio.h>
18274
18275 int
18276 main (void)
18277 {
18278
18279 int flags __attribute__ ((unused));
18280 flags = ((1 << BIO_RW_FAILFAST_DEV) |
18281 (1 << BIO_RW_FAILFAST_TRANSPORT) |
18282 (1 << BIO_RW_FAILFAST_DRIVER));
18283
18284 ;
18285 return 0;
18286 }
18287
18288 _ACEOF
18289
18290
18291 rm -Rf build && mkdir -p build
18292 echo "obj-m := conftest.o" >build/Makefile
18293 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18296 ac_status=$?
18297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18301 ac_status=$?
18302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18304
18305 { $as_echo "$as_me:$LINENO: result: yes" >&5
18306 $as_echo "yes" >&6; }
18307
18308 cat >>confdefs.h <<\_ACEOF
18309 #define HAVE_BIO_RW_FAILFAST_DTD 1
18310 _ACEOF
18311
18312
18313 else
18314 $as_echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18316
18317 { $as_echo "$as_me:$LINENO: result: no" >&5
18318 $as_echo "no" >&6; }
18319
18320
18321
18322 fi
18323
18324 rm -Rf build
18325
18326
18327
18328
18329 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
18330 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
18331
18332
18333 cat confdefs.h - <<_ACEOF >conftest.c
18334 /* confdefs.h. */
18335 _ACEOF
18336 cat confdefs.h >>conftest.$ac_ext
18337 cat >>conftest.$ac_ext <<_ACEOF
18338 /* end confdefs.h. */
18339
18340
18341 #include <linux/bio.h>
18342
18343 int
18344 main (void)
18345 {
18346
18347 int flags __attribute__ ((unused));
18348 flags = REQ_FAILFAST_MASK;
18349
18350 ;
18351 return 0;
18352 }
18353
18354 _ACEOF
18355
18356
18357 rm -Rf build && mkdir -p build
18358 echo "obj-m := conftest.o" >build/Makefile
18359 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361 (eval $ac_try) 2>&5
18362 ac_status=$?
18363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18367 ac_status=$?
18368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; }; then
18370
18371 { $as_echo "$as_me:$LINENO: result: yes" >&5
18372 $as_echo "yes" >&6; }
18373
18374 cat >>confdefs.h <<\_ACEOF
18375 #define HAVE_BIO_REQ_FAILFAST_MASK 1
18376 _ACEOF
18377
18378
18379 else
18380 $as_echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18382
18383 { $as_echo "$as_me:$LINENO: result: no" >&5
18384 $as_echo "no" >&6; }
18385
18386
18387
18388 fi
18389
18390 rm -Rf build
18391
18392
18393
18394
18395 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
18396 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
18397 tmp_flags="$EXTRA_KCFLAGS"
18398 EXTRA_KCFLAGS="-Werror"
18399
18400
18401 cat confdefs.h - <<_ACEOF >conftest.c
18402 /* confdefs.h. */
18403 _ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h. */
18407
18408
18409 #include <linux/bio.h>
18410
18411 int
18412 main (void)
18413 {
18414
18415 void (*wanted_end_io)(struct bio *, int) = NULL;
18416 bio_end_io_t *local_end_io __attribute__ ((unused));
18417
18418 local_end_io = wanted_end_io;
18419
18420 ;
18421 return 0;
18422 }
18423
18424 _ACEOF
18425
18426
18427 rm -Rf build && mkdir -p build
18428 echo "obj-m := conftest.o" >build/Makefile
18429 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18432 ac_status=$?
18433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436 (eval $ac_try) 2>&5
18437 ac_status=$?
18438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
18440
18441 { $as_echo "$as_me:$LINENO: result: yes" >&5
18442 $as_echo "yes" >&6; }
18443
18444 cat >>confdefs.h <<\_ACEOF
18445 #define HAVE_2ARGS_BIO_END_IO_T 1
18446 _ACEOF
18447
18448
18449 else
18450 $as_echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18452
18453 { $as_echo "$as_me:$LINENO: result: no" >&5
18454 $as_echo "no" >&6; }
18455
18456
18457
18458 fi
18459
18460 rm -Rf build
18461
18462
18463 EXTRA_KCFLAGS="$tmp_flags"
18464
18465
18466 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
18467 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
18468
18469
18470 cat confdefs.h - <<_ACEOF >conftest.c
18471 /* confdefs.h. */
18472 _ACEOF
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h. */
18476
18477
18478 #include <linux/bio.h>
18479
18480 int
18481 main (void)
18482 {
18483
18484 int flags __attribute__ ((unused));
18485 flags = BIO_RW_SYNC;
18486
18487 ;
18488 return 0;
18489 }
18490
18491 _ACEOF
18492
18493
18494 rm -Rf build && mkdir -p build
18495 echo "obj-m := conftest.o" >build/Makefile
18496 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18499 ac_status=$?
18500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503 (eval $ac_try) 2>&5
18504 ac_status=$?
18505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; }; then
18507
18508 { $as_echo "$as_me:$LINENO: result: yes" >&5
18509 $as_echo "yes" >&6; }
18510
18511 cat >>confdefs.h <<\_ACEOF
18512 #define HAVE_BIO_RW_SYNC 1
18513 _ACEOF
18514
18515
18516 else
18517 $as_echo "$as_me: failed program was:" >&5
18518 sed 's/^/| /' conftest.$ac_ext >&5
18519
18520 { $as_echo "$as_me:$LINENO: result: no" >&5
18521 $as_echo "no" >&6; }
18522
18523
18524
18525 fi
18526
18527 rm -Rf build
18528
18529
18530
18531
18532 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
18533 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
18534
18535
18536 cat confdefs.h - <<_ACEOF >conftest.c
18537 /* confdefs.h. */
18538 _ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h. */
18542
18543
18544 #include <linux/bio.h>
18545
18546 int
18547 main (void)
18548 {
18549
18550 int flags __attribute__ ((unused));
18551 flags = BIO_RW_SYNCIO;
18552
18553 ;
18554 return 0;
18555 }
18556
18557 _ACEOF
18558
18559
18560 rm -Rf build && mkdir -p build
18561 echo "obj-m := conftest.o" >build/Makefile
18562 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564 (eval $ac_try) 2>&5
18565 ac_status=$?
18566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569 (eval $ac_try) 2>&5
18570 ac_status=$?
18571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; }; then
18573
18574 { $as_echo "$as_me:$LINENO: result: yes" >&5
18575 $as_echo "yes" >&6; }
18576
18577 cat >>confdefs.h <<\_ACEOF
18578 #define HAVE_BIO_RW_SYNCIO 1
18579 _ACEOF
18580
18581
18582 else
18583 $as_echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18585
18586 { $as_echo "$as_me:$LINENO: result: no" >&5
18587 $as_echo "no" >&6; }
18588
18589
18590
18591 fi
18592
18593 rm -Rf build
18594
18595
18596
18597
18598 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
18599 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
18600
18601
18602 cat confdefs.h - <<_ACEOF >conftest.c
18603 /* confdefs.h. */
18604 _ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h. */
18608
18609
18610 #include <linux/bio.h>
18611
18612 int
18613 main (void)
18614 {
18615
18616 int flags __attribute__ ((unused));
18617 flags = REQ_SYNC;
18618
18619 ;
18620 return 0;
18621 }
18622
18623 _ACEOF
18624
18625
18626 rm -Rf build && mkdir -p build
18627 echo "obj-m := conftest.o" >build/Makefile
18628 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630 (eval $ac_try) 2>&5
18631 ac_status=$?
18632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18636 ac_status=$?
18637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639
18640 { $as_echo "$as_me:$LINENO: result: yes" >&5
18641 $as_echo "yes" >&6; }
18642
18643 cat >>confdefs.h <<\_ACEOF
18644 #define HAVE_REQ_SYNC 1
18645 _ACEOF
18646
18647
18648 else
18649 $as_echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18651
18652 { $as_echo "$as_me:$LINENO: result: no" >&5
18653 $as_echo "no" >&6; }
18654
18655
18656
18657 fi
18658
18659 rm -Rf build
18660
18661
18662
18663
18664 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
18665 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
18666 tmp_flags="$EXTRA_KCFLAGS"
18667 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
18668
18669
18670 cat confdefs.h - <<_ACEOF >conftest.c
18671 /* confdefs.h. */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18676
18677
18678 #include <linux/blkdev.h>
18679
18680 int
18681 main (void)
18682 {
18683
18684 struct request *req = NULL;
18685 (void) blk_end_request(req, 0, 0);
18686
18687 ;
18688 return 0;
18689 }
18690
18691 _ACEOF
18692
18693
18694 rm -Rf build && mkdir -p build
18695 echo "obj-m := conftest.o" >build/Makefile
18696 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698 (eval $ac_try) 2>&5
18699 ac_status=$?
18700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; }; then
18707
18708 { $as_echo "$as_me:$LINENO: result: yes" >&5
18709 $as_echo "yes" >&6; }
18710
18711 cat >>confdefs.h <<\_ACEOF
18712 #define HAVE_BLK_END_REQUEST 1
18713 _ACEOF
18714
18715
18716 else
18717 $as_echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18719
18720 { $as_echo "$as_me:$LINENO: result: no" >&5
18721 $as_echo "no" >&6; }
18722
18723
18724
18725 fi
18726
18727 rm -Rf build
18728
18729
18730
18731 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
18732 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
18733
18734
18735 cat confdefs.h - <<_ACEOF >conftest.c
18736 /* confdefs.h. */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18741
18742
18743 #include <linux/module.h>
18744 #include <linux/blkdev.h>
18745
18746 MODULE_LICENSE("CDDL");
18747
18748 int
18749 main (void)
18750 {
18751
18752 struct request *req = NULL;
18753 (void) blk_end_request(req, 0, 0);
18754
18755 ;
18756 return 0;
18757 }
18758
18759 _ACEOF
18760
18761
18762 rm -Rf build && mkdir -p build
18763 echo "obj-m := conftest.o" >build/Makefile
18764 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18771 (eval $ac_try) 2>&5
18772 ac_status=$?
18773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; }; then
18775
18776 { $as_echo "$as_me:$LINENO: result: no" >&5
18777 $as_echo "no" >&6; }
18778
18779 else
18780 $as_echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18782
18783 { $as_echo "$as_me:$LINENO: result: yes" >&5
18784 $as_echo "yes" >&6; }
18785
18786 cat >>confdefs.h <<\_ACEOF
18787 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
18788 _ACEOF
18789
18790
18791
18792
18793 fi
18794
18795 rm -Rf build
18796
18797
18798 EXTRA_KCFLAGS="$tmp_flags"
18799
18800
18801 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
18802 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
18803 tmp_flags="$EXTRA_KCFLAGS"
18804 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
18805
18806
18807 cat confdefs.h - <<_ACEOF >conftest.c
18808 /* confdefs.h. */
18809 _ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18813
18814
18815 #include <linux/blkdev.h>
18816
18817 int
18818 main (void)
18819 {
18820
18821 struct request_queue *q = NULL;
18822 (void) blk_fetch_request(q);
18823
18824 ;
18825 return 0;
18826 }
18827
18828 _ACEOF
18829
18830
18831 rm -Rf build && mkdir -p build
18832 echo "obj-m := conftest.o" >build/Makefile
18833 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835 (eval $ac_try) 2>&5
18836 ac_status=$?
18837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840 (eval $ac_try) 2>&5
18841 ac_status=$?
18842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; }; then
18844
18845 { $as_echo "$as_me:$LINENO: result: yes" >&5
18846 $as_echo "yes" >&6; }
18847
18848 cat >>confdefs.h <<\_ACEOF
18849 #define HAVE_BLK_FETCH_REQUEST 1
18850 _ACEOF
18851
18852
18853 else
18854 $as_echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18856
18857 { $as_echo "$as_me:$LINENO: result: no" >&5
18858 $as_echo "no" >&6; }
18859
18860
18861
18862 fi
18863
18864 rm -Rf build
18865
18866
18867 EXTRA_KCFLAGS="$tmp_flags"
18868
18869
18870 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
18871 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
18872 tmp_flags="$EXTRA_KCFLAGS"
18873 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
18874
18875
18876 cat confdefs.h - <<_ACEOF >conftest.c
18877 /* confdefs.h. */
18878 _ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18882
18883
18884 #include <linux/blkdev.h>
18885
18886 int
18887 main (void)
18888 {
18889
18890 struct request_queue *q = NULL;
18891 struct request *req = NULL;
18892 blk_requeue_request(q, req);
18893
18894 ;
18895 return 0;
18896 }
18897
18898 _ACEOF
18899
18900
18901 rm -Rf build && mkdir -p build
18902 echo "obj-m := conftest.o" >build/Makefile
18903 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18906 ac_status=$?
18907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18911 ac_status=$?
18912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
18914
18915 { $as_echo "$as_me:$LINENO: result: yes" >&5
18916 $as_echo "yes" >&6; }
18917
18918 cat >>confdefs.h <<\_ACEOF
18919 #define HAVE_BLK_REQUEUE_REQUEST 1
18920 _ACEOF
18921
18922
18923 else
18924 $as_echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18926
18927 { $as_echo "$as_me:$LINENO: result: no" >&5
18928 $as_echo "no" >&6; }
18929
18930
18931
18932 fi
18933
18934 rm -Rf build
18935
18936
18937 EXTRA_KCFLAGS="$tmp_flags"
18938
18939
18940 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
18941 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
18942 tmp_flags="$EXTRA_KCFLAGS"
18943 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
18944
18945
18946 cat confdefs.h - <<_ACEOF >conftest.c
18947 /* confdefs.h. */
18948 _ACEOF
18949 cat confdefs.h >>conftest.$ac_ext
18950 cat >>conftest.$ac_ext <<_ACEOF
18951 /* end confdefs.h. */
18952
18953
18954 #include <linux/blkdev.h>
18955
18956 int
18957 main (void)
18958 {
18959
18960 struct request *req = NULL;
18961 (void) blk_rq_bytes(req);
18962
18963 ;
18964 return 0;
18965 }
18966
18967 _ACEOF
18968
18969
18970 rm -Rf build && mkdir -p build
18971 echo "obj-m := conftest.o" >build/Makefile
18972 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18975 ac_status=$?
18976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983
18984 { $as_echo "$as_me:$LINENO: result: yes" >&5
18985 $as_echo "yes" >&6; }
18986
18987 cat >>confdefs.h <<\_ACEOF
18988 #define HAVE_BLK_RQ_BYTES 1
18989 _ACEOF
18990
18991
18992 else
18993 $as_echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18995
18996 { $as_echo "$as_me:$LINENO: result: no" >&5
18997 $as_echo "no" >&6; }
18998
18999
19000
19001 fi
19002
19003 rm -Rf build
19004
19005
19006
19007 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
19008 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
19009
19010
19011 cat confdefs.h - <<_ACEOF >conftest.c
19012 /* confdefs.h. */
19013 _ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h. */
19017
19018
19019 #include <linux/module.h>
19020 #include <linux/blkdev.h>
19021
19022 MODULE_LICENSE("CDDL");
19023
19024 int
19025 main (void)
19026 {
19027
19028 struct request *req = NULL;
19029 (void) blk_rq_bytes(req);
19030
19031 ;
19032 return 0;
19033 }
19034
19035 _ACEOF
19036
19037
19038 rm -Rf build && mkdir -p build
19039 echo "obj-m := conftest.o" >build/Makefile
19040 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19043 ac_status=$?
19044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; }; then
19051
19052 { $as_echo "$as_me:$LINENO: result: no" >&5
19053 $as_echo "no" >&6; }
19054
19055 else
19056 $as_echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19058
19059 { $as_echo "$as_me:$LINENO: result: yes" >&5
19060 $as_echo "yes" >&6; }
19061
19062 cat >>confdefs.h <<\_ACEOF
19063 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
19064 _ACEOF
19065
19066
19067
19068
19069 fi
19070
19071 rm -Rf build
19072
19073
19074 EXTRA_KCFLAGS="$tmp_flags"
19075
19076
19077 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
19078 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
19079 tmp_flags="$EXTRA_KCFLAGS"
19080 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19081
19082
19083 cat confdefs.h - <<_ACEOF >conftest.c
19084 /* confdefs.h. */
19085 _ACEOF
19086 cat confdefs.h >>conftest.$ac_ext
19087 cat >>conftest.$ac_ext <<_ACEOF
19088 /* end confdefs.h. */
19089
19090
19091 #include <linux/blkdev.h>
19092
19093 int
19094 main (void)
19095 {
19096
19097 struct request *req = NULL;
19098 (void) blk_rq_pos(req);
19099
19100 ;
19101 return 0;
19102 }
19103
19104 _ACEOF
19105
19106
19107 rm -Rf build && mkdir -p build
19108 echo "obj-m := conftest.o" >build/Makefile
19109 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19111 (eval $ac_try) 2>&5
19112 ac_status=$?
19113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120
19121 { $as_echo "$as_me:$LINENO: result: yes" >&5
19122 $as_echo "yes" >&6; }
19123
19124 cat >>confdefs.h <<\_ACEOF
19125 #define HAVE_BLK_RQ_POS 1
19126 _ACEOF
19127
19128
19129 else
19130 $as_echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19132
19133 { $as_echo "$as_me:$LINENO: result: no" >&5
19134 $as_echo "no" >&6; }
19135
19136
19137
19138 fi
19139
19140 rm -Rf build
19141
19142
19143 EXTRA_KCFLAGS="$tmp_flags"
19144
19145
19146 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
19147 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
19148 tmp_flags="$EXTRA_KCFLAGS"
19149 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19150
19151
19152 cat confdefs.h - <<_ACEOF >conftest.c
19153 /* confdefs.h. */
19154 _ACEOF
19155 cat confdefs.h >>conftest.$ac_ext
19156 cat >>conftest.$ac_ext <<_ACEOF
19157 /* end confdefs.h. */
19158
19159
19160 #include <linux/blkdev.h>
19161
19162 int
19163 main (void)
19164 {
19165
19166 struct request *req = NULL;
19167 (void) blk_rq_sectors(req);
19168
19169 ;
19170 return 0;
19171 }
19172
19173 _ACEOF
19174
19175
19176 rm -Rf build && mkdir -p build
19177 echo "obj-m := conftest.o" >build/Makefile
19178 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19181 ac_status=$?
19182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19186 ac_status=$?
19187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; }; then
19189
19190 { $as_echo "$as_me:$LINENO: result: yes" >&5
19191 $as_echo "yes" >&6; }
19192
19193 cat >>confdefs.h <<\_ACEOF
19194 #define HAVE_BLK_RQ_SECTORS 1
19195 _ACEOF
19196
19197
19198 else
19199 $as_echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19201
19202 { $as_echo "$as_me:$LINENO: result: no" >&5
19203 $as_echo "no" >&6; }
19204
19205
19206
19207 fi
19208
19209 rm -Rf build
19210
19211
19212 EXTRA_KCFLAGS="$tmp_flags"
19213
19214
19215 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
19216 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
19217 tmp_flags="$EXTRA_KCFLAGS"
19218 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19219
19220
19221 cat confdefs.h - <<_ACEOF >conftest.c
19222 /* confdefs.h. */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19227
19228
19229 #include <linux/blkdev.h>
19230
19231 int
19232 main (void)
19233 {
19234
19235 struct gendisk *disk = NULL;
19236 (void) get_disk_ro(disk);
19237
19238 ;
19239 return 0;
19240 }
19241
19242 _ACEOF
19243
19244
19245 rm -Rf build && mkdir -p build
19246 echo "obj-m := conftest.o" >build/Makefile
19247 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19250 ac_status=$?
19251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254 (eval $ac_try) 2>&5
19255 ac_status=$?
19256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; }; then
19258
19259 { $as_echo "$as_me:$LINENO: result: yes" >&5
19260 $as_echo "yes" >&6; }
19261
19262 cat >>confdefs.h <<\_ACEOF
19263 #define HAVE_GET_DISK_RO 1
19264 _ACEOF
19265
19266
19267 else
19268 $as_echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19270
19271 { $as_echo "$as_me:$LINENO: result: no" >&5
19272 $as_echo "no" >&6; }
19273
19274
19275
19276 fi
19277
19278 rm -Rf build
19279
19280
19281 EXTRA_KCFLAGS="$tmp_flags"
19282
19283
19284 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
19285 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
19286 tmp_flags="$EXTRA_KCFLAGS"
19287 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19288
19289
19290 cat confdefs.h - <<_ACEOF >conftest.c
19291 /* confdefs.h. */
19292 _ACEOF
19293 cat confdefs.h >>conftest.$ac_ext
19294 cat >>conftest.$ac_ext <<_ACEOF
19295 /* end confdefs.h. */
19296
19297
19298 #include <linux/blkdev.h>
19299
19300 int
19301 main (void)
19302 {
19303
19304 struct request *req = NULL;
19305 (void) rq_is_sync(req);
19306
19307 ;
19308 return 0;
19309 }
19310
19311 _ACEOF
19312
19313
19314 rm -Rf build && mkdir -p build
19315 echo "obj-m := conftest.o" >build/Makefile
19316 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19319 ac_status=$?
19320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
19327
19328 { $as_echo "$as_me:$LINENO: result: yes" >&5
19329 $as_echo "yes" >&6; }
19330
19331 cat >>confdefs.h <<\_ACEOF
19332 #define HAVE_RQ_IS_SYNC 1
19333 _ACEOF
19334
19335
19336 else
19337 $as_echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19339
19340 { $as_echo "$as_me:$LINENO: result: no" >&5
19341 $as_echo "no" >&6; }
19342
19343
19344
19345 fi
19346
19347 rm -Rf build
19348
19349
19350 EXTRA_KCFLAGS="$tmp_flags"
19351
19352
19353 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
19354 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
19355 tmp_flags="$EXTRA_KCFLAGS"
19356 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19357
19358
19359 cat confdefs.h - <<_ACEOF >conftest.c
19360 /* confdefs.h. */
19361 _ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h. */
19365
19366
19367 #include <linux/blkdev.h>
19368
19369 int
19370 main (void)
19371 {
19372
19373 struct bio_vec *bv;
19374 struct req_iterator iter;
19375 struct request *req = NULL;
19376 rq_for_each_segment(bv, req, iter) { }
19377
19378 ;
19379 return 0;
19380 }
19381
19382 _ACEOF
19383
19384
19385 rm -Rf build && mkdir -p build
19386 echo "obj-m := conftest.o" >build/Makefile
19387 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19395 ac_status=$?
19396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
19398
19399 { $as_echo "$as_me:$LINENO: result: yes" >&5
19400 $as_echo "yes" >&6; }
19401
19402 cat >>confdefs.h <<\_ACEOF
19403 #define HAVE_RQ_FOR_EACH_SEGMENT 1
19404 _ACEOF
19405
19406
19407 else
19408 $as_echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19410
19411 { $as_echo "$as_me:$LINENO: result: no" >&5
19412 $as_echo "no" >&6; }
19413
19414
19415
19416 fi
19417
19418 rm -Rf build
19419
19420
19421 EXTRA_KCFLAGS="$tmp_flags"
19422
19423 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
19424 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
19425
19426
19427 cat confdefs.h - <<_ACEOF >conftest.c
19428 /* confdefs.h. */
19429 _ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h. */
19433
19434
19435 #include <linux/fs.h>
19436 #include <linux/xattr.h>
19437
19438 const struct xattr_handler xattr_test_handler = {
19439 .prefix = "test",
19440 .get = NULL,
19441 .set = NULL,
19442 };
19443
19444 const struct xattr_handler *xattr_handlers[] = {
19445 &xattr_test_handler,
19446 };
19447
19448 int
19449 main (void)
19450 {
19451
19452 struct super_block sb __attribute__ ((unused));
19453
19454 sb.s_xattr = xattr_handlers;
19455
19456 ;
19457 return 0;
19458 }
19459
19460 _ACEOF
19461
19462
19463 rm -Rf build && mkdir -p build
19464 echo "obj-m := conftest.o" >build/Makefile
19465 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19468 ac_status=$?
19469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476
19477 { $as_echo "$as_me:$LINENO: result: yes" >&5
19478 $as_echo "yes" >&6; }
19479
19480 cat >>confdefs.h <<\_ACEOF
19481 #define HAVE_CONST_XATTR_HANDLER 1
19482 _ACEOF
19483
19484
19485 else
19486 $as_echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19488
19489 { $as_echo "$as_me:$LINENO: result: no" >&5
19490 $as_echo "no" >&6; }
19491
19492
19493
19494 fi
19495
19496 rm -Rf build
19497
19498
19499
19500
19501 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
19502 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
19503
19504
19505 cat confdefs.h - <<_ACEOF >conftest.c
19506 /* confdefs.h. */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511
19512
19513 #include <linux/xattr.h>
19514
19515 int
19516 main (void)
19517 {
19518
19519 int (*get)(struct dentry *dentry, const char *name,
19520 void *buffer, size_t size, int handler_flags) = NULL;
19521 struct xattr_handler xops __attribute__ ((unused));
19522
19523 xops.get = get;
19524
19525 ;
19526 return 0;
19527 }
19528
19529 _ACEOF
19530
19531
19532 rm -Rf build && mkdir -p build
19533 echo "obj-m := conftest.o" >build/Makefile
19534 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536 (eval $ac_try) 2>&5
19537 ac_status=$?
19538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541 (eval $ac_try) 2>&5
19542 ac_status=$?
19543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; }; then
19545
19546 { $as_echo "$as_me:$LINENO: result: yes" >&5
19547 $as_echo "yes" >&6; }
19548
19549 cat >>confdefs.h <<\_ACEOF
19550 #define HAVE_DENTRY_XATTR_GET 1
19551 _ACEOF
19552
19553
19554 else
19555 $as_echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19557
19558 { $as_echo "$as_me:$LINENO: result: no" >&5
19559 $as_echo "no" >&6; }
19560
19561
19562
19563 fi
19564
19565 rm -Rf build
19566
19567
19568
19569
19570 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
19571 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
19572
19573
19574 cat confdefs.h - <<_ACEOF >conftest.c
19575 /* confdefs.h. */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19580
19581
19582 #include <linux/xattr.h>
19583
19584 int
19585 main (void)
19586 {
19587
19588 int (*set)(struct dentry *dentry, const char *name,
19589 const void *buffer, size_t size, int flags,
19590 int handler_flags) = NULL;
19591 struct xattr_handler xops __attribute__ ((unused));
19592
19593 xops.set = set;
19594
19595 ;
19596 return 0;
19597 }
19598
19599 _ACEOF
19600
19601
19602 rm -Rf build && mkdir -p build
19603 echo "obj-m := conftest.o" >build/Makefile
19604 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; }; then
19615
19616 { $as_echo "$as_me:$LINENO: result: yes" >&5
19617 $as_echo "yes" >&6; }
19618
19619 cat >>confdefs.h <<\_ACEOF
19620 #define HAVE_DENTRY_XATTR_SET 1
19621 _ACEOF
19622
19623
19624 else
19625 $as_echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19627
19628 { $as_echo "$as_me:$LINENO: result: no" >&5
19629 $as_echo "no" >&6; }
19630
19631
19632
19633 fi
19634
19635 rm -Rf build
19636
19637
19638
19639
19640 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
19641 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
19642
19643
19644
19645 cat confdefs.h - <<_ACEOF >conftest.c
19646 /* confdefs.h. */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19651
19652
19653 #include <linux/fs.h>
19654
19655 int
19656 main (void)
19657 {
19658
19659 int (*fsync) (struct file *, struct dentry *, int) = NULL;
19660 struct file_operations fops __attribute__ ((unused));
19661
19662 fops.fsync = fsync;
19663
19664 ;
19665 return 0;
19666 }
19667
19668 _ACEOF
19669
19670
19671 rm -Rf build && mkdir -p build
19672 echo "obj-m := conftest.o" >build/Makefile
19673 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19676 ac_status=$?
19677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680 (eval $ac_try) 2>&5
19681 ac_status=$?
19682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; }; then
19684
19685 { $as_echo "$as_me:$LINENO: result: dentry" >&5
19686 $as_echo "dentry" >&6; }
19687
19688 cat >>confdefs.h <<\_ACEOF
19689 #define HAVE_FSYNC_WITH_DENTRY 1
19690 _ACEOF
19691
19692
19693 else
19694 $as_echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19696
19697
19698
19699
19700 fi
19701
19702 rm -Rf build
19703
19704
19705
19706
19707
19708
19709 cat confdefs.h - <<_ACEOF >conftest.c
19710 /* confdefs.h. */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715
19716
19717 #include <linux/fs.h>
19718
19719 int
19720 main (void)
19721 {
19722
19723 int (*fsync) (struct file *, int) = NULL;
19724 struct file_operations fops __attribute__ ((unused));
19725
19726 fops.fsync = fsync;
19727
19728 ;
19729 return 0;
19730 }
19731
19732 _ACEOF
19733
19734
19735 rm -Rf build && mkdir -p build
19736 echo "obj-m := conftest.o" >build/Makefile
19737 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19740 ac_status=$?
19741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19745 ac_status=$?
19746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; }; then
19748
19749 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
19750 $as_echo "no dentry" >&6; }
19751
19752 cat >>confdefs.h <<\_ACEOF
19753 #define HAVE_FSYNC_WITHOUT_DENTRY 1
19754 _ACEOF
19755
19756
19757 else
19758 $as_echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19760
19761
19762
19763
19764 fi
19765
19766 rm -Rf build
19767
19768
19769
19770
19771
19772
19773 cat confdefs.h - <<_ACEOF >conftest.c
19774 /* confdefs.h. */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19779
19780
19781 #include <linux/fs.h>
19782
19783 int
19784 main (void)
19785 {
19786
19787 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
19788 struct file_operations fops __attribute__ ((unused));
19789
19790 fops.fsync = fsync;
19791
19792 ;
19793 return 0;
19794 }
19795
19796 _ACEOF
19797
19798
19799 rm -Rf build && mkdir -p build
19800 echo "obj-m := conftest.o" >build/Makefile
19801 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19804 ac_status=$?
19805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808 (eval $ac_try) 2>&5
19809 ac_status=$?
19810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; }; then
19812
19813 { $as_echo "$as_me:$LINENO: result: range" >&5
19814 $as_echo "range" >&6; }
19815
19816 cat >>confdefs.h <<\_ACEOF
19817 #define HAVE_FSYNC_RANGE 1
19818 _ACEOF
19819
19820
19821 else
19822 $as_echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19824
19825
19826
19827
19828 fi
19829
19830 rm -Rf build
19831
19832
19833
19834
19835
19836 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
19837 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
19838
19839
19840 cat confdefs.h - <<_ACEOF >conftest.c
19841 /* confdefs.h. */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846
19847
19848 #include <linux/fs.h>
19849
19850 int
19851 main (void)
19852 {
19853
19854 void (*evict_inode) (struct inode *) = NULL;
19855 struct super_operations sops __attribute__ ((unused)) = {
19856 .evict_inode = evict_inode,
19857 };
19858
19859 ;
19860 return 0;
19861 }
19862
19863 _ACEOF
19864
19865
19866 rm -Rf build && mkdir -p build
19867 echo "obj-m := conftest.o" >build/Makefile
19868 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19871 ac_status=$?
19872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875 (eval $ac_try) 2>&5
19876 ac_status=$?
19877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
19879
19880 { $as_echo "$as_me:$LINENO: result: yes" >&5
19881 $as_echo "yes" >&6; }
19882
19883 cat >>confdefs.h <<\_ACEOF
19884 #define HAVE_EVICT_INODE 1
19885 _ACEOF
19886
19887
19888 else
19889 $as_echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892 { $as_echo "$as_me:$LINENO: result: no" >&5
19893 $as_echo "no" >&6; }
19894
19895
19896
19897 fi
19898
19899 rm -Rf build
19900
19901
19902
19903
19904 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
19905 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
19906
19907
19908 cat confdefs.h - <<_ACEOF >conftest.c
19909 /* confdefs.h. */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19914
19915
19916 #include <linux/fs.h>
19917
19918 int
19919 main (void)
19920 {
19921
19922 int (*nr_cached_objects)(struct super_block *)
19923 __attribute__ ((unused)) = NULL;
19924 struct super_operations sops __attribute__ ((unused)) = {
19925 .nr_cached_objects = nr_cached_objects,
19926 };
19927
19928 ;
19929 return 0;
19930 }
19931
19932 _ACEOF
19933
19934
19935 rm -Rf build && mkdir -p build
19936 echo "obj-m := conftest.o" >build/Makefile
19937 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19940 ac_status=$?
19941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19945 ac_status=$?
19946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; }; then
19948
19949 { $as_echo "$as_me:$LINENO: result: yes" >&5
19950 $as_echo "yes" >&6; }
19951
19952 cat >>confdefs.h <<\_ACEOF
19953 #define HAVE_NR_CACHED_OBJECTS 1
19954 _ACEOF
19955
19956
19957 else
19958 $as_echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19960
19961 { $as_echo "$as_me:$LINENO: result: no" >&5
19962 $as_echo "no" >&6; }
19963
19964
19965
19966 fi
19967
19968 rm -Rf build
19969
19970
19971
19972
19973 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
19974 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
19975
19976
19977 cat confdefs.h - <<_ACEOF >conftest.c
19978 /* confdefs.h. */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19983
19984
19985 #include <linux/fs.h>
19986
19987 int
19988 main (void)
19989 {
19990
19991 void (*free_cached_objects)(struct super_block *, int)
19992 __attribute__ ((unused)) = NULL;
19993 struct super_operations sops __attribute__ ((unused)) = {
19994 .free_cached_objects = free_cached_objects,
19995 };
19996
19997 ;
19998 return 0;
19999 }
20000
20001 _ACEOF
20002
20003
20004 rm -Rf build && mkdir -p build
20005 echo "obj-m := conftest.o" >build/Makefile
20006 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20009 ac_status=$?
20010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20014 ac_status=$?
20015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20017
20018 { $as_echo "$as_me:$LINENO: result: yes" >&5
20019 $as_echo "yes" >&6; }
20020
20021 cat >>confdefs.h <<\_ACEOF
20022 #define HAVE_FREE_CACHED_OBJECTS 1
20023 _ACEOF
20024
20025
20026 else
20027 $as_echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20029
20030 { $as_echo "$as_me:$LINENO: result: no" >&5
20031 $as_echo "no" >&6; }
20032
20033
20034
20035 fi
20036
20037 rm -Rf build
20038
20039
20040
20041
20042 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
20043 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
20044 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
20045 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20046 rc=$?
20047 if test $rc -ne 0; then
20048
20049 export=0
20050 for file in fs/inode.c; do
20051 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
20052 rc=$?
20053 if test $rc -eq 0; then
20054
20055 export=1
20056 break;
20057
20058 fi
20059
20060 done
20061 if test $export -eq 0; then
20062
20063 { $as_echo "$as_me:$LINENO: result: no" >&5
20064 $as_echo "no" >&6; }
20065
20066
20067 else
20068
20069 { $as_echo "$as_me:$LINENO: result: yes" >&5
20070 $as_echo "yes" >&6; }
20071
20072 cat >>confdefs.h <<\_ACEOF
20073 #define HAVE_INSERT_INODE_LOCKED 1
20074 _ACEOF
20075
20076
20077 fi
20078
20079
20080 else
20081
20082 { $as_echo "$as_me:$LINENO: result: yes" >&5
20083 $as_echo "yes" >&6; }
20084
20085 cat >>confdefs.h <<\_ACEOF
20086 #define HAVE_INSERT_INODE_LOCKED 1
20087 _ACEOF
20088
20089
20090 fi
20091
20092
20093
20094
20095 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
20096 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
20097 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
20098 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20099 rc=$?
20100 if test $rc -ne 0; then
20101
20102 export=0
20103 for file in fs/dcache.c; do
20104 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
20105 rc=$?
20106 if test $rc -eq 0; then
20107
20108 export=1
20109 break;
20110
20111 fi
20112
20113 done
20114 if test $export -eq 0; then
20115
20116 { $as_echo "$as_me:$LINENO: result: no" >&5
20117 $as_echo "no" >&6; }
20118
20119
20120 else
20121
20122 { $as_echo "$as_me:$LINENO: result: yes" >&5
20123 $as_echo "yes" >&6; }
20124
20125 cat >>confdefs.h <<\_ACEOF
20126 #define HAVE_D_OBTAIN_ALIAS 1
20127 _ACEOF
20128
20129
20130 fi
20131
20132
20133 else
20134
20135 { $as_echo "$as_me:$LINENO: result: yes" >&5
20136 $as_echo "yes" >&6; }
20137
20138 cat >>confdefs.h <<\_ACEOF
20139 #define HAVE_D_OBTAIN_ALIAS 1
20140 _ACEOF
20141
20142
20143 fi
20144
20145
20146
20147
20148 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
20149 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
20150 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
20151 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20152 rc=$?
20153 if test $rc -ne 0; then
20154
20155 export=0
20156 for file in fs/block_dev.c; do
20157 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
20158 rc=$?
20159 if test $rc -eq 0; then
20160
20161 export=1
20162 break;
20163
20164 fi
20165
20166 done
20167 if test $export -eq 0; then
20168
20169 { $as_echo "$as_me:$LINENO: result: no" >&5
20170 $as_echo "no" >&6; }
20171
20172
20173 else
20174
20175 { $as_echo "$as_me:$LINENO: result: yes" >&5
20176 $as_echo "yes" >&6; }
20177
20178 cat >>confdefs.h <<\_ACEOF
20179 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
20180 _ACEOF
20181
20182
20183 fi
20184
20185
20186 else
20187
20188 { $as_echo "$as_me:$LINENO: result: yes" >&5
20189 $as_echo "yes" >&6; }
20190
20191 cat >>confdefs.h <<\_ACEOF
20192 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
20193 _ACEOF
20194
20195
20196 fi
20197
20198
20199
20200
20201 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
20202 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
20203 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
20204 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20205 rc=$?
20206 if test $rc -ne 0; then
20207
20208 export=0
20209 for file in mm/truncate.c; do
20210 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
20211 rc=$?
20212 if test $rc -eq 0; then
20213
20214 export=1
20215 break;
20216
20217 fi
20218
20219 done
20220 if test $export -eq 0; then
20221
20222 { $as_echo "$as_me:$LINENO: result: no" >&5
20223 $as_echo "no" >&6; }
20224
20225
20226 else
20227
20228 { $as_echo "$as_me:$LINENO: result: yes" >&5
20229 $as_echo "yes" >&6; }
20230
20231 cat >>confdefs.h <<\_ACEOF
20232 #define HAVE_TRUNCATE_SETSIZE 1
20233 _ACEOF
20234
20235
20236 fi
20237
20238
20239 else
20240
20241 { $as_echo "$as_me:$LINENO: result: yes" >&5
20242 $as_echo "yes" >&6; }
20243
20244 cat >>confdefs.h <<\_ACEOF
20245 #define HAVE_TRUNCATE_SETSIZE 1
20246 _ACEOF
20247
20248
20249 fi
20250
20251
20252
20253
20254 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
20255 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
20256 tmp_flags="$EXTRA_KCFLAGS"
20257 EXTRA_KCFLAGS="-Werror"
20258
20259
20260 cat confdefs.h - <<_ACEOF >conftest.c
20261 /* confdefs.h. */
20262 _ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20266
20267
20268 #include <linux/security.h>
20269
20270 int
20271 main (void)
20272 {
20273
20274 struct inode *ip __attribute__ ((unused)) = NULL;
20275 struct inode *dip __attribute__ ((unused)) = NULL;
20276 const struct qstr *str __attribute__ ((unused)) = NULL;
20277 char *name __attribute__ ((unused)) = NULL;
20278 void *value __attribute__ ((unused)) = NULL;
20279 size_t len __attribute__ ((unused)) = 0;
20280
20281 security_inode_init_security(ip, dip, str, &name, &value, &len);
20282
20283 ;
20284 return 0;
20285 }
20286
20287 _ACEOF
20288
20289
20290 rm -Rf build && mkdir -p build
20291 echo "obj-m := conftest.o" >build/Makefile
20292 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20295 ac_status=$?
20296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20300 ac_status=$?
20301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; }; then
20303
20304 { $as_echo "$as_me:$LINENO: result: yes" >&5
20305 $as_echo "yes" >&6; }
20306
20307 cat >>confdefs.h <<\_ACEOF
20308 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
20309 _ACEOF
20310
20311
20312 else
20313 $as_echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20315
20316 { $as_echo "$as_me:$LINENO: result: no" >&5
20317 $as_echo "no" >&6; }
20318
20319
20320
20321 fi
20322
20323 rm -Rf build
20324
20325
20326 EXTRA_KCFLAGS="$tmp_flags"
20327
20328
20329 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
20330 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
20331 tmp_flags="$EXTRA_KCFLAGS"
20332 EXTRA_KCFLAGS="-Werror"
20333
20334
20335 cat confdefs.h - <<_ACEOF >conftest.c
20336 /* confdefs.h. */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20341
20342
20343 #include <linux/security.h>
20344
20345 int
20346 main (void)
20347 {
20348
20349 struct inode *ip __attribute__ ((unused)) = NULL;
20350 struct inode *dip __attribute__ ((unused)) = NULL;
20351 const struct qstr *str __attribute__ ((unused)) = NULL;
20352 initxattrs func __attribute__ ((unused)) = NULL;
20353
20354 security_inode_init_security(ip, dip, str, func, NULL);
20355
20356 ;
20357 return 0;
20358 }
20359
20360 _ACEOF
20361
20362
20363 rm -Rf build && mkdir -p build
20364 echo "obj-m := conftest.o" >build/Makefile
20365 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20368 ac_status=$?
20369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20373 ac_status=$?
20374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; }; then
20376
20377 { $as_echo "$as_me:$LINENO: result: yes" >&5
20378 $as_echo "yes" >&6; }
20379
20380 cat >>confdefs.h <<\_ACEOF
20381 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
20382 _ACEOF
20383
20384
20385 else
20386 $as_echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20388
20389 { $as_echo "$as_me:$LINENO: result: no" >&5
20390 $as_echo "no" >&6; }
20391
20392
20393
20394 fi
20395
20396 rm -Rf build
20397
20398
20399 EXTRA_KCFLAGS="$tmp_flags"
20400
20401
20402 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
20403 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
20404 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
20405 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20406 rc=$?
20407 if test $rc -ne 0; then
20408
20409 export=0
20410 for file in fs/super.c; do
20411 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
20412 rc=$?
20413 if test $rc -eq 0; then
20414
20415 export=1
20416 break;
20417
20418 fi
20419
20420 done
20421 if test $export -eq 0; then
20422
20423 { $as_echo "$as_me:$LINENO: result: no" >&5
20424 $as_echo "no" >&6; }
20425
20426
20427 else
20428
20429 { $as_echo "$as_me:$LINENO: result: yes" >&5
20430 $as_echo "yes" >&6; }
20431
20432 cat >>confdefs.h <<\_ACEOF
20433 #define HAVE_MOUNT_NODEV 1
20434 _ACEOF
20435
20436
20437 fi
20438
20439
20440 else
20441
20442 { $as_echo "$as_me:$LINENO: result: yes" >&5
20443 $as_echo "yes" >&6; }
20444
20445 cat >>confdefs.h <<\_ACEOF
20446 #define HAVE_MOUNT_NODEV 1
20447 _ACEOF
20448
20449
20450 fi
20451
20452
20453
20454
20455 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
20456 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
20457
20458
20459 cat confdefs.h - <<_ACEOF >conftest.c
20460 /* confdefs.h. */
20461 _ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20465
20466
20467 #include <linux/fs.h>
20468
20469 int
20470 main (void)
20471 {
20472
20473 int (*shrink)(struct shrinker *, struct shrink_control *sc)
20474 __attribute__ ((unused)) = NULL;
20475 struct super_block sb __attribute__ ((unused)) = {
20476 .s_shrink.shrink = shrink,
20477 .s_shrink.seeks = DEFAULT_SEEKS,
20478 .s_shrink.batch = 0,
20479 };
20480
20481 ;
20482 return 0;
20483 }
20484
20485 _ACEOF
20486
20487
20488 rm -Rf build && mkdir -p build
20489 echo "obj-m := conftest.o" >build/Makefile
20490 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20493 ac_status=$?
20494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
20501
20502 { $as_echo "$as_me:$LINENO: result: yes" >&5
20503 $as_echo "yes" >&6; }
20504
20505 cat >>confdefs.h <<\_ACEOF
20506 #define HAVE_SHRINK 1
20507 _ACEOF
20508
20509
20510
20511 else
20512 $as_echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20514
20515 { $as_echo "$as_me:$LINENO: result: no" >&5
20516 $as_echo "no" >&6; }
20517
20518
20519
20520 fi
20521
20522 rm -Rf build
20523
20524
20525
20526
20527 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
20528 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
20529
20530
20531 cat confdefs.h - <<_ACEOF >conftest.c
20532 /* confdefs.h. */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537
20538
20539 #include <linux/fs.h>
20540
20541 int
20542 main (void)
20543 {
20544
20545 struct super_block sb __attribute__ ((unused));
20546 sb.s_bdi = NULL;
20547
20548 ;
20549 return 0;
20550 }
20551
20552 _ACEOF
20553
20554
20555 rm -Rf build && mkdir -p build
20556 echo "obj-m := conftest.o" >build/Makefile
20557 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559 (eval $ac_try) 2>&5
20560 ac_status=$?
20561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568
20569 { $as_echo "$as_me:$LINENO: result: yes" >&5
20570 $as_echo "yes" >&6; }
20571
20572 cat >>confdefs.h <<\_ACEOF
20573 #define HAVE_BDI 1
20574 _ACEOF
20575
20576
20577 else
20578 $as_echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20580
20581 { $as_echo "$as_me:$LINENO: result: no" >&5
20582 $as_echo "no" >&6; }
20583
20584
20585
20586 fi
20587
20588 rm -Rf build
20589
20590
20591
20592
20593 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
20594 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
20595 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
20596 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20597 rc=$?
20598 if test $rc -ne 0; then
20599
20600 export=0
20601 for file in mm/backing-dev.c; do
20602 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
20603 rc=$?
20604 if test $rc -eq 0; then
20605
20606 export=1
20607 break;
20608
20609 fi
20610
20611 done
20612 if test $export -eq 0; then
20613
20614 { $as_echo "$as_me:$LINENO: result: no" >&5
20615 $as_echo "no" >&6; }
20616
20617
20618 else
20619
20620 { $as_echo "$as_me:$LINENO: result: yes" >&5
20621 $as_echo "yes" >&6; }
20622
20623 cat >>confdefs.h <<\_ACEOF
20624 #define HAVE_BDI_SETUP_AND_REGISTER 1
20625 _ACEOF
20626
20627
20628 fi
20629
20630
20631 else
20632
20633 { $as_echo "$as_me:$LINENO: result: yes" >&5
20634 $as_echo "yes" >&6; }
20635
20636 cat >>confdefs.h <<\_ACEOF
20637 #define HAVE_BDI_SETUP_AND_REGISTER 1
20638 _ACEOF
20639
20640
20641 fi
20642
20643
20644
20645
20646 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
20647 $as_echo_n "checking whether set_nlink() is available... " >&6; }
20648
20649
20650 cat confdefs.h - <<_ACEOF >conftest.c
20651 /* confdefs.h. */
20652 _ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20656
20657
20658 #include <linux/fs.h>
20659
20660 int
20661 main (void)
20662 {
20663
20664 struct inode node;
20665 unsigned int link = 0;
20666 (void) set_nlink(&node, link);
20667
20668 ;
20669 return 0;
20670 }
20671
20672 _ACEOF
20673
20674
20675 rm -Rf build && mkdir -p build
20676 echo "obj-m := conftest.o" >build/Makefile
20677 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20680 ac_status=$?
20681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20684 (eval $ac_try) 2>&5
20685 ac_status=$?
20686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); }; }; then
20688
20689 { $as_echo "$as_me:$LINENO: result: yes" >&5
20690 $as_echo "yes" >&6; }
20691
20692 cat >>confdefs.h <<\_ACEOF
20693 #define HAVE_SET_NLINK 1
20694 _ACEOF
20695
20696
20697 else
20698 $as_echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20700
20701 { $as_echo "$as_me:$LINENO: result: no" >&5
20702 $as_echo "no" >&6; }
20703
20704
20705
20706 fi
20707
20708 rm -Rf build
20709
20710
20711
20712
20713 if test "$LINUX_OBJ" != "$LINUX"; then
20714
20715 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
20716
20717 fi
20718
20719
20720
20721
20722 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
20723 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
20724 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
20725
20726
20727
20728
20729
20730
20731 # Check whether --with-udevdir was given.
20732 if test "${with_udevdir+set}" = set; then
20733 withval=$with_udevdir; udevdir=$withval
20734 else
20735 udevdir='${exec_prefix}/lib/udev'
20736 fi
20737
20738
20739
20740 # Check whether --with-udevruledir was given.
20741 if test "${with_udevruledir+set}" = set; then
20742 withval=$with_udevruledir; udevruledir=$withval
20743 else
20744 udevruledir='${udevdir}/rules.d'
20745 fi
20746
20747
20748
20749
20750
20751
20752 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
20753 $as_echo_n "checking for target asm dir... " >&6; }
20754 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
20755
20756 case $TARGET_ARCH in
20757 i386|x86_64)
20758 TARGET_ASM_DIR=asm-${TARGET_ARCH}
20759 ;;
20760 *)
20761 TARGET_ASM_DIR=asm-generic
20762 ;;
20763 esac
20764
20765
20766 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
20767 $as_echo "$TARGET_ASM_DIR" >&6; }
20768
20769
20770 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
20771 $as_echo_n "checking for ioctl()... " >&6; }
20772 cat >conftest.$ac_ext <<_ACEOF
20773 /* confdefs.h. */
20774 _ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h. */
20778 #include <unistd.h>
20779
20780 _ACEOF
20781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20782 $EGREP "ioctl" >/dev/null 2>&1; then
20783 is_unistd=yes
20784 else
20785 is_unistd=no
20786 fi
20787 rm -f conftest*
20788
20789 cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h. */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
20795 #include <sys/ioctl.h>
20796
20797 _ACEOF
20798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20799 $EGREP "ioctl" >/dev/null 2>&1; then
20800 is_sys_ioctl=yes
20801 else
20802 is_sys_ioctl=no
20803 fi
20804 rm -f conftest*
20805
20806 cat >conftest.$ac_ext <<_ACEOF
20807 /* confdefs.h. */
20808 _ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h. */
20812 #include <stropts.h>
20813
20814 _ACEOF
20815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20816 $EGREP "ioctl" >/dev/null 2>&1; then
20817 is_stropts=yes
20818 else
20819 is_stropts=no
20820 fi
20821 rm -f conftest*
20822
20823
20824 if test $is_unistd = yes; then
20825 result=unistd.h
20826
20827 cat >>confdefs.h <<\_ACEOF
20828 #define HAVE_IOCTL_IN_UNISTD_H 1
20829 _ACEOF
20830
20831 else
20832
20833 if test $is_sys_ioctl = yes; then
20834 result=sys/ioctl.h
20835
20836 cat >>confdefs.h <<\_ACEOF
20837 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
20838 _ACEOF
20839
20840 elif test $is_stropts = yes; then
20841
20842 cat >>confdefs.h <<\_ACEOF
20843 #define HAVE_IOCTL_IN_STROPTS_H 1
20844 _ACEOF
20845
20846 else
20847 result=no
20848 fi
20849 fi
20850
20851 if test $result = no; then
20852 { $as_echo "$as_me:$LINENO: result: no" >&5
20853 $as_echo "no" >&6; }
20854 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
20855 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
20856 { (exit 1); exit 1; }; }
20857 else
20858 { $as_echo "$as_me:$LINENO: result: yes" >&5
20859 $as_echo "yes" >&6; }
20860 fi
20861
20862
20863 ZLIB=
20864
20865 if test "${ac_cv_header_zlib_h+set}" = set; then
20866 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
20867 $as_echo_n "checking for zlib.h... " >&6; }
20868 if test "${ac_cv_header_zlib_h+set}" = set; then
20869 $as_echo_n "(cached) " >&6
20870 fi
20871 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20872 $as_echo "$ac_cv_header_zlib_h" >&6; }
20873 else
20874 # Is the header compilable?
20875 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
20876 $as_echo_n "checking zlib.h usability... " >&6; }
20877 cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h. */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20883 $ac_includes_default
20884 #include <zlib.h>
20885 _ACEOF
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20891 esac
20892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20893 $as_echo "$ac_try_echo") >&5
20894 (eval "$ac_compile") 2>conftest.er1
20895 ac_status=$?
20896 grep -v '^ *+' conftest.er1 >conftest.err
20897 rm -f conftest.er1
20898 cat conftest.err >&5
20899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } && {
20901 test -z "$ac_c_werror_flag" ||
20902 test ! -s conftest.err
20903 } && test -s conftest.$ac_objext; then
20904 ac_header_compiler=yes
20905 else
20906 $as_echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909 ac_header_compiler=no
20910 fi
20911
20912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20914 $as_echo "$ac_header_compiler" >&6; }
20915
20916 # Is the header present?
20917 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
20918 $as_echo_n "checking zlib.h presence... " >&6; }
20919 cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h. */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20925 #include <zlib.h>
20926 _ACEOF
20927 if { (ac_try="$ac_cpp conftest.$ac_ext"
20928 case "(($ac_try" in
20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20931 esac
20932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20933 $as_echo "$ac_try_echo") >&5
20934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20935 ac_status=$?
20936 grep -v '^ *+' conftest.er1 >conftest.err
20937 rm -f conftest.er1
20938 cat conftest.err >&5
20939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); } >/dev/null && {
20941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20942 test ! -s conftest.err
20943 }; then
20944 ac_header_preproc=yes
20945 else
20946 $as_echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20948
20949 ac_header_preproc=no
20950 fi
20951
20952 rm -f conftest.err conftest.$ac_ext
20953 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20954 $as_echo "$ac_header_preproc" >&6; }
20955
20956 # So? What about this header?
20957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20958 yes:no: )
20959 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20960 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20961 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20962 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20963 ac_header_preproc=yes
20964 ;;
20965 no:yes:* )
20966 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20967 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
20968 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20969 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20970 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20971 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20972 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20973 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20974 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20975 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
20976 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20977 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
20978
20979 ;;
20980 esac
20981 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
20982 $as_echo_n "checking for zlib.h... " >&6; }
20983 if test "${ac_cv_header_zlib_h+set}" = set; then
20984 $as_echo_n "(cached) " >&6
20985 else
20986 ac_cv_header_zlib_h=$ac_header_preproc
20987 fi
20988 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20989 $as_echo "$ac_cv_header_zlib_h" >&6; }
20990
20991 fi
20992 if test "x$ac_cv_header_zlib_h" = x""yes; then
20993 :
20994 else
20995 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20997 { { $as_echo "$as_me:$LINENO: error:
20998 *** zlib.h missing, zlib-devel package required
20999 See \`config.log' for more details." >&5
21000 $as_echo "$as_me: error:
21001 *** zlib.h missing, zlib-devel package required
21002 See \`config.log' for more details." >&2;}
21003 { (exit 1); exit 1; }; }; }
21004 fi
21005
21006
21007
21008
21009 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
21010 $as_echo_n "checking for compress2 in -lz... " >&6; }
21011 if test "${ac_cv_lib_z_compress2+set}" = set; then
21012 $as_echo_n "(cached) " >&6
21013 else
21014 ac_check_lib_save_LIBS=$LIBS
21015 LIBS="-lz $LIBS"
21016 cat >conftest.$ac_ext <<_ACEOF
21017 /* confdefs.h. */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21022
21023 /* Override any GCC internal prototype to avoid an error.
21024 Use char because int might match the return type of a GCC
21025 builtin and then its argument prototype would still apply. */
21026 #ifdef __cplusplus
21027 extern "C"
21028 #endif
21029 char compress2 ();
21030 int
21031 main ()
21032 {
21033 return compress2 ();
21034 ;
21035 return 0;
21036 }
21037 _ACEOF
21038 rm -f conftest.$ac_objext conftest$ac_exeext
21039 if { (ac_try="$ac_link"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21043 esac
21044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21045 $as_echo "$ac_try_echo") >&5
21046 (eval "$ac_link") 2>conftest.er1
21047 ac_status=$?
21048 grep -v '^ *+' conftest.er1 >conftest.err
21049 rm -f conftest.er1
21050 cat conftest.err >&5
21051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } && {
21053 test -z "$ac_c_werror_flag" ||
21054 test ! -s conftest.err
21055 } && test -s conftest$ac_exeext && {
21056 test "$cross_compiling" = yes ||
21057 $as_test_x conftest$ac_exeext
21058 }; then
21059 ac_cv_lib_z_compress2=yes
21060 else
21061 $as_echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21063
21064 ac_cv_lib_z_compress2=no
21065 fi
21066
21067 rm -rf conftest.dSYM
21068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21069 conftest$ac_exeext conftest.$ac_ext
21070 LIBS=$ac_check_lib_save_LIBS
21071 fi
21072 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
21073 $as_echo "$ac_cv_lib_z_compress2" >&6; }
21074 if test "x$ac_cv_lib_z_compress2" = x""yes; then
21075 cat >>confdefs.h <<_ACEOF
21076 #define HAVE_LIBZ 1
21077 _ACEOF
21078
21079 LIBS="-lz $LIBS"
21080
21081 else
21082 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21084 { { $as_echo "$as_me:$LINENO: error:
21085 *** compress2() missing, zlib-devel package required
21086 See \`config.log' for more details." >&5
21087 $as_echo "$as_me: error:
21088 *** compress2() missing, zlib-devel package required
21089 See \`config.log' for more details." >&2;}
21090 { (exit 1); exit 1; }; }; }
21091 fi
21092
21093
21094
21095 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
21096 $as_echo_n "checking for uncompress in -lz... " >&6; }
21097 if test "${ac_cv_lib_z_uncompress+set}" = set; then
21098 $as_echo_n "(cached) " >&6
21099 else
21100 ac_check_lib_save_LIBS=$LIBS
21101 LIBS="-lz $LIBS"
21102 cat >conftest.$ac_ext <<_ACEOF
21103 /* confdefs.h. */
21104 _ACEOF
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h. */
21108
21109 /* Override any GCC internal prototype to avoid an error.
21110 Use char because int might match the return type of a GCC
21111 builtin and then its argument prototype would still apply. */
21112 #ifdef __cplusplus
21113 extern "C"
21114 #endif
21115 char uncompress ();
21116 int
21117 main ()
21118 {
21119 return uncompress ();
21120 ;
21121 return 0;
21122 }
21123 _ACEOF
21124 rm -f conftest.$ac_objext conftest$ac_exeext
21125 if { (ac_try="$ac_link"
21126 case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21129 esac
21130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21131 $as_echo "$ac_try_echo") >&5
21132 (eval "$ac_link") 2>conftest.er1
21133 ac_status=$?
21134 grep -v '^ *+' conftest.er1 >conftest.err
21135 rm -f conftest.er1
21136 cat conftest.err >&5
21137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } && {
21139 test -z "$ac_c_werror_flag" ||
21140 test ! -s conftest.err
21141 } && test -s conftest$ac_exeext && {
21142 test "$cross_compiling" = yes ||
21143 $as_test_x conftest$ac_exeext
21144 }; then
21145 ac_cv_lib_z_uncompress=yes
21146 else
21147 $as_echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21149
21150 ac_cv_lib_z_uncompress=no
21151 fi
21152
21153 rm -rf conftest.dSYM
21154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21155 conftest$ac_exeext conftest.$ac_ext
21156 LIBS=$ac_check_lib_save_LIBS
21157 fi
21158 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
21159 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
21160 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
21161 cat >>confdefs.h <<_ACEOF
21162 #define HAVE_LIBZ 1
21163 _ACEOF
21164
21165 LIBS="-lz $LIBS"
21166
21167 else
21168 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21170 { { $as_echo "$as_me:$LINENO: error:
21171 *** uncompress() missing, zlib-devel package required
21172 See \`config.log' for more details." >&5
21173 $as_echo "$as_me: error:
21174 *** uncompress() missing, zlib-devel package required
21175 See \`config.log' for more details." >&2;}
21176 { (exit 1); exit 1; }; }; }
21177 fi
21178
21179
21180
21181 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
21182 $as_echo_n "checking for crc32 in -lz... " >&6; }
21183 if test "${ac_cv_lib_z_crc32+set}" = set; then
21184 $as_echo_n "(cached) " >&6
21185 else
21186 ac_check_lib_save_LIBS=$LIBS
21187 LIBS="-lz $LIBS"
21188 cat >conftest.$ac_ext <<_ACEOF
21189 /* confdefs.h. */
21190 _ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21194
21195 /* Override any GCC internal prototype to avoid an error.
21196 Use char because int might match the return type of a GCC
21197 builtin and then its argument prototype would still apply. */
21198 #ifdef __cplusplus
21199 extern "C"
21200 #endif
21201 char crc32 ();
21202 int
21203 main ()
21204 {
21205 return crc32 ();
21206 ;
21207 return 0;
21208 }
21209 _ACEOF
21210 rm -f conftest.$ac_objext conftest$ac_exeext
21211 if { (ac_try="$ac_link"
21212 case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21215 esac
21216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21217 $as_echo "$ac_try_echo") >&5
21218 (eval "$ac_link") 2>conftest.er1
21219 ac_status=$?
21220 grep -v '^ *+' conftest.er1 >conftest.err
21221 rm -f conftest.er1
21222 cat conftest.err >&5
21223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } && {
21225 test -z "$ac_c_werror_flag" ||
21226 test ! -s conftest.err
21227 } && test -s conftest$ac_exeext && {
21228 test "$cross_compiling" = yes ||
21229 $as_test_x conftest$ac_exeext
21230 }; then
21231 ac_cv_lib_z_crc32=yes
21232 else
21233 $as_echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21235
21236 ac_cv_lib_z_crc32=no
21237 fi
21238
21239 rm -rf conftest.dSYM
21240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21241 conftest$ac_exeext conftest.$ac_ext
21242 LIBS=$ac_check_lib_save_LIBS
21243 fi
21244 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
21245 $as_echo "$ac_cv_lib_z_crc32" >&6; }
21246 if test "x$ac_cv_lib_z_crc32" = x""yes; then
21247 cat >>confdefs.h <<_ACEOF
21248 #define HAVE_LIBZ 1
21249 _ACEOF
21250
21251 LIBS="-lz $LIBS"
21252
21253 else
21254 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21256 { { $as_echo "$as_me:$LINENO: error:
21257 *** crc32() missing, zlib-devel package required
21258 See \`config.log' for more details." >&5
21259 $as_echo "$as_me: error:
21260 *** crc32() missing, zlib-devel package required
21261 See \`config.log' for more details." >&2;}
21262 { (exit 1); exit 1; }; }; }
21263 fi
21264
21265
21266 ZLIB="-lz"
21267
21268
21269 cat >>confdefs.h <<\_ACEOF
21270 #define HAVE_ZLIB 1
21271 _ACEOF
21272
21273
21274
21275 LIBUUID=
21276
21277 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
21278 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
21279 $as_echo_n "checking for uuid/uuid.h... " >&6; }
21280 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
21281 $as_echo_n "(cached) " >&6
21282 fi
21283 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
21284 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
21285 else
21286 # Is the header compilable?
21287 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
21288 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
21289 cat >conftest.$ac_ext <<_ACEOF
21290 /* confdefs.h. */
21291 _ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h. */
21295 $ac_includes_default
21296 #include <uuid/uuid.h>
21297 _ACEOF
21298 rm -f conftest.$ac_objext
21299 if { (ac_try="$ac_compile"
21300 case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21303 esac
21304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21305 $as_echo "$ac_try_echo") >&5
21306 (eval "$ac_compile") 2>conftest.er1
21307 ac_status=$?
21308 grep -v '^ *+' conftest.er1 >conftest.err
21309 rm -f conftest.er1
21310 cat conftest.err >&5
21311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } && {
21313 test -z "$ac_c_werror_flag" ||
21314 test ! -s conftest.err
21315 } && test -s conftest.$ac_objext; then
21316 ac_header_compiler=yes
21317 else
21318 $as_echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21320
21321 ac_header_compiler=no
21322 fi
21323
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21326 $as_echo "$ac_header_compiler" >&6; }
21327
21328 # Is the header present?
21329 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
21330 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
21331 cat >conftest.$ac_ext <<_ACEOF
21332 /* confdefs.h. */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 #include <uuid/uuid.h>
21338 _ACEOF
21339 if { (ac_try="$ac_cpp conftest.$ac_ext"
21340 case "(($ac_try" in
21341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342 *) ac_try_echo=$ac_try;;
21343 esac
21344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21345 $as_echo "$ac_try_echo") >&5
21346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21347 ac_status=$?
21348 grep -v '^ *+' conftest.er1 >conftest.err
21349 rm -f conftest.er1
21350 cat conftest.err >&5
21351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } >/dev/null && {
21353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21354 test ! -s conftest.err
21355 }; then
21356 ac_header_preproc=yes
21357 else
21358 $as_echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21360
21361 ac_header_preproc=no
21362 fi
21363
21364 rm -f conftest.err conftest.$ac_ext
21365 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21366 $as_echo "$ac_header_preproc" >&6; }
21367
21368 # So? What about this header?
21369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21370 yes:no: )
21371 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
21372 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21373 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
21374 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
21375 ac_header_preproc=yes
21376 ;;
21377 no:yes:* )
21378 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
21379 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
21380 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
21381 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
21382 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
21383 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
21384 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
21385 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
21386 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
21387 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
21388 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
21389 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
21390
21391 ;;
21392 esac
21393 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
21394 $as_echo_n "checking for uuid/uuid.h... " >&6; }
21395 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
21396 $as_echo_n "(cached) " >&6
21397 else
21398 ac_cv_header_uuid_uuid_h=$ac_header_preproc
21399 fi
21400 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
21401 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
21402
21403 fi
21404 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
21405 :
21406 else
21407 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21409 { { $as_echo "$as_me:$LINENO: error:
21410 *** uuid/uuid.h missing, libuuid-devel package required
21411 See \`config.log' for more details." >&5
21412 $as_echo "$as_me: error:
21413 *** uuid/uuid.h missing, libuuid-devel package required
21414 See \`config.log' for more details." >&2;}
21415 { (exit 1); exit 1; }; }; }
21416 fi
21417
21418
21419
21420
21421 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
21422 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
21423 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
21424 $as_echo_n "(cached) " >&6
21425 else
21426 ac_check_lib_save_LIBS=$LIBS
21427 LIBS="-luuid $LIBS"
21428 cat >conftest.$ac_ext <<_ACEOF
21429 /* confdefs.h. */
21430 _ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h. */
21434
21435 /* Override any GCC internal prototype to avoid an error.
21436 Use char because int might match the return type of a GCC
21437 builtin and then its argument prototype would still apply. */
21438 #ifdef __cplusplus
21439 extern "C"
21440 #endif
21441 char uuid_generate ();
21442 int
21443 main ()
21444 {
21445 return uuid_generate ();
21446 ;
21447 return 0;
21448 }
21449 _ACEOF
21450 rm -f conftest.$ac_objext conftest$ac_exeext
21451 if { (ac_try="$ac_link"
21452 case "(($ac_try" in
21453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454 *) ac_try_echo=$ac_try;;
21455 esac
21456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21457 $as_echo "$ac_try_echo") >&5
21458 (eval "$ac_link") 2>conftest.er1
21459 ac_status=$?
21460 grep -v '^ *+' conftest.er1 >conftest.err
21461 rm -f conftest.er1
21462 cat conftest.err >&5
21463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); } && {
21465 test -z "$ac_c_werror_flag" ||
21466 test ! -s conftest.err
21467 } && test -s conftest$ac_exeext && {
21468 test "$cross_compiling" = yes ||
21469 $as_test_x conftest$ac_exeext
21470 }; then
21471 ac_cv_lib_uuid_uuid_generate=yes
21472 else
21473 $as_echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21475
21476 ac_cv_lib_uuid_uuid_generate=no
21477 fi
21478
21479 rm -rf conftest.dSYM
21480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21481 conftest$ac_exeext conftest.$ac_ext
21482 LIBS=$ac_check_lib_save_LIBS
21483 fi
21484 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
21485 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
21486 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
21487 cat >>confdefs.h <<_ACEOF
21488 #define HAVE_LIBUUID 1
21489 _ACEOF
21490
21491 LIBS="-luuid $LIBS"
21492
21493 else
21494 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21496 { { $as_echo "$as_me:$LINENO: error:
21497 *** uuid_generate() missing, libuuid-devel package required
21498 See \`config.log' for more details." >&5
21499 $as_echo "$as_me: error:
21500 *** uuid_generate() missing, libuuid-devel package required
21501 See \`config.log' for more details." >&2;}
21502 { (exit 1); exit 1; }; }; }
21503 fi
21504
21505
21506
21507 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
21508 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
21509 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
21510 $as_echo_n "(cached) " >&6
21511 else
21512 ac_check_lib_save_LIBS=$LIBS
21513 LIBS="-luuid $LIBS"
21514 cat >conftest.$ac_ext <<_ACEOF
21515 /* confdefs.h. */
21516 _ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520
21521 /* Override any GCC internal prototype to avoid an error.
21522 Use char because int might match the return type of a GCC
21523 builtin and then its argument prototype would still apply. */
21524 #ifdef __cplusplus
21525 extern "C"
21526 #endif
21527 char uuid_is_null ();
21528 int
21529 main ()
21530 {
21531 return uuid_is_null ();
21532 ;
21533 return 0;
21534 }
21535 _ACEOF
21536 rm -f conftest.$ac_objext conftest$ac_exeext
21537 if { (ac_try="$ac_link"
21538 case "(($ac_try" in
21539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540 *) ac_try_echo=$ac_try;;
21541 esac
21542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21543 $as_echo "$ac_try_echo") >&5
21544 (eval "$ac_link") 2>conftest.er1
21545 ac_status=$?
21546 grep -v '^ *+' conftest.er1 >conftest.err
21547 rm -f conftest.er1
21548 cat conftest.err >&5
21549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } && {
21551 test -z "$ac_c_werror_flag" ||
21552 test ! -s conftest.err
21553 } && test -s conftest$ac_exeext && {
21554 test "$cross_compiling" = yes ||
21555 $as_test_x conftest$ac_exeext
21556 }; then
21557 ac_cv_lib_uuid_uuid_is_null=yes
21558 else
21559 $as_echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21561
21562 ac_cv_lib_uuid_uuid_is_null=no
21563 fi
21564
21565 rm -rf conftest.dSYM
21566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21567 conftest$ac_exeext conftest.$ac_ext
21568 LIBS=$ac_check_lib_save_LIBS
21569 fi
21570 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
21571 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
21572 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
21573 cat >>confdefs.h <<_ACEOF
21574 #define HAVE_LIBUUID 1
21575 _ACEOF
21576
21577 LIBS="-luuid $LIBS"
21578
21579 else
21580 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21582 { { $as_echo "$as_me:$LINENO: error:
21583 *** uuid_is_null() missing, libuuid-devel package required
21584 See \`config.log' for more details." >&5
21585 $as_echo "$as_me: error:
21586 *** uuid_is_null() missing, libuuid-devel package required
21587 See \`config.log' for more details." >&2;}
21588 { (exit 1); exit 1; }; }; }
21589 fi
21590
21591
21592 LIBUUID="-luuid"
21593
21594
21595 cat >>confdefs.h <<\_ACEOF
21596 #define HAVE_LIBUUID 1
21597 _ACEOF
21598
21599
21600
21601
21602 # Check whether --with-blkid was given.
21603 if test "${with_blkid+set}" = set; then
21604 withval=$with_blkid;
21605 else
21606 with_blkid=check
21607 fi
21608
21609
21610 LIBBLKID=
21611 if test "x$with_blkid" != xno; then
21612
21613 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
21614 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
21615 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
21616 $as_echo_n "(cached) " >&6
21617 else
21618 ac_check_lib_save_LIBS=$LIBS
21619 LIBS="-lblkid $LIBS"
21620 cat >conftest.$ac_ext <<_ACEOF
21621 /* confdefs.h. */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h. */
21626
21627 /* Override any GCC internal prototype to avoid an error.
21628 Use char because int might match the return type of a GCC
21629 builtin and then its argument prototype would still apply. */
21630 #ifdef __cplusplus
21631 extern "C"
21632 #endif
21633 char blkid_get_cache ();
21634 int
21635 main ()
21636 {
21637 return blkid_get_cache ();
21638 ;
21639 return 0;
21640 }
21641 _ACEOF
21642 rm -f conftest.$ac_objext conftest$ac_exeext
21643 if { (ac_try="$ac_link"
21644 case "(($ac_try" in
21645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646 *) ac_try_echo=$ac_try;;
21647 esac
21648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21649 $as_echo "$ac_try_echo") >&5
21650 (eval "$ac_link") 2>conftest.er1
21651 ac_status=$?
21652 grep -v '^ *+' conftest.er1 >conftest.err
21653 rm -f conftest.er1
21654 cat conftest.err >&5
21655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } && {
21657 test -z "$ac_c_werror_flag" ||
21658 test ! -s conftest.err
21659 } && test -s conftest$ac_exeext && {
21660 test "$cross_compiling" = yes ||
21661 $as_test_x conftest$ac_exeext
21662 }; then
21663 ac_cv_lib_blkid_blkid_get_cache=yes
21664 else
21665 $as_echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21667
21668 ac_cv_lib_blkid_blkid_get_cache=no
21669 fi
21670
21671 rm -rf conftest.dSYM
21672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21673 conftest$ac_exeext conftest.$ac_ext
21674 LIBS=$ac_check_lib_save_LIBS
21675 fi
21676 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
21677 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
21678 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
21679
21680 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
21681 $as_echo_n "checking for blkid zfs support... " >&6; }
21682
21683 ZFS_DEV=`mktemp`
21684 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
21685 >/dev/null 2>/dev/null
21686 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21687 dd of=$ZFS_DEV bs=1k count=8 \
21688 seek=132 conv=notrunc &>/dev/null \
21689 >/dev/null 2>/dev/null
21690
21691 saved_LDFLAGS="$LDFLAGS"
21692 LDFLAGS="-lblkid"
21693
21694 if test "$cross_compiling" = yes; then
21695 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21697 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21698 See \`config.log' for more details." >&5
21699 $as_echo "$as_me: error: cannot run test program while cross compiling
21700 See \`config.log' for more details." >&2;}
21701 { (exit 1); exit 1; }; }; }
21702 else
21703 cat >conftest.$ac_ext <<_ACEOF
21704 /* confdefs.h. */
21705 _ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h. */
21709
21710 #include <stdio.h>
21711 #include <blkid/blkid.h>
21712
21713 int
21714 main ()
21715 {
21716
21717 blkid_cache cache;
21718 char *value;
21719
21720 if (blkid_get_cache(&cache, NULL) < 0)
21721 return 1;
21722
21723 value = blkid_get_tag_value(cache, "TYPE",
21724 "$ZFS_DEV");
21725 if (!value) {
21726 blkid_put_cache(cache);
21727 return 2;
21728 }
21729
21730 if (strcmp(value, "zfs")) {
21731 free(value);
21732 blkid_put_cache(cache);
21733 return 3;
21734 }
21735
21736 free(value);
21737 blkid_put_cache(cache);
21738
21739 ;
21740 return 0;
21741 }
21742 _ACEOF
21743 rm -f conftest$ac_exeext
21744 if { (ac_try="$ac_link"
21745 case "(($ac_try" in
21746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21747 *) ac_try_echo=$ac_try;;
21748 esac
21749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21750 $as_echo "$ac_try_echo") >&5
21751 (eval "$ac_link") 2>&5
21752 ac_status=$?
21753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21755 { (case "(($ac_try" in
21756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21757 *) ac_try_echo=$ac_try;;
21758 esac
21759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21760 $as_echo "$ac_try_echo") >&5
21761 (eval "$ac_try") 2>&5
21762 ac_status=$?
21763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; }; then
21765
21766 rm -f $ZFS_DEV
21767 { $as_echo "$as_me:$LINENO: result: yes" >&5
21768 $as_echo "yes" >&6; }
21769 LIBBLKID="-lblkid"
21770
21771
21772 cat >>confdefs.h <<\_ACEOF
21773 #define HAVE_LIBBLKID 1
21774 _ACEOF
21775
21776
21777 else
21778 $as_echo "$as_me: program exited with status $ac_status" >&5
21779 $as_echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21781
21782 ( exit $ac_status )
21783
21784 rm -f $ZFS_DEV
21785 { $as_echo "$as_me:$LINENO: result: no" >&5
21786 $as_echo "no" >&6; }
21787 if test "x$with_blkid" != xcheck; then
21788 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21790 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
21791 See \`config.log' for more details." >&5
21792 $as_echo "$as_me: error: --with-blkid given but unavailable
21793 See \`config.log' for more details." >&2;}
21794 { (exit 1); exit 1; }; }; }
21795 fi
21796
21797
21798 fi
21799 rm -rf conftest.dSYM
21800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21801 fi
21802
21803
21804
21805 LDFLAGS="$saved_LDFLAGS"
21806
21807 else
21808
21809 if test "x$with_blkid" != xcheck; then
21810 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21812 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
21813 See \`config.log' for more details." >&5
21814 $as_echo "$as_me: error: --with-blkid given but unavailable
21815 See \`config.log' for more details." >&2;}
21816 { (exit 1); exit 1; }; }; }
21817 fi
21818
21819
21820
21821 fi
21822
21823
21824 fi
21825
21826
21827
21828
21829 # Check whether --with-selinux was given.
21830 if test "${with_selinux+set}" = set; then
21831 withval=$with_selinux;
21832 else
21833 with_selinux=check
21834 fi
21835
21836
21837 LIBSELINUX=
21838 if test "x$with_selinux" != xno; then
21839
21840 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
21841 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
21842 $as_echo_n "checking for selinux/selinux.h... " >&6; }
21843 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
21844 $as_echo_n "(cached) " >&6
21845 fi
21846 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
21847 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
21848 else
21849 # Is the header compilable?
21850 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
21851 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
21852 cat >conftest.$ac_ext <<_ACEOF
21853 /* confdefs.h. */
21854 _ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h. */
21858 $ac_includes_default
21859 #include <selinux/selinux.h>
21860 _ACEOF
21861 rm -f conftest.$ac_objext
21862 if { (ac_try="$ac_compile"
21863 case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21866 esac
21867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21868 $as_echo "$ac_try_echo") >&5
21869 (eval "$ac_compile") 2>conftest.er1
21870 ac_status=$?
21871 grep -v '^ *+' conftest.er1 >conftest.err
21872 rm -f conftest.er1
21873 cat conftest.err >&5
21874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } && {
21876 test -z "$ac_c_werror_flag" ||
21877 test ! -s conftest.err
21878 } && test -s conftest.$ac_objext; then
21879 ac_header_compiler=yes
21880 else
21881 $as_echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21883
21884 ac_header_compiler=no
21885 fi
21886
21887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21888 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21889 $as_echo "$ac_header_compiler" >&6; }
21890
21891 # Is the header present?
21892 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
21893 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
21894 cat >conftest.$ac_ext <<_ACEOF
21895 /* confdefs.h. */
21896 _ACEOF
21897 cat confdefs.h >>conftest.$ac_ext
21898 cat >>conftest.$ac_ext <<_ACEOF
21899 /* end confdefs.h. */
21900 #include <selinux/selinux.h>
21901 _ACEOF
21902 if { (ac_try="$ac_cpp conftest.$ac_ext"
21903 case "(($ac_try" in
21904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905 *) ac_try_echo=$ac_try;;
21906 esac
21907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21908 $as_echo "$ac_try_echo") >&5
21909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21910 ac_status=$?
21911 grep -v '^ *+' conftest.er1 >conftest.err
21912 rm -f conftest.er1
21913 cat conftest.err >&5
21914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } >/dev/null && {
21916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21917 test ! -s conftest.err
21918 }; then
21919 ac_header_preproc=yes
21920 else
21921 $as_echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21923
21924 ac_header_preproc=no
21925 fi
21926
21927 rm -f conftest.err conftest.$ac_ext
21928 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21929 $as_echo "$ac_header_preproc" >&6; }
21930
21931 # So? What about this header?
21932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21933 yes:no: )
21934 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
21935 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21936 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
21937 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
21938 ac_header_preproc=yes
21939 ;;
21940 no:yes:* )
21941 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
21942 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
21943 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
21944 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
21945 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
21946 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
21947 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
21948 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
21949 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
21950 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
21951 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
21952 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
21953
21954 ;;
21955 esac
21956 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
21957 $as_echo_n "checking for selinux/selinux.h... " >&6; }
21958 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
21959 $as_echo_n "(cached) " >&6
21960 else
21961 ac_cv_header_selinux_selinux_h=$ac_header_preproc
21962 fi
21963 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
21964 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
21965
21966 fi
21967 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
21968
21969 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
21970 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
21971 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
21972 $as_echo_n "(cached) " >&6
21973 else
21974 ac_check_lib_save_LIBS=$LIBS
21975 LIBS="-lselinux $LIBS"
21976 cat >conftest.$ac_ext <<_ACEOF
21977 /* confdefs.h. */
21978 _ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21982
21983 /* Override any GCC internal prototype to avoid an error.
21984 Use char because int might match the return type of a GCC
21985 builtin and then its argument prototype would still apply. */
21986 #ifdef __cplusplus
21987 extern "C"
21988 #endif
21989 char is_selinux_enabled ();
21990 int
21991 main ()
21992 {
21993 return is_selinux_enabled ();
21994 ;
21995 return 0;
21996 }
21997 _ACEOF
21998 rm -f conftest.$ac_objext conftest$ac_exeext
21999 if { (ac_try="$ac_link"
22000 case "(($ac_try" in
22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002 *) ac_try_echo=$ac_try;;
22003 esac
22004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22005 $as_echo "$ac_try_echo") >&5
22006 (eval "$ac_link") 2>conftest.er1
22007 ac_status=$?
22008 grep -v '^ *+' conftest.er1 >conftest.err
22009 rm -f conftest.er1
22010 cat conftest.err >&5
22011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); } && {
22013 test -z "$ac_c_werror_flag" ||
22014 test ! -s conftest.err
22015 } && test -s conftest$ac_exeext && {
22016 test "$cross_compiling" = yes ||
22017 $as_test_x conftest$ac_exeext
22018 }; then
22019 ac_cv_lib_selinux_is_selinux_enabled=yes
22020 else
22021 $as_echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22023
22024 ac_cv_lib_selinux_is_selinux_enabled=no
22025 fi
22026
22027 rm -rf conftest.dSYM
22028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22029 conftest$ac_exeext conftest.$ac_ext
22030 LIBS=$ac_check_lib_save_LIBS
22031 fi
22032 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
22033 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
22034 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
22035
22036 LIBSELINUX="-lselinux"
22037
22038
22039 cat >>confdefs.h <<\_ACEOF
22040 #define HAVE_LIBSELINUX 1
22041 _ACEOF
22042
22043
22044 else
22045
22046 if test "x$with_selinux" != xcheck; then
22047 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22049 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
22050 See \`config.log' for more details." >&5
22051 $as_echo "$as_me: error: --with-selinux given but unavailable
22052 See \`config.log' for more details." >&2;}
22053 { (exit 1); exit 1; }; }; }
22054
22055 fi
22056
22057
22058 fi
22059
22060
22061 else
22062
22063 if test "x$with_selinux" != xcheck; then
22064 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22066 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
22067 See \`config.log' for more details." >&5
22068 $as_echo "$as_me: error: --with-selinux given but unavailable
22069 See \`config.log' for more details." >&2;}
22070 { (exit 1); exit 1; }; }; }
22071
22072 fi
22073
22074
22075 fi
22076
22077
22078
22079 else
22080
22081 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
22082 $as_echo_n "checking for selinux support... " >&6; }
22083 { $as_echo "$as_me:$LINENO: result: no" >&5
22084 $as_echo "no" >&6; }
22085
22086 fi
22087
22088
22089
22090 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
22091 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
22092
22093 saved_flags="$CFLAGS"
22094 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
22095
22096 if test "$cross_compiling" = yes; then
22097 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22099 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22100 See \`config.log' for more details." >&5
22101 $as_echo "$as_me: error: cannot run test program while cross compiling
22102 See \`config.log' for more details." >&2;}
22103 { (exit 1); exit 1; }; }; }
22104 else
22105 cat >conftest.$ac_ext <<_ACEOF
22106 /* confdefs.h. */
22107 _ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22111
22112 int
22113 main ()
22114 {
22115
22116 ;
22117 return 0;
22118 }
22119 _ACEOF
22120 rm -f conftest$ac_exeext
22121 if { (ac_try="$ac_link"
22122 case "(($ac_try" in
22123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22124 *) ac_try_echo=$ac_try;;
22125 esac
22126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22127 $as_echo "$ac_try_echo") >&5
22128 (eval "$ac_link") 2>&5
22129 ac_status=$?
22130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22132 { (case "(($ac_try" in
22133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22134 *) ac_try_echo=$ac_try;;
22135 esac
22136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22137 $as_echo "$ac_try_echo") >&5
22138 (eval "$ac_try") 2>&5
22139 ac_status=$?
22140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; }; then
22142
22143 FRAME_LARGER_THAN=-Wframe-larger-than=1024
22144 { $as_echo "$as_me:$LINENO: result: yes" >&5
22145 $as_echo "yes" >&6; }
22146
22147 else
22148 $as_echo "$as_me: program exited with status $ac_status" >&5
22149 $as_echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152 ( exit $ac_status )
22153
22154 FRAME_LARGER_THAN=
22155 { $as_echo "$as_me:$LINENO: result: no" >&5
22156 $as_echo "no" >&6; }
22157
22158 fi
22159 rm -rf conftest.dSYM
22160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22161 fi
22162
22163
22164
22165 CFLAGS="$saved_flags"
22166
22167
22168
22169
22170 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
22171 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
22172
22173 saved_CFLAGS="$CFLAGS"
22174 CFLAGS="-fstack-check"
22175 saved_LDFLAGS="$LDFLAGS"
22176 LDFLAGS="-lpthread"
22177
22178 if test "$cross_compiling" = yes; then
22179 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22181 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22182 See \`config.log' for more details." >&5
22183 $as_echo "$as_me: error: cannot run test program while cross compiling
22184 See \`config.log' for more details." >&2;}
22185 { (exit 1); exit 1; }; }; }
22186 else
22187 cat >conftest.$ac_ext <<_ACEOF
22188 /* confdefs.h. */
22189 _ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
22193
22194 #include <pthread.h>
22195 #include <sys/resource.h>
22196 #include <unistd.h>
22197 #include <bits/local_lim.h>
22198
22199 #define PAGESIZE (sysconf(_SC_PAGESIZE))
22200 #define STACK_SIZE 8192
22201 #define BUFSIZE 4096
22202
22203 void * func(void *arg)
22204 {
22205 char buf[BUFSIZE];
22206 }
22207
22208 int
22209 main ()
22210 {
22211
22212 pthread_t tid;
22213 pthread_attr_t attr;
22214 struct rlimit l;
22215
22216 l.rlim_cur = 0;
22217 l.rlim_max = 0;
22218 setrlimit(RLIMIT_CORE, &l);
22219 pthread_attr_init(&attr);
22220 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
22221 pthread_attr_setguardsize(&attr, PAGESIZE);
22222 pthread_create(&tid, &attr, func, NULL);
22223 pthread_join(tid, NULL);
22224
22225 ;
22226 return 0;
22227 }
22228 _ACEOF
22229 rm -f conftest$ac_exeext
22230 if { (ac_try="$ac_link"
22231 case "(($ac_try" in
22232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22233 *) ac_try_echo=$ac_try;;
22234 esac
22235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22236 $as_echo "$ac_try_echo") >&5
22237 (eval "$ac_link") 2>&5
22238 ac_status=$?
22239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22241 { (case "(($ac_try" in
22242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22243 *) ac_try_echo=$ac_try;;
22244 esac
22245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22246 $as_echo "$ac_try_echo") >&5
22247 (eval "$ac_try") 2>&5
22248 ac_status=$?
22249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); }; }; then
22251
22252 { $as_echo "$as_me:$LINENO: result: no" >&5
22253 $as_echo "no" >&6; }
22254
22255 else
22256 $as_echo "$as_me: program exited with status $ac_status" >&5
22257 $as_echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22259
22260 ( exit $ac_status )
22261
22262
22263 cat >>confdefs.h <<\_ACEOF
22264 #define NPTL_GUARD_WITHIN_STACK 1
22265 _ACEOF
22266
22267 { $as_echo "$as_me:$LINENO: result: yes" >&5
22268 $as_echo "yes" >&6; }
22269
22270 fi
22271 rm -rf conftest.dSYM
22272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22273 fi
22274
22275
22276 CFLAGS="$saved_CFLAGS"
22277 LDFLAGS="$saved_LDFLAGS"
22278
22279 ;;
22280 srpm) ;;
22281 *)
22282 { $as_echo "$as_me:$LINENO: result: Error!" >&5
22283 $as_echo "Error!" >&6; }
22284 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
22285 user kernel|user|all|srpm" >&5
22286 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
22287 user kernel|user|all|srpm" >&2;}
22288 { (exit 1); exit 1; }; } ;;
22289 esac
22290
22291 if test "$ZFS_CONFIG" = user ||
22292 test "$ZFS_CONFIG" = all; then
22293 CONFIG_USER_TRUE=
22294 CONFIG_USER_FALSE='#'
22295 else
22296 CONFIG_USER_TRUE='#'
22297 CONFIG_USER_FALSE=
22298 fi
22299
22300 if test "$ZFS_CONFIG" = kernel ||
22301 test "$ZFS_CONFIG" = all; then
22302 CONFIG_KERNEL_TRUE=
22303 CONFIG_KERNEL_FALSE='#'
22304 else
22305 CONFIG_KERNEL_TRUE='#'
22306 CONFIG_KERNEL_FALSE=
22307 fi
22308
22309
22310
22311 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
22312 $as_echo_n "checking whether debugging is enabled... " >&6; }
22313 # Check whether --enable-debug was given.
22314 if test "${enable_debug+set}" = set; then
22315 enableval=$enable_debug;
22316 else
22317 enable_debug=no
22318 fi
22319
22320
22321 if test "x$enable_debug" = xyes; then
22322
22323 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
22324 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
22325 DEBUG_CFLAGS="-DDEBUG -Werror"
22326 DEBUG_STACKFLAGS="-fstack-check"
22327
22328 else
22329
22330 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
22331 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
22332 DEBUG_CFLAGS="-DNDEBUG"
22333 DEBUG_STACKFLAGS=""
22334
22335 fi
22336
22337
22338
22339
22340 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
22341 $as_echo "$enable_debug" >&6; }
22342
22343
22344 ac_config_files="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile man/Makefile man/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"
22345
22346
22347 cat >confcache <<\_ACEOF
22348 # This file is a shell script that caches the results of configure
22349 # tests run on this system so they can be shared between configure
22350 # scripts and configure runs, see configure's option --config-cache.
22351 # It is not useful on other systems. If it contains results you don't
22352 # want to keep, you may remove or edit it.
22353 #
22354 # config.status only pays attention to the cache file if you give it
22355 # the --recheck option to rerun configure.
22356 #
22357 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22358 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22359 # following values.
22360
22361 _ACEOF
22362
22363 # The following way of writing the cache mishandles newlines in values,
22364 # but we know of no workaround that is simple, portable, and efficient.
22365 # So, we kill variables containing newlines.
22366 # Ultrix sh set writes to stderr and can't be redirected directly,
22367 # and sets the high bit in the cache file unless we assign to the vars.
22368 (
22369 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22370 eval ac_val=\$$ac_var
22371 case $ac_val in #(
22372 *${as_nl}*)
22373 case $ac_var in #(
22374 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22375 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22376 esac
22377 case $ac_var in #(
22378 _ | IFS | as_nl) ;; #(
22379 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22380 *) $as_unset $ac_var ;;
22381 esac ;;
22382 esac
22383 done
22384
22385 (set) 2>&1 |
22386 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22387 *${as_nl}ac_space=\ *)
22388 # `set' does not quote correctly, so add quotes (double-quote
22389 # substitution turns \\\\ into \\, and sed turns \\ into \).
22390 sed -n \
22391 "s/'/'\\\\''/g;
22392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22393 ;; #(
22394 *)
22395 # `set' quotes correctly as required by POSIX, so do not add quotes.
22396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22397 ;;
22398 esac |
22399 sort
22400 ) |
22401 sed '
22402 /^ac_cv_env_/b end
22403 t clear
22404 :clear
22405 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22406 t end
22407 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22408 :end' >>confcache
22409 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22410 if test -w "$cache_file"; then
22411 test "x$cache_file" != "x/dev/null" &&
22412 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22413 $as_echo "$as_me: updating cache $cache_file" >&6;}
22414 cat confcache >$cache_file
22415 else
22416 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22417 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22418 fi
22419 fi
22420 rm -f confcache
22421
22422 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22423 # Let make expand exec_prefix.
22424 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22425
22426 DEFS=-DHAVE_CONFIG_H
22427
22428 ac_libobjs=
22429 ac_ltlibobjs=
22430 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22431 # 1. Remove the extension, and $U if already installed.
22432 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22433 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22434 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22435 # will be set to the directory where LIBOBJS objects are built.
22436 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22437 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22438 done
22439 LIBOBJS=$ac_libobjs
22440
22441 LTLIBOBJS=$ac_ltlibobjs
22442
22443
22444 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22445 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22446 Usually this means the macro was only invoked conditionally." >&5
22447 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22448 Usually this means the macro was only invoked conditionally." >&2;}
22449 { (exit 1); exit 1; }; }
22450 fi
22451 if test -n "$EXEEXT"; then
22452 am__EXEEXT_TRUE=
22453 am__EXEEXT_FALSE='#'
22454 else
22455 am__EXEEXT_TRUE='#'
22456 am__EXEEXT_FALSE=
22457 fi
22458
22459 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22460 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22461 Usually this means the macro was only invoked conditionally." >&5
22462 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22463 Usually this means the macro was only invoked conditionally." >&2;}
22464 { (exit 1); exit 1; }; }
22465 fi
22466 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22467 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22468 Usually this means the macro was only invoked conditionally." >&5
22469 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22470 Usually this means the macro was only invoked conditionally." >&2;}
22471 { (exit 1); exit 1; }; }
22472 fi
22473 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22474 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
22475 Usually this means the macro was only invoked conditionally." >&5
22476 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
22477 Usually this means the macro was only invoked conditionally." >&2;}
22478 { (exit 1); exit 1; }; }
22479 fi
22480 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
22481 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
22482 Usually this means the macro was only invoked conditionally." >&5
22483 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
22484 Usually this means the macro was only invoked conditionally." >&2;}
22485 { (exit 1); exit 1; }; }
22486 fi
22487 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
22488 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
22489 Usually this means the macro was only invoked conditionally." >&5
22490 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
22491 Usually this means the macro was only invoked conditionally." >&2;}
22492 { (exit 1); exit 1; }; }
22493 fi
22494
22495 : ${CONFIG_STATUS=./config.status}
22496 ac_write_fail=0
22497 ac_clean_files_save=$ac_clean_files
22498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22499 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22500 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22501 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22502 #! $SHELL
22503 # Generated by $as_me.
22504 # Run this file to recreate the current configuration.
22505 # Compiler output produced by configure, useful for debugging
22506 # configure, is in config.log if it exists.
22507
22508 debug=false
22509 ac_cs_recheck=false
22510 ac_cs_silent=false
22511 SHELL=\${CONFIG_SHELL-$SHELL}
22512 _ACEOF
22513
22514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22515 ## --------------------- ##
22516 ## M4sh Initialization. ##
22517 ## --------------------- ##
22518
22519 # Be more Bourne compatible
22520 DUALCASE=1; export DUALCASE # for MKS sh
22521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22522 emulate sh
22523 NULLCMD=:
22524 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22525 # is contrary to our usage. Disable this feature.
22526 alias -g '${1+"$@"}'='"$@"'
22527 setopt NO_GLOB_SUBST
22528 else
22529 case `(set -o) 2>/dev/null` in
22530 *posix*) set -o posix ;;
22531 esac
22532
22533 fi
22534
22535
22536
22537
22538 # PATH needs CR
22539 # Avoid depending upon Character Ranges.
22540 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22541 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22542 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22543 as_cr_digits='0123456789'
22544 as_cr_alnum=$as_cr_Letters$as_cr_digits
22545
22546 as_nl='
22547 '
22548 export as_nl
22549 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22550 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22551 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22552 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22553 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22554 as_echo='printf %s\n'
22555 as_echo_n='printf %s'
22556 else
22557 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22558 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22559 as_echo_n='/usr/ucb/echo -n'
22560 else
22561 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22562 as_echo_n_body='eval
22563 arg=$1;
22564 case $arg in
22565 *"$as_nl"*)
22566 expr "X$arg" : "X\\(.*\\)$as_nl";
22567 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22568 esac;
22569 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22570 '
22571 export as_echo_n_body
22572 as_echo_n='sh -c $as_echo_n_body as_echo'
22573 fi
22574 export as_echo_body
22575 as_echo='sh -c $as_echo_body as_echo'
22576 fi
22577
22578 # The user is always right.
22579 if test "${PATH_SEPARATOR+set}" != set; then
22580 PATH_SEPARATOR=:
22581 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22582 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22583 PATH_SEPARATOR=';'
22584 }
22585 fi
22586
22587 # Support unset when possible.
22588 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22589 as_unset=unset
22590 else
22591 as_unset=false
22592 fi
22593
22594
22595 # IFS
22596 # We need space, tab and new line, in precisely that order. Quoting is
22597 # there to prevent editors from complaining about space-tab.
22598 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22599 # splitting by setting IFS to empty value.)
22600 IFS=" "" $as_nl"
22601
22602 # Find who we are. Look in the path if we contain no directory separator.
22603 case $0 in
22604 *[\\/]* ) as_myself=$0 ;;
22605 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22606 for as_dir in $PATH
22607 do
22608 IFS=$as_save_IFS
22609 test -z "$as_dir" && as_dir=.
22610 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22611 done
22612 IFS=$as_save_IFS
22613
22614 ;;
22615 esac
22616 # We did not find ourselves, most probably we were run as `sh COMMAND'
22617 # in which case we are not to be found in the path.
22618 if test "x$as_myself" = x; then
22619 as_myself=$0
22620 fi
22621 if test ! -f "$as_myself"; then
22622 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22623 { (exit 1); exit 1; }
22624 fi
22625
22626 # Work around bugs in pre-3.0 UWIN ksh.
22627 for as_var in ENV MAIL MAILPATH
22628 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22629 done
22630 PS1='$ '
22631 PS2='> '
22632 PS4='+ '
22633
22634 # NLS nuisances.
22635 LC_ALL=C
22636 export LC_ALL
22637 LANGUAGE=C
22638 export LANGUAGE
22639
22640 # Required to use basename.
22641 if expr a : '\(a\)' >/dev/null 2>&1 &&
22642 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22643 as_expr=expr
22644 else
22645 as_expr=false
22646 fi
22647
22648 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22649 as_basename=basename
22650 else
22651 as_basename=false
22652 fi
22653
22654
22655 # Name of the executable.
22656 as_me=`$as_basename -- "$0" ||
22657 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22658 X"$0" : 'X\(//\)$' \| \
22659 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22660 $as_echo X/"$0" |
22661 sed '/^.*\/\([^/][^/]*\)\/*$/{
22662 s//\1/
22663 q
22664 }
22665 /^X\/\(\/\/\)$/{
22666 s//\1/
22667 q
22668 }
22669 /^X\/\(\/\).*/{
22670 s//\1/
22671 q
22672 }
22673 s/.*/./; q'`
22674
22675 # CDPATH.
22676 $as_unset CDPATH
22677
22678
22679
22680 as_lineno_1=$LINENO
22681 as_lineno_2=$LINENO
22682 test "x$as_lineno_1" != "x$as_lineno_2" &&
22683 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22684
22685 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22686 # uniformly replaced by the line number. The first 'sed' inserts a
22687 # line-number line after each line using $LINENO; the second 'sed'
22688 # does the real work. The second script uses 'N' to pair each
22689 # line-number line with the line containing $LINENO, and appends
22690 # trailing '-' during substitution so that $LINENO is not a special
22691 # case at line end.
22692 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22693 # scripts with optimization help from Paolo Bonzini. Blame Lee
22694 # E. McMahon (1931-1989) for sed's syntax. :-)
22695 sed -n '
22696 p
22697 /[$]LINENO/=
22698 ' <$as_myself |
22699 sed '
22700 s/[$]LINENO.*/&-/
22701 t lineno
22702 b
22703 :lineno
22704 N
22705 :loop
22706 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22707 t loop
22708 s/-\n.*//
22709 ' >$as_me.lineno &&
22710 chmod +x "$as_me.lineno" ||
22711 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22712 { (exit 1); exit 1; }; }
22713
22714 # Don't try to exec as it changes $[0], causing all sort of problems
22715 # (the dirname of $[0] is not the place where we might find the
22716 # original and so on. Autoconf is especially sensitive to this).
22717 . "./$as_me.lineno"
22718 # Exit status is that of the last command.
22719 exit
22720 }
22721
22722
22723 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22724 as_dirname=dirname
22725 else
22726 as_dirname=false
22727 fi
22728
22729 ECHO_C= ECHO_N= ECHO_T=
22730 case `echo -n x` in
22731 -n*)
22732 case `echo 'x\c'` in
22733 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22734 *) ECHO_C='\c';;
22735 esac;;
22736 *)
22737 ECHO_N='-n';;
22738 esac
22739 if expr a : '\(a\)' >/dev/null 2>&1 &&
22740 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22741 as_expr=expr
22742 else
22743 as_expr=false
22744 fi
22745
22746 rm -f conf$$ conf$$.exe conf$$.file
22747 if test -d conf$$.dir; then
22748 rm -f conf$$.dir/conf$$.file
22749 else
22750 rm -f conf$$.dir
22751 mkdir conf$$.dir 2>/dev/null
22752 fi
22753 if (echo >conf$$.file) 2>/dev/null; then
22754 if ln -s conf$$.file conf$$ 2>/dev/null; then
22755 as_ln_s='ln -s'
22756 # ... but there are two gotchas:
22757 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22758 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22759 # In both cases, we have to default to `cp -p'.
22760 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22761 as_ln_s='cp -p'
22762 elif ln conf$$.file conf$$ 2>/dev/null; then
22763 as_ln_s=ln
22764 else
22765 as_ln_s='cp -p'
22766 fi
22767 else
22768 as_ln_s='cp -p'
22769 fi
22770 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22771 rmdir conf$$.dir 2>/dev/null
22772
22773 if mkdir -p . 2>/dev/null; then
22774 as_mkdir_p=:
22775 else
22776 test -d ./-p && rmdir ./-p
22777 as_mkdir_p=false
22778 fi
22779
22780 if test -x / >/dev/null 2>&1; then
22781 as_test_x='test -x'
22782 else
22783 if ls -dL / >/dev/null 2>&1; then
22784 as_ls_L_option=L
22785 else
22786 as_ls_L_option=
22787 fi
22788 as_test_x='
22789 eval sh -c '\''
22790 if test -d "$1"; then
22791 test -d "$1/.";
22792 else
22793 case $1 in
22794 -*)set "./$1";;
22795 esac;
22796 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22797 ???[sx]*):;;*)false;;esac;fi
22798 '\'' sh
22799 '
22800 fi
22801 as_executable_p=$as_test_x
22802
22803 # Sed expression to map a string onto a valid CPP name.
22804 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22805
22806 # Sed expression to map a string onto a valid variable name.
22807 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22808
22809
22810 exec 6>&1
22811
22812 # Save the log message, to keep $[0] and so on meaningful, and to
22813 # report actual input values of CONFIG_FILES etc. instead of their
22814 # values after options handling.
22815 ac_log="
22816 This file was extended by $as_me, which was
22817 generated by GNU Autoconf 2.63. Invocation command line was
22818
22819 CONFIG_FILES = $CONFIG_FILES
22820 CONFIG_HEADERS = $CONFIG_HEADERS
22821 CONFIG_LINKS = $CONFIG_LINKS
22822 CONFIG_COMMANDS = $CONFIG_COMMANDS
22823 $ $0 $@
22824
22825 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22826 "
22827
22828 _ACEOF
22829
22830 case $ac_config_files in *"
22831 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22832 esac
22833
22834 case $ac_config_headers in *"
22835 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22836 esac
22837
22838
22839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22840 # Files that config.status was made for.
22841 config_files="$ac_config_files"
22842 config_headers="$ac_config_headers"
22843 config_commands="$ac_config_commands"
22844
22845 _ACEOF
22846
22847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22848 ac_cs_usage="\
22849 \`$as_me' instantiates files from templates according to the
22850 current configuration.
22851
22852 Usage: $0 [OPTION]... [FILE]...
22853
22854 -h, --help print this help, then exit
22855 -V, --version print version number and configuration settings, then exit
22856 -q, --quiet, --silent
22857 do not print progress messages
22858 -d, --debug don't remove temporary files
22859 --recheck update $as_me by reconfiguring in the same conditions
22860 --file=FILE[:TEMPLATE]
22861 instantiate the configuration file FILE
22862 --header=FILE[:TEMPLATE]
22863 instantiate the configuration header FILE
22864
22865 Configuration files:
22866 $config_files
22867
22868 Configuration headers:
22869 $config_headers
22870
22871 Configuration commands:
22872 $config_commands
22873
22874 Report bugs to <bug-autoconf@gnu.org>."
22875
22876 _ACEOF
22877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22878 ac_cs_version="\\
22879 config.status
22880 configured by $0, generated by GNU Autoconf 2.63,
22881 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22882
22883 Copyright (C) 2008 Free Software Foundation, Inc.
22884 This config.status script is free software; the Free Software Foundation
22885 gives unlimited permission to copy, distribute and modify it."
22886
22887 ac_pwd='$ac_pwd'
22888 srcdir='$srcdir'
22889 INSTALL='$INSTALL'
22890 MKDIR_P='$MKDIR_P'
22891 AWK='$AWK'
22892 test -n "\$AWK" || AWK=awk
22893 _ACEOF
22894
22895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22896 # The default lists apply if the user does not specify any file.
22897 ac_need_defaults=:
22898 while test $# != 0
22899 do
22900 case $1 in
22901 --*=*)
22902 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22903 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22904 ac_shift=:
22905 ;;
22906 *)
22907 ac_option=$1
22908 ac_optarg=$2
22909 ac_shift=shift
22910 ;;
22911 esac
22912
22913 case $ac_option in
22914 # Handling of the options.
22915 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22916 ac_cs_recheck=: ;;
22917 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22918 $as_echo "$ac_cs_version"; exit ;;
22919 --debug | --debu | --deb | --de | --d | -d )
22920 debug=: ;;
22921 --file | --fil | --fi | --f )
22922 $ac_shift
22923 case $ac_optarg in
22924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22925 esac
22926 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22927 ac_need_defaults=false;;
22928 --header | --heade | --head | --hea )
22929 $ac_shift
22930 case $ac_optarg in
22931 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22932 esac
22933 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22934 ac_need_defaults=false;;
22935 --he | --h)
22936 # Conflict between --help and --header
22937 { $as_echo "$as_me: error: ambiguous option: $1
22938 Try \`$0 --help' for more information." >&2
22939 { (exit 1); exit 1; }; };;
22940 --help | --hel | -h )
22941 $as_echo "$ac_cs_usage"; exit ;;
22942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22944 ac_cs_silent=: ;;
22945
22946 # This is an error.
22947 -*) { $as_echo "$as_me: error: unrecognized option: $1
22948 Try \`$0 --help' for more information." >&2
22949 { (exit 1); exit 1; }; } ;;
22950
22951 *) ac_config_targets="$ac_config_targets $1"
22952 ac_need_defaults=false ;;
22953
22954 esac
22955 shift
22956 done
22957
22958 ac_configure_extra_args=
22959
22960 if $ac_cs_silent; then
22961 exec 6>/dev/null
22962 ac_configure_extra_args="$ac_configure_extra_args --silent"
22963 fi
22964
22965 _ACEOF
22966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22967 if \$ac_cs_recheck; then
22968 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22969 shift
22970 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22971 CONFIG_SHELL='$SHELL'
22972 export CONFIG_SHELL
22973 exec "\$@"
22974 fi
22975
22976 _ACEOF
22977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22978 exec 5>>config.log
22979 {
22980 echo
22981 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22982 ## Running $as_me. ##
22983 _ASBOX
22984 $as_echo "$ac_log"
22985 } >&5
22986
22987 _ACEOF
22988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22989 #
22990 # INIT-COMMANDS
22991 #
22992 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22993
22994
22995 # The HP-UX ksh and POSIX shell print the target directory to stdout
22996 # if CDPATH is set.
22997 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22998
22999 sed_quote_subst='$sed_quote_subst'
23000 double_quote_subst='$double_quote_subst'
23001 delay_variable_subst='$delay_variable_subst'
23002 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
23003 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
23004 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
23005 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
23006 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
23007 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
23008 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
23009 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
23010 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
23011 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
23012 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
23013 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
23014 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
23015 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
23016 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
23017 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
23018 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
23019 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
23020 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
23021 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
23022 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
23023 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
23024 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
23025 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
23026 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
23027 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
23028 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
23029 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23030 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
23031 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
23032 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
23033 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
23034 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23035 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
23036 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
23037 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23038 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23039 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23040 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
23041 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23042 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
23043 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
23044 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
23045 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
23046 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
23047 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23048 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
23049 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
23050 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
23051 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
23052 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
23053 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
23054 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
23055 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
23056 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
23057 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
23058 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
23059 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
23060 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
23061 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
23062 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
23063 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
23064 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23065 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23066 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
23067 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
23068 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23069 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23070 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
23071 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23072 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23073 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23074 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23075 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23076 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23077 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
23078 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23079 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23080 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23081 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
23082 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
23083 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
23084 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
23085 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
23086 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23087 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
23088 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
23089 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
23090 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
23091 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
23092 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23093 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23094 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23095 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23096 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
23097 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
23098 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23099 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
23100 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
23101 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23102 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23103 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
23104 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23105 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
23106 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23107 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23108 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23109 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23110 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
23111 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
23112 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23113 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23114 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
23115 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
23116 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
23117 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
23118 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
23119 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
23120
23121 LTCC='$LTCC'
23122 LTCFLAGS='$LTCFLAGS'
23123 compiler='$compiler_DEFAULT'
23124
23125 # Quote evaled strings.
23126 for var in SED \
23127 GREP \
23128 EGREP \
23129 FGREP \
23130 LD \
23131 NM \
23132 LN_S \
23133 lt_SP2NL \
23134 lt_NL2SP \
23135 reload_flag \
23136 OBJDUMP \
23137 deplibs_check_method \
23138 file_magic_cmd \
23139 AR \
23140 AR_FLAGS \
23141 STRIP \
23142 RANLIB \
23143 CC \
23144 CFLAGS \
23145 compiler \
23146 lt_cv_sys_global_symbol_pipe \
23147 lt_cv_sys_global_symbol_to_cdecl \
23148 lt_cv_sys_global_symbol_to_c_name_address \
23149 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23150 SHELL \
23151 ECHO \
23152 lt_prog_compiler_no_builtin_flag \
23153 lt_prog_compiler_wl \
23154 lt_prog_compiler_pic \
23155 lt_prog_compiler_static \
23156 lt_cv_prog_compiler_c_o \
23157 need_locks \
23158 DSYMUTIL \
23159 NMEDIT \
23160 LIPO \
23161 OTOOL \
23162 OTOOL64 \
23163 shrext_cmds \
23164 export_dynamic_flag_spec \
23165 whole_archive_flag_spec \
23166 compiler_needs_object \
23167 with_gnu_ld \
23168 allow_undefined_flag \
23169 no_undefined_flag \
23170 hardcode_libdir_flag_spec \
23171 hardcode_libdir_flag_spec_ld \
23172 hardcode_libdir_separator \
23173 fix_srcfile_path \
23174 exclude_expsyms \
23175 include_expsyms \
23176 file_list_spec \
23177 variables_saved_for_relink \
23178 libname_spec \
23179 library_names_spec \
23180 soname_spec \
23181 finish_eval \
23182 old_striplib \
23183 striplib; do
23184 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23185 *[\\\\\\\`\\"\\\$]*)
23186 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23187 ;;
23188 *)
23189 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23190 ;;
23191 esac
23192 done
23193
23194 # Double-quote double-evaled strings.
23195 for var in reload_cmds \
23196 old_postinstall_cmds \
23197 old_postuninstall_cmds \
23198 old_archive_cmds \
23199 extract_expsyms_cmds \
23200 old_archive_from_new_cmds \
23201 old_archive_from_expsyms_cmds \
23202 archive_cmds \
23203 archive_expsym_cmds \
23204 module_cmds \
23205 module_expsym_cmds \
23206 export_symbols_cmds \
23207 prelink_cmds \
23208 postinstall_cmds \
23209 postuninstall_cmds \
23210 finish_cmds \
23211 sys_lib_search_path_spec \
23212 sys_lib_dlsearch_path_spec; do
23213 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23214 *[\\\\\\\`\\"\\\$]*)
23215 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23216 ;;
23217 *)
23218 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23219 ;;
23220 esac
23221 done
23222
23223 # Fix-up fallback echo if it was mangled by the above quoting rules.
23224 case \$lt_ECHO in
23225 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
23226 ;;
23227 esac
23228
23229 ac_aux_dir='$ac_aux_dir'
23230 xsi_shell='$xsi_shell'
23231 lt_shell_append='$lt_shell_append'
23232
23233 # See if we are running on zsh, and set the options which allow our
23234 # commands through without removal of \ escapes INIT.
23235 if test -n "\${ZSH_VERSION+set}" ; then
23236 setopt NO_GLOB_SUBST
23237 fi
23238
23239
23240 PACKAGE='$PACKAGE'
23241 VERSION='$VERSION'
23242 TIMESTAMP='$TIMESTAMP'
23243 RM='$RM'
23244 ofile='$ofile'
23245
23246
23247
23248
23249 _ACEOF
23250
23251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23252
23253 # Handling of arguments.
23254 for ac_config_target in $ac_config_targets
23255 do
23256 case $ac_config_target in
23257 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
23258 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23259 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23260 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23261 "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
23262 "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
23263 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
23264 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
23265 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
23266 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
23267 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
23268 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23269 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
23270 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23271 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
23272 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
23273 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
23274 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
23275 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
23276 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
23277 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
23278 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
23279 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
23280 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
23281 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
23282 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
23283 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
23284 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
23285 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
23286 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
23287 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
23288 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
23289 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
23290 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
23291 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
23292 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
23293 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
23294 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
23295 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
23296 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
23297 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
23298 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
23299 "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
23300 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
23301 "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
23302 "cmd/sas_switch_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/sas_switch_id/Makefile" ;;
23303 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
23304 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
23305 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
23306 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
23307 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
23308 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
23309 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
23310 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23311 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
23312 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
23313 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
23314 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
23315 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
23316 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
23317 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
23318 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
23319 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
23320 "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
23321 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
23322 "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
23323 "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
23324 "PKGBUILD-zfs") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs" ;;
23325 "PKGBUILD-zfs-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs-modules" ;;
23326 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
23327
23328 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23329 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23330 { (exit 1); exit 1; }; };;
23331 esac
23332 done
23333
23334
23335 # If the user did not use the arguments to specify the items to instantiate,
23336 # then the envvar interface is used. Set only those that are not.
23337 # We use the long form for the default assignment because of an extremely
23338 # bizarre bug on SunOS 4.1.3.
23339 if $ac_need_defaults; then
23340 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23341 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23342 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23343 fi
23344
23345 # Have a temporary directory for convenience. Make it in the build tree
23346 # simply because there is no reason against having it here, and in addition,
23347 # creating and moving files from /tmp can sometimes cause problems.
23348 # Hook for its removal unless debugging.
23349 # Note that there is a small window in which the directory will not be cleaned:
23350 # after its creation but before its name has been assigned to `$tmp'.
23351 $debug ||
23352 {
23353 tmp=
23354 trap 'exit_status=$?
23355 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23356 ' 0
23357 trap '{ (exit 1); exit 1; }' 1 2 13 15
23358 }
23359 # Create a (secure) tmp directory for tmp files.
23360
23361 {
23362 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23363 test -n "$tmp" && test -d "$tmp"
23364 } ||
23365 {
23366 tmp=./conf$$-$RANDOM
23367 (umask 077 && mkdir "$tmp")
23368 } ||
23369 {
23370 $as_echo "$as_me: cannot create a temporary directory in ." >&2
23371 { (exit 1); exit 1; }
23372 }
23373
23374 # Set up the scripts for CONFIG_FILES section.
23375 # No need to generate them if there are no CONFIG_FILES.
23376 # This happens for instance with `./config.status config.h'.
23377 if test -n "$CONFIG_FILES"; then
23378
23379
23380 ac_cr=' '
23381 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23382 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23383 ac_cs_awk_cr='\\r'
23384 else
23385 ac_cs_awk_cr=$ac_cr
23386 fi
23387
23388 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23389 _ACEOF
23390
23391
23392 {
23393 echo "cat >conf$$subs.awk <<_ACEOF" &&
23394 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23395 echo "_ACEOF"
23396 } >conf$$subs.sh ||
23397 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23398 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23399 { (exit 1); exit 1; }; }
23400 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23401 ac_delim='%!_!# '
23402 for ac_last_try in false false false false false :; do
23403 . ./conf$$subs.sh ||
23404 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23405 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23406 { (exit 1); exit 1; }; }
23407
23408 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23409 if test $ac_delim_n = $ac_delim_num; then
23410 break
23411 elif $ac_last_try; then
23412 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23413 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23414 { (exit 1); exit 1; }; }
23415 else
23416 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23417 fi
23418 done
23419 rm -f conf$$subs.sh
23420
23421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23422 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23423 _ACEOF
23424 sed -n '
23425 h
23426 s/^/S["/; s/!.*/"]=/
23427 p
23428 g
23429 s/^[^!]*!//
23430 :repl
23431 t repl
23432 s/'"$ac_delim"'$//
23433 t delim
23434 :nl
23435 h
23436 s/\(.\{148\}\).*/\1/
23437 t more1
23438 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23439 p
23440 n
23441 b repl
23442 :more1
23443 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23444 p
23445 g
23446 s/.\{148\}//
23447 t nl
23448 :delim
23449 h
23450 s/\(.\{148\}\).*/\1/
23451 t more2
23452 s/["\\]/\\&/g; s/^/"/; s/$/"/
23453 p
23454 b
23455 :more2
23456 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23457 p
23458 g
23459 s/.\{148\}//
23460 t delim
23461 ' <conf$$subs.awk | sed '
23462 /^[^""]/{
23463 N
23464 s/\n//
23465 }
23466 ' >>$CONFIG_STATUS || ac_write_fail=1
23467 rm -f conf$$subs.awk
23468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23469 _ACAWK
23470 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23471 for (key in S) S_is_set[key] = 1
23472 FS = "\a"
23473
23474 }
23475 {
23476 line = $ 0
23477 nfields = split(line, field, "@")
23478 substed = 0
23479 len = length(field[1])
23480 for (i = 2; i < nfields; i++) {
23481 key = field[i]
23482 keylen = length(key)
23483 if (S_is_set[key]) {
23484 value = S[key]
23485 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23486 len += length(value) + length(field[++i])
23487 substed = 1
23488 } else
23489 len += 1 + keylen
23490 }
23491
23492 print line
23493 }
23494
23495 _ACAWK
23496 _ACEOF
23497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23498 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23499 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23500 else
23501 cat
23502 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23503 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23504 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
23505 { (exit 1); exit 1; }; }
23506 _ACEOF
23507
23508 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23509 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23510 # trailing colons and then remove the whole line if VPATH becomes empty
23511 # (actually we leave an empty line to preserve line numbers).
23512 if test "x$srcdir" = x.; then
23513 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23514 s/:*\$(srcdir):*/:/
23515 s/:*\${srcdir}:*/:/
23516 s/:*@srcdir@:*/:/
23517 s/^\([^=]*=[ ]*\):*/\1/
23518 s/:*$//
23519 s/^[^=]*=[ ]*$//
23520 }'
23521 fi
23522
23523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23524 fi # test -n "$CONFIG_FILES"
23525
23526 # Set up the scripts for CONFIG_HEADERS section.
23527 # No need to generate them if there are no CONFIG_HEADERS.
23528 # This happens for instance with `./config.status Makefile'.
23529 if test -n "$CONFIG_HEADERS"; then
23530 cat >"$tmp/defines.awk" <<\_ACAWK ||
23531 BEGIN {
23532 _ACEOF
23533
23534 # Transform confdefs.h into an awk script `defines.awk', embedded as
23535 # here-document in config.status, that substitutes the proper values into
23536 # config.h.in to produce config.h.
23537
23538 # Create a delimiter string that does not exist in confdefs.h, to ease
23539 # handling of long lines.
23540 ac_delim='%!_!# '
23541 for ac_last_try in false false :; do
23542 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23543 if test -z "$ac_t"; then
23544 break
23545 elif $ac_last_try; then
23546 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23547 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23548 { (exit 1); exit 1; }; }
23549 else
23550 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23551 fi
23552 done
23553
23554 # For the awk script, D is an array of macro values keyed by name,
23555 # likewise P contains macro parameters if any. Preserve backslash
23556 # newline sequences.
23557
23558 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23559 sed -n '
23560 s/.\{148\}/&'"$ac_delim"'/g
23561 t rset
23562 :rset
23563 s/^[ ]*#[ ]*define[ ][ ]*/ /
23564 t def
23565 d
23566 :def
23567 s/\\$//
23568 t bsnl
23569 s/["\\]/\\&/g
23570 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23571 D["\1"]=" \3"/p
23572 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23573 d
23574 :bsnl
23575 s/["\\]/\\&/g
23576 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23577 D["\1"]=" \3\\\\\\n"\\/p
23578 t cont
23579 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23580 t cont
23581 d
23582 :cont
23583 n
23584 s/.\{148\}/&'"$ac_delim"'/g
23585 t clear
23586 :clear
23587 s/\\$//
23588 t bsnlc
23589 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23590 d
23591 :bsnlc
23592 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23593 b cont
23594 ' <confdefs.h | sed '
23595 s/'"$ac_delim"'/"\\\
23596 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23597
23598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23599 for (key in D) D_is_set[key] = 1
23600 FS = "\a"
23601 }
23602 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23603 line = \$ 0
23604 split(line, arg, " ")
23605 if (arg[1] == "#") {
23606 defundef = arg[2]
23607 mac1 = arg[3]
23608 } else {
23609 defundef = substr(arg[1], 2)
23610 mac1 = arg[2]
23611 }
23612 split(mac1, mac2, "(") #)
23613 macro = mac2[1]
23614 prefix = substr(line, 1, index(line, defundef) - 1)
23615 if (D_is_set[macro]) {
23616 # Preserve the white space surrounding the "#".
23617 print prefix "define", macro P[macro] D[macro]
23618 next
23619 } else {
23620 # Replace #undef with comments. This is necessary, for example,
23621 # in the case of _POSIX_SOURCE, which is predefined and required
23622 # on some systems where configure will not decide to define it.
23623 if (defundef == "undef") {
23624 print "/*", prefix defundef, macro, "*/"
23625 next
23626 }
23627 }
23628 }
23629 { print }
23630 _ACAWK
23631 _ACEOF
23632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23633 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23634 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23635 { (exit 1); exit 1; }; }
23636 fi # test -n "$CONFIG_HEADERS"
23637
23638
23639 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23640 shift
23641 for ac_tag
23642 do
23643 case $ac_tag in
23644 :[FHLC]) ac_mode=$ac_tag; continue;;
23645 esac
23646 case $ac_mode$ac_tag in
23647 :[FHL]*:*);;
23648 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23649 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23650 { (exit 1); exit 1; }; };;
23651 :[FH]-) ac_tag=-:-;;
23652 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23653 esac
23654 ac_save_IFS=$IFS
23655 IFS=:
23656 set x $ac_tag
23657 IFS=$ac_save_IFS
23658 shift
23659 ac_file=$1
23660 shift
23661
23662 case $ac_mode in
23663 :L) ac_source=$1;;
23664 :[FH])
23665 ac_file_inputs=
23666 for ac_f
23667 do
23668 case $ac_f in
23669 -) ac_f="$tmp/stdin";;
23670 *) # Look for the file first in the build tree, then in the source tree
23671 # (if the path is not absolute). The absolute path cannot be DOS-style,
23672 # because $ac_f cannot contain `:'.
23673 test -f "$ac_f" ||
23674 case $ac_f in
23675 [\\/$]*) false;;
23676 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23677 esac ||
23678 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23679 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23680 { (exit 1); exit 1; }; };;
23681 esac
23682 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23683 ac_file_inputs="$ac_file_inputs '$ac_f'"
23684 done
23685
23686 # Let's still pretend it is `configure' which instantiates (i.e., don't
23687 # use $as_me), people would be surprised to read:
23688 # /* config.h. Generated by config.status. */
23689 configure_input='Generated from '`
23690 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23691 `' by configure.'
23692 if test x"$ac_file" != x-; then
23693 configure_input="$ac_file. $configure_input"
23694 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23695 $as_echo "$as_me: creating $ac_file" >&6;}
23696 fi
23697 # Neutralize special characters interpreted by sed in replacement strings.
23698 case $configure_input in #(
23699 *\&* | *\|* | *\\* )
23700 ac_sed_conf_input=`$as_echo "$configure_input" |
23701 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23702 *) ac_sed_conf_input=$configure_input;;
23703 esac
23704
23705 case $ac_tag in
23706 *:-:* | *:-) cat >"$tmp/stdin" \
23707 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23708 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23709 { (exit 1); exit 1; }; } ;;
23710 esac
23711 ;;
23712 esac
23713
23714 ac_dir=`$as_dirname -- "$ac_file" ||
23715 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23716 X"$ac_file" : 'X\(//\)[^/]' \| \
23717 X"$ac_file" : 'X\(//\)$' \| \
23718 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23719 $as_echo X"$ac_file" |
23720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23721 s//\1/
23722 q
23723 }
23724 /^X\(\/\/\)[^/].*/{
23725 s//\1/
23726 q
23727 }
23728 /^X\(\/\/\)$/{
23729 s//\1/
23730 q
23731 }
23732 /^X\(\/\).*/{
23733 s//\1/
23734 q
23735 }
23736 s/.*/./; q'`
23737 { as_dir="$ac_dir"
23738 case $as_dir in #(
23739 -*) as_dir=./$as_dir;;
23740 esac
23741 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23742 as_dirs=
23743 while :; do
23744 case $as_dir in #(
23745 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23746 *) as_qdir=$as_dir;;
23747 esac
23748 as_dirs="'$as_qdir' $as_dirs"
23749 as_dir=`$as_dirname -- "$as_dir" ||
23750 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23751 X"$as_dir" : 'X\(//\)[^/]' \| \
23752 X"$as_dir" : 'X\(//\)$' \| \
23753 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23754 $as_echo X"$as_dir" |
23755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23756 s//\1/
23757 q
23758 }
23759 /^X\(\/\/\)[^/].*/{
23760 s//\1/
23761 q
23762 }
23763 /^X\(\/\/\)$/{
23764 s//\1/
23765 q
23766 }
23767 /^X\(\/\).*/{
23768 s//\1/
23769 q
23770 }
23771 s/.*/./; q'`
23772 test -d "$as_dir" && break
23773 done
23774 test -z "$as_dirs" || eval "mkdir $as_dirs"
23775 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23776 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23777 { (exit 1); exit 1; }; }; }
23778 ac_builddir=.
23779
23780 case "$ac_dir" in
23781 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23782 *)
23783 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23784 # A ".." for each directory in $ac_dir_suffix.
23785 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23786 case $ac_top_builddir_sub in
23787 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23788 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23789 esac ;;
23790 esac
23791 ac_abs_top_builddir=$ac_pwd
23792 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23793 # for backward compatibility:
23794 ac_top_builddir=$ac_top_build_prefix
23795
23796 case $srcdir in
23797 .) # We are building in place.
23798 ac_srcdir=.
23799 ac_top_srcdir=$ac_top_builddir_sub
23800 ac_abs_top_srcdir=$ac_pwd ;;
23801 [\\/]* | ?:[\\/]* ) # Absolute name.
23802 ac_srcdir=$srcdir$ac_dir_suffix;
23803 ac_top_srcdir=$srcdir
23804 ac_abs_top_srcdir=$srcdir ;;
23805 *) # Relative name.
23806 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23807 ac_top_srcdir=$ac_top_build_prefix$srcdir
23808 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23809 esac
23810 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23811
23812
23813 case $ac_mode in
23814 :F)
23815 #
23816 # CONFIG_FILE
23817 #
23818
23819 case $INSTALL in
23820 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23821 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23822 esac
23823 ac_MKDIR_P=$MKDIR_P
23824 case $MKDIR_P in
23825 [\\/$]* | ?:[\\/]* ) ;;
23826 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23827 esac
23828 _ACEOF
23829
23830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23831 # If the template does not know about datarootdir, expand it.
23832 # FIXME: This hack should be removed a few years after 2.60.
23833 ac_datarootdir_hack=; ac_datarootdir_seen=
23834
23835 ac_sed_dataroot='
23836 /datarootdir/ {
23837 p
23838 q
23839 }
23840 /@datadir@/p
23841 /@docdir@/p
23842 /@infodir@/p
23843 /@localedir@/p
23844 /@mandir@/p
23845 '
23846 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23847 *datarootdir*) ac_datarootdir_seen=yes;;
23848 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23849 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23850 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23851 _ACEOF
23852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23853 ac_datarootdir_hack='
23854 s&@datadir@&$datadir&g
23855 s&@docdir@&$docdir&g
23856 s&@infodir@&$infodir&g
23857 s&@localedir@&$localedir&g
23858 s&@mandir@&$mandir&g
23859 s&\\\${datarootdir}&$datarootdir&g' ;;
23860 esac
23861 _ACEOF
23862
23863 # Neutralize VPATH when `$srcdir' = `.'.
23864 # Shell code in configure.ac might set extrasub.
23865 # FIXME: do we really want to maintain this feature?
23866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23867 ac_sed_extra="$ac_vpsub
23868 $extrasub
23869 _ACEOF
23870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23871 :t
23872 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23873 s|@configure_input@|$ac_sed_conf_input|;t t
23874 s&@top_builddir@&$ac_top_builddir_sub&;t t
23875 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23876 s&@srcdir@&$ac_srcdir&;t t
23877 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23878 s&@top_srcdir@&$ac_top_srcdir&;t t
23879 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23880 s&@builddir@&$ac_builddir&;t t
23881 s&@abs_builddir@&$ac_abs_builddir&;t t
23882 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23883 s&@INSTALL@&$ac_INSTALL&;t t
23884 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23885 $ac_datarootdir_hack
23886 "
23887 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23888 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23889 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23890 { (exit 1); exit 1; }; }
23891
23892 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23893 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23894 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23895 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23896 which seems to be undefined. Please make sure it is defined." >&5
23897 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23898 which seems to be undefined. Please make sure it is defined." >&2;}
23899
23900 rm -f "$tmp/stdin"
23901 case $ac_file in
23902 -) cat "$tmp/out" && rm -f "$tmp/out";;
23903 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23904 esac \
23905 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23906 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23907 { (exit 1); exit 1; }; }
23908 ;;
23909 :H)
23910 #
23911 # CONFIG_HEADER
23912 #
23913 if test x"$ac_file" != x-; then
23914 {
23915 $as_echo "/* $configure_input */" \
23916 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23917 } >"$tmp/config.h" \
23918 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23919 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23920 { (exit 1); exit 1; }; }
23921 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23922 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23923 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23924 else
23925 rm -f "$ac_file"
23926 mv "$tmp/config.h" "$ac_file" \
23927 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23928 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23929 { (exit 1); exit 1; }; }
23930 fi
23931 else
23932 $as_echo "/* $configure_input */" \
23933 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23934 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23935 $as_echo "$as_me: error: could not create -" >&2;}
23936 { (exit 1); exit 1; }; }
23937 fi
23938 # Compute "$ac_file"'s index in $config_headers.
23939 _am_arg="$ac_file"
23940 _am_stamp_count=1
23941 for _am_header in $config_headers :; do
23942 case $_am_header in
23943 $_am_arg | $_am_arg:* )
23944 break ;;
23945 * )
23946 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23947 esac
23948 done
23949 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23950 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23951 X"$_am_arg" : 'X\(//\)[^/]' \| \
23952 X"$_am_arg" : 'X\(//\)$' \| \
23953 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23954 $as_echo X"$_am_arg" |
23955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23956 s//\1/
23957 q
23958 }
23959 /^X\(\/\/\)[^/].*/{
23960 s//\1/
23961 q
23962 }
23963 /^X\(\/\/\)$/{
23964 s//\1/
23965 q
23966 }
23967 /^X\(\/\).*/{
23968 s//\1/
23969 q
23970 }
23971 s/.*/./; q'`/stamp-h$_am_stamp_count
23972 ;;
23973
23974 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23975 $as_echo "$as_me: executing $ac_file commands" >&6;}
23976 ;;
23977 esac
23978
23979
23980 case $ac_file$ac_mode in
23981 "zfs_config.h":H)
23982 (mv zfs_config.h zfs_config.h.tmp &&
23983 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
23984 rm zfs_config.h.tmp) || exit 1 ;;
23985 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23986 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23987 # are listed without --file. Let's play safe and only enable the eval
23988 # if we detect the quoting.
23989 case $CONFIG_FILES in
23990 *\'*) eval set x "$CONFIG_FILES" ;;
23991 *) set x $CONFIG_FILES ;;
23992 esac
23993 shift
23994 for mf
23995 do
23996 # Strip MF so we end up with the name of the file.
23997 mf=`echo "$mf" | sed -e 's/:.*$//'`
23998 # Check whether this is an Automake generated Makefile or not.
23999 # We used to match only the files named `Makefile.in', but
24000 # some people rename them; so instead we look at the file content.
24001 # Grep'ing the first line is not enough: some people post-process
24002 # each Makefile.in and add a new line on top of each file to say so.
24003 # Grep'ing the whole file is not good either: AIX grep has a line
24004 # limit of 2048, but all sed's we know have understand at least 4000.
24005 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24006 dirpart=`$as_dirname -- "$mf" ||
24007 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24008 X"$mf" : 'X\(//\)[^/]' \| \
24009 X"$mf" : 'X\(//\)$' \| \
24010 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24011 $as_echo X"$mf" |
24012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24013 s//\1/
24014 q
24015 }
24016 /^X\(\/\/\)[^/].*/{
24017 s//\1/
24018 q
24019 }
24020 /^X\(\/\/\)$/{
24021 s//\1/
24022 q
24023 }
24024 /^X\(\/\).*/{
24025 s//\1/
24026 q
24027 }
24028 s/.*/./; q'`
24029 else
24030 continue
24031 fi
24032 # Extract the definition of DEPDIR, am__include, and am__quote
24033 # from the Makefile without running `make'.
24034 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24035 test -z "$DEPDIR" && continue
24036 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24037 test -z "am__include" && continue
24038 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24039 # When using ansi2knr, U may be empty or an underscore; expand it
24040 U=`sed -n 's/^U = //p' < "$mf"`
24041 # Find all dependency output files, they are included files with
24042 # $(DEPDIR) in their names. We invoke sed twice because it is the
24043 # simplest approach to changing $(DEPDIR) to its actual value in the
24044 # expansion.
24045 for file in `sed -n "
24046 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24047 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24048 # Make sure the directory exists.
24049 test -f "$dirpart/$file" && continue
24050 fdir=`$as_dirname -- "$file" ||
24051 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24052 X"$file" : 'X\(//\)[^/]' \| \
24053 X"$file" : 'X\(//\)$' \| \
24054 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24055 $as_echo X"$file" |
24056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24057 s//\1/
24058 q
24059 }
24060 /^X\(\/\/\)[^/].*/{
24061 s//\1/
24062 q
24063 }
24064 /^X\(\/\/\)$/{
24065 s//\1/
24066 q
24067 }
24068 /^X\(\/\).*/{
24069 s//\1/
24070 q
24071 }
24072 s/.*/./; q'`
24073 { as_dir=$dirpart/$fdir
24074 case $as_dir in #(
24075 -*) as_dir=./$as_dir;;
24076 esac
24077 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24078 as_dirs=
24079 while :; do
24080 case $as_dir in #(
24081 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24082 *) as_qdir=$as_dir;;
24083 esac
24084 as_dirs="'$as_qdir' $as_dirs"
24085 as_dir=`$as_dirname -- "$as_dir" ||
24086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24087 X"$as_dir" : 'X\(//\)[^/]' \| \
24088 X"$as_dir" : 'X\(//\)$' \| \
24089 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24090 $as_echo X"$as_dir" |
24091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24092 s//\1/
24093 q
24094 }
24095 /^X\(\/\/\)[^/].*/{
24096 s//\1/
24097 q
24098 }
24099 /^X\(\/\/\)$/{
24100 s//\1/
24101 q
24102 }
24103 /^X\(\/\).*/{
24104 s//\1/
24105 q
24106 }
24107 s/.*/./; q'`
24108 test -d "$as_dir" && break
24109 done
24110 test -z "$as_dirs" || eval "mkdir $as_dirs"
24111 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24112 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24113 { (exit 1); exit 1; }; }; }
24114 # echo "creating $dirpart/$file"
24115 echo '# dummy' > "$dirpart/$file"
24116 done
24117 done
24118 }
24119 ;;
24120 "libtool":C)
24121
24122 # See if we are running on zsh, and set the options which allow our
24123 # commands through without removal of \ escapes.
24124 if test -n "${ZSH_VERSION+set}" ; then
24125 setopt NO_GLOB_SUBST
24126 fi
24127
24128 cfgfile="${ofile}T"
24129 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24130 $RM "$cfgfile"
24131
24132 cat <<_LT_EOF >> "$cfgfile"
24133 #! $SHELL
24134
24135 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24136 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24137 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24138 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24139 #
24140 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24141 # 2006, 2007, 2008 Free Software Foundation, Inc.
24142 # Written by Gordon Matzigkeit, 1996
24143 #
24144 # This file is part of GNU Libtool.
24145 #
24146 # GNU Libtool is free software; you can redistribute it and/or
24147 # modify it under the terms of the GNU General Public License as
24148 # published by the Free Software Foundation; either version 2 of
24149 # the License, or (at your option) any later version.
24150 #
24151 # As a special exception to the GNU General Public License,
24152 # if you distribute this file as part of a program or library that
24153 # is built using GNU Libtool, you may include this file under the
24154 # same distribution terms that you use for the rest of that program.
24155 #
24156 # GNU Libtool is distributed in the hope that it will be useful,
24157 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24158 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24159 # GNU General Public License for more details.
24160 #
24161 # You should have received a copy of the GNU General Public License
24162 # along with GNU Libtool; see the file COPYING. If not, a copy
24163 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24164 # obtained by writing to the Free Software Foundation, Inc.,
24165 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24166
24167
24168 # The names of the tagged configurations supported by this script.
24169 available_tags=""
24170
24171 # ### BEGIN LIBTOOL CONFIG
24172
24173 # Which release of libtool.m4 was used?
24174 macro_version=$macro_version
24175 macro_revision=$macro_revision
24176
24177 # Whether or not to build shared libraries.
24178 build_libtool_libs=$enable_shared
24179
24180 # Whether or not to build static libraries.
24181 build_old_libs=$enable_static
24182
24183 # What type of objects to build.
24184 pic_mode=$pic_mode
24185
24186 # Whether or not to optimize for fast installation.
24187 fast_install=$enable_fast_install
24188
24189 # The host system.
24190 host_alias=$host_alias
24191 host=$host
24192 host_os=$host_os
24193
24194 # The build system.
24195 build_alias=$build_alias
24196 build=$build
24197 build_os=$build_os
24198
24199 # A sed program that does not truncate output.
24200 SED=$lt_SED
24201
24202 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24203 Xsed="\$SED -e 1s/^X//"
24204
24205 # A grep program that handles long lines.
24206 GREP=$lt_GREP
24207
24208 # An ERE matcher.
24209 EGREP=$lt_EGREP
24210
24211 # A literal string matcher.
24212 FGREP=$lt_FGREP
24213
24214 # A BSD- or MS-compatible name lister.
24215 NM=$lt_NM
24216
24217 # Whether we need soft or hard links.
24218 LN_S=$lt_LN_S
24219
24220 # What is the maximum length of a command?
24221 max_cmd_len=$max_cmd_len
24222
24223 # Object file suffix (normally "o").
24224 objext=$ac_objext
24225
24226 # Executable file suffix (normally "").
24227 exeext=$exeext
24228
24229 # whether the shell understands "unset".
24230 lt_unset=$lt_unset
24231
24232 # turn spaces into newlines.
24233 SP2NL=$lt_lt_SP2NL
24234
24235 # turn newlines into spaces.
24236 NL2SP=$lt_lt_NL2SP
24237
24238 # How to create reloadable object files.
24239 reload_flag=$lt_reload_flag
24240 reload_cmds=$lt_reload_cmds
24241
24242 # An object symbol dumper.
24243 OBJDUMP=$lt_OBJDUMP
24244
24245 # Method to check whether dependent libraries are shared objects.
24246 deplibs_check_method=$lt_deplibs_check_method
24247
24248 # Command to use when deplibs_check_method == "file_magic".
24249 file_magic_cmd=$lt_file_magic_cmd
24250
24251 # The archiver.
24252 AR=$lt_AR
24253 AR_FLAGS=$lt_AR_FLAGS
24254
24255 # A symbol stripping program.
24256 STRIP=$lt_STRIP
24257
24258 # Commands used to install an old-style archive.
24259 RANLIB=$lt_RANLIB
24260 old_postinstall_cmds=$lt_old_postinstall_cmds
24261 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24262
24263 # A C compiler.
24264 LTCC=$lt_CC
24265
24266 # LTCC compiler flags.
24267 LTCFLAGS=$lt_CFLAGS
24268
24269 # Take the output of nm and produce a listing of raw symbols and C names.
24270 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24271
24272 # Transform the output of nm in a proper C declaration.
24273 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24274
24275 # Transform the output of nm in a C name address pair.
24276 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24277
24278 # Transform the output of nm in a C name address pair when lib prefix is needed.
24279 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24280
24281 # The name of the directory that contains temporary libtool files.
24282 objdir=$objdir
24283
24284 # Shell to use when invoking shell scripts.
24285 SHELL=$lt_SHELL
24286
24287 # An echo program that does not interpret backslashes.
24288 ECHO=$lt_ECHO
24289
24290 # Used to examine libraries when file_magic_cmd begins with "file".
24291 MAGIC_CMD=$MAGIC_CMD
24292
24293 # Must we lock files when doing compilation?
24294 need_locks=$lt_need_locks
24295
24296 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24297 DSYMUTIL=$lt_DSYMUTIL
24298
24299 # Tool to change global to local symbols on Mac OS X.
24300 NMEDIT=$lt_NMEDIT
24301
24302 # Tool to manipulate fat objects and archives on Mac OS X.
24303 LIPO=$lt_LIPO
24304
24305 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24306 OTOOL=$lt_OTOOL
24307
24308 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24309 OTOOL64=$lt_OTOOL64
24310
24311 # Old archive suffix (normally "a").
24312 libext=$libext
24313
24314 # Shared library suffix (normally ".so").
24315 shrext_cmds=$lt_shrext_cmds
24316
24317 # The commands to extract the exported symbol list from a shared archive.
24318 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24319
24320 # Variables whose values should be saved in libtool wrapper scripts and
24321 # restored at link time.
24322 variables_saved_for_relink=$lt_variables_saved_for_relink
24323
24324 # Do we need the "lib" prefix for modules?
24325 need_lib_prefix=$need_lib_prefix
24326
24327 # Do we need a version for libraries?
24328 need_version=$need_version
24329
24330 # Library versioning type.
24331 version_type=$version_type
24332
24333 # Shared library runtime path variable.
24334 runpath_var=$runpath_var
24335
24336 # Shared library path variable.
24337 shlibpath_var=$shlibpath_var
24338
24339 # Is shlibpath searched before the hard-coded library search path?
24340 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24341
24342 # Format of library name prefix.
24343 libname_spec=$lt_libname_spec
24344
24345 # List of archive names. First name is the real one, the rest are links.
24346 # The last name is the one that the linker finds with -lNAME
24347 library_names_spec=$lt_library_names_spec
24348
24349 # The coded name of the library, if different from the real name.
24350 soname_spec=$lt_soname_spec
24351
24352 # Command to use after installation of a shared archive.
24353 postinstall_cmds=$lt_postinstall_cmds
24354
24355 # Command to use after uninstallation of a shared archive.
24356 postuninstall_cmds=$lt_postuninstall_cmds
24357
24358 # Commands used to finish a libtool library installation in a directory.
24359 finish_cmds=$lt_finish_cmds
24360
24361 # As "finish_cmds", except a single script fragment to be evaled but
24362 # not shown.
24363 finish_eval=$lt_finish_eval
24364
24365 # Whether we should hardcode library paths into libraries.
24366 hardcode_into_libs=$hardcode_into_libs
24367
24368 # Compile-time system search path for libraries.
24369 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24370
24371 # Run-time system search path for libraries.
24372 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24373
24374 # Whether dlopen is supported.
24375 dlopen_support=$enable_dlopen
24376
24377 # Whether dlopen of programs is supported.
24378 dlopen_self=$enable_dlopen_self
24379
24380 # Whether dlopen of statically linked programs is supported.
24381 dlopen_self_static=$enable_dlopen_self_static
24382
24383 # Commands to strip libraries.
24384 old_striplib=$lt_old_striplib
24385 striplib=$lt_striplib
24386
24387
24388 # The linker used to build libraries.
24389 LD=$lt_LD
24390
24391 # Commands used to build an old-style archive.
24392 old_archive_cmds=$lt_old_archive_cmds
24393
24394 # A language specific compiler.
24395 CC=$lt_compiler
24396
24397 # Is the compiler the GNU compiler?
24398 with_gcc=$GCC
24399
24400 # Compiler flag to turn off builtin functions.
24401 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24402
24403 # How to pass a linker flag through the compiler.
24404 wl=$lt_lt_prog_compiler_wl
24405
24406 # Additional compiler flags for building library objects.
24407 pic_flag=$lt_lt_prog_compiler_pic
24408
24409 # Compiler flag to prevent dynamic linking.
24410 link_static_flag=$lt_lt_prog_compiler_static
24411
24412 # Does compiler simultaneously support -c and -o options?
24413 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24414
24415 # Whether or not to add -lc for building shared libraries.
24416 build_libtool_need_lc=$archive_cmds_need_lc
24417
24418 # Whether or not to disallow shared libs when runtime libs are static.
24419 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24420
24421 # Compiler flag to allow reflexive dlopens.
24422 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24423
24424 # Compiler flag to generate shared objects directly from archives.
24425 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24426
24427 # Whether the compiler copes with passing no objects directly.
24428 compiler_needs_object=$lt_compiler_needs_object
24429
24430 # Create an old-style archive from a shared archive.
24431 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24432
24433 # Create a temporary old-style archive to link instead of a shared archive.
24434 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24435
24436 # Commands used to build a shared archive.
24437 archive_cmds=$lt_archive_cmds
24438 archive_expsym_cmds=$lt_archive_expsym_cmds
24439
24440 # Commands used to build a loadable module if different from building
24441 # a shared archive.
24442 module_cmds=$lt_module_cmds
24443 module_expsym_cmds=$lt_module_expsym_cmds
24444
24445 # Whether we are building with GNU ld or not.
24446 with_gnu_ld=$lt_with_gnu_ld
24447
24448 # Flag that allows shared libraries with undefined symbols to be built.
24449 allow_undefined_flag=$lt_allow_undefined_flag
24450
24451 # Flag that enforces no undefined symbols.
24452 no_undefined_flag=$lt_no_undefined_flag
24453
24454 # Flag to hardcode \$libdir into a binary during linking.
24455 # This must work even if \$libdir does not exist
24456 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24457
24458 # If ld is used when linking, flag to hardcode \$libdir into a binary
24459 # during linking. This must work even if \$libdir does not exist.
24460 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24461
24462 # Whether we need a single "-rpath" flag with a separated argument.
24463 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24464
24465 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24466 # DIR into the resulting binary.
24467 hardcode_direct=$hardcode_direct
24468
24469 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24470 # DIR into the resulting binary and the resulting library dependency is
24471 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24472 # library is relocated.
24473 hardcode_direct_absolute=$hardcode_direct_absolute
24474
24475 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24476 # into the resulting binary.
24477 hardcode_minus_L=$hardcode_minus_L
24478
24479 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24480 # into the resulting binary.
24481 hardcode_shlibpath_var=$hardcode_shlibpath_var
24482
24483 # Set to "yes" if building a shared library automatically hardcodes DIR
24484 # into the library and all subsequent libraries and executables linked
24485 # against it.
24486 hardcode_automatic=$hardcode_automatic
24487
24488 # Set to yes if linker adds runtime paths of dependent libraries
24489 # to runtime path list.
24490 inherit_rpath=$inherit_rpath
24491
24492 # Whether libtool must link a program against all its dependency libraries.
24493 link_all_deplibs=$link_all_deplibs
24494
24495 # Fix the shell variable \$srcfile for the compiler.
24496 fix_srcfile_path=$lt_fix_srcfile_path
24497
24498 # Set to "yes" if exported symbols are required.
24499 always_export_symbols=$always_export_symbols
24500
24501 # The commands to list exported symbols.
24502 export_symbols_cmds=$lt_export_symbols_cmds
24503
24504 # Symbols that should not be listed in the preloaded symbols.
24505 exclude_expsyms=$lt_exclude_expsyms
24506
24507 # Symbols that must always be exported.
24508 include_expsyms=$lt_include_expsyms
24509
24510 # Commands necessary for linking programs (against libraries) with templates.
24511 prelink_cmds=$lt_prelink_cmds
24512
24513 # Specify filename containing input files.
24514 file_list_spec=$lt_file_list_spec
24515
24516 # How to hardcode a shared library path into an executable.
24517 hardcode_action=$hardcode_action
24518
24519 # ### END LIBTOOL CONFIG
24520
24521 _LT_EOF
24522
24523 case $host_os in
24524 aix3*)
24525 cat <<\_LT_EOF >> "$cfgfile"
24526 # AIX sometimes has problems with the GCC collect2 program. For some
24527 # reason, if we set the COLLECT_NAMES environment variable, the problems
24528 # vanish in a puff of smoke.
24529 if test "X${COLLECT_NAMES+set}" != Xset; then
24530 COLLECT_NAMES=
24531 export COLLECT_NAMES
24532 fi
24533 _LT_EOF
24534 ;;
24535 esac
24536
24537
24538 ltmain="$ac_aux_dir/ltmain.sh"
24539
24540
24541 # We use sed instead of cat because bash on DJGPP gets confused if
24542 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24543 # text mode, it properly converts lines to CR/LF. This bash problem
24544 # is reportedly fixed, but why not run on old versions too?
24545 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24546 || (rm -f "$cfgfile"; exit 1)
24547
24548 case $xsi_shell in
24549 yes)
24550 cat << \_LT_EOF >> "$cfgfile"
24551
24552 # func_dirname file append nondir_replacement
24553 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24554 # otherwise set result to NONDIR_REPLACEMENT.
24555 func_dirname ()
24556 {
24557 case ${1} in
24558 */*) func_dirname_result="${1%/*}${2}" ;;
24559 * ) func_dirname_result="${3}" ;;
24560 esac
24561 }
24562
24563 # func_basename file
24564 func_basename ()
24565 {
24566 func_basename_result="${1##*/}"
24567 }
24568
24569 # func_dirname_and_basename file append nondir_replacement
24570 # perform func_basename and func_dirname in a single function
24571 # call:
24572 # dirname: Compute the dirname of FILE. If nonempty,
24573 # add APPEND to the result, otherwise set result
24574 # to NONDIR_REPLACEMENT.
24575 # value returned in "$func_dirname_result"
24576 # basename: Compute filename of FILE.
24577 # value retuned in "$func_basename_result"
24578 # Implementation must be kept synchronized with func_dirname
24579 # and func_basename. For efficiency, we do not delegate to
24580 # those functions but instead duplicate the functionality here.
24581 func_dirname_and_basename ()
24582 {
24583 case ${1} in
24584 */*) func_dirname_result="${1%/*}${2}" ;;
24585 * ) func_dirname_result="${3}" ;;
24586 esac
24587 func_basename_result="${1##*/}"
24588 }
24589
24590 # func_stripname prefix suffix name
24591 # strip PREFIX and SUFFIX off of NAME.
24592 # PREFIX and SUFFIX must not contain globbing or regex special
24593 # characters, hashes, percent signs, but SUFFIX may contain a leading
24594 # dot (in which case that matches only a dot).
24595 func_stripname ()
24596 {
24597 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24598 # positional parameters, so assign one to ordinary parameter first.
24599 func_stripname_result=${3}
24600 func_stripname_result=${func_stripname_result#"${1}"}
24601 func_stripname_result=${func_stripname_result%"${2}"}
24602 }
24603
24604 # func_opt_split
24605 func_opt_split ()
24606 {
24607 func_opt_split_opt=${1%%=*}
24608 func_opt_split_arg=${1#*=}
24609 }
24610
24611 # func_lo2o object
24612 func_lo2o ()
24613 {
24614 case ${1} in
24615 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24616 *) func_lo2o_result=${1} ;;
24617 esac
24618 }
24619
24620 # func_xform libobj-or-source
24621 func_xform ()
24622 {
24623 func_xform_result=${1%.*}.lo
24624 }
24625
24626 # func_arith arithmetic-term...
24627 func_arith ()
24628 {
24629 func_arith_result=$(( $* ))
24630 }
24631
24632 # func_len string
24633 # STRING may not start with a hyphen.
24634 func_len ()
24635 {
24636 func_len_result=${#1}
24637 }
24638
24639 _LT_EOF
24640 ;;
24641 *) # Bourne compatible functions.
24642 cat << \_LT_EOF >> "$cfgfile"
24643
24644 # func_dirname file append nondir_replacement
24645 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24646 # otherwise set result to NONDIR_REPLACEMENT.
24647 func_dirname ()
24648 {
24649 # Extract subdirectory from the argument.
24650 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24651 if test "X$func_dirname_result" = "X${1}"; then
24652 func_dirname_result="${3}"
24653 else
24654 func_dirname_result="$func_dirname_result${2}"
24655 fi
24656 }
24657
24658 # func_basename file
24659 func_basename ()
24660 {
24661 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24662 }
24663
24664
24665 # func_stripname prefix suffix name
24666 # strip PREFIX and SUFFIX off of NAME.
24667 # PREFIX and SUFFIX must not contain globbing or regex special
24668 # characters, hashes, percent signs, but SUFFIX may contain a leading
24669 # dot (in which case that matches only a dot).
24670 # func_strip_suffix prefix name
24671 func_stripname ()
24672 {
24673 case ${2} in
24674 .*) func_stripname_result=`$ECHO "X${3}" \
24675 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24676 *) func_stripname_result=`$ECHO "X${3}" \
24677 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24678 esac
24679 }
24680
24681 # sed scripts:
24682 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24683 my_sed_long_arg='1s/^-[^=]*=//'
24684
24685 # func_opt_split
24686 func_opt_split ()
24687 {
24688 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24689 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24690 }
24691
24692 # func_lo2o object
24693 func_lo2o ()
24694 {
24695 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24696 }
24697
24698 # func_xform libobj-or-source
24699 func_xform ()
24700 {
24701 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24702 }
24703
24704 # func_arith arithmetic-term...
24705 func_arith ()
24706 {
24707 func_arith_result=`expr "$@"`
24708 }
24709
24710 # func_len string
24711 # STRING may not start with a hyphen.
24712 func_len ()
24713 {
24714 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24715 }
24716
24717 _LT_EOF
24718 esac
24719
24720 case $lt_shell_append in
24721 yes)
24722 cat << \_LT_EOF >> "$cfgfile"
24723
24724 # func_append var value
24725 # Append VALUE to the end of shell variable VAR.
24726 func_append ()
24727 {
24728 eval "$1+=\$2"
24729 }
24730 _LT_EOF
24731 ;;
24732 *)
24733 cat << \_LT_EOF >> "$cfgfile"
24734
24735 # func_append var value
24736 # Append VALUE to the end of shell variable VAR.
24737 func_append ()
24738 {
24739 eval "$1=\$$1\$2"
24740 }
24741
24742 _LT_EOF
24743 ;;
24744 esac
24745
24746
24747 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24748 || (rm -f "$cfgfile"; exit 1)
24749
24750 mv -f "$cfgfile" "$ofile" ||
24751 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24752 chmod +x "$ofile"
24753
24754 ;;
24755
24756 esac
24757 done # for ac_tag
24758
24759
24760 { (exit 0); exit 0; }
24761 _ACEOF
24762 chmod +x $CONFIG_STATUS
24763 ac_clean_files=$ac_clean_files_save
24764
24765 test $ac_write_fail = 0 ||
24766 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24767 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24768 { (exit 1); exit 1; }; }
24769
24770
24771 # configure is writing to config.log, and then calls config.status.
24772 # config.status does its own redirection, appending to config.log.
24773 # Unfortunately, on DOS this fails, as config.log is still kept open
24774 # by configure, so config.status won't be able to write to it; its
24775 # output is simply discarded. So we exec the FD to /dev/null,
24776 # effectively closing config.log, so it can be properly (re)opened and
24777 # appended to by config.status. When coming back to configure, we
24778 # need to make the FD available again.
24779 if test "$no_create" != yes; then
24780 ac_cs_success=:
24781 ac_config_status_args=
24782 test "$silent" = yes &&
24783 ac_config_status_args="$ac_config_status_args --quiet"
24784 exec 5>/dev/null
24785 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24786 exec 5>>config.log
24787 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24788 # would make configure fail if this is the last instruction.
24789 $ac_cs_success || { (exit 1); exit 1; }
24790 fi
24791 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24792 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24793 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24794 fi
24795